退货包裹计费功能 活动查询已报名商品 优化清理无流量 插旗等相关服务
This commit is contained in:
1 parent
3611d9a8e9
commit
99237fae41
25 files changed
+1477
-256
No files matched your search
@@ -275,6 +275,7 @@ namespace Work._29Tools.Forms.UserForms
|
||||
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");
|
||||
@@ -303,6 +304,8 @@ namespace Work._29Tools.Forms.UserForms
|
||||
"+",
|
||||
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" ? "添加店铺" : "",
|
||||
"编辑",
|
||||
"删除");
|
||||
|
||||
+172
@@ -64,6 +64,14 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
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();
|
||||
@@ -119,6 +127,8 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
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.editColumn = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.deleteColumn = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.btnExportShopErp = new DevComponents.DotNetBar.PanelEx();
|
||||
@@ -131,6 +141,9 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
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();
|
||||
@@ -484,6 +497,7 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
//
|
||||
// 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);
|
||||
@@ -497,6 +511,131 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
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 = 13;
|
||||
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;
|
||||
@@ -1017,6 +1156,8 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
this.colBalancePlus,
|
||||
this.colPostagePerOrder,
|
||||
this.colChangePostagePerOrder,
|
||||
this.colRefundPostagePerOrder,
|
||||
this.colChangeRefundPostagePerOrder,
|
||||
this.editColumn,
|
||||
this.deleteColumn});
|
||||
this.dgvUser.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
@@ -1200,6 +1341,22 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
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;
|
||||
this.colChangeRefundPostagePerOrder.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colChangeRefundPostagePerOrder.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
//
|
||||
// editColumn
|
||||
//
|
||||
this.editColumn.FillWeight = 40F;
|
||||
@@ -1265,6 +1422,11 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
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);
|
||||
@@ -1355,6 +1517,14 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.TextBox txtCompany;
|
||||
private System.Windows.Forms.Label label3;
|
||||
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;
|
||||
@@ -1377,6 +1547,8 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
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 editColumn;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn deleteColumn;
|
||||
}
|
||||
|
||||
@@ -125,7 +125,8 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
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");
|
||||
@@ -154,6 +155,8 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
"+",
|
||||
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" ? "添加店铺" : "",
|
||||
"编辑",
|
||||
"删除");
|
||||
@@ -198,6 +201,7 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
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();
|
||||
var row = dgvUser.Rows[e.RowIndex];
|
||||
if (columText == "编辑")
|
||||
{
|
||||
@@ -256,6 +260,15 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
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;
|
||||
}
|
||||
}
|
||||
if (columText == "")
|
||||
row.Cells["colSelect"].Value = !row.Cells["colSelect"].Value.ParseToBool();
|
||||
@@ -300,6 +313,7 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
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.txtSearch.GotFocus += TxtSearch_GotFocus;
|
||||
this.txtSearch.LostFocus += TxtSearch_LostFocus;
|
||||
@@ -504,5 +518,44 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
{
|
||||
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="editColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
|
||||
Reference in new issue
Block a user