1打包逻辑优化 2代理逻辑优化 3新的拼多多数据格式支持

This commit is contained in:
wule committed 2026-07-08 12:17:47 +08:00
1 parent f703e15f11
commit 554d1f4b4f
30 files changed
+1400 -82

No files matched your search

+223 -48
View File
@@ -34,6 +34,7 @@ namespace TemuKJD.WXForms.AdminForms
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
this.splitContainer5 = new System.Windows.Forms.SplitContainer();
this.chkTraineeData = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.line2 = new DevComponents.DotNetBar.Controls.Line();
this.btnFilter = new DevComponents.DotNetBar.PanelEx();
this.txtAuth = new System.Windows.Forms.TextBox();
@@ -80,6 +81,14 @@ namespace TemuKJD.WXForms.AdminForms
this.label40 = new System.Windows.Forms.Label();
this.line1 = new DevComponents.DotNetBar.Controls.Line();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.pnlBalance = new System.Windows.Forms.Panel();
this.label13 = new System.Windows.Forms.Label();
this.lblUserBalanceInfo = new System.Windows.Forms.Label();
this.panel4 = new System.Windows.Forms.Panel();
this.numAddBalance = new System.Windows.Forms.NumericUpDown();
this.label12 = new System.Windows.Forms.Label();
this.btnChangeBalanceCancel = new DevComponents.DotNetBar.PanelEx();
this.btnChangeBalanceOK = new DevComponents.DotNetBar.PanelEx();
this.pnlShopPointsPerMonth = new System.Windows.Forms.Panel();
this.lblShopPointsPerMonthUserId = new System.Windows.Forms.Label();
this.lblShopPointsPerMonthUserInfo = new System.Windows.Forms.Label();
@@ -89,6 +98,7 @@ namespace TemuKJD.WXForms.AdminForms
this.btnShopPointsPerMonthCancel = new DevComponents.DotNetBar.PanelEx();
this.btnShopPointsPerMonth = new DevComponents.DotNetBar.PanelEx();
this.pnlTopUp = new System.Windows.Forms.Panel();
this.label14 = new System.Windows.Forms.Label();
this.lblUserInfo = new System.Windows.Forms.Label();
this.panel2 = new System.Windows.Forms.Panel();
this.numAddTopUp = new System.Windows.Forms.NumericUpDown();
@@ -96,6 +106,7 @@ namespace TemuKJD.WXForms.AdminForms
this.btnTopUpCancel = new DevComponents.DotNetBar.PanelEx();
this.btnTopUpOK = new DevComponents.DotNetBar.PanelEx();
this.dgvUser = new TemuKJD.UserComponent.DataGridViewEx();
this.btnExportShopErp = new DevComponents.DotNetBar.PanelEx();
this.UserIdColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.UserNickNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.mobileColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -111,11 +122,11 @@ namespace TemuKJD.WXForms.AdminForms
this.colChangePointsPerMonth = new System.Windows.Forms.DataGridViewLinkColumn();
this.colPoints = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colPlus = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colBalance = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colBalancePlus = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colAddShop = new System.Windows.Forms.DataGridViewLinkColumn();
this.editColumn = new System.Windows.Forms.DataGridViewLinkColumn();
this.deleteColumn = new System.Windows.Forms.DataGridViewLinkColumn();
this.btnExportShopErp = new DevComponents.DotNetBar.PanelEx();
this.chkTraineeData = new TemuKJD.UserComponent.UcCheckBox(this.components);
((System.ComponentModel.ISupportInitialize)(this.splitContainer5)).BeginInit();
this.splitContainer5.Panel1.SuspendLayout();
this.splitContainer5.Panel2.SuspendLayout();
@@ -124,6 +135,9 @@ namespace TemuKJD.WXForms.AdminForms
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
this.pnlBalance.SuspendLayout();
this.panel4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numAddBalance)).BeginInit();
this.pnlShopPointsPerMonth.SuspendLayout();
this.panel3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numShopPointsPerMonth)).BeginInit();
@@ -200,6 +214,15 @@ namespace TemuKJD.WXForms.AdminForms
this.splitContainer5.SplitterWidth = 1;
this.splitContainer5.TabIndex = 3;
//
// chkTraineeData
//
this.chkTraineeData.Location = new System.Drawing.Point(192, 453);
this.chkTraineeData.Name = "chkTraineeData";
this.chkTraineeData.Size = new System.Drawing.Size(68, 21);
this.chkTraineeData.TabIndex = 829;
this.chkTraineeData.Text = "学员数据";
this.chkTraineeData.UseVisualStyleBackColor = true;
//
// line2
//
this.line2.Location = new System.Drawing.Point(12, 98);
@@ -677,6 +700,7 @@ namespace TemuKJD.WXForms.AdminForms
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.pnlBalance);
this.splitContainer1.Panel1.Controls.Add(this.pnlShopPointsPerMonth);
this.splitContainer1.Panel1.Controls.Add(this.pnlTopUp);
this.splitContainer1.Panel1.Controls.Add(this.dgvUser);
@@ -688,6 +712,124 @@ namespace TemuKJD.WXForms.AdminForms
this.splitContainer1.SplitterDistance = 593;
this.splitContainer1.TabIndex = 2;
//
// pnlBalance
//
this.pnlBalance.Anchor = System.Windows.Forms.AnchorStyles.None;
this.pnlBalance.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pnlBalance.Controls.Add(this.label13);
this.pnlBalance.Controls.Add(this.lblUserBalanceInfo);
this.pnlBalance.Controls.Add(this.panel4);
this.pnlBalance.Location = new System.Drawing.Point(269, 64);
this.pnlBalance.Name = "pnlBalance";
this.pnlBalance.Size = new System.Drawing.Size(474, 146);
this.pnlBalance.TabIndex = 10;
this.pnlBalance.Visible = false;
//
// label13
//
this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(388, 5);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(80, 17);
this.label13.TabIndex = 456;
this.label13.Text = "快递余额充值";
//
// lblUserBalanceInfo
//
this.lblUserBalanceInfo.AutoSize = true;
this.lblUserBalanceInfo.Location = new System.Drawing.Point(20, 19);
this.lblUserBalanceInfo.Name = "lblUserBalanceInfo";
this.lblUserBalanceInfo.Size = new System.Drawing.Size(58, 17);
this.lblUserBalanceInfo.TabIndex = 455;
this.lblUserBalanceInfo.Text = "UserInfo";
//
// panel4
//
this.panel4.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.panel4.Controls.Add(this.numAddBalance);
this.panel4.Controls.Add(this.label12);
this.panel4.Controls.Add(this.btnChangeBalanceCancel);
this.panel4.Controls.Add(this.btnChangeBalanceOK);
this.panel4.Location = new System.Drawing.Point(23, 52);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(424, 57);
this.panel4.TabIndex = 454;
//
// numAddBalance
//
this.numAddBalance.DecimalPlaces = 2;
this.numAddBalance.Location = new System.Drawing.Point(180, 16);
this.numAddBalance.Maximum = new decimal(new int[] {
10000,
0,
0,
0});
this.numAddBalance.Minimum = new decimal(new int[] {
10000,
0,
0,
-2147483648});
this.numAddBalance.Name = "numAddBalance";
this.numAddBalance.Size = new System.Drawing.Size(56, 23);
this.numAddBalance.TabIndex = 1;
//
// label12
//
this.label12.AutoSize = true;
this.label12.Location = new System.Drawing.Point(74, 19);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(116, 17);
this.label12.TabIndex = 456;
this.label12.Text = "快递余额充值金额:";
//
// btnChangeBalanceCancel
//
this.btnChangeBalanceCancel.CanvasColor = System.Drawing.SystemColors.Control;
this.btnChangeBalanceCancel.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnChangeBalanceCancel.DisabledBackColor = System.Drawing.Color.Empty;
this.btnChangeBalanceCancel.Location = new System.Drawing.Point(299, 16);
this.btnChangeBalanceCancel.Name = "btnChangeBalanceCancel";
this.btnChangeBalanceCancel.Size = new System.Drawing.Size(56, 23);
this.btnChangeBalanceCancel.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnChangeBalanceCancel.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnChangeBalanceCancel.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnChangeBalanceCancel.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.btnChangeBalanceCancel.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnChangeBalanceCancel.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.btnChangeBalanceCancel.Style.GradientAngle = 90;
this.btnChangeBalanceCancel.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
this.btnChangeBalanceCancel.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnChangeBalanceCancel.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnChangeBalanceCancel.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnChangeBalanceCancel.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
this.btnChangeBalanceCancel.TabIndex = 458;
this.btnChangeBalanceCancel.Text = "取消";
this.btnChangeBalanceCancel.Click += new System.EventHandler(this.btnChangeBalanceCancel_Click);
//
// btnChangeBalanceOK
//
this.btnChangeBalanceOK.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnChangeBalanceOK.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnChangeBalanceOK.DisabledBackColor = System.Drawing.Color.Empty;
this.btnChangeBalanceOK.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnChangeBalanceOK.Location = new System.Drawing.Point(240, 16);
this.btnChangeBalanceOK.Name = "btnChangeBalanceOK";
this.btnChangeBalanceOK.Size = new System.Drawing.Size(56, 23);
this.btnChangeBalanceOK.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnChangeBalanceOK.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnChangeBalanceOK.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnChangeBalanceOK.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnChangeBalanceOK.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnChangeBalanceOK.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnChangeBalanceOK.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnChangeBalanceOK.Style.GradientAngle = 90;
this.btnChangeBalanceOK.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnChangeBalanceOK.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnChangeBalanceOK.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnChangeBalanceOK.TabIndex = 453;
this.btnChangeBalanceOK.Text = "确定";
this.btnChangeBalanceOK.Click += new System.EventHandler(this.btnChangeBalanceOK_Click);
//
// pnlShopPointsPerMonth
//
this.pnlShopPointsPerMonth.Anchor = System.Windows.Forms.AnchorStyles.None;
@@ -815,6 +957,7 @@ namespace TemuKJD.WXForms.AdminForms
//
this.pnlTopUp.Anchor = System.Windows.Forms.AnchorStyles.None;
this.pnlTopUp.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pnlTopUp.Controls.Add(this.label14);
this.pnlTopUp.Controls.Add(this.lblUserInfo);
this.pnlTopUp.Controls.Add(this.panel2);
this.pnlTopUp.Location = new System.Drawing.Point(269, 223);
@@ -823,6 +966,15 @@ namespace TemuKJD.WXForms.AdminForms
this.pnlTopUp.TabIndex = 8;
this.pnlTopUp.Visible = false;
//
// label14
//
this.label14.AutoSize = true;
this.label14.Location = new System.Drawing.Point(388, 5);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(80, 17);
this.label14.TabIndex = 457;
this.label14.Text = "账户积分充值";
//
// lblUserInfo
//
this.lblUserInfo.AutoSize = true;
@@ -864,11 +1016,11 @@ namespace TemuKJD.WXForms.AdminForms
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(98, 19);
this.label8.Location = new System.Drawing.Point(50, 19);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(68, 17);
this.label8.Size = new System.Drawing.Size(116, 17);
this.label8.TabIndex = 456;
this.label8.Text = "充值金额:";
this.label8.Text = "积分账户充值金额:";
//
// btnTopUpCancel
//
@@ -953,6 +1105,8 @@ namespace TemuKJD.WXForms.AdminForms
this.colChangePointsPerMonth,
this.colPoints,
this.colPlus,
this.colBalance,
this.colBalancePlus,
this.colAddShop,
this.editColumn,
this.deleteColumn});
@@ -967,6 +1121,31 @@ namespace TemuKJD.WXForms.AdminForms
this.dgvUser.TabIndex = 1;
this.dgvUser.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvUser_CellContentClick);
//
// btnExportShopErp
//
this.btnExportShopErp.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnExportShopErp.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnExportShopErp.DisabledBackColor = System.Drawing.Color.Empty;
this.btnExportShopErp.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnExportShopErp.Location = new System.Drawing.Point(0, 1);
this.btnExportShopErp.Name = "btnExportShopErp";
this.btnExportShopErp.Size = new System.Drawing.Size(140, 25);
this.btnExportShopErp.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnExportShopErp.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnExportShopErp.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnExportShopErp.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnExportShopErp.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnExportShopErp.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnExportShopErp.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnExportShopErp.Style.GradientAngle = 90;
this.btnExportShopErp.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnExportShopErp.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnExportShopErp.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnExportShopErp.TabIndex = 439;
this.btnExportShopErp.Text = "导出用户到后台系统";
this.btnExportShopErp.Visible = false;
this.btnExportShopErp.Click += new System.EventHandler(this.btnExportShopErp_Click);
//
// UserIdColumn
//
this.UserIdColumn.HeaderText = "id";
@@ -1069,6 +1248,20 @@ namespace TemuKJD.WXForms.AdminForms
this.colPlus.Name = "colPlus";
this.colPlus.ReadOnly = true;
//
// colBalance
//
this.colBalance.FillWeight = 60F;
this.colBalance.HeaderText = "快递余额";
this.colBalance.Name = "colBalance";
this.colBalance.ReadOnly = true;
//
// colBalancePlus
//
this.colBalancePlus.FillWeight = 22F;
this.colBalancePlus.HeaderText = "+";
this.colBalancePlus.Name = "colBalancePlus";
this.colBalancePlus.ReadOnly = true;
//
// colAddShop
//
this.colAddShop.FillWeight = 70F;
@@ -1094,40 +1287,6 @@ namespace TemuKJD.WXForms.AdminForms
this.deleteColumn.Name = "deleteColumn";
this.deleteColumn.ReadOnly = true;
//
// btnExportShopErp
//
this.btnExportShopErp.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnExportShopErp.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnExportShopErp.DisabledBackColor = System.Drawing.Color.Empty;
this.btnExportShopErp.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnExportShopErp.Location = new System.Drawing.Point(0, 1);
this.btnExportShopErp.Name = "btnExportShopErp";
this.btnExportShopErp.Size = new System.Drawing.Size(140, 25);
this.btnExportShopErp.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnExportShopErp.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnExportShopErp.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnExportShopErp.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnExportShopErp.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnExportShopErp.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnExportShopErp.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnExportShopErp.Style.GradientAngle = 90;
this.btnExportShopErp.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnExportShopErp.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnExportShopErp.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnExportShopErp.TabIndex = 439;
this.btnExportShopErp.Text = "导出用户到后台系统";
this.btnExportShopErp.Visible = false;
this.btnExportShopErp.Click += new System.EventHandler(this.btnExportShopErp_Click);
//
// chkTraineeData
//
this.chkTraineeData.Location = new System.Drawing.Point(192, 453);
this.chkTraineeData.Name = "chkTraineeData";
this.chkTraineeData.Size = new System.Drawing.Size(68, 21);
this.chkTraineeData.TabIndex = 829;
this.chkTraineeData.Text = "学员数据";
this.chkTraineeData.UseVisualStyleBackColor = true;
//
// WXAdminAccountForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
@@ -1148,6 +1307,11 @@ namespace TemuKJD.WXForms.AdminForms
this.splitContainer1.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
this.pnlBalance.ResumeLayout(false);
this.pnlBalance.PerformLayout();
this.panel4.ResumeLayout(false);
this.panel4.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.numAddBalance)).EndInit();
this.pnlShopPointsPerMonth.ResumeLayout(false);
this.pnlShopPointsPerMonth.PerformLayout();
this.panel3.ResumeLayout(false);
@@ -1221,6 +1385,24 @@ namespace TemuKJD.WXForms.AdminForms
private System.Windows.Forms.Label label9;
private DevComponents.DotNetBar.Controls.Line line1;
private DevComponents.DotNetBar.Controls.Line line2;
private System.Windows.Forms.Panel pnlShopPointsPerMonth;
private System.Windows.Forms.Label lblShopPointsPerMonthUserInfo;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.NumericUpDown numShopPointsPerMonth;
private System.Windows.Forms.Label label11;
private DevComponents.DotNetBar.PanelEx btnShopPointsPerMonthCancel;
private DevComponents.DotNetBar.PanelEx btnShopPointsPerMonth;
private System.Windows.Forms.Label lblShopPointsPerMonthUserId;
private UserComponent.UcCheckBox chkTraineeData;
private System.Windows.Forms.Panel pnlBalance;
private System.Windows.Forms.Label lblUserBalanceInfo;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.NumericUpDown numAddBalance;
private System.Windows.Forms.Label label12;
private DevComponents.DotNetBar.PanelEx btnChangeBalanceCancel;
private DevComponents.DotNetBar.PanelEx btnChangeBalanceOK;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.DataGridViewTextBoxColumn UserIdColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn UserNickNameColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn mobileColumn;
@@ -1236,17 +1418,10 @@ namespace TemuKJD.WXForms.AdminForms
private System.Windows.Forms.DataGridViewLinkColumn colChangePointsPerMonth;
private System.Windows.Forms.DataGridViewTextBoxColumn colPoints;
private System.Windows.Forms.DataGridViewTextBoxColumn colPlus;
private System.Windows.Forms.DataGridViewTextBoxColumn colBalance;
private System.Windows.Forms.DataGridViewTextBoxColumn colBalancePlus;
private System.Windows.Forms.DataGridViewLinkColumn colAddShop;
private System.Windows.Forms.DataGridViewLinkColumn editColumn;
private System.Windows.Forms.DataGridViewLinkColumn deleteColumn;
private System.Windows.Forms.Panel pnlShopPointsPerMonth;
private System.Windows.Forms.Label lblShopPointsPerMonthUserInfo;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.NumericUpDown numShopPointsPerMonth;
private System.Windows.Forms.Label label11;
private DevComponents.DotNetBar.PanelEx btnShopPointsPerMonthCancel;
private DevComponents.DotNetBar.PanelEx btnShopPointsPerMonth;
private System.Windows.Forms.Label lblShopPointsPerMonthUserId;
private UserComponent.UcCheckBox chkTraineeData;
}
}
@@ -163,8 +163,8 @@ namespace TemuKJD.WXForms.AdminForms
user.company_name = BaseRegex.GetStringJson(ref oStr, "company_name");
user.sa_level = BaseRegex.GetIntJson(ref oStr, "sa_level");
user.authority = BaseRegex.GetStringJson(ref oStr, "authority");
user.group_id = BaseRegex.GetStringJson(ref oStr, "group_id");
user.points = BaseRegex.GetIntJson(ref oStr, "points");
user.balance = BaseRegex.GetDecimalJson(ref oStr, "balance");
user.shop_points_per_month = BaseRegex.GetIntJson(ref oStr, "shop_points_per_month");
var parent_user_name = BaseRegex.GetStringJson(ref oStr, "parent_user_name");
@@ -185,6 +185,8 @@ namespace TemuKJD.WXForms.AdminForms
(user.authority.Contains("充值用户") && user.group_id == "3") ? "改" : null,
(user.authority.Contains("充值用户") && user.group_id == "3") ? (int?)user.points : null,
(user.authority.Contains("充值用户") && user.group_id == "3") ? "+" : null,
user.balance.ParseToDecimal(),
"+",
user.group_id == "3" ? "添加店铺" : "",
"编辑",
"删除");
@@ -230,7 +232,8 @@ namespace TemuKJD.WXForms.AdminForms
{
if (e.ColumnIndex < 0 || e.RowIndex < 0)
return;
string columname = dgvUser.Columns[e.ColumnIndex].HeaderText;
string columText = dgvUser.Columns[e.ColumnIndex].HeaderText;
string columName = dgvUser.Columns[e.ColumnIndex].Name;
string uid = dgvUser.Rows[e.RowIndex].Cells["UseridColumn"].Value.ToString();
string nickName = dgvUser.Rows[e.RowIndex].Cells["UserNickNameColumn"].Value.ToString();
string mobile = dgvUser.Rows[e.RowIndex].Cells["mobileColumn"].Value.ToString();
@@ -240,7 +243,7 @@ namespace TemuKJD.WXForms.AdminForms
string authority = dgvUser.Rows[e.RowIndex].Cells["colAuthority"].Value.ParseToString();
int shopPointsPerMonth = dgvUser.Rows[e.RowIndex].Cells["colShopPointsPerMonth"].Value.ParseToInt();
var row = dgvUser.Rows[e.RowIndex];
if (columname == "编辑")
if (columText == "编辑")
{
Uid = uid;
txtNickName.Text = nickName;
@@ -263,14 +266,14 @@ namespace TemuKJD.WXForms.AdminForms
chkHot.Checked = authority.Contains(chkHot.Text);
chkWXShowProdGetFromType.Checked = authority.Contains(chkWXShowProdGetFromType.Text);
}
if (columname == "删除")
if (columText == "删除")
{
if (BaseMsgForm.ShowConfirm("是否删除,删除后无法再次添加", "提示").DialogResult == DialogResult.OK)
{
Delete(uid);
}
}
if (columname == "添加店铺")
if (columText == "添加店铺")
{
WXAdminShopListForm shopListForm = new WXAdminShopListForm();
shopListForm.UserAccountInfo = AllUsers.FirstOrDefault(u => u.user_name == mobile);
@@ -278,14 +281,24 @@ namespace TemuKJD.WXForms.AdminForms
shopListForm.btnAddToAccount.Visible = true;
shopListForm.ShowDialog();
}
if (columname == "+")
if (columText == "+")
{
this.lblUserInfo.Text = mobile + " - " + nickName;
this.numAddTopUp.Value = 0;
this.pnlTopUp.Tag = row;
this.pnlTopUp.Visible = true;
if (columName == "colPlus")
{
this.lblUserInfo.Text = mobile + " - " + nickName;
this.numAddTopUp.Value = 0;
this.pnlTopUp.Tag = row;
this.pnlTopUp.Visible = true;
}
if (columName == "colBalancePlus")
{
this.lblUserBalanceInfo.Text = mobile + " - " + nickName;
this.numAddBalance.Value = 0;
this.pnlBalance.Tag = row;
this.pnlBalance.Visible = true;
}
}
if (columname == "改")
if (columText == "改")
{
this.lblShopPointsPerMonthUserInfo.Text = mobile + " - " + nickName;
this.numShopPointsPerMonth.Value = shopPointsPerMonth;
@@ -330,6 +343,7 @@ namespace TemuKJD.WXForms.AdminForms
private void MainAccountForm_Load(object sender, EventArgs e)
{
pnlShopPointsPerMonth.Location = new Point(pnlTopUp.Location.X, pnlTopUp.Location.Y);
pnlBalance.Location = new Point(pnlTopUp.Location.X, pnlTopUp.Location.Y);
this.cmbGroup.Items.Clear();
this.cmbGroup.Items.Add("主账户");
@@ -347,6 +361,8 @@ namespace TemuKJD.WXForms.AdminForms
this.dgvUser.AddMergeColumnHeader(new List<string> { "colShopPointsPerMonth", "colChangePointsPerMonth" }, "月费耗点");
this.dgvUser.AddMergeColumn(new List<string> { "colPoints", "colPlus" });
this.dgvUser.AddMergeColumnHeader(new List<string> { "colPoints", "colPlus" }, "积分点数");
this.dgvUser.AddMergeColumn(new List<string> { "colBalance", "colBalancePlus" });
this.dgvUser.AddMergeColumnHeader(new List<string> { "colBalance", "colBalancePlus" }, "快递余额");
}
private void TxtSearch_LostFocus(object sender, EventArgs e)
@@ -457,5 +473,36 @@ namespace TemuKJD.WXForms.AdminForms
pnlShopPointsPerMonth.Visible = false;
BaseMsgForm.ShowInfo("修改充值用户店铺月费金额成功");
}
private void btnChangeBalanceOK_Click(object sender, EventArgs e)
{
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 += "&option_type=" + "充值";
data += "&operator_name=" + BaseClass.UserName;
data += "&delta_balance=" + numAddBalance.Value;
string html = GetHtml.PostUtf8(url, data.ToString()).Trim();
if (!html.Contains("\"code\":200"))
{
var msg = BaseRegex.GetStringJsonByRegs(ref html, html, "msg");
BaseMsgForm.ShowError(msg);
return;
}
var row = pnlBalance.Tag as DataGridViewRow;
if (row != null)
{
row.Cells["colBalance"].Value = row.Cells["colBalance"].Value.ParseToDecimal() + numAddBalance.Value;
}
pnlBalance.Visible = false;
BaseMsgForm.ShowInfo("充值成功");
}
private void btnChangeBalanceCancel_Click(object sender, EventArgs e)
{
pnlBalance.Visible = false;
}
}
}
@@ -162,6 +162,12 @@
<metadata name="colPlus.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colBalance.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colBalancePlus.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colAddShop.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>