拼多多以图搜款上货 70% 拼多多接口上货和活动报名sku优化 微信店铺统计优化

This commit is contained in:
wule committed 2026-04-21 11:57:22 +08:00
1 parent 90d40a6fd4
commit 79a752027a
20 files changed
+1481 -263

No files matched your search

+9 -13
View File
@@ -32,19 +32,13 @@ namespace TemuKJD.WXForms.ShopForms
#region 服务端店铺管理
public static void UpdateShop()
{
// 获取本地店铺和服务端店铺。将服务端相关信息与本地店铺合并后暂时存在内存中(不保存敏感信息)。
GlobalConfig.ShopLoginList = new ConcurrentList<ShopLoginInfo>();
// 获取服务端店铺
var serverShopList = WXShopListForm.GetServerShop();
var localShopList = new ConcurrentList<ShopLoginInfo>();
localShopList.AddRange(serverShopList);
foreach (var localShop in localShopList)
GlobalConfig.ShopLoginList.RemoveAll(s => serverShopList.Any(ss => ss.LoginName == s.LoginName && ss.ShopId == s.ShopId));
foreach (var serverShop in serverShopList)
{
if (GlobalConfig.ShopLoginList.Any(s => s.LoginName == localShop.LoginName && s.ShopId == localShop.ShopId))
continue;
var serverShop = serverShopList.FirstOrDefault(s => s.LoginName == localShop.LoginName && s.ShopId == localShop.ShopId);
if (serverShop != null)
var localShop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.LoginName == serverShop.LoginName && s.ShopId == serverShop.ShopId);
if (localShop != null)
{
localShop.ShopAccount = serverShop.ShopAccount;
localShop.LoginName = serverShop.LoginName;
@@ -68,9 +62,11 @@ namespace TemuKJD.WXForms.ShopForms
localShop.AntiContents = serverShop.AntiContents;
localShop.AddProductRemaining = serverShop.AddProductRemaining;
localShop.OperateSubSaName = serverShop.OperateSubSaName;
if (localShop.TrialUploadCount < 0)
localShop.TrialUploadCount = 0;
GlobalConfig.ShopLoginList.Add(localShop);
localShop.TrialUploadCount = Math.Max(0, serverShop.TrialUploadCount);
}
else
{
GlobalConfig.ShopLoginList.Add(serverShop);
}
}
}
+228 -109
View File
@@ -86,6 +86,12 @@ namespace TemuKJD.WXForms.ShopForms
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx();
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
this.label20 = new System.Windows.Forms.Label();
this.lblPay1 = new System.Windows.Forms.Label();
this.label21 = new System.Windows.Forms.Label();
this.lblPayCnt1 = new System.Windows.Forms.Label();
this.label22 = new System.Windows.Forms.Label();
this.lblPayRefund1 = new System.Windows.Forms.Label();
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.colLoginStatus = new System.Windows.Forms.DataGridViewLinkColumn();
this.colDetail = new System.Windows.Forms.DataGridViewLinkColumn();
@@ -97,12 +103,15 @@ namespace TemuKJD.WXForms.ShopForms
this.colOnSaleProductNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colScore = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colPayCnt = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colPayCnt1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colPayCnt7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colPayCnt30 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colPay = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colPay1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colPay7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colPay30 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colRefund = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colRefund1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colRefund7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colRefund30 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colOrderNum = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -147,7 +156,7 @@ namespace TemuKJD.WXForms.ShopForms
//
this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
this.splitContainer1.Panel2.Margin = new System.Windows.Forms.Padding(4);
this.splitContainer1.Size = new System.Drawing.Size(1446, 450);
this.splitContainer1.Size = new System.Drawing.Size(1235, 597);
this.splitContainer1.SplitterDistance = 140;
this.splitContainer1.TabIndex = 35;
//
@@ -166,7 +175,7 @@ namespace TemuKJD.WXForms.ShopForms
this.ucGroupBoxEx3.Controls.Add(this.pnlFliter);
this.ucGroupBoxEx3.Controls.Add(this.btnSetColumn);
this.ucGroupBoxEx3.Controls.Add(this.btnGetNotGet);
this.ucGroupBoxEx3.Location = new System.Drawing.Point(1213, 2);
this.ucGroupBoxEx3.Location = new System.Drawing.Point(1002, 2);
this.ucGroupBoxEx3.Name = "ucGroupBoxEx3";
this.ucGroupBoxEx3.Size = new System.Drawing.Size(230, 140);
this.ucGroupBoxEx3.TabIndex = 668;
@@ -350,7 +359,7 @@ namespace TemuKJD.WXForms.ShopForms
this.ucGroupBoxEx1.Controls.Add(this.tableLayoutPanel1);
this.ucGroupBoxEx1.Location = new System.Drawing.Point(2, 2);
this.ucGroupBoxEx1.Name = "ucGroupBoxEx1";
this.ucGroupBoxEx1.Size = new System.Drawing.Size(1211, 140);
this.ucGroupBoxEx1.Size = new System.Drawing.Size(1000, 140);
this.ucGroupBoxEx1.TabIndex = 667;
this.ucGroupBoxEx1.TabStop = false;
this.ucGroupBoxEx1.Text = "统计汇总";
@@ -360,50 +369,57 @@ namespace TemuKJD.WXForms.ShopForms
this.tableLayoutPanel1.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.tableLayoutPanel1.ColumnCount = 9;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11005F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11005F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11005F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11005F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11005F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11005F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11227F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.1137F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.1137F));
this.tableLayoutPanel1.Controls.Add(this.label17, 4, 2);
this.tableLayoutPanel1.Controls.Add(this.label16, 8, 0);
this.tableLayoutPanel1.Controls.Add(this.label15, 7, 0);
this.tableLayoutPanel1.Controls.Add(this.lblPayRefund30, 8, 1);
this.tableLayoutPanel1.Controls.Add(this.lblPayRefund7, 7, 1);
this.tableLayoutPanel1.Controls.Add(this.lblPayRefund, 6, 1);
this.tableLayoutPanel1.Controls.Add(this.label13, 6, 0);
this.tableLayoutPanel1.Controls.Add(this.lblOrderNum, 0, 3);
this.tableLayoutPanel1.Controls.Add(this.lblPayCnt30, 2, 1);
this.tableLayoutPanel1.Controls.Add(this.label12, 5, 0);
this.tableLayoutPanel1.Controls.Add(this.lblPayCnt7, 1, 1);
this.tableLayoutPanel1.Controls.Add(this.label2, 1, 0);
this.tableLayoutPanel1.ColumnCount = 10;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 9.999151F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 9.99915F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 9.99915F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 9.99915F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 9.99915F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 9.99915F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 10.00115F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 10.00244F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 10.00244F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 9.999105F));
this.tableLayoutPanel1.Controls.Add(this.lblPayRefund1, 9, 1);
this.tableLayoutPanel1.Controls.Add(this.label22, 9, 0);
this.tableLayoutPanel1.Controls.Add(this.lblPayCnt1, 1, 1);
this.tableLayoutPanel1.Controls.Add(this.label21, 1, 0);
this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.lblPayCnt, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.lblPay30, 5, 1);
this.tableLayoutPanel1.Controls.Add(this.label10, 4, 0);
this.tableLayoutPanel1.Controls.Add(this.lblPay7, 4, 1);
this.tableLayoutPanel1.Controls.Add(this.label9, 3, 0);
this.tableLayoutPanel1.Controls.Add(this.lblPay, 3, 1);
this.tableLayoutPanel1.Controls.Add(this.label11, 2, 0);
this.tableLayoutPanel1.Controls.Add(this.lblAvailableAmount, 5, 3);
this.tableLayoutPanel1.Controls.Add(this.label7, 5, 2);
this.tableLayoutPanel1.Controls.Add(this.label5, 3, 2);
this.tableLayoutPanel1.Controls.Add(this.lblPunish, 3, 3);
this.tableLayoutPanel1.Controls.Add(this.lblAfterSaleAll, 2, 3);
this.tableLayoutPanel1.Controls.Add(this.label4, 2, 2);
this.tableLayoutPanel1.Controls.Add(this.lblWaybillError, 1, 3);
this.tableLayoutPanel1.Controls.Add(this.label3, 1, 2);
this.tableLayoutPanel1.Controls.Add(this.label14, 0, 2);
this.tableLayoutPanel1.Controls.Add(this.label8, 6, 2);
this.tableLayoutPanel1.Controls.Add(this.lblPendingAmount, 6, 3);
this.tableLayoutPanel1.Controls.Add(this.lblDepositBalance, 7, 3);
this.tableLayoutPanel1.Controls.Add(this.label6, 7, 2);
this.tableLayoutPanel1.Controls.Add(this.lblTotalAmount, 4, 3);
this.tableLayoutPanel1.Controls.Add(this.label6, 9, 2);
this.tableLayoutPanel1.Controls.Add(this.lblDepositBalance, 9, 3);
this.tableLayoutPanel1.Controls.Add(this.label8, 8, 2);
this.tableLayoutPanel1.Controls.Add(this.lblPendingAmount, 8, 3);
this.tableLayoutPanel1.Controls.Add(this.label7, 7, 2);
this.tableLayoutPanel1.Controls.Add(this.lblAvailableAmount, 7, 3);
this.tableLayoutPanel1.Controls.Add(this.label17, 6, 2);
this.tableLayoutPanel1.Controls.Add(this.lblTotalAmount, 6, 3);
this.tableLayoutPanel1.Controls.Add(this.label5, 5, 2);
this.tableLayoutPanel1.Controls.Add(this.lblPunish, 5, 3);
this.tableLayoutPanel1.Controls.Add(this.label4, 4, 2);
this.tableLayoutPanel1.Controls.Add(this.lblAfterSaleAll, 4, 3);
this.tableLayoutPanel1.Controls.Add(this.label3, 3, 2);
this.tableLayoutPanel1.Controls.Add(this.lblWaybillError, 3, 3);
this.tableLayoutPanel1.Controls.Add(this.lblOrderNum, 2, 3);
this.tableLayoutPanel1.Controls.Add(this.label14, 2, 2);
this.tableLayoutPanel1.Controls.Add(this.label16, 1, 2);
this.tableLayoutPanel1.Controls.Add(this.lblPayRefund30, 1, 3);
this.tableLayoutPanel1.Controls.Add(this.label15, 0, 2);
this.tableLayoutPanel1.Controls.Add(this.lblPayRefund7, 0, 3);
this.tableLayoutPanel1.Controls.Add(this.label12, 7, 0);
this.tableLayoutPanel1.Controls.Add(this.lblPay30, 7, 1);
this.tableLayoutPanel1.Controls.Add(this.label10, 6, 0);
this.tableLayoutPanel1.Controls.Add(this.lblPay7, 6, 1);
this.tableLayoutPanel1.Controls.Add(this.label20, 5, 0);
this.tableLayoutPanel1.Controls.Add(this.lblPay1, 5, 1);
this.tableLayoutPanel1.Controls.Add(this.label9, 4, 0);
this.tableLayoutPanel1.Controls.Add(this.lblPay, 4, 1);
this.tableLayoutPanel1.Controls.Add(this.label11, 3, 0);
this.tableLayoutPanel1.Controls.Add(this.lblPayCnt30, 3, 1);
this.tableLayoutPanel1.Controls.Add(this.label2, 2, 0);
this.tableLayoutPanel1.Controls.Add(this.lblPayCnt7, 2, 1);
this.tableLayoutPanel1.Controls.Add(this.label13, 8, 0);
this.tableLayoutPanel1.Controls.Add(this.lblPayRefund, 8, 1);
this.tableLayoutPanel1.Location = new System.Drawing.Point(31, 19);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 4;
@@ -411,7 +427,7 @@ namespace TemuKJD.WXForms.ShopForms
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 30F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 30F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(1168, 115);
this.tableLayoutPanel1.Size = new System.Drawing.Size(957, 115);
this.tableLayoutPanel1.TabIndex = 435;
//
// label17
@@ -419,7 +435,7 @@ namespace TemuKJD.WXForms.ShopForms
this.label17.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.label17.AutoSize = true;
this.label17.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
this.label17.Location = new System.Drawing.Point(519, 60);
this.label17.Location = new System.Drawing.Point(573, 60);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(80, 17);
this.label17.TabIndex = 25;
@@ -430,9 +446,9 @@ namespace TemuKJD.WXForms.ShopForms
this.label16.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.label16.AutoSize = true;
this.label16.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
this.label16.Location = new System.Drawing.Point(1035, 3);
this.label16.Location = new System.Drawing.Point(98, 57);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(94, 17);
this.label16.Size = new System.Drawing.Size(82, 23);
this.label16.TabIndex = 24;
this.label16.Text = "近30日退款金额";
//
@@ -441,7 +457,7 @@ namespace TemuKJD.WXForms.ShopForms
this.label15.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.label15.AutoSize = true;
this.label15.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
this.label15.Location = new System.Drawing.Point(906, 3);
this.label15.Location = new System.Drawing.Point(3, 60);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(87, 17);
this.label15.TabIndex = 23;
@@ -452,7 +468,7 @@ namespace TemuKJD.WXForms.ShopForms
this.lblPayRefund30.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.lblPayRefund30.AutoSize = true;
this.lblPayRefund30.Font = new System.Drawing.Font("微软雅黑", 11F);
this.lblPayRefund30.Location = new System.Drawing.Point(1035, 30);
this.lblPayRefund30.Location = new System.Drawing.Point(98, 87);
this.lblPayRefund30.Name = "lblPayRefund30";
this.lblPayRefund30.Size = new System.Drawing.Size(18, 20);
this.lblPayRefund30.TabIndex = 21;
@@ -463,7 +479,7 @@ namespace TemuKJD.WXForms.ShopForms
this.lblPayRefund7.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.lblPayRefund7.AutoSize = true;
this.lblPayRefund7.Font = new System.Drawing.Font("微软雅黑", 11F);
this.lblPayRefund7.Location = new System.Drawing.Point(906, 30);
this.lblPayRefund7.Location = new System.Drawing.Point(3, 87);
this.lblPayRefund7.Name = "lblPayRefund7";
this.lblPayRefund7.Size = new System.Drawing.Size(18, 20);
this.lblPayRefund7.TabIndex = 20;
@@ -474,7 +490,7 @@ namespace TemuKJD.WXForms.ShopForms
this.lblPayRefund.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.lblPayRefund.AutoSize = true;
this.lblPayRefund.Font = new System.Drawing.Font("微软雅黑", 11F);
this.lblPayRefund.Location = new System.Drawing.Point(777, 30);
this.lblPayRefund.Location = new System.Drawing.Point(763, 30);
this.lblPayRefund.Name = "lblPayRefund";
this.lblPayRefund.Size = new System.Drawing.Size(18, 20);
this.lblPayRefund.TabIndex = 19;
@@ -485,7 +501,7 @@ namespace TemuKJD.WXForms.ShopForms
this.label13.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.label13.AutoSize = true;
this.label13.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
this.label13.Location = new System.Drawing.Point(777, 3);
this.label13.Location = new System.Drawing.Point(763, 3);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(80, 17);
this.label13.TabIndex = 15;
@@ -496,7 +512,7 @@ namespace TemuKJD.WXForms.ShopForms
this.lblOrderNum.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.lblOrderNum.AutoSize = true;
this.lblOrderNum.Font = new System.Drawing.Font("微软雅黑", 11F);
this.lblOrderNum.Location = new System.Drawing.Point(3, 87);
this.lblOrderNum.Location = new System.Drawing.Point(193, 87);
this.lblOrderNum.Name = "lblOrderNum";
this.lblOrderNum.Size = new System.Drawing.Size(18, 20);
this.lblOrderNum.TabIndex = 22;
@@ -507,7 +523,7 @@ namespace TemuKJD.WXForms.ShopForms
this.lblPayCnt30.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.lblPayCnt30.AutoSize = true;
this.lblPayCnt30.Font = new System.Drawing.Font("微软雅黑", 11F);
this.lblPayCnt30.Location = new System.Drawing.Point(261, 30);
this.lblPayCnt30.Location = new System.Drawing.Point(288, 30);
this.lblPayCnt30.Name = "lblPayCnt30";
this.lblPayCnt30.Size = new System.Drawing.Size(18, 20);
this.lblPayCnt30.TabIndex = 16;
@@ -518,9 +534,9 @@ namespace TemuKJD.WXForms.ShopForms
this.label12.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.label12.AutoSize = true;
this.label12.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
this.label12.Location = new System.Drawing.Point(648, 3);
this.label12.Location = new System.Drawing.Point(668, 0);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(94, 17);
this.label12.Size = new System.Drawing.Size(82, 23);
this.label12.TabIndex = 8;
this.label12.Text = "近30日成交金额";
//
@@ -529,7 +545,7 @@ namespace TemuKJD.WXForms.ShopForms
this.lblPayCnt7.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.lblPayCnt7.AutoSize = true;
this.lblPayCnt7.Font = new System.Drawing.Font("微软雅黑", 11F);
this.lblPayCnt7.Location = new System.Drawing.Point(132, 30);
this.lblPayCnt7.Location = new System.Drawing.Point(193, 30);
this.lblPayCnt7.Name = "lblPayCnt7";
this.lblPayCnt7.Size = new System.Drawing.Size(18, 20);
this.lblPayCnt7.TabIndex = 15;
@@ -540,7 +556,7 @@ namespace TemuKJD.WXForms.ShopForms
this.label2.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.label2.AutoSize = true;
this.label2.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
this.label2.Location = new System.Drawing.Point(132, 3);
this.label2.Location = new System.Drawing.Point(193, 3);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(63, 17);
this.label2.TabIndex = 7;
@@ -573,7 +589,7 @@ namespace TemuKJD.WXForms.ShopForms
this.lblPay30.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.lblPay30.AutoSize = true;
this.lblPay30.Font = new System.Drawing.Font("微软雅黑", 11F);
this.lblPay30.Location = new System.Drawing.Point(648, 30);
this.lblPay30.Location = new System.Drawing.Point(668, 30);
this.lblPay30.Name = "lblPay30";
this.lblPay30.Size = new System.Drawing.Size(18, 20);
this.lblPay30.TabIndex = 18;
@@ -584,7 +600,7 @@ namespace TemuKJD.WXForms.ShopForms
this.label10.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.label10.AutoSize = true;
this.label10.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
this.label10.Location = new System.Drawing.Point(519, 3);
this.label10.Location = new System.Drawing.Point(573, 3);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(87, 17);
this.label10.TabIndex = 13;
@@ -595,7 +611,7 @@ namespace TemuKJD.WXForms.ShopForms
this.lblPay7.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.lblPay7.AutoSize = true;
this.lblPay7.Font = new System.Drawing.Font("微软雅黑", 11F);
this.lblPay7.Location = new System.Drawing.Point(519, 30);
this.lblPay7.Location = new System.Drawing.Point(573, 30);
this.lblPay7.Name = "lblPay7";
this.lblPay7.Size = new System.Drawing.Size(18, 20);
this.lblPay7.TabIndex = 17;
@@ -606,7 +622,7 @@ namespace TemuKJD.WXForms.ShopForms
this.label9.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.label9.AutoSize = true;
this.label9.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
this.label9.Location = new System.Drawing.Point(390, 3);
this.label9.Location = new System.Drawing.Point(383, 3);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(80, 17);
this.label9.TabIndex = 14;
@@ -617,7 +633,7 @@ namespace TemuKJD.WXForms.ShopForms
this.lblPay.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.lblPay.AutoSize = true;
this.lblPay.Font = new System.Drawing.Font("微软雅黑", 11F);
this.lblPay.Location = new System.Drawing.Point(390, 30);
this.lblPay.Location = new System.Drawing.Point(383, 30);
this.lblPay.Name = "lblPay";
this.lblPay.Size = new System.Drawing.Size(18, 20);
this.lblPay.TabIndex = 16;
@@ -628,7 +644,7 @@ namespace TemuKJD.WXForms.ShopForms
this.label11.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.label11.AutoSize = true;
this.label11.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
this.label11.Location = new System.Drawing.Point(261, 3);
this.label11.Location = new System.Drawing.Point(288, 3);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(70, 17);
this.label11.TabIndex = 14;
@@ -639,7 +655,7 @@ namespace TemuKJD.WXForms.ShopForms
this.lblAvailableAmount.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.lblAvailableAmount.AutoSize = true;
this.lblAvailableAmount.Font = new System.Drawing.Font("微软雅黑", 11F);
this.lblAvailableAmount.Location = new System.Drawing.Point(648, 87);
this.lblAvailableAmount.Location = new System.Drawing.Point(668, 87);
this.lblAvailableAmount.Name = "lblAvailableAmount";
this.lblAvailableAmount.Size = new System.Drawing.Size(18, 20);
this.lblAvailableAmount.TabIndex = 15;
@@ -650,9 +666,9 @@ namespace TemuKJD.WXForms.ShopForms
this.label7.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.label7.AutoSize = true;
this.label7.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
this.label7.Location = new System.Drawing.Point(648, 60);
this.label7.Location = new System.Drawing.Point(668, 57);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(92, 17);
this.label7.Size = new System.Drawing.Size(80, 23);
this.label7.TabIndex = 12;
this.label7.Text = "可提现金额总和";
//
@@ -661,7 +677,7 @@ namespace TemuKJD.WXForms.ShopForms
this.label5.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.label5.AutoSize = true;
this.label5.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
this.label5.Location = new System.Drawing.Point(390, 60);
this.label5.Location = new System.Drawing.Point(478, 60);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(56, 17);
this.label5.TabIndex = 10;
@@ -672,7 +688,7 @@ namespace TemuKJD.WXForms.ShopForms
this.lblPunish.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.lblPunish.AutoSize = true;
this.lblPunish.Font = new System.Drawing.Font("微软雅黑", 11F);
this.lblPunish.Location = new System.Drawing.Point(390, 87);
this.lblPunish.Location = new System.Drawing.Point(478, 87);
this.lblPunish.Name = "lblPunish";
this.lblPunish.Size = new System.Drawing.Size(18, 20);
this.lblPunish.TabIndex = 15;
@@ -683,7 +699,7 @@ namespace TemuKJD.WXForms.ShopForms
this.lblAfterSaleAll.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.lblAfterSaleAll.AutoSize = true;
this.lblAfterSaleAll.Font = new System.Drawing.Font("微软雅黑", 11F);
this.lblAfterSaleAll.Location = new System.Drawing.Point(261, 87);
this.lblAfterSaleAll.Location = new System.Drawing.Point(383, 87);
this.lblAfterSaleAll.Name = "lblAfterSaleAll";
this.lblAfterSaleAll.Size = new System.Drawing.Size(18, 20);
this.lblAfterSaleAll.TabIndex = 15;
@@ -694,7 +710,7 @@ namespace TemuKJD.WXForms.ShopForms
this.label4.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.label4.AutoSize = true;
this.label4.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
this.label4.Location = new System.Drawing.Point(261, 60);
this.label4.Location = new System.Drawing.Point(383, 60);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(32, 17);
this.label4.TabIndex = 9;
@@ -705,7 +721,7 @@ namespace TemuKJD.WXForms.ShopForms
this.lblWaybillError.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.lblWaybillError.AutoSize = true;
this.lblWaybillError.Font = new System.Drawing.Font("微软雅黑", 11F);
this.lblWaybillError.Location = new System.Drawing.Point(132, 87);
this.lblWaybillError.Location = new System.Drawing.Point(288, 87);
this.lblWaybillError.Name = "lblWaybillError";
this.lblWaybillError.Size = new System.Drawing.Size(18, 20);
this.lblWaybillError.TabIndex = 15;
@@ -716,7 +732,7 @@ namespace TemuKJD.WXForms.ShopForms
this.label3.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.label3.AutoSize = true;
this.label3.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
this.label3.Location = new System.Drawing.Point(132, 60);
this.label3.Location = new System.Drawing.Point(288, 60);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(56, 17);
this.label3.TabIndex = 8;
@@ -727,7 +743,7 @@ namespace TemuKJD.WXForms.ShopForms
this.label14.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.label14.AutoSize = true;
this.label14.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
this.label14.Location = new System.Drawing.Point(3, 60);
this.label14.Location = new System.Drawing.Point(193, 60);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(44, 17);
this.label14.TabIndex = 20;
@@ -738,9 +754,9 @@ namespace TemuKJD.WXForms.ShopForms
this.label8.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.label8.AutoSize = true;
this.label8.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
this.label8.Location = new System.Drawing.Point(777, 60);
this.label8.Location = new System.Drawing.Point(763, 57);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(92, 17);
this.label8.Size = new System.Drawing.Size(80, 23);
this.label8.TabIndex = 13;
this.label8.Text = "待结算金额总和";
//
@@ -749,7 +765,7 @@ namespace TemuKJD.WXForms.ShopForms
this.lblPendingAmount.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.lblPendingAmount.AutoSize = true;
this.lblPendingAmount.Font = new System.Drawing.Font("微软雅黑", 11F);
this.lblPendingAmount.Location = new System.Drawing.Point(777, 87);
this.lblPendingAmount.Location = new System.Drawing.Point(763, 87);
this.lblPendingAmount.Name = "lblPendingAmount";
this.lblPendingAmount.Size = new System.Drawing.Size(18, 20);
this.lblPendingAmount.TabIndex = 15;
@@ -760,7 +776,7 @@ namespace TemuKJD.WXForms.ShopForms
this.lblDepositBalance.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.lblDepositBalance.AutoSize = true;
this.lblDepositBalance.Font = new System.Drawing.Font("微软雅黑", 11F);
this.lblDepositBalance.Location = new System.Drawing.Point(906, 87);
this.lblDepositBalance.Location = new System.Drawing.Point(858, 87);
this.lblDepositBalance.Name = "lblDepositBalance";
this.lblDepositBalance.Size = new System.Drawing.Size(18, 20);
this.lblDepositBalance.TabIndex = 15;
@@ -771,7 +787,7 @@ namespace TemuKJD.WXForms.ShopForms
this.label6.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.label6.AutoSize = true;
this.label6.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
this.label6.Location = new System.Drawing.Point(906, 60);
this.label6.Location = new System.Drawing.Point(858, 60);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(92, 17);
this.label6.TabIndex = 11;
@@ -782,7 +798,7 @@ namespace TemuKJD.WXForms.ShopForms
this.lblTotalAmount.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.lblTotalAmount.AutoSize = true;
this.lblTotalAmount.Font = new System.Drawing.Font("微软雅黑", 11F);
this.lblTotalAmount.Location = new System.Drawing.Point(519, 87);
this.lblTotalAmount.Location = new System.Drawing.Point(573, 87);
this.lblTotalAmount.Name = "lblTotalAmount";
this.lblTotalAmount.Size = new System.Drawing.Size(18, 20);
this.lblTotalAmount.TabIndex = 26;
@@ -808,15 +824,15 @@ namespace TemuKJD.WXForms.ShopForms
// splitContainer2.Panel2
//
this.splitContainer2.Panel2.Controls.Add(this.statusBar);
this.splitContainer2.Size = new System.Drawing.Size(1446, 306);
this.splitContainer2.SplitterDistance = 276;
this.splitContainer2.Size = new System.Drawing.Size(1235, 453);
this.splitContainer2.SplitterDistance = 423;
this.splitContainer2.TabIndex = 0;
//
// pbLoading
//
this.pbLoading.Anchor = System.Windows.Forms.AnchorStyles.None;
this.pbLoading.Image = global::TemuKJD.Properties.Resources.loading_blue;
this.pbLoading.Location = new System.Drawing.Point(698, 113);
this.pbLoading.Location = new System.Drawing.Point(592, 186);
this.pbLoading.Name = "pbLoading";
this.pbLoading.Size = new System.Drawing.Size(50, 50);
this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
@@ -833,18 +849,18 @@ namespace TemuKJD.WXForms.ShopForms
this.panel1.Controls.Add(this.flowLayoutPanel1);
this.panel1.Location = new System.Drawing.Point(98, 65);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1250, 134);
this.panel1.Size = new System.Drawing.Size(1039, 154);
this.panel1.TabIndex = 9;
this.panel1.Visible = false;
//
// btnClose
//
this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnClose.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnClose.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnClose.DisabledBackColor = System.Drawing.Color.Empty;
this.btnClose.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnClose.Location = new System.Drawing.Point(1161, 98);
this.btnClose.Location = new System.Drawing.Point(950, 118);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(58, 23);
this.btnClose.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -864,11 +880,12 @@ namespace TemuKJD.WXForms.ShopForms
//
// flowLayoutPanel1
//
this.flowLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
this.flowLayoutPanel1.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.flowLayoutPanel1.Location = new System.Drawing.Point(24, 17);
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
this.flowLayoutPanel1.Size = new System.Drawing.Size(1195, 75);
this.flowLayoutPanel1.Size = new System.Drawing.Size(984, 95);
this.flowLayoutPanel1.TabIndex = 8;
//
// dgvShop
@@ -901,12 +918,15 @@ namespace TemuKJD.WXForms.ShopForms
this.colOnSaleProductNumber,
this.colScore,
this.colPayCnt,
this.colPayCnt1,
this.colPayCnt7,
this.colPayCnt30,
this.colPay,
this.colPay1,
this.colPay7,
this.colPay30,
this.colRefund,
this.colRefund1,
this.colRefund7,
this.colRefund30,
this.colOrderNum,
@@ -919,11 +939,12 @@ namespace TemuKJD.WXForms.ShopForms
this.colDepositBalance});
this.dgvShop.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvShop.Location = new System.Drawing.Point(4, 0);
this.dgvShop.MultiSelectCheckBox = true;
this.dgvShop.Name = "dgvShop";
this.dgvShop.ReadOnly = true;
this.dgvShop.RowHeadersWidth = 36;
this.dgvShop.RowTemplate.Height = 23;
this.dgvShop.Size = new System.Drawing.Size(1438, 276);
this.dgvShop.Size = new System.Drawing.Size(1227, 423);
this.dgvShop.TabIndex = 5;
this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick);
//
@@ -935,9 +956,75 @@ namespace TemuKJD.WXForms.ShopForms
this.statusBar.Location = new System.Drawing.Point(0, 0);
this.statusBar.Margin = new System.Windows.Forms.Padding(0);
this.statusBar.Name = "statusBar";
this.statusBar.Size = new System.Drawing.Size(1446, 26);
this.statusBar.Size = new System.Drawing.Size(1235, 26);
this.statusBar.TabIndex = 1;
//
// label20
//
this.label20.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.label20.AutoSize = true;
this.label20.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
this.label20.Location = new System.Drawing.Point(478, 3);
this.label20.Name = "label20";
this.label20.Size = new System.Drawing.Size(80, 17);
this.label20.TabIndex = 14;
this.label20.Text = "昨日成交金额";
//
// lblPay1
//
this.lblPay1.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.lblPay1.AutoSize = true;
this.lblPay1.Font = new System.Drawing.Font("微软雅黑", 11F);
this.lblPay1.Location = new System.Drawing.Point(478, 30);
this.lblPay1.Name = "lblPay1";
this.lblPay1.Size = new System.Drawing.Size(18, 20);
this.lblPay1.TabIndex = 18;
this.lblPay1.Text = "0";
//
// label21
//
this.label21.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.label21.AutoSize = true;
this.label21.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
this.label21.Location = new System.Drawing.Point(98, 3);
this.label21.Name = "label21";
this.label21.Size = new System.Drawing.Size(56, 17);
this.label21.TabIndex = 15;
this.label21.Text = "昨日订单";
//
// lblPayCnt1
//
this.lblPayCnt1.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.lblPayCnt1.AutoSize = true;
this.lblPayCnt1.Font = new System.Drawing.Font("微软雅黑", 11F);
this.lblPayCnt1.Location = new System.Drawing.Point(98, 30);
this.lblPayCnt1.Name = "lblPayCnt1";
this.lblPayCnt1.Size = new System.Drawing.Size(18, 20);
this.lblPayCnt1.TabIndex = 16;
this.lblPayCnt1.Text = "0";
//
// label22
//
this.label22.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.label22.AutoSize = true;
this.label22.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
this.label22.Location = new System.Drawing.Point(858, 3);
this.label22.Name = "label22";
this.label22.Size = new System.Drawing.Size(80, 17);
this.label22.TabIndex = 16;
this.label22.Text = "昨日退款金额";
//
// lblPayRefund1
//
this.lblPayRefund1.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.lblPayRefund1.AutoSize = true;
this.lblPayRefund1.Font = new System.Drawing.Font("微软雅黑", 11F);
this.lblPayRefund1.Location = new System.Drawing.Point(858, 30);
this.lblPayRefund1.Name = "lblPayRefund1";
this.lblPayRefund1.Size = new System.Drawing.Size(18, 20);
this.lblPayRefund1.TabIndex = 20;
this.lblPayRefund1.Text = "0";
//
// colSelect
//
this.colSelect.FillWeight = 22F;
@@ -1011,7 +1098,7 @@ namespace TemuKJD.WXForms.ShopForms
this.colOnSaleProductNumber.HeaderText = "在售商品";
this.colOnSaleProductNumber.Name = "colOnSaleProductNumber";
this.colOnSaleProductNumber.ReadOnly = true;
this.colOnSaleProductNumber.Width = 68;
this.colOnSaleProductNumber.Width = 62;
//
// colScore
//
@@ -1019,7 +1106,7 @@ namespace TemuKJD.WXForms.ShopForms
this.colScore.HeaderText = "体验分";
this.colScore.Name = "colScore";
this.colScore.ReadOnly = true;
this.colScore.Width = 54;
this.colScore.Width = 50;
//
// colPayCnt
//
@@ -1029,13 +1116,21 @@ namespace TemuKJD.WXForms.ShopForms
this.colPayCnt.ReadOnly = true;
this.colPayCnt.Width = 62;
//
// colPayCnt1
//
this.colPayCnt1.FillWeight = 60F;
this.colPayCnt1.HeaderText = "昨日订单";
this.colPayCnt1.Name = "colPayCnt1";
this.colPayCnt1.ReadOnly = true;
this.colPayCnt1.Width = 62;
//
// colPayCnt7
//
this.colPayCnt7.FillWeight = 60F;
this.colPayCnt7.HeaderText = "7日订单";
this.colPayCnt7.Name = "colPayCnt7";
this.colPayCnt7.ReadOnly = true;
this.colPayCnt7.Width = 62;
this.colPayCnt7.Width = 57;
//
// colPayCnt30
//
@@ -1047,52 +1142,66 @@ namespace TemuKJD.WXForms.ShopForms
//
// colPay
//
this.colPay.HeaderText = "今日成交金额";
this.colPay.HeaderText = "今日成交额";
this.colPay.Name = "colPay";
this.colPay.ReadOnly = true;
this.colPay.Width = 86;
this.colPay.Width = 75;
//
// colPay1
//
this.colPay1.HeaderText = "昨日成交额";
this.colPay1.Name = "colPay1";
this.colPay1.ReadOnly = true;
this.colPay1.Width = 75;
//
// colPay7
//
this.colPay7.HeaderText = "7日成交金额";
this.colPay7.HeaderText = "7日成交额";
this.colPay7.Name = "colPay7";
this.colPay7.ReadOnly = true;
this.colPay7.Width = 86;
this.colPay7.Width = 72;
//
// colPay30
//
this.colPay30.HeaderText = "30日成交金额";
this.colPay30.HeaderText = "30日成交额";
this.colPay30.Name = "colPay30";
this.colPay30.ReadOnly = true;
this.colPay30.Width = 88;
this.colPay30.Width = 78;
//
// colRefund
//
this.colRefund.HeaderText = "今日退款金额";
this.colRefund.HeaderText = "今日退款额";
this.colRefund.Name = "colRefund";
this.colRefund.ReadOnly = true;
this.colRefund.Width = 86;
this.colRefund.Width = 75;
//
// colRefund1
//
this.colRefund1.HeaderText = "昨日退款额";
this.colRefund1.Name = "colRefund1";
this.colRefund1.ReadOnly = true;
this.colRefund1.Width = 75;
//
// colRefund7
//
this.colRefund7.HeaderText = "7日退款金额";
this.colRefund7.HeaderText = "7日退款额";
this.colRefund7.Name = "colRefund7";
this.colRefund7.ReadOnly = true;
this.colRefund7.Width = 86;
this.colRefund7.Width = 72;
//
// colRefund30
//
this.colRefund30.HeaderText = "30日退款金额";
this.colRefund30.HeaderText = "30日退款额";
this.colRefund30.Name = "colRefund30";
this.colRefund30.ReadOnly = true;
this.colRefund30.Width = 88;
this.colRefund30.Width = 78;
//
// colOrderNum
//
this.colOrderNum.HeaderText = "待发货";
this.colOrderNum.Name = "colOrderNum";
this.colOrderNum.ReadOnly = true;
this.colOrderNum.Width = 54;
this.colOrderNum.Width = 50;
//
// colShipErr
//
@@ -1148,9 +1257,10 @@ namespace TemuKJD.WXForms.ShopForms
// WxShopStatisticsForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(1446, 450);
this.ClientSize = new System.Drawing.Size(1235, 597);
this.Controls.Add(this.splitContainer1);
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.KeyPreview = true;
this.Name = "WxShopStatisticsForm";
this.Text = "WxShopStatisticsForm";
this.Load += new System.EventHandler(this.WxShopStatisticsForm_Load);
@@ -1231,6 +1341,12 @@ namespace TemuKJD.WXForms.ShopForms
private System.Windows.Forms.Label label18;
private System.Windows.Forms.TextBox txtFilterShopName;
private System.Windows.Forms.Label label19;
private System.Windows.Forms.Label lblPay1;
private System.Windows.Forms.Label label20;
private System.Windows.Forms.Label lblPayCnt1;
private System.Windows.Forms.Label label21;
private System.Windows.Forms.Label lblPayRefund1;
private System.Windows.Forms.Label label22;
private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect;
private System.Windows.Forms.DataGridViewLinkColumn colLoginStatus;
private System.Windows.Forms.DataGridViewLinkColumn colDetail;
@@ -1242,12 +1358,15 @@ namespace TemuKJD.WXForms.ShopForms
private System.Windows.Forms.DataGridViewTextBoxColumn colOnSaleProductNumber;
private System.Windows.Forms.DataGridViewTextBoxColumn colScore;
private System.Windows.Forms.DataGridViewTextBoxColumn colPayCnt;
private System.Windows.Forms.DataGridViewTextBoxColumn colPayCnt1;
private System.Windows.Forms.DataGridViewTextBoxColumn colPayCnt7;
private System.Windows.Forms.DataGridViewTextBoxColumn colPayCnt30;
private System.Windows.Forms.DataGridViewTextBoxColumn colPay;
private System.Windows.Forms.DataGridViewTextBoxColumn colPay1;
private System.Windows.Forms.DataGridViewTextBoxColumn colPay7;
private System.Windows.Forms.DataGridViewTextBoxColumn colPay30;
private System.Windows.Forms.DataGridViewTextBoxColumn colRefund;
private System.Windows.Forms.DataGridViewTextBoxColumn colRefund1;
private System.Windows.Forms.DataGridViewTextBoxColumn colRefund7;
private System.Windows.Forms.DataGridViewTextBoxColumn colRefund30;
private System.Windows.Forms.DataGridViewTextBoxColumn colOrderNum;
@@ -26,6 +26,7 @@ namespace TemuKJD.WXForms.ShopForms
{
bool isInit = false;
public List<WxShopSaleStatisticsGroup> lstShopStatisticsInfo = new List<WxShopSaleStatisticsGroup>();
public List<string> lstHideColumns = new List<string>();
public WxShopStatisticsForm()
{
InitializeComponent();
@@ -35,8 +36,15 @@ namespace TemuKJD.WXForms.ShopForms
{
this.dgvShop.AddSelectorColumn("colSelect");
foreach(DataGridViewColumn column in dgvShop.Columns)
lstHideColumns = NaiBa.Util.Helper.ConfigHelper.LoadConfig<List<string>>("wx_shop_sale_statistics_hide_columns");
if (lstHideColumns == null)
lstHideColumns = new List<string>();
foreach (DataGridViewColumn column in dgvShop.Columns)
{
if (lstHideColumns.Contains(column.HeaderText))
column.Visible = false;
if (!string.IsNullOrEmpty(column.HeaderText) && column.HeaderText != "店铺登录号码" && column.HeaderText != "详情")
{
var chk = new UcCheckBox() { Name = "chk" + column.Name, Tag = column.Name, Text = column.HeaderText, Checked = column.Visible, };
@@ -56,6 +64,15 @@ namespace TemuKJD.WXForms.ShopForms
if (chk != null)
{
dgvShop.Columns[chk.Tag.ParseToString()].Visible = chk.Checked;
if (!chk.Checked)
{
lstHideColumns.Add(chk.Text);
}
else
{
lstHideColumns.Remove(chk.Text);
}
NaiBa.Util.Helper.ConfigHelper.SaveConfig<List<string>>("wx_shop_sale_statistics_hide_columns", lstHideColumns);
}
}
@@ -182,12 +199,15 @@ namespace TemuKJD.WXForms.ShopForms
Invoke(new Action(() =>
{
this.lblPayCnt.Text = this.lstShopStatisticsInfo.Sum(s => s.WxShopSaleInfoToday.pay_order_cnt.ParseToLong()).ToString();
this.lblPayCnt1.Text = this.lstShopStatisticsInfo.Sum(s => s.WxShopSaleInfo1Day.pay_order_cnt.ParseToLong()).ToString();
this.lblPayCnt7.Text = this.lstShopStatisticsInfo.Sum(s => s.WxShopSaleInfo7Day.pay_order_cnt.ParseToLong()).ToString();
this.lblPayCnt30.Text = this.lstShopStatisticsInfo.Sum(s => s.WxShopSaleInfo30Day.pay_order_cnt.ParseToLong()).ToString();
this.lblPay.Text = this.lstShopStatisticsInfo.Sum(s => s.WxShopSaleInfoToday.pay_gmv.ParseToDecimal() * 0.01m).ToString("f2");
this.lblPay1.Text = this.lstShopStatisticsInfo.Sum(s => s.WxShopSaleInfo1Day.pay_gmv.ParseToDecimal() * 0.01m).ToString("f2");
this.lblPay7.Text = this.lstShopStatisticsInfo.Sum(s => s.WxShopSaleInfo7Day.pay_gmv.ParseToDecimal() * 0.01m).ToString("f2");
this.lblPay30.Text = this.lstShopStatisticsInfo.Sum(s => s.WxShopSaleInfo30Day.pay_gmv.ParseToDecimal() * 0.01m).ToString("f2");
this.lblPayRefund.Text = this.lstShopStatisticsInfo.Sum(s => s.WxShopSaleInfoToday.pay_refund_gmv.ParseToLong() * 0.01m).ToString();
this.lblPayRefund1.Text = this.lstShopStatisticsInfo.Sum(s => s.WxShopSaleInfo1Day.pay_refund_gmv.ParseToLong() * 0.01m).ToString();
this.lblPayRefund7.Text = this.lstShopStatisticsInfo.Sum(s => s.WxShopSaleInfo7Day.pay_refund_gmv.ParseToLong() * 0.01m).ToString();
this.lblPayRefund30.Text = this.lstShopStatisticsInfo.Sum(s => s.WxShopSaleInfo30Day.pay_refund_gmv.ParseToLong() * 0.01m).ToString();
this.lblOrderNum.Text = this.lstShopStatisticsInfo.Sum(s => s.WxShopMainInfo.orderNumRet?.num.ParseToInt()).ToString();
@@ -259,12 +279,15 @@ namespace TemuKJD.WXForms.ShopForms
statistics.ProdCount.ParseToNullableInt(), // 在售商品
statistics.curScoreValue.ParseToNullableDecimal(), // 店铺体验分
statistics.WxShopSaleInfoToday.pay_order_cnt, // 今日订单
statistics.WxShopSaleInfo1Day.pay_order_cnt, // 昨日订单
statistics.WxShopSaleInfo7Day.pay_order_cnt, // 7日订单
statistics.WxShopSaleInfo30Day.pay_order_cnt, // 30日订单
statistics.WxShopSaleInfoToday.pay_gmv, // 今日成交金额
statistics.WxShopSaleInfo1Day.pay_gmv, // 昨日成交金额
statistics.WxShopSaleInfo7Day.pay_gmv, // 7日成交金额
statistics.WxShopSaleInfo30Day.pay_gmv, // 30日成交金额
statistics.WxShopSaleInfoToday.pay_refund_gmv, // 今日退款金额
statistics.WxShopSaleInfo1Day.pay_refund_gmv, // 昨日退款金额
statistics.WxShopSaleInfo7Day.pay_refund_gmv, // 7日退款金额
statistics.WxShopSaleInfo30Day.pay_refund_gmv, // 30日退款金额
statistics.WxShopMainInfo.orderNumRet?.num, // 待发货
@@ -299,12 +322,15 @@ namespace TemuKJD.WXForms.ShopForms
row.Cells["colOnSaleProductNumber"].Value = statistics.ProdCount.ParseToNullableInt(); // 商品数量
row.Cells["colScore"].Value = statistics.curScoreValue.ParseToNullableDecimal(); // 店铺体验分
row.Cells["colPayCnt"].Value = statistics.WxShopSaleInfoToday.pay_order_cnt; // 今日订单
row.Cells["colPayCnt1"].Value = statistics.WxShopSaleInfo1Day.pay_order_cnt; // 昨日订单
row.Cells["colPayCnt7"].Value = statistics.WxShopSaleInfo7Day.pay_order_cnt; // 7日订单
row.Cells["colPayCnt30"].Value = statistics.WxShopSaleInfo30Day.pay_order_cnt; // 30日订单
row.Cells["colPay"].Value = statistics.WxShopSaleInfoToday.pay_gmv.ParseToNullableLong() * 0.01m; // 今日成交金额
row.Cells["colPay1"].Value = statistics.WxShopSaleInfo1Day.pay_gmv.ParseToNullableLong() * 0.01m; // 昨日成交金额
row.Cells["colPay7"].Value = statistics.WxShopSaleInfo7Day.pay_gmv.ParseToNullableLong() * 0.01m; // 7日成交金额
row.Cells["colPay30"].Value = statistics.WxShopSaleInfo30Day.pay_gmv.ParseToNullableLong() * 0.01m; // 30日成交金额
row.Cells["colRefund"].Value = statistics.WxShopSaleInfoToday.pay_refund_gmv.ParseToNullableLong() * 0.01m; // 今日退款金额
row.Cells["colRefund1"].Value = statistics.WxShopSaleInfo1Day.pay_refund_gmv.ParseToNullableLong() * 0.01m; // 昨日退款金额
row.Cells["colRefund7"].Value = statistics.WxShopSaleInfo7Day.pay_refund_gmv.ParseToNullableLong() * 0.01m; // 7日退款金额
row.Cells["colRefund30"].Value = statistics.WxShopSaleInfo30Day.pay_refund_gmv.ParseToNullableLong() * 0.01m; // 30日退款金额
row.Cells["colOrderNum"].Value = statistics.WxShopMainInfo.orderNumRet?.num; // 待发货
@@ -321,7 +347,8 @@ namespace TemuKJD.WXForms.ShopForms
private void GetShopStatistics(ShopLoginInfo shop, WxShopSaleStatisticsGroup statistics)
{
if (statistics == null || statistics.WxShopMainInfo == null || statistics.WxShopSaleInfoToday == null || statistics.WxShopSaleInfo7Day == null || statistics.WxShopSaleInfo30Day == null)
if (statistics == null || statistics.WxShopMainInfo == null ||
statistics.WxShopSaleInfoToday == null || statistics.WxShopSaleInfo1Day == null || statistics.WxShopSaleInfo7Day == null || statistics.WxShopSaleInfo30Day == null)
return;
if (statistics.lastRefreshDate != DateTime.Now.Date && shop.LoginStatus == "登录成功")
@@ -440,6 +467,40 @@ namespace TemuKJD.WXForms.ShopForms
}
}
if (statistics.WxShopSaleInfo1Day.LastRefreshDate != DateTime.Now.Date && shop.LoginStatus == "登录成功")
{
try
{
string html = GetShopSaleInfoList(shop,
BaseClass.DateTimeToTimestampMilliseconds(DateTime.Now.Date.AddDays(-1)),
BaseClass.DateTimeToTimestampMilliseconds(DateTime.Now.Date) - 1);
System.Threading.Thread.Sleep(Randomx.GetId(50, 100));
if (html.Contains("\"code\":0"))
{
var saleStr = JsonHelper.SerializeObject(JsonHelper.JObjectParse(html)["total"]);
statistics.WxShopSaleInfo1Day = JsonHelper.DeserializeJsonToObject<WxShopSaleStatisticsInfo>(saleStr);
statistics.WxShopSaleInfo1Day.LastRefreshDate = DateTime.Now.Date;
}
else
{
string errStr = BaseRegex.GetStringJson(ref html, "errorMsg");
if (string.IsNullOrEmpty(errStr))
errStr = BaseRegex.GetStringJson(ref html, "error_msg");
if (string.IsNullOrEmpty(errStr))
errStr = html;
WXShopListForm.Instance.CheckShopLogin(new string[] { shop.LoginName }, false);
statistics.err_msg = errStr;
return;
}
}
catch (Exception ex)
{
System.Threading.Thread.Sleep(Randomx.GetId(50, 100));
statistics.err_msg = ex.Message;
return;
}
}
if (statistics.WxShopSaleInfo7Day.LastRefreshDate != DateTime.Now.Date && shop.LoginStatus == "登录成功")
{
try
@@ -689,6 +750,7 @@ namespace TemuKJD.WXForms.ShopForms
{
statistics.WxShopMainInfo.LastRefreshDate = DateTime.MinValue;
statistics.WxShopSaleInfoToday.LastRefreshDate = DateTime.MinValue;
statistics.WxShopSaleInfo1Day.LastRefreshDate = DateTime.MinValue;
statistics.WxShopSaleInfo7Day.LastRefreshDate = DateTime.MinValue;
statistics.WxShopSaleInfo30Day.LastRefreshDate = DateTime.MinValue;
}
@@ -150,6 +150,9 @@
<metadata name="colPayCnt.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colPayCnt1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colPayCnt7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
@@ -159,6 +162,9 @@
<metadata name="colPay.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colPay1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colPay7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
@@ -168,6 +174,9 @@
<metadata name="colRefund.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colRefund1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colRefund7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>