1temu用户选择商品三个表及数据库id映射draftid分表操作 2拼多多读取商品显示总数 3temu可以修改单店备注
This commit is contained in:
1 parent
a61b8786d1
commit
4fd2a4d579
47 files changed
+2146
-1042
No files matched your search
+145
-45
@@ -42,11 +42,14 @@
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ProductThirdSelectListManageForm));
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.numMaxWaitSecond = new System.Windows.Forms.NumericUpDown();
|
||||
this.btnForceEnable = new DevComponents.DotNetBar.PanelEx();
|
||||
this.label22 = new System.Windows.Forms.Label();
|
||||
this.pbFissionSetting = new System.Windows.Forms.PictureBox();
|
||||
this.btnSearch = new DevComponents.DotNetBar.PanelEx();
|
||||
this.label14 = new System.Windows.Forms.Label();
|
||||
this.btnSetSubSa = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnAdd = new DevComponents.DotNetBar.PanelEx();
|
||||
this.pbFissionSetting = new System.Windows.Forms.PictureBox();
|
||||
this.btnReFission = new DevComponents.DotNetBar.PanelEx();
|
||||
this.chkShowDel = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.chkNoSubSa = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
@@ -111,6 +114,7 @@
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.txtProdName = new System.Windows.Forms.TextBox();
|
||||
this.lblUserNotes = new System.Windows.Forms.Label();
|
||||
this.chkUseGlobalFissionSetting = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
|
||||
this.pbLoading = new System.Windows.Forms.PictureBox();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
@@ -131,6 +135,7 @@
|
||||
this.colLogin = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colImportCookies = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colCopyCookies = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colProdGetType = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colSpuId = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colSkcId = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colImgUrl = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -155,6 +160,7 @@
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
this.splitContainer1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numMaxWaitSecond)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pbFissionSetting)).BeginInit();
|
||||
this.flowLayoutPanel1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numSkuRandomPrice)).BeginInit();
|
||||
@@ -192,11 +198,14 @@
|
||||
//
|
||||
// splitContainer1.Panel1
|
||||
//
|
||||
this.splitContainer1.Panel1.Controls.Add(this.numMaxWaitSecond);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.btnForceEnable);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.label22);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.pbFissionSetting);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.btnSearch);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.label14);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.btnSetSubSa);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.btnAdd);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.pbFissionSetting);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.btnReFission);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.chkShowDel);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.chkNoSubSa);
|
||||
@@ -228,14 +237,90 @@
|
||||
this.splitContainer1.Panel1.Controls.Add(this.btnExport);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.btnDel);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.tableLayoutPanel1);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.chkUseGlobalFissionSetting);
|
||||
//
|
||||
// splitContainer1.Panel2
|
||||
//
|
||||
this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(1518, 638);
|
||||
this.splitContainer1.SplitterDistance = 96;
|
||||
this.splitContainer1.SplitterDistance = 120;
|
||||
this.splitContainer1.TabIndex = 2;
|
||||
//
|
||||
// numMaxWaitSecond
|
||||
//
|
||||
this.numMaxWaitSecond.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.numMaxWaitSecond.Font = new System.Drawing.Font("微软雅黑", 8F);
|
||||
this.numMaxWaitSecond.Location = new System.Drawing.Point(1328, 68);
|
||||
this.numMaxWaitSecond.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
|
||||
this.numMaxWaitSecond.Maximum = new decimal(new int[] {
|
||||
500,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.numMaxWaitSecond.Minimum = new decimal(new int[] {
|
||||
100,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.numMaxWaitSecond.Name = "numMaxWaitSecond";
|
||||
this.numMaxWaitSecond.Size = new System.Drawing.Size(38, 22);
|
||||
this.numMaxWaitSecond.TabIndex = 780;
|
||||
this.numMaxWaitSecond.Value = new decimal(new int[] {
|
||||
120,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.numMaxWaitSecond.ValueChanged += new System.EventHandler(this.numMaxWaitSecond_ValueChanged);
|
||||
//
|
||||
// btnForceEnable
|
||||
//
|
||||
this.btnForceEnable.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnForceEnable.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.btnForceEnable.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnForceEnable.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnForceEnable.Location = new System.Drawing.Point(1370, 67);
|
||||
this.btnForceEnable.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2);
|
||||
this.btnForceEnable.Name = "btnForceEnable";
|
||||
this.btnForceEnable.Size = new System.Drawing.Size(144, 24);
|
||||
this.btnForceEnable.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnForceEnable.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.btnForceEnable.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.btnForceEnable.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.btnForceEnable.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnForceEnable.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.btnForceEnable.Style.GradientAngle = 90;
|
||||
this.btnForceEnable.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnForceEnable.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnForceEnable.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnForceEnable.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnForceEnable.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnForceEnable.TabIndex = 778;
|
||||
this.btnForceEnable.Text = "强制解锁(上传卡住时用)";
|
||||
this.btnForceEnable.Click += new System.EventHandler(this.btnForceEnable_Click);
|
||||
//
|
||||
// label22
|
||||
//
|
||||
this.label22.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label22.AutoSize = true;
|
||||
this.label22.Location = new System.Drawing.Point(1251, 71);
|
||||
this.label22.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label22.Name = "label22";
|
||||
this.label22.Size = new System.Drawing.Size(88, 17);
|
||||
this.label22.TabIndex = 779;
|
||||
this.label22.Text = "超时跳过(秒):";
|
||||
//
|
||||
// pbFissionSetting
|
||||
//
|
||||
this.pbFissionSetting.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.pbFissionSetting.Image = global::TemuKJD.Properties.Resources.齿轮;
|
||||
this.pbFissionSetting.Location = new System.Drawing.Point(1228, 68);
|
||||
this.pbFissionSetting.Name = "pbFissionSetting";
|
||||
this.pbFissionSetting.Size = new System.Drawing.Size(22, 22);
|
||||
this.pbFissionSetting.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
this.pbFissionSetting.TabIndex = 191;
|
||||
this.pbFissionSetting.TabStop = false;
|
||||
this.pbFissionSetting.Click += new System.EventHandler(this.pbFissionSetting_Click);
|
||||
//
|
||||
// btnSearch
|
||||
//
|
||||
this.btnSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
@@ -265,12 +350,12 @@
|
||||
//
|
||||
this.label14.AutoSize = true;
|
||||
this.label14.ForeColor = System.Drawing.SystemColors.MenuHighlight;
|
||||
this.label14.Location = new System.Drawing.Point(959, 71);
|
||||
this.label14.Location = new System.Drawing.Point(3, 98);
|
||||
this.label14.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label14.Name = "label14";
|
||||
this.label14.Size = new System.Drawing.Size(307, 17);
|
||||
this.label14.Size = new System.Drawing.Size(235, 17);
|
||||
this.label14.TabIndex = 640;
|
||||
this.label14.Text = "备注:新的商品上传货号为固定前缀 EC + 上家商品SKC";
|
||||
this.label14.Text = "备注:上传货号为固定前缀 EC + 上家SKC";
|
||||
//
|
||||
// btnSetSubSa
|
||||
//
|
||||
@@ -322,19 +407,6 @@
|
||||
this.btnAdd.Text = "一键上传";
|
||||
this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
|
||||
//
|
||||
// pbFissionSetting
|
||||
//
|
||||
this.pbFissionSetting.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.pbFissionSetting.Image = global::TemuKJD.Properties.Resources.齿轮;
|
||||
this.pbFissionSetting.Location = new System.Drawing.Point(1164, 38);
|
||||
this.pbFissionSetting.Name = "pbFissionSetting";
|
||||
this.pbFissionSetting.Size = new System.Drawing.Size(24, 24);
|
||||
this.pbFissionSetting.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
this.pbFissionSetting.TabIndex = 191;
|
||||
this.pbFissionSetting.TabStop = false;
|
||||
this.pbFissionSetting.Visible = false;
|
||||
this.pbFissionSetting.Click += new System.EventHandler(this.pbFissionSetting_Click);
|
||||
//
|
||||
// btnReFission
|
||||
//
|
||||
this.btnReFission.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
@@ -342,9 +414,9 @@
|
||||
this.btnReFission.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnReFission.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnReFission.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnReFission.Location = new System.Drawing.Point(1188, 38);
|
||||
this.btnReFission.Location = new System.Drawing.Point(1164, 38);
|
||||
this.btnReFission.Name = "btnReFission";
|
||||
this.btnReFission.Size = new System.Drawing.Size(62, 24);
|
||||
this.btnReFission.Size = new System.Drawing.Size(86, 24);
|
||||
this.btnReFission.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnReFission.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnReFission.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
@@ -357,7 +429,7 @@
|
||||
this.btnReFission.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnReFission.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnReFission.TabIndex = 449;
|
||||
this.btnReFission.Text = "重组标题";
|
||||
this.btnReFission.Text = "批量重组标题";
|
||||
this.btnReFission.Click += new System.EventHandler(this.btnReFission_Click);
|
||||
//
|
||||
// chkShowDel
|
||||
@@ -1265,6 +1337,21 @@
|
||||
this.lblUserNotes.TabIndex = 460;
|
||||
this.lblUserNotes.Text = "用户备注";
|
||||
//
|
||||
// chkUseGlobalFissionSetting
|
||||
//
|
||||
this.chkUseGlobalFissionSetting.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkUseGlobalFissionSetting.AutoSize = true;
|
||||
this.chkUseGlobalFissionSetting.Checked = true;
|
||||
this.chkUseGlobalFissionSetting.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.chkUseGlobalFissionSetting.Enabled = false;
|
||||
this.chkUseGlobalFissionSetting.Location = new System.Drawing.Point(1163, 60);
|
||||
this.chkUseGlobalFissionSetting.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.chkUseGlobalFissionSetting.Name = "chkUseGlobalFissionSetting";
|
||||
this.chkUseGlobalFissionSetting.Size = new System.Drawing.Size(75, 38);
|
||||
this.chkUseGlobalFissionSetting.TabIndex = 774;
|
||||
this.chkUseGlobalFissionSetting.Text = "使用全局\r\n重组标题";
|
||||
this.chkUseGlobalFissionSetting.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// splitContainer2
|
||||
//
|
||||
this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
@@ -1284,15 +1371,15 @@
|
||||
//
|
||||
this.splitContainer2.Panel2.Controls.Add(this.ucSplitPage1);
|
||||
this.splitContainer2.Panel2.Controls.Add(this.statusBar);
|
||||
this.splitContainer2.Size = new System.Drawing.Size(1518, 538);
|
||||
this.splitContainer2.SplitterDistance = 509;
|
||||
this.splitContainer2.Size = new System.Drawing.Size(1518, 514);
|
||||
this.splitContainer2.SplitterDistance = 485;
|
||||
this.splitContainer2.TabIndex = 0;
|
||||
//
|
||||
// pbLoading
|
||||
//
|
||||
this.pbLoading.Anchor = System.Windows.Forms.AnchorStyles.None;
|
||||
this.pbLoading.Image = global::TemuKJD.Properties.Resources.loading_blue;
|
||||
this.pbLoading.Location = new System.Drawing.Point(734, 227);
|
||||
this.pbLoading.Location = new System.Drawing.Point(734, 215);
|
||||
this.pbLoading.Name = "pbLoading";
|
||||
this.pbLoading.Size = new System.Drawing.Size(50, 50);
|
||||
this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
@@ -1450,6 +1537,7 @@
|
||||
this.colLogin,
|
||||
this.colImportCookies,
|
||||
this.colCopyCookies,
|
||||
this.colProdGetType,
|
||||
this.colSpuId,
|
||||
this.colSkcId,
|
||||
this.colImgUrl,
|
||||
@@ -1474,7 +1562,7 @@
|
||||
this.dgvSelectProduct.ReadOnly = true;
|
||||
this.dgvSelectProduct.RowHeadersWidth = 40;
|
||||
this.dgvSelectProduct.RowTemplate.Height = 23;
|
||||
this.dgvSelectProduct.Size = new System.Drawing.Size(1510, 509);
|
||||
this.dgvSelectProduct.Size = new System.Drawing.Size(1510, 485);
|
||||
this.dgvSelectProduct.TabIndex = 190;
|
||||
this.dgvSelectProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvSelectProduct_CellContentClick);
|
||||
this.dgvSelectProduct.Scroll += new System.Windows.Forms.ScrollEventHandler(this.dgvSelectProduct_Scroll);
|
||||
@@ -1501,7 +1589,7 @@
|
||||
this.colSupplierId.HeaderText = "店铺Id";
|
||||
this.colSupplierId.Name = "colSupplierId";
|
||||
this.colSupplierId.ReadOnly = true;
|
||||
this.colSupplierId.Width = 120;
|
||||
this.colSupplierId.Width = 115;
|
||||
//
|
||||
// colSupplierName
|
||||
//
|
||||
@@ -1510,7 +1598,6 @@
|
||||
this.colSupplierName.HeaderText = "店铺名称";
|
||||
this.colSupplierName.Name = "colSupplierName";
|
||||
this.colSupplierName.ReadOnly = true;
|
||||
this.colSupplierName.Width = 110;
|
||||
//
|
||||
// colInShop
|
||||
//
|
||||
@@ -1528,21 +1615,28 @@
|
||||
//
|
||||
// colImportCookies
|
||||
//
|
||||
this.colImportCookies.HeaderText = "导入Cookie";
|
||||
this.colImportCookies.HeaderText = "导入Cook";
|
||||
this.colImportCookies.Name = "colImportCookies";
|
||||
this.colImportCookies.ReadOnly = true;
|
||||
this.colImportCookies.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colImportCookies.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.colImportCookies.Width = 80;
|
||||
this.colImportCookies.Width = 70;
|
||||
//
|
||||
// colCopyCookies
|
||||
//
|
||||
this.colCopyCookies.HeaderText = "复制Cookie";
|
||||
this.colCopyCookies.HeaderText = "复制Cook";
|
||||
this.colCopyCookies.Name = "colCopyCookies";
|
||||
this.colCopyCookies.ReadOnly = true;
|
||||
this.colCopyCookies.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colCopyCookies.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.colCopyCookies.Width = 80;
|
||||
this.colCopyCookies.Width = 70;
|
||||
//
|
||||
// colProdGetType
|
||||
//
|
||||
this.colProdGetType.HeaderText = "商品来源";
|
||||
this.colProdGetType.Name = "colProdGetType";
|
||||
this.colProdGetType.ReadOnly = true;
|
||||
this.colProdGetType.Width = 62;
|
||||
//
|
||||
// colSpuId
|
||||
//
|
||||
@@ -1585,7 +1679,7 @@
|
||||
this.colProductName.HeaderText = "商品标题";
|
||||
this.colProductName.Name = "colProductName";
|
||||
this.colProductName.ReadOnly = true;
|
||||
this.colProductName.Width = 160;
|
||||
this.colProductName.Width = 150;
|
||||
//
|
||||
// colProductCat
|
||||
//
|
||||
@@ -1596,14 +1690,14 @@
|
||||
this.colProductCat.ReadOnly = true;
|
||||
this.colProductCat.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colProductCat.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.colProductCat.Width = 72;
|
||||
this.colProductCat.Width = 70;
|
||||
//
|
||||
// colExtCode
|
||||
//
|
||||
this.colExtCode.HeaderText = "商品货号";
|
||||
this.colExtCode.Name = "colExtCode";
|
||||
this.colExtCode.ReadOnly = true;
|
||||
this.colExtCode.Width = 125;
|
||||
this.colExtCode.Width = 122;
|
||||
//
|
||||
// colStatus
|
||||
//
|
||||
@@ -1628,7 +1722,7 @@
|
||||
this.colAddTime.HeaderText = "添加时间";
|
||||
this.colAddTime.Name = "colAddTime";
|
||||
this.colAddTime.ReadOnly = true;
|
||||
this.colAddTime.Width = 65;
|
||||
this.colAddTime.Width = 62;
|
||||
//
|
||||
// colMdyTime
|
||||
//
|
||||
@@ -1637,7 +1731,7 @@
|
||||
this.colMdyTime.HeaderText = "上传时间";
|
||||
this.colMdyTime.Name = "colMdyTime";
|
||||
this.colMdyTime.ReadOnly = true;
|
||||
this.colMdyTime.Width = 65;
|
||||
this.colMdyTime.Width = 62;
|
||||
//
|
||||
// colSubSa
|
||||
//
|
||||
@@ -1677,7 +1771,7 @@
|
||||
this.colEditNotes.ReadOnly = true;
|
||||
this.colEditNotes.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colEditNotes.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.colEditNotes.Width = 62;
|
||||
this.colEditNotes.Width = 38;
|
||||
//
|
||||
// ColDelete
|
||||
//
|
||||
@@ -1737,6 +1831,7 @@
|
||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
|
||||
this.splitContainer1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.numMaxWaitSecond)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pbFissionSetting)).EndInit();
|
||||
this.flowLayoutPanel1.ResumeLayout(false);
|
||||
this.flowLayoutPanel1.PerformLayout();
|
||||
@@ -1846,6 +1941,17 @@
|
||||
private System.Windows.Forms.Panel panel2;
|
||||
private UserComponent.DataGridViewEx dgvMapDraftIds;
|
||||
private UserComponent.UcCheckBox chkSkuRandomLetter;
|
||||
private DevComponents.DotNetBar.PanelEx panelEx1;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn dataGridViewCheckBoxColumn1;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colMapId;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colMapShopId;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colMapDraftId;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colToPorductPage;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colToDraftPage;
|
||||
private UserComponent.UcCheckBox chkUseGlobalFissionSetting;
|
||||
private System.Windows.Forms.NumericUpDown numMaxWaitSecond;
|
||||
private DevComponents.DotNetBar.PanelEx btnForceEnable;
|
||||
private System.Windows.Forms.Label label22;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colSelectId;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colSupplierId;
|
||||
@@ -1854,6 +1960,7 @@
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colLogin;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colImportCookies;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colCopyCookies;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colProdGetType;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colSpuId;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colSkcId;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colImgUrl;
|
||||
@@ -1872,12 +1979,5 @@
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colEditNotes;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn ColDelete;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOpResult;
|
||||
private DevComponents.DotNetBar.PanelEx panelEx1;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn dataGridViewCheckBoxColumn1;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colMapId;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colMapShopId;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colMapDraftId;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colToPorductPage;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colToDraftPage;
|
||||
}
|
||||
}
|
||||
@@ -61,13 +61,15 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
{
|
||||
this.ucSplitPage1.PageChange += UcSplitPage1_PageChange;
|
||||
this.dgvSelectProduct.AddSelectorColumn("colSelect");
|
||||
this.dgvSelectProduct.AddMergeColumnHeader(new List<string> { "colNotes", "colEditNotes" }, "备注");
|
||||
this.dgvSelectProduct.AddMergeColumn(new List<string> { "colNotes", "colEditNotes" });
|
||||
|
||||
dgvSelectProduct.Columns["colSubSaNick"].Visible = false;
|
||||
dgvSelectProduct.Columns["colDelete"].Visible = false;
|
||||
chkShowDel.Visible = false;
|
||||
btnSetSubSa.Visible = false;
|
||||
chkNoSubSa.Visible = false;
|
||||
pbFissionSetting.Visible = false;
|
||||
pbFissionSetting.Visible = true;
|
||||
btnReFission.Visible = false;
|
||||
|
||||
chkUploadProd.Visible = false; // 直接上传
|
||||
@@ -78,7 +80,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
|
||||
ucSplitPage1.IsShowPageSize = false; // 可调整分页
|
||||
|
||||
if (BaseClass.SaLevel == 1)
|
||||
if (BaseClass.SaLevel == 1 && ClientMode == EnumClientMode.Admin)
|
||||
{
|
||||
dgvSelectProduct.Columns["colSubSaNick"].Visible = true;
|
||||
chkShowDel.Visible = true;
|
||||
@@ -194,6 +196,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
shopLst.FirstOrDefault(s => s.ShopId == prodSelect.shop_id)?.LoginStatus2 == "国际版在线" ? "在线" : "登录",
|
||||
"导入Cookie",
|
||||
"复制Cookie",
|
||||
"库存采集",
|
||||
prodSelect.spu_id,
|
||||
prodSelect.skc_id,
|
||||
prodSelect.main_img.Replace("https:", "http:") + "?imageMogr2/thumbnail/54x54"",
|
||||
@@ -412,6 +415,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
bool flag = true;
|
||||
var url = BaseClass.BuildObjString("product_third/get_select_prod_db_id_map_draft_id_list");
|
||||
var data = UserLogin.GetSignaturex() + "&select_db_id=" + dbId;
|
||||
data += "&select_add_time=" + dbSelectProduct.add_time.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
|
||||
var html = GetHtml.PostUtf8(url, data);
|
||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||
@@ -525,6 +529,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
}
|
||||
break;
|
||||
|
||||
case "导入Cook":
|
||||
case "导入Cookie":
|
||||
{
|
||||
var shop = GetShop(shopId);
|
||||
@@ -533,6 +538,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
updateCookieForm.ShowDialog();
|
||||
}
|
||||
break;
|
||||
case "复制Cook":
|
||||
case "复制Cookie":
|
||||
{
|
||||
var shop = GetShop(shopId);
|
||||
@@ -612,6 +618,8 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
var url = BaseClass.BuildObjString("product_third/del_select_product");
|
||||
var data = UserLogin.GetSignaturex() +
|
||||
"&db_id=" + dbId;
|
||||
var dbSelectProduct = lstAdminTemuDBProductSelect.FirstOrDefault(p => p.id.ParseToString() == dbId);
|
||||
data += "&select_add_time=" + dbSelectProduct.add_time.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
var html = GetHtml.PostUtf8(url, data);
|
||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||
html = GetHtml.PostUtf8(url, data);
|
||||
@@ -684,6 +692,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
}
|
||||
}
|
||||
|
||||
int timeOutSeconds = 120;
|
||||
void AddProductDraft(TemuDBProductSelect[] prodSelect)
|
||||
{
|
||||
if (prodSelect == null || prodSelect.Count() == 0)
|
||||
@@ -773,6 +782,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
var empty_url = BaseClass.BuildObjString("product_third/mdy_user_select_product_status");
|
||||
var empty_data = UserLogin.GetSignaturex() +
|
||||
"&db_id=" + prod.id +
|
||||
"&select_add_time=" + prod.add_time.ToString("yyyy-MM-dd HH:mm:ss") +
|
||||
"&status=已清除";
|
||||
GetHtml.PostUtf8(empty_url, empty_data);
|
||||
}
|
||||
@@ -816,19 +826,34 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
}
|
||||
temuDBProd.product_json = prodDetailJsonReplace2;
|
||||
|
||||
result = UploadProduct(shop, temuDBProd, prod, row.Cells["colOpResult"]); //将商品上传至草稿箱或直接上传到未发布
|
||||
|
||||
if (result.Contains("登录过期") || result.Contains("Invalid Login State"))
|
||||
var t = Task.Run(() =>
|
||||
{
|
||||
if (ClientMode == EnumClientMode.Admin)
|
||||
AdminShopListForm.Instance.CheckShopLogin(shopLst.Where(s => s.LoginName == shop.LoginName).ToArray(), false);
|
||||
else
|
||||
ShopListForm.Instance.CheckShopLogin(shopLst.Where(s => s.LoginName == shop.LoginName).ToArray(), false);
|
||||
try
|
||||
{
|
||||
result = UploadProduct(shop, temuDBProd, prod, row.Cells["colOpResult"]); //将商品上传至草稿箱或直接上传到未发布
|
||||
|
||||
if (result.Contains("登录过期") || result.Contains("Invalid Login State"))
|
||||
{
|
||||
if (ClientMode == EnumClientMode.Admin)
|
||||
AdminShopListForm.Instance.CheckShopLogin(shopLst.Where(s => s.LoginName == shop.LoginName).ToArray(), false);
|
||||
else
|
||||
ShopListForm.Instance.CheckShopLogin(shopLst.Where(s => s.LoginName == shop.LoginName).ToArray(), false);
|
||||
}
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
result = "{\"success\":false,\"status\":\"未上传\",\"errMsg\":\"上传失败:" + ex.Message + "\"}";
|
||||
}
|
||||
});
|
||||
t.Wait(timeOutSeconds * 1000);
|
||||
if (!t.IsCompleted)
|
||||
{
|
||||
result = "{\"success\":false,\"status\":\"未上传\",\"errMsg\":\"上传超时\"}";
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
result = "{\"success\":false,\"status\":\"未上传\",\"errMsg\":\"" + ex.Message + "\"}";
|
||||
result = "{\"success\":false,\"status\":\"未上传\",\"errMsg\":\"解析失败:" + ex.Message + "\"}";
|
||||
}
|
||||
Thread.Sleep(200);
|
||||
|
||||
@@ -849,6 +874,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
var url = BaseClass.BuildObjString("product_third/mdy_user_select_product_status");
|
||||
var data = UserLogin.GetSignaturex() +
|
||||
"&db_id=" + prod.id +
|
||||
"&select_add_time=" + prod.add_time.ToString("yyyy-MM-dd HH:mm:ss") +
|
||||
"&draft_id=" + productDraftId + // draft_id即商品spuid
|
||||
"&up_spu_id=" + prod.spu_id +
|
||||
"&shop_id=" + prod.shop_id +
|
||||
@@ -1157,12 +1183,15 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
GlobalConfig.ProductWords.HeadWords = "";
|
||||
//int[] heads = GlobalConfig.ProductWords.HeadWords.Split(new string[] { "-", "个" }, StringSplitOptions.RemoveEmptyEntries)
|
||||
// .Select(s => s.ParseToInt()).ToArray();
|
||||
|
||||
string headTemp = GlobalConfig.ProductWords.HeadWords.Trim();
|
||||
var numberRegex = BaseRegex.GetMatchRegex(headTemp, "\\d{1,9}");
|
||||
int[] heads = numberRegex.Cast<Match>().Select(m => m.Value.ParseToInt()).ToArray();
|
||||
|
||||
if (heads.Length > 1 && heads[1] > heads[0])
|
||||
if (heads.Length == 2 && heads[1] > heads[0])
|
||||
headWords = Randomx.GetId(heads[0], heads[1]) + headTemp.Replace(heads[0] + "-" + heads[1], "");
|
||||
else
|
||||
headWords = headTemp;
|
||||
}
|
||||
|
||||
// 尾词
|
||||
@@ -1479,15 +1508,30 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
}
|
||||
if (chkChangeSizeAndNumber.Checked)
|
||||
{
|
||||
skuItem.productSkuMultiPackReq = new ProductSkuMultiPackReq2()
|
||||
if (numberOfPieces > 1)
|
||||
{
|
||||
skuClassification = 2,
|
||||
numberOfPieces = numberOfPieces,
|
||||
pieceUnitCode = skuInfo.productSkuMultiPack.pieceUnitCode,
|
||||
productSkuNetContentReq = JsonHelper.DeserializeJsonToObject<ProductSkuNetContentReq>(
|
||||
JsonHelper.SerializeObject(skuInfo.productSkuMultiPack.productSkuNetContent)),
|
||||
individuallyPacked = 1,
|
||||
};
|
||||
skuItem.productSkuMultiPackReq = new ProductSkuMultiPackReq2()
|
||||
{
|
||||
skuClassification = 2,
|
||||
numberOfPieces = numberOfPieces,
|
||||
pieceUnitCode = skuInfo.productSkuMultiPack.pieceUnitCode,
|
||||
productSkuNetContentReq = JsonHelper.DeserializeJsonToObject<ProductSkuNetContentReq>(
|
||||
JsonHelper.SerializeObject(skuInfo.productSkuMultiPack.productSkuNetContent)),
|
||||
individuallyPacked = 1,
|
||||
};
|
||||
}
|
||||
else
|
||||
{
|
||||
skuItem.productSkuMultiPackReq = new ProductSkuMultiPackReq()
|
||||
{
|
||||
// 件数为1必须设置单品
|
||||
skuClassification = 1,
|
||||
numberOfPieces = 1,
|
||||
pieceUnitCode = skuInfo.productSkuMultiPack.pieceUnitCode,
|
||||
productSkuNetContentReq = JsonHelper.DeserializeJsonToObject<ProductSkuNetContentReq>(
|
||||
JsonHelper.SerializeObject(skuInfo.productSkuMultiPack.productSkuNetContent)),
|
||||
};
|
||||
}
|
||||
}
|
||||
skuItem.productSkuNonAuditExtAttrReq = JsonHelper.DeserializeJsonToObject<ProductSkuNonAuditExtAttrReq>(
|
||||
JsonHelper.SerializeObject(skuInfo.productSkuNonAuditExtAttr));
|
||||
@@ -1824,11 +1868,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
return;
|
||||
}
|
||||
|
||||
DbProductSelectSetSubSaForm subSaForm = new DbProductSelectSetSubSaForm(
|
||||
prodList.Select(p => p.id.ToString()).ToList(),
|
||||
prodList.Select(p => p.shop_id).ToList(),
|
||||
SetSubSaType.ThirdProduct
|
||||
);
|
||||
DbProductSelectSetSubSaForm subSaForm = new DbProductSelectSetSubSaForm(prodList.ToList(), SetSubSaType.ThirdProduct);
|
||||
subSaForm.SaveCompleteWithDescribe += SubSaForm_SaveComplete;
|
||||
subSaForm.ShowDialog();
|
||||
}
|
||||
@@ -1966,6 +2006,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
var empty_url = BaseClass.BuildObjString("product_third/mdy_user_select_product_status");
|
||||
var empty_data = UserLogin.GetSignaturex() +
|
||||
"&db_id=" + prod.id +
|
||||
"&select_add_time=" + prod.add_time.ToString("yyyy-MM-dd HH:mm:ss") +
|
||||
"&status=已清除";
|
||||
GetHtml.PostUtf8(empty_url, empty_data);
|
||||
}
|
||||
@@ -1984,8 +2025,9 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
|
||||
var url = "";
|
||||
url = BaseClass.BuildObjString("product_third/mdy_product_select_notes");
|
||||
var data = UserLogin.GetSignaturex() +
|
||||
"&db_id=" + prod.id;
|
||||
var data = UserLogin.GetSignaturex();
|
||||
data += "&db_id=" + prod.id;
|
||||
data += "&select_add_time=" + prod.add_time.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
data += "&fission_product_name=" + GetHtml.UrlEncodeUtf8(fissionProductName.Trim());
|
||||
var html = GetHtml.PostUtf8(url, data);
|
||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||
@@ -2028,26 +2070,35 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
string headWords = "";
|
||||
if (!string.IsNullOrWhiteSpace(GlobalConfig.ProductWords.HeadWords))
|
||||
{
|
||||
//var numbers = GlobalConfig.ProductWords.HeadWords.Split(new string[] { "-", "个" }, StringSplitOptions.RemoveEmptyEntries).Select(w => w.ParseToInt()).ToList();
|
||||
////var numbers = GlobalConfig.ProductWords.HeadWords.Split(new string[] { "-", "个" }, StringSplitOptions.RemoveEmptyEntries).Select(w => w.ParseToInt()).ToList();
|
||||
//string headTemp = GlobalConfig.ProductWords.HeadWords.Trim();
|
||||
//var numberRegex = BaseRegex.GetMatchRegex(headTemp, "\\d{1,9}");
|
||||
//var numbers = numberRegex.Cast<Match>().Select(m => m.Value.ParseToInt()).ToList();
|
||||
|
||||
//int minNum = 5;
|
||||
//int maxNum = 99;
|
||||
//if (numbers.Count > 0 && numbers[0] > 0)
|
||||
//{
|
||||
// minNum = numbers[0];
|
||||
// if (numbers.Count > 1 && numbers[1] > 0)
|
||||
// {
|
||||
// maxNum = numbers[1];
|
||||
// }
|
||||
// if (maxNum < minNum)
|
||||
// {
|
||||
// maxNum = minNum;
|
||||
// }
|
||||
// headWords += Randomx.GetId(minNum, maxNum + 1) + headTemp.Replace(minNum + "-" + maxNum, "");
|
||||
//}
|
||||
|
||||
string headTemp = GlobalConfig.ProductWords.HeadWords.Trim();
|
||||
var numberRegex = BaseRegex.GetMatchRegex(headTemp, "\\d{1,9}");
|
||||
var numbers = numberRegex.Cast<Match>().Select(m => m.Value.ParseToInt()).ToList();
|
||||
int[] heads = numberRegex.Cast<Match>().Select(m => m.Value.ParseToInt()).ToArray();
|
||||
|
||||
int minNum = 5;
|
||||
int maxNum = 19;
|
||||
if (numbers.Count > 0 && numbers[0] > 0)
|
||||
{
|
||||
minNum = numbers[0];
|
||||
if (numbers.Count > 1 && numbers[1] > 0)
|
||||
{
|
||||
maxNum = numbers[1];
|
||||
}
|
||||
if (maxNum < minNum)
|
||||
{
|
||||
maxNum = minNum;
|
||||
}
|
||||
headWords += Randomx.GetId(minNum, maxNum + 1) + headTemp.Replace(minNum + "-" + maxNum, "");
|
||||
}
|
||||
if (heads.Length == 2 && heads[1] > heads[0])
|
||||
headWords = Randomx.GetId(heads[0], heads[1]) + headTemp.Replace(heads[0] + "-" + heads[1], "");
|
||||
else
|
||||
headWords = headTemp;
|
||||
}
|
||||
|
||||
string endWords = string.IsNullOrWhiteSpace(GlobalConfig.ProductWords.EndWords) ? "" : GlobalConfig.ProductWords.EndWords;
|
||||
@@ -2158,5 +2209,18 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void btnForceEnable_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (BaseMsgForm.ShowConfirm("确定解锁吗?可能造成性能损耗或重复上传。").DialogResult == DialogResult.OK)
|
||||
{
|
||||
this.btnAdd.Enabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
private void numMaxWaitSecond_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.timeOutSeconds = numMaxWaitSecond.Value.ParseToInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -159,6 +159,9 @@
|
||||
<metadata name="colCopyCookies.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colProdGetType.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colSpuId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
|
||||
@@ -428,6 +428,8 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
var url = BaseClass.BuildObjString("product_third/del_select_product");
|
||||
var data = UserLogin.GetSignaturex() +
|
||||
"&db_id=" + dbId;
|
||||
var dbSelectProduct = lstTemuDBProductSelect.FirstOrDefault(p => p.id.ParseToString() == dbId);
|
||||
data += "&select_add_time=" + dbSelectProduct.add_time.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
var html = GetHtml.PostUtf8(url, data);
|
||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||
html = GetHtml.PostUtf8(url, data);
|
||||
|
||||
Reference in new issue
Block a user