1部分废弃功能注释 2数据库商品车队费、贴单费等设置 3账户授权金额设置 4jit核价商品还原逻辑调整

This commit is contained in:
wule committed 2025-12-03 11:04:58 +08:00
1 parent 480d8c2cd4
commit 165df61234
52 files changed
+2019 -1023

No files matched your search

@@ -30,6 +30,10 @@
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DbProductEditNotesForm));
this.panel2 = new System.Windows.Forms.Panel();
this.btnSkuAi = new DevComponents.DotNetBar.PanelEx();
this.btnOk = new DevComponents.DotNetBar.PanelEx();
this.txtCostPrice = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.txtGroup = new System.Windows.Forms.TextBox();
this.btnAuto = new DevComponents.DotNetBar.PanelEx();
@@ -51,10 +55,10 @@
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.label8 = new System.Windows.Forms.Label();
this.txtNotes = new DevComponents.DotNetBar.Controls.TextBoxX();
this.label10 = new System.Windows.Forms.Label();
this.txtCostPrice = new System.Windows.Forms.TextBox();
this.btnOk = new DevComponents.DotNetBar.PanelEx();
this.btnSkuAi = new DevComponents.DotNetBar.PanelEx();
this.txtDeliveryCharge = new System.Windows.Forms.TextBox();
this.txtStickMarkCharge = new System.Windows.Forms.TextBox();
this.label11 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
@@ -62,15 +66,15 @@
// panel2
//
this.panel2.BackColor = System.Drawing.Color.White;
this.panel2.Controls.Add(this.txtStickMarkCharge);
this.panel2.Controls.Add(this.txtDeliveryCharge);
this.panel2.Controls.Add(this.btnSkuAi);
this.panel2.Controls.Add(this.btnOk);
this.panel2.Controls.Add(this.txtCostPrice);
this.panel2.Controls.Add(this.label10);
this.panel2.Controls.Add(this.label9);
this.panel2.Controls.Add(this.txtGroup);
this.panel2.Controls.Add(this.btnAuto);
this.panel2.Controls.Add(this.pnlRestore);
this.panel2.Controls.Add(this.label7);
this.panel2.Controls.Add(this.txtFissionWords);
this.panel2.Controls.Add(this.txtEndWords);
this.panel2.Controls.Add(this.label6);
@@ -87,16 +91,86 @@
this.panel2.Controls.Add(this.pictureBox1);
this.panel2.Controls.Add(this.label8);
this.panel2.Controls.Add(this.txtNotes);
this.panel2.Controls.Add(this.label11);
this.panel2.Controls.Add(this.label12);
this.panel2.Controls.Add(this.label7);
this.panel2.Controls.Add(this.label9);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(1, 33);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(464, 686);
this.panel2.TabIndex = 1;
//
// btnSkuAi
//
this.btnSkuAi.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnSkuAi.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnSkuAi.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnSkuAi.DisabledBackColor = System.Drawing.Color.Empty;
this.btnSkuAi.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSkuAi.Location = new System.Drawing.Point(90, 640);
this.btnSkuAi.Name = "btnSkuAi";
this.btnSkuAi.Size = new System.Drawing.Size(77, 26);
this.btnSkuAi.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnSkuAi.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnSkuAi.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnSkuAi.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnSkuAi.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnSkuAi.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnSkuAi.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnSkuAi.Style.GradientAngle = 90;
this.btnSkuAi.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnSkuAi.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnSkuAi.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnSkuAi.TabIndex = 463;
this.btnSkuAi.Text = "SKU AI图";
this.btnSkuAi.Click += new System.EventHandler(this.btnSkuAi_Click);
//
// btnOk
//
this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnOk.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnOk.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnOk.DisabledBackColor = System.Drawing.Color.Empty;
this.btnOk.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOk.Location = new System.Drawing.Point(372, 640);
this.btnOk.Name = "btnOk";
this.btnOk.Size = new System.Drawing.Size(55, 26);
this.btnOk.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnOk.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnOk.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnOk.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnOk.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnOk.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnOk.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnOk.Style.GradientAngle = 90;
this.btnOk.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnOk.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnOk.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnOk.TabIndex = 459;
this.btnOk.Text = "提交";
this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
//
// txtCostPrice
//
this.txtCostPrice.Location = new System.Drawing.Point(90, 341);
this.txtCostPrice.Name = "txtCostPrice";
this.txtCostPrice.Size = new System.Drawing.Size(80, 23);
this.txtCostPrice.TabIndex = 455;
//
// label10
//
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(35, 344);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(56, 17);
this.label10.TabIndex = 454;
this.label10.Text = " 成本价";
//
// label9
//
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(31, 333);
this.label9.Location = new System.Drawing.Point(35, 316);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(56, 17);
this.label9.TabIndex = 447;
@@ -104,9 +178,9 @@
//
// txtGroup
//
this.txtGroup.Location = new System.Drawing.Point(90, 330);
this.txtGroup.Location = new System.Drawing.Point(90, 313);
this.txtGroup.Name = "txtGroup";
this.txtGroup.Size = new System.Drawing.Size(136, 23);
this.txtGroup.Size = new System.Drawing.Size(337, 23);
this.txtGroup.TabIndex = 446;
//
// btnAuto
@@ -116,7 +190,7 @@
this.btnAuto.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnAuto.DisabledBackColor = System.Drawing.Color.Empty;
this.btnAuto.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnAuto.Location = new System.Drawing.Point(348, 360);
this.btnAuto.Location = new System.Drawing.Point(348, 369);
this.btnAuto.Name = "btnAuto";
this.btnAuto.Size = new System.Drawing.Size(35, 23);
this.btnAuto.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -139,7 +213,7 @@
this.pnlRestore.CanvasColor = System.Drawing.SystemColors.Control;
this.pnlRestore.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.pnlRestore.DisabledBackColor = System.Drawing.Color.Empty;
this.pnlRestore.Location = new System.Drawing.Point(388, 360);
this.pnlRestore.Location = new System.Drawing.Point(388, 369);
this.pnlRestore.Name = "pnlRestore";
this.pnlRestore.Size = new System.Drawing.Size(39, 23);
this.pnlRestore.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -161,7 +235,7 @@
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(31, 393);
this.label7.Location = new System.Drawing.Point(35, 399);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(56, 17);
this.label7.TabIndex = 403;
@@ -184,7 +258,7 @@
this.txtFissionWords.Border.PaddingLeft = 2;
this.txtFissionWords.Border.PaddingRight = 2;
this.txtFissionWords.Border.PaddingTop = 2;
this.txtFissionWords.Location = new System.Drawing.Point(90, 390);
this.txtFissionWords.Location = new System.Drawing.Point(90, 397);
this.txtFissionWords.Multiline = true;
this.txtFissionWords.Name = "txtFissionWords";
this.txtFissionWords.Size = new System.Drawing.Size(337, 238);
@@ -195,15 +269,15 @@
//
this.txtEndWords.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtEndWords.Location = new System.Drawing.Point(232, 360);
this.txtEndWords.Location = new System.Drawing.Point(233, 369);
this.txtEndWords.Name = "txtEndWords";
this.txtEndWords.Size = new System.Drawing.Size(111, 23);
this.txtEndWords.Size = new System.Drawing.Size(110, 23);
this.txtEndWords.TabIndex = 401;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(201, 363);
this.label6.Location = new System.Drawing.Point(202, 372);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(32, 17);
this.label6.TabIndex = 400;
@@ -211,15 +285,15 @@
//
// txtHeadWords
//
this.txtHeadWords.Location = new System.Drawing.Point(90, 360);
this.txtHeadWords.Location = new System.Drawing.Point(90, 369);
this.txtHeadWords.Name = "txtHeadWords";
this.txtHeadWords.Size = new System.Drawing.Size(111, 23);
this.txtHeadWords.Size = new System.Drawing.Size(110, 23);
this.txtHeadWords.TabIndex = 399;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(31, 363);
this.label5.Location = new System.Drawing.Point(35, 372);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(56, 17);
this.label5.TabIndex = 398;
@@ -229,7 +303,7 @@
//
this.txtProductName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtProductName.Location = new System.Drawing.Point(90, 193);
this.txtProductName.Location = new System.Drawing.Point(90, 182);
this.txtProductName.Multiline = true;
this.txtProductName.Name = "txtProductName";
this.txtProductName.Size = new System.Drawing.Size(337, 46);
@@ -239,33 +313,33 @@
//
this.txtSkcId.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtSkcId.Location = new System.Drawing.Point(291, 163);
this.txtSkcId.Location = new System.Drawing.Point(284, 154);
this.txtSkcId.Name = "txtSkcId";
this.txtSkcId.ReadOnly = true;
this.txtSkcId.Size = new System.Drawing.Size(136, 23);
this.txtSkcId.Size = new System.Drawing.Size(143, 23);
this.txtSkcId.TabIndex = 396;
//
// txtSpuId
//
this.txtSpuId.Location = new System.Drawing.Point(90, 163);
this.txtSpuId.Location = new System.Drawing.Point(90, 154);
this.txtSpuId.Name = "txtSpuId";
this.txtSpuId.ReadOnly = true;
this.txtSpuId.Size = new System.Drawing.Size(136, 23);
this.txtSpuId.Size = new System.Drawing.Size(143, 23);
this.txtSpuId.TabIndex = 395;
//
// txtExtCode
//
this.txtExtCode.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtExtCode.Location = new System.Drawing.Point(90, 246);
this.txtExtCode.Location = new System.Drawing.Point(90, 233);
this.txtExtCode.Name = "txtExtCode";
this.txtExtCode.Size = new System.Drawing.Size(336, 23);
this.txtExtCode.Size = new System.Drawing.Size(337, 23);
this.txtExtCode.TabIndex = 394;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(31, 249);
this.label4.Location = new System.Drawing.Point(35, 236);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(56, 17);
this.label4.TabIndex = 393;
@@ -274,7 +348,7 @@
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(31, 196);
this.label3.Location = new System.Drawing.Point(35, 186);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(56, 17);
this.label3.TabIndex = 392;
@@ -283,7 +357,7 @@
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(233, 166);
this.label2.Location = new System.Drawing.Point(230, 157);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(56, 17);
this.label2.TabIndex = 391;
@@ -292,7 +366,7 @@
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(31, 166);
this.label1.Location = new System.Drawing.Point(35, 157);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(56, 17);
this.label1.TabIndex = 390;
@@ -301,7 +375,7 @@
// pictureBox1
//
this.pictureBox1.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.pictureBox1.Location = new System.Drawing.Point(165, 18);
this.pictureBox1.Location = new System.Drawing.Point(165, 13);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(136, 136);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
@@ -334,77 +408,43 @@
this.txtNotes.Border.PaddingLeft = 2;
this.txtNotes.Border.PaddingRight = 2;
this.txtNotes.Border.PaddingTop = 2;
this.txtNotes.Location = new System.Drawing.Point(90, 276);
this.txtNotes.Location = new System.Drawing.Point(90, 261);
this.txtNotes.Multiline = true;
this.txtNotes.Name = "txtNotes";
this.txtNotes.Size = new System.Drawing.Size(337, 47);
this.txtNotes.TabIndex = 385;
//
// label10
// txtDeliveryCharge
//
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(233, 333);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(56, 17);
this.label10.TabIndex = 454;
this.label10.Text = " 成本价";
this.txtDeliveryCharge.Location = new System.Drawing.Point(218, 341);
this.txtDeliveryCharge.Name = "txtDeliveryCharge";
this.txtDeliveryCharge.Size = new System.Drawing.Size(80, 23);
this.txtDeliveryCharge.TabIndex = 476;
//
// txtCostPrice
// txtStickMarkCharge
//
this.txtCostPrice.Location = new System.Drawing.Point(291, 330);
this.txtCostPrice.Name = "txtCostPrice";
this.txtCostPrice.Size = new System.Drawing.Size(136, 23);
this.txtCostPrice.TabIndex = 455;
this.txtStickMarkCharge.Location = new System.Drawing.Point(346, 341);
this.txtStickMarkCharge.Name = "txtStickMarkCharge";
this.txtStickMarkCharge.Size = new System.Drawing.Size(80, 23);
this.txtStickMarkCharge.TabIndex = 477;
//
// btnOk
// label11
//
this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnOk.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnOk.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnOk.DisabledBackColor = System.Drawing.Color.Empty;
this.btnOk.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOk.Location = new System.Drawing.Point(372, 640);
this.btnOk.Name = "btnOk";
this.btnOk.Size = new System.Drawing.Size(55, 26);
this.btnOk.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnOk.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnOk.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnOk.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnOk.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnOk.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnOk.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnOk.Style.GradientAngle = 90;
this.btnOk.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnOk.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnOk.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnOk.TabIndex = 459;
this.btnOk.Text = "提交";
this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(175, 344);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(44, 17);
this.label11.TabIndex = 478;
this.label11.Text = "车队费";
//
// btnSkuAi
// label12
//
this.btnSkuAi.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnSkuAi.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnSkuAi.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnSkuAi.DisabledBackColor = System.Drawing.Color.Empty;
this.btnSkuAi.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSkuAi.Location = new System.Drawing.Point(90, 640);
this.btnSkuAi.Name = "btnSkuAi";
this.btnSkuAi.Size = new System.Drawing.Size(77, 26);
this.btnSkuAi.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnSkuAi.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnSkuAi.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnSkuAi.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnSkuAi.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnSkuAi.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnSkuAi.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnSkuAi.Style.GradientAngle = 90;
this.btnSkuAi.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnSkuAi.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnSkuAi.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnSkuAi.TabIndex = 463;
this.btnSkuAi.Text = "SKU AI图";
this.btnSkuAi.Click += new System.EventHandler(this.btnSkuAi_Click);
this.label12.AutoSize = true;
this.label12.Location = new System.Drawing.Point(303, 344);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(44, 17);
this.label12.TabIndex = 479;
this.label12.Text = "贴单费";
//
// DbProductEditNotesForm
//
@@ -453,5 +493,9 @@
private System.Windows.Forms.Label label10;
private DevComponents.DotNetBar.PanelEx btnSkuAi;
private DevComponents.DotNetBar.PanelEx btnOk;
private System.Windows.Forms.TextBox txtStickMarkCharge;
private System.Windows.Forms.TextBox txtDeliveryCharge;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label12;
}
}
@@ -42,9 +42,11 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.txtFissionWords.Text = dbProd.fission_words;
//this.txtHeadWords.Text = string.IsNullOrWhiteSpace(dbProd.head_words) ? "5-99个" : dbProd.head_words;
//this.txtEndWords.Text = string.IsNullOrWhiteSpace(dbProd.end_words) ? "适合不同的搭配风格" : dbProd.end_words;
this.txtHeadWords.Text = dbProd.head_words;
this.txtEndWords.Text = dbProd.end_words;
this.txtCostPrice.Text = dbProd.cost_price;
this.txtHeadWords.Text = dbProd.head_words.ParseToString();
this.txtEndWords.Text = dbProd.end_words.ParseToString();
this.txtCostPrice.Text = dbProd.cost_price.ParseToString();
this.txtDeliveryCharge.Text = dbProd.delivery_fee.ParseToString();
this.txtStickMarkCharge.Text = dbProd.mark_fee.ParseToString();
}
}
@@ -62,16 +64,14 @@ namespace TemuKJD.KJDForms.ProductSelectForms
"&db_id=" + dbProd.id + "&notes=" + this.txtNotes.Text.Trim();
data += "&group=" + this.txtGroup.Text.Trim();
data += "&product_name=" + this.txtProductName.Text.Trim();
data += "&product_name=" + this.txtProductName.Text.Trim();
data += "&ext_code=" + this.txtExtCode.Text.Trim();
data += "&fission_words=" + this.txtFissionWords.Text.Trim();
data += "&head_words=" + this.txtHeadWords.Text.Trim();
data += "&end_words=" + this.txtEndWords.Text.Trim();
if (!string.IsNullOrEmpty(this.txtCostPrice.Text.Trim()))
data += "&cost_price=" + this.txtCostPrice.Text.Trim();
data += "&cost_price=" + this.txtCostPrice.Text.Trim();
data += "&delivery_fee=" + this.txtDeliveryCharge.Text.Trim();
data += "&mark_fee=" + this.txtStickMarkCharge.Text.Trim(); // 贴单费
var html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
@@ -87,6 +87,9 @@ namespace TemuKJD.KJDForms.ProductSelectForms
dbProd.end_words = this.txtEndWords.Text.Trim();
dbProd.fission_words = this.txtFissionWords.Text.Trim();
dbProd.product_name = this.txtProductName.Text.Trim();
dbProd.cost_price = this.txtCostPrice.Text.Trim().ParseToDecimal() <= 0 ? new decimal?() : this.txtCostPrice.Text.Trim().ParseToDecimal();
dbProd.delivery_fee = this.txtDeliveryCharge.Text.Trim().ParseToDecimal() <= 0 ? new decimal?() : this.txtDeliveryCharge.Text.Trim().ParseToDecimal();
dbProd.mark_fee = this.txtStickMarkCharge.Text.Trim().ParseToDecimal() <= 0 ? new decimal?() : this.txtStickMarkCharge.Text.Trim().ParseToDecimal();
this.Close();
}
}
+133 -104
View File
@@ -39,6 +39,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DbProductListForm));
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.btnBatchSelect = new DevComponents.DotNetBar.PanelEx();
@@ -69,6 +71,13 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.lblProdName = new System.Windows.Forms.Label();
this.numCount = new System.Windows.Forms.NumericUpDown();
this.dgvSelectShop = new TemuKJD.UserComponent.DataGridViewEx();
this.colCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.colUserName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colSubUserName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colShopNotes = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colJitStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.btnCancel = new DevComponents.DotNetBar.PanelEx();
this.btnAddToSelectDb = new DevComponents.DotNetBar.PanelEx();
this.btnGetShop = new DevComponents.DotNetBar.PanelEx();
@@ -77,6 +86,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.txtShopId = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.dgvDbProduct = new TemuKJD.UserComponent.DataGridViewEx();
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.col_db_id = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.col_spu_id = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -87,6 +98,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.col_cat_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.col_ext_code = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colCostPrice = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colDeliveryCharge = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colStickMarkCharge = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colProdGetType = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colGroup = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.col_notes = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -100,15 +113,6 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.col_edit = new System.Windows.Forms.DataGridViewLinkColumn();
this.col_delete = new System.Windows.Forms.DataGridViewLinkColumn();
this.col_select_product = new System.Windows.Forms.DataGridViewLinkColumn();
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
this.colCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.colUserName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colSubUserName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colShopNotes = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colJitStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
@@ -550,6 +554,57 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.dgvSelectShop.TabIndex = 504;
this.dgvSelectShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvSelectShop_CellContentClick);
//
// colCheck
//
this.colCheck.HeaderText = "选择";
this.colCheck.MinimumWidth = 6;
this.colCheck.Name = "colCheck";
this.colCheck.ReadOnly = true;
this.colCheck.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.colCheck.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
this.colCheck.Width = 30;
//
// colUserName
//
this.colUserName.HeaderText = "用户名称";
this.colUserName.MinimumWidth = 6;
this.colUserName.Name = "colUserName";
this.colUserName.ReadOnly = true;
this.colUserName.Width = 90;
//
// colSubUserName
//
this.colSubUserName.HeaderText = "子账户名称";
this.colSubUserName.Name = "colSubUserName";
this.colSubUserName.ReadOnly = true;
this.colSubUserName.Visible = false;
this.colSubUserName.Width = 150;
//
// colShopId
//
this.colShopId.HeaderText = "店铺Id";
this.colShopId.Name = "colShopId";
this.colShopId.ReadOnly = true;
//
// colShopName
//
this.colShopName.HeaderText = "店铺名称";
this.colShopName.Name = "colShopName";
this.colShopName.ReadOnly = true;
//
// colShopNotes
//
this.colShopNotes.HeaderText = "店铺备注";
this.colShopNotes.Name = "colShopNotes";
this.colShopNotes.ReadOnly = true;
//
// colJitStatus
//
this.colJitStatus.HeaderText = "JIT状态";
this.colJitStatus.Name = "colJitStatus";
this.colJitStatus.ReadOnly = true;
this.colJitStatus.Visible = false;
//
// btnCancel
//
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@@ -689,6 +744,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.col_cat_name,
this.col_ext_code,
this.colCostPrice,
this.colDeliveryCharge,
this.colStickMarkCharge,
this.colProdGetType,
this.colGroup,
this.col_notes,
@@ -712,6 +769,31 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.dgvDbProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvDbProduct_CellContentClick);
this.dgvDbProduct.Scroll += new System.Windows.Forms.ScrollEventHandler(this.dgvDbProduct_Scroll);
//
// ucSplitPage1
//
this.ucSplitPage1.CurrentPage = 1;
this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Right;
this.ucSplitPage1.IsShowPageSize = false;
this.ucSplitPage1.Location = new System.Drawing.Point(916, 0);
this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
this.ucSplitPage1.Name = "ucSplitPage1";
this.ucSplitPage1.Padding = new System.Windows.Forms.Padding(0, 0, 1, 0);
this.ucSplitPage1.PageSize = 50;
this.ucSplitPage1.Size = new System.Drawing.Size(362, 25);
this.ucSplitPage1.TabIndex = 6;
this.ucSplitPage1.TotalPage = 1;
//
// 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(1278, 25);
this.statusBar.TabIndex = 5;
//
// colSelect
//
this.colSelect.FillWeight = 26F;
@@ -770,23 +852,41 @@ namespace TemuKJD.KJDForms.ProductSelectForms
//
// col_cat_name
//
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.col_cat_name.DefaultCellStyle = dataGridViewCellStyle6;
this.col_cat_name.FillWeight = 60F;
this.col_cat_name.HeaderText = "类目";
this.col_cat_name.Name = "col_cat_name";
this.col_cat_name.ReadOnly = true;
//
// col_ext_code
//
this.col_ext_code.FillWeight = 115F;
this.col_ext_code.HeaderText = "货号";
this.col_ext_code.Name = "col_ext_code";
this.col_ext_code.ReadOnly = true;
//
// colCostPrice
//
this.colCostPrice.FillWeight = 50F;
this.colCostPrice.FillWeight = 45F;
this.colCostPrice.HeaderText = "成本价";
this.colCostPrice.Name = "colCostPrice";
this.colCostPrice.ReadOnly = true;
//
// colDeliveryCharge
//
this.colDeliveryCharge.FillWeight = 45F;
this.colDeliveryCharge.HeaderText = "车队费";
this.colDeliveryCharge.Name = "colDeliveryCharge";
this.colDeliveryCharge.ReadOnly = true;
//
// colStickMarkCharge
//
this.colStickMarkCharge.FillWeight = 45F;
this.colStickMarkCharge.HeaderText = "贴单费";
this.colStickMarkCharge.Name = "colStickMarkCharge";
this.colStickMarkCharge.ReadOnly = true;
//
// colProdGetType
//
this.colProdGetType.FillWeight = 60F;
@@ -796,6 +896,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
//
// colGroup
//
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colGroup.DefaultCellStyle = dataGridViewCellStyle7;
this.colGroup.FillWeight = 58F;
this.colGroup.HeaderText = "分组";
this.colGroup.Name = "colGroup";
@@ -803,17 +905,18 @@ namespace TemuKJD.KJDForms.ProductSelectForms
//
// col_notes
//
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.col_notes.DefaultCellStyle = dataGridViewCellStyle6;
this.col_notes.FillWeight = 90F;
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.col_notes.DefaultCellStyle = dataGridViewCellStyle8;
this.col_notes.FillWeight = 60F;
this.col_notes.HeaderText = "备注";
this.col_notes.Name = "col_notes";
this.col_notes.ReadOnly = true;
//
// colHeadWords
//
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colHeadWords.DefaultCellStyle = dataGridViewCellStyle7;
dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colHeadWords.DefaultCellStyle = dataGridViewCellStyle9;
this.colHeadWords.FillWeight = 60F;
this.colHeadWords.HeaderText = "标题前缀";
this.colHeadWords.Name = "colHeadWords";
this.colHeadWords.ReadOnly = true;
@@ -821,8 +924,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
//
// colEndWords
//
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colEndWords.DefaultCellStyle = dataGridViewCellStyle8;
dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colEndWords.DefaultCellStyle = dataGridViewCellStyle10;
this.colEndWords.HeaderText = "标题后缀";
this.colEndWords.Name = "colEndWords";
this.colEndWords.ReadOnly = true;
@@ -830,8 +933,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
//
// colFissionWords
//
dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colFissionWords.DefaultCellStyle = dataGridViewCellStyle9;
dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colFissionWords.DefaultCellStyle = dataGridViewCellStyle11;
this.colFissionWords.HeaderText = "裂变词";
this.colFissionWords.Name = "colFissionWords";
this.colFissionWords.ReadOnly = true;
@@ -839,8 +942,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
//
// colAddTime
//
dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colAddTime.DefaultCellStyle = dataGridViewCellStyle10;
dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colAddTime.DefaultCellStyle = dataGridViewCellStyle12;
this.colAddTime.FillWeight = 60F;
this.colAddTime.HeaderText = "入库时间";
this.colAddTime.Name = "colAddTime";
@@ -894,82 +997,6 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.col_select_product.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.col_select_product.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
//
// ucSplitPage1
//
this.ucSplitPage1.CurrentPage = 1;
this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Right;
this.ucSplitPage1.IsShowPageSize = false;
this.ucSplitPage1.Location = new System.Drawing.Point(916, 0);
this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
this.ucSplitPage1.Name = "ucSplitPage1";
this.ucSplitPage1.Padding = new System.Windows.Forms.Padding(0, 0, 1, 0);
this.ucSplitPage1.PageSize = 50;
this.ucSplitPage1.Size = new System.Drawing.Size(362, 25);
this.ucSplitPage1.TabIndex = 6;
this.ucSplitPage1.TotalPage = 1;
//
// 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(1278, 25);
this.statusBar.TabIndex = 5;
//
// colCheck
//
this.colCheck.HeaderText = "选择";
this.colCheck.MinimumWidth = 6;
this.colCheck.Name = "colCheck";
this.colCheck.ReadOnly = true;
this.colCheck.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.colCheck.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
this.colCheck.Width = 30;
//
// colUserName
//
this.colUserName.HeaderText = "用户名称";
this.colUserName.MinimumWidth = 6;
this.colUserName.Name = "colUserName";
this.colUserName.ReadOnly = true;
this.colUserName.Width = 90;
//
// colSubUserName
//
this.colSubUserName.HeaderText = "子账户名称";
this.colSubUserName.Name = "colSubUserName";
this.colSubUserName.ReadOnly = true;
this.colSubUserName.Visible = false;
this.colSubUserName.Width = 150;
//
// colShopId
//
this.colShopId.HeaderText = "店铺Id";
this.colShopId.Name = "colShopId";
this.colShopId.ReadOnly = true;
//
// colShopName
//
this.colShopName.HeaderText = "店铺名称";
this.colShopName.Name = "colShopName";
this.colShopName.ReadOnly = true;
//
// colShopNotes
//
this.colShopNotes.HeaderText = "店铺备注";
this.colShopNotes.Name = "colShopNotes";
this.colShopNotes.ReadOnly = true;
//
// colJitStatus
//
this.colJitStatus.HeaderText = "JIT状态";
this.colJitStatus.Name = "colJitStatus";
this.colJitStatus.ReadOnly = true;
this.colJitStatus.Visible = false;
//
// DbProductListForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
@@ -1043,6 +1070,13 @@ namespace TemuKJD.KJDForms.ProductSelectForms
private DevComponents.DotNetBar.PanelEx btnBatchSelect;
private DevComponents.DotNetBar.PanelEx btnSearch;
private DevComponents.DotNetBar.PanelEx btnSelect;
private System.Windows.Forms.DataGridViewCheckBoxColumn colCheck;
private System.Windows.Forms.DataGridViewTextBoxColumn colUserName;
private System.Windows.Forms.DataGridViewTextBoxColumn colSubUserName;
private System.Windows.Forms.DataGridViewTextBoxColumn colShopId;
private System.Windows.Forms.DataGridViewTextBoxColumn colShopName;
private System.Windows.Forms.DataGridViewTextBoxColumn colShopNotes;
private System.Windows.Forms.DataGridViewTextBoxColumn colJitStatus;
private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect;
private System.Windows.Forms.DataGridViewTextBoxColumn col_db_id;
private System.Windows.Forms.DataGridViewTextBoxColumn col_spu_id;
@@ -1053,6 +1087,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
private System.Windows.Forms.DataGridViewTextBoxColumn col_cat_name;
private System.Windows.Forms.DataGridViewTextBoxColumn col_ext_code;
private System.Windows.Forms.DataGridViewTextBoxColumn colCostPrice;
private System.Windows.Forms.DataGridViewTextBoxColumn colDeliveryCharge;
private System.Windows.Forms.DataGridViewTextBoxColumn colStickMarkCharge;
private System.Windows.Forms.DataGridViewTextBoxColumn colProdGetType;
private System.Windows.Forms.DataGridViewTextBoxColumn colGroup;
private System.Windows.Forms.DataGridViewTextBoxColumn col_notes;
@@ -1066,12 +1102,5 @@ namespace TemuKJD.KJDForms.ProductSelectForms
private System.Windows.Forms.DataGridViewLinkColumn col_edit;
private System.Windows.Forms.DataGridViewLinkColumn col_delete;
private System.Windows.Forms.DataGridViewLinkColumn col_select_product;
private System.Windows.Forms.DataGridViewCheckBoxColumn colCheck;
private System.Windows.Forms.DataGridViewTextBoxColumn colUserName;
private System.Windows.Forms.DataGridViewTextBoxColumn colSubUserName;
private System.Windows.Forms.DataGridViewTextBoxColumn colShopId;
private System.Windows.Forms.DataGridViewTextBoxColumn colShopName;
private System.Windows.Forms.DataGridViewTextBoxColumn colShopNotes;
private System.Windows.Forms.DataGridViewTextBoxColumn colJitStatus;
}
}
@@ -2,6 +2,7 @@
using AllBase.Helper;
using AllBase.Model.Result;
using AllBase.Model.Result.TemuResult;
using NaiBa.Util;
using NaiBa.Util.Extension;
using Newtonsoft.Json.Linq;
using System;
@@ -33,6 +34,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
ShopLoginInfo shop = null; // 单店认领
List<ShopLoginInfo> lstAdminShopInfo = new List<ShopLoginInfo>(); // 服务端直传店铺列表
List<KJDDBProduct> lstTemuDbProduct = new List<KJDDBProduct>();
//ConcurrentList<KJDDBProduct> lstTemuDbProduct = new ConcurrentList<KJDDBProduct>();
public DbProductListForm()
{
@@ -56,6 +58,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.dgvDbProduct.Columns["colProdGetType"].Visible = false;
this.dgvDbProduct.Columns["colGroup"].Visible = false;
this.dgvDbProduct.Columns["colCostPrice"].Visible = false;
this.dgvDbProduct.Columns["colDeliveryCharge"].Visible = false;
this.dgvDbProduct.Columns["colStickMarkCharge"].Visible = false;
this.lblGroup.Visible = false;
this.cmbGroup.Visible = false;
this.btnImportHtml.Visible = false;
@@ -73,6 +77,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.dgvDbProduct.Columns["colProdGetType"].Visible = true; // 采集来源 母店采集 前端直采
this.dgvDbProduct.Columns["colGroup"].Visible = true; // 分组
this.dgvDbProduct.Columns["colCostPrice"].Visible = true; // 成本价
this.dgvDbProduct.Columns["colDeliveryCharge"].Visible = true; // 车队费
this.dgvDbProduct.Columns["colStickMarkCharge"].Visible = true; // 贴单费
this.lblGroup.Visible = true; // 分组
this.cmbGroup.Visible = true; // 分组
this.btnImportHtml.Visible = true; // 导入前端直采商品
@@ -86,12 +92,17 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.dgvDbProduct.Columns["colProdGetType"].Visible = true; // 采集来源 母店采集 前端直采
this.dgvDbProduct.Columns["colGroup"].Visible = true; // 分组
this.dgvDbProduct.Columns["colCostPrice"].Visible = true; // 成本价
this.dgvDbProduct.Columns["colDeliveryCharge"].Visible = true; // 车队费
this.dgvDbProduct.Columns["colStickMarkCharge"].Visible = true; // 贴单费
this.lblGroup.Visible = true; // 分组
this.cmbGroup.Visible = true; // 分组
}
if (IsClientJit)
{
this.dgvDbProduct.Columns["colSelectProd"].Visible = true; // 商品直传(不经过客户选品)
this.dgvDbProduct.Columns["colCostPrice"].Visible = true; // 成本价
this.dgvDbProduct.Columns["colDeliveryCharge"].Visible = true; // 车队费
this.dgvDbProduct.Columns["colStickMarkCharge"].Visible = true; // 贴单费
this.btnBatchSelect.Visible = true; // 批量直传
this.cmbGroup.Text = "jit分组";
this.dgvSelectShop.Columns["colJitStatus"].Visible = true;
@@ -181,6 +192,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
prod.cat_name,
prod.ext_code,
prod.cost_price,
prod.delivery_fee,
prod.mark_fee,
prod.product_get_type == 0 ? "母店采集" : "前端直采",
prod.group,
prod.notes,
@@ -367,6 +380,9 @@ namespace TemuKJD.KJDForms.ProductSelectForms
dgvDbProduct.Rows[e.RowIndex].Cells["colEndWords"].Value = dbProduct.end_words;
dgvDbProduct.Rows[e.RowIndex].Cells["colFissionWords"].Value = dbProduct.fission_words;
dgvDbProduct.Rows[e.RowIndex].Cells["col_product_name"].Value = dbProduct.product_name;
dgvDbProduct.Rows[e.RowIndex].Cells["colCostPrice"].Value = dbProduct.cost_price;
dgvDbProduct.Rows[e.RowIndex].Cells["colDeliveryCharge"].Value = dbProduct.delivery_fee;
dgvDbProduct.Rows[e.RowIndex].Cells["colStickMarkCharge"].Value = dbProduct.mark_fee;
if (dgvDbProduct.Rows[e.RowIndex].Cells["colGroup"].Value.ParseToString() != dbProduct.group.ParseToString())
{
dgvDbProduct.Rows[e.RowIndex].Cells["colGroup"].Value = dbProduct.group;
@@ -168,6 +168,12 @@
<metadata name="colCostPrice.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colDeliveryCharge.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colStickMarkCharge.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colProdGetType.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
@@ -247,7 +247,7 @@
//
this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
this.splitContainer1.Size = new System.Drawing.Size(1518, 638);
this.splitContainer1.SplitterDistance = 125;
this.splitContainer1.SplitterDistance = 120;
this.splitContainer1.TabIndex = 2;
//
// numMaxWaitSecond
@@ -392,7 +392,7 @@
this.lblSkuRandomLetterNotes.Name = "lblSkuRandomLetterNotes";
this.lblSkuRandomLetterNotes.Size = new System.Drawing.Size(150, 17);
this.lblSkuRandomLetterNotes.TabIndex = 641;
this.lblSkuRandomLetterNotes.Text = "备注:当前特殊字符包括--";
this.lblSkuRandomLetterNotes.Text = "备注:SKU随机字符包括…";
//
// btnAdd
//
@@ -747,7 +747,7 @@
//
// chkUploadProd
//
this.chkUploadProd.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.chkUploadProd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.chkUploadProd.Checked = true;
this.chkUploadProd.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkUploadProd.Location = new System.Drawing.Point(1343, 11);
@@ -1444,8 +1444,8 @@
//
this.splitContainer2.Panel2.Controls.Add(this.ucSplitPage1);
this.splitContainer2.Panel2.Controls.Add(this.statusBar);
this.splitContainer2.Size = new System.Drawing.Size(1518, 509);
this.splitContainer2.SplitterDistance = 480;
this.splitContainer2.Size = new System.Drawing.Size(1518, 514);
this.splitContainer2.SplitterDistance = 485;
this.splitContainer2.TabIndex = 0;
//
// pnlError
@@ -1481,7 +1481,7 @@
//
this.pbLoading.Anchor = System.Windows.Forms.AnchorStyles.None;
this.pbLoading.Image = global::TemuKJD.Properties.Resources.loading_blue;
this.pbLoading.Location = new System.Drawing.Point(734, 215);
this.pbLoading.Location = new System.Drawing.Point(734, 217);
this.pbLoading.Name = "pbLoading";
this.pbLoading.Size = new System.Drawing.Size(50, 50);
this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
@@ -1622,7 +1622,7 @@
this.dgvSelectProduct.ReadOnly = true;
this.dgvSelectProduct.RowHeadersWidth = 40;
this.dgvSelectProduct.RowTemplate.Height = 23;
this.dgvSelectProduct.Size = new System.Drawing.Size(1510, 480);
this.dgvSelectProduct.Size = new System.Drawing.Size(1510, 485);
this.dgvSelectProduct.TabIndex = 189;
this.dgvSelectProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvSelectProduct_CellContentClick);
this.dgvSelectProduct.Scroll += new System.Windows.Forms.ScrollEventHandler(this.dgvSelectProduct_Scroll);
@@ -1849,7 +1849,7 @@
//
this.ucSplitPage1.CurrentPage = 1;
this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Right;
this.ucSplitPage1.IsShowPageSize = true;
this.ucSplitPage1.IsShowPageSize = false;
this.ucSplitPage1.Location = new System.Drawing.Point(1118, 0);
this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
this.ucSplitPage1.Name = "ucSplitPage1";
@@ -139,6 +139,19 @@ namespace TemuKJD.KJDForms.ProductSelectForms
chkUploadProd.Visible = true;
flowLayoutPanel1.Visible = true;
ucSplitPage1.IsShowPageSize = true; // 可调整分页
ucSplitPage1.cmbPageSize.DropDownStyle = ComboBoxStyle.DropDownList;
if (BaseClass.SaLevel == 1)
{
ucSplitPage1.cmbPageSize.DropDownStyle = ComboBoxStyle.DropDown;
}
else
{
ucSplitPage1.cmbPageSize.Items.Remove("5000");
ucSplitPage1.cmbPageSize.Items.Remove("2000");
ucSplitPage1.cmbPageSize.Items.Remove("1000");
}
if (BaseClass.SaLevel == 1 && !IsClientJit)
{
dgvSelectProduct.Columns["colSubSaNick"].Visible = true;
@@ -160,6 +173,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
cmbUserNotes.Visible = false;
lblUserNotes.Visible = false;
colUserNotes.Visible = false;
ucSplitPage1.IsShowPageSize = true;
var columnStyles = tableLayoutPanel1.ColumnStyles.Cast<ColumnStyle>().ToList();
columnStyles[columnStyles.Count - 1].SizeType = SizeType.Absolute;
columnStyles[columnStyles.Count - 1].Width = 0;
@@ -179,7 +193,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
}
}
this.lblSkuRandomLetterNotes.Text = "备注:SKU特殊字符包括 " + string.Join(" ", skuRandomLetterArr) + " ";
this.lblSkuRandomLetterNotes.Text = "备注:SKU随机字符包括 " + string.Join(" ", skuRandomLetterArr) + " ";
}
private void ChkSel_CheckedChanged(object sender, EventArgs e)
@@ -475,7 +489,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
}
// 查看map映射列表
//return;
//var url = BaseClass.BuildObjString("product/get_select_product_map_draft_id_list");
//var url = BaseClass.BuildObjString("product/get_select_prod_db_id_map_draft_id_list");
//var data = UserLogin.GetSignaturex() + "&select_db_id=" + dbId;
//if (IsClientJit)
// data += "&is_client_jit=true";
@@ -132,6 +132,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
user.shop_count = BaseRegex.GetIntJson(ref oStr, "shop_count");
user.company_name = BaseRegex.GetStringJson(ref oStr, "company_name");
user.sa_level = BaseRegex.GetIntJson(ref oStr, "sa_level");
user.authorized_amount = BaseRegex.GetNullableDecimalJson(ref oStr, "authorized_amount");
lstSubSa.Add(user);
dgvSaUser.Rows.Add(