拼多多版权限管理 指定类目上传 ai图片上传权限管理

This commit is contained in:
wule committed 2026-05-06 18:24:59 +08:00
1 parent 58798805ed
commit ce23b0a49a
28 files changed
+1265 -483

No files matched your search

@@ -30,16 +30,19 @@ namespace TemuKJD.PDDForms.ProductSelectForms
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle89 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle90 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle91 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle92 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle93 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle94 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle95 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle96 = new System.Windows.Forms.DataGridViewCellStyle();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
this.cmbCatSelect3 = new System.Windows.Forms.ComboBox();
this.cmbCatSelect2 = new System.Windows.Forms.ComboBox();
this.cmbCatSelect1 = new System.Windows.Forms.ComboBox();
this.btnSeachPicUp = new DevComponents.DotNetBar.PanelEx();
this.btnApiUpload = new DevComponents.DotNetBar.PanelEx();
this.btnUpload = new DevComponents.DotNetBar.PanelEx();
@@ -62,13 +65,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.label7 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.chkUseExtCodePrice = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.pbUpgradeVersion = new System.Windows.Forms.PictureBox();
this.lblUpgradeVersion = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.txtUpgradeVersionAddPrice = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.txtUpgradeVersionName = new System.Windows.Forms.TextBox();
this.chkUpgradeVersion = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.btnStop = new DevComponents.DotNetBar.PanelEx();
this.chkKeepChanceGoodsImg = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.txtAddTimesFake = new System.Windows.Forms.TextBox();
@@ -97,6 +93,9 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.line1 = new DevComponents.DotNetBar.Controls.Line();
this.line2 = new DevComponents.DotNetBar.Controls.Line();
this.label26 = new System.Windows.Forms.Label();
this.chkAiImage = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.cmbCatSelect4 = new System.Windows.Forms.ComboBox();
this.chkSetCats = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.ucGroupBoxEx4 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
this.chkRelation = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.cmbCateFilter3 = new TemuKJD.UserComponent.UcComboBoxMutiSelect();
@@ -146,6 +145,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.colCanUse = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.colRemaining = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.txtUpgradeVersionName = new System.Windows.Forms.TextBox();
this.btnGetCats = new DevComponents.DotNetBar.PanelEx();
this.chkImgChanceTest = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.txtLowPriceSkuPrice = new System.Windows.Forms.TextBox();
this.panel2 = new System.Windows.Forms.Panel();
@@ -164,6 +165,12 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.lblLowPriceSkuImg = new System.Windows.Forms.Label();
this.label18 = new System.Windows.Forms.Label();
this.label19 = new System.Windows.Forms.Label();
this.chkUpgradeVersion = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.label5 = new System.Windows.Forms.Label();
this.txtUpgradeVersionAddPrice = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.pbUpgradeVersion = new System.Windows.Forms.PictureBox();
this.lblUpgradeVersion = new System.Windows.Forms.Label();
this.dgvSelectProduct = new TemuKJD.UserComponent.DataGridViewEx();
this.colCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.colSelectId = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -197,7 +204,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
this.ucGroupBoxEx2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pbUpgradeVersion)).BeginInit();
this.panel4.SuspendLayout();
this.panel3.SuspendLayout();
this.fPnlPriceRule.SuspendLayout();
@@ -216,6 +222,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
((System.ComponentModel.ISupportInitialize)(this.dgvShop)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pbSkuImg)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pbLoading)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pbUpgradeVersion)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dgvSelectProduct)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).BeginInit();
this.splitContainer4.Panel1.SuspendLayout();
@@ -250,6 +257,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms
| System.Windows.Forms.AnchorStyles.Right)));
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.cmbCatSelect2);
this.ucGroupBoxEx2.Controls.Add(this.cmbCatSelect1);
this.ucGroupBoxEx2.Controls.Add(this.btnSeachPicUp);
this.ucGroupBoxEx2.Controls.Add(this.btnApiUpload);
this.ucGroupBoxEx2.Controls.Add(this.btnUpload);
@@ -272,13 +281,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.ucGroupBoxEx2.Controls.Add(this.label7);
this.ucGroupBoxEx2.Controls.Add(this.label6);
this.ucGroupBoxEx2.Controls.Add(this.chkUseExtCodePrice);
this.ucGroupBoxEx2.Controls.Add(this.pbUpgradeVersion);
this.ucGroupBoxEx2.Controls.Add(this.lblUpgradeVersion);
this.ucGroupBoxEx2.Controls.Add(this.label3);
this.ucGroupBoxEx2.Controls.Add(this.txtUpgradeVersionAddPrice);
this.ucGroupBoxEx2.Controls.Add(this.label5);
this.ucGroupBoxEx2.Controls.Add(this.txtUpgradeVersionName);
this.ucGroupBoxEx2.Controls.Add(this.chkUpgradeVersion);
this.ucGroupBoxEx2.Controls.Add(this.btnStop);
this.ucGroupBoxEx2.Controls.Add(this.chkKeepChanceGoodsImg);
this.ucGroupBoxEx2.Controls.Add(this.txtAddTimesFake);
@@ -303,6 +305,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.ucGroupBoxEx2.Controls.Add(this.line1);
this.ucGroupBoxEx2.Controls.Add(this.line2);
this.ucGroupBoxEx2.Controls.Add(this.label26);
this.ucGroupBoxEx2.Controls.Add(this.chkAiImage);
this.ucGroupBoxEx2.Controls.Add(this.cmbCatSelect4);
this.ucGroupBoxEx2.Controls.Add(this.chkSetCats);
this.ucGroupBoxEx2.Controls.Add(this.cmbCatSelect3);
this.ucGroupBoxEx2.Location = new System.Drawing.Point(523, 2);
this.ucGroupBoxEx2.Name = "ucGroupBoxEx2";
this.ucGroupBoxEx2.Size = new System.Drawing.Size(1046, 140);
@@ -310,6 +316,42 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.ucGroupBoxEx2.TabStop = false;
this.ucGroupBoxEx2.Text = "商品上传";
//
// cmbCatSelect3
//
this.cmbCatSelect3.DropDownWidth = 150;
this.cmbCatSelect3.FormattingEnabled = true;
this.cmbCatSelect3.Location = new System.Drawing.Point(793, 106);
this.cmbCatSelect3.Name = "cmbCatSelect3";
this.cmbCatSelect3.Size = new System.Drawing.Size(97, 25);
this.cmbCatSelect3.TabIndex = 894;
this.cmbCatSelect3.Visible = false;
this.cmbCatSelect3.SelectedIndexChanged += new System.EventHandler(this.cmbCatSelect3_SelectedIndexChanged);
this.cmbCatSelect3.TextChanged += new System.EventHandler(this.cmbCatSelect3_TextChanged);
//
// cmbCatSelect2
//
this.cmbCatSelect2.DropDownWidth = 150;
this.cmbCatSelect2.FormattingEnabled = true;
this.cmbCatSelect2.Location = new System.Drawing.Point(696, 106);
this.cmbCatSelect2.Name = "cmbCatSelect2";
this.cmbCatSelect2.Size = new System.Drawing.Size(97, 25);
this.cmbCatSelect2.TabIndex = 893;
this.cmbCatSelect2.Visible = false;
this.cmbCatSelect2.SelectedIndexChanged += new System.EventHandler(this.cmbCatSelect2_SelectedIndexChanged);
this.cmbCatSelect2.TextChanged += new System.EventHandler(this.cmbCatSelect2_TextChanged);
//
// cmbCatSelect1
//
this.cmbCatSelect1.DropDownWidth = 150;
this.cmbCatSelect1.FormattingEnabled = true;
this.cmbCatSelect1.Location = new System.Drawing.Point(599, 106);
this.cmbCatSelect1.Name = "cmbCatSelect1";
this.cmbCatSelect1.Size = new System.Drawing.Size(97, 25);
this.cmbCatSelect1.TabIndex = 892;
this.cmbCatSelect1.Visible = false;
this.cmbCatSelect1.SelectedIndexChanged += new System.EventHandler(this.cmbCatSelect1_SelectedIndexChanged);
this.cmbCatSelect1.TextChanged += new System.EventHandler(this.cmbCatSelect1_TextChanged);
//
// btnSeachPicUp
//
this.btnSeachPicUp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
@@ -389,7 +431,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
// txtMultiPcsSku4
//
this.txtMultiPcsSku4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.txtMultiPcsSku4.Location = new System.Drawing.Point(849, 109);
this.txtMultiPcsSku4.Location = new System.Drawing.Point(849, 76);
this.txtMultiPcsSku4.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtMultiPcsSku4.Name = "txtMultiPcsSku4";
this.txtMultiPcsSku4.Size = new System.Drawing.Size(25, 23);
@@ -400,7 +442,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.label27.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label27.AutoSize = true;
this.label27.Location = new System.Drawing.Point(812, 112);
this.label27.Location = new System.Drawing.Point(812, 79);
this.label27.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label27.Name = "label27";
this.label27.Size = new System.Drawing.Size(41, 17);
@@ -409,7 +451,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
// txtMultiPcsSku3
//
this.txtMultiPcsSku3.Location = new System.Drawing.Point(787, 109);
this.txtMultiPcsSku3.Location = new System.Drawing.Point(787, 76);
this.txtMultiPcsSku3.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtMultiPcsSku3.Name = "txtMultiPcsSku3";
this.txtMultiPcsSku3.Size = new System.Drawing.Size(25, 23);
@@ -418,7 +460,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
// txtMultiPcsSku2
//
this.txtMultiPcsSku2.Location = new System.Drawing.Point(759, 109);
this.txtMultiPcsSku2.Location = new System.Drawing.Point(759, 76);
this.txtMultiPcsSku2.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtMultiPcsSku2.Name = "txtMultiPcsSku2";
this.txtMultiPcsSku2.Size = new System.Drawing.Size(25, 23);
@@ -427,7 +469,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
// txtMultiPcsSku1
//
this.txtMultiPcsSku1.Location = new System.Drawing.Point(725, 109);
this.txtMultiPcsSku1.Location = new System.Drawing.Point(725, 76);
this.txtMultiPcsSku1.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtMultiPcsSku1.Name = "txtMultiPcsSku1";
this.txtMultiPcsSku1.Size = new System.Drawing.Size(25, 23);
@@ -437,7 +479,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
// chkMultiPcsSku
//
this.chkMultiPcsSku.AutoSize = true;
this.chkMultiPcsSku.Location = new System.Drawing.Point(661, 110);
this.chkMultiPcsSku.Location = new System.Drawing.Point(661, 77);
this.chkMultiPcsSku.Name = "chkMultiPcsSku";
this.chkMultiPcsSku.Size = new System.Drawing.Size(71, 21);
this.chkMultiPcsSku.TabIndex = 866;
@@ -446,7 +488,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
// txtEndWords
//
this.txtEndWords.Location = new System.Drawing.Point(599, 109);
this.txtEndWords.Location = new System.Drawing.Point(599, 76);
this.txtEndWords.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtEndWords.Name = "txtEndWords";
this.txtEndWords.Size = new System.Drawing.Size(54, 23);
@@ -456,7 +498,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
// chkEndWords
//
this.chkEndWords.AutoSize = true;
this.chkEndWords.Location = new System.Drawing.Point(531, 110);
this.chkEndWords.Location = new System.Drawing.Point(531, 77);
this.chkEndWords.Name = "chkEndWords";
this.chkEndWords.Size = new System.Drawing.Size(75, 21);
this.chkEndWords.TabIndex = 864;
@@ -492,9 +534,9 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.cmbTextStyle.Items.AddRange(new object[] {
"双色字体",
"彩色字体"});
this.cmbTextStyle.Location = new System.Drawing.Point(849, 43);
this.cmbTextStyle.Location = new System.Drawing.Point(849, 40);
this.cmbTextStyle.Name = "cmbTextStyle";
this.cmbTextStyle.Size = new System.Drawing.Size(92, 25);
this.cmbTextStyle.Size = new System.Drawing.Size(75, 25);
this.cmbTextStyle.TabIndex = 851;
this.cmbTextStyle.Text = "双色字体";
this.cmbTextStyle.Visible = false;
@@ -503,7 +545,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
// label21
//
this.label21.AutoSize = true;
this.label21.Location = new System.Drawing.Point(827, 47);
this.label21.Location = new System.Drawing.Point(827, 44);
this.label21.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label21.Name = "label21";
this.label21.Size = new System.Drawing.Size(19, 17);
@@ -512,7 +554,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
// txtAlpha
//
this.txtAlpha.Location = new System.Drawing.Point(794, 44);
this.txtAlpha.Location = new System.Drawing.Point(794, 41);
this.txtAlpha.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtAlpha.Name = "txtAlpha";
this.txtAlpha.Size = new System.Drawing.Size(33, 23);
@@ -522,7 +564,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
// label13
//
this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(703, 47);
this.label13.Location = new System.Drawing.Point(703, 44);
this.label13.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(92, 17);
@@ -586,85 +628,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.chkUseExtCodePrice.UseVisualStyleBackColor = true;
this.chkUseExtCodePrice.CheckedChanged += new System.EventHandler(this.chkUseExtCodePrice_CheckedChanged);
//
// pbUpgradeVersion
//
this.pbUpgradeVersion.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pbUpgradeVersion.Location = new System.Drawing.Point(849, 80);
this.pbUpgradeVersion.Name = "pbUpgradeVersion";
this.pbUpgradeVersion.Size = new System.Drawing.Size(25, 25);
this.pbUpgradeVersion.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbUpgradeVersion.TabIndex = 706;
this.pbUpgradeVersion.TabStop = false;
this.pbUpgradeVersion.Click += new System.EventHandler(this.pbUpgradeVersion_Click);
//
// lblUpgradeVersion
//
this.lblUpgradeVersion.AutoSize = true;
this.lblUpgradeVersion.Cursor = System.Windows.Forms.Cursors.Hand;
this.lblUpgradeVersion.ForeColor = System.Drawing.SystemColors.HotTrack;
this.lblUpgradeVersion.Location = new System.Drawing.Point(795, 84);
this.lblUpgradeVersion.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.lblUpgradeVersion.Name = "lblUpgradeVersion";
this.lblUpgradeVersion.Size = new System.Drawing.Size(56, 17);
this.lblUpgradeVersion.TabIndex = 707;
this.lblUpgradeVersion.Text = "传叠加图";
this.lblUpgradeVersion.Click += new System.EventHandler(this.lblUpgradeVersion_Click);
//
// label3
//
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(780, 84);
this.label3.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(20, 17);
this.label3.TabIndex = 696;
this.label3.Text = "元";
//
// txtUpgradeVersionAddPrice
//
this.txtUpgradeVersionAddPrice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.txtUpgradeVersionAddPrice.Location = new System.Drawing.Point(749, 81);
this.txtUpgradeVersionAddPrice.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtUpgradeVersionAddPrice.Name = "txtUpgradeVersionAddPrice";
this.txtUpgradeVersionAddPrice.Size = new System.Drawing.Size(31, 23);
this.txtUpgradeVersionAddPrice.TabIndex = 695;
this.txtUpgradeVersionAddPrice.Text = "1.0";
this.txtUpgradeVersionAddPrice.TextChanged += new System.EventHandler(this.txtUpgradeVersionAddPrice_TextChanged);
//
// label5
//
this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(695, 84);
this.label5.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(56, 17);
this.label5.TabIndex = 694;
this.label5.Text = "额外多加";
//
// txtUpgradeVersionName
//
this.txtUpgradeVersionName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.txtUpgradeVersionName.Location = new System.Drawing.Point(607, 81);
this.txtUpgradeVersionName.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtUpgradeVersionName.Name = "txtUpgradeVersionName";
this.txtUpgradeVersionName.Size = new System.Drawing.Size(88, 23);
this.txtUpgradeVersionName.TabIndex = 693;
this.txtUpgradeVersionName.Text = "升级版";
this.txtUpgradeVersionName.TextChanged += new System.EventHandler(this.txtUpgradeVersionName_TextChanged);
//
// chkUpgradeVersion
//
this.chkUpgradeVersion.AutoSize = true;
this.chkUpgradeVersion.Location = new System.Drawing.Point(531, 82);
this.chkUpgradeVersion.Name = "chkUpgradeVersion";
this.chkUpgradeVersion.Size = new System.Drawing.Size(83, 21);
this.chkUpgradeVersion.TabIndex = 692;
this.chkUpgradeVersion.Text = "升级sku名";
this.chkUpgradeVersion.UseVisualStyleBackColor = true;
this.chkUpgradeVersion.CheckedChanged += new System.EventHandler(this.chkUpgradeVersion_CheckedChanged);
//
// btnStop
//
this.btnStop.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@@ -707,7 +670,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
// txtAddTimesFake
//
this.txtAddTimesFake.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.txtAddTimesFake.Location = new System.Drawing.Point(658, 44);
this.txtAddTimesFake.Location = new System.Drawing.Point(658, 41);
this.txtAddTimesFake.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtAddTimesFake.Name = "txtAddTimesFake";
this.txtAddTimesFake.Size = new System.Drawing.Size(26, 23);
@@ -718,7 +681,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
// chkActivity
//
this.chkActivity.AutoSize = true;
this.chkActivity.Location = new System.Drawing.Point(531, 45);
this.chkActivity.Location = new System.Drawing.Point(531, 42);
this.chkActivity.Name = "chkActivity";
this.chkActivity.Size = new System.Drawing.Size(135, 21);
this.chkActivity.TabIndex = 648;
@@ -730,7 +693,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.label17.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label17.AutoSize = true;
this.label17.Location = new System.Drawing.Point(684, 47);
this.label17.Location = new System.Drawing.Point(684, 44);
this.label17.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(20, 17);
@@ -1033,31 +996,65 @@ namespace TemuKJD.PDDForms.ProductSelectForms
// line1
//
this.line1.ForeColor = System.Drawing.SystemColors.ActiveCaption;
this.line1.Location = new System.Drawing.Point(530, 31);
this.line1.Location = new System.Drawing.Point(530, 30);
this.line1.Name = "line1";
this.line1.Size = new System.Drawing.Size(316, 10);
this.line1.Size = new System.Drawing.Size(422, 10);
this.line1.TabIndex = 836;
this.line1.Text = "line1";
//
// line2
//
this.line2.ForeColor = System.Drawing.SystemColors.ActiveCaption;
this.line2.Location = new System.Drawing.Point(531, 70);
this.line2.Location = new System.Drawing.Point(531, 64);
this.line2.Name = "line2";
this.line2.Size = new System.Drawing.Size(315, 10);
this.line2.Size = new System.Drawing.Size(421, 10);
this.line2.TabIndex = 837;
this.line2.Text = "line2";
//
// label26
//
this.label26.AutoSize = true;
this.label26.Location = new System.Drawing.Point(749, 113);
this.label26.Location = new System.Drawing.Point(749, 80);
this.label26.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label26.Name = "label26";
this.label26.Size = new System.Drawing.Size(13, 17);
this.label26.TabIndex = 869;
this.label26.Text = "-";
//
// chkAiImage
//
this.chkAiImage.AutoSize = true;
this.chkAiImage.Location = new System.Drawing.Point(930, 42);
this.chkAiImage.Name = "chkAiImage";
this.chkAiImage.Size = new System.Drawing.Size(62, 21);
this.chkAiImage.TabIndex = 891;
this.chkAiImage.Text = "Ai生图";
this.chkAiImage.UseVisualStyleBackColor = true;
this.chkAiImage.Visible = false;
//
// cmbCatSelect4
//
this.cmbCatSelect4.DropDownWidth = 150;
this.cmbCatSelect4.FormattingEnabled = true;
this.cmbCatSelect4.Location = new System.Drawing.Point(890, 106);
this.cmbCatSelect4.Name = "cmbCatSelect4";
this.cmbCatSelect4.Size = new System.Drawing.Size(97, 25);
this.cmbCatSelect4.TabIndex = 895;
this.cmbCatSelect4.Visible = false;
this.cmbCatSelect4.SelectedIndexChanged += new System.EventHandler(this.cmbCatSelect4_SelectedIndexChanged);
this.cmbCatSelect4.TextChanged += new System.EventHandler(this.cmbCatSelect4_TextChanged);
//
// chkSetCats
//
this.chkSetCats.AutoSize = true;
this.chkSetCats.Location = new System.Drawing.Point(531, 108);
this.chkSetCats.Name = "chkSetCats";
this.chkSetCats.Size = new System.Drawing.Size(75, 21);
this.chkSetCats.TabIndex = 896;
this.chkSetCats.Text = "指定类目";
this.chkSetCats.UseVisualStyleBackColor = true;
this.chkSetCats.Visible = false;
//
// ucGroupBoxEx4
//
this.ucGroupBoxEx4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
@@ -1617,9 +1614,9 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
// splitContainer2.Panel2
//
this.splitContainer2.Panel2.Controls.Add(this.chkImgChanceTest);
this.splitContainer2.Panel2.Controls.Add(this.txtUpgradeVersionName);
this.splitContainer2.Panel2.Controls.Add(this.btnGetCats);
this.splitContainer2.Panel2.Controls.Add(this.txtLowPriceSkuPrice);
this.splitContainer2.Panel2.Controls.Add(this.panel2);
this.splitContainer2.Panel2.Controls.Add(this.txtLowPriceSkuName);
this.splitContainer2.Panel2.Controls.Add(this.pbSkuImg);
this.splitContainer2.Panel2.Controls.Add(this.chk15996);
@@ -1635,6 +1632,13 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.splitContainer2.Panel2.Controls.Add(this.lblLowPriceSkuImg);
this.splitContainer2.Panel2.Controls.Add(this.label18);
this.splitContainer2.Panel2.Controls.Add(this.label19);
this.splitContainer2.Panel2.Controls.Add(this.chkUpgradeVersion);
this.splitContainer2.Panel2.Controls.Add(this.label5);
this.splitContainer2.Panel2.Controls.Add(this.txtUpgradeVersionAddPrice);
this.splitContainer2.Panel2.Controls.Add(this.label3);
this.splitContainer2.Panel2.Controls.Add(this.pbUpgradeVersion);
this.splitContainer2.Panel2.Controls.Add(this.lblUpgradeVersion);
this.splitContainer2.Panel2.Controls.Add(this.panel2);
this.splitContainer2.Panel2.Controls.Add(this.dgvSelectProduct);
this.splitContainer2.Panel2.Padding = new System.Windows.Forms.Padding(0, 0, 4, 0);
this.splitContainer2.Size = new System.Drawing.Size(1571, 372);
@@ -1657,19 +1661,19 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.dgvShop.AllowUserToAddRows = false;
this.dgvShop.AllowUserToDeleteRows = false;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
dataGridViewCellStyle89.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle89;
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)))));
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
dataGridViewCellStyle90.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle90.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle90.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle90.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle90.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle90.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle90.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle90;
this.dgvShop.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvShop.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.colSelect,
@@ -1783,11 +1787,48 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.colMessage.Name = "colMessage";
this.colMessage.ReadOnly = true;
//
// txtUpgradeVersionName
//
this.txtUpgradeVersionName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.txtUpgradeVersionName.Location = new System.Drawing.Point(97, 92);
this.txtUpgradeVersionName.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtUpgradeVersionName.Name = "txtUpgradeVersionName";
this.txtUpgradeVersionName.Size = new System.Drawing.Size(88, 23);
this.txtUpgradeVersionName.TabIndex = 693;
this.txtUpgradeVersionName.Text = "升级版";
this.txtUpgradeVersionName.Visible = false;
this.txtUpgradeVersionName.TextChanged += new System.EventHandler(this.txtUpgradeVersionName_TextChanged);
//
// btnGetCats
//
this.btnGetCats.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnGetCats.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnGetCats.DisabledBackColor = System.Drawing.Color.Empty;
this.btnGetCats.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnGetCats.Location = new System.Drawing.Point(6, 31);
this.btnGetCats.Name = "btnGetCats";
this.btnGetCats.Size = new System.Drawing.Size(83, 23);
this.btnGetCats.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnGetCats.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnGetCats.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnGetCats.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnGetCats.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnGetCats.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnGetCats.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnGetCats.Style.GradientAngle = 90;
this.btnGetCats.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnGetCats.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnGetCats.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnGetCats.TabIndex = 853;
this.btnGetCats.Text = "获取类目";
this.btnGetCats.Visible = false;
this.btnGetCats.Click += new System.EventHandler(this.btnGetCats_Click);
//
// chkImgChanceTest
//
this.chkImgChanceTest.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.chkImgChanceTest.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.chkImgChanceTest.AutoSize = true;
this.chkImgChanceTest.Location = new System.Drawing.Point(4, 348);
this.chkImgChanceTest.Location = new System.Drawing.Point(120, 2);
this.chkImgChanceTest.Name = "chkImgChanceTest";
this.chkImgChanceTest.Size = new System.Drawing.Size(99, 21);
this.chkImgChanceTest.TabIndex = 846;
@@ -1812,9 +1853,9 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel2.Location = new System.Drawing.Point(345, 254);
this.panel2.Location = new System.Drawing.Point(345, 217);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(881, 86);
this.panel2.Size = new System.Drawing.Size(881, 123);
this.panel2.TabIndex = 842;
//
// txtLowPriceSkuName
@@ -2013,23 +2054,97 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.label19.Text = "元";
this.label19.Visible = false;
//
// chkUpgradeVersion
//
this.chkUpgradeVersion.AutoSize = true;
this.chkUpgradeVersion.Location = new System.Drawing.Point(21, 93);
this.chkUpgradeVersion.Name = "chkUpgradeVersion";
this.chkUpgradeVersion.Size = new System.Drawing.Size(83, 21);
this.chkUpgradeVersion.TabIndex = 692;
this.chkUpgradeVersion.Text = "升级sku名";
this.chkUpgradeVersion.UseVisualStyleBackColor = true;
this.chkUpgradeVersion.Visible = false;
this.chkUpgradeVersion.CheckedChanged += new System.EventHandler(this.chkUpgradeVersion_CheckedChanged);
//
// label5
//
this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(185, 95);
this.label5.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(56, 17);
this.label5.TabIndex = 694;
this.label5.Text = "额外多加";
this.label5.Visible = false;
//
// txtUpgradeVersionAddPrice
//
this.txtUpgradeVersionAddPrice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.txtUpgradeVersionAddPrice.Location = new System.Drawing.Point(239, 92);
this.txtUpgradeVersionAddPrice.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtUpgradeVersionAddPrice.Name = "txtUpgradeVersionAddPrice";
this.txtUpgradeVersionAddPrice.Size = new System.Drawing.Size(31, 23);
this.txtUpgradeVersionAddPrice.TabIndex = 695;
this.txtUpgradeVersionAddPrice.Text = "1.0";
this.txtUpgradeVersionAddPrice.Visible = false;
this.txtUpgradeVersionAddPrice.TextChanged += new System.EventHandler(this.txtUpgradeVersionAddPrice_TextChanged);
//
// label3
//
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(270, 95);
this.label3.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(20, 17);
this.label3.TabIndex = 696;
this.label3.Text = "元";
this.label3.Visible = false;
//
// pbUpgradeVersion
//
this.pbUpgradeVersion.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pbUpgradeVersion.Location = new System.Drawing.Point(339, 91);
this.pbUpgradeVersion.Name = "pbUpgradeVersion";
this.pbUpgradeVersion.Size = new System.Drawing.Size(25, 25);
this.pbUpgradeVersion.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbUpgradeVersion.TabIndex = 706;
this.pbUpgradeVersion.TabStop = false;
this.pbUpgradeVersion.Visible = false;
this.pbUpgradeVersion.Click += new System.EventHandler(this.pbUpgradeVersion_Click);
//
// lblUpgradeVersion
//
this.lblUpgradeVersion.AutoSize = true;
this.lblUpgradeVersion.Cursor = System.Windows.Forms.Cursors.Hand;
this.lblUpgradeVersion.ForeColor = System.Drawing.SystemColors.HotTrack;
this.lblUpgradeVersion.Location = new System.Drawing.Point(285, 95);
this.lblUpgradeVersion.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.lblUpgradeVersion.Name = "lblUpgradeVersion";
this.lblUpgradeVersion.Size = new System.Drawing.Size(56, 17);
this.lblUpgradeVersion.TabIndex = 707;
this.lblUpgradeVersion.Text = "传叠加图";
this.lblUpgradeVersion.Visible = false;
this.lblUpgradeVersion.Click += new System.EventHandler(this.lblUpgradeVersion_Click);
//
// dgvSelectProduct
//
this.dgvSelectProduct.AllowUserToAddRows = false;
this.dgvSelectProduct.AllowUserToDeleteRows = false;
dataGridViewCellStyle3.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvSelectProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3;
dataGridViewCellStyle91.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvSelectProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle91;
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)))));
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvSelectProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;
dataGridViewCellStyle92.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle92.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle92.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle92.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle92.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle92.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle92.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvSelectProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle92;
this.dgvSelectProduct.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvSelectProduct.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.colCheck,
@@ -2091,8 +2206,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
// colSupplierName
//
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colSupplierName.DefaultCellStyle = dataGridViewCellStyle5;
dataGridViewCellStyle93.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colSupplierName.DefaultCellStyle = dataGridViewCellStyle93;
this.colSupplierName.Frozen = true;
this.colSupplierName.HeaderText = "店铺名称";
this.colSupplierName.Name = "colSupplierName";
@@ -2170,8 +2285,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
// colProductName
//
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colProductName.DefaultCellStyle = dataGridViewCellStyle6;
dataGridViewCellStyle94.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colProductName.DefaultCellStyle = dataGridViewCellStyle94;
this.colProductName.HeaderText = "商品标题";
this.colProductName.Name = "colProductName";
this.colProductName.ReadOnly = true;
@@ -2231,8 +2346,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
// colAddTime
//
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colAddTime.DefaultCellStyle = dataGridViewCellStyle7;
dataGridViewCellStyle95.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colAddTime.DefaultCellStyle = dataGridViewCellStyle95;
this.colAddTime.FillWeight = 80F;
this.colAddTime.HeaderText = "上传时间";
this.colAddTime.Name = "colAddTime";
@@ -2240,8 +2355,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
// colOpResult
//
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colOpResult.DefaultCellStyle = dataGridViewCellStyle8;
dataGridViewCellStyle96.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colOpResult.DefaultCellStyle = dataGridViewCellStyle96;
this.colOpResult.HeaderText = "操作结果";
this.colOpResult.Name = "colOpResult";
this.colOpResult.ReadOnly = true;
@@ -2262,8 +2377,9 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.splitContainer4.Panel2.Controls.Add(this.btnClear);
this.splitContainer4.Panel2.Controls.Add(this.panelEx1);
this.splitContainer4.Panel2.Controls.Add(this.chkImgChanceTest);
this.splitContainer4.Size = new System.Drawing.Size(1571, 26);
this.splitContainer4.SplitterDistance = 880;
this.splitContainer4.SplitterDistance = 1134;
this.splitContainer4.TabIndex = 3;
//
// statusBar
@@ -2274,7 +2390,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.statusBar.Location = new System.Drawing.Point(0, 0);
this.statusBar.Margin = new System.Windows.Forms.Padding(0);
this.statusBar.Name = "statusBar";
this.statusBar.Size = new System.Drawing.Size(880, 26);
this.statusBar.Size = new System.Drawing.Size(1134, 26);
this.statusBar.TabIndex = 2;
//
// btnClear
@@ -2284,7 +2400,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.btnClear.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnClear.DisabledBackColor = System.Drawing.Color.Empty;
this.btnClear.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnClear.Location = new System.Drawing.Point(475, 2);
this.btnClear.Location = new System.Drawing.Point(221, 2);
this.btnClear.Name = "btnClear";
this.btnClear.Size = new System.Drawing.Size(90, 21);
this.btnClear.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -2305,10 +2421,11 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
// panelEx1
//
this.panelEx1.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control;
this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty;
this.panelEx1.Location = new System.Drawing.Point(568, 2);
this.panelEx1.Location = new System.Drawing.Point(314, 2);
this.panelEx1.Name = "panelEx1";
this.panelEx1.Size = new System.Drawing.Size(115, 21);
this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -2357,7 +2474,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.splitContainer1.ResumeLayout(false);
this.ucGroupBoxEx2.ResumeLayout(false);
this.ucGroupBoxEx2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pbUpgradeVersion)).EndInit();
this.panel4.ResumeLayout(false);
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
@@ -2381,9 +2497,11 @@ namespace TemuKJD.PDDForms.ProductSelectForms
((System.ComponentModel.ISupportInitialize)(this.dgvShop)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pbSkuImg)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pbLoading)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pbUpgradeVersion)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dgvSelectProduct)).EndInit();
this.splitContainer4.Panel1.ResumeLayout(false);
this.splitContainer4.Panel2.ResumeLayout(false);
this.splitContainer4.Panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).EndInit();
this.splitContainer4.ResumeLayout(false);
this.ResumeLayout(false);
@@ -2546,5 +2664,12 @@ namespace TemuKJD.PDDForms.ProductSelectForms
private DevComponents.DotNetBar.PanelEx btnSeachPicUp;
private System.Windows.Forms.Panel panel2;
private UserComponent.UcCheckBox chkImgChanceTest;
private UserComponent.UcCheckBox chkAiImage;
private DevComponents.DotNetBar.PanelEx btnGetCats;
private System.Windows.Forms.ComboBox cmbCatSelect3;
private System.Windows.Forms.ComboBox cmbCatSelect2;
private System.Windows.Forms.ComboBox cmbCatSelect1;
private System.Windows.Forms.ComboBox cmbCatSelect4;
private UserComponent.UcCheckBox chkSetCats;
}
}
@@ -48,6 +48,15 @@ namespace TemuKJD.PDDForms.ProductSelectForms
public static string[] sneakersCatName { get; set; } = new string[] { "运动休闲鞋", "布鞋", "帆布鞋", "单鞋", "板鞋/休闲鞋", "广场舞鞋", "板鞋", "乐福鞋", "健步鞋",
"跑步鞋", "棉鞋", "高帮休闲鞋", "网面鞋", "勃肯鞋/软木鞋", "包头拖", "足部磨砂", "老爹鞋", "工装鞋", "豆豆鞋", "汉服鞋", "雨鞋" };
//public List<string> numbers = new List<string>() { "①", "②", "③", "④", "⑤", "⑥", "⑦", "⑧", "⑨", "⑩", "⑪", "⑫", "⑬", "⑭", "⑮", "⑯", "⑰", "⑱", "⑲", "⑳", "㉑ ㉒ ㉓ ㉔ ㉕ ㉖ ㉗ ㉘ ㉙ ㉚ ㉛ ㉜ ㉝ ㉞ ㉟ ㊱ ㊲ ㊳ ㊴ ㊵ ㊶ ㊷ ㊸ ㊹ ㊺ ㊻ ㊼ ㊽ ㊾ ㊿"};
public List<string> numbers = new List<string>() { "①", "②", "③", "④", "⑤", "⑥", "⑦", "⑧", "⑨", "①⓪", "①①", "①②", "①③", "①④", "①⑤", "①⑥", "①⑦", "①⑧", "①⑨", "②⓪",
"②①", "②②", "②③", "②④", "②⑤", "②⑥", "②⑦", "②⑧", "②⑨", "③⓪", "③①", "③②", "③③", "③④", "③⑤", "③⑥", "③⑦", "③⑧", "③⑨", "④⓪" };
public List<string> chineseNumbers = new List<string>() { "一", "二", "三", "四", "五", "六", "七", "八", "九", "十",
"十一", "十二", "十三", "十四", "十五", "十六", "十七", "十八", "十九", "二十", "二十一", "二十二", "二十三", "二十四", "二十五", "二十六", "二十七", "二十八", "二十九", "三十",
"三十一", "三十二", "三十三", "三十四", "三十五", "三十六", "三十七", "三十八", "三十九", "四十", "四十一", "四十二", "四十三", "四十四", "四十五", "四十六", "四十七", "四十八", "四十九", "五十" };
public CancellationTokenSource cancellationTokenSource { get; set; } = null;
public CancellationTokenSource getProdTokenSource { get; set; } = null;
public bool IsLoadComplate { get; set; } = false;
@@ -77,6 +86,20 @@ namespace TemuKJD.PDDForms.ProductSelectForms
{
chkImgChanceTest.Visible = true;
}
if (BaseClass.UserAuthority.Contains("Ai传图"))
chkAiImage.Visible = true;
if (BaseClass.UserAuthority.Contains("类目指定"))
{
chkSetCats.Visible = true;
cmbCatSelect1.Visible = true;
cmbCatSelect2.Visible = true;
cmbCatSelect3.Visible = true;
cmbCatSelect4.Visible = true;
foreach (var cat in GlobalConfig.PddCatList.Where(c => c.level == 1).ToList())
{
cmbCatSelect1.Items.Add(cat.cat_name);
}
}
//Task.Run(() => { InitPddToken(); });
//RefreshApi();
@@ -7179,6 +7202,26 @@ Content-Type: image/jpeg
PDDProductInfo prodInfo = null;
prodInfo = JsonHelper.DeserializeJsonToObject<PDDProductInfo>(dbProd.product_json);
if (BaseClass.UserAuthority.Contains("类目指定") && chkSetCats.Checked)
{
Invoke(new Action(() =>
{
var cat1 = GlobalConfig.PddCatList.FirstOrDefault(c => c.level == 1 && c.cat_name == cmbCatSelect1.Text);
if (cat1 == null) cat1 = new PddCatInfo() { level = 1 };
var cat2 = GlobalConfig.PddCatList.FirstOrDefault(c => c.level == 2 && c.parent_cat_id == cat1.cat_id && c.cat_name == cmbCatSelect2.Text);
if (cat2 == null) cat2 = new PddCatInfo() { level = 2 };
var cat3 = GlobalConfig.PddCatList.FirstOrDefault(c => c.level == 3 && c.parent_cat_id == cat2.cat_id && c.cat_name == cmbCatSelect3.Text);
if (cat3 == null) cat3 = new PddCatInfo() { level = 3 };
var cat4 = GlobalConfig.PddCatList.FirstOrDefault(c => c.level == 4 && c.parent_cat_id == cat3.cat_id && c.cat_name == cmbCatSelect4.Text);
if (cat4 == null) cat4 = new PddCatInfo() { level = 4 };
if (cat1.cat_id != 0) prodInfo.detail.cat_id = cat1.cat_id.ParseToInt();
if (cat2.cat_id != 0) prodInfo.detail.cat_id = cat2.cat_id.ParseToInt();
if (cat3.cat_id != 0) prodInfo.detail.cat_id = cat3.cat_id.ParseToInt();
if (cat4.cat_id != 0) prodInfo.detail.cat_id = cat4.cat_id.ParseToInt();
}));
}
var pddApi = new PddApi(shop);
#region 获取sku替换图
@@ -7219,6 +7262,7 @@ Content-Type: image/jpeg
// 主图
int cnt = 0;
string carousel_gallery = "";
List<string> carousel_gallery_lst = new List<string>();
foreach (var img in prodInfo.detail.galleries.Where(g => g.type == 1).ToList())
{
cnt++;
@@ -7251,6 +7295,7 @@ Content-Type: image/jpeg
return "主图上传失败 " + errMsg;
}
carousel_gallery += "\"" + BaseRegex.GetStringJson(ref pddUpImgApiRst, "image_url") + "\",";
carousel_gallery_lst.Add(BaseRegex.GetStringJson(ref pddUpImgApiRst, "image_url"));
//break;
}
@@ -7588,6 +7633,85 @@ Content-Type: image/jpeg
}
#endregion
#region AI生成sku图片
if (chkActivity.Checked && chkAiImage.Checked)
{
List<Task> tList = new List<Task>();
foreach (var sku in prodInfo.detail.sku)
{
while (tList.Count >= 10)
{
Thread.Sleep(500);
tList.RemoveAll(t => t.IsCanceled || t.IsFaulted || t.IsCompleted);
}
var tt = Task.Run(() =>
{
string image_url = sku.thumb_url;
string word = string.Join(" ", sku.spec.Select(s => s.spec_name).ToList()).Replace("无规格", "").Replace("默认规格", "").Trim(' ', ',');
string secret = "sadhjufhe15c4fbvFBvcvds+5sdfds@#%$xsc";
string time = BaseClass.DateTimeToTimestampSeconds(DateTime.Now).ToString();
string code = BaseClass.GetMd5(secret + time).ToLower();
try
{
//string url = "http://ai-bs.jiaotian.vip:" + Randomx.GetId(20010, 20021) + "/index.php?obj=public/image";
//http://svn.jiaotian.vip:20010-20020/index.php?obj=public/image
string url = "http://svn.jiaotian.vip:" + Randomx.GetId(20010, 20021) + "/index.php?obj=public/image";
string data = "time=" + time + "&code=" + code + "&image_url=" + image_url + "&word=" + word;
string html = GetHtml.PostUtf8(url, data, "", 120);
if (!string.IsNullOrEmpty(html) && !html.Contains("error"))
{
sku.thumb_url = html;
string errMsg = "";
var imgBase64 = PddGetActivitySkuImgBase64ForApi(out errMsg, html, null, null, 0.05f, "", null, 1200, 1200, true);
if (!string.IsNullOrEmpty(errMsg))
{
return "初始化Sku图片错误 " + errMsg;
}
var pddUpImgApi = new PddApi(shop);
pddUpImgApi.Data["image"] = "data:image/jpeg;base64," + imgBase64;
var pddUpImgApiRst = pddUpImgApi.PddGoodsImageUpload();
if (!pddUpImgApiRst.Contains("\"goods_image_upload_response\""))
pddUpImgApiRst = pddUpImgApi.PddGoodsImageUpload();
if (!pddUpImgApiRst.Contains("\"goods_image_upload_response\""))
{
errMsg = BaseRegex.GetStringJson(ref pddUpImgApiRst, "error_msg");
if (string.IsNullOrEmpty(errMsg))
errMsg = pddUpImgApiRst;
return "生成Sku图片错误 " + errMsg;
}
var thumb_url = BaseRegex.GetStringJson(ref pddUpImgApiRst, "image_url");
sku.thumb_url = thumb_url;
}
else
{
}
return html;
}
catch (Exception ex)
{
return "{\"code\":50001,\"msg\":\"" + ex.Message + "\"}";
}
});
tList.Add(tt);
}
while (tList.Count > 0)
{
Thread.Sleep(500);
tList.RemoveAll(t => t.IsCanceled || t.IsFaulted || t.IsCompleted);
}
// 重新设置ai主图
var newMainImgLst = prodInfo.detail.sku.Select(s => s.thumb_url).OrderBy(x => Guid.NewGuid()).ToList();
//newMainImgLst.AddRange(carousel_gallery_lst);
newMainImgLst = newMainImgLst.Take(10).ToList();
pddApi.Data["carousel_gallery"] = "[\"" + string.Join("\",\"", newMainImgLst) + "\"]";
}
#endregion
#region 生成一组高倍率加价后的sku
List<sku_item> addPriceFakeSkuInfoLst = new List<sku_item>();
Dictionary<string, string> skuFakeSpecNameDic1 = new Dictionary<string, string>();
@@ -7644,7 +7768,8 @@ Content-Type: image/jpeg
skuInfo.spec[0].spec_name = skuFakeSpecNameDic1[skuInfo.spec[0].spec_name];
else
{
skuFakeSpecNameDic1[skuInfo.spec[0].spec_name] = skuInfo.spec[0].parent_name + (skuFakeSpecNameDic1.Keys.Count + 1);
skuFakeSpecNameDic1[skuInfo.spec[0].spec_name] = skuInfo.spec[0].parent_name + chineseNumbers[skuFakeSpecNameDic1.Keys.Count];
//skuFakeSpecNameDic1[skuInfo.spec[0].spec_name] = skuInfo.spec[0].parent_name + (skuFakeSpecNameDic1.Keys.Count + 1);
//skuFakeSpecNameDic1[skuInfo.spec[0].spec_name] = skuInfo.spec[0].parent_name + (skuFakeSpecNameDic1.Keys.Count + 1) + " 请您下单";
//skuFakeSpecNameDic1[skuInfo.spec[0].spec_name] = /*skuInfo.spec[0].parent_name*/ "A00" + (skuFakeSpecNameDic1.Keys.Count + 1) + " 专柜品质 先生请下单";
skuInfo.spec[0].spec_name = skuFakeSpecNameDic1[skuInfo.spec[0].spec_name];
@@ -7656,10 +7781,21 @@ Content-Type: image/jpeg
skuInfo.spec[1].spec_name = skuFakeSpecNameDic2[skuInfo.spec[1].spec_name];
else
{
skuFakeSpecNameDic2[skuInfo.spec[1].spec_name] = "" + Randomx.GetId(50, 301) + "个 人买过 " + Randomx.GetId(3000, 12001) + "件 " +
skuInfo.spec[1].parent_name + (skuFakeSpecNameDic2.Keys.Count + 1);
//skuFakeSpecNameDic2[skuInfo.spec[1].spec_name] = "" + Randomx.GetId(300, 601) + "个 人买了 " + Randomx.GetId(3000, 12001) + "件 ";
skuInfo.spec[1].spec_name = skuFakeSpecNameDic2[skuInfo.spec[1].spec_name];
// 生成 xx个 人买过xx件 随机名称
if (!chkAiImage.Checked)
{
skuFakeSpecNameDic2[skuInfo.spec[1].spec_name] = "" + Randomx.GetId(50, 301) + "个 人买过 " + Randomx.GetId(3000, 12001) + "件 " +
skuInfo.spec[1].parent_name + (skuFakeSpecNameDic2.Keys.Count + 1);
//skuFakeSpecNameDic2[skuInfo.spec[1].spec_name] = "" + Randomx.GetId(300, 601) + "个 人买了 " + Randomx.GetId(3000, 12001) + "件 ";
skuInfo.spec[1].spec_name = skuFakeSpecNameDic2[skuInfo.spec[1].spec_name];
}
// 按规格生成名称
else
{
skuFakeSpecNameDic2[skuInfo.spec[1].spec_name] = skuInfo.spec[1].parent_name + chineseNumbers[skuFakeSpecNameDic2.Keys.Count];
//skuFakeSpecNameDic2[skuInfo.spec[1].spec_name] = skuInfo.spec[1].parent_name + (skuFakeSpecNameDic2.Keys.Count + 1);
skuInfo.spec[1].spec_name = skuFakeSpecNameDic2[skuInfo.spec[1].spec_name];
}
}
}
@@ -7738,7 +7874,7 @@ Content-Type: image/jpeg
#endregion
#region 生成属性规格id
if (dbProd.product_get_type_text == "厂商直采")
if (dbProd.product_get_type_text == "厂商直采" || chkActivity.Checked)
{
var apiGetPddSpecIdRst = ApiGetPddSpecId(shop, prodInfo, addPriceSkuInfoLst, cell);
if (!apiGetPddSpecIdRst.IsNullOrEmpty() && apiGetPddSpecIdRst != "success")
@@ -7761,7 +7897,8 @@ Content-Type: image/jpeg
#region 拼接sku,计算最高价格和最低价格
var skuApiString = "";
var apiGetSkuRst = ApiGetPddSku(ref skuApiString, shop, addPriceSkuInfoLst, fakeImg, skuFakeSpecNameDic1, skuFakeSpecNameDic2, cell);
var skuJson = JsonHelper.SerializeObject(addPriceSkuInfoLst);
var apiGetSkuRst = ApiGetPddSku(ref skuApiString, shop, addPriceSkuInfoLst, fakeImg, skuFakeSpecNameDic1, skuFakeSpecNameDic2, cell, false, chkAiImage.Checked);
if (!apiGetSkuRst.IsNullOrEmpty() && apiGetSkuRst != "success")
return apiGetSkuRst;
pddApi.Data["sku_list"] = "[" + skuApiString.Trim(',') + "]";
@@ -8138,7 +8275,8 @@ Content-Type: image/jpeg
//foreach (var spec_prop in prodInfo.property.sku_properties) ...
}
public static Bitmap PddGetActivitySkuImg(out string errorMsg, string img_url, Image fakeImg = null, Image imgUp = null, float alpha = 0.05f, string text = "", PddUploadRule uploadRule = null, int imgWidth = 0, int imgHeight = 0)
public static Bitmap PddGetActivitySkuImg(out string errorMsg, string img_url, Image fakeImg = null, Image imgUp = null, float alpha = 0.05f,
string text = "", PddUploadRule uploadRule = null, int imgWidth = 0, int imgHeight = 0, bool isZoom = false)
{
errorMsg = "";
string imgBase64 = "";
@@ -8178,7 +8316,30 @@ Content-Type: image/jpeg
//}
//x = (0.25 * imageBg.Width).ParseToInt();
//y = (0.25 * imageBg.Height).ParseToInt();
g.DrawImage(image, new Rectangle(x, y, (imageBg.Width * 1.0).ParseToInt(), (imageBg.Height * 1.0).ParseToInt()), 0, 0, image.Width, image.Height, GraphicsUnit.Pixel);
if (isZoom)
{
g.Clear(Color.Black);
var scale = 1.0m;
var newWidth = imageBg.Width;
var newHeight = imageBg.Height;
if (image.Width > image.Height)
{
scale = imageBg.Width * 1.0m / image.Width;
newHeight = (scale * image.Height).ParseToInt();
y += (imageBg.Height - newHeight) / 2;
}
else
{
scale = imageBg.Height * 1.0m / image.Height;
newWidth = (scale * image.Width).ParseToInt();
x += (imageBg.Width - newWidth) / 2;
}
g.DrawImage(image, new Rectangle(x, y, newWidth, newHeight), 0, 0, image.Width, image.Height, GraphicsUnit.Pixel);
}
else
g.DrawImage(image, new Rectangle(x, y, (imageBg.Width * 1.0).ParseToInt(), (imageBg.Height * 1.0).ParseToInt()), 0, 0, image.Width, image.Height, GraphicsUnit.Pixel);
//if (fakeImg != null)
//{
// g.RotateTransform((float)-3);
@@ -8375,13 +8536,14 @@ Content-Type: image/jpeg
}
}
public static string PddGetActivitySkuImgBase64ForApi(out string errorMsg, string img_url, Image fakeImg = null, Image imgUp = null, float alpha = 0.05f, string text = "", PddUploadRule uploadRule = null, int imgWidth = 0, int imgHeight = 0)
public static string PddGetActivitySkuImgBase64ForApi(out string errorMsg, string img_url, Image fakeImg = null, Image imgUp = null, float alpha = 0.05f,
string text = "", PddUploadRule uploadRule = null, int imgWidth = 0, int imgHeight = 0, bool isZoom = false)
{
errorMsg = "";
string imgBase64 = "";
try
{
var imageBg = PddGetActivitySkuImg(out errorMsg, img_url, fakeImg, imgUp, alpha, text, uploadRule);
var imageBg = PddGetActivitySkuImg(out errorMsg, img_url, fakeImg, imgUp, alpha, text, uploadRule, imgWidth, imgHeight, isZoom);
if (imageBg == null || !string.IsNullOrEmpty(errorMsg))
{
return null;
@@ -10260,7 +10422,7 @@ Content-Type: image/jpeg
}
private string ApiGetPddSku(ref string skuApiString, ShopLoginInfo shop, List<sku_item> addPriceSkuInfoLst, Image fakeImg,
Dictionary<string, string> skuFakeSpecNameDic1, Dictionary<string, string> skuFakeSpecNameDic2, DataGridViewCell cell, bool isEdit = false)
Dictionary<string, string> skuFakeSpecNameDic1, Dictionary<string, string> skuFakeSpecNameDic2, DataGridViewCell cell, bool isEdit = false, bool isAiImage = false)
{
Dictionary<string, string> skuImgDic = new Dictionary<string, string>();
// 拼接sku,计算最高价格和最低价格
@@ -10284,7 +10446,7 @@ Content-Type: image/jpeg
string errMsg = "";
var imgBase64 = "";
float alpha = Math.Min(100, Math.Max(1, txtAlpha.Text.ParseToInt())) / 100f;
if (chkActivity.Checked)
if (chkActivity.Checked && !isAiImage)
{
//skuFakeSpecNameDic1
var text1 = skuFakeSpecNameDic1.FirstOrDefault(s => s.Value == addPriceSkuInfoLst[i].spec[0].spec_name).Key;
@@ -10322,6 +10484,7 @@ Content-Type: image/jpeg
thumb_url = BaseRegex.GetStringJson(ref pddUpImgApiRst, "image_url");
skuImgDic[addPriceSkuInfoLst[i].thumb_url] = thumb_url;
}
//addPriceSkuInfoLst[i].thumb_url = thumb_url;
int weight = addPriceSkuInfoLst[i].weight.IsNullOrZero() ? 1000 : addPriceSkuInfoLst[i].weight.ParseToInt();
@@ -10409,6 +10572,132 @@ Content-Type: image/jpeg
}));
}
}
private void btnGetCats_Click(object sender, EventArgs e)
{
var shopId = dgvShop.Rows.Cast<DataGridViewRow>().Where(row
=> row.Cells["colSelect"]?.Value.ParseToBool() == true).Select(r => r.Cells["colShopId"]?.Value.ToString()).ToList().FirstOrDefault();
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
if (shop == null)
return;
List<PddCatInfo> pddCatsInfoLst = new List<PddCatInfo>();
var pddApi = new PddApi(shop);
pddApi.Data["parent_cat_id"] = 0;
var rst = pddApi.PddGoodsCatsGet();
if (!rst.Contains("goods_cats_get_response"))
{
}
var jObj = JsonHelper.JObjectParse(rst)["goods_cats_get_response"]["goods_cats_list"];
pddCatsInfoLst.AddRange(JsonHelper.DeserializeJsonToList<PddCatInfo>(jObj.ParseToString()));
foreach (var cat in pddCatsInfoLst.Where(c => c.level == 1).ToList())
{
pddApi.Data["parent_cat_id"] = cat.cat_id;
rst = pddApi.PddGoodsCatsGet();
if (!rst.Contains("goods_cats_get_response"))
{
}
jObj = JsonHelper.JObjectParse(rst)["goods_cats_get_response"]["goods_cats_list"];
pddCatsInfoLst.AddRange(JsonHelper.DeserializeJsonToList<PddCatInfo>(jObj.ParseToString()));
}
foreach (var cat in pddCatsInfoLst.Where(c => c.level == 2).ToList())
{
pddApi.Data["parent_cat_id"] = cat.cat_id;
rst = pddApi.PddGoodsCatsGet();
if (!rst.Contains("goods_cats_get_response"))
{
}
jObj = JsonHelper.JObjectParse(rst)["goods_cats_get_response"]["goods_cats_list"];
pddCatsInfoLst.AddRange(JsonHelper.DeserializeJsonToList<PddCatInfo>(jObj.ParseToString()));
}
foreach (var cat in pddCatsInfoLst.Where(c => c.level == 3).ToList())
{
pddApi.Data["parent_cat_id"] = cat.cat_id;
rst = pddApi.PddGoodsCatsGet();
if (!rst.Contains("goods_cats_get_response"))
{
}
jObj = JsonHelper.JObjectParse(rst)["goods_cats_get_response"]["goods_cats_list"];
pddCatsInfoLst.AddRange(JsonHelper.DeserializeJsonToList<PddCatInfo>(jObj.ParseToString()));
}
foreach (var cat in pddCatsInfoLst)
{
if (cat.level == 4 || !pddCatsInfoLst.Any(c => c.parent_cat_id == cat.cat_id))
cat.is_leaf = true;
}
var catStr = JsonHelper.SerializeObject(pddCatsInfoLst);
}
private void cmbCatSelect1_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void cmbCatSelect2_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void cmbCatSelect3_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void cmbCatSelect4_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void cmbCatSelect1_TextChanged(object sender, EventArgs e)
{
cmbCatSelect2.Items.Clear();
var cat1 = GlobalConfig.PddCatList.FirstOrDefault(c => c.level == 1 && c.cat_name == cmbCatSelect1.Text);
if (cat1 == null)
return;
foreach (var cat in GlobalConfig.PddCatList.Where(c => c.parent_cat_id == cat1.cat_id))
{
cmbCatSelect2.Items.Add(cat.cat_name);
}
}
private void cmbCatSelect2_TextChanged(object sender, EventArgs e)
{
cmbCatSelect3.Items.Clear();
var cat1 = GlobalConfig.PddCatList.FirstOrDefault(c => c.level == 1 && c.cat_name == cmbCatSelect1.Text);
if (cat1 == null)
return;
var cat2 = GlobalConfig.PddCatList.FirstOrDefault(c => c.level == 2 && c.parent_cat_id == cat1.cat_id && c.cat_name == cmbCatSelect2.Text);
if (cat2 == null)
return;
foreach (var cat in GlobalConfig.PddCatList.Where(c => c.parent_cat_id == cat2.cat_id))
{
cmbCatSelect3.Items.Add(cat.cat_name);
}
}
private void cmbCatSelect3_TextChanged(object sender, EventArgs e)
{
cmbCatSelect4.Items.Clear();
var cat1 = GlobalConfig.PddCatList.FirstOrDefault(c => c.level == 1 && c.cat_name == cmbCatSelect1.Text);
if (cat1 == null)
return;
var cat2 = GlobalConfig.PddCatList.FirstOrDefault(c => c.level == 2 && c.parent_cat_id == cat1.cat_id && c.cat_name == cmbCatSelect2.Text);
if (cat2 == null)
return;
var cat3 = GlobalConfig.PddCatList.FirstOrDefault(c => c.level == 3 && c.parent_cat_id == cat2.cat_id && c.cat_name == cmbCatSelect3.Text);
if (cat3 == null)
return;
foreach (var cat in GlobalConfig.PddCatList.Where(c => c.parent_cat_id == cat3.cat_id))
{
cmbCatSelect4.Items.Add(cat.cat_name);
}
}
private void cmbCatSelect4_TextChanged(object sender, EventArgs e)
{
}
}
public class AddPriceRule