diff --git a/AllBase/BaseClass.cs b/AllBase/BaseClass.cs index 0ae2582..424a051 100644 --- a/AllBase/BaseClass.cs +++ b/AllBase/BaseClass.cs @@ -27,8 +27,8 @@ namespace AllBase /// /// 版本ID /// - public static int VersionCount = 533; - //public static int VersionCount = 533; + public static int VersionCount = 535; + //public static int VersionCount = 535; /// /// 版本号 diff --git a/AllBase/Model/Result/ShopLoginInfo.cs b/AllBase/Model/Result/ShopLoginInfo.cs index a42a364..bc11366 100644 --- a/AllBase/Model/Result/ShopLoginInfo.cs +++ b/AllBase/Model/Result/ShopLoginInfo.cs @@ -249,4 +249,88 @@ namespace AllBase.Model.Result public string AccountName { get; set; } public string LoginStatus { get; set; } } + + public class ShopStatisticsInfo + { + #region 店铺基础信息 + public long shop_id { get; set; } + public string shop_account { get; set; } + /// + /// 备注/分组 + /// + public string notes { get; set; } + #endregion + + /// + /// 有已发布商品 + /// + public bool? havePublishProduct { get; set; } = false; + public int? lackSkcNumber { get; set; } = 0; + /// + /// 建议备货 + /// + public int? advicePrepareSkcNumber { get; set; } = 0; + /// + /// 商品信息待修改 + /// + public int? waitProductNumber { get; set; } = 0; + /// + /// 调价待确认 + /// + public int? adjustPrice { get; set; } = 0; + /// + /// 开款待价格确认 + /// + public int? reviewAdjustPrice { get; set; } = 0; + /// + /// 在售商品数 + /// + public int? onSaleProductNumber { get; set; } = 0; + /// + /// 今日销量 + /// + public int? saleVolume { get; set; } = 0; + /// + /// 近7日销量 + /// + public int? sevenDaysSaleVolume { get; set; } = 0; + /// + /// 近30日销量 + /// + public int? thirtyDaysSaleVolume { get; set; } = 0; + public ShopStatisticsPermissionsInfo permissions { get; set; } + /// + /// 即将售罄(商品数量) + /// + public int? aboutToSellOutNumber { get; set; } = 0; + /// + /// 已经售罄(商品数量) + /// + public int? alreadySoldOutNumber { get; set; } = 0; + /// + /// 近90天品质售后率 + /// + public int? qualityAfterSaleRatio90d { get; set; } = 0; + /// + /// 高价限流商品数 + /// + public int? highPriceLimitNumber { get; set; } = 0; + } + + public class ShopStatisticsPermissionsInfo + { + public bool? thirtyDaysSaleVolume { get; set; } + public bool? qualityAfterSaleRatio90d { get; set; } + public bool? adjustPrice { get; set; } + public bool? alreadySoldOutNumber { get; set; } + public bool? reviewAdjustPrice { get; set; } + public bool? aboutToSellOutNumber { get; set; } + public bool? advicePrepareSkcNumber { get; set; } + public bool? waitProductNumber { get; set; } + public bool? highPriceLimitNumber { get; set; } + public bool? saleVolume { get; set; } + public bool? lackSkcNumber { get; set; } + public bool? sevenDaysSaleVolume { get; set; } + public bool? onSaleProductNumber { get; set; } + } } diff --git a/TEMUKJD/KJD.csproj b/TEMUKJD/KJD.csproj index ef1d143..20fff12 100644 --- a/TEMUKJD/KJD.csproj +++ b/TEMUKJD/KJD.csproj @@ -346,6 +346,12 @@ ShopLoginForm.cs + + Form + + + ShopStatisticsForm.cs + Form @@ -686,6 +692,9 @@ ShopUpdateCookieForm.cs + + ShopStatisticsForm.cs + SubAccountListForm.cs diff --git a/TEMUKJD/KJDForms/ProductForms/SaleStockUpForm.Designer.cs b/TEMUKJD/KJDForms/ProductForms/SaleStockUpForm.Designer.cs index d58396c..51463f6 100644 --- a/TEMUKJD/KJDForms/ProductForms/SaleStockUpForm.Designer.cs +++ b/TEMUKJD/KJDForms/ProductForms/SaleStockUpForm.Designer.cs @@ -30,12 +30,14 @@ namespace TemuKJD.KJDForms.ProductForms 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(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); this.splitContainer1 = new System.Windows.Forms.SplitContainer(); this.ucGroupBoxEx4 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); + this.txtMinQualityScore = new System.Windows.Forms.TextBox(); + this.chkMinQualityScore = new System.Windows.Forms.CheckBox(); this.ucCheckBox1 = new TemuKJD.UserComponent.UcCheckBox(this.components); this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); this.lblMinBound = new System.Windows.Forms.Label(); @@ -52,6 +54,7 @@ namespace TemuKJD.KJDForms.ProductForms this.label16 = new System.Windows.Forms.Label(); this.label17 = new System.Windows.Forms.Label(); this.label18 = new System.Windows.Forms.Label(); + this.label19 = new System.Windows.Forms.Label(); this.ucGroupBoxEx3 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); this.btnCancelSubPurchaseOrder = new DevComponents.DotNetBar.PanelEx(); this.panelEx2 = new DevComponents.DotNetBar.PanelEx(); @@ -117,10 +120,6 @@ namespace TemuKJD.KJDForms.ProductForms this.btnStopAdd = new DevComponents.DotNetBar.PanelEx(); this.chkLimited = new System.Windows.Forms.CheckBox(); this.dgvStock = new TemuKJD.UserComponent.DataGridViewEx(); - this.splitContainer4 = new System.Windows.Forms.SplitContainer(); - this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); - this.panelEx1 = new DevComponents.DotNetBar.PanelEx(); - this.btnClear = new DevComponents.DotNetBar.PanelEx(); this.colUpId = new System.Windows.Forms.DataGridViewLinkColumn(); this.colCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn(); this.colSupplierId = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -142,6 +141,10 @@ namespace TemuKJD.KJDForms.ProductForms this.colQualityScore = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colNeedStockUp = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colMsg = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.splitContainer4 = new System.Windows.Forms.SplitContainer(); + this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); + this.panelEx1 = new DevComponents.DotNetBar.PanelEx(); + this.btnClear = new DevComponents.DotNetBar.PanelEx(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); @@ -192,7 +195,7 @@ namespace TemuKJD.KJDForms.ProductForms // splitContainer1.Panel2 // this.splitContainer1.Panel2.Controls.Add(this.splitContainer3); - this.splitContainer1.Size = new System.Drawing.Size(1148, 589); + this.splitContainer1.Size = new System.Drawing.Size(1368, 589); this.splitContainer1.SplitterDistance = 120; this.splitContainer1.TabIndex = 9; // @@ -203,6 +206,8 @@ namespace TemuKJD.KJDForms.ProductForms | System.Windows.Forms.AnchorStyles.Right))); this.ucGroupBoxEx4.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.ucGroupBoxEx4.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND; + this.ucGroupBoxEx4.Controls.Add(this.txtMinQualityScore); + this.ucGroupBoxEx4.Controls.Add(this.chkMinQualityScore); this.ucGroupBoxEx4.Controls.Add(this.ucCheckBox1); this.ucGroupBoxEx4.Controls.Add(this.flowLayoutPanel1); this.ucGroupBoxEx4.Controls.Add(this.txtScale2); @@ -215,18 +220,47 @@ namespace TemuKJD.KJDForms.ProductForms this.ucGroupBoxEx4.Controls.Add(this.label16); this.ucGroupBoxEx4.Controls.Add(this.label17); this.ucGroupBoxEx4.Controls.Add(this.label18); + this.ucGroupBoxEx4.Controls.Add(this.label19); this.ucGroupBoxEx4.Location = new System.Drawing.Point(417, 2); this.ucGroupBoxEx4.Name = "ucGroupBoxEx4"; - this.ucGroupBoxEx4.Size = new System.Drawing.Size(729, 120); + this.ucGroupBoxEx4.Size = new System.Drawing.Size(949, 120); this.ucGroupBoxEx4.TabIndex = 666; this.ucGroupBoxEx4.TabStop = false; this.ucGroupBoxEx4.Text = "创建备货单"; // + // txtMinQualityScore + // + this.txtMinQualityScore.Location = new System.Drawing.Point(785, 85); + this.txtMinQualityScore.Margin = new System.Windows.Forms.Padding(0); + this.txtMinQualityScore.Name = "txtMinQualityScore"; + this.txtMinQualityScore.Size = new System.Drawing.Size(32, 23); + this.txtMinQualityScore.TabIndex = 724; + this.txtMinQualityScore.Text = "60"; + this.txtMinQualityScore.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // chkMinQualityScore + // + this.chkMinQualityScore.AutoSize = true; + this.chkMinQualityScore.Checked = true; + this.chkMinQualityScore.CheckState = System.Windows.Forms.CheckState.Checked; + this.chkMinQualityScore.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); + this.chkMinQualityScore.FlatAppearance.BorderSize = 2; + this.chkMinQualityScore.FlatAppearance.CheckedBackColor = System.Drawing.Color.Blue; + this.chkMinQualityScore.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Blue; + this.chkMinQualityScore.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Blue; + this.chkMinQualityScore.Location = new System.Drawing.Point(703, 86); + this.chkMinQualityScore.Margin = new System.Windows.Forms.Padding(15, 3, 3, 3); + this.chkMinQualityScore.Name = "chkMinQualityScore"; + this.chkMinQualityScore.Size = new System.Drawing.Size(87, 21); + this.chkMinQualityScore.TabIndex = 723; + this.chkMinQualityScore.Text = "品质分低于"; + this.chkMinQualityScore.UseVisualStyleBackColor = false; + // // ucCheckBox1 // this.ucCheckBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.ucCheckBox1.AutoSize = true; - this.ucCheckBox1.Location = new System.Drawing.Point(537, 34); + this.ucCheckBox1.Location = new System.Drawing.Point(757, 34); this.ucCheckBox1.Name = "ucCheckBox1"; this.ucCheckBox1.Size = new System.Drawing.Size(87, 21); this.ucCheckBox1.TabIndex = 713; @@ -243,7 +277,7 @@ namespace TemuKJD.KJDForms.ProductForms this.flowLayoutPanel1.Controls.Add(this.chkIfLessMakeZero); this.flowLayoutPanel1.Location = new System.Drawing.Point(240, 83); this.flowLayoutPanel1.Name = "flowLayoutPanel1"; - this.flowLayoutPanel1.Size = new System.Drawing.Size(433, 31); + this.flowLayoutPanel1.Size = new System.Drawing.Size(453, 31); this.flowLayoutPanel1.TabIndex = 702; // // lblMinBound @@ -251,6 +285,7 @@ namespace TemuKJD.KJDForms.ProductForms this.lblMinBound.Anchor = System.Windows.Forms.AnchorStyles.Left; this.lblMinBound.AutoSize = true; this.lblMinBound.Location = new System.Drawing.Point(3, 5); + this.lblMinBound.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.lblMinBound.Name = "lblMinBound"; this.lblMinBound.Size = new System.Drawing.Size(87, 17); this.lblMinBound.TabIndex = 691; @@ -259,10 +294,10 @@ namespace TemuKJD.KJDForms.ProductForms // txtMinBound // this.txtMinBound.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.txtMinBound.Location = new System.Drawing.Point(93, 2); + this.txtMinBound.Location = new System.Drawing.Point(90, 2); this.txtMinBound.Margin = new System.Windows.Forms.Padding(0); this.txtMinBound.Name = "txtMinBound"; - this.txtMinBound.Size = new System.Drawing.Size(20, 23); + this.txtMinBound.Size = new System.Drawing.Size(30, 23); this.txtMinBound.TabIndex = 690; this.txtMinBound.Text = "3"; this.txtMinBound.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; @@ -272,7 +307,8 @@ namespace TemuKJD.KJDForms.ProductForms // this.label15.Anchor = System.Windows.Forms.AnchorStyles.Left; this.label15.AutoSize = true; - this.label15.Location = new System.Drawing.Point(116, 5); + this.label15.Location = new System.Drawing.Point(120, 5); + this.label15.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0); this.label15.Name = "label15"; this.label15.Size = new System.Drawing.Size(32, 17); this.label15.TabIndex = 692; @@ -289,7 +325,7 @@ namespace TemuKJD.KJDForms.ProductForms this.chkIfLessMakeZero.FlatAppearance.CheckedBackColor = System.Drawing.Color.Blue; this.chkIfLessMakeZero.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Blue; this.chkIfLessMakeZero.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Blue; - this.chkIfLessMakeZero.Location = new System.Drawing.Point(166, 3); + this.chkIfLessMakeZero.Location = new System.Drawing.Point(170, 3); this.chkIfLessMakeZero.Margin = new System.Windows.Forms.Padding(15, 3, 3, 3); this.chkIfLessMakeZero.Name = "chkIfLessMakeZero"; this.chkIfLessMakeZero.Size = new System.Drawing.Size(207, 21); @@ -382,7 +418,7 @@ namespace TemuKJD.KJDForms.ProductForms this.btnStartStockUp.Cursor = System.Windows.Forms.Cursors.Hand; this.btnStartStockUp.DisabledBackColor = System.Drawing.Color.Empty; this.btnStartStockUp.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnStartStockUp.Location = new System.Drawing.Point(627, 32); + this.btnStartStockUp.Location = new System.Drawing.Point(847, 32); this.btnStartStockUp.Name = "btnStartStockUp"; this.btnStartStockUp.Size = new System.Drawing.Size(80, 23); this.btnStartStockUp.Style.Alignment = System.Drawing.StringAlignment.Center; @@ -429,7 +465,6 @@ namespace TemuKJD.KJDForms.ProductForms // // label18 // - this.label18.Anchor = System.Windows.Forms.AnchorStyles.Left; this.label18.AutoSize = true; this.label18.Location = new System.Drawing.Point(170, 88); this.label18.Name = "label18"; @@ -437,6 +472,15 @@ namespace TemuKJD.KJDForms.ProductForms this.label18.TabIndex = 712; this.label18.Text = "最小备货量:"; // + // label19 + // + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(817, 88); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(44, 17); + this.label19.TabIndex = 725; + this.label19.Text = "不备货"; + // // ucGroupBoxEx3 // this.ucGroupBoxEx3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) @@ -605,7 +649,7 @@ namespace TemuKJD.KJDForms.ProductForms // splitContainer3.Panel2 // this.splitContainer3.Panel2.Controls.Add(this.splitContainer4); - this.splitContainer3.Size = new System.Drawing.Size(1148, 465); + this.splitContainer3.Size = new System.Drawing.Size(1368, 465); this.splitContainer3.SplitterDistance = 435; this.splitContainer3.TabIndex = 1; // @@ -633,7 +677,7 @@ namespace TemuKJD.KJDForms.ProductForms this.splitContainer2.Panel2.Controls.Add(this.ucGroupBoxEx99); this.splitContainer2.Panel2.Controls.Add(this.dgvStock); this.splitContainer2.Panel2.Padding = new System.Windows.Forms.Padding(0, 0, 4, 0); - this.splitContainer2.Size = new System.Drawing.Size(1148, 435); + this.splitContainer2.Size = new System.Drawing.Size(1368, 435); this.splitContainer2.SplitterDistance = 280; this.splitContainer2.TabIndex = 0; // @@ -720,18 +764,18 @@ namespace TemuKJD.KJDForms.ProductForms // this.dgvShop.AllowUserToAddRows = false; this.dgvShop.AllowUserToDeleteRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + dataGridViewCellStyle5.BackColor = System.Drawing.Color.WhiteSmoke; + this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5; 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; + dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6; this.dgvShop.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvShop.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.colSelect, @@ -838,7 +882,7 @@ namespace TemuKJD.KJDForms.ProductForms this.ucGroupBoxEx99.Controls.Add(this.chkLimited); this.ucGroupBoxEx99.Location = new System.Drawing.Point(296, 46); this.ucGroupBoxEx99.Name = "ucGroupBoxEx99"; - this.ucGroupBoxEx99.Size = new System.Drawing.Size(540, 180); + this.ucGroupBoxEx99.Size = new System.Drawing.Size(760, 180); this.ucGroupBoxEx99.TabIndex = 470; this.ucGroupBoxEx99.TabStop = false; this.ucGroupBoxEx99.Text = "创建备货单"; @@ -1119,7 +1163,7 @@ namespace TemuKJD.KJDForms.ProductForms this.panel2.Controls.Add(this.btnSetNotArea); this.panel2.Location = new System.Drawing.Point(151, 59); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(285, 23); + this.panel2.Size = new System.Drawing.Size(505, 23); this.panel2.TabIndex = 638; // // textBox2 @@ -1129,7 +1173,7 @@ namespace TemuKJD.KJDForms.ProductForms this.textBox2.Location = new System.Drawing.Point(0, 0); this.textBox2.Name = "textBox2"; this.textBox2.ReadOnly = true; - this.textBox2.Size = new System.Drawing.Size(219, 23); + this.textBox2.Size = new System.Drawing.Size(439, 23); this.textBox2.TabIndex = 638; // // btnSetNotArea @@ -1139,7 +1183,7 @@ namespace TemuKJD.KJDForms.ProductForms this.btnSetNotArea.Cursor = System.Windows.Forms.Cursors.Hand; this.btnSetNotArea.DisabledBackColor = System.Drawing.Color.Empty; this.btnSetNotArea.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSetNotArea.Location = new System.Drawing.Point(225, 2); + this.btnSetNotArea.Location = new System.Drawing.Point(445, 2); this.btnSetNotArea.Name = "btnSetNotArea"; this.btnSetNotArea.Size = new System.Drawing.Size(56, 19); this.btnSetNotArea.Style.Alignment = System.Drawing.StringAlignment.Center; @@ -1261,7 +1305,7 @@ namespace TemuKJD.KJDForms.ProductForms this.btnAdd.Cursor = System.Windows.Forms.Cursors.Hand; this.btnAdd.DisabledBackColor = System.Drawing.Color.Empty; this.btnAdd.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnAdd.Location = new System.Drawing.Point(444, 29); + this.btnAdd.Location = new System.Drawing.Point(664, 29); this.btnAdd.Name = "btnAdd"; this.btnAdd.Size = new System.Drawing.Size(80, 23); this.btnAdd.Style.Alignment = System.Drawing.StringAlignment.Center; @@ -1284,7 +1328,7 @@ namespace TemuKJD.KJDForms.ProductForms this.btnStopAdd.CanvasColor = System.Drawing.SystemColors.Control; this.btnStopAdd.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.btnStopAdd.DisabledBackColor = System.Drawing.Color.Empty; - this.btnStopAdd.Location = new System.Drawing.Point(444, 59); + this.btnStopAdd.Location = new System.Drawing.Point(664, 59); this.btnStopAdd.Name = "btnStopAdd"; this.btnStopAdd.Size = new System.Drawing.Size(80, 23); this.btnStopAdd.Style.Alignment = System.Drawing.StringAlignment.Center; @@ -1316,18 +1360,18 @@ namespace TemuKJD.KJDForms.ProductForms // this.dgvStock.AllowUserToAddRows = false; this.dgvStock.AllowUserToDeleteRows = false; - dataGridViewCellStyle3.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvStock.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3; + dataGridViewCellStyle7.BackColor = System.Drawing.Color.WhiteSmoke; + this.dgvStock.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle7; this.dgvStock.BackgroundColor = System.Drawing.Color.White; this.dgvStock.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dgvStock.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4; + dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle8.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgvStock.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8; this.dgvStock.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvStock.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.colUpId, @@ -1356,91 +1400,11 @@ namespace TemuKJD.KJDForms.ProductForms this.dgvStock.Name = "dgvStock"; this.dgvStock.ReadOnly = true; this.dgvStock.RowTemplate.Height = 23; - this.dgvStock.Size = new System.Drawing.Size(860, 435); + this.dgvStock.Size = new System.Drawing.Size(1080, 435); this.dgvStock.TabIndex = 187; this.dgvStock.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvStock_CellContentClick); this.dgvStock.Scroll += new System.Windows.Forms.ScrollEventHandler(this.dgvStock_Scroll); // - // splitContainer4 - // - this.splitContainer4.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer4.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; - this.splitContainer4.Location = new System.Drawing.Point(0, 0); - this.splitContainer4.Name = "splitContainer4"; - // - // splitContainer4.Panel1 - // - this.splitContainer4.Panel1.Controls.Add(this.statusBar); - // - // splitContainer4.Panel2 - // - this.splitContainer4.Panel2.Controls.Add(this.panelEx1); - this.splitContainer4.Panel2.Controls.Add(this.btnClear); - this.splitContainer4.Size = new System.Drawing.Size(1148, 26); - this.splitContainer4.SplitterDistance = 870; - this.splitContainer4.TabIndex = 3; - // - // 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(870, 26); - this.statusBar.TabIndex = 2; - // - // panelEx1 - // - this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control; - this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty; - this.panelEx1.Location = new System.Drawing.Point(155, 0); - this.panelEx1.Name = "panelEx1"; - this.panelEx1.Size = new System.Drawing.Size(115, 21); - this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center; - this.panelEx1.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.panelEx1.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.panelEx1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.panelEx1.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.panelEx1.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.panelEx1.Style.GradientAngle = 90; - this.panelEx1.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.panelEx1.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.panelEx1.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.panelEx1.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.panelEx1.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.panelEx1.TabIndex = 668; - this.panelEx1.Text = "停止当前操作"; - this.panelEx1.Click += new System.EventHandler(this.btnStop_Click); - // - // btnClear - // - this.btnClear.Anchor = System.Windows.Forms.AnchorStyles.Right; - this.btnClear.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnClear.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnClear.DisabledBackColor = System.Drawing.Color.Empty; - this.btnClear.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnClear.Location = new System.Drawing.Point(47, 0); - this.btnClear.Name = "btnClear"; - this.btnClear.Size = new System.Drawing.Size(90, 21); - this.btnClear.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnClear.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnClear.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnClear.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnClear.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnClear.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnClear.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnClear.Style.GradientAngle = 90; - this.btnClear.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnClear.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnClear.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnClear.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnClear.TabIndex = 440; - this.btnClear.Text = "清空结果"; - this.btnClear.Visible = false; - // // colUpId // this.colUpId.HeaderText = "上家Id"; @@ -1605,11 +1569,91 @@ namespace TemuKJD.KJDForms.ProductForms this.colMsg.ReadOnly = true; this.colMsg.Width = 400; // + // splitContainer4 + // + this.splitContainer4.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer4.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; + this.splitContainer4.Location = new System.Drawing.Point(0, 0); + this.splitContainer4.Name = "splitContainer4"; + // + // splitContainer4.Panel1 + // + this.splitContainer4.Panel1.Controls.Add(this.statusBar); + // + // splitContainer4.Panel2 + // + this.splitContainer4.Panel2.Controls.Add(this.panelEx1); + this.splitContainer4.Panel2.Controls.Add(this.btnClear); + this.splitContainer4.Size = new System.Drawing.Size(1368, 26); + this.splitContainer4.SplitterDistance = 1090; + this.splitContainer4.TabIndex = 3; + // + // 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(1090, 26); + this.statusBar.TabIndex = 2; + // + // panelEx1 + // + this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control; + this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty; + this.panelEx1.Location = new System.Drawing.Point(155, 0); + this.panelEx1.Name = "panelEx1"; + this.panelEx1.Size = new System.Drawing.Size(115, 21); + this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center; + this.panelEx1.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.panelEx1.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.panelEx1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.panelEx1.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.panelEx1.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.panelEx1.Style.GradientAngle = 90; + this.panelEx1.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; + this.panelEx1.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.panelEx1.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.panelEx1.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.panelEx1.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; + this.panelEx1.TabIndex = 668; + this.panelEx1.Text = "停止当前操作"; + this.panelEx1.Click += new System.EventHandler(this.btnStop_Click); + // + // btnClear + // + this.btnClear.Anchor = System.Windows.Forms.AnchorStyles.Right; + this.btnClear.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnClear.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnClear.DisabledBackColor = System.Drawing.Color.Empty; + this.btnClear.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnClear.Location = new System.Drawing.Point(47, 0); + this.btnClear.Name = "btnClear"; + this.btnClear.Size = new System.Drawing.Size(90, 21); + this.btnClear.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnClear.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnClear.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnClear.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnClear.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnClear.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnClear.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnClear.Style.GradientAngle = 90; + this.btnClear.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnClear.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnClear.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnClear.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; + this.btnClear.TabIndex = 440; + this.btnClear.Text = "清空结果"; + this.btnClear.Visible = false; + // // SaleStockUpForm // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1148, 589); + this.ClientSize = new System.Drawing.Size(1368, 589); this.Controls.Add(this.splitContainer1); this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.Name = "SaleStockUpForm"; @@ -1770,5 +1814,8 @@ namespace TemuKJD.KJDForms.ProductForms private System.Windows.Forms.DataGridViewTextBoxColumn colQualityScore; private System.Windows.Forms.DataGridViewTextBoxColumn colNeedStockUp; private System.Windows.Forms.DataGridViewTextBoxColumn colMsg; + private System.Windows.Forms.TextBox txtMinQualityScore; + private System.Windows.Forms.CheckBox chkMinQualityScore; + private System.Windows.Forms.Label label19; } } \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/SaleStockUpForm.cs b/TEMUKJD/KJDForms/ProductForms/SaleStockUpForm.cs index 6e0d54d..003baf7 100644 --- a/TEMUKJD/KJDForms/ProductForms/SaleStockUpForm.cs +++ b/TEMUKJD/KJDForms/ProductForms/SaleStockUpForm.cs @@ -527,39 +527,12 @@ namespace TemuKJD.KJDForms.ProductForms } /// - /// 小于60分商品 + /// qualityScoreEnum = 1 小于60分商品 + /// qualityScoreEnum = 2 60分到70分商品 + /// qualityScoreEnum = 3 70分到90分商品 + /// qualityScoreEnum = 4 90分以上 /// - private string GetQualityInfo1_2(ShopLoginInfo shop, string productIds) - { - string url = "https://agentseller.temu.com/bg-luna-agent-seller/goods/quality/supplyChain/qualityMetrics/pageQuery"; - string body = @"{""page"":1,""pageSize"":40,""qualityScoreEnum"":1,""productIds"":[" + productIds + "]}"; - string refere = "https://agentseller.temu.com/main/quality/dashboard"; - return KJDHttpResponse.PostResponse2(shop, url, body, refere); - } - /// - /// 60分到70分商品 - /// - private string GetQualityInfo2_2(ShopLoginInfo shop, string productIds) - { - string url = "https://agentseller.temu.com/bg-luna-agent-seller/goods/quality/supplyChain/qualityMetrics/pageQuery"; - string body = @"{""page"":1,""pageSize"":40,""qualityScoreEnum"":2,""productIds"":[" + productIds + "]}"; - string refere = "https://agentseller.temu.com/main/quality/dashboard"; - return KJDHttpResponse.PostResponse2(shop, url, body, refere); - } - /// - /// 70分到90分商品 - /// - private string GetQualityInfo3_2(ShopLoginInfo shop, string productIds) - { - string url = "https://agentseller.temu.com/bg-luna-agent-seller/goods/quality/supplyChain/qualityMetrics/pageQuery"; - string body = @"{""page"":1,""pageSize"":40,""qualityScoreEnum"":3,""productIds"":[" + productIds + "]}"; - string refere = "https://agentseller.temu.com/main/quality/dashboard"; - return KJDHttpResponse.PostResponse2(shop, url, body, refere); - } - /// - /// 90分以上 - /// - private string GetQualityInfo4_2(ShopLoginInfo shop, string productIds, int qualityScoreEnum = 4) + private string GetQualityInfo2(ShopLoginInfo shop, string productIds, int qualityScoreEnum = 4) { string url = "https://agentseller.temu.com/bg-luna-agent-seller/goods/quality/supplyChain/qualityMetrics/pageQuery"; string body = @"{""page"":1,""pageSize"":40,""qualityScoreEnum"":" + qualityScoreEnum + @",""productIds"":[" + productIds + "]}"; @@ -922,7 +895,7 @@ namespace TemuKJD.KJDForms.ProductForms { for (int j = 1; j <= 4; j++) { - var qualityRst1 = this.GetQualityInfo4_2(shop, productIds, j); + var qualityRst1 = this.GetQualityInfo2(shop, productIds, j); if (qualityRst1.Contains("\"success\":true")) { var jObj = JObject.Parse(qualityRst1); @@ -982,8 +955,8 @@ namespace TemuKJD.KJDForms.ProductForms sInfo.needStockUp == false ? "无需备货" : "可备货", sInfo.goodsAfsScore == -1 ? "获取商品品质信息失败" : "" ); - if (sInfo.goodsAfsScore == -1) - sInfo.goodsAfsScore = null; + //if (sInfo.goodsAfsScore == -1) + // sInfo.goodsAfsScore = null; if (rowId >= 0) dgvStock.Rows[rowId].Height = 60; })); @@ -1053,6 +1026,9 @@ namespace TemuKJD.KJDForms.ProductForms ucGroupBoxEx4.Enabled = false; cancellationTokenSource = new CancellationTokenSource(); + var minQualityScore = this.txtMinQualityScore.Text.ParseToInt(); + if (!chkMinQualityScore.Checked) // 没选最低品质分,即不考虑品质分上货。 + minQualityScore = -100; Task.Run(() => { int i = 0; @@ -1083,7 +1059,7 @@ namespace TemuKJD.KJDForms.ProductForms })); continue; } - if (stockUp.goodsAfsScore != null && stockUp.goodsAfsScore < 75) + if (stockUp.goodsAfsScore != null && stockUp.goodsAfsScore < minQualityScore) { Invoke(new Action(() => { diff --git a/TEMUKJD/KJDForms/ShopForms/ShopForm.Designer.cs b/TEMUKJD/KJDForms/ShopForms/ShopForm.Designer.cs index 69967d5..1620ff4 100644 --- a/TEMUKJD/KJDForms/ShopForms/ShopForm.Designer.cs +++ b/TEMUKJD/KJDForms/ShopForms/ShopForm.Designer.cs @@ -30,15 +30,17 @@ { 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("店铺管理", 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("店铺管理", new System.Windows.Forms.TreeNode[] { treeNode1, treeNode2, treeNode3, treeNode4, - treeNode5}); + treeNode5, + treeNode6}); this.panel1 = new System.Windows.Forms.Panel(); this.panel3 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel(); @@ -133,16 +135,18 @@ treeNode1.Text = "店铺列表"; treeNode2.Name = "子账号管理"; treeNode2.Text = "子账号管理"; - treeNode3.Name = "运费模板"; - treeNode3.Text = "运费模板"; - treeNode4.Name = "高级运费模板"; - treeNode4.Text = "高级运费模板"; - treeNode5.Name = "素材库管理"; - treeNode5.Text = "素材库管理"; - treeNode6.Name = "店铺管理"; - treeNode6.Text = "店铺管理"; + treeNode3.Name = "订单销售统计"; + treeNode3.Text = "订单销售统计"; + treeNode4.Name = "运费模板"; + treeNode4.Text = "运费模板"; + treeNode5.Name = "高级运费模板"; + treeNode5.Text = "高级运费模板"; + treeNode6.Name = "素材库管理"; + treeNode6.Text = "素材库管理"; + treeNode7.Name = "店铺管理"; + treeNode7.Text = "店铺管理"; this.tv.Nodes.AddRange(new System.Windows.Forms.TreeNode[] { - treeNode6}); + treeNode7}); 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; diff --git a/TEMUKJD/KJDForms/ShopForms/ShopForm.cs b/TEMUKJD/KJDForms/ShopForms/ShopForm.cs index e271352..e87e408 100644 --- a/TEMUKJD/KJDForms/ShopForms/ShopForm.cs +++ b/TEMUKJD/KJDForms/ShopForms/ShopForm.cs @@ -20,7 +20,9 @@ namespace TemuKJD.KJDForms.ShopForms { public Lazy shopListForm = new Lazy(); public Lazy sbuAccountForm = new Lazy(); - + public Lazy shopStatisticsForm = new Lazy(); + + public ShopForm() { InitializeComponent(); @@ -30,7 +32,7 @@ namespace TemuKJD.KJDForms.ShopForms tv.SelectedNode = tv.Nodes[0].Nodes[0]; tv.ExpandGroup(tv.Nodes[0].Name); - List hideName = new List() { "子账号管理", "高级运费模板", "运费模板", "素材库管理" }; + List hideName = new List() { "子账号管理", "高级运费模板", "运费模板", "素材库管理", "订单销售统计" }; if (BaseClass.GroupId == 3) { @@ -66,6 +68,9 @@ namespace TemuKJD.KJDForms.ShopForms case "子账号管理": SetForm(sbuAccountForm.Value); break; + case "订单销售统计": + SetForm(shopStatisticsForm.Value); + break; } })); }).Start(); diff --git a/TEMUKJD/KJDForms/ShopForms/Statistics/ShopStatisticsForm.Designer.cs b/TEMUKJD/KJDForms/ShopForms/Statistics/ShopStatisticsForm.Designer.cs new file mode 100644 index 0000000..09767c8 --- /dev/null +++ b/TEMUKJD/KJDForms/ShopForms/Statistics/ShopStatisticsForm.Designer.cs @@ -0,0 +1,679 @@ + +namespace TemuKJD.KJDForms.ShopForms +{ + partial class ShopStatisticsForm + { + /// + /// 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.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.label16 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.splitContainer2 = new System.Windows.Forms.SplitContainer(); + this.pbLoading = new System.Windows.Forms.PictureBox(); + this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx(); + this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); + this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.colLoginStatus = 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.colOnSaleProductNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colSaleVolume = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colSevenDaysSaleVolume = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colHighPriceLimitNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colAboutToSellOutNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colAdvicePrepareSkcNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colYesterdayAmountReceived = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colThisMonthAmountReceived = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colLastMonthAmountReceived = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colBalance = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colBond = new System.Windows.Forms.DataGridViewTextBoxColumn(); + ((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(); + ((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(1438, 600); + this.splitContainer1.SplitterDistance = 140; + this.splitContainer1.TabIndex = 34; + // + // 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.btnGetNotGet); + this.ucGroupBoxEx3.Controls.Add(this.btnGetSelect); + this.ucGroupBoxEx3.Location = new System.Drawing.Point(1298, 2); + this.ucGroupBoxEx3.Name = "ucGroupBoxEx3"; + this.ucGroupBoxEx3.Size = new System.Drawing.Size(137, 140); + this.ucGroupBoxEx3.TabIndex = 668; + this.ucGroupBoxEx3.TabStop = false; + this.ucGroupBoxEx3.Text = "统计查询"; + // + // 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(32, 42); + this.btnGetNotGet.Name = "btnGetNotGet"; + this.btnGetNotGet.Size = new System.Drawing.Size(80, 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(32, 80); + this.btnGetSelect.Name = "btnGetSelect"; + this.btnGetSelect.Size = new System.Drawing.Size(80, 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 = "查询选中"; + // + // 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(1296, 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 = 6; + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 10F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 13F)); + this.tableLayoutPanel1.Controls.Add(this.label16, 3, 3); + this.tableLayoutPanel1.Controls.Add(this.label15, 2, 3); + this.tableLayoutPanel1.Controls.Add(this.label14, 1, 3); + this.tableLayoutPanel1.Controls.Add(this.label13, 0, 3); + this.tableLayoutPanel1.Controls.Add(this.label12, 3, 1); + this.tableLayoutPanel1.Controls.Add(this.label11, 2, 1); + this.tableLayoutPanel1.Controls.Add(this.label10, 1, 1); + this.tableLayoutPanel1.Controls.Add(this.label8, 3, 2); + this.tableLayoutPanel1.Controls.Add(this.label7, 2, 2); + this.tableLayoutPanel1.Controls.Add(this.label6, 1, 2); + this.tableLayoutPanel1.Controls.Add(this.label5, 0, 2); + this.tableLayoutPanel1.Controls.Add(this.label4, 3, 0); + this.tableLayoutPanel1.Controls.Add(this.label3, 2, 0); + this.tableLayoutPanel1.Controls.Add(this.label2, 1, 0); + this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0); + this.tableLayoutPanel1.Controls.Add(this.label9, 0, 1); + 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(1253, 115); + this.tableLayoutPanel1.TabIndex = 435; + // + // label16 + // + this.label16.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.label16.AutoSize = true; + this.label16.Font = new System.Drawing.Font("微软雅黑", 11F); + this.label16.Location = new System.Drawing.Point(924, 87); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(18, 20); + this.label16.TabIndex = 15; + this.label16.Text = "0"; + // + // label15 + // + this.label15.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.label15.AutoSize = true; + this.label15.Font = new System.Drawing.Font("微软雅黑", 11F); + this.label15.Location = new System.Drawing.Point(617, 87); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(18, 20); + this.label15.TabIndex = 15; + this.label15.Text = "0"; + // + // label14 + // + this.label14.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.label14.AutoSize = true; + this.label14.Font = new System.Drawing.Font("微软雅黑", 11F); + this.label14.Location = new System.Drawing.Point(310, 87); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(18, 20); + this.label14.TabIndex = 15; + this.label14.Text = "0"; + // + // label13 + // + this.label13.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.label13.AutoSize = true; + this.label13.Font = new System.Drawing.Font("微软雅黑", 11F); + this.label13.Location = new System.Drawing.Point(3, 87); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(18, 20); + this.label13.TabIndex = 15; + this.label13.Text = "0"; + // + // label12 + // + this.label12.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.label12.AutoSize = true; + this.label12.Font = new System.Drawing.Font("微软雅黑", 11F); + this.label12.Location = new System.Drawing.Point(924, 30); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(18, 20); + this.label12.TabIndex = 15; + this.label12.Text = "0"; + // + // label11 + // + this.label11.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.label11.AutoSize = true; + this.label11.Font = new System.Drawing.Font("微软雅黑", 11F); + this.label11.Location = new System.Drawing.Point(617, 30); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(18, 20); + this.label11.TabIndex = 15; + this.label11.Text = "0"; + // + // label10 + // + this.label10.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.label10.AutoSize = true; + this.label10.Font = new System.Drawing.Font("微软雅黑", 11F); + this.label10.Location = new System.Drawing.Point(310, 30); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(18, 20); + this.label10.TabIndex = 15; + this.label10.Text = "0"; + // + // 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(924, 60); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(80, 17); + this.label8.TabIndex = 13; + this.label8.Text = "提现金额总和"; + // + // 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(617, 60); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(92, 17); + this.label7.TabIndex = 12; + this.label7.Text = "可提现金额总和"; + // + // 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(310, 60); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(92, 17); + this.label6.TabIndex = 11; + this.label6.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(3, 60); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(104, 17); + this.label5.TabIndex = 10; + this.label5.Text = "上月到账金额总和"; + // + // 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(924, 3); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(104, 17); + this.label4.TabIndex = 9; + this.label4.Text = "当月到账金额总和"; + // + // 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(617, 3); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(104, 17); + this.label3.TabIndex = 8; + this.label3.Text = "当日到账金额总和"; + // + // 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(310, 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 = "今日销量"; + // + // label9 + // + this.label9.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.label9.AutoSize = true; + this.label9.Font = new System.Drawing.Font("微软雅黑", 11F); + this.label9.Location = new System.Drawing.Point(3, 30); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(18, 20); + this.label9.TabIndex = 14; + this.label9.Text = "0"; + // + // splitContainer2 + // + this.splitContainer2.BackColor = System.Drawing.Color.White; + this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; + 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.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(1438, 456); + this.splitContainer2.SplitterDistance = 422; + 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(694, 186); + 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; + // + // dgvShop + // + this.dgvShop.AllowUserToAddRows = false; + this.dgvShop.AllowUserToDeleteRows = false; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; + this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + this.dgvShop.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + 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.colShopLoginName, + this.colShopId, + this.colShopAccount, + this.colNotes, + this.colOnSaleProductNumber, + this.colSaleVolume, + this.colSevenDaysSaleVolume, + this.colHighPriceLimitNumber, + this.colAboutToSellOutNumber, + this.colAdvicePrepareSkcNumber, + this.colYesterdayAmountReceived, + this.colThisMonthAmountReceived, + this.colLastMonthAmountReceived, + 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(1430, 422); + this.dgvShop.TabIndex = 5; + // + // statusBar + // + this.statusBar.BackColor = System.Drawing.Color.White; + this.statusBar.Dock = System.Windows.Forms.DockStyle.Bottom; + 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, 1); + this.statusBar.Margin = new System.Windows.Forms.Padding(0); + this.statusBar.Name = "statusBar"; + this.statusBar.Size = new System.Drawing.Size(1438, 29); + this.statusBar.TabIndex = 1; + // + // colSelect + // + this.colSelect.FillWeight = 28F; + this.colSelect.HeaderText = "选"; + this.colSelect.Name = "colSelect"; + this.colSelect.ReadOnly = true; + this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + // + // colLoginStatus + // + this.colLoginStatus.FillWeight = 50F; + 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; + // + // colShopLoginName + // + this.colShopLoginName.HeaderText = "店铺登录号码"; + this.colShopLoginName.Name = "colShopLoginName"; + this.colShopLoginName.ReadOnly = true; + // + // colShopId + // + this.colShopId.HeaderText = "店铺Id"; + this.colShopId.Name = "colShopId"; + this.colShopId.ReadOnly = true; + // + // colShopAccount + // + this.colShopAccount.HeaderText = "店铺名称"; + this.colShopAccount.Name = "colShopAccount"; + this.colShopAccount.ReadOnly = true; + // + // colNotes + // + this.colNotes.HeaderText = "备注/分组"; + this.colNotes.Name = "colNotes"; + this.colNotes.ReadOnly = true; + // + // colOnSaleProductNumber + // + this.colOnSaleProductNumber.HeaderText = "在售商品数"; + this.colOnSaleProductNumber.Name = "colOnSaleProductNumber"; + this.colOnSaleProductNumber.ReadOnly = true; + // + // colSaleVolume + // + this.colSaleVolume.HeaderText = "今日销量"; + this.colSaleVolume.Name = "colSaleVolume"; + this.colSaleVolume.ReadOnly = true; + // + // colSevenDaysSaleVolume + // + this.colSevenDaysSaleVolume.HeaderText = "近7日销量"; + this.colSevenDaysSaleVolume.Name = "colSevenDaysSaleVolume"; + this.colSevenDaysSaleVolume.ReadOnly = true; + // + // colHighPriceLimitNumber + // + this.colHighPriceLimitNumber.HeaderText = "高价限流商品数"; + this.colHighPriceLimitNumber.Name = "colHighPriceLimitNumber"; + this.colHighPriceLimitNumber.ReadOnly = true; + // + // colAboutToSellOutNumber + // + this.colAboutToSellOutNumber.HeaderText = "即将售罄"; + this.colAboutToSellOutNumber.Name = "colAboutToSellOutNumber"; + this.colAboutToSellOutNumber.ReadOnly = true; + // + // colAdvicePrepareSkcNumber + // + this.colAdvicePrepareSkcNumber.HeaderText = "建议备货"; + this.colAdvicePrepareSkcNumber.Name = "colAdvicePrepareSkcNumber"; + this.colAdvicePrepareSkcNumber.ReadOnly = true; + // + // colYesterdayAmountReceived + // + this.colYesterdayAmountReceived.HeaderText = "昨日到账金额"; + this.colYesterdayAmountReceived.Name = "colYesterdayAmountReceived"; + this.colYesterdayAmountReceived.ReadOnly = true; + // + // colThisMonthAmountReceived + // + this.colThisMonthAmountReceived.HeaderText = "本月到账金额"; + this.colThisMonthAmountReceived.Name = "colThisMonthAmountReceived"; + this.colThisMonthAmountReceived.ReadOnly = true; + // + // colLastMonthAmountReceived + // + this.colLastMonthAmountReceived.HeaderText = "上月到账金额"; + this.colLastMonthAmountReceived.Name = "colLastMonthAmountReceived"; + this.colLastMonthAmountReceived.ReadOnly = true; + // + // colBalance + // + this.colBalance.HeaderText = "可用余额"; + this.colBalance.Name = "colBalance"; + this.colBalance.ReadOnly = true; + // + // colBond + // + this.colBond.HeaderText = "账户预留金额"; + this.colBond.Name = "colBond"; + this.colBond.ReadOnly = true; + // + // ShopStatisticsForm + // + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; + this.ClientSize = new System.Drawing.Size(1438, 600); + this.Controls.Add(this.splitContainer1); + this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.Name = "ShopStatisticsForm"; + this.Text = "ShopStatisticsForm"; + this.Load += new System.EventHandler(this.ShopStatisticsForm_Load); + this.VisibleChanged += new System.EventHandler(this.ShopStatisticsForm_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.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(); + ((System.ComponentModel.ISupportInitialize)(this.dgvShop)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.SplitContainer splitContainer1; + private System.Windows.Forms.SplitContainer splitContainer2; + private System.Windows.Forms.PictureBox pbLoading; + private UserComponent.DataGridViewEx dgvShop; + private UserControls.StatusBarUserControl statusBar; + private UserComponent.UcGroupBoxEx ucGroupBoxEx3; + 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 label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; + private System.Windows.Forms.DataGridViewLinkColumn colLoginStatus; + 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 colOnSaleProductNumber; + private System.Windows.Forms.DataGridViewTextBoxColumn colSaleVolume; + private System.Windows.Forms.DataGridViewTextBoxColumn colSevenDaysSaleVolume; + private System.Windows.Forms.DataGridViewTextBoxColumn colHighPriceLimitNumber; + private System.Windows.Forms.DataGridViewTextBoxColumn colAboutToSellOutNumber; + private System.Windows.Forms.DataGridViewTextBoxColumn colAdvicePrepareSkcNumber; + private System.Windows.Forms.DataGridViewTextBoxColumn colYesterdayAmountReceived; + private System.Windows.Forms.DataGridViewTextBoxColumn colThisMonthAmountReceived; + private System.Windows.Forms.DataGridViewTextBoxColumn colLastMonthAmountReceived; + private System.Windows.Forms.DataGridViewTextBoxColumn colBalance; + private System.Windows.Forms.DataGridViewTextBoxColumn colBond; + } +} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ShopForms/Statistics/ShopStatisticsForm.cs b/TEMUKJD/KJDForms/ShopForms/Statistics/ShopStatisticsForm.cs new file mode 100644 index 0000000..2aaf2d5 --- /dev/null +++ b/TEMUKJD/KJDForms/ShopForms/Statistics/ShopStatisticsForm.cs @@ -0,0 +1,112 @@ +using AllBase.Helper; +using AllBase.Model.Result; +using NaiBa.Util.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.Extension; + +namespace TemuKJD.KJDForms.ShopForms +{ + public partial class ShopStatisticsForm : Form + { + public ShopStatisticsForm() + { + InitializeComponent(); + } + + private void ShopStatisticsForm_Load(object sender, EventArgs e) + { + + } + + private void ShopStatisticsForm_VisibleChanged(object sender, EventArgs e) + { + if (Visible == true) + RefreshShop(); + } + + private void RefreshShop() + { + // 店铺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); + } + // 绑定其他店铺(含新导入的店铺) + foreach (ShopLoginInfo shopEntity in GlobalConfig.ShopLoginList) + { + if (!string.IsNullOrEmpty(shopEntity.ShopId)) + BindShop(shopEntity, selectIds); + } + } + + private void BindShop(ShopLoginInfo shopEntity, List selectShopId = null) + { + if (shopEntity == null) + return; + if (selectShopId == null) + selectShopId = new List(); + + bool canUse = shopEntity.LoginStatus == "登录成功" && shopEntity.LoginStatus2 == "国际版在线"; + var row = dgvShop.Rows.Cast().FirstOrDefault( + p => p.Cells.GetCellValueFromColumnName("colShopId").ParseToString() == shopEntity.ShopId); + if (row == null) + { + int id = this.dgvShop.Rows.Add( + true && canUse, + canUse ? "在线" : "掉线", + shopEntity.LoginName, + shopEntity.ShopId, + shopEntity.ShopAccount, + shopEntity.Notes, + string.Empty + ); + row = dgvShop.Rows[id]; + (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.Green : Color.Red; + 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.Green : Color.Red; + + row.Cells["colShopLoginName"].Value = shopEntity.LoginName; + row.Cells["colShopName"].Value = shopEntity.ShopAccount; + row.Cells["colShopNotes"].Value = shopEntity.Notes; + } + } + + private string GetMainStatistics(ShopLoginInfo shop, List adjustIdList, string refuseReason) + { + string url = "https://agentseller.temu.com/bg/swift/api/common/statistics/web/queryStatisticDataFullManaged"; + string body = "{\"adjustList\":["; + foreach (var adjustId in adjustIdList) + { + body += "{\"adjustId\":" + adjustId + ",\"result\":2,\"reason\":\"" + refuseReason + "\"},"; + } + body = body.TrimEnd(','); + body += "]}"; + string refere = "https://agentseller.temu.com/main/adjust-price-manage/order-price"; + + return KJDHttpResponse.PostResponse2(shop, url, body, refere); + } + } +} diff --git a/TEMUKJD/KJDForms/ShopForms/Statistics/ShopStatisticsForm.resx b/TEMUKJD/KJDForms/ShopForms/Statistics/ShopStatisticsForm.resx new file mode 100644 index 0000000..089ada7 --- /dev/null +++ b/TEMUKJD/KJDForms/ShopForms/Statistics/ShopStatisticsForm.resx @@ -0,0 +1,171 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + \ No newline at end of file