1服务功能 2用户商品备注并支持下拉框显示

This commit is contained in:
wule committed 2026-07-28 21:12:07 +08:00
1 parent bd3040efa3
commit b4ec400796
33 files changed
+2597 -551

No files matched your search

+234 -193
View File
@@ -32,19 +32,22 @@ namespace TemuKJD.WXForms.ProductForms
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
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.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle28 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle29 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle30 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle31 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle32 = new System.Windows.Forms.DataGridViewCellStyle();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
this.txtStockNum = new System.Windows.Forms.TextBox();
this.txtShippingPriceTimes = new System.Windows.Forms.TextBox();
this.txtAddTimes = new System.Windows.Forms.TextBox();
this.txtAddMorePrice = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.chkRemoveSpecialChar = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.txtShippingPriceTimes = new System.Windows.Forms.TextBox();
this.label13 = new System.Windows.Forms.Label();
this.btnStop = new DevComponents.DotNetBar.PanelEx();
this.label7 = new System.Windows.Forms.Label();
@@ -52,7 +55,6 @@ namespace TemuKJD.WXForms.ProductForms
this.chkAddMorePriceFirst = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.btnClearDgv = new DevComponents.DotNetBar.PanelEx();
this.label14 = new System.Windows.Forms.Label();
this.label15 = new System.Windows.Forms.Label();
this.pnlStep = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.fPnlPriceRule = new System.Windows.Forms.FlowLayoutPanel();
@@ -60,11 +62,8 @@ namespace TemuKJD.WXForms.ProductForms
this.ucAddPrice2 = new TemuKJD.PDDForms.ProductSelectForms.UcAddPrice();
this.lblNewAddPrice = new System.Windows.Forms.Label();
this.txtWaitSeconds = new System.Windows.Forms.TextBox();
this.txtAddMorePrice = new System.Windows.Forms.TextBox();
this.txtAddTimes = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.btnUpload = new DevComponents.DotNetBar.PanelEx();
this.txtStockNum = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.chkStepAddPrice = new TemuKJD.UserComponent.UcCheckBox(this.components);
@@ -101,6 +100,7 @@ namespace TemuKJD.WXForms.ProductForms
this.label22 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label39 = new System.Windows.Forms.Label();
this.chkSkipReplaceText = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.佣金上货 = new System.Windows.Forms.TabPage();
this.label31 = new System.Windows.Forms.Label();
this.txtCommissionChangeValue = new System.Windows.Forms.TextBox();
@@ -136,17 +136,19 @@ namespace TemuKJD.WXForms.ProductForms
this.chkRandomImgBorder = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.line1 = new DevComponents.DotNetBar.Controls.Line();
this.label37 = new System.Windows.Forms.Label();
this.label15 = new System.Windows.Forms.Label();
this.ucGroupBoxEx4 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
this.cmbNotes = new System.Windows.Forms.ComboBox();
this.cmbJstInitSet = new System.Windows.Forms.ComboBox();
this.pbSelectProd = new System.Windows.Forms.PictureBox();
this.chkSevenDays = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.chkSkipQualification = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.lblGoodsCount = new System.Windows.Forms.Label();
this.txtRandomFissionProductCount = new System.Windows.Forms.TextBox();
this.lblJstInitSet = new System.Windows.Forms.Label();
this.btnSwitchCatType = new DevComponents.DotNetBar.PanelEx();
this.cmbHot = new System.Windows.Forms.ComboBox();
this.btnProdDb = new DevComponents.DotNetBar.PanelEx();
this.chkWXComplateProd = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.txtAddCount = new System.Windows.Forms.TextBox();
this.txtSearchGoodsName = new System.Windows.Forms.TextBox();
this.cmbSourceType = new System.Windows.Forms.ComboBox();
@@ -170,7 +172,8 @@ namespace TemuKJD.WXForms.ProductForms
this.label19 = new System.Windows.Forms.Label();
this.chkRandomFissionProduct = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.lblWaitToUp = new System.Windows.Forms.Label();
this.lblJstInitSet = new System.Windows.Forms.Label();
this.chkWXComplateProd = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.lblNotes = new System.Windows.Forms.Label();
this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
this.cmbFilterShopGroup = new TemuKJD.UserComponent.UcComboBoxMutiSelect();
this.label24 = new System.Windows.Forms.Label();
@@ -303,9 +306,12 @@ namespace TemuKJD.WXForms.ProductForms
this.ucGroupBoxEx2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.ucGroupBoxEx2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.ucGroupBoxEx2.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
this.ucGroupBoxEx2.Controls.Add(this.txtStockNum);
this.ucGroupBoxEx2.Controls.Add(this.txtShippingPriceTimes);
this.ucGroupBoxEx2.Controls.Add(this.txtAddTimes);
this.ucGroupBoxEx2.Controls.Add(this.txtAddMorePrice);
this.ucGroupBoxEx2.Controls.Add(this.label6);
this.ucGroupBoxEx2.Controls.Add(this.chkRemoveSpecialChar);
this.ucGroupBoxEx2.Controls.Add(this.txtShippingPriceTimes);
this.ucGroupBoxEx2.Controls.Add(this.label13);
this.ucGroupBoxEx2.Controls.Add(this.btnStop);
this.ucGroupBoxEx2.Controls.Add(this.label7);
@@ -313,31 +319,71 @@ namespace TemuKJD.WXForms.ProductForms
this.ucGroupBoxEx2.Controls.Add(this.chkAddMorePriceFirst);
this.ucGroupBoxEx2.Controls.Add(this.btnClearDgv);
this.ucGroupBoxEx2.Controls.Add(this.label14);
this.ucGroupBoxEx2.Controls.Add(this.label15);
this.ucGroupBoxEx2.Controls.Add(this.pnlStep);
this.ucGroupBoxEx2.Controls.Add(this.lblNewAddPrice);
this.ucGroupBoxEx2.Controls.Add(this.txtWaitSeconds);
this.ucGroupBoxEx2.Controls.Add(this.txtAddMorePrice);
this.ucGroupBoxEx2.Controls.Add(this.txtAddTimes);
this.ucGroupBoxEx2.Controls.Add(this.label10);
this.ucGroupBoxEx2.Controls.Add(this.btnUpload);
this.ucGroupBoxEx2.Controls.Add(this.txtStockNum);
this.ucGroupBoxEx2.Controls.Add(this.label4);
this.ucGroupBoxEx2.Controls.Add(this.label9);
this.ucGroupBoxEx2.Controls.Add(this.chkStepAddPrice);
this.ucGroupBoxEx2.Controls.Add(this.ucTabControlMetro1);
this.ucGroupBoxEx2.Location = new System.Drawing.Point(595, 2);
this.ucGroupBoxEx2.Controls.Add(this.label15);
this.ucGroupBoxEx2.Location = new System.Drawing.Point(608, 2);
this.ucGroupBoxEx2.Name = "ucGroupBoxEx2";
this.ucGroupBoxEx2.Size = new System.Drawing.Size(1113, 165);
this.ucGroupBoxEx2.Size = new System.Drawing.Size(1100, 165);
this.ucGroupBoxEx2.TabIndex = 667;
this.ucGroupBoxEx2.TabStop = false;
this.ucGroupBoxEx2.Text = "商品上传";
//
// txtStockNum
//
this.txtStockNum.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.txtStockNum.Location = new System.Drawing.Point(378, 135);
this.txtStockNum.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtStockNum.Name = "txtStockNum";
this.txtStockNum.Size = new System.Drawing.Size(30, 23);
this.txtStockNum.TabIndex = 530;
this.txtStockNum.Text = "99";
this.txtStockNum.TextChanged += new System.EventHandler(this.txtAddPrice_TextChanged);
//
// txtShippingPriceTimes
//
this.txtShippingPriceTimes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.txtShippingPriceTimes.Location = new System.Drawing.Point(319, 135);
this.txtShippingPriceTimes.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtShippingPriceTimes.Name = "txtShippingPriceTimes";
this.txtShippingPriceTimes.Size = new System.Drawing.Size(28, 23);
this.txtShippingPriceTimes.TabIndex = 810;
this.txtShippingPriceTimes.Text = "1.5";
//
// txtAddTimes
//
this.txtAddTimes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.txtAddTimes.Location = new System.Drawing.Point(76, 135);
this.txtAddTimes.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtAddTimes.Name = "txtAddTimes";
this.txtAddTimes.Size = new System.Drawing.Size(28, 23);
this.txtAddTimes.TabIndex = 532;
this.txtAddTimes.Text = "1.3";
this.txtAddTimes.TextChanged += new System.EventHandler(this.txtAddPrice_TextChanged);
//
// txtAddMorePrice
//
this.txtAddMorePrice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.txtAddMorePrice.Location = new System.Drawing.Point(144, 135);
this.txtAddMorePrice.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtAddMorePrice.Name = "txtAddMorePrice";
this.txtAddMorePrice.Size = new System.Drawing.Size(28, 23);
this.txtAddMorePrice.TabIndex = 535;
this.txtAddMorePrice.Text = "1.0";
this.txtAddMorePrice.TextChanged += new System.EventHandler(this.txtAddPrice_TextChanged);
//
// label6
//
this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(939, 15);
this.label6.Location = new System.Drawing.Point(930, 15);
this.label6.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(56, 17);
@@ -350,28 +396,18 @@ namespace TemuKJD.WXForms.ProductForms
this.chkRemoveSpecialChar.AutoSize = true;
this.chkRemoveSpecialChar.Checked = true;
this.chkRemoveSpecialChar.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkRemoveSpecialChar.Location = new System.Drawing.Point(797, 13);
this.chkRemoveSpecialChar.Location = new System.Drawing.Point(788, 13);
this.chkRemoveSpecialChar.Name = "chkRemoveSpecialChar";
this.chkRemoveSpecialChar.Size = new System.Drawing.Size(147, 21);
this.chkRemoveSpecialChar.TabIndex = 896;
this.chkRemoveSpecialChar.Text = "移除标题前部特殊符号";
this.chkRemoveSpecialChar.UseVisualStyleBackColor = true;
//
// txtShippingPriceTimes
//
this.txtShippingPriceTimes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.txtShippingPriceTimes.Location = new System.Drawing.Point(327, 135);
this.txtShippingPriceTimes.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtShippingPriceTimes.Name = "txtShippingPriceTimes";
this.txtShippingPriceTimes.Size = new System.Drawing.Size(30, 23);
this.txtShippingPriceTimes.TabIndex = 810;
this.txtShippingPriceTimes.Text = "1.5";
//
// label13
//
this.label13.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(290, 138);
this.label13.Location = new System.Drawing.Point(282, 138);
this.label13.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(41, 17);
@@ -384,10 +420,10 @@ namespace TemuKJD.WXForms.ProductForms
this.btnStop.CanvasColor = System.Drawing.SystemColors.Control;
this.btnStop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnStop.DisabledBackColor = System.Drawing.Color.Empty;
this.btnStop.Location = new System.Drawing.Point(1041, 44);
this.btnStop.Location = new System.Drawing.Point(1032, 44);
this.btnStop.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2);
this.btnStop.Name = "btnStop";
this.btnStop.Size = new System.Drawing.Size(64, 23);
this.btnStop.Size = new System.Drawing.Size(60, 23);
this.btnStop.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnStop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnStop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
@@ -408,7 +444,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(1019, 15);
this.label7.Location = new System.Drawing.Point(1010, 15);
this.label7.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(20, 17);
@@ -420,7 +456,7 @@ namespace TemuKJD.WXForms.ProductForms
this.chkRandomCompanyProd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.chkRandomCompanyProd.Checked = true;
this.chkRandomCompanyProd.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkRandomCompanyProd.Location = new System.Drawing.Point(699, 13);
this.chkRandomCompanyProd.Location = new System.Drawing.Point(690, 13);
this.chkRandomCompanyProd.Name = "chkRandomCompanyProd";
this.chkRandomCompanyProd.Size = new System.Drawing.Size(87, 21);
this.chkRandomCompanyProd.TabIndex = 889;
@@ -432,7 +468,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.chkAddMorePriceFirst.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.chkAddMorePriceFirst.AutoSize = true;
this.chkAddMorePriceFirst.Location = new System.Drawing.Point(197, 136);
this.chkAddMorePriceFirst.Location = new System.Drawing.Point(190, 136);
this.chkAddMorePriceFirst.Name = "chkAddMorePriceFirst";
this.chkAddMorePriceFirst.Size = new System.Drawing.Size(99, 21);
this.chkAddMorePriceFirst.TabIndex = 625;
@@ -446,10 +482,10 @@ namespace TemuKJD.WXForms.ProductForms
this.btnClearDgv.CanvasColor = System.Drawing.SystemColors.Control;
this.btnClearDgv.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnClearDgv.DisabledBackColor = System.Drawing.Color.Empty;
this.btnClearDgv.Location = new System.Drawing.Point(1041, 72);
this.btnClearDgv.Location = new System.Drawing.Point(1032, 72);
this.btnClearDgv.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2);
this.btnClearDgv.Name = "btnClearDgv";
this.btnClearDgv.Size = new System.Drawing.Size(64, 23);
this.btnClearDgv.Size = new System.Drawing.Size(60, 23);
this.btnClearDgv.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnClearDgv.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnClearDgv.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
@@ -478,17 +514,6 @@ namespace TemuKJD.WXForms.ProductForms
this.label14.TabIndex = 599;
this.label14.Text = "阶梯加价未\r\n勾选或条件\r\n不满足,按";
//
// label15
//
this.label15.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label15.AutoSize = true;
this.label15.Location = new System.Drawing.Point(178, 138);
this.label15.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(20, 17);
this.label15.TabIndex = 588;
this.label15.Text = "元";
//
// pnlStep
//
this.pnlStep.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
@@ -497,7 +522,7 @@ namespace TemuKJD.WXForms.ProductForms
this.pnlStep.Controls.Add(this.panel3);
this.pnlStep.Location = new System.Drawing.Point(76, 17);
this.pnlStep.Name = "pnlStep";
this.pnlStep.Size = new System.Drawing.Size(342, 114);
this.pnlStep.Size = new System.Drawing.Size(332, 114);
this.pnlStep.TabIndex = 577;
//
// panel3
@@ -510,7 +535,7 @@ namespace TemuKJD.WXForms.ProductForms
this.panel3.Controls.Add(this.fPnlPriceRule);
this.panel3.Location = new System.Drawing.Point(1, 1);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(340, 112);
this.panel3.Size = new System.Drawing.Size(330, 112);
this.panel3.TabIndex = 541;
//
// fPnlPriceRule
@@ -522,7 +547,7 @@ namespace TemuKJD.WXForms.ProductForms
this.fPnlPriceRule.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
this.fPnlPriceRule.Location = new System.Drawing.Point(0, 0);
this.fPnlPriceRule.Name = "fPnlPriceRule";
this.fPnlPriceRule.Size = new System.Drawing.Size(426, 58);
this.fPnlPriceRule.Size = new System.Drawing.Size(416, 58);
this.fPnlPriceRule.TabIndex = 7;
//
// ucAddPrice1
@@ -559,7 +584,7 @@ namespace TemuKJD.WXForms.ProductForms
0,
0,
0});
this.ucAddPrice1.Size = new System.Drawing.Size(420, 23);
this.ucAddPrice1.Size = new System.Drawing.Size(410, 23);
this.ucAddPrice1.TabIndex = 12;
//
// ucAddPrice2
@@ -596,7 +621,7 @@ namespace TemuKJD.WXForms.ProductForms
0,
0,
0});
this.ucAddPrice2.Size = new System.Drawing.Size(420, 23);
this.ucAddPrice2.Size = new System.Drawing.Size(410, 23);
this.ucAddPrice2.TabIndex = 13;
//
// lblNewAddPrice
@@ -615,7 +640,7 @@ namespace TemuKJD.WXForms.ProductForms
// txtWaitSeconds
//
this.txtWaitSeconds.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.txtWaitSeconds.Location = new System.Drawing.Point(995, 12);
this.txtWaitSeconds.Location = new System.Drawing.Point(986, 12);
this.txtWaitSeconds.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtWaitSeconds.Name = "txtWaitSeconds";
this.txtWaitSeconds.Size = new System.Drawing.Size(24, 23);
@@ -623,33 +648,11 @@ namespace TemuKJD.WXForms.ProductForms
this.txtWaitSeconds.Text = "10";
this.txtWaitSeconds.TextChanged += new System.EventHandler(this.txtWaitSeconds_TextChanged);
//
// txtAddMorePrice
//
this.txtAddMorePrice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.txtAddMorePrice.Location = new System.Drawing.Point(148, 135);
this.txtAddMorePrice.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtAddMorePrice.Name = "txtAddMorePrice";
this.txtAddMorePrice.Size = new System.Drawing.Size(30, 23);
this.txtAddMorePrice.TabIndex = 535;
this.txtAddMorePrice.Text = "1.0";
this.txtAddMorePrice.TextChanged += new System.EventHandler(this.txtAddPrice_TextChanged);
//
// txtAddTimes
//
this.txtAddTimes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.txtAddTimes.Location = new System.Drawing.Point(76, 135);
this.txtAddTimes.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtAddTimes.Name = "txtAddTimes";
this.txtAddTimes.Size = new System.Drawing.Size(30, 23);
this.txtAddTimes.TabIndex = 532;
this.txtAddTimes.Text = "1.3";
this.txtAddTimes.TextChanged += new System.EventHandler(this.txtAddPrice_TextChanged);
//
// label10
//
this.label10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(106, 138);
this.label10.Location = new System.Drawing.Point(103, 138);
this.label10.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(44, 17);
@@ -663,9 +666,9 @@ namespace TemuKJD.WXForms.ProductForms
this.btnUpload.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnUpload.DisabledBackColor = System.Drawing.Color.Empty;
this.btnUpload.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnUpload.Location = new System.Drawing.Point(1041, 16);
this.btnUpload.Location = new System.Drawing.Point(1032, 16);
this.btnUpload.Name = "btnUpload";
this.btnUpload.Size = new System.Drawing.Size(64, 23);
this.btnUpload.Size = new System.Drawing.Size(60, 23);
this.btnUpload.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnUpload.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnUpload.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
@@ -681,22 +684,11 @@ namespace TemuKJD.WXForms.ProductForms
this.btnUpload.Text = "批量上传";
this.btnUpload.Click += new System.EventHandler(this.btnUpload_Click);
//
// txtStockNum
//
this.txtStockNum.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.txtStockNum.Location = new System.Drawing.Point(388, 135);
this.txtStockNum.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtStockNum.Name = "txtStockNum";
this.txtStockNum.Size = new System.Drawing.Size(30, 23);
this.txtStockNum.TabIndex = 530;
this.txtStockNum.Text = "99";
this.txtStockNum.TextChanged += new System.EventHandler(this.txtAddPrice_TextChanged);
//
// label4
//
this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(357, 138);
this.label4.Location = new System.Drawing.Point(348, 138);
this.label4.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(32, 17);
@@ -736,11 +728,11 @@ namespace TemuKJD.WXForms.ProductForms
this.ucTabControlMetro1.Controls.Add(this.佣金上货);
this.ucTabControlMetro1.Controls.Add(this.裂变调试);
this.ucTabControlMetro1.ItemSize = new System.Drawing.Size(72, 24);
this.ucTabControlMetro1.Location = new System.Drawing.Point(421, 11);
this.ucTabControlMetro1.Location = new System.Drawing.Point(411, 11);
this.ucTabControlMetro1.Name = "ucTabControlMetro1";
this.ucTabControlMetro1.SelectedIndex = 0;
this.ucTabControlMetro1.ShowCloseButton = false;
this.ucTabControlMetro1.Size = new System.Drawing.Size(617, 150);
this.ucTabControlMetro1.Size = new System.Drawing.Size(619, 150);
this.ucTabControlMetro1.TabIndex = 822;
this.ucTabControlMetro1.TabSelectColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.ucTabControlMetro1.TabSelectTextColor = System.Drawing.Color.Gray;
@@ -779,10 +771,11 @@ namespace TemuKJD.WXForms.ProductForms
this.上传参数.Controls.Add(this.label22);
this.上传参数.Controls.Add(this.label3);
this.上传参数.Controls.Add(this.label39);
this.上传参数.Controls.Add(this.chkSkipReplaceText);
this.上传参数.Location = new System.Drawing.Point(4, 28);
this.上传参数.Name = "上传参数";
this.上传参数.Padding = new System.Windows.Forms.Padding(3);
this.上传参数.Size = new System.Drawing.Size(609, 118);
this.上传参数.Size = new System.Drawing.Size(611, 118);
this.上传参数.TabIndex = 1;
this.上传参数.Text = "上传参数";
this.上传参数.UseVisualStyleBackColor = true;
@@ -835,7 +828,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.chkUseRecommand.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.chkUseRecommand.AutoSize = true;
this.chkUseRecommand.Location = new System.Drawing.Point(490, 51);
this.chkUseRecommand.Location = new System.Drawing.Point(492, 51);
this.chkUseRecommand.Name = "chkUseRecommand";
this.chkUseRecommand.Size = new System.Drawing.Size(123, 21);
this.chkUseRecommand.TabIndex = 907;
@@ -922,7 +915,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.chkUpDraft.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.chkUpDraft.AutoSize = true;
this.chkUpDraft.Location = new System.Drawing.Point(490, 72);
this.chkUpDraft.Location = new System.Drawing.Point(492, 72);
this.chkUpDraft.Name = "chkUpDraft";
this.chkUpDraft.Size = new System.Drawing.Size(87, 21);
this.chkUpDraft.TabIndex = 769;
@@ -985,7 +978,7 @@ namespace TemuKJD.WXForms.ProductForms
this.txtReplaceText.MaxLength = 1000000;
this.txtReplaceText.Multiline = true;
this.txtReplaceText.Name = "txtReplaceText";
this.txtReplaceText.Size = new System.Drawing.Size(420, 40);
this.txtReplaceText.Size = new System.Drawing.Size(422, 40);
this.txtReplaceText.TabIndex = 740;
this.txtReplaceText.Text = "真丝,蚕丝,香云纱,羊绒,羊毛,羊羔绒,羊羔毛,羽绒,皮草";
this.txtReplaceText.TextChanged += new System.EventHandler(this.txtReplaceText_TextChanged);
@@ -1123,7 +1116,7 @@ namespace TemuKJD.WXForms.ProductForms
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(1, 52);
this.label3.Location = new System.Drawing.Point(1, 53);
this.label3.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(68, 17);
@@ -1140,6 +1133,17 @@ namespace TemuKJD.WXForms.ProductForms
this.label39.TabIndex = 911;
this.label39.Text = "或>";
//
// chkSkipReplaceText
//
this.chkSkipReplaceText.AutoSize = true;
this.chkSkipReplaceText.Location = new System.Drawing.Point(0, 70);
this.chkSkipReplaceText.Name = "chkSkipReplaceText";
this.chkSkipReplaceText.Size = new System.Drawing.Size(75, 21);
this.chkSkipReplaceText.TabIndex = 921;
this.chkSkipReplaceText.Text = "跳过商品";
this.chkSkipReplaceText.UseVisualStyleBackColor = true;
this.chkSkipReplaceText.CheckedChanged += new System.EventHandler(this.chkSkipReplaceText_CheckedChanged);
//
// 佣金上货
//
this.佣金上货.Controls.Add(this.label31);
@@ -1157,7 +1161,7 @@ namespace TemuKJD.WXForms.ProductForms
this.佣金上货.Location = new System.Drawing.Point(4, 28);
this.佣金上货.Name = "佣金上货";
this.佣金上货.Padding = new System.Windows.Forms.Padding(3);
this.佣金上货.Size = new System.Drawing.Size(609, 118);
this.佣金上货.Size = new System.Drawing.Size(611, 118);
this.佣金上货.TabIndex = 2;
this.佣金上货.Text = "佣金上货";
this.佣金上货.UseVisualStyleBackColor = true;
@@ -1325,7 +1329,7 @@ namespace TemuKJD.WXForms.ProductForms
this.裂变调试.Location = new System.Drawing.Point(4, 28);
this.裂变调试.Name = "裂变调试";
this.裂变调试.Padding = new System.Windows.Forms.Padding(3);
this.裂变调试.Size = new System.Drawing.Size(609, 118);
this.裂变调试.Size = new System.Drawing.Size(611, 118);
this.裂变调试.TabIndex = 3;
this.裂变调试.Text = "裂变调试";
this.裂变调试.UseVisualStyleBackColor = true;
@@ -1339,7 +1343,7 @@ namespace TemuKJD.WXForms.ProductForms
this.txtFissionTitle.Multiline = true;
this.txtFissionTitle.Name = "txtFissionTitle";
this.txtFissionTitle.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.txtFissionTitle.Size = new System.Drawing.Size(522, 79);
this.txtFissionTitle.Size = new System.Drawing.Size(524, 79);
this.txtFissionTitle.TabIndex = 0;
this.txtFissionTitle.TextChanged += new System.EventHandler(this.txtFissionTitle_TextChanged);
//
@@ -1454,7 +1458,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.label32.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.label32.AutoSize = true;
this.label32.Location = new System.Drawing.Point(575, 57);
this.label32.Location = new System.Drawing.Point(577, 57);
this.label32.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label32.Name = "label32";
this.label32.Size = new System.Drawing.Size(20, 17);
@@ -1465,7 +1469,7 @@ namespace TemuKJD.WXForms.ProductForms
// txtAiImgCount
//
this.txtAiImgCount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.txtAiImgCount.Location = new System.Drawing.Point(550, 54);
this.txtAiImgCount.Location = new System.Drawing.Point(552, 54);
this.txtAiImgCount.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtAiImgCount.Name = "txtAiImgCount";
this.txtAiImgCount.Size = new System.Drawing.Size(24, 23);
@@ -1477,7 +1481,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.chkAiImage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.chkAiImage.AutoSize = true;
this.chkAiImage.Location = new System.Drawing.Point(481, 55);
this.chkAiImage.Location = new System.Drawing.Point(483, 55);
this.chkAiImage.Name = "chkAiImage";
this.chkAiImage.Size = new System.Drawing.Size(74, 21);
this.chkAiImage.TabIndex = 892;
@@ -1558,22 +1562,34 @@ namespace TemuKJD.WXForms.ProductForms
this.label37.TabIndex = 907;
this.label37.Text = "元";
//
// label15
//
this.label15.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label15.AutoSize = true;
this.label15.Location = new System.Drawing.Point(171, 138);
this.label15.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(20, 17);
this.label15.TabIndex = 588;
this.label15.Text = "元";
//
// ucGroupBoxEx4
//
this.ucGroupBoxEx4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
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.cmbNotes);
this.ucGroupBoxEx4.Controls.Add(this.cmbJstInitSet);
this.ucGroupBoxEx4.Controls.Add(this.pbSelectProd);
this.ucGroupBoxEx4.Controls.Add(this.chkSevenDays);
this.ucGroupBoxEx4.Controls.Add(this.chkSkipQualification);
this.ucGroupBoxEx4.Controls.Add(this.lblGoodsCount);
this.ucGroupBoxEx4.Controls.Add(this.txtRandomFissionProductCount);
this.ucGroupBoxEx4.Controls.Add(this.lblJstInitSet);
this.ucGroupBoxEx4.Controls.Add(this.btnSwitchCatType);
this.ucGroupBoxEx4.Controls.Add(this.cmbHot);
this.ucGroupBoxEx4.Controls.Add(this.btnProdDb);
this.ucGroupBoxEx4.Controls.Add(this.chkWXComplateProd);
this.ucGroupBoxEx4.Controls.Add(this.txtAddCount);
this.ucGroupBoxEx4.Controls.Add(this.txtSearchGoodsName);
this.ucGroupBoxEx4.Controls.Add(this.cmbSourceType);
@@ -1597,14 +1613,24 @@ namespace TemuKJD.WXForms.ProductForms
this.ucGroupBoxEx4.Controls.Add(this.label19);
this.ucGroupBoxEx4.Controls.Add(this.chkRandomFissionProduct);
this.ucGroupBoxEx4.Controls.Add(this.lblWaitToUp);
this.ucGroupBoxEx4.Controls.Add(this.lblJstInitSet);
this.ucGroupBoxEx4.Controls.Add(this.chkWXComplateProd);
this.ucGroupBoxEx4.Controls.Add(this.lblNotes);
this.ucGroupBoxEx4.Location = new System.Drawing.Point(186, 2);
this.ucGroupBoxEx4.Name = "ucGroupBoxEx4";
this.ucGroupBoxEx4.Size = new System.Drawing.Size(410, 165);
this.ucGroupBoxEx4.Size = new System.Drawing.Size(423, 165);
this.ucGroupBoxEx4.TabIndex = 666;
this.ucGroupBoxEx4.TabStop = false;
this.ucGroupBoxEx4.Text = "待传商品";
//
// cmbNotes
//
this.cmbNotes.FormattingEnabled = true;
this.cmbNotes.Location = new System.Drawing.Point(322, 46);
this.cmbNotes.Name = "cmbNotes";
this.cmbNotes.Size = new System.Drawing.Size(96, 25);
this.cmbNotes.TabIndex = 823;
this.cmbNotes.Visible = false;
//
// cmbJstInitSet
//
this.cmbJstInitSet.FormattingEnabled = true;
@@ -1612,7 +1638,7 @@ namespace TemuKJD.WXForms.ProductForms
"",
"是",
"否"});
this.cmbJstInitSet.Location = new System.Drawing.Point(228, 132);
this.cmbJstInitSet.Location = new System.Drawing.Point(242, 132);
this.cmbJstInitSet.Name = "cmbJstInitSet";
this.cmbJstInitSet.Size = new System.Drawing.Size(33, 25);
this.cmbJstInitSet.TabIndex = 697;
@@ -1667,7 +1693,7 @@ namespace TemuKJD.WXForms.ProductForms
this.txtRandomFissionProductCount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.txtRandomFissionProductCount.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.txtRandomFissionProductCount.Font = new System.Drawing.Font("微软雅黑", 10F);
this.txtRandomFissionProductCount.Location = new System.Drawing.Point(244, 100);
this.txtRandomFissionProductCount.Location = new System.Drawing.Point(253, 100);
this.txtRandomFissionProductCount.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtRandomFissionProductCount.Name = "txtRandomFissionProductCount";
this.txtRandomFissionProductCount.Size = new System.Drawing.Size(32, 25);
@@ -1675,6 +1701,18 @@ namespace TemuKJD.WXForms.ProductForms
this.txtRandomFissionProductCount.Text = "100";
this.txtRandomFissionProductCount.Visible = false;
//
// lblJstInitSet
//
this.lblJstInitSet.AutoSize = true;
this.lblJstInitSet.BackColor = System.Drawing.Color.Transparent;
this.lblJstInitSet.Location = new System.Drawing.Point(214, 136);
this.lblJstInitSet.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.lblJstInitSet.Name = "lblJstInitSet";
this.lblJstInitSet.Size = new System.Drawing.Size(32, 17);
this.lblJstInitSet.TabIndex = 696;
this.lblJstInitSet.Text = "分销";
this.lblJstInitSet.Visible = false;
//
// btnSwitchCatType
//
this.btnSwitchCatType.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
@@ -1706,9 +1744,9 @@ namespace TemuKJD.WXForms.ProductForms
"",
"爆款数据",
"普通商品"});
this.cmbHot.Location = new System.Drawing.Point(312, 73);
this.cmbHot.Location = new System.Drawing.Point(322, 73);
this.cmbHot.Name = "cmbHot";
this.cmbHot.Size = new System.Drawing.Size(92, 25);
this.cmbHot.Size = new System.Drawing.Size(96, 25);
this.cmbHot.TabIndex = 837;
this.cmbHot.Text = "普通商品";
this.cmbHot.Visible = false;
@@ -1721,7 +1759,7 @@ namespace TemuKJD.WXForms.ProductForms
this.btnProdDb.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnProdDb.DisabledBackColor = System.Drawing.Color.Empty;
this.btnProdDb.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnProdDb.Location = new System.Drawing.Point(373, 132);
this.btnProdDb.Location = new System.Drawing.Point(387, 132);
this.btnProdDb.Name = "btnProdDb";
this.btnProdDb.Size = new System.Drawing.Size(31, 25);
this.btnProdDb.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -1739,21 +1777,11 @@ namespace TemuKJD.WXForms.ProductForms
this.btnProdDb.Text = "选品";
this.btnProdDb.Click += new System.EventHandler(this.btnProdDb_Click);
//
// chkWXComplateProd
//
this.chkWXComplateProd.Location = new System.Drawing.Point(283, 102);
this.chkWXComplateProd.Name = "chkWXComplateProd";
this.chkWXComplateProd.Size = new System.Drawing.Size(87, 21);
this.chkWXComplateProd.TabIndex = 807;
this.chkWXComplateProd.Text = "微信回采商品";
this.chkWXComplateProd.UseVisualStyleBackColor = true;
this.chkWXComplateProd.Visible = false;
//
// txtAddCount
//
this.txtAddCount.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.txtAddCount.Font = new System.Drawing.Font("微软雅黑", 10F);
this.txtAddCount.Location = new System.Drawing.Point(296, 132);
this.txtAddCount.Location = new System.Drawing.Point(310, 132);
this.txtAddCount.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtAddCount.Name = "txtAddCount";
this.txtAddCount.Size = new System.Drawing.Size(29, 25);
@@ -1764,10 +1792,10 @@ namespace TemuKJD.WXForms.ProductForms
//
this.txtSearchGoodsName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.txtSearchGoodsName.Font = new System.Drawing.Font("微软雅黑", 10F);
this.txtSearchGoodsName.Location = new System.Drawing.Point(184, 46);
this.txtSearchGoodsName.Location = new System.Drawing.Point(189, 46);
this.txtSearchGoodsName.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtSearchGoodsName.Name = "txtSearchGoodsName";
this.txtSearchGoodsName.Size = new System.Drawing.Size(220, 25);
this.txtSearchGoodsName.Size = new System.Drawing.Size(96, 25);
this.txtSearchGoodsName.TabIndex = 795;
//
// cmbSourceType
@@ -1786,7 +1814,7 @@ namespace TemuKJD.WXForms.ProductForms
"多多外部数据"});
this.cmbSourceType.Location = new System.Drawing.Point(56, 73);
this.cmbSourceType.Name = "cmbSourceType";
this.cmbSourceType.Size = new System.Drawing.Size(92, 25);
this.cmbSourceType.Size = new System.Drawing.Size(96, 25);
this.cmbSourceType.TabIndex = 673;
this.cmbSourceType.Text = "厂商直采";
this.cmbSourceType.Visible = false;
@@ -1800,9 +1828,9 @@ namespace TemuKJD.WXForms.ProductForms
this.cmbCateFilter3.DropDownWidth = 1;
this.cmbCateFilter3.FormattingEnabled = true;
this.cmbCateFilter3.IntegralHeight = false;
this.cmbCateFilter3.Location = new System.Drawing.Point(312, 19);
this.cmbCateFilter3.Location = new System.Drawing.Point(322, 19);
this.cmbCateFilter3.Name = "cmbCateFilter3";
this.cmbCateFilter3.Size = new System.Drawing.Size(92, 25);
this.cmbCateFilter3.Size = new System.Drawing.Size(96, 25);
this.cmbCateFilter3.TabIndex = 710;
this.cmbCateFilter3.Text = "全部";
this.cmbCateFilter3.SelectedIndexChanged += new System.EventHandler(this.cmbCateFilter3_SelectedIndexChanged);
@@ -1811,7 +1839,7 @@ namespace TemuKJD.WXForms.ProductForms
// label21
//
this.label21.AutoSize = true;
this.label21.Location = new System.Drawing.Point(276, 23);
this.label21.Location = new System.Drawing.Point(286, 23);
this.label21.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label21.Name = "label21";
this.label21.Size = new System.Drawing.Size(39, 17);
@@ -1821,9 +1849,9 @@ namespace TemuKJD.WXForms.ProductForms
// cmbGroupFilter
//
this.cmbGroupFilter.FormattingEnabled = true;
this.cmbGroupFilter.Location = new System.Drawing.Point(184, 73);
this.cmbGroupFilter.Location = new System.Drawing.Point(189, 73);
this.cmbGroupFilter.Name = "cmbGroupFilter";
this.cmbGroupFilter.Size = new System.Drawing.Size(92, 25);
this.cmbGroupFilter.Size = new System.Drawing.Size(96, 25);
this.cmbGroupFilter.TabIndex = 641;
this.cmbGroupFilter.Visible = false;
this.cmbGroupFilter.SelectedIndexChanged += new System.EventHandler(this.cmbGroupFilter_SelectedIndexChanged);
@@ -1835,7 +1863,7 @@ namespace TemuKJD.WXForms.ProductForms
this.txtIdFilter.Location = new System.Drawing.Point(56, 100);
this.txtIdFilter.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtIdFilter.Name = "txtIdFilter";
this.txtIdFilter.Size = new System.Drawing.Size(92, 25);
this.txtIdFilter.Size = new System.Drawing.Size(96, 25);
this.txtIdFilter.TabIndex = 652;
this.txtIdFilter.Visible = false;
//
@@ -1846,9 +1874,9 @@ namespace TemuKJD.WXForms.ProductForms
this.cmbCateFilter2.DropDownWidth = 1;
this.cmbCateFilter2.FormattingEnabled = true;
this.cmbCateFilter2.IntegralHeight = false;
this.cmbCateFilter2.Location = new System.Drawing.Point(184, 19);
this.cmbCateFilter2.Location = new System.Drawing.Point(189, 19);
this.cmbCateFilter2.Name = "cmbCateFilter2";
this.cmbCateFilter2.Size = new System.Drawing.Size(92, 25);
this.cmbCateFilter2.Size = new System.Drawing.Size(96, 25);
this.cmbCateFilter2.TabIndex = 708;
this.cmbCateFilter2.Text = "全部";
this.cmbCateFilter2.SelectedIndexChanged += new System.EventHandler(this.cmbCateFilter2_SelectedIndexChanged);
@@ -1860,7 +1888,7 @@ namespace TemuKJD.WXForms.ProductForms
this.btnClearFilter.CanvasColor = System.Drawing.SystemColors.Control;
this.btnClearFilter.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnClearFilter.DisabledBackColor = System.Drawing.Color.Empty;
this.btnClearFilter.Location = new System.Drawing.Point(373, 100);
this.btnClearFilter.Location = new System.Drawing.Point(387, 100);
this.btnClearFilter.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2);
this.btnClearFilter.Name = "btnClearFilter";
this.btnClearFilter.Size = new System.Drawing.Size(31, 25);
@@ -1889,7 +1917,7 @@ namespace TemuKJD.WXForms.ProductForms
"未校验"});
this.cmbWxSafe.Location = new System.Drawing.Point(56, 46);
this.cmbWxSafe.Name = "cmbWxSafe";
this.cmbWxSafe.Size = new System.Drawing.Size(92, 25);
this.cmbWxSafe.Size = new System.Drawing.Size(96, 25);
this.cmbWxSafe.TabIndex = 675;
this.cmbWxSafe.Text = "安全+未校验";
//
@@ -1899,7 +1927,7 @@ namespace TemuKJD.WXForms.ProductForms
this.btnClearUpload.CanvasColor = System.Drawing.SystemColors.Control;
this.btnClearUpload.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnClearUpload.DisabledBackColor = System.Drawing.Color.Empty;
this.btnClearUpload.Location = new System.Drawing.Point(263, 132);
this.btnClearUpload.Location = new System.Drawing.Point(277, 132);
this.btnClearUpload.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2);
this.btnClearUpload.Name = "btnClearUpload";
this.btnClearUpload.Size = new System.Drawing.Size(31, 25);
@@ -1928,7 +1956,7 @@ namespace TemuKJD.WXForms.ProductForms
this.cmbCateFilter1.IntegralHeight = false;
this.cmbCateFilter1.Location = new System.Drawing.Point(56, 19);
this.cmbCateFilter1.Name = "cmbCateFilter1";
this.cmbCateFilter1.Size = new System.Drawing.Size(92, 25);
this.cmbCateFilter1.Size = new System.Drawing.Size(96, 25);
this.cmbCateFilter1.TabIndex = 663;
this.cmbCateFilter1.Text = "全部";
this.cmbCateFilter1.SelectedIndexChanged += new System.EventHandler(this.cmbCateFilter1_SelectedIndexChanged);
@@ -1950,7 +1978,7 @@ namespace TemuKJD.WXForms.ProductForms
this.btnRandomAdd.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnRandomAdd.DisabledBackColor = System.Drawing.Color.Empty;
this.btnRandomAdd.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnRandomAdd.Location = new System.Drawing.Point(327, 132);
this.btnRandomAdd.Location = new System.Drawing.Point(341, 132);
this.btnRandomAdd.Name = "btnRandomAdd";
this.btnRandomAdd.Size = new System.Drawing.Size(44, 25);
this.btnRandomAdd.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -1965,7 +1993,7 @@ namespace TemuKJD.WXForms.ProductForms
this.btnRandomAdd.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnRandomAdd.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnRandomAdd.TabIndex = 431;
this.btnRandomAdd.Text = "随机选";
this.btnRandomAdd.Text = "随机";
this.btnRandomAdd.Click += new System.EventHandler(this.btnRandomAdd_Click);
//
// lblSourceType
@@ -1982,7 +2010,7 @@ namespace TemuKJD.WXForms.ProductForms
// lblGroupFilter
//
this.lblGroupFilter.AutoSize = true;
this.lblGroupFilter.Location = new System.Drawing.Point(155, 77);
this.lblGroupFilter.Location = new System.Drawing.Point(160, 77);
this.lblGroupFilter.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.lblGroupFilter.Name = "lblGroupFilter";
this.lblGroupFilter.Size = new System.Drawing.Size(32, 17);
@@ -2003,7 +2031,7 @@ namespace TemuKJD.WXForms.ProductForms
// label20
//
this.label20.AutoSize = true;
this.label20.Location = new System.Drawing.Point(155, 50);
this.label20.Location = new System.Drawing.Point(160, 50);
this.label20.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label20.Name = "label20";
this.label20.Size = new System.Drawing.Size(32, 17);
@@ -2024,7 +2052,7 @@ namespace TemuKJD.WXForms.ProductForms
// lblHot
//
this.lblHot.AutoSize = true;
this.lblHot.Location = new System.Drawing.Point(283, 77);
this.lblHot.Location = new System.Drawing.Point(293, 77);
this.lblHot.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.lblHot.Name = "lblHot";
this.lblHot.Size = new System.Drawing.Size(32, 17);
@@ -2035,7 +2063,7 @@ namespace TemuKJD.WXForms.ProductForms
// label19
//
this.label19.AutoSize = true;
this.label19.Location = new System.Drawing.Point(148, 23);
this.label19.Location = new System.Drawing.Point(153, 23);
this.label19.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(39, 17);
@@ -2044,11 +2072,11 @@ namespace TemuKJD.WXForms.ProductForms
//
// chkRandomFissionProduct
//
this.chkRandomFissionProduct.Location = new System.Drawing.Point(155, 104);
this.chkRandomFissionProduct.Location = new System.Drawing.Point(163, 102);
this.chkRandomFissionProduct.Name = "chkRandomFissionProduct";
this.chkRandomFissionProduct.Size = new System.Drawing.Size(92, 17);
this.chkRandomFissionProduct.Size = new System.Drawing.Size(96, 21);
this.chkRandomFissionProduct.TabIndex = 910;
this.chkRandomFissionProduct.Text = "裂变商品数量";
this.chkRandomFissionProduct.Text = "裂变标题数量";
this.chkRandomFissionProduct.UseVisualStyleBackColor = true;
this.chkRandomFissionProduct.Visible = false;
//
@@ -2067,17 +2095,27 @@ namespace TemuKJD.WXForms.ProductForms
this.lblWaitToUp.Text = "待上传 0 件";
this.lblWaitToUp.Click += new System.EventHandler(this.lblWaitToUp_Click);
//
// lblJstInitSet
// chkWXComplateProd
//
this.lblJstInitSet.AutoSize = true;
this.lblJstInitSet.BackColor = System.Drawing.Color.Transparent;
this.lblJstInitSet.Location = new System.Drawing.Point(200, 136);
this.lblJstInitSet.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.lblJstInitSet.Name = "lblJstInitSet";
this.lblJstInitSet.Size = new System.Drawing.Size(32, 17);
this.lblJstInitSet.TabIndex = 696;
this.lblJstInitSet.Text = "分销";
this.lblJstInitSet.Visible = false;
this.chkWXComplateProd.AutoSize = true;
this.chkWXComplateProd.Location = new System.Drawing.Point(296, 102);
this.chkWXComplateProd.Name = "chkWXComplateProd";
this.chkWXComplateProd.Size = new System.Drawing.Size(99, 21);
this.chkWXComplateProd.TabIndex = 807;
this.chkWXComplateProd.Text = "微信回采商品";
this.chkWXComplateProd.UseVisualStyleBackColor = true;
this.chkWXComplateProd.Visible = false;
//
// lblNotes
//
this.lblNotes.AutoSize = true;
this.lblNotes.Location = new System.Drawing.Point(293, 50);
this.lblNotes.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.lblNotes.Name = "lblNotes";
this.lblNotes.Size = new System.Drawing.Size(32, 17);
this.lblNotes.TabIndex = 822;
this.lblNotes.Text = "备注";
this.lblNotes.Visible = false;
//
// ucGroupBoxEx1
//
@@ -2489,7 +2527,7 @@ namespace TemuKJD.WXForms.ProductForms
// lblExtCodeFilter
//
this.lblExtCodeFilter.AutoSize = true;
this.lblExtCodeFilter.Location = new System.Drawing.Point(260, 38);
this.lblExtCodeFilter.Location = new System.Drawing.Point(262, 38);
this.lblExtCodeFilter.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.lblExtCodeFilter.Name = "lblExtCodeFilter";
this.lblExtCodeFilter.Size = new System.Drawing.Size(32, 17);
@@ -2501,19 +2539,19 @@ namespace TemuKJD.WXForms.ProductForms
//
this.dgvShop.AllowUserToAddRows = false;
this.dgvShop.AllowUserToDeleteRows = false;
dataGridViewCellStyle9.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle9;
dataGridViewCellStyle25.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle25;
this.dgvShop.AutoRowNumber = true;
this.dgvShop.BackgroundColor = System.Drawing.Color.White;
this.dgvShop.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle10.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle10;
dataGridViewCellStyle26.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle26.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle26.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle26.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle26.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle26.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle26.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle26;
this.dgvShop.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvShop.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.colSelect,
@@ -2745,19 +2783,19 @@ namespace TemuKJD.WXForms.ProductForms
//
this.dgvSelectProduct.AllowUserToAddRows = false;
this.dgvSelectProduct.AllowUserToDeleteRows = false;
dataGridViewCellStyle11.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvSelectProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle11;
dataGridViewCellStyle27.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvSelectProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle27;
this.dgvSelectProduct.AutoRowNumber = true;
this.dgvSelectProduct.BackgroundColor = System.Drawing.Color.White;
this.dgvSelectProduct.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle12.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvSelectProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle12;
dataGridViewCellStyle28.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle28.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle28.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle28.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle28.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle28.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle28.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvSelectProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle28;
this.dgvSelectProduct.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvSelectProduct.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.colCheck,
@@ -2819,8 +2857,8 @@ namespace TemuKJD.WXForms.ProductForms
//
// colSupplierName
//
dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colSupplierName.DefaultCellStyle = dataGridViewCellStyle13;
dataGridViewCellStyle29.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colSupplierName.DefaultCellStyle = dataGridViewCellStyle29;
this.colSupplierName.Frozen = true;
this.colSupplierName.HeaderText = "店铺名称";
this.colSupplierName.Name = "colSupplierName";
@@ -2900,8 +2938,8 @@ namespace TemuKJD.WXForms.ProductForms
//
// colProductName
//
dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colProductName.DefaultCellStyle = dataGridViewCellStyle14;
dataGridViewCellStyle30.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colProductName.DefaultCellStyle = dataGridViewCellStyle30;
this.colProductName.HeaderText = "商品标题";
this.colProductName.Name = "colProductName";
this.colProductName.ReadOnly = true;
@@ -2909,8 +2947,8 @@ namespace TemuKJD.WXForms.ProductForms
//
// colProductCat
//
dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colProductCat.DefaultCellStyle = dataGridViewCellStyle15;
dataGridViewCellStyle31.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colProductCat.DefaultCellStyle = dataGridViewCellStyle31;
this.colProductCat.HeaderText = "商品类目";
this.colProductCat.Name = "colProductCat";
this.colProductCat.ReadOnly = true;
@@ -2965,8 +3003,8 @@ namespace TemuKJD.WXForms.ProductForms
//
// colAddTime
//
dataGridViewCellStyle16.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colAddTime.DefaultCellStyle = dataGridViewCellStyle16;
dataGridViewCellStyle32.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colAddTime.DefaultCellStyle = dataGridViewCellStyle32;
this.colAddTime.HeaderText = "上传时间";
this.colAddTime.Name = "colAddTime";
this.colAddTime.ReadOnly = true;
@@ -3157,8 +3195,6 @@ namespace TemuKJD.WXForms.ProductForms
private System.Windows.Forms.TextBox txtExtCodeFilter;
private System.Windows.Forms.Label lblExtCodeFilter;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label lblGroupFilter;
private System.Windows.Forms.ComboBox cmbGroupFilter;
private DevComponents.DotNetBar.PanelEx btnClear;
private DevComponents.DotNetBar.PanelEx panelEx1;
private System.Windows.Forms.TextBox txtIdFilter;
@@ -3319,5 +3355,10 @@ namespace TemuKJD.WXForms.ProductForms
private UserComponent.UcCheckBox chkSameSpecPriceDown;
private UserComponent.UcCheckBox chkLowestPriceSku;
private UserComponent.UcCheckBox chkRemoveSpecialChar;
private UserComponent.UcCheckBox chkSkipReplaceText;
private System.Windows.Forms.ComboBox cmbGroupFilter;
private System.Windows.Forms.Label lblGroupFilter;
private System.Windows.Forms.ComboBox cmbNotes;
private System.Windows.Forms.Label lblNotes;
}
}
+280 -100
View File
@@ -42,7 +42,6 @@ namespace TemuKJD.WXForms.ProductForms
public CancellationTokenSource cancellationTokenSource { get; set; } = null;
public bool IsWxNotUseSoftwareDefaultAddressOnce { get; set; } = false;
public bool IsLoadComplate { get; set; } = false;
public ConcurrentList<TemuDBProductSelect> lstTemuDBProductSelect = new ConcurrentList<TemuDBProductSelect>();
ConcurrentList<AddPriceRule> lstAddPriceRule = new ConcurrentList<AddPriceRule>();
@@ -205,6 +204,7 @@ namespace TemuKJD.WXForms.ProductForms
this.txtPreDays.Text = wxUploadRule.PreSaleDays.ParseToString();
this.txtReplaceText.Text = wxUploadRule.FilterWords.ParseToString();
this.chkSkipReplaceText.Checked = wxUploadRule.IsSkipHasFilterWordsProd.ParseToBool();
this.txtMinPrice.Text = wxUploadRule.SkuMinPrice.ParseToString();
this.txtWaitSeconds.Text = wxUploadRule.WaitSeconds.ParseToString();
this.chkHighestPriceSku.Checked = wxUploadRule.OnlyHighestPriceSku.ParseToBool();
@@ -389,6 +389,14 @@ namespace TemuKJD.WXForms.ProductForms
chkRandomFissionProduct.Visible = true;
txtRandomFissionProductCount.Visible = true;
lblNotes.Visible = true;
cmbNotes.Visible = true;
Task.Run(() =>
{
string addUserName = BaseClass.GroupId == 3 ? BaseClass.UserName : BaseClass.ParentUserName;
PDDDBProdListForm.GetPDDProductNotes(new List<ComboBox> { cmbNotes }, addUserName);
});
}
cmbHot_TextChanged(null, null);
@@ -405,7 +413,7 @@ namespace TemuKJD.WXForms.ProductForms
List<Control> ctrlLst = new List<Control>()
{
lblSourceType, cmbSourceType, lblGroupFilter, cmbGroupFilter, lblHot, cmbHot, lblIdFilter, txtIdFilter,
chkRandomFissionProduct, txtRandomFissionProductCount, lblJstInitSet, cmbJstInitSet
chkRandomFissionProduct, txtRandomFissionProductCount/*, lblNotes, cmbNotes*//*, lblJstInitSet, cmbJstInitSet*/
};
for (int i = 0; i < ctrlLst.Count - 2; i += 2)
{
@@ -413,14 +421,19 @@ namespace TemuKJD.WXForms.ProductForms
{
for (int j= ctrlLst.Count - 2; j > i; j-=2)
{
ctrlLst[j].Parent = ucGroupBoxEx4;
ctrlLst[j].Location = new Point(ctrlLst[j - 2].Location.X, ctrlLst[j - 2].Location.Y);
ctrlLst[j + 1].Location = new Point(ctrlLst[j].Location.X + ctrlLst[j].Width - 3, ctrlLst[j - 1].Location.Y);
ctrlLst[j + 1].BringToFront();
}
}
}
if (cmbNotes.Visible == false)
{
txtSearchGoodsName.Width = 229;
}
IsLoadComplate = true;
IsFormLoad = true;
}
private void btnRefreshAuthor_Click(object sender, EventArgs e)
@@ -1780,74 +1793,66 @@ namespace TemuKJD.WXForms.ProductForms
// 过滤标题敏感词
if (lstTitleReplaceText.Count > 0)
{
foreach (var txt in lstTitleReplaceText)
if (chkSkipReplaceText.Checked)
{
dbProd.product_name = dbProd.product_name.Replace(txt, "");
selectProd.product_name = selectProd.product_name.Replace(txt, "");
}
if (lstTitleReplaceText.Any(t => selectProd.product_name.Contains(t)))
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"命中敏感词\"}";
if (lstTitleReplaceText.Any(t => dbProd.product_name.Contains(t)))
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"命中敏感词\"}";
var goods_name = prodJObj["detail"]["goods_name"].ParseToString();
foreach (var txt in lstTitleReplaceText)
{
goods_name = goods_name.Replace(txt, "");
var goods_name = prodJObj["detail"]["goods_name"].ParseToString();
if (lstTitleReplaceText.Any(t => goods_name.Contains(t)))
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"命中敏感词\"}";
var tiny_name = prodJObj["detail"]["tiny_name"].ParseToString();
if (lstTitleReplaceText.Any(t => tiny_name.Contains(t)))
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"命中敏感词\"}";
var goods_desc = prodJObj["detail"]["goods_desc"].ParseToString();
if (lstTitleReplaceText.Any(t => goods_desc.Contains(t)))
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"命中敏感词\"}";
var share_desc = prodJObj["detail"]["share_desc"].ParseToString();
if (lstTitleReplaceText.Any(t => share_desc.Contains(t)))
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"命中敏感词\"}";
}
prodJObj["detail"]["goods_name"] = goods_name;
else
{
foreach (var txt in lstTitleReplaceText)
{
dbProd.product_name = dbProd.product_name.Replace(txt, "");
selectProd.product_name = selectProd.product_name.Replace(txt, "");
}
var tiny_name = prodJObj["detail"]["tiny_name"].ParseToString();
foreach (var txt in lstTitleReplaceText)
{
tiny_name = tiny_name.Replace(txt, "");
}
prodJObj["detail"]["tiny_name"] = tiny_name;
var goods_name = prodJObj["detail"]["goods_name"].ParseToString();
foreach (var txt in lstTitleReplaceText)
{
goods_name = goods_name.Replace(txt, "");
}
prodJObj["detail"]["goods_name"] = goods_name;
var goods_desc = prodJObj["detail"]["goods_desc"].ParseToString();
foreach (var txt in lstTitleReplaceText)
{
goods_desc = goods_desc.Replace(txt, "");
}
prodJObj["detail"]["goods_desc"] = goods_desc;
var tiny_name = prodJObj["detail"]["tiny_name"].ParseToString();
foreach (var txt in lstTitleReplaceText)
{
tiny_name = tiny_name.Replace(txt, "");
}
prodJObj["detail"]["tiny_name"] = tiny_name;
var share_desc = prodJObj["detail"]["share_desc"].ParseToString();
foreach (var txt in lstTitleReplaceText)
{
share_desc = share_desc.Replace(txt, "");
var goods_desc = prodJObj["detail"]["goods_desc"].ParseToString();
foreach (var txt in lstTitleReplaceText)
{
goods_desc = goods_desc.Replace(txt, "");
}
prodJObj["detail"]["goods_desc"] = goods_desc;
var share_desc = prodJObj["detail"]["share_desc"].ParseToString();
foreach (var txt in lstTitleReplaceText)
{
share_desc = share_desc.Replace(txt, "");
}
prodJObj["detail"]["share_desc"] = share_desc;
}
prodJObj["detail"]["share_desc"] = share_desc;
}
// 过滤标题特殊字符
if (chkRemoveSpecialChar.Checked)
{
//if (dbProd.product_name.Contains("】") && dbProd.product_name.IndexOf("】") < dbProd.product_name.Length / 2 && dbProd.product_name.Length > 10)
// dbProd.product_name = dbProd.product_name.Substring(dbProd.product_name.IndexOf("】")).Trim('】');
//if (selectProd.product_name.Contains("】") && selectProd.product_name.IndexOf("】") < selectProd.product_name.Length / 2 && selectProd.product_name.Length > 10)
// selectProd.product_name = selectProd.product_name.Substring(selectProd.product_name.IndexOf("】")).Trim('】');
//var goods_name = prodJObj["detail"]["goods_name"].ParseToString();
//if (goods_name.Contains("】") && goods_name.IndexOf("】") < goods_name.Length / 2 && goods_name.Length > 10)
// prodJObj["detail"]["goods_name"] = goods_name.Substring(goods_name.IndexOf("】")).Trim('】');
//if (dbProd.product_name.Contains("]") && dbProd.product_name.IndexOf("]") < dbProd.product_name.Length / 2 && dbProd.product_name.Length > 10)
// dbProd.product_name = dbProd.product_name.Substring(dbProd.product_name.IndexOf("]")).Trim(']');
//if (selectProd.product_name.Contains("]") && selectProd.product_name.IndexOf("]") < selectProd.product_name.Length / 2 && selectProd.product_name.Length > 10)
// selectProd.product_name = selectProd.product_name.Substring(selectProd.product_name.IndexOf("]")).Trim(']');
//goods_name = prodJObj["detail"]["goods_name"].ParseToString();
//if (goods_name.Contains("]") && goods_name.IndexOf("]") < goods_name.Length / 2 && goods_name.Length > 10)
// prodJObj["detail"]["goods_name"] = goods_name.Substring(goods_name.IndexOf("]")).Trim(']');
//if (dbProd.product_name.Contains("}") && dbProd.product_name.IndexOf("}") < dbProd.product_name.Length / 2 && dbProd.product_name.Length > 10)
// dbProd.product_name = dbProd.product_name.Substring(dbProd.product_name.IndexOf("}")).Trim('}');
//if (selectProd.product_name.Contains("}") && selectProd.product_name.IndexOf("}") < selectProd.product_name.Length / 2 && selectProd.product_name.Length > 10)
// selectProd.product_name = selectProd.product_name.Substring(selectProd.product_name.IndexOf("}")).Trim('}');
//goods_name = prodJObj["detail"]["goods_name"].ParseToString();
//if (goods_name.Contains("}") && goods_name.IndexOf("}") < goods_name.Length / 2 && goods_name.Length > 10)
// prodJObj["detail"]["goods_name"] = goods_name.Substring(goods_name.IndexOf("}")).Trim('}');
var chLst = new List<char> { ']', '】', ')', ')', '}', };
foreach (var ch in chLst)
{
@@ -4432,21 +4437,131 @@ namespace TemuKJD.WXForms.ProductForms
}));
}
string publisher = "出版社名称:" + new List<string>() { "技术出版社", "文化出版社", "美术出版社" }[Randomx.GetId(3)];
//string publisher = "出版社名称:" + new List<string>() { "技术出版社", "文化出版社", "美术出版社" }[Randomx.GetId(3)];
////string isbn = "ISBN:";
//string isbn = "ISBN/CN刊号:";
////string bookName = "书名:";
//string bookName = "图书名称:";
//string bookPrice = "定价:" + upProdParam.product.productSkus.Max(s => s.productSkuInfo.salePrice) * 0.01;
//string author = "作者:王老师";
//string publishTime = "出版时间:" + DateTime.Now.AddMonths(-3).ToString("yyyy年MM月dd日");
//string edition = "版次:1";
//string binding = "装帧:平装";
//foreach (var propParam in upProdParam.product.info.param)
//{
// if (propParam.categorys[0].name.Contains("出版社名称"))
// publisher = "出版社名称:" + propParam.categorys[1].name;
// else if (propParam.categorys[0].name.Contains("ISBN版号/CN刊号"))
// {
// //isbn = "ISBN:" + propParam.categorys[1].name;
// isbn = "ISBN/CN刊号:" + propParam.categorys[1].name;
// if (propParam.categorys[1].name.Length == 13)
// {
// var isbnStr = propParam.categorys[1].name;
// isbn = "ISBN/CN刊号:" + isbnStr[0] + isbnStr[1] + isbnStr[2] + "-" + isbnStr[3] + "-" + isbnStr[4] + isbnStr[5] + isbnStr[6] + isbnStr[7] + "-" + isbnStr[8] + isbnStr[9] + isbnStr[10] + isbnStr[11] + "-" + isbnStr[12];
// }
// }
// else if (propParam.categorys[0].name.Contains("书名"))
// {
// //bookName = "书名:" + propParam.categorys[1].name;
// bookName = "图书名称:" + propParam.categorys[1].name;
// }
// else if (propParam.categorys[0].name.Contains("定价"))
// {
// //bookPrice = "定价:" + propParam.categorys[1].name;
// propParam.categorys[1].name = bookPrice;
// }
// else if (propParam.categorys[0].name.Contains("作者"))
// author = "作者:" + propParam.categorys[1].name;
// else if (propParam.categorys[0].name.Contains("出版时间"))
// publishTime = "出版时间:" + propParam.categorys[1].name;
// else if (propParam.categorys[0].name.Contains("版次"))
// edition = "版次:" + propParam.categorys[1].name;
// else if (propParam.categorys[0].name.Contains("包装"))
// binding = "装帧:" + propParam.categorys[1].name;
//}
//var bookStr = publisher + "\r\n" + "\r\n" +
// isbn + "\r\n" + "\r\n" +
// bookName + "\r\n" + "\r\n" +
// bookPrice + "\r\n" + "\r\n" +
// author + "\r\n" + "\r\n" +
// publishTime + "\r\n" + "\r\n" +
// edition + "\r\n" + "\r\n" +
// binding;
//int imgW = 800; int imgH = 800; int textImgH = 0;
//string getImgError;
//var img_url = upProdParam.product.info.headImg[0];
//if (!img_url.Contains("wst.wxapp.tc.qq.com") && !img_url.Contains("mmecimage.cn"))
// img_url = img_url.Replace("https://", "http://");
//var imageMain = GetHtml.GetUrlImg(img_url, out getImgError);
//if (imageMain == null)
// imageMain = new Bitmap(800, 800);
//using (Bitmap bitmap = new Bitmap(1, 1)) // 尺寸不重要,只是为了使用Graphics对象
//using (Graphics g = Graphics.FromImage(bitmap)) // 获取Graphics对象
//{
// // 定义字体
// Font font = new Font("微软雅黑", 16, FontStyle.Regular);
// g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
// // 定义要测量的字符串
// string text = bookStr;
// // 测量字符串大小
// SizeF size = g.MeasureString(text, font, imgW - 120);
// // 输出高度信息
// //Console.WriteLine("Text Height: " + size.Height);
// textImgH = size.Height.ParseToInt() + 180;
//}
////var bookImg = new Bitmap(imgW, imgH);
////using (Graphics g = Graphics.FromImage(bookImg))
////{
//// g.Clear(Color.White);
//// //Font font = new Font("宋体", 15, FontStyle.Bold);
//// //Font font = new Font("微软雅黑", 15, FontStyle.Regular);
//// Font font = new Font("微软雅黑", 16, FontStyle.Regular);
//// //Font font = new Font("宋体", 17, FontStyle.Bold);
//// Brush textBrush = Brushes.Black;
//// g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
//// RectangleF rectF = new RectangleF(60, 80, imgW - 120, imgH - 180);
//// g.DrawString(bookStr, font, textBrush, rectF);
////}
//// 绘制一张带主图的商品详情页
//var bookImg = new Bitmap(imgW, imgH + textImgH);
//using (Graphics g = Graphics.FromImage(bookImg))
//{
// g.Clear(Color.FromArgb(248, 239, 244));
// g.DrawImage(imageMain, new Rectangle(0, 0, imgW, imgH), 0, 0, imageMain.Width, imageMain.Height, GraphicsUnit.Pixel);
// //Font font = new Font("宋体", 15, FontStyle.Bold);
// //Font font = new Font("微软雅黑", 15, FontStyle.Regular);
// Font font = new Font("微软雅黑", 18, FontStyle.Regular);
// //Font font = new Font("宋体", 17, FontStyle.Bold);
// Brush textBrush = Brushes.Black;
// g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
// RectangleF rectF = new RectangleF(60, imgH + 80, imgW - 120, textImgH - 180);
// g.DrawString(bookStr, font, textBrush, rectF);
//}
string publisher = "出版发行:" + new List<string>() { "技术出版社", "文化出版社", "美术出版社" }[Randomx.GetId(3)];
//string isbn = "ISBN:";
string isbn = "ISBN/CN刊号:";
//string bookName = "书名:";
string bookName = "图书名称:";
string bookPrice = "定价:" + upProdParam.product.productSkus.Max(s => s.productSkuInfo.salePrice) * 0.01;
string author = "作者:王老师";
string bookPrice = "定  价:" + upProdParam.product.productSkus.Max(s => s.productSkuInfo.salePrice) * 0.01;
string author = "作  者:王老师";
string publishTime = "出版时间:" + DateTime.Now.AddMonths(-3).ToString("yyyy年MM月dd日");
string edition = "版次:1";
string binding = "装帧:平装";
string edition = "版  次:1";
string binding = "装  帧:平装";
foreach (var propParam in upProdParam.product.info.param)
{
if (propParam.categorys[0].name.Contains("出版社名称"))
publisher = "出版社名称:" + propParam.categorys[1].name;
publisher = "出版发行:" + propParam.categorys[1].name;
else if (propParam.categorys[0].name.Contains("ISBN版号/CN刊号"))
{
//isbn = "ISBN:" + propParam.categorys[1].name;
@@ -4468,13 +4583,13 @@ namespace TemuKJD.WXForms.ProductForms
propParam.categorys[1].name = bookPrice;
}
else if (propParam.categorys[0].name.Contains("作者"))
author = "作者:" + propParam.categorys[1].name;
author = "作  者:" + propParam.categorys[1].name;
else if (propParam.categorys[0].name.Contains("出版时间"))
publishTime = "出版时间:" + propParam.categorys[1].name;
else if (propParam.categorys[0].name.Contains("版次"))
edition = "版次:" + propParam.categorys[1].name;
edition = "版  次:" + propParam.categorys[1].name;
else if (propParam.categorys[0].name.Contains("包装"))
binding = "装帧:" + propParam.categorys[1].name;
binding = "装  帧:" + propParam.categorys[1].name;
}
var bookStr = publisher + "\r\n" + "\r\n" +
@@ -4509,38 +4624,95 @@ namespace TemuKJD.WXForms.ProductForms
textImgH = size.Height.ParseToInt() + 180;
}
//var bookImg = new Bitmap(imgW, imgH);
//using (Graphics g = Graphics.FromImage(bookImg))
//{
// g.Clear(Color.White);
// //Font font = new Font("宋体", 15, FontStyle.Bold);
// //Font font = new Font("微软雅黑", 15, FontStyle.Regular);
// Font font = new Font("微软雅黑", 16, FontStyle.Regular);
// //Font font = new Font("宋体", 17, FontStyle.Bold);
// Brush textBrush = Brushes.Black;
// g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
// RectangleF rectF = new RectangleF(60, 80, imgW - 120, imgH - 180);
// g.DrawString(bookStr, font, textBrush, rectF);
//}
// 绘制一张带主图的商品详情页
var bookImg = new Bitmap(imgW, imgH + textImgH);
var bookImg = TemuKJD.Properties.Resources.empty_book_900_1200;
imgH = bookImg.Height;
imgW = bookImg.Width;
using (Graphics g = Graphics.FromImage(bookImg))
{
g.Clear(Color.FromArgb(248, 239, 244));
g.DrawImage(imageMain, new Rectangle(0, 0, imgW, imgH), 0, 0, imageMain.Width, imageMain.Height, GraphicsUnit.Pixel);
//Font font = new Font("宋体", 15, FontStyle.Bold);
//Font font = new Font("微软雅黑", 15, FontStyle.Regular);
Font font = new Font("微软雅黑", 18, FontStyle.Regular);
//Font font = new Font("宋体", 17, FontStyle.Bold);
Brush textBrush = Brushes.Black;
g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
RectangleF rectF = new RectangleF(60, imgH + 80, imgW - 120, textImgH - 180);
g.DrawString(bookStr, font, textBrush, rectF);
float txtY = 80;
// 书名
Font font = new Font("宋体", 22, FontStyle.Bold);
RectangleF rectF = new RectangleF(100, txtY, imgW - 200, imgH - txtY - 80);
g.DrawString(bookName.Replace("图书名称:", ""), font, textBrush, rectF);
// 测量文本的高度 决定接下来文字绘制位置
var textSize = g.MeasureString(bookName.Replace("图书名称:", ""), font, imgW - 200);
txtY += 20 + textSize.Height;
font = new Font("宋体", 16, FontStyle.Bold);
rectF = new RectangleF(100, txtY, imgW - 200, imgH - txtY - 80);
g.DrawString(author.Replace("作  者:", "").TrimEnd('著', ' ') + " 著", font, textBrush, rectF);
// 测量文本的高度
textSize = g.MeasureString(author.Replace("作  者:", "").TrimEnd('著', ' ') + " 著", font, imgW - 200);
txtY += 20 + textSize.Height;
rectF = new RectangleF(100, txtY, imgW - 200, imgH - txtY - 80);
g.DrawString(publisher.Replace("出版发行:", ""), font, textBrush, rectF);
// 测量文本的高度
textSize = g.MeasureString(publisher.Replace("出版发行:", ""), font, imgW - 200);
txtY += 20 + textSize.Height;
rectF = new RectangleF(100, txtY, imgW - 200, imgH - txtY - 80);
g.DrawString(isbn.Replace("ISBN/CN刊号:", "ISBN "), font, textBrush, rectF);
// 测量文本的高度
textSize = g.MeasureString(isbn.Replace("ISBN/CN刊号:", "ISBN "), font, imgW - 200);
txtY += 20 + textSize.Height;
// 以下从下往上写
txtY = imgH - 120;
// 测量文本的高度
textSize = g.MeasureString(binding, font, imgW - 200);
txtY -= (10 + textSize.Height);
rectF = new RectangleF(100, txtY, imgW - 200, imgH - txtY);
g.DrawString(binding, font, textBrush, rectF);
// 测量文本的高度
textSize = g.MeasureString(edition, font, imgW - 200);
txtY -= (10 + textSize.Height);
rectF = new RectangleF(100, txtY, imgW - 200, imgH - txtY);
g.DrawString(edition, font, textBrush, rectF);
// 测量文本的高度
textSize = g.MeasureString(publishTime, font, imgW - 200);
txtY -= (10 + textSize.Height);
rectF = new RectangleF(100, txtY, imgW - 200, imgH - txtY);
g.DrawString(publishTime, font, textBrush, rectF);
// 测量文本的高度
textSize = g.MeasureString(author, font, imgW - 200);
txtY -= (10 + textSize.Height);
rectF = new RectangleF(100, txtY, imgW - 200, imgH - txtY);
g.DrawString(author, font, textBrush, rectF);
// 测量文本的高度
textSize = g.MeasureString(bookPrice + "元", font, imgW - 200);
txtY -= (10 + textSize.Height);
rectF = new RectangleF(100, txtY, imgW - 200, imgH - txtY);
g.DrawString(bookPrice + "元", font, textBrush, rectF);
// 测量文本的高度
textSize = g.MeasureString(bookName, font, imgW - 200);
txtY -= (10 + textSize.Height);
rectF = new RectangleF(100, txtY, imgW - 200, imgH - txtY);
g.DrawString(bookName, font, textBrush, rectF);
// 测量文本的高度
textSize = g.MeasureString(isbn.Replace("ISBN/CN刊号:", "书号 ISBN "), font, imgW - 200);
txtY -= (10 + textSize.Height);
rectF = new RectangleF(100, txtY, imgW - 200, imgH - txtY);
g.DrawString(isbn.Replace("ISBN/CN刊号:", "书  号:ISBN "), font, textBrush, rectF);
// 测量文本的高度
textSize = g.MeasureString(publisher, font, imgW - 200);
txtY -= (10 + textSize.Height);
rectF = new RectangleF(100, txtY, imgW - 200, imgH - txtY);
g.DrawString(publisher, font, textBrush, rectF);
}
Thread.Sleep(Randomx.GetId(500, 800));
var locationStr = UploadImg(shop, bookImg, cell);
if (!locationStr.Contains("\"success\":true"))
@@ -5666,6 +5838,8 @@ namespace TemuKJD.WXForms.ProductForms
}
data += "&in_groups=" + serach_group;
data += "&in_notes=" + cmbNotes.Text.Trim();
data += "&product_name=" + txtSearchGoodsName.Text.Trim();
// 商品采集权限可以随机管理员或自己采集的商品
@@ -5678,6 +5852,7 @@ namespace TemuKJD.WXForms.ProductForms
cmbHot.Text != "爆款数据" && !BaseClass.UserAuthority.Contains("货源选择"))
data += "&add_user_name=" + (BaseClass.GroupId == 3 ? BaseClass.UserName : BaseClass.ParentUserName);
// 防止手输查询学员数据
if (!BaseClass.UserAuthority.Contains("学员数据") && !BaseClass.ParentAuthority.Contains("学员数据") && cmbSourceType.Text.Contains("学员数据"))
{
cmbSourceType.Text = cmbSourceType.Text.Replace("学员数据", "");
@@ -5928,7 +6103,7 @@ namespace TemuKJD.WXForms.ProductForms
private void txtAddPrice_TextChanged(object sender, EventArgs e)
{
if (IsLoadComplate)
if (IsFormLoad)
{
defaultAddPriceRule.AddPriceTimes = txtAddTimes.Text.Trim().ParseToDecimal();
defaultAddPriceRule.AddMorePrice = txtAddMorePrice.Text.Trim().ParseToDecimal();
@@ -5965,7 +6140,7 @@ namespace TemuKJD.WXForms.ProductForms
private void chkAddMorePriceFirst_CheckedChanged(object sender, EventArgs e)
{
if (IsLoadComplate)
if (IsFormLoad)
{
defaultAddPriceRule.AddMorePriceFirst = chkAddMorePriceFirst.Checked;
NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_default_add_price_rule", defaultAddPriceRule);
@@ -6574,7 +6749,7 @@ namespace TemuKJD.WXForms.ProductForms
private void txtFissionTitle_TextChanged(object sender, EventArgs e)
{
if (this.IsLoadComplate)
if (this.IsFormLoad)
NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_prod_fission_title", txtFissionTitle.Text);
lblFissionTitleCount.Text = "标题数:" + txtFissionTitle.Text.Split(new string[] { "\r", "\n" }, StringSplitOptions.RemoveEmptyEntries).ToList().Count();
}
@@ -6593,9 +6768,13 @@ namespace TemuKJD.WXForms.ProductForms
}
}
private void chkSameSpecPrice_CheckedChanged(object sender, EventArgs e)
private void chkSkipReplaceText_CheckedChanged(object sender, EventArgs e)
{
if (this.IsFormLoad)
{
wxUploadRule.IsSkipHasFilterWordsProd = chkSkipReplaceText.Checked;
NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_upload_rule", wxUploadRule);
}
}
}
@@ -7046,6 +7225,7 @@ Content-Type: application/octet-stream
public int PreSaleDays { get; set; } = 5;
public string FilterWords { get; set; } = "顶级,之王,二手,亏本,冲量,白菜价,跳楼价,xx,xxx,最大,最小,低价,降价,成本,赔钱,甩卖,真丝,蚕丝,香云纱,羊绒,羊毛,羊羔绒,羊羔毛,羽绒,皮草";
public bool IsSkipHasFilterWordsProd { get; set; } = false;
public int SkuMinPrice { get; set; } = 10;
public int SkuMaxPrice { get; set; } = 9999;
+16 -1
View File
@@ -159,6 +159,7 @@ namespace TemuKJD.WXForms.ProductForms
this.colOpResult = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.splitContainer4 = new System.Windows.Forms.SplitContainer();
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
this.comboBox1 = new System.Windows.Forms.ComboBox();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
@@ -729,6 +730,7 @@ namespace TemuKJD.WXForms.ProductForms
| System.Windows.Forms.AnchorStyles.Left)));
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.comboBox1);
this.ucGroupBoxEx4.Controls.Add(this.label5);
this.ucGroupBoxEx4.Controls.Add(this.chkSearchPromotionLink);
this.ucGroupBoxEx4.Controls.Add(this.cmbOnSaleStatus);
@@ -766,7 +768,7 @@ namespace TemuKJD.WXForms.ProductForms
this.chkSearchPromotionLink.Name = "chkSearchPromotionLink";
this.chkSearchPromotionLink.Size = new System.Drawing.Size(147, 21);
this.chkSearchPromotionLink.TabIndex = 827;
this.chkSearchPromotionLink.Text = "同时查询商品推广短链";
this.chkSearchPromotionLink.Text = "同时查询商品推广链接";
this.chkSearchPromotionLink.UseVisualStyleBackColor = true;
this.chkSearchPromotionLink.CheckedChanged += new System.EventHandler(this.chkSearchPromotionLink_CheckedChanged);
//
@@ -1874,6 +1876,18 @@ namespace TemuKJD.WXForms.ProductForms
this.statusBar.Size = new System.Drawing.Size(1165, 26);
this.statusBar.TabIndex = 2;
//
// comboBox1
//
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Items.AddRange(new object[] {
"短链",
"长链"});
this.comboBox1.Location = new System.Drawing.Point(156, 89);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(49, 25);
this.comboBox1.TabIndex = 995;
this.comboBox1.Text = "短链";
//
// WXProdPreSaleForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
@@ -2038,5 +2052,6 @@ namespace TemuKJD.WXForms.ProductForms
private System.Windows.Forms.DateTimePicker dtpEndTime;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.ComboBox cmbChangePriceType;
private System.Windows.Forms.ComboBox comboBox1;
}
}
@@ -844,7 +844,10 @@ namespace TemuKJD.WXForms.ProductForms
{
Invoke(new Action(() =>
{
dgvSelectProduct.Rows[rowIndex].Cells["colPromotionLink"].Value = shareUrl;
if (comboBox1.Text == "短链")
dgvSelectProduct.Rows[rowIndex].Cells["colPromotionLink"].Value = shortLink;
else
dgvSelectProduct.Rows[rowIndex].Cells["colPromotionLink"].Value = shareUrl;
}));
}
else
@@ -49,6 +49,9 @@ namespace TemuKJD.WXForms.ProductForms
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WXUserCollectAuthProdListForm));
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.cmbBatchEditNotes = new System.Windows.Forms.ComboBox();
this.btnEditNotes = new DevComponents.DotNetBar.PanelEx();
this.btnBatchEditNotes = new DevComponents.DotNetBar.PanelEx();
this.btnAITitleFission = new DevComponents.DotNetBar.PanelEx();
this.txtFissionProductCount = new System.Windows.Forms.TextBox();
this.chkFissionProduct = new TemuKJD.UserComponent.UcCheckBox(this.components);
@@ -61,6 +64,8 @@ namespace TemuKJD.WXForms.ProductForms
this.btnGetProdWxCate = new DevComponents.DotNetBar.PanelEx();
this.btnDel = new DevComponents.DotNetBar.PanelEx();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.cmbNotes = new System.Windows.Forms.ComboBox();
this.label9 = new System.Windows.Forms.Label();
this.cmbHasFission = new System.Windows.Forms.ComboBox();
this.label8 = new System.Windows.Forms.Label();
this.txtCatBoundLessThan = new System.Windows.Forms.TextBox();
@@ -80,11 +85,13 @@ namespace TemuKJD.WXForms.ProductForms
this.lblSourceType = new System.Windows.Forms.Label();
this.cmbSourceType = new System.Windows.Forms.ComboBox();
this.lblNotes = new System.Windows.Forms.Label();
this.txtNotes = new System.Windows.Forms.TextBox();
this.label12 = new System.Windows.Forms.Label();
this.cmbWxCat = new System.Windows.Forms.ComboBox();
this.lblWxSafe = new System.Windows.Forms.Label();
this.cmbWxSafe = new System.Windows.Forms.ComboBox();
this.chkTime = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.dtpStart = new System.Windows.Forms.DateTimePicker();
this.dtpEnd = new System.Windows.Forms.DateTimePicker();
this.label7 = new System.Windows.Forms.Label();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.lblRelation = new System.Windows.Forms.Label();
@@ -144,12 +151,6 @@ namespace TemuKJD.WXForms.ProductForms
this.col_select_product = new System.Windows.Forms.DataGridViewLinkColumn();
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
this.txtBatchEditNotes = new System.Windows.Forms.TextBox();
this.btnBatchEditNotes = new DevComponents.DotNetBar.PanelEx();
this.dtpEnd = new System.Windows.Forms.DateTimePicker();
this.dtpStart = new System.Windows.Forms.DateTimePicker();
this.chkTime = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.label9 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
@@ -174,8 +175,9 @@ namespace TemuKJD.WXForms.ProductForms
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.cmbBatchEditNotes);
this.splitContainer1.Panel1.Controls.Add(this.btnEditNotes);
this.splitContainer1.Panel1.Controls.Add(this.btnBatchEditNotes);
this.splitContainer1.Panel1.Controls.Add(this.txtBatchEditNotes);
this.splitContainer1.Panel1.Controls.Add(this.btnAITitleFission);
this.splitContainer1.Panel1.Controls.Add(this.txtFissionProductCount);
this.splitContainer1.Panel1.Controls.Add(this.chkFissionProduct);
@@ -197,6 +199,66 @@ namespace TemuKJD.WXForms.ProductForms
this.splitContainer1.SplitterDistance = 115;
this.splitContainer1.TabIndex = 1;
//
// cmbBatchEditNotes
//
this.cmbBatchEditNotes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.cmbBatchEditNotes.FormattingEnabled = true;
this.cmbBatchEditNotes.Location = new System.Drawing.Point(1221, 43);
this.cmbBatchEditNotes.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbBatchEditNotes.Name = "cmbBatchEditNotes";
this.cmbBatchEditNotes.Size = new System.Drawing.Size(105, 25);
this.cmbBatchEditNotes.TabIndex = 886;
//
// btnEditNotes
//
this.btnEditNotes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnEditNotes.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnEditNotes.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnEditNotes.DisabledBackColor = System.Drawing.Color.Empty;
this.btnEditNotes.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnEditNotes.Location = new System.Drawing.Point(1328, 43);
this.btnEditNotes.Name = "btnEditNotes";
this.btnEditNotes.Size = new System.Drawing.Size(15, 25);
this.btnEditNotes.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnEditNotes.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnEditNotes.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnEditNotes.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnEditNotes.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnEditNotes.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnEditNotes.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnEditNotes.Style.GradientAngle = 90;
this.btnEditNotes.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnEditNotes.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnEditNotes.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnEditNotes.TabIndex = 1267;
this.btnEditNotes.Text = "+";
this.btnEditNotes.Click += new System.EventHandler(this.btnEditNotes_Click);
//
// btnBatchEditNotes
//
this.btnBatchEditNotes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnBatchEditNotes.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnBatchEditNotes.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnBatchEditNotes.DisabledBackColor = System.Drawing.Color.Empty;
this.btnBatchEditNotes.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnBatchEditNotes.Location = new System.Drawing.Point(1345, 43);
this.btnBatchEditNotes.Name = "btnBatchEditNotes";
this.btnBatchEditNotes.Size = new System.Drawing.Size(84, 25);
this.btnBatchEditNotes.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnBatchEditNotes.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnBatchEditNotes.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnBatchEditNotes.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnBatchEditNotes.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnBatchEditNotes.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnBatchEditNotes.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnBatchEditNotes.Style.GradientAngle = 90;
this.btnBatchEditNotes.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnBatchEditNotes.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnBatchEditNotes.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnBatchEditNotes.TabIndex = 1230;
this.btnBatchEditNotes.Text = "批量修改备注";
this.btnBatchEditNotes.Click += new System.EventHandler(this.btnBatchEditNotes_Click);
//
// btnAITitleFission
//
this.btnAITitleFission.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@@ -250,9 +312,9 @@ namespace TemuKJD.WXForms.ProductForms
this.btnOut1688ProdSaveDb.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnOut1688ProdSaveDb.DisabledBackColor = System.Drawing.Color.Empty;
this.btnOut1688ProdSaveDb.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOut1688ProdSaveDb.Location = new System.Drawing.Point(1324, 78);
this.btnOut1688ProdSaveDb.Location = new System.Drawing.Point(1328, 78);
this.btnOut1688ProdSaveDb.Name = "btnOut1688ProdSaveDb";
this.btnOut1688ProdSaveDb.Size = new System.Drawing.Size(105, 25);
this.btnOut1688ProdSaveDb.Size = new System.Drawing.Size(101, 25);
this.btnOut1688ProdSaveDb.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnOut1688ProdSaveDb.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnOut1688ProdSaveDb.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
@@ -275,7 +337,7 @@ namespace TemuKJD.WXForms.ProductForms
this.btnImportPddOutData.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnImportPddOutData.DisabledBackColor = System.Drawing.Color.Empty;
this.btnImportPddOutData.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnImportPddOutData.Location = new System.Drawing.Point(1216, 78);
this.btnImportPddOutData.Location = new System.Drawing.Point(1221, 78);
this.btnImportPddOutData.Name = "btnImportPddOutData";
this.btnImportPddOutData.Size = new System.Drawing.Size(105, 25);
this.btnImportPddOutData.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -462,6 +524,7 @@ namespace TemuKJD.WXForms.ProductForms
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.tableLayoutPanel1.Controls.Add(this.cmbNotes, 7, 0);
this.tableLayoutPanel1.Controls.Add(this.label9, 2, 2);
this.tableLayoutPanel1.Controls.Add(this.cmbHasFission, 11, 1);
this.tableLayoutPanel1.Controls.Add(this.label8, 10, 1);
@@ -482,7 +545,6 @@ namespace TemuKJD.WXForms.ProductForms
this.tableLayoutPanel1.Controls.Add(this.lblSourceType, 4, 0);
this.tableLayoutPanel1.Controls.Add(this.cmbSourceType, 5, 0);
this.tableLayoutPanel1.Controls.Add(this.lblNotes, 6, 0);
this.tableLayoutPanel1.Controls.Add(this.txtNotes, 7, 0);
this.tableLayoutPanel1.Controls.Add(this.label12, 8, 0);
this.tableLayoutPanel1.Controls.Add(this.cmbWxCat, 9, 0);
this.tableLayoutPanel1.Controls.Add(this.lblWxSafe, 10, 0);
@@ -499,6 +561,28 @@ namespace TemuKJD.WXForms.ProductForms
this.tableLayoutPanel1.Size = new System.Drawing.Size(992, 105);
this.tableLayoutPanel1.TabIndex = 679;
//
// cmbNotes
//
this.cmbNotes.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.cmbNotes.FormattingEnabled = true;
this.cmbNotes.Location = new System.Drawing.Point(554, 3);
this.cmbNotes.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbNotes.Name = "cmbNotes";
this.cmbNotes.Size = new System.Drawing.Size(99, 25);
this.cmbNotes.TabIndex = 885;
//
// label9
//
this.label9.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(181, 77);
this.label9.Margin = new System.Windows.Forms.Padding(3, 7, 0, 0);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(56, 17);
this.label9.TabIndex = 885;
this.label9.Text = "结束时间";
//
// cmbHasFission
//
this.cmbHasFission.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
@@ -748,18 +832,6 @@ namespace TemuKJD.WXForms.ProductForms
this.lblNotes.TabIndex = 440;
this.lblNotes.Text = " 备注";
//
// txtNotes
//
this.txtNotes.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtNotes.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.txtNotes.Font = new System.Drawing.Font("微软雅黑", 10F);
this.txtNotes.Location = new System.Drawing.Point(554, 3);
this.txtNotes.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtNotes.Name = "txtNotes";
this.txtNotes.Size = new System.Drawing.Size(99, 25);
this.txtNotes.TabIndex = 439;
//
// label12
//
this.label12.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@@ -814,6 +886,38 @@ namespace TemuKJD.WXForms.ProductForms
this.cmbWxSafe.TabIndex = 676;
this.cmbWxSafe.Text = "安全+未校验";
//
// chkTime
//
this.chkTime.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.chkTime.Location = new System.Drawing.Point(3, 77);
this.chkTime.Name = "chkTime";
this.chkTime.Size = new System.Drawing.Size(66, 21);
this.chkTime.TabIndex = 980;
this.chkTime.Text = "开始时间";
this.chkTime.UseVisualStyleBackColor = true;
//
// dtpStart
//
this.dtpStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.dtpStart.CustomFormat = "yyyy-MM-dd HH:mm";
this.dtpStart.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dtpStart.Location = new System.Drawing.Point(72, 76);
this.dtpStart.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.dtpStart.Name = "dtpStart";
this.dtpStart.Size = new System.Drawing.Size(99, 23);
this.dtpStart.TabIndex = 981;
//
// dtpEnd
//
this.dtpEnd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.dtpEnd.CustomFormat = "yyyy-MM-dd HH:mm";
this.dtpEnd.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dtpEnd.Location = new System.Drawing.Point(237, 76);
this.dtpEnd.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.dtpEnd.Name = "dtpEnd";
this.dtpEnd.Size = new System.Drawing.Size(99, 23);
this.dtpEnd.TabIndex = 982;
//
// label7
//
this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@@ -1477,85 +1581,6 @@ namespace TemuKJD.WXForms.ProductForms
this.statusBar.Size = new System.Drawing.Size(1438, 25);
this.statusBar.TabIndex = 5;
//
// txtBatchEditNotes
//
this.txtBatchEditNotes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.txtBatchEditNotes.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.txtBatchEditNotes.Font = new System.Drawing.Font("微软雅黑", 10F);
this.txtBatchEditNotes.Location = new System.Drawing.Point(1216, 43);
this.txtBatchEditNotes.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtBatchEditNotes.Name = "txtBatchEditNotes";
this.txtBatchEditNotes.Size = new System.Drawing.Size(126, 25);
this.txtBatchEditNotes.TabIndex = 1226;
//
// btnBatchEditNotes
//
this.btnBatchEditNotes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnBatchEditNotes.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnBatchEditNotes.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnBatchEditNotes.DisabledBackColor = System.Drawing.Color.Empty;
this.btnBatchEditNotes.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnBatchEditNotes.Location = new System.Drawing.Point(1345, 43);
this.btnBatchEditNotes.Name = "btnBatchEditNotes";
this.btnBatchEditNotes.Size = new System.Drawing.Size(84, 25);
this.btnBatchEditNotes.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnBatchEditNotes.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnBatchEditNotes.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnBatchEditNotes.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnBatchEditNotes.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnBatchEditNotes.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnBatchEditNotes.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnBatchEditNotes.Style.GradientAngle = 90;
this.btnBatchEditNotes.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnBatchEditNotes.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnBatchEditNotes.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnBatchEditNotes.TabIndex = 1230;
this.btnBatchEditNotes.Text = "批量修改备注";
this.btnBatchEditNotes.Click += new System.EventHandler(this.btnBatchEditNotes_Click);
//
// dtpEnd
//
this.dtpEnd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.dtpEnd.CustomFormat = "yyyy-MM-dd HH:mm";
this.dtpEnd.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dtpEnd.Location = new System.Drawing.Point(237, 76);
this.dtpEnd.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.dtpEnd.Name = "dtpEnd";
this.dtpEnd.Size = new System.Drawing.Size(99, 23);
this.dtpEnd.TabIndex = 982;
//
// dtpStart
//
this.dtpStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.dtpStart.CustomFormat = "yyyy-MM-dd HH:mm";
this.dtpStart.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dtpStart.Location = new System.Drawing.Point(72, 76);
this.dtpStart.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.dtpStart.Name = "dtpStart";
this.dtpStart.Size = new System.Drawing.Size(99, 23);
this.dtpStart.TabIndex = 981;
//
// chkTime
//
this.chkTime.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.chkTime.Location = new System.Drawing.Point(3, 77);
this.chkTime.Name = "chkTime";
this.chkTime.Size = new System.Drawing.Size(66, 21);
this.chkTime.TabIndex = 980;
this.chkTime.Text = "开始时间";
this.chkTime.UseVisualStyleBackColor = true;
//
// label9
//
this.label9.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(181, 77);
this.label9.Margin = new System.Windows.Forms.Padding(3, 7, 0, 0);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(56, 17);
this.label9.TabIndex = 885;
this.label9.Text = "结束时间";
//
// WXUserCollectAuthProdListForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
@@ -1608,7 +1633,6 @@ namespace TemuKJD.WXForms.ProductForms
private System.Windows.Forms.Label label2;
private UserComponent.DataGridViewEx dgvDbProduct;
private System.Windows.Forms.PictureBox pbLoading;
private System.Windows.Forms.TextBox txtNotes;
private System.Windows.Forms.Label lblNotes;
private System.Windows.Forms.ComboBox cmbSort;
private System.Windows.Forms.Label label6;
@@ -1690,10 +1714,12 @@ namespace TemuKJD.WXForms.ProductForms
private System.Windows.Forms.DataGridViewLinkColumn col_delete;
private System.Windows.Forms.DataGridViewLinkColumn col_select_product;
private DevComponents.DotNetBar.PanelEx btnBatchEditNotes;
private System.Windows.Forms.TextBox txtBatchEditNotes;
private System.Windows.Forms.DateTimePicker dtpStart;
private System.Windows.Forms.DateTimePicker dtpEnd;
private UserComponent.UcCheckBox chkTime;
private System.Windows.Forms.Label label9;
private DevComponents.DotNetBar.PanelEx btnEditNotes;
public System.Windows.Forms.ComboBox cmbNotes;
public System.Windows.Forms.ComboBox cmbBatchEditNotes;
}
}
@@ -54,6 +54,13 @@ namespace TemuKJD.WXForms.ProductForms
dtpStart.Value = DateTime.Now.Date.AddMonths(-1);
dtpEnd.Value = DateTime.Now.Date.AddDays(1).AddSeconds(-1);
Task.Run(() =>
{
string addUserName = BaseClass.GroupId == 3 ? BaseClass.UserName : BaseClass.ParentUserName;
PDDDBProdListForm.GetPDDProductNotes(new List<ComboBox> { cmbNotes }, addUserName);
PDDDBProdListForm.GetPDDProductNotes(new List<ComboBox> { cmbBatchEditNotes }, addUserName);
});
//chkCatBoundLessThan.Visible = false;
//chkCatBoundMoreThan.Visible = false;
//tableLayoutPanel1.SetColumn(lblSourceType, 2);
@@ -198,7 +205,7 @@ namespace TemuKJD.WXForms.ProductForms
// 清除整个Bitmap为白色
g.Clear(Color.White);
}
foreach (var prod in lstTemuDbProduct)
foreach (var prod in lstTemuDbProduct.Reverse().ToList())
{
var catName = GetProdCateName(prod);
Invoke(new Action(() =>
@@ -379,7 +386,7 @@ namespace TemuKJD.WXForms.ProductForms
"&page_size=" + pageSize +
"&search_spu=" + string.Join(",", txtSPU.Text.Trim().Split(new string[] { ",", ",", " " }, StringSplitOptions.RemoveEmptyEntries).Select(s => s + collectAuthorityTag)) +
"&search_skc=" + txtSKC.Text.Trim() +
"&search_notes=" + txtNotes.Text.Trim() +
"&search_notes=" + cmbNotes.Text.Trim() +
"&search_ext_code=" + txtExtCode.Text.Trim() +
//"&search_group=" + cmbGroupFilter.Text.Trim() +
"&search_prod_name=" + txtProdName.Text.Trim() +
@@ -562,7 +569,7 @@ namespace TemuKJD.WXForms.ProductForms
this.txtProdName.Text = "";
this.txtSKC.Text = "";
this.txtSPU.Text = "";
this.txtNotes.Text = "";
this.cmbNotes.Text = "";
this.cmbGroupFilter.Text = "";
this.cmbSort.Text = "入库时间";
this.cmbSourceType.Text = "";
@@ -1204,8 +1211,10 @@ namespace TemuKJD.WXForms.ProductForms
private void btnBatchEditNotes_Click(object sender, EventArgs e)
{
var lstProdId = dgvDbProduct.Rows.Cast<DataGridViewRow>().Where(row
=> row.Cells["colSelect"]?.Value.ParseToBool() == true).Select(r => r.Cells["col_spu_id"]?.Value.ToString()).ToList();
var rows = dgvDbProduct.Rows.Cast<DataGridViewRow>().Where(row
=> row.Cells["colSelect"]?.Value.ParseToBool() == true);
var lstProdId = rows.Select(r => r.Cells["col_spu_id"]?.Value.ToString()).ToList();
string newNotes = this.cmbBatchEditNotes.Text.Trim();
if (BaseMsgForm.ShowConfirm("确定批量编辑备注吗?").DialogResult == DialogResult.Cancel)
return;
if (lstProdId.Count == 0)
@@ -1215,30 +1224,12 @@ namespace TemuKJD.WXForms.ProductForms
}
this.pbLoading.Visible = true;
//int total = 0, successCnt = 0, failCnt = 0;
Task.Run(() =>
{
var prodList = lstTemuDbProduct.Where(p => lstProdId.Contains(p.spu_id)).ToList();
//foreach (var dbProd in prodList)
//{
// total++;
// var url = BaseClass.BuildPDDObjString("product/mdy_db_product");
// var data = UserLogin.GetSignaturex() +
// "&db_id=" + dbProd.id + "&notes=" + this.txtBatchEditNotes.Text.Trim();
// var html = GetHtml.PostUtf8(url, data);
// if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
// {
// failCnt++;
// }
// else
// {
// successCnt++;
// }
// Thread.Sleep(100);
//}
var url = BaseClass.BuildPDDObjString("product/mdy_db_product");
var data = UserLogin.GetSignaturex() +
"&in_db_ids=" + string.Join(",", prodList.Select(p => p.id).ToList()) + "&notes=" + this.txtBatchEditNotes.Text.Trim();
"&in_db_ids=" + string.Join(",", prodList.Select(p => p.id).ToList()) + "&notes=" + newNotes;
var html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
{
@@ -1246,10 +1237,46 @@ namespace TemuKJD.WXForms.ProductForms
}
else
{
SearchDbProd(this.ucSplitPage1.CurrentPage);
BaseMsgForm.ShowInfo("修改完成");
//SearchDbProd(this.ucSplitPage1.CurrentPage);
//BaseMsgForm.ShowInfo("修改完成");
foreach (var prod in prodList)
{
prod.notes = newNotes;
}
foreach (var row in rows)
{
Invoke(new Action(() => { row.Cells["col_notes"].Value = newNotes; }));
}
if (!string.IsNullOrEmpty(newNotes))
{
string addUserName = BaseClass.GroupId == 3 ? BaseClass.UserName : BaseClass.ParentUserName;
PDDDBProdNotesManageFrom.AddProductNotes(newNotes, addUserName);
PDDDBProdListForm.GetPDDProductNotes(new List<ComboBox> { cmbNotes }, addUserName);
PDDDBProdListForm.GetPDDProductNotes(new List<ComboBox> { cmbBatchEditNotes }, addUserName);
}
}
Invoke(new Action(() =>
{
this.pbLoading.Visible = false;
}));
});
}
private void btnEditNotes_Click(object sender, EventArgs e)
{
string addUserName = BaseClass.GroupId == 3 ? BaseClass.UserName : BaseClass.ParentUserName;
PDDDBProdNotesManageFrom groupMf = new PDDDBProdNotesManageFrom(addUserName);
groupMf.ShowDialog();
PDDDBProdListForm.GetPDDProductNotes(new List<ComboBox> { cmbNotes }, addUserName);
PDDDBProdListForm.GetPDDProductNotes(new List<ComboBox> { cmbBatchEditNotes }, addUserName);
}
}
}