店铺统计功能 30%

This commit is contained in:
wule committed 2025-08-20 18:57:42 +08:00
1 parent 7d5daf27ad
commit 4693c42024
10 files changed
+1269 -182

No files matched your search

+175 -128
View File
@@ -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;
}
}
@@ -527,39 +527,12 @@ namespace TemuKJD.KJDForms.ProductForms
}
/// <summary>
/// 小于60分商品
/// qualityScoreEnum = 1 小于60分商品
/// qualityScoreEnum = 2 60分到70分商品
/// qualityScoreEnum = 3 70分到90分商品
/// qualityScoreEnum = 4 90分以上
/// </summary>
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);
}
/// <summary>
/// 60分到70分商品
/// </summary>
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);
}
/// <summary>
/// 70分到90分商品
/// </summary>
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);
}
/// <summary>
/// 90分以上
/// </summary>
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(() =>
{