diff --git a/TEMUKJD/KJD.csproj b/TEMUKJD/KJD.csproj index 07a0600..7c6d66b 100644 --- a/TEMUKJD/KJD.csproj +++ b/TEMUKJD/KJD.csproj @@ -191,6 +191,12 @@ WXProductForm.cs + + Form + + + WxShopStatisticsForm.cs + Form @@ -1069,6 +1075,9 @@ WXProductForm.cs + + WxShopStatisticsForm.cs + WXShopUpdateCookieForm.cs diff --git a/TEMUKJD/WXForms/ShopForms/WXShopForm.Designer.cs b/TEMUKJD/WXForms/ShopForms/WXShopForm.Designer.cs index 0fcd086..3cf0751 100644 --- a/TEMUKJD/WXForms/ShopForms/WXShopForm.Designer.cs +++ b/TEMUKJD/WXForms/ShopForms/WXShopForm.Designer.cs @@ -30,19 +30,11 @@ { System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("店铺列表"); System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("子账号管理"); - System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("订单金额统计"); - System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("工作明细统计"); - System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("运费模板"); - System.Windows.Forms.TreeNode treeNode6 = new System.Windows.Forms.TreeNode("高级运费模板"); - System.Windows.Forms.TreeNode treeNode7 = new System.Windows.Forms.TreeNode("素材库管理"); - System.Windows.Forms.TreeNode treeNode8 = new System.Windows.Forms.TreeNode("店铺管理", new System.Windows.Forms.TreeNode[] { + System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("店铺经营统计"); + System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("店铺管理", new System.Windows.Forms.TreeNode[] { treeNode1, treeNode2, - treeNode3, - treeNode4, - treeNode5, - treeNode6, - treeNode7}); + treeNode3}); this.panel1 = new System.Windows.Forms.Panel(); this.panel3 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel(); @@ -137,33 +129,25 @@ treeNode1.Text = "店铺列表"; treeNode2.Name = "子账号管理"; treeNode2.Text = "子账号管理"; - treeNode3.Name = "订单金额统计"; - treeNode3.Text = "订单金额统计"; - treeNode4.Name = "工作明细统计"; - treeNode4.Text = "工作明细统计"; - treeNode5.Name = "运费模板"; - treeNode5.Text = "运费模板"; - treeNode6.Name = "高级运费模板"; - treeNode6.Text = "高级运费模板"; - treeNode7.Name = "素材库管理"; - treeNode7.Text = "素材库管理"; - treeNode8.Name = "店铺管理"; - treeNode8.Text = "店铺管理"; + treeNode3.Name = "店铺经营统计"; + treeNode3.Text = "店铺经营统计"; + treeNode4.Name = "店铺管理"; + treeNode4.Text = "店铺管理"; this.tv.Nodes.AddRange(new System.Windows.Forms.TreeNode[] { - treeNode8}); + treeNode4}); this.tv.OverForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); this.tv.Size = new System.Drawing.Size(140, 461); this.tv.TabIndex = 1; this.tv.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.tv_AfterSelect); // - // ShopForm + // WXShopForm // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.ClientSize = new System.Drawing.Size(933, 461); this.Controls.Add(this.splitContainer1); this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); - this.Name = "ShopForm"; + this.Name = "WXShopForm"; this.Text = "ShopForm"; this.Load += new System.EventHandler(this.ShopForm_Load); this.panel1.ResumeLayout(false); diff --git a/TEMUKJD/WXForms/ShopForms/WXShopForm.cs b/TEMUKJD/WXForms/ShopForms/WXShopForm.cs index d71b23c..9550d8d 100644 --- a/TEMUKJD/WXForms/ShopForms/WXShopForm.cs +++ b/TEMUKJD/WXForms/ShopForms/WXShopForm.cs @@ -21,6 +21,7 @@ namespace TemuKJD.WXForms.ShopForms { public Lazy shopListForm = new Lazy(); public Lazy sbuAccountForm = new Lazy(); + public Lazy shopStatisticsForm = new Lazy(); public WXShopForm() @@ -68,6 +69,9 @@ namespace TemuKJD.WXForms.ShopForms case "子账号管理": SetForm(sbuAccountForm.Value); break; + case "店铺经营统计": + SetForm(shopStatisticsForm.Value); + break; } })); }).Start(); diff --git a/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.Designer.cs b/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.Designer.cs new file mode 100644 index 0000000..1509ec2 --- /dev/null +++ b/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.Designer.cs @@ -0,0 +1,1219 @@ + +namespace TemuKJD.WXForms.ShopForms +{ + partial class WxShopStatisticsForm + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + this.splitContainer1 = new System.Windows.Forms.SplitContainer(); + this.ucGroupBoxEx3 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); + this.pnlClear = new DevComponents.DotNetBar.PanelEx(); + this.pnlFliter = new DevComponents.DotNetBar.PanelEx(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.btnSetColumn = new DevComponents.DotNetBar.PanelEx(); + this.btnGetNotGet = new DevComponents.DotNetBar.PanelEx(); + this.btnGetSelect = new DevComponents.DotNetBar.PanelEx(); + this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); + this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); + this.label17 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.lblPayRefund30 = new System.Windows.Forms.Label(); + this.lblPayRefund7 = new System.Windows.Forms.Label(); + this.lblPayRefund = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.lblOrderNum = new System.Windows.Forms.Label(); + this.lblPayCnt30 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.lblPayCnt7 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.lblPayCnt = new System.Windows.Forms.Label(); + this.lblPay30 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.lblPay7 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.lblPay = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.lblAvailableBalance = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.lblPunish = new System.Windows.Forms.Label(); + this.lblAfterSaleAll = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.lblWaybillError = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.lblWithdrawCashAmount = new System.Windows.Forms.Label(); + this.lblMallDepositLimitAmount = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label18 = new System.Windows.Forms.Label(); + this.splitContainer2 = new System.Windows.Forms.SplitContainer(); + this.pbLoading = new System.Windows.Forms.PictureBox(); + this.panel1 = new System.Windows.Forms.Panel(); + this.btnClose = new DevComponents.DotNetBar.PanelEx(); + this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); + this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx(); + this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.colLoginStatus = new System.Windows.Forms.DataGridViewLinkColumn(); + this.colDetail = new System.Windows.Forms.DataGridViewLinkColumn(); + this.colShopLoginName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colShopAccount = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colNotes = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colGroup = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colOnSaleProductNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colScore = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colPayCnt = 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.colPay7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colPay30 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colRefund = 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(); + this.colShipErr = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colAfterSale = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colPunish = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colAmount = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colAvailableBalance = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colBalance = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colBond = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); + this.splitContainer1.Panel1.SuspendLayout(); + this.splitContainer1.Panel2.SuspendLayout(); + this.splitContainer1.SuspendLayout(); + this.ucGroupBoxEx3.SuspendLayout(); + this.ucGroupBoxEx1.SuspendLayout(); + this.tableLayoutPanel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); + this.splitContainer2.Panel1.SuspendLayout(); + this.splitContainer2.Panel2.SuspendLayout(); + this.splitContainer2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pbLoading)).BeginInit(); + this.panel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dgvShop)).BeginInit(); + this.SuspendLayout(); + // + // splitContainer1 + // + this.splitContainer1.BackColor = System.Drawing.Color.White; + this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; + this.splitContainer1.Location = new System.Drawing.Point(0, 0); + this.splitContainer1.Name = "splitContainer1"; + this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal; + // + // splitContainer1.Panel1 + // + this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx3); + this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx1); + // + // splitContainer1.Panel2 + // + this.splitContainer1.Panel2.Controls.Add(this.splitContainer2); + this.splitContainer1.Panel2.Margin = new System.Windows.Forms.Padding(4); + this.splitContainer1.Size = new System.Drawing.Size(1623, 450); + this.splitContainer1.SplitterDistance = 140; + this.splitContainer1.TabIndex = 35; + // + // ucGroupBoxEx3 + // + this.ucGroupBoxEx3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.ucGroupBoxEx3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.ucGroupBoxEx3.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND; + this.ucGroupBoxEx3.Controls.Add(this.pnlClear); + this.ucGroupBoxEx3.Controls.Add(this.pnlFliter); + this.ucGroupBoxEx3.Controls.Add(this.textBox1); + this.ucGroupBoxEx3.Controls.Add(this.btnSetColumn); + this.ucGroupBoxEx3.Controls.Add(this.btnGetNotGet); + this.ucGroupBoxEx3.Controls.Add(this.btnGetSelect); + this.ucGroupBoxEx3.Location = new System.Drawing.Point(1390, 2); + this.ucGroupBoxEx3.Name = "ucGroupBoxEx3"; + this.ucGroupBoxEx3.Size = new System.Drawing.Size(230, 140); + this.ucGroupBoxEx3.TabIndex = 668; + this.ucGroupBoxEx3.TabStop = false; + this.ucGroupBoxEx3.Text = "统计查询"; + // + // pnlClear + // + this.pnlClear.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.pnlClear.CanvasColor = System.Drawing.SystemColors.Control; + this.pnlClear.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.pnlClear.DisabledBackColor = System.Drawing.Color.Empty; + this.pnlClear.Location = new System.Drawing.Point(180, 31); + this.pnlClear.Name = "pnlClear"; + this.pnlClear.Size = new System.Drawing.Size(35, 23); + this.pnlClear.Style.Alignment = System.Drawing.StringAlignment.Center; + this.pnlClear.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.pnlClear.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.pnlClear.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.pnlClear.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.pnlClear.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.pnlClear.Style.GradientAngle = 90; + this.pnlClear.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; + this.pnlClear.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.pnlClear.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.pnlClear.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.pnlClear.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; + this.pnlClear.TabIndex = 815; + this.pnlClear.Text = "还原"; + // + // pnlFliter + // + this.pnlFliter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.pnlFliter.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.pnlFliter.Cursor = System.Windows.Forms.Cursors.Hand; + this.pnlFliter.DisabledBackColor = System.Drawing.Color.Empty; + this.pnlFliter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.pnlFliter.Location = new System.Drawing.Point(142, 31); + this.pnlFliter.Name = "pnlFliter"; + this.pnlFliter.Size = new System.Drawing.Size(35, 23); + this.pnlFliter.Style.Alignment = System.Drawing.StringAlignment.Center; + this.pnlFliter.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.pnlFliter.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.pnlFliter.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.pnlFliter.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.pnlFliter.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.pnlFliter.Style.ForeColor.Color = System.Drawing.Color.White; + this.pnlFliter.Style.GradientAngle = 90; + this.pnlFliter.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.pnlFliter.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.pnlFliter.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.pnlFliter.TabIndex = 435; + this.pnlFliter.Text = "过滤"; + // + // textBox1 + // + this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.textBox1.Location = new System.Drawing.Point(21, 31); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(118, 23); + this.textBox1.TabIndex = 811; + // + // btnSetColumn + // + this.btnSetColumn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnSetColumn.CanvasColor = System.Drawing.SystemColors.Control; + this.btnSetColumn.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnSetColumn.DisabledBackColor = System.Drawing.Color.Empty; + this.btnSetColumn.Location = new System.Drawing.Point(21, 97); + this.btnSetColumn.Name = "btnSetColumn"; + this.btnSetColumn.Size = new System.Drawing.Size(74, 23); + this.btnSetColumn.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnSetColumn.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnSetColumn.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnSetColumn.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.btnSetColumn.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnSetColumn.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.btnSetColumn.Style.GradientAngle = 90; + this.btnSetColumn.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; + this.btnSetColumn.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnSetColumn.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnSetColumn.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnSetColumn.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; + this.btnSetColumn.TabIndex = 801; + this.btnSetColumn.Text = "设置表格列"; + this.btnSetColumn.Click += new System.EventHandler(this.btnSetColumn_Click); + // + // btnGetNotGet + // + this.btnGetNotGet.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnGetNotGet.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnGetNotGet.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnGetNotGet.DisabledBackColor = System.Drawing.Color.Empty; + this.btnGetNotGet.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnGetNotGet.Location = new System.Drawing.Point(142, 66); + this.btnGetNotGet.Name = "btnGetNotGet"; + this.btnGetNotGet.Size = new System.Drawing.Size(74, 23); + this.btnGetNotGet.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnGetNotGet.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnGetNotGet.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnGetNotGet.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnGetNotGet.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnGetNotGet.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnGetNotGet.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnGetNotGet.Style.GradientAngle = 90; + this.btnGetNotGet.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnGetNotGet.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnGetNotGet.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnGetNotGet.TabIndex = 431; + this.btnGetNotGet.Text = "查询未获取"; + // + // btnGetSelect + // + this.btnGetSelect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnGetSelect.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnGetSelect.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnGetSelect.DisabledBackColor = System.Drawing.Color.Empty; + this.btnGetSelect.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnGetSelect.Location = new System.Drawing.Point(142, 97); + this.btnGetSelect.Name = "btnGetSelect"; + this.btnGetSelect.Size = new System.Drawing.Size(74, 23); + this.btnGetSelect.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnGetSelect.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnGetSelect.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnGetSelect.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnGetSelect.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnGetSelect.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnGetSelect.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnGetSelect.Style.GradientAngle = 90; + this.btnGetSelect.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnGetSelect.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnGetSelect.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnGetSelect.TabIndex = 427; + this.btnGetSelect.Text = "查询选中"; + this.btnGetSelect.Click += new System.EventHandler(this.btnGetSelect_Click); + // + // ucGroupBoxEx1 + // + this.ucGroupBoxEx1.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.ucGroupBoxEx1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.ucGroupBoxEx1.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND; + 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(1388, 140); + this.ucGroupBoxEx1.TabIndex = 667; + this.ucGroupBoxEx1.TabStop = false; + this.ucGroupBoxEx1.Text = "统计汇总"; + // + // tableLayoutPanel1 + // + 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.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.lblAvailableBalance, 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.lblWithdrawCashAmount, 6, 3); + this.tableLayoutPanel1.Controls.Add(this.lblMallDepositLimitAmount, 7, 3); + this.tableLayoutPanel1.Controls.Add(this.label6, 7, 2); + this.tableLayoutPanel1.Controls.Add(this.label18, 4, 3); + this.tableLayoutPanel1.Location = new System.Drawing.Point(31, 19); + this.tableLayoutPanel1.Name = "tableLayoutPanel1"; + this.tableLayoutPanel1.RowCount = 4; + 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.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(1345, 115); + this.tableLayoutPanel1.TabIndex = 435; + // + // label17 + // + 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(599, 60); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(80, 17); + this.label17.TabIndex = 25; + this.label17.Text = "货款金额总和"; + // + // label16 + // + 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(1195, 3); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(94, 17); + this.label16.TabIndex = 24; + this.label16.Text = "近30日退款金额"; + // + // label15 + // + 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(1046, 3); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(87, 17); + this.label15.TabIndex = 23; + this.label15.Text = "近7日退款金额"; + // + // lblPayRefund30 + // + 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(1195, 30); + this.lblPayRefund30.Name = "lblPayRefund30"; + this.lblPayRefund30.Size = new System.Drawing.Size(18, 20); + this.lblPayRefund30.TabIndex = 21; + this.lblPayRefund30.Text = "0"; + // + // lblPayRefund7 + // + 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(1046, 30); + this.lblPayRefund7.Name = "lblPayRefund7"; + this.lblPayRefund7.Size = new System.Drawing.Size(18, 20); + this.lblPayRefund7.TabIndex = 20; + this.lblPayRefund7.Text = "0"; + // + // lblPayRefund + // + 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(897, 30); + this.lblPayRefund.Name = "lblPayRefund"; + this.lblPayRefund.Size = new System.Drawing.Size(18, 20); + this.lblPayRefund.TabIndex = 19; + this.lblPayRefund.Text = "0"; + // + // label13 + // + 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(897, 3); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(80, 17); + this.label13.TabIndex = 15; + this.label13.Text = "今日退款金额"; + // + // lblOrderNum + // + 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.Name = "lblOrderNum"; + this.lblOrderNum.Size = new System.Drawing.Size(18, 20); + this.lblOrderNum.TabIndex = 22; + this.lblOrderNum.Text = "0"; + // + // lblPayCnt30 + // + 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(301, 30); + this.lblPayCnt30.Name = "lblPayCnt30"; + this.lblPayCnt30.Size = new System.Drawing.Size(18, 20); + this.lblPayCnt30.TabIndex = 16; + this.lblPayCnt30.Text = "0"; + // + // label12 + // + 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(748, 3); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(94, 17); + this.label12.TabIndex = 8; + this.label12.Text = "近30日成交金额"; + // + // lblPayCnt7 + // + 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(152, 30); + this.lblPayCnt7.Name = "lblPayCnt7"; + this.lblPayCnt7.Size = new System.Drawing.Size(18, 20); + this.lblPayCnt7.TabIndex = 15; + this.lblPayCnt7.Text = "0"; + // + // label2 + // + 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(152, 3); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(63, 17); + this.label2.TabIndex = 7; + this.label2.Text = "近7日订单"; + // + // label1 + // + this.label1.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.label1.AutoSize = true; + this.label1.ForeColor = System.Drawing.SystemColors.ControlDarkDark; + this.label1.Location = new System.Drawing.Point(3, 3); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(56, 17); + this.label1.TabIndex = 0; + this.label1.Text = "今日订单"; + // + // lblPayCnt + // + this.lblPayCnt.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.lblPayCnt.AutoSize = true; + this.lblPayCnt.Font = new System.Drawing.Font("微软雅黑", 11F); + this.lblPayCnt.Location = new System.Drawing.Point(3, 30); + this.lblPayCnt.Name = "lblPayCnt"; + this.lblPayCnt.Size = new System.Drawing.Size(18, 20); + this.lblPayCnt.TabIndex = 14; + this.lblPayCnt.Text = "0"; + // + // lblPay30 + // + 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(748, 30); + this.lblPay30.Name = "lblPay30"; + this.lblPay30.Size = new System.Drawing.Size(18, 20); + this.lblPay30.TabIndex = 18; + this.lblPay30.Text = "0"; + // + // label10 + // + 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(599, 3); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(87, 17); + this.label10.TabIndex = 13; + this.label10.Text = "近7日成交金额"; + // + // lblPay7 + // + 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(599, 30); + this.lblPay7.Name = "lblPay7"; + this.lblPay7.Size = new System.Drawing.Size(18, 20); + this.lblPay7.TabIndex = 17; + this.lblPay7.Text = "0"; + // + // label9 + // + 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(450, 3); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(80, 17); + this.label9.TabIndex = 14; + this.label9.Text = "今日成交金额"; + // + // lblPay + // + 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(450, 30); + this.lblPay.Name = "lblPay"; + this.lblPay.Size = new System.Drawing.Size(18, 20); + this.lblPay.TabIndex = 16; + this.lblPay.Text = "0"; + // + // label11 + // + 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(301, 3); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(70, 17); + this.label11.TabIndex = 14; + this.label11.Text = "近30日订单"; + // + // lblAvailableBalance + // + this.lblAvailableBalance.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.lblAvailableBalance.AutoSize = true; + this.lblAvailableBalance.Font = new System.Drawing.Font("微软雅黑", 11F); + this.lblAvailableBalance.Location = new System.Drawing.Point(748, 87); + this.lblAvailableBalance.Name = "lblAvailableBalance"; + this.lblAvailableBalance.Size = new System.Drawing.Size(18, 20); + this.lblAvailableBalance.TabIndex = 15; + this.lblAvailableBalance.Text = "0"; + // + // label7 + // + 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(748, 60); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(92, 17); + this.label7.TabIndex = 12; + this.label7.Text = "可提现金额总和"; + // + // label5 + // + 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(450, 60); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(56, 17); + this.label5.TabIndex = 10; + this.label5.Text = "店铺违规"; + // + // lblPunish + // + 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(450, 87); + this.lblPunish.Name = "lblPunish"; + this.lblPunish.Size = new System.Drawing.Size(18, 20); + this.lblPunish.TabIndex = 15; + this.lblPunish.Text = "0"; + // + // lblAfterSaleAll + // + 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(301, 87); + this.lblAfterSaleAll.Name = "lblAfterSaleAll"; + this.lblAfterSaleAll.Size = new System.Drawing.Size(18, 20); + this.lblAfterSaleAll.TabIndex = 15; + this.lblAfterSaleAll.Text = "0"; + // + // label4 + // + 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(301, 60); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(32, 17); + this.label4.TabIndex = 9; + this.label4.Text = "售后"; + // + // lblWaybillError + // + 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(152, 87); + this.lblWaybillError.Name = "lblWaybillError"; + this.lblWaybillError.Size = new System.Drawing.Size(18, 20); + this.lblWaybillError.TabIndex = 15; + this.lblWaybillError.Text = "0"; + // + // label3 + // + 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(152, 60); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(56, 17); + this.label3.TabIndex = 8; + this.label3.Text = "物流异常"; + // + // label14 + // + 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.Name = "label14"; + this.label14.Size = new System.Drawing.Size(44, 17); + this.label14.TabIndex = 20; + this.label14.Text = "待发货"; + // + // label8 + // + 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(897, 60); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(92, 17); + this.label8.TabIndex = 13; + this.label8.Text = "待结算金额总和"; + // + // lblWithdrawCashAmount + // + this.lblWithdrawCashAmount.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.lblWithdrawCashAmount.AutoSize = true; + this.lblWithdrawCashAmount.Font = new System.Drawing.Font("微软雅黑", 11F); + this.lblWithdrawCashAmount.Location = new System.Drawing.Point(897, 87); + this.lblWithdrawCashAmount.Name = "lblWithdrawCashAmount"; + this.lblWithdrawCashAmount.Size = new System.Drawing.Size(18, 20); + this.lblWithdrawCashAmount.TabIndex = 15; + this.lblWithdrawCashAmount.Text = "0"; + // + // lblMallDepositLimitAmount + // + this.lblMallDepositLimitAmount.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.lblMallDepositLimitAmount.AutoSize = true; + this.lblMallDepositLimitAmount.Font = new System.Drawing.Font("微软雅黑", 11F); + this.lblMallDepositLimitAmount.Location = new System.Drawing.Point(1046, 87); + this.lblMallDepositLimitAmount.Name = "lblMallDepositLimitAmount"; + this.lblMallDepositLimitAmount.Size = new System.Drawing.Size(18, 20); + this.lblMallDepositLimitAmount.TabIndex = 15; + this.lblMallDepositLimitAmount.Text = "0"; + // + // label6 + // + 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(1046, 60); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(92, 17); + this.label6.TabIndex = 11; + this.label6.Text = "保证金金额总和"; + // + // label18 + // + this.label18.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.label18.AutoSize = true; + this.label18.Font = new System.Drawing.Font("微软雅黑", 11F); + this.label18.Location = new System.Drawing.Point(599, 87); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(18, 20); + this.label18.TabIndex = 26; + this.label18.Text = "0"; + // + // splitContainer2 + // + this.splitContainer2.BackColor = System.Drawing.Color.White; + this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; + this.splitContainer2.Location = new System.Drawing.Point(0, 0); + this.splitContainer2.Name = "splitContainer2"; + this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; + // + // splitContainer2.Panel1 + // + this.splitContainer2.Panel1.BackColor = System.Drawing.Color.White; + this.splitContainer2.Panel1.Controls.Add(this.pbLoading); + this.splitContainer2.Panel1.Controls.Add(this.panel1); + this.splitContainer2.Panel1.Controls.Add(this.dgvShop); + this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 4, 0); + // + // splitContainer2.Panel2 + // + this.splitContainer2.Panel2.Controls.Add(this.statusBar); + this.splitContainer2.Size = new System.Drawing.Size(1623, 306); + this.splitContainer2.SplitterDistance = 276; + 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(786, 113); + this.pbLoading.Name = "pbLoading"; + this.pbLoading.Size = new System.Drawing.Size(50, 50); + this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pbLoading.TabIndex = 6; + this.pbLoading.TabStop = false; + this.pbLoading.Visible = false; + // + // panel1 + // + this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel1.Controls.Add(this.btnClose); + 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(1427, 134); + 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.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(1338, 98); + this.btnClose.Name = "btnClose"; + this.btnClose.Size = new System.Drawing.Size(58, 23); + this.btnClose.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnClose.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnClose.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnClose.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnClose.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnClose.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnClose.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnClose.Style.GradientAngle = 90; + this.btnClose.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnClose.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnClose.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnClose.TabIndex = 435; + this.btnClose.Text = "关闭"; + this.btnClose.Click += new System.EventHandler(this.btnClose_Click); + // + // flowLayoutPanel1 + // + this.flowLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | 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(1372, 75); + this.flowLayoutPanel1.TabIndex = 8; + // + // dgvShop + // + this.dgvShop.AllowUserToAddRows = false; + this.dgvShop.AllowUserToDeleteRows = false; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; + this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + this.dgvShop.AutoRowNumber = true; + this.dgvShop.BackgroundColor = System.Drawing.Color.White; + this.dgvShop.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + 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.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; + this.dgvShop.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dgvShop.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.colSelect, + this.colLoginStatus, + this.colDetail, + this.colShopLoginName, + this.colShopId, + this.colShopAccount, + this.colNotes, + this.colGroup, + this.colOnSaleProductNumber, + this.colScore, + this.colPayCnt, + this.colPayCnt7, + this.colPayCnt30, + this.colPay, + this.colPay7, + this.colPay30, + this.colRefund, + this.colRefund7, + this.colRefund30, + this.colOrderNum, + this.colShipErr, + this.colAfterSale, + this.colPunish, + this.colAmount, + this.colAvailableBalance, + this.colBalance, + this.colBond}); + this.dgvShop.Dock = System.Windows.Forms.DockStyle.Fill; + this.dgvShop.Location = new System.Drawing.Point(4, 0); + this.dgvShop.Name = "dgvShop"; + this.dgvShop.ReadOnly = true; + this.dgvShop.RowHeadersWidth = 36; + this.dgvShop.RowTemplate.Height = 23; + this.dgvShop.Size = new System.Drawing.Size(1615, 276); + this.dgvShop.TabIndex = 5; + this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick); + // + // colSelect + // + this.colSelect.FillWeight = 22F; + this.colSelect.HeaderText = "选"; + this.colSelect.Name = "colSelect"; + this.colSelect.ReadOnly = true; + this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colSelect.Width = 26; + // + // colLoginStatus + // + this.colLoginStatus.FillWeight = 28F; + this.colLoginStatus.HeaderText = "状态"; + this.colLoginStatus.Name = "colLoginStatus"; + this.colLoginStatus.ReadOnly = true; + this.colLoginStatus.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colLoginStatus.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.colLoginStatus.Width = 38; + // + // colDetail + // + this.colDetail.FillWeight = 38F; + this.colDetail.HeaderText = "详情"; + this.colDetail.Name = "colDetail"; + this.colDetail.ReadOnly = true; + this.colDetail.Visible = false; + this.colDetail.Width = 38; + // + // colShopLoginName + // + this.colShopLoginName.FillWeight = 90F; + this.colShopLoginName.HeaderText = "店铺登录号码"; + this.colShopLoginName.Name = "colShopLoginName"; + this.colShopLoginName.ReadOnly = true; + this.colShopLoginName.Visible = false; + this.colShopLoginName.Width = 105; + // + // colShopId + // + this.colShopId.FillWeight = 70F; + this.colShopId.HeaderText = "店铺Id"; + this.colShopId.Name = "colShopId"; + this.colShopId.ReadOnly = true; + this.colShopId.Width = 54; + // + // colShopAccount + // + this.colShopAccount.FillWeight = 70F; + this.colShopAccount.HeaderText = "店铺名称"; + this.colShopAccount.Name = "colShopAccount"; + this.colShopAccount.ReadOnly = true; + this.colShopAccount.Width = 68; + // + // colNotes + // + this.colNotes.FillWeight = 80F; + this.colNotes.HeaderText = "备注"; + this.colNotes.Name = "colNotes"; + this.colNotes.ReadOnly = true; + this.colNotes.Width = 68; + // + // colGroup + // + this.colGroup.FillWeight = 80F; + this.colGroup.HeaderText = "分组"; + this.colGroup.Name = "colGroup"; + this.colGroup.ReadOnly = true; + this.colGroup.Width = 68; + // + // colOnSaleProductNumber + // + this.colOnSaleProductNumber.FillWeight = 60F; + this.colOnSaleProductNumber.HeaderText = "在售商品"; + this.colOnSaleProductNumber.Name = "colOnSaleProductNumber"; + this.colOnSaleProductNumber.ReadOnly = true; + this.colOnSaleProductNumber.Width = 68; + // + // colScore + // + this.colScore.FillWeight = 48F; + this.colScore.HeaderText = "体验分"; + this.colScore.Name = "colScore"; + this.colScore.ReadOnly = true; + this.colScore.Width = 54; + // + // colPayCnt + // + this.colPayCnt.FillWeight = 60F; + this.colPayCnt.HeaderText = "今日订单"; + this.colPayCnt.Name = "colPayCnt"; + this.colPayCnt.ReadOnly = true; + this.colPayCnt.Width = 62; + // + // colPayCnt7 + // + this.colPayCnt7.FillWeight = 60F; + this.colPayCnt7.HeaderText = "7日订单"; + this.colPayCnt7.Name = "colPayCnt7"; + this.colPayCnt7.ReadOnly = true; + this.colPayCnt7.Width = 62; + // + // colPayCnt30 + // + this.colPayCnt30.FillWeight = 60F; + this.colPayCnt30.HeaderText = "30日订单"; + this.colPayCnt30.Name = "colPayCnt30"; + this.colPayCnt30.ReadOnly = true; + this.colPayCnt30.Width = 64; + // + // colPay + // + this.colPay.HeaderText = "今日成交金额"; + this.colPay.Name = "colPay"; + this.colPay.ReadOnly = true; + this.colPay.Width = 86; + // + // colPay7 + // + this.colPay7.HeaderText = "7日成交金额"; + this.colPay7.Name = "colPay7"; + this.colPay7.ReadOnly = true; + this.colPay7.Width = 86; + // + // colPay30 + // + this.colPay30.HeaderText = "30日成交金额"; + this.colPay30.Name = "colPay30"; + this.colPay30.ReadOnly = true; + this.colPay30.Width = 88; + // + // colRefund + // + this.colRefund.HeaderText = "今日退款金额"; + this.colRefund.Name = "colRefund"; + this.colRefund.ReadOnly = true; + this.colRefund.Width = 86; + // + // colRefund7 + // + this.colRefund7.HeaderText = "7日退款金额"; + this.colRefund7.Name = "colRefund7"; + this.colRefund7.ReadOnly = true; + this.colRefund7.Width = 86; + // + // colRefund30 + // + this.colRefund30.HeaderText = "30日退款金额"; + this.colRefund30.Name = "colRefund30"; + this.colRefund30.ReadOnly = true; + this.colRefund30.Width = 88; + // + // colOrderNum + // + this.colOrderNum.HeaderText = "待发货"; + this.colOrderNum.Name = "colOrderNum"; + this.colOrderNum.ReadOnly = true; + this.colOrderNum.Width = 54; + // + // colShipErr + // + this.colShipErr.HeaderText = "物流异常"; + this.colShipErr.Name = "colShipErr"; + this.colShipErr.ReadOnly = true; + this.colShipErr.Width = 62; + // + // colAfterSale + // + this.colAfterSale.FillWeight = 50F; + this.colAfterSale.HeaderText = "售后"; + this.colAfterSale.Name = "colAfterSale"; + this.colAfterSale.ReadOnly = true; + this.colAfterSale.Width = 38; + // + // colPunish + // + this.colPunish.HeaderText = "店铺违规"; + this.colPunish.Name = "colPunish"; + this.colPunish.ReadOnly = true; + this.colPunish.Width = 62; + // + // colAmount + // + this.colAmount.HeaderText = "货款金额"; + this.colAmount.Name = "colAmount"; + this.colAmount.ReadOnly = true; + this.colAmount.Width = 62; + // + // colAvailableBalance + // + this.colAvailableBalance.HeaderText = "可提现余额"; + this.colAvailableBalance.Name = "colAvailableBalance"; + this.colAvailableBalance.ReadOnly = true; + this.colAvailableBalance.Width = 80; + // + // colBalance + // + this.colBalance.HeaderText = "待结算金额"; + this.colBalance.Name = "colBalance"; + this.colBalance.ReadOnly = true; + this.colBalance.Width = 80; + // + // colBond + // + this.colBond.FillWeight = 75F; + this.colBond.HeaderText = "保证金"; + this.colBond.Name = "colBond"; + this.colBond.ReadOnly = true; + this.colBond.Width = 54; + // + // statusBar + // + this.statusBar.BackColor = System.Drawing.Color.White; + this.statusBar.Dock = System.Windows.Forms.DockStyle.Fill; + this.statusBar.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + 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(1623, 26); + this.statusBar.TabIndex = 1; + // + // WxShopStatisticsForm + // + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; + this.ClientSize = new System.Drawing.Size(1623, 450); + this.Controls.Add(this.splitContainer1); + this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.Name = "WxShopStatisticsForm"; + this.Text = "WxShopStatisticsForm"; + this.Load += new System.EventHandler(this.WxShopStatisticsForm_Load); + this.VisibleChanged += new System.EventHandler(this.WxShopStatisticsForm_VisibleChanged); + this.splitContainer1.Panel1.ResumeLayout(false); + this.splitContainer1.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); + this.splitContainer1.ResumeLayout(false); + this.ucGroupBoxEx3.ResumeLayout(false); + this.ucGroupBoxEx3.PerformLayout(); + this.ucGroupBoxEx1.ResumeLayout(false); + this.tableLayoutPanel1.ResumeLayout(false); + this.tableLayoutPanel1.PerformLayout(); + this.splitContainer2.Panel1.ResumeLayout(false); + this.splitContainer2.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); + this.splitContainer2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.pbLoading)).EndInit(); + this.panel1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.dgvShop)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.SplitContainer splitContainer1; + private UserComponent.UcGroupBoxEx ucGroupBoxEx3; + private DevComponents.DotNetBar.PanelEx pnlClear; + private DevComponents.DotNetBar.PanelEx pnlFliter; + private System.Windows.Forms.TextBox textBox1; + private DevComponents.DotNetBar.PanelEx btnSetColumn; + private DevComponents.DotNetBar.PanelEx btnGetNotGet; + private DevComponents.DotNetBar.PanelEx btnGetSelect; + private UserComponent.UcGroupBoxEx ucGroupBoxEx1; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; + private System.Windows.Forms.Label lblOrderNum; + private System.Windows.Forms.Label lblPayCnt30; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label lblPayCnt7; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label lblPayCnt; + private System.Windows.Forms.Label lblPay30; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label lblPay7; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label lblPay; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label lblWithdrawCashAmount; + private System.Windows.Forms.Label lblAvailableBalance; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label lblMallDepositLimitAmount; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label lblPunish; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.SplitContainer splitContainer2; + private System.Windows.Forms.PictureBox pbLoading; + private System.Windows.Forms.Panel panel1; + private DevComponents.DotNetBar.PanelEx btnClose; + private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; + private UserComponent.DataGridViewEx dgvShop; + private UserControls.StatusBarUserControl statusBar; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label lblPayRefund; + private System.Windows.Forms.Label lblPayRefund30; + private System.Windows.Forms.Label lblPayRefund7; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label lblAfterSaleAll; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label lblWaybillError; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; + private System.Windows.Forms.DataGridViewLinkColumn colLoginStatus; + private System.Windows.Forms.DataGridViewLinkColumn colDetail; + private System.Windows.Forms.DataGridViewTextBoxColumn colShopLoginName; + private System.Windows.Forms.DataGridViewTextBoxColumn colShopId; + private System.Windows.Forms.DataGridViewTextBoxColumn colShopAccount; + private System.Windows.Forms.DataGridViewTextBoxColumn colNotes; + private System.Windows.Forms.DataGridViewTextBoxColumn colGroup; + private System.Windows.Forms.DataGridViewTextBoxColumn colOnSaleProductNumber; + private System.Windows.Forms.DataGridViewTextBoxColumn colScore; + private System.Windows.Forms.DataGridViewTextBoxColumn colPayCnt; + private System.Windows.Forms.DataGridViewTextBoxColumn colPayCnt7; + private System.Windows.Forms.DataGridViewTextBoxColumn colPayCnt30; + private System.Windows.Forms.DataGridViewTextBoxColumn colPay; + private System.Windows.Forms.DataGridViewTextBoxColumn colPay7; + private System.Windows.Forms.DataGridViewTextBoxColumn colPay30; + private System.Windows.Forms.DataGridViewTextBoxColumn colRefund; + private System.Windows.Forms.DataGridViewTextBoxColumn colRefund7; + private System.Windows.Forms.DataGridViewTextBoxColumn colRefund30; + private System.Windows.Forms.DataGridViewTextBoxColumn colOrderNum; + private System.Windows.Forms.DataGridViewTextBoxColumn colShipErr; + private System.Windows.Forms.DataGridViewTextBoxColumn colAfterSale; + private System.Windows.Forms.DataGridViewTextBoxColumn colPunish; + private System.Windows.Forms.DataGridViewTextBoxColumn colAmount; + private System.Windows.Forms.DataGridViewTextBoxColumn colAvailableBalance; + private System.Windows.Forms.DataGridViewTextBoxColumn colBalance; + private System.Windows.Forms.DataGridViewTextBoxColumn colBond; + } +} \ No newline at end of file diff --git a/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.cs b/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.cs new file mode 100644 index 0000000..0fa0338 --- /dev/null +++ b/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.cs @@ -0,0 +1,396 @@ +using AllBase; +using AllBase.Helper; +using AllBase.Model.Config; +using AllBase.Model.Result; +using NaiBa.Util.Extension; +using NaiBa.Util.Winform.Extension; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using TemuKJD.BLL; +using TemuKJD.KJDForms.ShopForms; +using TemuKJD.UserComponent; + +namespace TemuKJD.WXForms.ShopForms +{ + public partial class WxShopStatisticsForm : BaseForms.BaseForm + { + bool isInit = false; + public List lstShopStatisticsInfo = new List(); + public WxShopStatisticsForm() + { + InitializeComponent(); + } + + private void WxShopStatisticsForm_Load(object sender, EventArgs e) + { + this.dgvShop.AddSelectorColumn("colSelect"); + + foreach(DataGridViewColumn column in dgvShop.Columns) + { + if (!string.IsNullOrEmpty(column.HeaderText) && column.HeaderText != "店铺登录号码") + { + var chk = new UcCheckBox() { Name = "chk" + column.Name, Tag = column.Name, Text = column.HeaderText, Checked = column.Visible, }; + chk.CheckedChanged += Chk_CheckedChanged; + this.flowLayoutPanel1.Controls.Add(chk); + } + } + } + + private void Chk_CheckedChanged(object sender, EventArgs e) + { + var chk = sender as UcCheckBox; + if (chk != null) + { + dgvShop.Columns[chk.Tag.ParseToString()].Visible = chk.Checked; + } + } + + private void WxShopStatisticsForm_VisibleChanged(object sender, EventArgs e) + { + if (Visible == true) + { + if (!isInit) + { + isInit = true; + RefreshShop(); + } + } + } + + + public void RefreshShop() + { + this.pbLoading.Visible = true; + // 店铺Id + var selectIds = dgvShop.Rows.Cast().Where(row + => row.Cells["colSelect"]?.Value.ParseToBool() == true).Select(r => r.Cells["colShopId"]?.Value.ToString()).ToList(); + // 获取被删除的店铺 + List dgvRowList = dgvShop.Rows.Cast().Where(row + => !GlobalConfig.ShopLoginList.Any(s => s.ShopId == row.Cells["colShopId"]?.Value?.ToString())).ToList(); + // 更新被删除的店铺列表 + foreach (var row in dgvRowList) + { + dgvShop.Rows.Remove(row); + } + // 获取被删除的统计信息并删除 + List statisticsDeleteLst = lstShopStatisticsInfo.Where(row + => !GlobalConfig.ShopLoginList.Any(s => s.ShopId == row.ShopId.ToString())).ToList(); + foreach (var s in statisticsDeleteLst) + { + lstShopStatisticsInfo.Remove(s); + } + + // 绑定店铺(含新导入的店铺) + foreach (ShopLoginInfo shopEntity in GlobalConfig.ShopLoginList) + { + if (!string.IsNullOrEmpty(shopEntity.ShopId)) + BindShop(shopEntity, selectIds); + } + + GetShopStatistics(GlobalConfig.ShopLoginList.ToList(), selectIds); + } + + private void GetShopStatistics(List shops, List selectIds) + { + Task.Run(() => + { + foreach (ShopLoginInfo shopEntity in shops) + { + if (string.IsNullOrEmpty(shopEntity.ShopId)) + continue; + bool canUse = shopEntity.LoginStatus == "登录成功"; + if (!canUse) + { + BindShop(shopEntity, selectIds); + continue; + } + + WxShopSaleStatisticsGroup statistics = lstShopStatisticsInfo.FirstOrDefault(s => s.ShopId.ToString() == shopEntity.ShopId); + if (statistics == null) + { + statistics = new WxShopSaleStatisticsGroup() + { + Notes = shopEntity.Notes, + GroupName = shopEntity.GroupName, + ShopId = shopEntity.ShopId.ParseToString(), + ShopAccount = shopEntity.ShopAccount, + }; + lstShopStatisticsInfo.Add(statistics); + } + GetShopStatistics(shopEntity, statistics); + Invoke(new Action(() => + { + this.lblPayCnt.Text = this.lstShopStatisticsInfo.Sum(s => s.WxShopSaleInfoToday.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()).ToString("f2"); + this.lblPay7.Text = this.lstShopStatisticsInfo.Sum(s => s.WxShopSaleInfo7Day.pay_gmv.ParseToDecimal()).ToString("f2"); + this.lblPay30.Text = this.lstShopStatisticsInfo.Sum(s => s.WxShopSaleInfo30Day.pay_gmv.ParseToDecimal()).ToString("f2"); + this.lblPayRefund.Text = this.lstShopStatisticsInfo.Sum(s => s.WxShopSaleInfoToday.pay_refund_gmv.ParseToLong()).ToString(); + this.lblPayRefund7.Text = this.lstShopStatisticsInfo.Sum(s => s.WxShopSaleInfo7Day.pay_refund_gmv.ParseToLong()).ToString(); + this.lblPayRefund30.Text = this.lstShopStatisticsInfo.Sum(s => s.WxShopSaleInfo30Day.pay_refund_gmv.ParseToLong()).ToString(); + this.lblOrderNum.Text = this.lstShopStatisticsInfo.Sum(s => s.WxShopMainInfo.orderNumRet?.num.ParseToInt()).ToString(); + this.lblWaybillError.Text = this.lstShopStatisticsInfo.Sum(s => s.WxShopMainInfo.waybillErrorRet?.num.ParseToInt()).ToString(); + this.lblAfterSaleAll.Text = this.lstShopStatisticsInfo.Sum(s => s.WxShopMainInfo.aftersaleAllRet?.num.ParseToInt()).ToString(); + this.lblPunish.Text = this.lstShopStatisticsInfo.Sum(s => s.WxShopMainInfo.punishRet?.num.ParseToInt()).ToString(); + + //this.lblAvailableBalance.Text = this.lstShopStatisticsInfo.Sum(s => s.availableBalance).ToString(); + //this.lblMallDepositLimitAmount.Text = this.lstShopStatisticsInfo.Sum(s => s.mallDepositLimitAmount).ToString(); + //this.lblWithdrawCashAmount.Text = this.lstShopStatisticsInfo.Sum(s => s.withdrawCashAmount).ToString(); + BindShop(shopEntity, selectIds); + })); + } + Invoke(new Action(() => + { + this.pbLoading.Visible = false; + })); + }); + } + + private void BindShop(ShopLoginInfo shopEntity, List selectShopId = null) + { + if (shopEntity == null) + return; + if (selectShopId == null) + selectShopId = new List(); + + WxShopSaleStatisticsGroup statistics = lstShopStatisticsInfo.FirstOrDefault(s => s.ShopId.ToString() == shopEntity.ShopId); + if (statistics == null) + { + statistics = new WxShopSaleStatisticsGroup() + { + Notes = shopEntity.Notes, + GroupName = shopEntity.GroupName, + ShopId = shopEntity.ShopId.ParseToString(), + ShopAccount = shopEntity.ShopAccount, + }; + lstShopStatisticsInfo.Add(statistics); + } + + bool canUse = shopEntity.LoginStatus == "登录成功"; + var row = dgvShop.Rows.Cast().FirstOrDefault( + p => p.Cells.GetCellValueFromColumnName("colShopId").ParseToString() == shopEntity.ShopId); + if (row == null) + { + int rowId = this.dgvShop.Rows.Add( + false, + canUse ? "在线" : "掉线", + "详情", + shopEntity.LoginName, + shopEntity.ShopId, + shopEntity.ShopAccount, + shopEntity.Notes, + shopEntity.GroupName, + "", // 在售商品 + "", // 店铺体验分 + statistics.WxShopSaleInfoToday.pay_order_cnt, // 今日订单 + statistics.WxShopSaleInfo7Day.pay_order_cnt, // 7日订单 + statistics.WxShopSaleInfo30Day.pay_order_cnt, // 30日订单 + statistics.WxShopSaleInfoToday.pay_gmv, // 今日成交金额 + statistics.WxShopSaleInfo7Day.pay_gmv, // 7日成交金额 + statistics.WxShopSaleInfo30Day.pay_gmv, // 30日成交金额 + statistics.WxShopSaleInfoToday.pay_refund_gmv, // 今日退款金额 + statistics.WxShopSaleInfo7Day.pay_refund_gmv, // 7日退款金额 + statistics.WxShopSaleInfo30Day.pay_refund_gmv, // 30日退款金额 + statistics.WxShopMainInfo.orderNumRet?.num, // 待发货 + statistics.WxShopMainInfo.waybillErrorRet?.num, // 物流异常 + statistics.WxShopMainInfo.aftersaleAllRet?.num, // 售后 + statistics.WxShopMainInfo.punishRet?.num, // 店铺违规 + "", + "", + "", + "" + ); + row = dgvShop.Rows[rowId]; + (row.Cells["colLoginStatus"] as DataGridViewLinkCell).Style.ForeColor = canUse ? Color.Green : Color.Red; + (row.Cells["colLoginStatus"] as DataGridViewLinkCell).LinkColor = canUse ? Color.Green : Color.Red; + (row.Cells["colLoginStatus"] as DataGridViewLinkCell).ActiveLinkColor = canUse ? Color.LightGreen : Color.OrangeRed; + (row.Cells["colLoginStatus"] as DataGridViewLinkCell).VisitedLinkColor = canUse ? Color.DarkGreen : Color.DarkRed; + row.Height = 32; + } + else + { + row.Cells["colSelect"].Value = selectShopId.Contains(shopEntity.ShopId) && canUse; + row.Cells["colLoginStatus"].Value = canUse ? "在线" : "掉线"; + (row.Cells["colLoginStatus"] as DataGridViewLinkCell).Style.ForeColor = canUse ? Color.Green : Color.Red; + (row.Cells["colLoginStatus"] as DataGridViewLinkCell).LinkColor = canUse ? Color.Green : Color.Red; + (row.Cells["colLoginStatus"] as DataGridViewLinkCell).ActiveLinkColor = canUse ? Color.LightGreen : Color.OrangeRed; + (row.Cells["colLoginStatus"] as DataGridViewLinkCell).VisitedLinkColor = canUse ? Color.DarkGreen : Color.DarkRed; + + row.Cells["colShopLoginName"].Value = shopEntity.LoginName; + row.Cells["colShopAccount"].Value = shopEntity.ShopAccount; + row.Cells["colNotes"].Value = shopEntity.Notes; + row.Cells["colGroup"].Value = shopEntity.GroupName; + // 在售商品 + // 店铺体验分 + row.Cells["colPayCnt"].Value = statistics.WxShopSaleInfoToday.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; // 今日成交金额 + row.Cells["colPay7"].Value = statistics.WxShopSaleInfo7Day.pay_gmv; // 7日成交金额 + row.Cells["colPay30"].Value = statistics.WxShopSaleInfo30Day.pay_gmv; // 30日成交金额 + row.Cells["colRefund"].Value = statistics.WxShopSaleInfoToday.pay_refund_gmv; // 今日退款金额 + row.Cells["colRefund7"].Value = statistics.WxShopSaleInfo7Day.pay_refund_gmv; // 7日退款金额 + row.Cells["colRefund30"].Value = statistics.WxShopSaleInfo30Day.pay_refund_gmv; // 30日退款金额 + row.Cells["colOrderNum"].Value = statistics.WxShopMainInfo.orderNumRet?.num; // 待发货 + row.Cells["colShipErr"].Value = statistics.WxShopMainInfo.waybillErrorRet?.num; // 物流异常 + row.Cells["colAfterSale"].Value = statistics.WxShopMainInfo.aftersaleAllRet?.num; // 售后 + row.Cells["colPunish"].Value = statistics.WxShopMainInfo.punishRet?.num; // 店铺违规 + + //row.Cells["colOnSaleProductNumber"].Value = statistics.onSaleProductNumber == null ? "-" : statistics.onSaleProductNumber.ToString(); //在售商品数 + //row.Cells["colSaleVolume"].Value = statistics.saleVolume == null ? "-" : statistics.saleVolume.ToString(); //今日销量 + //row.Cells["colTodayProfit"].Value = statistics.todayProfit == null ? "-" : statistics.todayProfit.Value.ToString("0.00"); //今日利润 + //row.Cells["colSevenDaysSaleVolume"].Value = statistics.sevenDaysSaleVolume == null ? "-" : statistics.sevenDaysSaleVolume.ToString(); //7日销量 + //row.Cells["colSevenDaysProfit"].Value = statistics.sevenDaysProfit == null ? "-" : statistics.sevenDaysProfit.Value.ToString("0.00"); //7日利润 + //row.Cells["colThirtyDaysSaleVolume"].Value = statistics.thirtyDaysSaleVolume == null ? "-" : statistics.thirtyDaysSaleVolume.ToString(); //30日销量 + //row.Cells["colThirtyDaysProfit"].Value = statistics.thirtyDaysProfit == null ? "-" : statistics.thirtyDaysProfit.Value.ToString("0.00"); //30日利润 + //row.Cells["colGoodsValue"].Value = statistics.goodsValue == null ? "-" : (statistics.goodsCost.Value * 0.01m).ToString("0.00"); //销售货值 + //row.Cells["colGoodsCost"].Value = statistics.goodsCost == null ? "-" : (statistics.goodsCost.Value * 0.01m).ToString("0.00"); //成本 + } + } + + private void GetShopStatistics(ShopLoginInfo shop, WxShopSaleStatisticsGroup statistics) + { + if (statistics == null || statistics.WxShopMainInfo == null || statistics.WxShopSaleInfoToday == null || statistics.WxShopSaleInfo7Day == null || statistics.WxShopSaleInfo30Day == null) + return; + + if (statistics.WxShopMainInfo.LastRefreshDate != DateTime.Now.Date) + { + try + { + string html = GetShopMainInfoList(shop); + if (html.Contains("\"code\":0")) + { + statistics.WxShopMainInfo = JsonHelper.DeserializeJsonToObject(html); + statistics.WxShopMainInfo.LastRefreshDate = DateTime.Now; + } + 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; + ShopListForm.Instance.CheckShopLogin(new string[] { shop.LoginName }, false); + System.Threading.Thread.Sleep(Randomx.GetId(100, 200)); + statistics.err_msg = errStr; + return; + } + System.Threading.Thread.Sleep(Randomx.GetId(50, 100)); + } + catch (Exception ex) + { + System.Threading.Thread.Sleep(Randomx.GetId(50, 100)); + statistics.err_msg = ex.Message; + return; + } + } + } + + + private void btnSetColumn_Click(object sender, EventArgs e) + { + this.panel1.Visible = true; + } + + private void btnClose_Click(object sender, EventArgs e) + { + this.panel1.Visible = false; + } + + + + /// + /// 获取店铺后台主页售后数量等数据 + /// + /// + /// + public static string GetShopMainInfoList(ShopLoginInfo shop) + { + string url = "https://store.weixin.qq.com/shop-faas/mmchannelstradehome/home/main?token=&lang=zh_CN"; + string referer = "https://store.weixin.qq.com/shop/home"; + var result = WXHttpResponseBLL.WeiXinGetResponse(shop, url, referer); + return result; + //{"code":0,"orderNumRet":{"code":0,"pendingShipNum":"1"},"waybillErrorRet":{"code":0,"totalNum":0},"aftersaleAllRet":{"code":0,"totalNum":3},"guaranteeRet":{"code":0,"totalNum":0},"prewarnRet":{"code":0,"waitStatusCount":0},"punishRet":{"code":0,"pendingNum":1},"mchUndealRet":{"code":0,"totalNum":0}} + //pendingShipNum待发货 waybillErrorRet物流异常 aftersaleAllRet售后 guaranteeRet服务保障 prewarnRet店铺预警 punishRet店铺违规 mchUndealRet工单 + } + + private void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e) + { + if (e.ColumnIndex < 0 || e.RowIndex < 0) + return; + string headerText = dgvShop.Columns[e.ColumnIndex].HeaderText; + string columnName = dgvShop.Columns[e.ColumnIndex].Name; + string shopId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToString(); + string shopAccount = dgvShop.Rows[e.RowIndex].Cells["colShopAccount"].Value.ToString(); + var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId.ToString()); + var row = dgvShop.Rows[e.RowIndex]; + switch (columnName) + { + case "colSelect": + row.Cells["colSelect"].Value = !row.Cells["colSelect"].Value.ParseToBool(); + break; + case "colLoginStatus": + { + WXShopListForm.Instance.CheckShopLogin(new string[] { shop.LoginName }, false); + WXShopLoginForm shopLoginForm = new WXShopLoginForm(shop); + if (shop.LoginStatus != "登录成功") + { + shopLoginForm.openType = EnumOpenType.login; + shopLoginForm.ShowDialog(); + } + else + { + shopLoginForm.openType = EnumOpenType.manage; + shopLoginForm.WindowState = FormWindowState.Maximized; + shopLoginForm.Show(); + } + } + break; + case "colApi": + { + WXShopLoginForm shopLoginForm = new WXShopLoginForm(shop); + shopLoginForm.openType = EnumOpenType.manage; + shopLoginForm.WindowState = FormWindowState.Maximized; + shopLoginForm.InitUrl = "https://store.weixin.qq.com/shop/servicemarket/detail?serviceId=3984039898079707139"; + shopLoginForm.Show(); + } + break; + } + } + + private void btnGetSelect_Click(object sender, EventArgs e) + { + var selectIds = dgvShop.Rows.Cast().Where(row + => row.Cells["colSelect"]?.Value.ParseToBool() == true).Select(r => r.Cells["colShopId"]?.Value.ToString()).ToList(); + + ReGetStatistics(selectIds); + } + void ReGetStatistics(List reGetShopIds) + { + var shopList = GlobalConfig.ShopLoginList.Where(s => reGetShopIds.Contains(s.ShopId)).ToList(); + foreach (var shop in shopList) + { + WxShopSaleStatisticsGroup statistics = lstShopStatisticsInfo.FirstOrDefault(s => s.ShopId.ToString() == shop.ShopId); + if (statistics != null) + { + statistics.WxShopMainInfo.LastRefreshDate = DateTime.MinValue; + statistics.WxShopSaleInfoToday.LastRefreshDate = DateTime.MinValue; + statistics.WxShopSaleInfo7Day.LastRefreshDate = DateTime.MinValue; + statistics.WxShopSaleInfo30Day.LastRefreshDate = DateTime.MinValue; + } + //this.lstSubOrderInfo.RemoveAll(o => o.supplierId.ParseToString() == shop.ShopId); + } + + this.pbLoading.Visible = true; + GetShopStatistics(shopList, reGetShopIds); + } + } +} diff --git a/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.resx b/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.resx new file mode 100644 index 0000000..cadf0b7 --- /dev/null +++ b/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.resx @@ -0,0 +1,201 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + \ No newline at end of file diff --git a/TEMUKJD/WXForms/TalkForms/WxTalkForm.cs b/TEMUKJD/WXForms/TalkForms/WxTalkForm.cs index 5c78ebc..e92644c 100644 --- a/TEMUKJD/WXForms/TalkForms/WxTalkForm.cs +++ b/TEMUKJD/WXForms/TalkForms/WxTalkForm.cs @@ -133,7 +133,7 @@ namespace TemuKJD.WXForms.TalkForms lstShopAfterSale = NaiBa.Util.Helper.ConfigHelper.LoadConfig>("wx_shop_after_sale_list"); if (lstShopAfterSale == null) lstShopAfterSale = new ConcurrentList(); - RefreshAfterSale(); + //RefreshAfterSale(); })); while (true) @@ -141,9 +141,12 @@ namespace TemuKJD.WXForms.TalkForms Thread.Sleep(1000); if (DateTime.Now > nextRefreshTime) { + Invoke(new Action(() => { pbLoading.Visible = true; })); nextRefreshTime = DateTime.Now.AddMinutes(30); - Invoke(new Action(() => { RefreshCookie(true); })); - Invoke(new Action(() => { RefreshMsgCount(); })); + RefreshCookie(true); + RefreshMsgCount(); + RefreshAfterSale(true); + Invoke(new Action(() => { pbLoading.Visible = false; })); } var deltaTime = nextRefreshTime - DateTime.Now; Invoke(new Action(() => @@ -985,25 +988,25 @@ namespace TemuKJD.WXForms.TalkForms private void pnlRefresh_Click(object sender, EventArgs e) { - nextRefreshTime = DateTime.Now.AddMinutes(30); - RefreshCookie(); + //nextRefreshTime = DateTime.Now.AddMinutes(30); + pbLoading.Visible = true; + Task.Run(() => + { + RefreshCookie(); + Invoke(new Action(() => { pbLoading.Visible = false; })); + }); } DateTime nextRefreshTime = DateTime.Now; void RefreshCookie(bool isAuto = false) { - pbLoading.Visible = true; - Task.Run(() => + if (!isAuto) + WXShopListForm.UpdateShop(); + foreach (var shop in GlobalConfig.ShopLoginList) { - if (!isAuto) - WXShopListForm.UpdateShop(); - foreach (var shop in GlobalConfig.ShopLoginList) - { - WXShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false); - } - LoadShop(); - Invoke(new Action(() => { pbLoading.Visible = false; })); - }); + WXShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false); + } + LoadShop(); } private void btnFilterShop_Click(object sender, EventArgs e) @@ -1045,71 +1048,71 @@ namespace TemuKJD.WXForms.TalkForms private void btnRefreshAfterSale_Click(object sender, EventArgs e) { - RefreshAfterSale(true); + this.pbLoading.Visible = true; + Task.Run(() => + { + RefreshAfterSale(true); + Invoke(new Action(() => { pbLoading.Visible = false; })); + }); } void RefreshAfterSale(bool refreshAll = false) { - this.pbLoading.Visible = true; - Task.Run(() => + List tList = new List(); + if (refreshAll) + lstShopAfterSale.Clear(); + foreach (var shop in GlobalConfig.ShopLoginList) { - List tList = new List(); - if (refreshAll) - lstShopAfterSale.Clear(); - foreach (var shop in GlobalConfig.ShopLoginList) + var afterInfo = lstShopAfterSale.FirstOrDefault(sa => sa.ShopId == shop.ShopId); + if (afterInfo == null) + afterInfo = new WxShopAfterSaleInfo() { ShopId = shop.ShopId }; + Invoke(new Action(() => { LoadShopAfterSale(afterInfo, ""); })); + var t = Task.Run(() => { - var afterInfo = lstShopAfterSale.FirstOrDefault(sa => sa.ShopId == shop.ShopId); - if (afterInfo == null) - afterInfo = new WxShopAfterSaleInfo() { ShopId = shop.ShopId }; - Invoke(new Action(() => { LoadShopAfterSale(afterInfo, ""); })); - var t = Task.Run(() => + try { - try + if (shop.LoginStatus != "登录成功") { - if (shop.LoginStatus != "登录成功") - { - Invoke(new Action(() => { LoadShopAfterSale(new WxShopAfterSaleInfo() { ShopId = shop.ShopId }, "店铺掉线"); })); - return; - } + Invoke(new Action(() => { LoadShopAfterSale(new WxShopAfterSaleInfo() { ShopId = shop.ShopId }, "店铺掉线"); })); + return; + } - var afterSaleInfo = lstShopAfterSale.FirstOrDefault(sa => sa.ShopId == shop.ShopId); - if (refreshAll || afterSaleInfo == null || afterSaleInfo.RefreshTime.Date != DateTime.Now.Date) + var afterSaleInfo = lstShopAfterSale.FirstOrDefault(sa => sa.ShopId == shop.ShopId); + if (refreshAll || afterSaleInfo == null || afterSaleInfo.RefreshTime.Date != DateTime.Now.Date) + { + lstShopAfterSale.RemoveAll(sa => sa.ShopId == shop.ShopId); + var rst = WxShopStatisticsForm.GetShopMainInfoList(shop); + if (!rst.Contains("\"code\":0")) { - lstShopAfterSale.RemoveAll(sa => sa.ShopId == shop.ShopId); - var rst = GetApiServiceList(shop); - if (!rst.Contains("\"code\":0")) + WXShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false); + if (shop.LoginStatus != "登录成功") { - WXShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false); - if (shop.LoginStatus != "登录成功") - { - Invoke(new Action(() => { LoadShopAfterSale(new WxShopAfterSaleInfo() { ShopId = shop.ShopId }, "店铺掉线"); })); - return; - } - - afterInfo = new WxShopAfterSaleInfo() { ShopId = shop.ShopId, RefreshTime = DateTime.Now }; - lstShopAfterSale.Add(afterInfo); - Invoke(new Action(() => { LoadShopAfterSale(afterInfo, "查询失败"); })); + Invoke(new Action(() => { LoadShopAfterSale(new WxShopAfterSaleInfo() { ShopId = shop.ShopId }, "店铺掉线"); })); return; } - var afterCount = JsonHelper.JObjectParse(rst)["aftersaleAllRet"]["totalNum"].ParseToInt(); - afterInfo = new WxShopAfterSaleInfo() { ShopId = shop.ShopId, RefreshTime = DateTime.Now, AfterSaleCount = afterCount }; + afterInfo = new WxShopAfterSaleInfo() { ShopId = shop.ShopId, RefreshTime = DateTime.Now }; lstShopAfterSale.Add(afterInfo); - Invoke(new Action(() => { LoadShopAfterSale(afterInfo, "已查询"); })); + Invoke(new Action(() => { LoadShopAfterSale(afterInfo, "查询失败"); })); return; } + + var afterCount = JsonHelper.JObjectParse(rst)["aftersaleAllRet"]["totalNum"].ParseToInt(); + afterInfo = new WxShopAfterSaleInfo() { ShopId = shop.ShopId, RefreshTime = DateTime.Now, AfterSaleCount = afterCount }; + lstShopAfterSale.Add(afterInfo); + Invoke(new Action(() => { LoadShopAfterSale(afterInfo, "已查询"); })); + return; } - catch (Exception ex) - { - } - }); - tList.Add(t); - while (tList.Where(ta => !ta.IsFaulted && !ta.IsCompleted).Count() >= 20) { Thread.Sleep(100); } - } - while (tList.Where(ta => !ta.IsFaulted && !ta.IsCompleted).Count() >= 1) { Thread.Sleep(100); } - NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_shop_after_sale_list", lstShopAfterSale); - Invoke(new Action(() => { pbLoading.Visible = false; })); - }); + } + catch (Exception ex) + { + } + }); + tList.Add(t); + while (tList.Where(ta => !ta.IsFaulted && !ta.IsCompleted).Count() >= 20) { Thread.Sleep(100); } + } + while (tList.Where(ta => !ta.IsFaulted && !ta.IsCompleted).Count() >= 1) { Thread.Sleep(100); } + NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_shop_after_sale_list", lstShopAfterSale); } private void btnToKfMainPage_Click(object sender, EventArgs e) @@ -1129,20 +1132,6 @@ namespace TemuKJD.WXForms.TalkForms } } - /// - /// 获取店铺后台主页售后数量等数据 - /// - /// - /// - public static string GetApiServiceList(ShopLoginInfo shop) - { - string url = "https://store.weixin.qq.com/shop-faas/mmchannelstradehome/home/main?token=&lang=zh_CN"; - string referer = "https://store.weixin.qq.com/shop/home"; - var result = WXHttpResponseBLL.WeiXinGetResponse(shop, url, referer); - return result; - //{"code":0,"orderNumRet":{"code":0,"pendingShipNum":"1"},"waybillErrorRet":{"code":0,"totalNum":0},"aftersaleAllRet":{"code":0,"totalNum":3},"guaranteeRet":{"code":0,"totalNum":0},"prewarnRet":{"code":0,"waitStatusCount":0},"punishRet":{"code":0,"pendingNum":1},"mchUndealRet":{"code":0,"totalNum":0}} - //pendingShipNum待发货 waybillErrorRet物流异常 aftersaleAllRet售后 guaranteeRet服务保障 prewarnRet店铺预警 punishRet店铺违规 mchUndealRet工单 - } public static string GetKfMsgStatistics(ShopLoginInfo shop, long beginDateTick, long endDateTick) { @@ -1154,50 +1143,50 @@ namespace TemuKJD.WXForms.TalkForms private void btnRefreshMsgCount_Click(object sender, EventArgs e) { - RefreshMsgCount(); + pbLoading.Visible = true; + Task.Run(() => + { + RefreshMsgCount(); + Invoke(new Action(() => { pbLoading.Visible = false; })); + }); } void RefreshMsgCount() { - pbLoading.Visible = true; - Task.Run(() => + lstShopKfStatistics.Clear(); + foreach (var shop in GlobalConfig.ShopLoginList) { - lstShopKfStatistics.Clear(); - foreach (var shop in GlobalConfig.ShopLoginList) + var kfMsg = new WxShopKfStatistics() { ShopId = shop.ShopId }; + var kfMsgRst = GetKfMsgStatistics(shop, BaseClass.DateTimeToTimestampMilliseconds(DateTime.Now.Date), BaseClass.DateTimeToTimestampMilliseconds(DateTime.Now)); + if (!kfMsgRst.Contains("\"ret\":0")) + continue; + try { - var kfMsg = new WxShopKfStatistics() { ShopId = shop.ShopId }; - var kfMsgRst = GetKfMsgStatistics(shop, BaseClass.DateTimeToTimestampMilliseconds(DateTime.Now.Date), BaseClass.DateTimeToTimestampMilliseconds(DateTime.Now)); - if (!kfMsgRst.Contains("\"ret\":0")) - continue; - try - { - var jObj = JsonHelper.JObjectParse(kfMsgRst); - kfMsg.user_cnt = jObj["cardResp"]["objects"]["tableValueLine"][0]["columnValue"][1].ParseToInt(); - kfMsg.sesseion_cnt = jObj["cardResp"]["objects"]["tableValueLine"][0]["columnValue"][2].ParseToInt(); - kfMsg.service_noreply_ratio = jObj["cardResp"]["objects"]["tableValueLine"][0]["columnValue"][5].ParseToDecimal(); - lstShopKfStatistics.Add(kfMsg); + var jObj = JsonHelper.JObjectParse(kfMsgRst); + kfMsg.user_cnt = jObj["cardResp"]["objects"]["tableValueLine"][0]["columnValue"][1].ParseToInt(); + kfMsg.sesseion_cnt = jObj["cardResp"]["objects"]["tableValueLine"][0]["columnValue"][2].ParseToInt(); + kfMsg.service_noreply_ratio = jObj["cardResp"]["objects"]["tableValueLine"][0]["columnValue"][5].ParseToDecimal(); + lstShopKfStatistics.Add(kfMsg); - Invoke(new Action(() => - { - int count = Math.Max(1, lstShopKfStatistics.Count()); - lblUserCount.Text = lstShopKfStatistics.Sum(s => s.user_cnt).ParseToString(); - lblTalkCount.Text = lstShopKfStatistics.Sum(s => s.sesseion_cnt).ParseToString(); - lblReplyCount.Text = lstShopKfStatistics.Sum(s => s.service_reply_ratio * 100 / count).ParseToDecimal().ToString("0.0") + "%"; - })); - } - catch + Invoke(new Action(() => { - } + int count = Math.Max(1, lstShopKfStatistics.Count()); + lblUserCount.Text = lstShopKfStatistics.Sum(s => s.user_cnt).ParseToString(); + lblTalkCount.Text = lstShopKfStatistics.Sum(s => s.sesseion_cnt).ParseToString(); + lblReplyCount.Text = lstShopKfStatistics.Sum(s => s.service_reply_ratio * 100 / count).ParseToDecimal().ToString("0.0") + "%"; + })); } - Invoke(new Action(() => + catch { - int count = Math.Max(1, lstShopKfStatistics.Count()); - lblUserCount.Text = lstShopKfStatistics.Sum(s => s.user_cnt).ParseToString(); - lblTalkCount.Text = lstShopKfStatistics.Sum(s => s.sesseion_cnt).ParseToString(); - lblReplyCount.Text = lstShopKfStatistics.Sum(s => s.service_reply_ratio * 100 / count).ParseToDecimal().ToString("0.0") + "%"; - pbLoading.Visible = false; - })); - }); + } + } + Invoke(new Action(() => + { + int count = Math.Max(1, lstShopKfStatistics.Count()); + lblUserCount.Text = lstShopKfStatistics.Sum(s => s.user_cnt).ParseToString(); + lblTalkCount.Text = lstShopKfStatistics.Sum(s => s.sesseion_cnt).ParseToString(); + lblReplyCount.Text = lstShopKfStatistics.Sum(s => s.service_reply_ratio * 100 / count).ParseToDecimal().ToString("0.0") + "%"; + })); } } }