1产品数据库分组字段设置查询 2jit产品合规信息填写

This commit is contained in:
wule committed 2025-11-15 17:53:59 +08:00
1 parent 20fb940fa7
commit 31d11c0341
14 files changed
+734 -266

No files matched your search

@@ -51,6 +51,8 @@
this.label8 = new System.Windows.Forms.Label();
this.txtNotes = new DevComponents.DotNetBar.Controls.TextBoxX();
this.btnOk = new TemuKJD.UserControls.ButtonEx();
this.txtGroup = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
@@ -58,6 +60,8 @@
// panel2
//
this.panel2.BackColor = System.Drawing.Color.White;
this.panel2.Controls.Add(this.label9);
this.panel2.Controls.Add(this.txtGroup);
this.panel2.Controls.Add(this.btnAuto);
this.panel2.Controls.Add(this.pnlRestore);
this.panel2.Controls.Add(this.btnSkuAi);
@@ -92,7 +96,7 @@
this.btnAuto.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnAuto.DisabledBackColor = System.Drawing.Color.Empty;
this.btnAuto.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnAuto.Location = new System.Drawing.Point(348, 353);
this.btnAuto.Location = new System.Drawing.Point(348, 360);
this.btnAuto.Name = "btnAuto";
this.btnAuto.Size = new System.Drawing.Size(35, 23);
this.btnAuto.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -115,7 +119,7 @@
this.pnlRestore.CanvasColor = System.Drawing.SystemColors.Control;
this.pnlRestore.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.pnlRestore.DisabledBackColor = System.Drawing.Color.Empty;
this.pnlRestore.Location = new System.Drawing.Point(388, 353);
this.pnlRestore.Location = new System.Drawing.Point(388, 360);
this.pnlRestore.Name = "pnlRestore";
this.pnlRestore.Size = new System.Drawing.Size(39, 23);
this.pnlRestore.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -154,7 +158,7 @@
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(31, 391);
this.label7.Location = new System.Drawing.Point(31, 393);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(56, 17);
this.label7.TabIndex = 403;
@@ -177,7 +181,7 @@
this.txtFissionWords.Border.PaddingLeft = 2;
this.txtFissionWords.Border.PaddingRight = 2;
this.txtFissionWords.Border.PaddingTop = 2;
this.txtFissionWords.Location = new System.Drawing.Point(90, 391);
this.txtFissionWords.Location = new System.Drawing.Point(90, 390);
this.txtFissionWords.Multiline = true;
this.txtFissionWords.Name = "txtFissionWords";
this.txtFissionWords.Size = new System.Drawing.Size(337, 238);
@@ -188,7 +192,7 @@
//
this.txtEndWords.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtEndWords.Location = new System.Drawing.Point(232, 353);
this.txtEndWords.Location = new System.Drawing.Point(232, 360);
this.txtEndWords.Name = "txtEndWords";
this.txtEndWords.Size = new System.Drawing.Size(111, 23);
this.txtEndWords.TabIndex = 401;
@@ -196,7 +200,7 @@
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(201, 356);
this.label6.Location = new System.Drawing.Point(201, 363);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(32, 17);
this.label6.TabIndex = 400;
@@ -204,7 +208,7 @@
//
// txtHeadWords
//
this.txtHeadWords.Location = new System.Drawing.Point(90, 353);
this.txtHeadWords.Location = new System.Drawing.Point(90, 360);
this.txtHeadWords.Name = "txtHeadWords";
this.txtHeadWords.Size = new System.Drawing.Size(111, 23);
this.txtHeadWords.TabIndex = 399;
@@ -212,7 +216,7 @@
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(31, 356);
this.label5.Location = new System.Drawing.Point(31, 363);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(56, 17);
this.label5.TabIndex = 398;
@@ -222,7 +226,7 @@
//
this.txtProductName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtProductName.Location = new System.Drawing.Point(90, 205);
this.txtProductName.Location = new System.Drawing.Point(90, 193);
this.txtProductName.Multiline = true;
this.txtProductName.Name = "txtProductName";
this.txtProductName.Size = new System.Drawing.Size(337, 46);
@@ -232,7 +236,7 @@
//
this.txtSkcId.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtSkcId.Location = new System.Drawing.Point(291, 171);
this.txtSkcId.Location = new System.Drawing.Point(291, 163);
this.txtSkcId.Name = "txtSkcId";
this.txtSkcId.ReadOnly = true;
this.txtSkcId.Size = new System.Drawing.Size(136, 23);
@@ -240,7 +244,7 @@
//
// txtSpuId
//
this.txtSpuId.Location = new System.Drawing.Point(90, 171);
this.txtSpuId.Location = new System.Drawing.Point(90, 163);
this.txtSpuId.Name = "txtSpuId";
this.txtSpuId.ReadOnly = true;
this.txtSpuId.Size = new System.Drawing.Size(136, 23);
@@ -250,7 +254,7 @@
//
this.txtExtCode.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtExtCode.Location = new System.Drawing.Point(90, 262);
this.txtExtCode.Location = new System.Drawing.Point(90, 246);
this.txtExtCode.Name = "txtExtCode";
this.txtExtCode.Size = new System.Drawing.Size(337, 23);
this.txtExtCode.TabIndex = 394;
@@ -258,7 +262,7 @@
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(31, 265);
this.label4.Location = new System.Drawing.Point(31, 249);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(56, 17);
this.label4.TabIndex = 393;
@@ -267,7 +271,7 @@
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(31, 209);
this.label3.Location = new System.Drawing.Point(31, 196);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(56, 17);
this.label3.TabIndex = 392;
@@ -276,7 +280,7 @@
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(233, 174);
this.label2.Location = new System.Drawing.Point(233, 166);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(56, 17);
this.label2.TabIndex = 391;
@@ -285,7 +289,7 @@
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(31, 174);
this.label1.Location = new System.Drawing.Point(31, 166);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(56, 17);
this.label1.TabIndex = 390;
@@ -304,7 +308,7 @@
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(31, 296);
this.label8.Location = new System.Drawing.Point(31, 279);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(56, 17);
this.label8.TabIndex = 386;
@@ -327,7 +331,7 @@
this.txtNotes.Border.PaddingLeft = 2;
this.txtNotes.Border.PaddingRight = 2;
this.txtNotes.Border.PaddingTop = 2;
this.txtNotes.Location = new System.Drawing.Point(90, 296);
this.txtNotes.Location = new System.Drawing.Point(90, 276);
this.txtNotes.Multiline = true;
this.txtNotes.Name = "txtNotes";
this.txtNotes.Size = new System.Drawing.Size(337, 47);
@@ -350,6 +354,22 @@
this.btnOk.UseVisualStyleBackColor = false;
this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
//
// txtGroup
//
this.txtGroup.Location = new System.Drawing.Point(90, 330);
this.txtGroup.Name = "txtGroup";
this.txtGroup.Size = new System.Drawing.Size(337, 23);
this.txtGroup.TabIndex = 446;
//
// label9
//
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(31, 333);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(56, 17);
this.label9.TabIndex = 447;
this.label9.Text = " 分组";
//
// DbProductEditNotesForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
@@ -393,5 +413,7 @@
private UserControls.ButtonEx btnSkuAi;
private DevComponents.DotNetBar.PanelEx pnlRestore;
private DevComponents.DotNetBar.PanelEx btnAuto;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.TextBox txtGroup;
}
}
@@ -36,6 +36,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
txtSpuId.Text = dbProd.spu_id;
this.pictureBox1.ImageLocation = dbProd.main_img.Replace("https", "http");
this.txtNotes.Text = dbProd.notes;
this.txtGroup.Text = dbProd.group;
this.txtExtCode.Text = dbProd.ext_code;
this.txtFissionWords.Text = dbProd.fission_words;
//this.txtHeadWords.Text = string.IsNullOrWhiteSpace(dbProd.head_words) ? "5-99个" : dbProd.head_words;
@@ -51,6 +52,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
var url = BaseClass.BuildObjString("product/mdy_db_product");
var data = UserLogin.GetSignaturex() +
"&db_id=" + dbProd.id + "&notes=" + this.txtNotes.Text.Trim();
data += "&group=" + this.txtGroup.Text.Trim();
data += "&product_name=" + this.txtProductName.Text.Trim();
data += "&ext_code=" + this.txtExtCode.Text.Trim();
data += "&fission_words=" + this.txtFissionWords.Text.Trim();
@@ -68,6 +70,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
else
{
dbProd.notes = this.txtNotes.Text.Trim();
dbProd.group = this.txtGroup.Text.Trim();
dbProd.ext_code = this.txtExtCode.Text.Trim();
dbProd.head_words = this.txtHeadWords.Text.Trim();
dbProd.end_words = this.txtEndWords.Text.Trim();
@@ -40,6 +40,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DbProductListForm));
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.cmbGroup = new System.Windows.Forms.ComboBox();
this.lblGroup = new System.Windows.Forms.Label();
this.btnImportHtml = new DevComponents.DotNetBar.PanelEx();
this.cmbSort = new System.Windows.Forms.ComboBox();
this.btnSelect = new TemuKJD.UserControls.ButtonEx();
@@ -47,7 +49,6 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.lblNotes = new System.Windows.Forms.Label();
this.txtSPU = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.txtSKC = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.pnlEmpty = new DevComponents.DotNetBar.PanelEx();
this.btnSearch = new TemuKJD.UserControls.ButtonEx();
@@ -55,9 +56,10 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.label4 = new System.Windows.Forms.Label();
this.txtProdName = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.txtCat = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.txtCat = new System.Windows.Forms.TextBox();
this.txtSKC = new System.Windows.Forms.TextBox();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.pbLoading = new System.Windows.Forms.PictureBox();
this.panel2 = new System.Windows.Forms.Panel();
@@ -78,8 +80,6 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.txtShopId = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.dgvDbProduct = new TemuKJD.UserComponent.DataGridViewEx();
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.col_db_id = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.col_product_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -93,6 +93,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.colSelectTotalCount = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colProdGetType = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.col_notes = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colGroup = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colHeadWords = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colEndWords = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colFissionWords = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -101,6 +102,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.col_edit = new System.Windows.Forms.DataGridViewLinkColumn();
this.col_delete = new System.Windows.Forms.DataGridViewLinkColumn();
this.col_select_product = new System.Windows.Forms.DataGridViewLinkColumn();
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
@@ -127,6 +130,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.cmbGroup);
this.splitContainer1.Panel1.Controls.Add(this.lblGroup);
this.splitContainer1.Panel1.Controls.Add(this.btnImportHtml);
this.splitContainer1.Panel1.Controls.Add(this.cmbSort);
this.splitContainer1.Panel1.Controls.Add(this.btnSelect);
@@ -134,32 +139,49 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.splitContainer1.Panel1.Controls.Add(this.lblNotes);
this.splitContainer1.Panel1.Controls.Add(this.txtSPU);
this.splitContainer1.Panel1.Controls.Add(this.label5);
this.splitContainer1.Panel1.Controls.Add(this.txtSKC);
this.splitContainer1.Panel1.Controls.Add(this.label1);
this.splitContainer1.Panel1.Controls.Add(this.pnlEmpty);
this.splitContainer1.Panel1.Controls.Add(this.btnSearch);
this.splitContainer1.Panel1.Controls.Add(this.txtExtCode);
this.splitContainer1.Panel1.Controls.Add(this.label4);
this.splitContainer1.Panel1.Controls.Add(this.txtProdName);
this.splitContainer1.Panel1.Controls.Add(this.label3);
this.splitContainer1.Panel1.Controls.Add(this.txtCat);
this.splitContainer1.Panel1.Controls.Add(this.label2);
this.splitContainer1.Panel1.Controls.Add(this.label6);
this.splitContainer1.Panel1.Controls.Add(this.txtCat);
this.splitContainer1.Panel1.Controls.Add(this.txtSKC);
this.splitContainer1.Panel1.Controls.Add(this.label1);
this.splitContainer1.Panel1.Controls.Add(this.label2);
this.splitContainer1.Panel1.Controls.Add(this.label3);
//
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
this.splitContainer1.Size = new System.Drawing.Size(1278, 686);
this.splitContainer1.SplitterDistance = 53;
this.splitContainer1.SplitterDistance = 70;
this.splitContainer1.TabIndex = 1;
//
// txtGroup
//
this.cmbGroup.FormattingEnabled = true;
this.cmbGroup.Location = new System.Drawing.Point(361, 37);
this.cmbGroup.Name = "txtGroup";
this.cmbGroup.Size = new System.Drawing.Size(121, 25);
this.cmbGroup.TabIndex = 500;
//
// lblGroup
//
this.lblGroup.AutoSize = true;
this.lblGroup.Location = new System.Drawing.Point(327, 41);
this.lblGroup.Name = "lblGroup";
this.lblGroup.Size = new System.Drawing.Size(44, 17);
this.lblGroup.TabIndex = 499;
this.lblGroup.Text = "分组:";
//
// btnImportHtml
//
this.btnImportHtml.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnImportHtml.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnImportHtml.DisabledBackColor = System.Drawing.Color.Empty;
this.btnImportHtml.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnImportHtml.Location = new System.Drawing.Point(1046, 14);
this.btnImportHtml.Location = new System.Drawing.Point(950, 7);
this.btnImportHtml.Name = "btnImportHtml";
this.btnImportHtml.Size = new System.Drawing.Size(91, 26);
this.btnImportHtml.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -183,7 +205,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.cmbSort.Items.AddRange(new object[] {
"入库时间",
"认领总数"});
this.cmbSort.Location = new System.Drawing.Point(929, 15);
this.cmbSort.Location = new System.Drawing.Point(833, 8);
this.cmbSort.Name = "cmbSort";
this.cmbSort.Size = new System.Drawing.Size(79, 25);
this.cmbSort.TabIndex = 448;
@@ -197,7 +219,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.btnSelect.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSelect.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSelect.ForeColor = System.Drawing.Color.White;
this.btnSelect.Location = new System.Drawing.Point(1171, 14);
this.btnSelect.Location = new System.Drawing.Point(1171, 7);
this.btnSelect.Margin = new System.Windows.Forms.Padding(2);
this.btnSelect.Name = "btnSelect";
this.btnSelect.Size = new System.Drawing.Size(91, 26);
@@ -209,15 +231,15 @@ namespace TemuKJD.KJDForms.ProductSelectForms
//
// txtNotes
//
this.txtNotes.Location = new System.Drawing.Point(653, 16);
this.txtNotes.Location = new System.Drawing.Point(202, 38);
this.txtNotes.Name = "txtNotes";
this.txtNotes.Size = new System.Drawing.Size(85, 23);
this.txtNotes.Size = new System.Drawing.Size(121, 23);
this.txtNotes.TabIndex = 439;
//
// lblNotes
//
this.lblNotes.AutoSize = true;
this.lblNotes.Location = new System.Drawing.Point(619, 19);
this.lblNotes.Location = new System.Drawing.Point(168, 41);
this.lblNotes.Name = "lblNotes";
this.lblNotes.Size = new System.Drawing.Size(44, 17);
this.lblNotes.TabIndex = 440;
@@ -225,31 +247,24 @@ namespace TemuKJD.KJDForms.ProductSelectForms
//
// txtSPU
//
this.txtSPU.Location = new System.Drawing.Point(44, 16);
this.txtSPU.Location = new System.Drawing.Point(44, 9);
this.txtSPU.Name = "txtSPU";
this.txtSPU.Size = new System.Drawing.Size(85, 23);
this.txtSPU.Size = new System.Drawing.Size(121, 23);
this.txtSPU.TabIndex = 434;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(11, 19);
this.label5.Location = new System.Drawing.Point(11, 12);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(43, 17);
this.label5.TabIndex = 435;
this.label5.Text = "SPU:";
//
// txtSKC
//
this.txtSKC.Location = new System.Drawing.Point(165, 16);
this.txtSKC.Name = "txtSKC";
this.txtSKC.Size = new System.Drawing.Size(85, 23);
this.txtSKC.TabIndex = 432;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(132, 19);
this.label1.Location = new System.Drawing.Point(169, 12);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(43, 17);
this.label1.TabIndex = 433;
@@ -260,7 +275,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.pnlEmpty.CanvasColor = System.Drawing.SystemColors.Control;
this.pnlEmpty.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.pnlEmpty.DisabledBackColor = System.Drawing.Color.Empty;
this.pnlEmpty.Location = new System.Drawing.Point(805, 14);
this.pnlEmpty.Location = new System.Drawing.Point(709, 7);
this.pnlEmpty.Name = "pnlEmpty";
this.pnlEmpty.Size = new System.Drawing.Size(56, 26);
this.pnlEmpty.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -286,7 +301,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.btnSearch.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSearch.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSearch.ForeColor = System.Drawing.Color.White;
this.btnSearch.Location = new System.Drawing.Point(744, 14);
this.btnSearch.Location = new System.Drawing.Point(648, 7);
this.btnSearch.Margin = new System.Windows.Forms.Padding(2);
this.btnSearch.Name = "btnSearch";
this.btnSearch.Size = new System.Drawing.Size(56, 26);
@@ -297,15 +312,15 @@ namespace TemuKJD.KJDForms.ProductSelectForms
//
// txtExtCode
//
this.txtExtCode.Location = new System.Drawing.Point(531, 16);
this.txtExtCode.Location = new System.Drawing.Point(44, 38);
this.txtExtCode.Name = "txtExtCode";
this.txtExtCode.Size = new System.Drawing.Size(85, 23);
this.txtExtCode.Size = new System.Drawing.Size(121, 23);
this.txtExtCode.TabIndex = 429;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(497, 19);
this.label4.Location = new System.Drawing.Point(10, 41);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(44, 17);
this.label4.TabIndex = 430;
@@ -313,31 +328,24 @@ namespace TemuKJD.KJDForms.ProductSelectForms
//
// txtProdName
//
this.txtProdName.Location = new System.Drawing.Point(409, 16);
this.txtProdName.Location = new System.Drawing.Point(520, 9);
this.txtProdName.Name = "txtProdName";
this.txtProdName.Size = new System.Drawing.Size(85, 23);
this.txtProdName.Size = new System.Drawing.Size(121, 23);
this.txtProdName.TabIndex = 427;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(375, 19);
this.label3.Location = new System.Drawing.Point(486, 12);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(44, 17);
this.label3.TabIndex = 428;
this.label3.Text = "标题:";
//
// txtCat
//
this.txtCat.Location = new System.Drawing.Point(287, 16);
this.txtCat.Name = "txtCat";
this.txtCat.Size = new System.Drawing.Size(85, 23);
this.txtCat.TabIndex = 425;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(253, 19);
this.label2.Location = new System.Drawing.Point(327, 12);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(44, 17);
this.label2.TabIndex = 426;
@@ -346,12 +354,26 @@ namespace TemuKJD.KJDForms.ProductSelectForms
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(872, 19);
this.label6.Location = new System.Drawing.Point(776, 12);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(68, 17);
this.label6.TabIndex = 449;
this.label6.Text = "排序方式:";
//
// txtCat
//
this.txtCat.Location = new System.Drawing.Point(361, 9);
this.txtCat.Name = "txtCat";
this.txtCat.Size = new System.Drawing.Size(121, 23);
this.txtCat.TabIndex = 425;
//
// txtSKC
//
this.txtSKC.Location = new System.Drawing.Point(202, 9);
this.txtSKC.Name = "txtSKC";
this.txtSKC.Size = new System.Drawing.Size(121, 23);
this.txtSKC.TabIndex = 432;
//
// splitContainer2
//
this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
@@ -371,15 +393,15 @@ namespace TemuKJD.KJDForms.ProductSelectForms
//
this.splitContainer2.Panel2.Controls.Add(this.ucSplitPage1);
this.splitContainer2.Panel2.Controls.Add(this.statusBar);
this.splitContainer2.Size = new System.Drawing.Size(1278, 629);
this.splitContainer2.SplitterDistance = 600;
this.splitContainer2.Size = new System.Drawing.Size(1278, 612);
this.splitContainer2.SplitterDistance = 583;
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(614, 275);
this.pbLoading.Location = new System.Drawing.Point(614, 266);
this.pbLoading.Name = "pbLoading";
this.pbLoading.Size = new System.Drawing.Size(50, 50);
this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
@@ -645,6 +667,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.colSelectTotalCount,
this.colProdGetType,
this.col_notes,
this.colGroup,
this.colHeadWords,
this.colEndWords,
this.colFissionWords,
@@ -658,36 +681,11 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.dgvDbProduct.Name = "dgvDbProduct";
this.dgvDbProduct.ReadOnly = true;
this.dgvDbProduct.RowTemplate.Height = 23;
this.dgvDbProduct.Size = new System.Drawing.Size(1270, 600);
this.dgvDbProduct.Size = new System.Drawing.Size(1270, 583);
this.dgvDbProduct.TabIndex = 6;
this.dgvDbProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvDbProduct_CellContentClick);
this.dgvDbProduct.Scroll += new System.Windows.Forms.ScrollEventHandler(this.dgvDbProduct_Scroll);
//
// ucSplitPage1
//
this.ucSplitPage1.CurrentPage = 1;
this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Right;
this.ucSplitPage1.IsShowPageSize = false;
this.ucSplitPage1.Location = new System.Drawing.Point(916, 0);
this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
this.ucSplitPage1.Name = "ucSplitPage1";
this.ucSplitPage1.Padding = new System.Windows.Forms.Padding(0, 0, 1, 0);
this.ucSplitPage1.PageSize = 50;
this.ucSplitPage1.Size = new System.Drawing.Size(362, 25);
this.ucSplitPage1.TabIndex = 6;
this.ucSplitPage1.TotalPage = 1;
//
// statusBar
//
this.statusBar.BackColor = System.Drawing.Color.White;
this.statusBar.Dock = System.Windows.Forms.DockStyle.Fill;
this.statusBar.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.statusBar.Location = new System.Drawing.Point(0, 0);
this.statusBar.Margin = new System.Windows.Forms.Padding(0);
this.statusBar.Name = "statusBar";
this.statusBar.Size = new System.Drawing.Size(1278, 25);
this.statusBar.TabIndex = 5;
//
// colSelect
//
this.colSelect.FillWeight = 26F;
@@ -781,10 +779,18 @@ namespace TemuKJD.KJDForms.ProductSelectForms
//
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.col_notes.DefaultCellStyle = dataGridViewCellStyle6;
this.col_notes.FillWeight = 90F;
this.col_notes.HeaderText = "备注";
this.col_notes.Name = "col_notes";
this.col_notes.ReadOnly = true;
//
// colGroup
//
this.colGroup.FillWeight = 58F;
this.colGroup.HeaderText = "分组";
this.colGroup.Name = "colGroup";
this.colGroup.ReadOnly = true;
//
// colHeadWords
//
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
@@ -852,6 +858,31 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.col_select_product.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.col_select_product.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
//
// ucSplitPage1
//
this.ucSplitPage1.CurrentPage = 1;
this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Right;
this.ucSplitPage1.IsShowPageSize = false;
this.ucSplitPage1.Location = new System.Drawing.Point(916, 0);
this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
this.ucSplitPage1.Name = "ucSplitPage1";
this.ucSplitPage1.Padding = new System.Windows.Forms.Padding(0, 0, 1, 0);
this.ucSplitPage1.PageSize = 50;
this.ucSplitPage1.Size = new System.Drawing.Size(362, 25);
this.ucSplitPage1.TabIndex = 6;
this.ucSplitPage1.TotalPage = 1;
//
// statusBar
//
this.statusBar.BackColor = System.Drawing.Color.White;
this.statusBar.Dock = System.Windows.Forms.DockStyle.Fill;
this.statusBar.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.statusBar.Location = new System.Drawing.Point(0, 0);
this.statusBar.Margin = new System.Windows.Forms.Padding(0);
this.statusBar.Name = "statusBar";
this.statusBar.Size = new System.Drawing.Size(1278, 25);
this.statusBar.TabIndex = 5;
//
// DbProductListForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
@@ -927,6 +958,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
private System.Windows.Forms.DataGridViewTextBoxColumn colShopNotes;
private System.Windows.Forms.NumericUpDown numCount;
private System.Windows.Forms.Label lblProdName;
private System.Windows.Forms.Label lblGroup;
private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect;
private System.Windows.Forms.DataGridViewTextBoxColumn col_db_id;
private System.Windows.Forms.DataGridViewTextBoxColumn col_product_name;
@@ -940,6 +972,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
private System.Windows.Forms.DataGridViewTextBoxColumn colSelectTotalCount;
private System.Windows.Forms.DataGridViewTextBoxColumn colProdGetType;
private System.Windows.Forms.DataGridViewTextBoxColumn col_notes;
private System.Windows.Forms.DataGridViewTextBoxColumn colGroup;
private System.Windows.Forms.DataGridViewTextBoxColumn colHeadWords;
private System.Windows.Forms.DataGridViewTextBoxColumn colEndWords;
private System.Windows.Forms.DataGridViewTextBoxColumn colFissionWords;
@@ -948,5 +981,6 @@ namespace TemuKJD.KJDForms.ProductSelectForms
private System.Windows.Forms.DataGridViewLinkColumn col_edit;
private System.Windows.Forms.DataGridViewLinkColumn col_delete;
private System.Windows.Forms.DataGridViewLinkColumn col_select_product;
private System.Windows.Forms.ComboBox cmbGroup;
}
}
@@ -52,9 +52,12 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.dgvDbProduct.Columns["colFissionWords"].Visible = true;
this.dgvDbProduct.Columns["colSelectProd"].Visible = true;
this.dgvDbProduct.Columns["colProdGetType"].Visible = true;
this.dgvDbProduct.Columns["colGroup"].Visible = true;
//this.dgvDbProduct.Columns["col_notes"].Visible = true;
//this.lblNotes.Visible = true;
//this.txtNotes.Visible = true;
this.lblGroup.Visible = true;
this.cmbGroup.Visible = true;
this.btnImportHtml.Visible = true;
}
else
@@ -66,9 +69,12 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.dgvDbProduct.Columns["colFissionWords"].Visible = false;
this.dgvDbProduct.Columns["colSelectProd"].Visible = false;
this.dgvDbProduct.Columns["colProdGetType"].Visible = false;
this.dgvDbProduct.Columns["colGroup"].Visible = false;
//this.dgvDbProduct.Columns["col_notes"].Visible = false;
//this.lblNotes.Visible = false;
//this.txtNotes.Visible = false;
this.lblGroup.Visible = false;
this.cmbGroup.Visible = false;
this.btnImportHtml.Visible = false;
}
@@ -85,6 +91,20 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.ucSplitPage1.PageChange += UcSplitPage1_PageChange;
this.dgvDbProduct.AddSelectorColumn("colSelect");
this.dgvDbProduct.AddImgColumn("colMainImg", "colImgUrl");
Task.Run(() =>
{
var groupNames = getProductGroupList();
Invoke(new Action(() =>
{
this.cmbGroup.Items.Clear();
this.cmbGroup.Items.Add("");
foreach (var groupName in groupNames)
{
this.cmbGroup.Items.Add(groupName);
}
}));
});
}
private void btnSearch_Click(object sender, EventArgs e)
@@ -145,6 +165,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
prod.select_total_count,
prod.product_get_type == 0 ? "母店采集" : "前端直采",
prod.notes,
prod.group,
prod.head_words,
prod.end_words,
prod.fission_words,
@@ -165,6 +186,48 @@ namespace TemuKJD.KJDForms.ProductSelectForms
});
}
public List<string> getProductGroupList()
{
List<string> list = new List<string>();
var url = BaseClass.BuildObjString("product/get_product_group_list");
var data = "";
Invoke(new Action(() =>
{
data = UserLogin.GetSignaturex() +
"&page=" + 1 +
"&page_size=" + 100;
}));
var html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
{
Invoke(new Action(() =>
{
//BaseMsgForm.ShowError("获取商品列表失败,请重试!" + BaseRegex.GetStringJson(ref html, "msg"));
}));
return list;
}
var jArr = JObject.Parse(html)["data"];
if (jArr.Count() == 0)
return list;
var sGroupName = JsonHelper.SerializeObject(jArr);
try
{
list = JsonHelper.DeserializeJsonToList<string>(sGroupName).Where(s => !string.IsNullOrEmpty(s)).ToList();
return list;
}
catch (Exception ex)
{
return new List<string>();
}
}
public List<KJDDBProduct> GetProductList(out int pageCount, int page = 1, int pageSize = 200)
{
List<KJDDBProduct> list = new List<KJDDBProduct>();
@@ -181,6 +244,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
"&search_spu=" + txtSPU.Text.Trim() +
"&search_skc=" + txtSKC.Text.Trim() +
"&search_notes=" + txtNotes.Text.Trim() +
"&search_group=" + cmbGroup.Text.Trim() +
"&search_cat=" + txtCat.Text.Trim() +
"&search_ext_code=" + txtExtCode.Text.Trim() +
"&search_prod_name=" + txtProdName.Text.Trim();
@@ -256,6 +320,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
this.txtSKC.Text = "";
this.txtSPU.Text = "";
this.txtNotes.Text = "";
this.cmbGroup.Text = "";
}
private void dgvDbProduct_CellContentClick(object sender, DataGridViewCellEventArgs e)
@@ -282,6 +347,26 @@ namespace TemuKJD.KJDForms.ProductSelectForms
dgvDbProduct.Rows[e.RowIndex].Cells["colEndWords"].Value = dbProduct.end_words;
dgvDbProduct.Rows[e.RowIndex].Cells["colFissionWords"].Value = dbProduct.fission_words;
dgvDbProduct.Rows[e.RowIndex].Cells["col_product_name"].Value = dbProduct.product_name;
if (dgvDbProduct.Rows[e.RowIndex].Cells["colGroup"].Value.ParseToString() != dbProduct.group.ParseToString())
{
dgvDbProduct.Rows[e.RowIndex].Cells["colGroup"].Value = dbProduct.group;
if (!cmbGroup.Items.Cast<object>().Any(s => s.ToString() == dbProduct.group))
{
Task.Run(() =>
{
var groupNames = getProductGroupList();
Invoke(new Action(() =>
{
this.cmbGroup.Items.Clear();
this.cmbGroup.Items.Add("");
foreach (var groupName in groupNames)
{
this.cmbGroup.Items.Add(groupName);
}
}));
});
}
}
break;
case "主图":
ShowImgForm imgFrom = new ShowImgForm(dgvDbProduct.Rows[e.RowIndex].Cells["colImgUrl"].Value.ParseToString());
@@ -174,6 +174,9 @@
<metadata name="col_notes.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colGroup.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colHeadWords.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>