退货包裹计费功能 活动查询已报名商品 优化清理无流量 插旗等相关服务

This commit is contained in:
wule committed 2026-08-12 21:46:33 +08:00
1 parent 3611d9a8e9
commit 99237fae41
25 files changed
+1477 -256

No files matched your search

@@ -239,6 +239,7 @@ namespace TemuKJD.WXForms.AdminForms
user.balance = BaseRegex.GetDecimalJson(ref oStr, "balance");
user.shop_points_per_month = BaseRegex.GetIntJson(ref oStr, "shop_points_per_month");
user.postage_per_order = BaseRegex.GetDecimalJson(ref oStr, "postage_per_order");
user.refund_postage_per_order = BaseRegex.GetDecimalJson(ref oStr, "refund_postage_per_order");
user.oem_id = BaseRegex.GetStringJson(ref oStr, "oem_id");
user.oem_name = BaseRegex.GetStringJson(ref oStr, "oem_name");
var parent_user_name = BaseRegex.GetStringJson(ref oStr, "parent_user_name");
@@ -268,6 +269,8 @@ namespace TemuKJD.WXForms.AdminForms
"+",
Math.Max(2.2m, user.postage_per_order.ParseToDecimal()),
(user.group_id == "3") ? "改" : null,
Math.Max(2.5m, user.refund_postage_per_order.ParseToDecimal()),
(user.group_id == "3") ? "改" : null,
user.group_id == "3" ? "添加店铺" : "",
"编辑",
"删除");
+269 -87
View File
@@ -30,11 +30,13 @@ namespace TemuKJD.WXForms.AdminForms
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
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();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
this.splitContainer5 = new System.Windows.Forms.SplitContainer();
this.pnlSuperManage = new System.Windows.Forms.Panel();
this.chkActivityStock = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.chkSpBrand = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.label10 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.txtOemId = new System.Windows.Forms.TextBox();
@@ -84,6 +86,14 @@ namespace TemuKJD.WXForms.AdminForms
this.label4 = new System.Windows.Forms.Label();
this.txtSearch = new System.Windows.Forms.TextBox();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.pnlRefundPostagePerOrder = new System.Windows.Forms.Panel();
this.lblRefundPostagePerOrderUserId = new System.Windows.Forms.Label();
this.lblRefundPostagePerOrderUserInfo = new System.Windows.Forms.Label();
this.panel6 = new System.Windows.Forms.Panel();
this.numRefundPostagePerOrder = new System.Windows.Forms.NumericUpDown();
this.label18 = new System.Windows.Forms.Label();
this.btnRefundPostagePerOrderCancel = new DevComponents.DotNetBar.PanelEx();
this.btnRefundPostagePerOrder = new DevComponents.DotNetBar.PanelEx();
this.pnlPostagePerOrder = new System.Windows.Forms.Panel();
this.lblPostagePerOrderUserId = new System.Windows.Forms.Label();
this.lblPostagePerOrderUserInfo = new System.Windows.Forms.Label();
@@ -121,6 +131,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.colCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.UserIdColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.UserNickNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -143,11 +154,11 @@ namespace TemuKJD.WXForms.AdminForms
this.colBalancePlus = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colPostagePerOrder = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colChangePostagePerOrder = new System.Windows.Forms.DataGridViewLinkColumn();
this.colRefundPostagePerOrder = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colChangeRefundPostagePerOrder = new System.Windows.Forms.DataGridViewLinkColumn();
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.chkSpBrand = new TemuKJD.UserComponent.UcCheckBox(this.components);
((System.ComponentModel.ISupportInitialize)(this.splitContainer5)).BeginInit();
this.splitContainer5.Panel1.SuspendLayout();
this.splitContainer5.Panel2.SuspendLayout();
@@ -157,6 +168,9 @@ namespace TemuKJD.WXForms.AdminForms
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
this.pnlRefundPostagePerOrder.SuspendLayout();
this.panel6.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numRefundPostagePerOrder)).BeginInit();
this.pnlPostagePerOrder.SuspendLayout();
this.panel5.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numPostagePerOrder)).BeginInit();
@@ -203,6 +217,7 @@ namespace TemuKJD.WXForms.AdminForms
this.pnlSuperManage.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.pnlSuperManage.Controls.Add(this.chkActivityStock);
this.pnlSuperManage.Controls.Add(this.chkSpBrand);
this.pnlSuperManage.Controls.Add(this.label10);
this.pnlSuperManage.Controls.Add(this.label5);
@@ -253,11 +268,29 @@ namespace TemuKJD.WXForms.AdminForms
this.pnlSuperManage.Size = new System.Drawing.Size(333, 623);
this.pnlSuperManage.TabIndex = 851;
//
// chkActivityStock
//
this.chkActivityStock.Location = new System.Drawing.Point(175, 474);
this.chkActivityStock.Name = "chkActivityStock";
this.chkActivityStock.Size = new System.Drawing.Size(68, 21);
this.chkActivityStock.TabIndex = 852;
this.chkActivityStock.Text = "活动库存";
this.chkActivityStock.UseVisualStyleBackColor = true;
//
// chkSpBrand
//
this.chkSpBrand.Location = new System.Drawing.Point(95, 474);
this.chkSpBrand.Name = "chkSpBrand";
this.chkSpBrand.Size = new System.Drawing.Size(68, 21);
this.chkSpBrand.TabIndex = 848;
this.chkSpBrand.Text = "定向品牌";
this.chkSpBrand.UseVisualStyleBackColor = true;
//
// label10
//
this.label10.AutoSize = true;
this.label10.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label10.Location = new System.Drawing.Point(10, 306);
this.label10.Location = new System.Drawing.Point(10, 294);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(79, 20);
this.label10.TabIndex = 844;
@@ -275,7 +308,7 @@ namespace TemuKJD.WXForms.AdminForms
//
// txtOemId
//
this.txtOemId.Location = new System.Drawing.Point(95, 305);
this.txtOemId.Location = new System.Drawing.Point(95, 293);
this.txtOemId.Name = "txtOemId";
this.txtOemId.Size = new System.Drawing.Size(148, 23);
this.txtOemId.TabIndex = 843;
@@ -309,7 +342,7 @@ namespace TemuKJD.WXForms.AdminForms
//
this.label39.AutoSize = true;
this.label39.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label39.Location = new System.Drawing.Point(24, 144);
this.label39.Location = new System.Drawing.Point(24, 142);
this.label39.Name = "label39";
this.label39.Size = new System.Drawing.Size(65, 20);
this.label39.TabIndex = 20;
@@ -317,14 +350,14 @@ namespace TemuKJD.WXForms.AdminForms
//
// txtMobile
//
this.txtMobile.Location = new System.Drawing.Point(95, 143);
this.txtMobile.Location = new System.Drawing.Point(95, 141);
this.txtMobile.Name = "txtMobile";
this.txtMobile.Size = new System.Drawing.Size(148, 23);
this.txtMobile.TabIndex = 21;
//
// chkTraineeData
//
this.chkTraineeData.Location = new System.Drawing.Point(175, 456);
this.chkTraineeData.Location = new System.Drawing.Point(175, 445);
this.chkTraineeData.Name = "chkTraineeData";
this.chkTraineeData.Size = new System.Drawing.Size(68, 21);
this.chkTraineeData.TabIndex = 829;
@@ -335,7 +368,7 @@ namespace TemuKJD.WXForms.AdminForms
//
this.label38.AutoSize = true;
this.label38.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label38.Location = new System.Drawing.Point(38, 176);
this.label38.Location = new System.Drawing.Point(38, 172);
this.label38.Name = "label38";
this.label38.Size = new System.Drawing.Size(51, 20);
this.label38.TabIndex = 22;
@@ -351,7 +384,7 @@ namespace TemuKJD.WXForms.AdminForms
//
// txtPassword
//
this.txtPassword.Location = new System.Drawing.Point(95, 175);
this.txtPassword.Location = new System.Drawing.Point(95, 171);
this.txtPassword.Name = "txtPassword";
this.txtPassword.PasswordChar = '*';
this.txtPassword.Size = new System.Drawing.Size(148, 23);
@@ -385,7 +418,7 @@ namespace TemuKJD.WXForms.AdminForms
//
this.label37.AutoSize = true;
this.label37.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label37.Location = new System.Drawing.Point(38, 241);
this.label37.Location = new System.Drawing.Point(38, 233);
this.label37.Name = "label37";
this.label37.Size = new System.Drawing.Size(51, 20);
this.label37.TabIndex = 25;
@@ -400,7 +433,7 @@ namespace TemuKJD.WXForms.AdminForms
"上货",
"数据",
"登录"});
this.cmbGroup.Location = new System.Drawing.Point(95, 239);
this.cmbGroup.Location = new System.Drawing.Point(95, 231);
this.cmbGroup.Name = "cmbGroup";
this.cmbGroup.Size = new System.Drawing.Size(148, 25);
this.cmbGroup.TabIndex = 26;
@@ -420,7 +453,7 @@ namespace TemuKJD.WXForms.AdminForms
//
this.label35.AutoSize = true;
this.label35.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
this.label35.Location = new System.Drawing.Point(249, 146);
this.label35.Location = new System.Drawing.Point(249, 144);
this.label35.Name = "label35";
this.label35.Size = new System.Drawing.Size(13, 17);
this.label35.TabIndex = 28;
@@ -437,7 +470,7 @@ namespace TemuKJD.WXForms.AdminForms
//
this.label34.AutoSize = true;
this.label34.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
this.label34.Location = new System.Drawing.Point(249, 178);
this.label34.Location = new System.Drawing.Point(249, 174);
this.label34.Name = "label34";
this.label34.Size = new System.Drawing.Size(13, 17);
this.label34.TabIndex = 29;
@@ -457,7 +490,7 @@ namespace TemuKJD.WXForms.AdminForms
//
this.label33.AutoSize = true;
this.label33.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
this.label33.Location = new System.Drawing.Point(249, 243);
this.label33.Location = new System.Drawing.Point(249, 235);
this.label33.Name = "label33";
this.label33.Size = new System.Drawing.Size(13, 17);
this.label33.TabIndex = 30;
@@ -465,7 +498,7 @@ namespace TemuKJD.WXForms.AdminForms
//
// chkProdFission
//
this.chkProdFission.Location = new System.Drawing.Point(95, 456);
this.chkProdFission.Location = new System.Drawing.Point(95, 445);
this.chkProdFission.Name = "chkProdFission";
this.chkProdFission.Size = new System.Drawing.Size(68, 21);
this.chkProdFission.TabIndex = 817;
@@ -476,7 +509,7 @@ namespace TemuKJD.WXForms.AdminForms
//
this.label32.AutoSize = true;
this.label32.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label32.Location = new System.Drawing.Point(10, 208);
this.label32.Location = new System.Drawing.Point(10, 202);
this.label32.Name = "label32";
this.label32.Size = new System.Drawing.Size(79, 20);
this.label32.TabIndex = 31;
@@ -484,7 +517,7 @@ namespace TemuKJD.WXForms.AdminForms
//
// chkCommissionUpdate
//
this.chkCommissionUpdate.Location = new System.Drawing.Point(175, 412);
this.chkCommissionUpdate.Location = new System.Drawing.Point(175, 401);
this.chkCommissionUpdate.Name = "chkCommissionUpdate";
this.chkCommissionUpdate.Size = new System.Drawing.Size(68, 21);
this.chkCommissionUpdate.TabIndex = 816;
@@ -493,7 +526,7 @@ namespace TemuKJD.WXForms.AdminForms
//
// txtRePass
//
this.txtRePass.Location = new System.Drawing.Point(95, 207);
this.txtRePass.Location = new System.Drawing.Point(95, 201);
this.txtRePass.Name = "txtRePass";
this.txtRePass.PasswordChar = '*';
this.txtRePass.Size = new System.Drawing.Size(148, 23);
@@ -501,7 +534,7 @@ namespace TemuKJD.WXForms.AdminForms
//
// chkEcWaybill
//
this.chkEcWaybill.Location = new System.Drawing.Point(95, 412);
this.chkEcWaybill.Location = new System.Drawing.Point(95, 401);
this.chkEcWaybill.Name = "chkEcWaybill";
this.chkEcWaybill.Size = new System.Drawing.Size(68, 21);
this.chkEcWaybill.TabIndex = 815;
@@ -512,7 +545,7 @@ namespace TemuKJD.WXForms.AdminForms
//
this.label31.AutoSize = true;
this.label31.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
this.label31.Location = new System.Drawing.Point(249, 210);
this.label31.Location = new System.Drawing.Point(249, 204);
this.label31.Name = "label31";
this.label31.Size = new System.Drawing.Size(13, 17);
this.label31.TabIndex = 32;
@@ -520,7 +553,7 @@ namespace TemuKJD.WXForms.AdminForms
//
// chkHot
//
this.chkHot.Location = new System.Drawing.Point(175, 391);
this.chkHot.Location = new System.Drawing.Point(175, 380);
this.chkHot.Name = "chkHot";
this.chkHot.Size = new System.Drawing.Size(68, 21);
this.chkHot.TabIndex = 814;
@@ -531,7 +564,7 @@ namespace TemuKJD.WXForms.AdminForms
//
this.label30.AutoSize = true;
this.label30.ForeColor = System.Drawing.SystemColors.ButtonShadow;
this.label30.Location = new System.Drawing.Point(265, 146);
this.label30.Location = new System.Drawing.Point(265, 144);
this.label30.Name = "label30";
this.label30.Size = new System.Drawing.Size(56, 17);
this.label30.TabIndex = 33;
@@ -539,7 +572,7 @@ namespace TemuKJD.WXForms.AdminForms
//
// chkShopOptimize
//
this.chkShopOptimize.Location = new System.Drawing.Point(95, 391);
this.chkShopOptimize.Location = new System.Drawing.Point(95, 380);
this.chkShopOptimize.Name = "chkShopOptimize";
this.chkShopOptimize.Size = new System.Drawing.Size(68, 21);
this.chkShopOptimize.TabIndex = 813;
@@ -564,7 +597,7 @@ namespace TemuKJD.WXForms.AdminForms
//
// chkChanceProdCollect
//
this.chkChanceProdCollect.Location = new System.Drawing.Point(175, 433);
this.chkChanceProdCollect.Location = new System.Drawing.Point(175, 422);
this.chkChanceProdCollect.Name = "chkChanceProdCollect";
this.chkChanceProdCollect.Size = new System.Drawing.Size(68, 21);
this.chkChanceProdCollect.TabIndex = 812;
@@ -590,7 +623,7 @@ namespace TemuKJD.WXForms.AdminForms
//
// chkShopPoints
//
this.chkShopPoints.Location = new System.Drawing.Point(95, 434);
this.chkShopPoints.Location = new System.Drawing.Point(95, 423);
this.chkShopPoints.Name = "chkShopPoints";
this.chkShopPoints.Size = new System.Drawing.Size(68, 21);
this.chkShopPoints.TabIndex = 811;
@@ -609,7 +642,7 @@ namespace TemuKJD.WXForms.AdminForms
//
// chkWXShowProdGetFromType
//
this.chkWXShowProdGetFromType.Location = new System.Drawing.Point(175, 370);
this.chkWXShowProdGetFromType.Location = new System.Drawing.Point(175, 359);
this.chkWXShowProdGetFromType.Name = "chkWXShowProdGetFromType";
this.chkWXShowProdGetFromType.Size = new System.Drawing.Size(68, 21);
this.chkWXShowProdGetFromType.TabIndex = 810;
@@ -631,7 +664,7 @@ namespace TemuKJD.WXForms.AdminForms
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label7.Location = new System.Drawing.Point(38, 370);
this.label7.Location = new System.Drawing.Point(38, 359);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(51, 20);
this.label7.TabIndex = 809;
@@ -639,14 +672,14 @@ namespace TemuKJD.WXForms.AdminForms
//
// txtCompany
//
this.txtCompany.Location = new System.Drawing.Point(95, 273);
this.txtCompany.Location = new System.Drawing.Point(95, 263);
this.txtCompany.Name = "txtCompany";
this.txtCompany.Size = new System.Drawing.Size(148, 23);
this.txtCompany.TabIndex = 39;
//
// chkWXComplateProd
//
this.chkWXComplateProd.Location = new System.Drawing.Point(95, 370);
this.chkWXComplateProd.Location = new System.Drawing.Point(95, 359);
this.chkWXComplateProd.Name = "chkWXComplateProd";
this.chkWXComplateProd.Size = new System.Drawing.Size(68, 21);
this.chkWXComplateProd.TabIndex = 808;
@@ -657,7 +690,7 @@ namespace TemuKJD.WXForms.AdminForms
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.Location = new System.Drawing.Point(38, 274);
this.label3.Location = new System.Drawing.Point(38, 264);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(51, 20);
this.label3.TabIndex = 40;
@@ -670,7 +703,7 @@ namespace TemuKJD.WXForms.AdminForms
"普通用户",
"一级超管",
"二级超管"});
this.cmbSaLevel.Location = new System.Drawing.Point(95, 337);
this.cmbSaLevel.Location = new System.Drawing.Point(95, 323);
this.cmbSaLevel.Name = "cmbSaLevel";
this.cmbSaLevel.Size = new System.Drawing.Size(148, 25);
this.cmbSaLevel.TabIndex = 48;
@@ -695,7 +728,7 @@ namespace TemuKJD.WXForms.AdminForms
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label6.Location = new System.Drawing.Point(10, 339);
this.label6.Location = new System.Drawing.Point(10, 325);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(79, 20);
this.label6.TabIndex = 47;
@@ -764,6 +797,7 @@ namespace TemuKJD.WXForms.AdminForms
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.pnlRefundPostagePerOrder);
this.splitContainer1.Panel1.Controls.Add(this.pnlPostagePerOrder);
this.splitContainer1.Panel1.Controls.Add(this.pnlBalance);
this.splitContainer1.Panel1.Controls.Add(this.pnlShopPointsPerMonth);
@@ -777,6 +811,131 @@ namespace TemuKJD.WXForms.AdminForms
this.splitContainer1.SplitterDistance = 620;
this.splitContainer1.TabIndex = 2;
//
// pnlRefundPostagePerOrder
//
this.pnlRefundPostagePerOrder.Anchor = System.Windows.Forms.AnchorStyles.None;
this.pnlRefundPostagePerOrder.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pnlRefundPostagePerOrder.Controls.Add(this.lblRefundPostagePerOrderUserId);
this.pnlRefundPostagePerOrder.Controls.Add(this.lblRefundPostagePerOrderUserInfo);
this.pnlRefundPostagePerOrder.Controls.Add(this.panel6);
this.pnlRefundPostagePerOrder.Location = new System.Drawing.Point(23, 85);
this.pnlRefundPostagePerOrder.Name = "pnlRefundPostagePerOrder";
this.pnlRefundPostagePerOrder.Size = new System.Drawing.Size(360, 146);
this.pnlRefundPostagePerOrder.TabIndex = 12;
this.pnlRefundPostagePerOrder.Visible = false;
//
// lblRefundPostagePerOrderUserId
//
this.lblRefundPostagePerOrderUserId.AutoSize = true;
this.lblRefundPostagePerOrderUserId.Location = new System.Drawing.Point(256, 19);
this.lblRefundPostagePerOrderUserId.Name = "lblRefundPostagePerOrderUserId";
this.lblRefundPostagePerOrderUserId.Size = new System.Drawing.Size(47, 17);
this.lblRefundPostagePerOrderUserId.TabIndex = 457;
this.lblRefundPostagePerOrderUserId.Text = "UserId";
this.lblRefundPostagePerOrderUserId.Visible = false;
//
// lblRefundPostagePerOrderUserInfo
//
this.lblRefundPostagePerOrderUserInfo.AutoSize = true;
this.lblRefundPostagePerOrderUserInfo.Location = new System.Drawing.Point(20, 19);
this.lblRefundPostagePerOrderUserInfo.Name = "lblRefundPostagePerOrderUserInfo";
this.lblRefundPostagePerOrderUserInfo.Size = new System.Drawing.Size(58, 17);
this.lblRefundPostagePerOrderUserInfo.TabIndex = 455;
this.lblRefundPostagePerOrderUserInfo.Text = "UserInfo";
//
// panel6
//
this.panel6.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel6.Controls.Add(this.numRefundPostagePerOrder);
this.panel6.Controls.Add(this.label18);
this.panel6.Controls.Add(this.btnRefundPostagePerOrderCancel);
this.panel6.Controls.Add(this.btnRefundPostagePerOrder);
this.panel6.Location = new System.Drawing.Point(23, 52);
this.panel6.Name = "panel6";
this.panel6.Size = new System.Drawing.Size(310, 57);
this.panel6.TabIndex = 454;
//
// numRefundPostagePerOrder
//
this.numRefundPostagePerOrder.DecimalPlaces = 2;
this.numRefundPostagePerOrder.Location = new System.Drawing.Point(119, 16);
this.numRefundPostagePerOrder.Maximum = new decimal(new int[] {
100000,
0,
0,
0});
this.numRefundPostagePerOrder.Minimum = new decimal(new int[] {
25,
0,
0,
65536});
this.numRefundPostagePerOrder.Name = "numRefundPostagePerOrder";
this.numRefundPostagePerOrder.Size = new System.Drawing.Size(56, 23);
this.numRefundPostagePerOrder.TabIndex = 1;
this.numRefundPostagePerOrder.Value = new decimal(new int[] {
25,
0,
0,
65536});
//
// label18
//
this.label18.AutoSize = true;
this.label18.Location = new System.Drawing.Point(13, 19);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(116, 17);
this.label18.TabIndex = 456;
this.label18.Text = "退货每单运费金额:";
//
// btnRefundPostagePerOrderCancel
//
this.btnRefundPostagePerOrderCancel.CanvasColor = System.Drawing.SystemColors.Control;
this.btnRefundPostagePerOrderCancel.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnRefundPostagePerOrderCancel.DisabledBackColor = System.Drawing.Color.Empty;
this.btnRefundPostagePerOrderCancel.Location = new System.Drawing.Point(238, 16);
this.btnRefundPostagePerOrderCancel.Name = "btnRefundPostagePerOrderCancel";
this.btnRefundPostagePerOrderCancel.Size = new System.Drawing.Size(56, 23);
this.btnRefundPostagePerOrderCancel.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnRefundPostagePerOrderCancel.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnRefundPostagePerOrderCancel.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnRefundPostagePerOrderCancel.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.btnRefundPostagePerOrderCancel.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnRefundPostagePerOrderCancel.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.btnRefundPostagePerOrderCancel.Style.GradientAngle = 90;
this.btnRefundPostagePerOrderCancel.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
this.btnRefundPostagePerOrderCancel.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnRefundPostagePerOrderCancel.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnRefundPostagePerOrderCancel.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnRefundPostagePerOrderCancel.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
this.btnRefundPostagePerOrderCancel.TabIndex = 458;
this.btnRefundPostagePerOrderCancel.Text = "取消";
this.btnRefundPostagePerOrderCancel.Click += new System.EventHandler(this.btnRefundPostagePerOrderCancel_Click);
//
// btnRefundPostagePerOrder
//
this.btnRefundPostagePerOrder.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnRefundPostagePerOrder.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnRefundPostagePerOrder.DisabledBackColor = System.Drawing.Color.Empty;
this.btnRefundPostagePerOrder.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnRefundPostagePerOrder.Location = new System.Drawing.Point(179, 16);
this.btnRefundPostagePerOrder.Name = "btnRefundPostagePerOrder";
this.btnRefundPostagePerOrder.Size = new System.Drawing.Size(56, 23);
this.btnRefundPostagePerOrder.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnRefundPostagePerOrder.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnRefundPostagePerOrder.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnRefundPostagePerOrder.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnRefundPostagePerOrder.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnRefundPostagePerOrder.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnRefundPostagePerOrder.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnRefundPostagePerOrder.Style.GradientAngle = 90;
this.btnRefundPostagePerOrder.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnRefundPostagePerOrder.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnRefundPostagePerOrder.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnRefundPostagePerOrder.TabIndex = 453;
this.btnRefundPostagePerOrder.Text = "确定";
this.btnRefundPostagePerOrder.Click += new System.EventHandler(this.btnRefundPostagePerOrder_Click);
//
// pnlPostagePerOrder
//
this.pnlPostagePerOrder.Anchor = System.Windows.Forms.AnchorStyles.None;
@@ -1313,20 +1472,20 @@ namespace TemuKJD.WXForms.AdminForms
//
this.dgvUser.AllowUserToAddRows = false;
this.dgvUser.AllowUserToDeleteRows = false;
dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
this.dgvUser.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
this.dgvUser.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
this.dgvUser.AutoRowNumber = true;
this.dgvUser.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.dgvUser.BackgroundColor = System.Drawing.Color.White;
this.dgvUser.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvUser.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
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.dgvUser.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.dgvUser.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvUser.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.colCheck,
@@ -1351,6 +1510,8 @@ namespace TemuKJD.WXForms.AdminForms
this.colBalancePlus,
this.colPostagePerOrder,
this.colChangePostagePerOrder,
this.colRefundPostagePerOrder,
this.colChangeRefundPostagePerOrder,
this.colAddShop,
this.editColumn,
this.deleteColumn});
@@ -1365,6 +1526,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);
//
// colCheck
//
this.colCheck.FillWeight = 30F;
@@ -1471,8 +1657,8 @@ namespace TemuKJD.WXForms.AdminForms
//
// colPlus
//
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.colPlus.DefaultCellStyle = dataGridViewCellStyle6;
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.colPlus.DefaultCellStyle = dataGridViewCellStyle3;
this.colPlus.FillWeight = 22F;
this.colPlus.HeaderText = "+";
this.colPlus.Name = "colPlus";
@@ -1520,6 +1706,20 @@ namespace TemuKJD.WXForms.AdminForms
this.colChangePostagePerOrder.Name = "colChangePostagePerOrder";
this.colChangePostagePerOrder.ReadOnly = true;
//
// colRefundPostagePerOrder
//
this.colRefundPostagePerOrder.FillWeight = 60F;
this.colRefundPostagePerOrder.HeaderText = "每单退货快递费";
this.colRefundPostagePerOrder.Name = "colRefundPostagePerOrder";
this.colRefundPostagePerOrder.ReadOnly = true;
//
// colChangeRefundPostagePerOrder
//
this.colChangeRefundPostagePerOrder.FillWeight = 25F;
this.colChangeRefundPostagePerOrder.HeaderText = "改";
this.colChangeRefundPostagePerOrder.Name = "colChangeRefundPostagePerOrder";
this.colChangeRefundPostagePerOrder.ReadOnly = true;
//
// colAddShop
//
this.colAddShop.FillWeight = 70F;
@@ -1545,40 +1745,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);
//
// chkSpBrand
//
this.chkSpBrand.Location = new System.Drawing.Point(95, 478);
this.chkSpBrand.Name = "chkSpBrand";
this.chkSpBrand.Size = new System.Drawing.Size(68, 21);
this.chkSpBrand.TabIndex = 848;
this.chkSpBrand.Text = "定向品牌";
this.chkSpBrand.UseVisualStyleBackColor = true;
//
// WXAdminAccountForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
@@ -1601,6 +1767,11 @@ namespace TemuKJD.WXForms.AdminForms
this.splitContainer1.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
this.pnlRefundPostagePerOrder.ResumeLayout(false);
this.pnlRefundPostagePerOrder.PerformLayout();
this.panel6.ResumeLayout(false);
this.panel6.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.numRefundPostagePerOrder)).EndInit();
this.pnlPostagePerOrder.ResumeLayout(false);
this.pnlPostagePerOrder.PerformLayout();
this.panel5.ResumeLayout(false);
@@ -1712,6 +1883,21 @@ namespace TemuKJD.WXForms.AdminForms
private System.Windows.Forms.Label lblPostagePerOrderUserId;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.TextBox txtOemId;
public System.Windows.Forms.Panel pnlSuperManage;
private System.Windows.Forms.Label lblBalanceUserId;
private System.Windows.Forms.Label lblBalanceNickName;
private System.Windows.Forms.Label lblTopUpNickName;
private System.Windows.Forms.Label lblTopUpUserId;
private UserComponent.UcCheckBox chkSpBrand;
private UserComponent.UcCheckBox chkActivityStock;
private System.Windows.Forms.Panel pnlRefundPostagePerOrder;
private System.Windows.Forms.Label lblRefundPostagePerOrderUserId;
private System.Windows.Forms.Label lblRefundPostagePerOrderUserInfo;
private System.Windows.Forms.Panel panel6;
private System.Windows.Forms.NumericUpDown numRefundPostagePerOrder;
private System.Windows.Forms.Label label18;
private DevComponents.DotNetBar.PanelEx btnRefundPostagePerOrderCancel;
private DevComponents.DotNetBar.PanelEx btnRefundPostagePerOrder;
private System.Windows.Forms.DataGridViewCheckBoxColumn colCheck;
private System.Windows.Forms.DataGridViewTextBoxColumn UserIdColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn UserNickNameColumn;
@@ -1734,14 +1920,10 @@ namespace TemuKJD.WXForms.AdminForms
private System.Windows.Forms.DataGridViewTextBoxColumn colBalancePlus;
private System.Windows.Forms.DataGridViewTextBoxColumn colPostagePerOrder;
private System.Windows.Forms.DataGridViewLinkColumn colChangePostagePerOrder;
private System.Windows.Forms.DataGridViewTextBoxColumn colRefundPostagePerOrder;
private System.Windows.Forms.DataGridViewLinkColumn colChangeRefundPostagePerOrder;
private System.Windows.Forms.DataGridViewLinkColumn colAddShop;
private System.Windows.Forms.DataGridViewLinkColumn editColumn;
private System.Windows.Forms.DataGridViewLinkColumn deleteColumn;
public System.Windows.Forms.Panel pnlSuperManage;
private System.Windows.Forms.Label lblBalanceUserId;
private System.Windows.Forms.Label lblBalanceNickName;
private System.Windows.Forms.Label lblTopUpNickName;
private System.Windows.Forms.Label lblTopUpUserId;
private UserComponent.UcCheckBox chkSpBrand;
}
}
@@ -101,6 +101,8 @@ namespace TemuKJD.WXForms.AdminForms
authority += chkTraineeData.Text + ","; // 学员数据
if (chkSpBrand.Checked)
authority += chkSpBrand.Text + ","; // 定向品牌
if (chkActivityStock.Checked)
authority += chkActivityStock.Text + ","; // 活动库存
data.Append("&authority=" + authority.Trim(','));
string url = BaseClass.BuildObjString("user/add_user");
@@ -169,7 +171,8 @@ namespace TemuKJD.WXForms.AdminForms
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");
user.postage_per_order = BaseRegex.GetDecimalJson(ref oStr, "postage_per_order");
user.postage_per_order = BaseRegex.GetDecimalJson(ref oStr, "postage_per_order");
user.refund_postage_per_order = BaseRegex.GetDecimalJson(ref oStr, "refund_postage_per_order");
user.oem_id = BaseRegex.GetStringJson(ref oStr, "oem_id");
user.oem_name = BaseRegex.GetStringJson(ref oStr, "oem_name");
var parent_user_name = BaseRegex.GetStringJson(ref oStr, "parent_user_name");
@@ -198,6 +201,8 @@ namespace TemuKJD.WXForms.AdminForms
"+",
Math.Max(2.2m, user.postage_per_order.ParseToDecimal()),
(user.group_id == "3") ? "改" : null,
Math.Max(2.5m, user.refund_postage_per_order.ParseToDecimal()),
(user.group_id == "3") ? "改" : null,
user.group_id == "3" ? "添加店铺" : "",
"编辑",
"删除");
@@ -228,6 +233,7 @@ namespace TemuKJD.WXForms.AdminForms
chkChanceProdCollect.Checked = false;
chkTraineeData.Checked = false;
chkSpBrand.Checked = false;
chkActivityStock.Checked = false;
chkShopOptimize.Checked = false;
chkEcWaybill.Checked = false;
chkCommissionUpdate.Checked = false;
@@ -256,6 +262,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();
decimal postagePerOrder = dgvUser.Rows[e.RowIndex].Cells["colPostagePerOrder"].Value.ParseToDecimal();
decimal refundPostagePerOrder = dgvUser.Rows[e.RowIndex].Cells["colRefundPostagePerOrder"].Value.ParseToDecimal();
string oemId = dgvUser.Rows[e.RowIndex].Cells["colOemId"].Value.ParseToString();
var row = dgvUser.Rows[e.RowIndex];
if (columText == "编辑")
@@ -278,6 +285,7 @@ namespace TemuKJD.WXForms.AdminForms
chkChanceProdCollect.Checked = authority.Contains(chkChanceProdCollect.Text);
chkTraineeData.Checked = authority.Contains(chkTraineeData.Text);
chkSpBrand.Checked = authority.Contains(chkSpBrand.Text);
chkActivityStock.Checked = authority.Contains(chkActivityStock.Text);
chkShopOptimize.Checked = authority.Contains(chkShopOptimize.Text);
chkEcWaybill.Checked = authority.Contains(chkEcWaybill.Text);
chkCommissionUpdate.Checked = authority.Contains(chkCommissionUpdate.Text);
@@ -342,6 +350,15 @@ namespace TemuKJD.WXForms.AdminForms
this.pnlPostagePerOrder.BringToFront();
this.lblPostagePerOrderUserId.Text = uid;
}
if (columName == "colChangeRefundPostagePerOrder")
{
this.lblRefundPostagePerOrderUserInfo.Text = mobile + " - " + nickName;
this.numRefundPostagePerOrder.Value = refundPostagePerOrder;
this.pnlRefundPostagePerOrder.Tag = row;
this.pnlRefundPostagePerOrder.Visible = true;
this.pnlRefundPostagePerOrder.BringToFront();
this.lblRefundPostagePerOrderUserId.Text = uid;
}
}
}
@@ -384,6 +401,7 @@ namespace TemuKJD.WXForms.AdminForms
pnlShopPointsPerMonth.Location = new Point(pnlTopUp.Location.X, pnlTopUp.Location.Y);
pnlBalance.Location = new Point(pnlTopUp.Location.X, pnlTopUp.Location.Y);
pnlPostagePerOrder.Location = new Point(pnlTopUp.Location.X, pnlTopUp.Location.Y);
pnlRefundPostagePerOrder.Location = new Point(pnlTopUp.Location.X, pnlTopUp.Location.Y);
this.cmbGroup.Items.Clear();
this.cmbGroup.Items.Add("主账户");
@@ -405,6 +423,8 @@ namespace TemuKJD.WXForms.AdminForms
this.dgvUser.AddMergeColumnHeader(new List<string> { "colBalance", "colBalancePlus" }, "快递余额");
this.dgvUser.AddMergeColumn(new List<string> { "colPostagePerOrder", "colChangePostagePerOrder" });
this.dgvUser.AddMergeColumnHeader(new List<string> { "colPostagePerOrder", "colChangePostagePerOrder" }, "每单快递费");
this.dgvUser.AddMergeColumn(new List<string> { "colRefundPostagePerOrder", "colChangeRefundPostagePerOrder" });
this.dgvUser.AddMergeColumnHeader(new List<string> { "colRefundPostagePerOrder", "colChangeRefundPostagePerOrder" }, "每单退货快递费");
}
private void TxtSearch_LostFocus(object sender, EventArgs e)
@@ -597,5 +617,44 @@ namespace TemuKJD.WXForms.AdminForms
{
pnlPostagePerOrder.Visible = false;
}
private void btnRefundPostagePerOrder_Click(object sender, EventArgs e)
{
if (updateRefundPostagePerOrder(lblRefundPostagePerOrderUserId.Text))
{
pnlRefundPostagePerOrder.Visible = false;
BaseMsgForm.ShowInfo("修改充值用户店铺月费金额成功");
}
}
public bool updateRefundPostagePerOrder(string userDbId, bool showFailBox = true)
{
string url = BaseClass.BuildObjString("user/update_user");
string data = UserLogin.GetSignaturex();
data += "&id=" + userDbId;
data += "&refund_postage_per_order=" + numRefundPostagePerOrder.Value;
string html = GetHtml.PostUtf8(url, data.ToString()).Trim();
if (!html.Contains("\"code\":200"))
{
var msg = BaseRegex.GetStringJsonByRegs(ref html, html, "msg");
if (showFailBox)
{
Invoke(new Action(() => { BaseMsgForm.ShowError(msg); }));
}
return false;
}
var row = dgvUser.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["UserIdColumn"].Value.ParseToString() == userDbId);
if (row != null)
{
Invoke(new Action(() => { row.Cells["colRefundPostagePerOrder"].Value = numRefundPostagePerOrder.Value; }));
}
return true;
}
private void btnRefundPostagePerOrderCancel_Click(object sender, EventArgs e)
{
pnlRefundPostagePerOrder.Visible = false;
}
}
}
@@ -183,6 +183,12 @@
<metadata name="colChangePostagePerOrder.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colRefundPostagePerOrder.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colChangeRefundPostagePerOrder.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>