oem账户管理问题修复 微信食品标签图
This commit is contained in:
1 parent
ba502650ab
commit
c7ab757152
10 files changed
+663
-478
No files matched your search
+485
-433
File diff suppressed because it is too large.
Load diff
@@ -303,6 +303,8 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
if (columName == "colPlus")
|
||||
{
|
||||
this.lblUserInfo.Text = mobile + " - " + nickName;
|
||||
this.lblTopUpUserId.Text = mobile;
|
||||
this.lblTopUpNickName.Text = nickName;
|
||||
this.numAddTopUp.Value = 0;
|
||||
this.pnlTopUp.Tag = row;
|
||||
this.pnlTopUp.Visible = true;
|
||||
@@ -311,6 +313,8 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
if (columName == "colBalancePlus")
|
||||
{
|
||||
this.lblUserBalanceInfo.Text = mobile + " - " + nickName;
|
||||
this.lblBalanceUserId.Text = mobile;
|
||||
this.lblBalanceNickName.Text = nickName;
|
||||
this.numAddBalance.Value = 0;
|
||||
this.pnlBalance.Tag = row;
|
||||
this.pnlBalance.Visible = true;
|
||||
@@ -449,8 +453,8 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
{
|
||||
string url = BaseClass.BuildObjString("user/update_user_points");
|
||||
string data = UserLogin.GetSignaturex();
|
||||
data += "&update_user_name=" + lblUserInfo.Text.Split('-')[0].Trim();
|
||||
data += "&update_user_nick=" + lblUserInfo.Text.Split('-')[1].Trim();
|
||||
data += "&update_user_name=" + lblTopUpUserId.Text;
|
||||
data += "&update_user_nick=" + lblTopUpNickName.Text;
|
||||
data += "&option_type=" + "充值";
|
||||
|
||||
data += "&operator_type=" + "管理员";
|
||||
@@ -527,8 +531,8 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
{
|
||||
string url = BaseClass.BuildObjString("user/update_user_balance");
|
||||
string data = UserLogin.GetSignaturex();
|
||||
data += "&update_user_name=" + lblUserBalanceInfo.Text.Split('-')[0].Trim();
|
||||
data += "&update_user_nick=" + lblUserBalanceInfo.Text.Split('-')[1].Trim();
|
||||
data += "&update_user_name=" + lblBalanceUserId.Text;
|
||||
data += "&update_user_nick=" + lblBalanceNickName.Text;
|
||||
data += "&option_type=" + "充值";
|
||||
data += "&operator_name=" + BaseClass.UserName;
|
||||
data += "&delta_balance=" + numAddBalance.Value;
|
||||
|
||||
+13
-12
@@ -28,8 +28,8 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.splitContainer5 = new System.Windows.Forms.SplitContainer();
|
||||
this.btnCancelEdit = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnAddMdy = new DevComponents.DotNetBar.PanelEx();
|
||||
@@ -246,6 +246,7 @@
|
||||
this.btnClear.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnClear.TabIndex = 847;
|
||||
this.btnClear.Text = "置空";
|
||||
this.btnClear.Click += new System.EventHandler(this.btnClear_Click);
|
||||
//
|
||||
// txtSearchOemName
|
||||
//
|
||||
@@ -391,20 +392,20 @@
|
||||
//
|
||||
this.dgvOem.AllowUserToAddRows = false;
|
||||
this.dgvOem.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
|
||||
this.dgvOem.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
|
||||
this.dgvOem.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.dgvOem.AutoRowNumber = true;
|
||||
this.dgvOem.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
|
||||
this.dgvOem.BackgroundColor = System.Drawing.Color.White;
|
||||
this.dgvOem.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvOem.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6;
|
||||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvOem.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
|
||||
this.dgvOem.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dgvOem.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.colCheck,
|
||||
|
||||
@@ -194,5 +194,11 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
}
|
||||
}, cancellationTokenSource.Token);
|
||||
}
|
||||
|
||||
private void btnClear_Click(object sender, EventArgs e)
|
||||
{
|
||||
txtSearchOemId.Text = "";
|
||||
txtSearchOemName.Text = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,15 @@
|
||||
using AllBase;
|
||||
using AllBase.Extension;
|
||||
using AllBase.Helper;
|
||||
using AllBase.Model.Config;
|
||||
using AllBase.Model.Param.WXParam;
|
||||
using AllBase.Model.Result;
|
||||
using AllBase.Model.Result.PDDResult;
|
||||
using AllBase.Model.Result.WXResult;
|
||||
using CefSharp;
|
||||
using NaiBa.Util;
|
||||
using NaiBa.Util.Extension;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -12,25 +20,18 @@ using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using TemuKJD.Extension;
|
||||
using TemuKJD.BaseForms;
|
||||
using TemuKJD.ToolForms;
|
||||
using Work;
|
||||
using TemuKJD.BLL;
|
||||
using System.Text.RegularExpressions;
|
||||
using TemuKJD.Extension;
|
||||
using TemuKJD.PDDForms.ProductSelectForms;
|
||||
using TemuKJD.ToolForms;
|
||||
using TemuKJD.WXForms.ShopForms;
|
||||
using AllBase.Model.Result.PDDResult;
|
||||
using AllBase.Model.Param.WXParam;
|
||||
using AllBase.Model.Result.WXResult;
|
||||
using Newtonsoft.Json;
|
||||
using NaiBa.Util;
|
||||
using AllBase.Model.Config;
|
||||
using CefSharp;
|
||||
using AllBase.Extension;
|
||||
using Work;
|
||||
using static System.Net.Mime.MediaTypeNames;
|
||||
|
||||
namespace TemuKJD.WXForms.ProductForms
|
||||
{
|
||||
@@ -4601,16 +4602,41 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
bookStr += address + "\r\n" + "\r\n";
|
||||
bookStr += Storage + "\r\n" + "\r\n";
|
||||
|
||||
var bookImg = new Bitmap(800, 800);
|
||||
int width = 800;
|
||||
int height = 1000;
|
||||
var bookImg = new Bitmap(width, height);
|
||||
using (Graphics g = Graphics.FromImage(bookImg))
|
||||
{
|
||||
g.Clear(Color.White);
|
||||
//Font font = new Font("宋体", 15, FontStyle.Bold);
|
||||
Font font = new Font("微软雅黑", 15, FontStyle.Regular);
|
||||
Brush textBrush = Brushes.Black;
|
||||
g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
|
||||
RectangleF rectF = new RectangleF(80, 80, 800 - 80, 800 - 80);
|
||||
g.DrawString(bookStr, font, textBrush, rectF);
|
||||
g.Clear(Color.Gray);
|
||||
|
||||
Brush borderBrush = Brushes.Gray;
|
||||
Brush contentBrush = Brushes.White;
|
||||
g.FillRectangle(contentBrush, new RectangleF(8, 8, width - 16, height - 16));
|
||||
g.FillRectangle(borderBrush, new RectangleF(18, 18, width - 36, height - 36));
|
||||
g.FillRectangle(contentBrush, new RectangleF(22, 22, width - 44, height - 44));
|
||||
g.FillRectangle(borderBrush, new RectangleF(40, 140, width - 80, 4));
|
||||
|
||||
SizeF textSize;
|
||||
{
|
||||
Font font = new Font("微软雅黑", 30, FontStyle.Regular);
|
||||
Brush textBrush = Brushes.DarkRed;
|
||||
g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
|
||||
// 测量文本的宽度
|
||||
textSize = g.MeasureString("商 品 标 签", font);
|
||||
float x = (width - textSize.Width) / 2;
|
||||
|
||||
RectangleF rectF = new RectangleF(x, 50, width - x, height - 200);
|
||||
g.DrawString("商 品 标 签", font, textBrush, rectF);
|
||||
}
|
||||
|
||||
{
|
||||
//Font font = new Font("宋体", 15, FontStyle.Bold);
|
||||
Font font = new Font("微软雅黑", 15, FontStyle.Regular);
|
||||
Brush textBrush = Brushes.Black;
|
||||
g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
|
||||
RectangleF rectF = new RectangleF(80, 120 + textSize.Height, width - 160, height - 80 - 120 - textSize.Height);
|
||||
g.DrawString(bookStr, font, textBrush, rectF);
|
||||
}
|
||||
}
|
||||
|
||||
Thread.Sleep(Randomx.GetId(500, 800));
|
||||
@@ -5674,8 +5700,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
}
|
||||
}));
|
||||
var html = GetHtml.PostUtf8(url, data);
|
||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||
html = GetHtml.PostUtf8(url, data);
|
||||
//if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||
// html = GetHtml.PostUtf8(url, data);
|
||||
//if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||
// html = GetHtml.PostUtf8(url, data);
|
||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||
|
||||
Reference in new issue
Block a user