1 核价查询功能优化 2 添加上传商品次数修改功能 3优化备货功能
This commit is contained in:
1 parent
c45254656b
commit
fc017993df
22 files changed
+1661
-869
No files matched your search
+118
-53
@@ -30,12 +30,16 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
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();
|
||||
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();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.ucGroupBoxEx4 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.panel4 = new System.Windows.Forms.Panel();
|
||||
this.rbTodaySaleCount = new System.Windows.Forms.RadioButton();
|
||||
this.rbSevenDaysAvgSaleCount = new System.Windows.Forms.RadioButton();
|
||||
this.label20 = new System.Windows.Forms.Label();
|
||||
this.txtMinQualityScore = new System.Windows.Forms.TextBox();
|
||||
this.chkMinQualityScore = new System.Windows.Forms.CheckBox();
|
||||
this.ucCheckBox1 = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
@@ -45,12 +49,12 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
this.label15 = new System.Windows.Forms.Label();
|
||||
this.chkIfLessMakeZero = new System.Windows.Forms.CheckBox();
|
||||
this.txtScale2 = new System.Windows.Forms.TextBox();
|
||||
this.label14 = new System.Windows.Forms.Label();
|
||||
this.label102 = new System.Windows.Forms.Label();
|
||||
this.txtScale1 = new System.Windows.Forms.TextBox();
|
||||
this.panelEx3 = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnListWarehouse = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnStartStockUp = new DevComponents.DotNetBar.PanelEx();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.label101 = new System.Windows.Forms.Label();
|
||||
this.label16 = new System.Windows.Forms.Label();
|
||||
this.label17 = new System.Windows.Forms.Label();
|
||||
this.label18 = new System.Windows.Forms.Label();
|
||||
@@ -136,6 +140,7 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
this.colFromFake = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colInCartNumber7d = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colTodaySaleVolume = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colLastSevenDaysSaleVolume = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colSalesInventoryNum = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colWaitReceiveNum = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colQualityScore = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -150,6 +155,7 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
this.splitContainer1.SuspendLayout();
|
||||
this.ucGroupBoxEx4.SuspendLayout();
|
||||
this.panel4.SuspendLayout();
|
||||
this.flowLayoutPanel1.SuspendLayout();
|
||||
this.ucGroupBoxEx3.SuspendLayout();
|
||||
this.ucGroupBoxEx2.SuspendLayout();
|
||||
@@ -206,21 +212,22 @@ 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.panel4);
|
||||
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);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.label14);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.label102);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.txtScale1);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.panelEx3);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.btnListWarehouse);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.btnStartStockUp);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.label10);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.label101);
|
||||
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.Controls.Add(this.ucCheckBox1);
|
||||
this.ucGroupBoxEx4.Location = new System.Drawing.Point(417, 2);
|
||||
this.ucGroupBoxEx4.Name = "ucGroupBoxEx4";
|
||||
this.ucGroupBoxEx4.Size = new System.Drawing.Size(949, 120);
|
||||
@@ -228,6 +235,48 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
this.ucGroupBoxEx4.TabStop = false;
|
||||
this.ucGroupBoxEx4.Text = "创建备货单";
|
||||
//
|
||||
// panel4
|
||||
//
|
||||
this.panel4.Controls.Add(this.rbTodaySaleCount);
|
||||
this.panel4.Controls.Add(this.rbSevenDaysAvgSaleCount);
|
||||
this.panel4.Controls.Add(this.label20);
|
||||
this.panel4.Location = new System.Drawing.Point(521, 27);
|
||||
this.panel4.Name = "panel4";
|
||||
this.panel4.Size = new System.Drawing.Size(237, 23);
|
||||
this.panel4.TabIndex = 734;
|
||||
//
|
||||
// rbTodaySaleCount
|
||||
//
|
||||
this.rbTodaySaleCount.AutoSize = true;
|
||||
this.rbTodaySaleCount.Checked = true;
|
||||
this.rbTodaySaleCount.Location = new System.Drawing.Point(68, 1);
|
||||
this.rbTodaySaleCount.Name = "rbTodaySaleCount";
|
||||
this.rbTodaySaleCount.Size = new System.Drawing.Size(74, 21);
|
||||
this.rbTodaySaleCount.TabIndex = 466;
|
||||
this.rbTodaySaleCount.TabStop = true;
|
||||
this.rbTodaySaleCount.Text = "今日销量";
|
||||
this.rbTodaySaleCount.UseVisualStyleBackColor = true;
|
||||
this.rbTodaySaleCount.CheckedChanged += new System.EventHandler(this.rbTodaySaleCount_CheckedChanged);
|
||||
//
|
||||
// rbSevenDaysAvgSaleCount
|
||||
//
|
||||
this.rbSevenDaysAvgSaleCount.AutoSize = true;
|
||||
this.rbSevenDaysAvgSaleCount.Location = new System.Drawing.Point(142, 1);
|
||||
this.rbSevenDaysAvgSaleCount.Name = "rbSevenDaysAvgSaleCount";
|
||||
this.rbSevenDaysAvgSaleCount.Size = new System.Drawing.Size(98, 21);
|
||||
this.rbSevenDaysAvgSaleCount.TabIndex = 467;
|
||||
this.rbSevenDaysAvgSaleCount.Text = "七日平均销量";
|
||||
this.rbSevenDaysAvgSaleCount.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// label20
|
||||
//
|
||||
this.label20.AutoSize = true;
|
||||
this.label20.Location = new System.Drawing.Point(5, 3);
|
||||
this.label20.Name = "label20";
|
||||
this.label20.Size = new System.Drawing.Size(68, 17);
|
||||
this.label20.TabIndex = 680;
|
||||
this.label20.Text = "比较对象:";
|
||||
//
|
||||
// txtMinQualityScore
|
||||
//
|
||||
this.txtMinQualityScore.Location = new System.Drawing.Point(785, 85);
|
||||
@@ -260,7 +309,7 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
//
|
||||
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(757, 34);
|
||||
this.ucCheckBox1.Location = new System.Drawing.Point(849, 58);
|
||||
this.ucCheckBox1.Name = "ucCheckBox1";
|
||||
this.ucCheckBox1.Size = new System.Drawing.Size(87, 21);
|
||||
this.ucCheckBox1.TabIndex = 713;
|
||||
@@ -335,7 +384,7 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
//
|
||||
// txtScale2
|
||||
//
|
||||
this.txtScale2.Location = new System.Drawing.Point(388, 54);
|
||||
this.txtScale2.Location = new System.Drawing.Point(452, 55);
|
||||
this.txtScale2.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.txtScale2.Name = "txtScale2";
|
||||
this.txtScale2.Size = new System.Drawing.Size(25, 23);
|
||||
@@ -343,18 +392,18 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
this.txtScale2.Text = "8";
|
||||
this.txtScale2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// label14
|
||||
// label102
|
||||
//
|
||||
this.label14.AutoSize = true;
|
||||
this.label14.Location = new System.Drawing.Point(242, 58);
|
||||
this.label14.Name = "label14";
|
||||
this.label14.Size = new System.Drawing.Size(148, 17);
|
||||
this.label14.TabIndex = 679;
|
||||
this.label14.Text = "近7日加购大于今日销量 ×";
|
||||
this.label102.Location = new System.Drawing.Point(171, 58);
|
||||
this.label102.Name = "label102";
|
||||
this.label102.Size = new System.Drawing.Size(283, 17);
|
||||
this.label102.TabIndex = 679;
|
||||
this.label102.Text = "近7日加购大于今日销量,今日销量 ×";
|
||||
this.label102.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
//
|
||||
// txtScale1
|
||||
//
|
||||
this.txtScale1.Location = new System.Drawing.Point(388, 26);
|
||||
this.txtScale1.Location = new System.Drawing.Point(452, 27);
|
||||
this.txtScale1.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.txtScale1.Name = "txtScale1";
|
||||
this.txtScale1.Size = new System.Drawing.Size(25, 23);
|
||||
@@ -436,19 +485,19 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
this.btnStartStockUp.Text = "开始备货";
|
||||
this.btnStartStockUp.Click += new System.EventHandler(this.btnStartStockUp_Click);
|
||||
//
|
||||
// label10
|
||||
// label101
|
||||
//
|
||||
this.label10.AutoSize = true;
|
||||
this.label10.Location = new System.Drawing.Point(182, 30);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new System.Drawing.Size(208, 17);
|
||||
this.label10.TabIndex = 678;
|
||||
this.label10.Text = "备货数量:近7日加购小于今日销量 ×";
|
||||
this.label101.Location = new System.Drawing.Point(171, 30);
|
||||
this.label101.Name = "label101";
|
||||
this.label101.Size = new System.Drawing.Size(283, 17);
|
||||
this.label101.TabIndex = 678;
|
||||
this.label101.Text = "备货数量:近7日加购小于今日销量,今日销量 ×";
|
||||
this.label101.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
//
|
||||
// label16
|
||||
//
|
||||
this.label16.AutoSize = true;
|
||||
this.label16.Location = new System.Drawing.Point(425, 30);
|
||||
this.label16.Location = new System.Drawing.Point(475, 30);
|
||||
this.label16.Name = "label16";
|
||||
this.label16.Size = new System.Drawing.Size(44, 17);
|
||||
this.label16.TabIndex = 693;
|
||||
@@ -457,7 +506,7 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
// label17
|
||||
//
|
||||
this.label17.AutoSize = true;
|
||||
this.label17.Location = new System.Drawing.Point(425, 58);
|
||||
this.label17.Location = new System.Drawing.Point(475, 58);
|
||||
this.label17.Name = "label17";
|
||||
this.label17.Size = new System.Drawing.Size(44, 17);
|
||||
this.label17.TabIndex = 694;
|
||||
@@ -764,18 +813,18 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
//
|
||||
this.dgvShop.AllowUserToAddRows = false;
|
||||
this.dgvShop.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle5.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.dgvShop.BackgroundColor = System.Drawing.Color.White;
|
||||
this.dgvShop.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
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;
|
||||
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,
|
||||
@@ -1360,18 +1409,18 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
//
|
||||
this.dgvStock.AllowUserToAddRows = false;
|
||||
this.dgvStock.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle7.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvStock.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle7;
|
||||
dataGridViewCellStyle3.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvStock.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3;
|
||||
this.dgvStock.BackgroundColor = System.Drawing.Color.White;
|
||||
this.dgvStock.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
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;
|
||||
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;
|
||||
this.dgvStock.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dgvStock.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.colUpId,
|
||||
@@ -1390,6 +1439,7 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
this.colFromFake,
|
||||
this.colInCartNumber7d,
|
||||
this.colTodaySaleVolume,
|
||||
this.colLastSevenDaysSaleVolume,
|
||||
this.colSalesInventoryNum,
|
||||
this.colWaitReceiveNum,
|
||||
this.colQualityScore,
|
||||
@@ -1531,6 +1581,14 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
this.colTodaySaleVolume.Visible = false;
|
||||
this.colTodaySaleVolume.Width = 70;
|
||||
//
|
||||
// colLastSevenDaysSaleVolume
|
||||
//
|
||||
this.colLastSevenDaysSaleVolume.HeaderText = "七日销量";
|
||||
this.colLastSevenDaysSaleVolume.Name = "colLastSevenDaysSaleVolume";
|
||||
this.colLastSevenDaysSaleVolume.ReadOnly = true;
|
||||
this.colLastSevenDaysSaleVolume.Visible = false;
|
||||
this.colLastSevenDaysSaleVolume.Width = 70;
|
||||
//
|
||||
// colSalesInventoryNum
|
||||
//
|
||||
this.colSalesInventoryNum.HeaderText = "仓库可用库存";
|
||||
@@ -1666,6 +1724,8 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
this.splitContainer1.ResumeLayout(false);
|
||||
this.ucGroupBoxEx4.ResumeLayout(false);
|
||||
this.ucGroupBoxEx4.PerformLayout();
|
||||
this.panel4.ResumeLayout(false);
|
||||
this.panel4.PerformLayout();
|
||||
this.flowLayoutPanel1.ResumeLayout(false);
|
||||
this.flowLayoutPanel1.PerformLayout();
|
||||
this.ucGroupBoxEx3.ResumeLayout(false);
|
||||
@@ -1771,10 +1831,10 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
private DevComponents.DotNetBar.PanelEx btnStartStockUp;
|
||||
private DevComponents.DotNetBar.PanelEx panelEx3;
|
||||
private DevComponents.DotNetBar.PanelEx btnListWarehouse;
|
||||
private System.Windows.Forms.Label label10;
|
||||
private System.Windows.Forms.Label label101;
|
||||
private System.Windows.Forms.TextBox txtScale1;
|
||||
private System.Windows.Forms.TextBox txtScale2;
|
||||
private System.Windows.Forms.Label label14;
|
||||
private System.Windows.Forms.Label label102;
|
||||
private DevComponents.DotNetBar.PanelEx panelEx1;
|
||||
private System.Windows.Forms.TextBox txtMinBound;
|
||||
private System.Windows.Forms.Label label15;
|
||||
@@ -1793,6 +1853,13 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colLoginStatus;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn colCanUse;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colMessage;
|
||||
private System.Windows.Forms.TextBox txtMinQualityScore;
|
||||
private System.Windows.Forms.CheckBox chkMinQualityScore;
|
||||
private System.Windows.Forms.Label label19;
|
||||
private System.Windows.Forms.Panel panel4;
|
||||
private System.Windows.Forms.Label label20;
|
||||
private System.Windows.Forms.RadioButton rbTodaySaleCount;
|
||||
private System.Windows.Forms.RadioButton rbSevenDaysAvgSaleCount;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colUpId;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn colCheck;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colSupplierId;
|
||||
@@ -1809,13 +1876,11 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colFromFake;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colInCartNumber7d;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colTodaySaleVolume;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colLastSevenDaysSaleVolume;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colSalesInventoryNum;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colWaitReceiveNum;
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -164,7 +164,7 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
{
|
||||
col.Visible = true;
|
||||
}
|
||||
if (col.Name == "colTodaySaleVolume" || col.Name == "colInCartNumber7d" || col.Name == "colSalesInventoryNum"
|
||||
if (col.Name == "colTodaySaleVolume" || col.Name == "colLastSevenDaysSaleVolume" || col.Name == "colInCartNumber7d" || col.Name == "colSalesInventoryNum"
|
||||
|| col.Name == "colWaitReceiveNum" || col.Name == "colNeedStockUp" || col.Name == "colQualityScore")
|
||||
{
|
||||
col.Visible = false;
|
||||
@@ -749,7 +749,7 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
{
|
||||
col.Visible = false;
|
||||
}
|
||||
if (col.Name == "colTodaySaleVolume" || col.Name == "colInCartNumber7d" || col.Name == "colSalesInventoryNum"
|
||||
if (col.Name == "colTodaySaleVolume" || col.Name == "colLastSevenDaysSaleVolume" || col.Name == "colInCartNumber7d" || col.Name == "colSalesInventoryNum"
|
||||
|| col.Name == "colWaitReceiveNum" || col.Name == "colNeedStockUp" || col.Name == "colQualityScore")
|
||||
{
|
||||
col.Visible = true;
|
||||
@@ -866,13 +866,32 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
// 拟申请备货数量=今日销量×系数-仓内可用库存-已发货库存
|
||||
// 实际备货数量=平台实际允许数量和拟申请备货数量取小(申请备货时计算)
|
||||
int scale = scale1;
|
||||
if (sku.inCartNumber7d.ParseToInt() > sku.todaySaleVolume.ParseToInt())
|
||||
{
|
||||
scale = scale2;
|
||||
if (rbTodaySaleCount.Checked)
|
||||
{
|
||||
if (sku.inCartNumber7d.ParseToInt() > sku.todaySaleVolume.ParseToInt())
|
||||
{
|
||||
scale = scale2;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (sku.inCartNumber7d.ParseToInt() > sku.lastSevenDaysSaleVolume.ParseToInt() / 7.0m)
|
||||
{
|
||||
scale = scale2;
|
||||
}
|
||||
}
|
||||
if (rbTodaySaleCount.Checked)
|
||||
{
|
||||
sku.wantStockUpBound = sku.todaySaleVolume.ParseToInt() * scale
|
||||
- sku.inventoryNumInfo.warehouseInventoryNum.ParseToInt()
|
||||
- sku.inventoryNumInfo.waitReceiveNum.ParseToInt();
|
||||
}
|
||||
else
|
||||
{
|
||||
sku.wantStockUpBound = (sku.lastSevenDaysSaleVolume.ParseToInt() / 7.0 * scale
|
||||
- sku.inventoryNumInfo.warehouseInventoryNum.ParseToInt()
|
||||
- sku.inventoryNumInfo.waitReceiveNum.ParseToInt()).ParseToInt();
|
||||
}
|
||||
sku.wantStockUpBound = sku.todaySaleVolume.ParseToInt() * scale
|
||||
- sku.inventoryNumInfo.warehouseInventoryNum.ParseToInt()
|
||||
- sku.inventoryNumInfo.waitReceiveNum.ParseToInt();
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
if (sku.wantStockUpBound > 0 && sku.wantStockUpBound < this.txtMinBound.Text.ParseToInt())
|
||||
@@ -949,6 +968,7 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
"",
|
||||
sInfo.skuQuantityTotalInfo.inCartNumber7d,
|
||||
sInfo.skuQuantityTotalInfo.todaySaleVolume,
|
||||
sInfo.skuQuantityTotalInfo.lastSevenDaysSaleVolume,
|
||||
sInfo.skuQuantityTotalInfo.inventoryNumInfo.warehouseInventoryNum,
|
||||
sInfo.skuQuantityTotalInfo.inventoryNumInfo.waitReceiveNum,
|
||||
sInfo.goodsAfsScore == null ? "-" : (Math.Round(sInfo.goodsAfsScore.Value * 10) / 10).ToString(),
|
||||
@@ -1262,5 +1282,19 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
{
|
||||
ShowDgvImg();
|
||||
}
|
||||
|
||||
private void rbTodaySaleCount_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if(rbTodaySaleCount.Checked)
|
||||
{
|
||||
label101.Text = "备货数量:近7日加购小于今日销量,今日销量 ×";
|
||||
label102.Text = "近7日加购大于今日销量,今日销量 ×";
|
||||
}
|
||||
else
|
||||
{
|
||||
label101.Text = "备货数量:近7日加购小于7日平均销量,7日平均 ×";
|
||||
label102.Text = "近7日加购大于7日平均销量,7日平均 ×";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -183,6 +183,9 @@
|
||||
<metadata name="colTodaySaleVolume.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colLastSevenDaysSaleVolume.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colSalesInventoryNum.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
|
||||
Reference in new issue
Block a user