订单数据库回复

This commit is contained in:
wule committed 2026-03-07 11:17:34 +08:00
1 parent d9900452f2
commit 3ee52f553e
16 files changed
+973 -184

No files matched your search

@@ -49,6 +49,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PDDDBProdListForm));
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.btnReturnSecretData = new DevComponents.DotNetBar.PanelEx();
this.btnStopStop = new DevComponents.DotNetBar.PanelEx();
this.btnPull = new DevComponents.DotNetBar.PanelEx();
this.btnPushToOutServer = new DevComponents.DotNetBar.PanelEx();
@@ -63,8 +64,14 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.label8 = new System.Windows.Forms.Label();
this.txtReplaceText = new System.Windows.Forms.TextBox();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.chkHasReturn = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.chkWXComplateProd = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.txtRealCoid = new System.Windows.Forms.TextBox();
this.cmbCat2 = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.label16 = new System.Windows.Forms.Label();
this.txtSecretStyleCode = new System.Windows.Forms.TextBox();
this.label14 = new System.Windows.Forms.Label();
this.label15 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.cmbSourceType = new System.Windows.Forms.ComboBox();
@@ -87,10 +94,12 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.txtProdName = new System.Windows.Forms.TextBox();
this.cmbWxSafe = new System.Windows.Forms.ComboBox();
this.lblWxSafe = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.cmbCat1 = new System.Windows.Forms.ComboBox();
this.lblNotes = new System.Windows.Forms.Label();
this.txtNotes = new System.Windows.Forms.TextBox();
this.cmbCat1 = new System.Windows.Forms.ComboBox();
this.label2 = new System.Windows.Forms.Label();
this.cmbCat3 = new System.Windows.Forms.ComboBox();
this.label17 = new System.Windows.Forms.Label();
this.btnExportTxt = new DevComponents.DotNetBar.PanelEx();
this.btnDelSelect = new DevComponents.DotNetBar.PanelEx();
this.cmbGroup = new System.Windows.Forms.ComboBox();
@@ -99,9 +108,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.chkPullAfterPush = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.cmbSpProdType = new System.Windows.Forms.ComboBox();
this.cmbCat2 = new System.Windows.Forms.ComboBox();
this.btnGetAllCate = new DevComponents.DotNetBar.PanelEx();
this.label14 = new System.Windows.Forms.Label();
this.pnlEditExtCodePrice = new System.Windows.Forms.Panel();
this.lblExtCode = new System.Windows.Forms.Label();
this.panel2 = new System.Windows.Forms.Panel();
@@ -116,6 +123,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.col_db_id = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colFromShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colFromShopName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.col_product_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colImgUrl = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colMainImg = new System.Windows.Forms.DataGridViewImageColumn();
@@ -174,6 +182,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.btnReturnSecretData);
this.splitContainer1.Panel1.Controls.Add(this.btnStopStop);
this.splitContainer1.Panel1.Controls.Add(this.btnPull);
this.splitContainer1.Panel1.Controls.Add(this.btnPushToOutServer);
@@ -202,13 +211,38 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.splitContainer1.SplitterDistance = 110;
this.splitContainer1.TabIndex = 1;
//
// btnReturnSecretData
//
this.btnReturnSecretData.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnReturnSecretData.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnReturnSecretData.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnReturnSecretData.DisabledBackColor = System.Drawing.Color.Empty;
this.btnReturnSecretData.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnReturnSecretData.Location = new System.Drawing.Point(750, 79);
this.btnReturnSecretData.Name = "btnReturnSecretData";
this.btnReturnSecretData.Size = new System.Drawing.Size(94, 25);
this.btnReturnSecretData.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnReturnSecretData.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnReturnSecretData.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnReturnSecretData.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnReturnSecretData.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnReturnSecretData.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnReturnSecretData.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnReturnSecretData.Style.GradientAngle = 90;
this.btnReturnSecretData.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnReturnSecretData.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnReturnSecretData.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnReturnSecretData.TabIndex = 909;
this.btnReturnSecretData.Text = "加密数据回传";
this.btnReturnSecretData.Click += new System.EventHandler(this.btnReturnSecretData_Click);
//
// btnStopStop
//
this.btnStopStop.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnStopStop.CanvasColor = System.Drawing.SystemColors.Control;
this.btnStopStop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnStopStop.DisabledBackColor = System.Drawing.Color.Empty;
this.btnStopStop.Location = new System.Drawing.Point(672, 23);
this.btnStopStop.Location = new System.Drawing.Point(672, 13);
this.btnStopStop.Name = "btnStopStop";
this.btnStopStop.Size = new System.Drawing.Size(76, 25);
this.btnStopStop.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -234,7 +268,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.btnPull.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnPull.DisabledBackColor = System.Drawing.Color.Empty;
this.btnPull.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnPull.Location = new System.Drawing.Point(810, 57);
this.btnPull.Location = new System.Drawing.Point(810, 47);
this.btnPull.Name = "btnPull";
this.btnPull.Size = new System.Drawing.Size(34, 25);
this.btnPull.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -259,7 +293,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.btnPushToOutServer.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnPushToOutServer.DisabledBackColor = System.Drawing.Color.Empty;
this.btnPushToOutServer.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnPushToOutServer.Location = new System.Drawing.Point(750, 57);
this.btnPushToOutServer.Location = new System.Drawing.Point(750, 47);
this.btnPushToOutServer.Name = "btnPushToOutServer";
this.btnPushToOutServer.Size = new System.Drawing.Size(58, 25);
this.btnPushToOutServer.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -284,7 +318,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.btnGetProdWxCate.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnGetProdWxCate.DisabledBackColor = System.Drawing.Color.Empty;
this.btnGetProdWxCate.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnGetProdWxCate.Location = new System.Drawing.Point(750, 23);
this.btnGetProdWxCate.Location = new System.Drawing.Point(750, 13);
this.btnGetProdWxCate.Name = "btnGetProdWxCate";
this.btnGetProdWxCate.Size = new System.Drawing.Size(94, 25);
this.btnGetProdWxCate.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -454,8 +488,14 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66666F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.Controls.Add(this.chkHasReturn, 10, 2);
this.tableLayoutPanel1.Controls.Add(this.chkWXComplateProd, 8, 2);
this.tableLayoutPanel1.Controls.Add(this.txtRealCoid, 0, 2);
this.tableLayoutPanel1.Controls.Add(this.cmbCat2, 5, 2);
this.tableLayoutPanel1.Controls.Add(this.label1, 0, 2);
this.tableLayoutPanel1.Controls.Add(this.label16, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.txtSecretStyleCode, 5, 0);
this.tableLayoutPanel1.Controls.Add(this.label14, 4, 2);
this.tableLayoutPanel1.Controls.Add(this.label15, 4, 0);
this.tableLayoutPanel1.Controls.Add(this.label13, 10, 1);
this.tableLayoutPanel1.Controls.Add(this.cmbSourceType, 5, 1);
@@ -478,10 +518,12 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.tableLayoutPanel1.Controls.Add(this.txtProdName, 9, 0);
this.tableLayoutPanel1.Controls.Add(this.cmbWxSafe, 9, 1);
this.tableLayoutPanel1.Controls.Add(this.lblWxSafe, 8, 1);
this.tableLayoutPanel1.Controls.Add(this.label2, 0, 2);
this.tableLayoutPanel1.Controls.Add(this.cmbCat1, 1, 2);
this.tableLayoutPanel1.Controls.Add(this.lblNotes, 2, 0);
this.tableLayoutPanel1.Controls.Add(this.txtNotes, 3, 0);
this.tableLayoutPanel1.Controls.Add(this.cmbCat1, 3, 2);
this.tableLayoutPanel1.Controls.Add(this.label2, 2, 2);
this.tableLayoutPanel1.Controls.Add(this.cmbCat3, 7, 2);
this.tableLayoutPanel1.Controls.Add(this.label17, 6, 2);
this.tableLayoutPanel1.Location = new System.Drawing.Point(4, 4);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 3;
@@ -491,6 +533,60 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.tableLayoutPanel1.Size = new System.Drawing.Size(650, 105);
this.tableLayoutPanel1.TabIndex = 679;
//
// chkHasReturn
//
this.chkHasReturn.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.chkHasReturn.Location = new System.Drawing.Point(495, 77);
this.chkHasReturn.Margin = new System.Windows.Forms.Padding(6, 3, 3, 3);
this.chkHasReturn.Name = "chkHasReturn";
this.chkHasReturn.Size = new System.Drawing.Size(57, 21);
this.chkHasReturn.TabIndex = 910;
this.chkHasReturn.Text = "未回传";
this.chkHasReturn.UseVisualStyleBackColor = true;
//
// chkWXComplateProd
//
this.chkWXComplateProd.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.tableLayoutPanel1.SetColumnSpan(this.chkWXComplateProd, 2);
this.chkWXComplateProd.Location = new System.Drawing.Point(388, 77);
this.chkWXComplateProd.Margin = new System.Windows.Forms.Padding(6, 3, 3, 3);
this.chkWXComplateProd.Name = "chkWXComplateProd";
this.chkWXComplateProd.Size = new System.Drawing.Size(87, 21);
this.chkWXComplateProd.TabIndex = 808;
this.chkWXComplateProd.Text = "微信回采商品";
this.chkWXComplateProd.UseVisualStyleBackColor = true;
//
// txtRealCoid
//
this.txtRealCoid.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.txtRealCoid.Location = new System.Drawing.Point(72, 76);
this.txtRealCoid.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtRealCoid.Name = "txtRealCoid";
this.txtRealCoid.Size = new System.Drawing.Size(34, 23);
this.txtRealCoid.TabIndex = 814;
//
// cmbCat2
//
this.cmbCat2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.cmbCat2.FormattingEnabled = true;
this.cmbCat2.Location = new System.Drawing.Point(254, 77);
this.cmbCat2.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCat2.Name = "cmbCat2";
this.cmbCat2.Size = new System.Drawing.Size(34, 25);
this.cmbCat2.TabIndex = 804;
this.cmbCat2.SelectedIndexChanged += new System.EventHandler(this.cmbCateFilter2_SelectedIndexChanged);
//
// label1
//
this.label1.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(3, 79);
this.label1.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(69, 17);
this.label1.TabIndex = 813;
this.label1.Text = "真实coid:";
//
// label16
//
this.label16.Anchor = System.Windows.Forms.AnchorStyles.Right;
@@ -505,17 +601,28 @@ namespace TemuKJD.PDDForms.ProductSelectForms
// txtSecretStyleCode
//
this.txtSecretStyleCode.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.txtSecretStyleCode.Location = new System.Drawing.Point(246, 6);
this.txtSecretStyleCode.Location = new System.Drawing.Point(254, 6);
this.txtSecretStyleCode.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtSecretStyleCode.Name = "txtSecretStyleCode";
this.txtSecretStyleCode.Size = new System.Drawing.Size(37, 23);
this.txtSecretStyleCode.Size = new System.Drawing.Size(34, 23);
this.txtSecretStyleCode.TabIndex = 812;
//
// label14
//
this.label14.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label14.AutoSize = true;
this.label14.Location = new System.Drawing.Point(203, 79);
this.label14.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(51, 17);
this.label14.TabIndex = 784;
this.label14.Text = "类目2:";
//
// label15
//
this.label15.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label15.AutoSize = true;
this.label15.Location = new System.Drawing.Point(202, 9);
this.label15.Location = new System.Drawing.Point(210, 9);
this.label15.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(44, 17);
@@ -526,7 +633,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.label13.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(487, 44);
this.label13.Location = new System.Drawing.Point(492, 44);
this.label13.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(68, 17);
@@ -544,17 +651,18 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"机会商品",
"以图搜品",
"外部数据"});
this.cmbSourceType.Location = new System.Drawing.Point(246, 42);
this.cmbSourceType.Location = new System.Drawing.Point(254, 42);
this.cmbSourceType.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbSourceType.Name = "cmbSourceType";
this.cmbSourceType.Size = new System.Drawing.Size(37, 25);
this.cmbSourceType.Size = new System.Drawing.Size(34, 25);
this.cmbSourceType.TabIndex = 654;
this.cmbSourceType.SelectedIndexChanged += new System.EventHandler(this.cmbSourceType_SelectedIndexChanged);
//
// label10
//
this.label10.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.label10.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(202, 44);
this.label10.Location = new System.Drawing.Point(210, 44);
this.label10.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(44, 17);
@@ -578,7 +686,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.txtSPU.Location = new System.Drawing.Point(72, 6);
this.txtSPU.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtSPU.Name = "txtSPU";
this.txtSPU.Size = new System.Drawing.Size(37, 23);
this.txtSPU.Size = new System.Drawing.Size(34, 23);
this.txtSPU.TabIndex = 434;
//
// cmbWxCat
@@ -589,10 +697,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"",
"是",
"否"});
this.cmbWxCat.Location = new System.Drawing.Point(555, 7);
this.cmbWxCat.Location = new System.Drawing.Point(560, 7);
this.cmbWxCat.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbWxCat.Name = "cmbWxCat";
this.cmbWxCat.Size = new System.Drawing.Size(37, 25);
this.cmbWxCat.Size = new System.Drawing.Size(33, 25);
this.cmbWxCat.TabIndex = 802;
//
// txtSKC
@@ -601,7 +709,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.txtSKC.Location = new System.Drawing.Point(72, 41);
this.txtSKC.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtSKC.Name = "txtSKC";
this.txtSKC.Size = new System.Drawing.Size(37, 23);
this.txtSKC.Size = new System.Drawing.Size(34, 23);
this.txtSKC.TabIndex = 432;
//
// cmbSort
@@ -611,10 +719,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.cmbSort.Items.AddRange(new object[] {
"入库时间",
"认领总数"});
this.cmbSort.Location = new System.Drawing.Point(333, 42);
this.cmbSort.Location = new System.Drawing.Point(345, 42);
this.cmbSort.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbSort.Name = "cmbSort";
this.cmbSort.Size = new System.Drawing.Size(37, 25);
this.cmbSort.Size = new System.Drawing.Size(34, 25);
this.cmbSort.TabIndex = 448;
this.cmbSort.Text = "入库时间";
//
@@ -622,7 +730,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.label6.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(289, 44);
this.label6.Location = new System.Drawing.Point(301, 44);
this.label6.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(44, 17);
@@ -633,7 +741,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.label4.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(289, 9);
this.label4.Location = new System.Drawing.Point(301, 9);
this.label4.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(44, 17);
@@ -644,7 +752,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.label12.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label12.AutoSize = true;
this.label12.Location = new System.Drawing.Point(487, 9);
this.label12.Location = new System.Drawing.Point(492, 9);
this.label12.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(68, 17);
@@ -654,10 +762,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms
// txtExtCode
//
this.txtExtCode.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.txtExtCode.Location = new System.Drawing.Point(333, 6);
this.txtExtCode.Location = new System.Drawing.Point(345, 6);
this.txtExtCode.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtExtCode.Name = "txtExtCode";
this.txtExtCode.Size = new System.Drawing.Size(37, 23);
this.txtExtCode.Size = new System.Drawing.Size(34, 23);
this.txtExtCode.TabIndex = 429;
//
// btnSearch
@@ -667,7 +775,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.btnSearch.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnSearch.DisabledBackColor = System.Drawing.Color.Empty;
this.btnSearch.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSearch.Location = new System.Drawing.Point(598, 5);
this.btnSearch.Location = new System.Drawing.Point(599, 5);
this.btnSearch.Name = "btnSearch";
this.btnSearch.Size = new System.Drawing.Size(46, 25);
this.btnSearch.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -689,7 +797,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.lblGroup.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.lblGroup.AutoSize = true;
this.lblGroup.Location = new System.Drawing.Point(115, 44);
this.lblGroup.Location = new System.Drawing.Point(119, 44);
this.lblGroup.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.lblGroup.Name = "lblGroup";
this.lblGroup.Size = new System.Drawing.Size(44, 17);
@@ -700,10 +808,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.cmbGroupFilter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.cmbGroupFilter.FormattingEnabled = true;
this.cmbGroupFilter.Location = new System.Drawing.Point(159, 42);
this.cmbGroupFilter.Location = new System.Drawing.Point(163, 42);
this.cmbGroupFilter.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbGroupFilter.Name = "cmbGroupFilter";
this.cmbGroupFilter.Size = new System.Drawing.Size(37, 25);
this.cmbGroupFilter.Size = new System.Drawing.Size(34, 25);
this.cmbGroupFilter.TabIndex = 653;
//
// pnlEmpty
@@ -712,7 +820,7 @@ namespace TemuKJD.PDDForms.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(598, 40);
this.pnlEmpty.Location = new System.Drawing.Point(599, 40);
this.pnlEmpty.Name = "pnlEmpty";
this.pnlEmpty.Size = new System.Drawing.Size(46, 25);
this.pnlEmpty.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -740,17 +848,17 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"是",
"否",
"导出未拉回"});
this.cmbExportToOutServer.Location = new System.Drawing.Point(555, 42);
this.cmbExportToOutServer.Location = new System.Drawing.Point(560, 42);
this.cmbExportToOutServer.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbExportToOutServer.Name = "cmbExportToOutServer";
this.cmbExportToOutServer.Size = new System.Drawing.Size(37, 25);
this.cmbExportToOutServer.Size = new System.Drawing.Size(33, 25);
this.cmbExportToOutServer.TabIndex = 803;
//
// label3
//
this.label3.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(376, 9);
this.label3.Location = new System.Drawing.Point(385, 9);
this.label3.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(68, 17);
@@ -760,10 +868,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms
// txtProdName
//
this.txtProdName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.txtProdName.Location = new System.Drawing.Point(444, 6);
this.txtProdName.Location = new System.Drawing.Point(453, 6);
this.txtProdName.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtProdName.Name = "txtProdName";
this.txtProdName.Size = new System.Drawing.Size(37, 23);
this.txtProdName.Size = new System.Drawing.Size(33, 23);
this.txtProdName.TabIndex = 427;
//
// cmbWxSafe
@@ -776,10 +884,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"安全商品",
"违规商品",
"未校验"});
this.cmbWxSafe.Location = new System.Drawing.Point(444, 42);
this.cmbWxSafe.Location = new System.Drawing.Point(453, 42);
this.cmbWxSafe.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbWxSafe.Name = "cmbWxSafe";
this.cmbWxSafe.Size = new System.Drawing.Size(37, 25);
this.cmbWxSafe.Size = new System.Drawing.Size(33, 25);
this.cmbWxSafe.TabIndex = 676;
this.cmbWxSafe.Text = "安全+未校验";
//
@@ -787,39 +895,18 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.lblWxSafe.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.lblWxSafe.AutoSize = true;
this.lblWxSafe.Location = new System.Drawing.Point(376, 44);
this.lblWxSafe.Location = new System.Drawing.Point(385, 44);
this.lblWxSafe.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.lblWxSafe.Name = "lblWxSafe";
this.lblWxSafe.Size = new System.Drawing.Size(68, 17);
this.lblWxSafe.TabIndex = 651;
this.lblWxSafe.Text = "微信安检:";
//
// label2
//
this.label2.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(3, 79);
this.label2.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(51, 17);
this.label2.TabIndex = 426;
this.label2.Text = "类目1:";
//
// cmbCat1
//
this.cmbCat1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.cmbCat1.FormattingEnabled = true;
this.cmbCat1.Location = new System.Drawing.Point(72, 77);
this.cmbCat1.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCat1.Name = "cmbCat1";
this.cmbCat1.Size = new System.Drawing.Size(37, 25);
this.cmbCat1.TabIndex = 805;
//
// lblNotes
//
this.lblNotes.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.lblNotes.AutoSize = true;
this.lblNotes.Location = new System.Drawing.Point(115, 9);
this.lblNotes.Location = new System.Drawing.Point(119, 9);
this.lblNotes.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.lblNotes.Name = "lblNotes";
this.lblNotes.Size = new System.Drawing.Size(44, 17);
@@ -829,12 +916,56 @@ namespace TemuKJD.PDDForms.ProductSelectForms
// txtNotes
//
this.txtNotes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.txtNotes.Location = new System.Drawing.Point(159, 6);
this.txtNotes.Location = new System.Drawing.Point(163, 6);
this.txtNotes.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtNotes.Name = "txtNotes";
this.txtNotes.Size = new System.Drawing.Size(37, 23);
this.txtNotes.Size = new System.Drawing.Size(34, 23);
this.txtNotes.TabIndex = 439;
//
// cmbCat1
//
this.cmbCat1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.cmbCat1.FormattingEnabled = true;
this.cmbCat1.Location = new System.Drawing.Point(163, 75);
this.cmbCat1.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCat1.Name = "cmbCat1";
this.cmbCat1.Size = new System.Drawing.Size(34, 25);
this.cmbCat1.TabIndex = 805;
this.cmbCat1.SelectedIndexChanged += new System.EventHandler(this.cmbCateFilter1_SelectedIndexChanged);
//
// label2
//
this.label2.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(112, 79);
this.label2.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(51, 17);
this.label2.TabIndex = 426;
this.label2.Text = "类目1:";
//
// cmbCat3
//
this.cmbCat3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.cmbCat3.FormattingEnabled = true;
this.cmbCat3.Location = new System.Drawing.Point(345, 77);
this.cmbCat3.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCat3.Name = "cmbCat3";
this.cmbCat3.Size = new System.Drawing.Size(34, 25);
this.cmbCat3.TabIndex = 811;
this.cmbCat3.SelectedIndexChanged += new System.EventHandler(this.cmbCateFilter3_SelectedIndexChanged);
//
// label17
//
this.label17.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label17.AutoSize = true;
this.label17.Location = new System.Drawing.Point(294, 79);
this.label17.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(51, 17);
this.label17.TabIndex = 811;
this.label17.Text = "类目3:";
//
// btnExportTxt
//
this.btnExportTxt.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@@ -936,7 +1067,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.chkPullAfterPush.AutoSize = true;
this.chkPullAfterPush.Checked = true;
this.chkPullAfterPush.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkPullAfterPush.Location = new System.Drawing.Point(672, 59);
this.chkPullAfterPush.Location = new System.Drawing.Point(672, 49);
this.chkPullAfterPush.Name = "chkPullAfterPush";
this.chkPullAfterPush.Size = new System.Drawing.Size(87, 21);
this.chkPullAfterPush.TabIndex = 874;
@@ -954,9 +1085,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
// splitContainer2.Panel1
//
this.splitContainer2.Panel1.Controls.Add(this.cmbSpProdType);
this.splitContainer2.Panel1.Controls.Add(this.cmbCat2);
this.splitContainer2.Panel1.Controls.Add(this.btnGetAllCate);
this.splitContainer2.Panel1.Controls.Add(this.label14);
this.splitContainer2.Panel1.Controls.Add(this.pnlEditExtCodePrice);
this.splitContainer2.Panel1.Controls.Add(this.pbLoading);
this.splitContainer2.Panel1.Controls.Add(this.btnSelect);
@@ -987,17 +1116,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.cmbSpProdType.TabIndex = 677;
this.cmbSpProdType.Visible = false;
//
// cmbCat2
//
this.cmbCat2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.cmbCat2.FormattingEnabled = true;
this.cmbCat2.Location = new System.Drawing.Point(82, 114);
this.cmbCat2.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCat2.Name = "cmbCat2";
this.cmbCat2.Size = new System.Drawing.Size(37, 25);
this.cmbCat2.TabIndex = 804;
this.cmbCat2.Visible = false;
//
// btnGetAllCate
//
this.btnGetAllCate.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
@@ -1023,18 +1141,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.btnGetAllCate.Visible = false;
this.btnGetAllCate.Click += new System.EventHandler(this.btnGetAllCate_Click);
//
// label14
//
this.label14.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.label14.AutoSize = true;
this.label14.Location = new System.Drawing.Point(31, 118);
this.label14.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(51, 17);
this.label14.TabIndex = 784;
this.label14.Text = "类目2:";
this.label14.Visible = false;
//
// pnlEditExtCodePrice
//
this.pnlEditExtCodePrice.Anchor = System.Windows.Forms.AnchorStyles.None;
@@ -1203,6 +1309,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.colSelect,
this.col_db_id,
this.colFromShopId,
this.colFromShopName,
this.col_product_name,
this.colImgUrl,
this.colMainImg,
@@ -1267,6 +1374,12 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.colFromShopId.ReadOnly = true;
this.colFromShopId.Visible = false;
//
// colFromShopName
//
this.colFromShopName.HeaderText = "来源店铺名称";
this.colFromShopName.Name = "colFromShopName";
this.colFromShopName.ReadOnly = true;
//
// col_product_name
//
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
@@ -1650,9 +1763,15 @@ namespace TemuKJD.PDDForms.ProductSelectForms
private DevComponents.DotNetBar.PanelEx btnStopStop;
private System.Windows.Forms.TextBox txtSecretStyleCode;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.TextBox txtRealCoid;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.ComboBox cmbCat3;
private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect;
private System.Windows.Forms.DataGridViewTextBoxColumn col_db_id;
private System.Windows.Forms.DataGridViewTextBoxColumn colFromShopId;
private System.Windows.Forms.DataGridViewTextBoxColumn colFromShopName;
private System.Windows.Forms.DataGridViewTextBoxColumn col_product_name;
private System.Windows.Forms.DataGridViewTextBoxColumn colImgUrl;
private System.Windows.Forms.DataGridViewImageColumn colMainImg;
@@ -1683,6 +1802,8 @@ namespace TemuKJD.PDDForms.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.Label label16;
private UserComponent.UcCheckBox chkWXComplateProd;
private DevComponents.DotNetBar.PanelEx btnReturnSecretData;
private UserComponent.UcCheckBox chkHasReturn;
}
}
@@ -69,7 +69,11 @@ namespace TemuKJD.PDDForms.ProductSelectForms
lblGroup.Visible = cmbGroup.Visible = btnSetGroup.Visible = true;
GetPDDProductGroup(new List<ComboBox> { cmbGroup, cmbGroupFilter, });
Task.Run(() =>
{
GetPDDProductGroup(new List<ComboBox> { cmbGroup, cmbGroupFilter, });
GetPddProductCate();
});
}
else
{
@@ -198,6 +202,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
false,
prod.id,
prod.from_shop_id,
prod.from_shop_name,
prod.product_name,
prod?.main_img?.Replace("https", "http") + "?imageView2/2/w/90/h/90",
defaultBitmap, // prod.main_img,
@@ -312,13 +317,39 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"&search_spu=" + txtSPU.Text.Trim() +
"&search_skc=" + txtSKC.Text.Trim() +
"&search_notes=" + txtNotes.Text.Trim() +
"&search_cat1=" + cmbCat1.Text.Trim() +
"&search_cat=" + cmbCat2.Text.Trim() +
"&search_ext_code=" + txtExtCode.Text.Trim() +
"&search_group=" + cmbGroupFilter.Text.Trim() +
"&search_prod_name=" + txtProdName.Text.Trim() +
"&wx_safe_status=" + cmbWxSafe.Text.Trim().Replace("安全+未校验", "安全商品,未校验") +
"&special_prod_type=" + cmbSpProdType.Text.Trim();
if (cmbSourceType.Text != "厂商直采")
{
data += "&search_cat1=" + cmbCat1.Text.Trim();
data += "&search_cat=" + cmbCat2.Text.Trim();
}
else
{
var cate1 = GlobalConfig.WxCatList.FirstOrDefault(c => c.level == 1 && c.name == cmbCat1.Text.Trim());
var cates2 = GlobalConfig.WxCatList.Where(c => c.f_cat_id == cate1?.cat_id).ToList();
var cate2 = cates2.FirstOrDefault(c => c.level == 2 && c.name == cmbCat2.Text.Trim());
var cates3 = GlobalConfig.WxCatList.Where(c => c.f_cat_id == cate2?.cat_id).ToList();
var cate3 = cates3.FirstOrDefault(c => c.level == 3 && c.name == cmbCat3.Text.Trim());
if (!string.IsNullOrEmpty(cmbCat1.Text) && cate1 != null)
data += "&wx_cat_1=" + cate1.cat_id;
//else if (chkSkipQualification.Checked)
//{
// // 厂商直采普通店铺不要随特殊商品
// data += "&wx_cat_1=" + string.Join(",", GlobalConfig.WxCatList.Where(c => c.level == 1 && !(c.name == "图书" || c.name == "食品饮料" || c.name == "成人用品"))
// .Select(c => c.cat_id));
//}
if (!string.IsNullOrEmpty(cmbCat2.Text) && cate2 != null)
data += "&wx_cat_2=" + cate2.cat_id;
if (!string.IsNullOrEmpty(cmbCat3.Text) && cate3 != null)
data += "&wx_cat_3=" + cate3.cat_id;
}
if (!string.IsNullOrEmpty(txtSecretStyleCode.Text.Trim()))
{
data += "&search_secret_spu_ids=" + string.Join(",", txtSecretStyleCode.Text.Trim().Split(new string[] { " ", ",", "," }, StringSplitOptions.RemoveEmptyEntries));
@@ -351,6 +382,14 @@ namespace TemuKJD.PDDForms.ProductSelectForms
{
data += "&sort_field=select_total_count";
}
if (!this.txtRealCoid.Text.Trim().IsNullOrEmpty())
{
data += "&real_coid=" + this.txtRealCoid.Text.Trim();
}
if (chkWXComplateProd.Checked)
data += "&has_wx_format=1";
if (chkHasReturn.Checked)
data += "&standby3=1";
}));
var html = GetHtml.PostUtf8(url, data);
@@ -424,6 +463,48 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.txtSecretStyleCode.Text = "";
}
private void cmbCateFilter1_SelectedIndexChanged(object sender, EventArgs e)
{
if (cmbSourceType.Text != "厂商直采")
return;
cmbCat2.Text = "";
cmbCat2.Items.Clear();
var cate1 = GlobalConfig.WxCatList.FirstOrDefault(c => c.level == 1 && c.name == cmbCat1.Text.Trim());
var cates2 = GlobalConfig.WxCatList.Where(c => c.f_cat_id == cate1?.cat_id).ToList();
foreach (var cate2 in cates2)
{
cmbCat2.Items.Add(cate2.name);
}
}
private void cmbCateFilter2_SelectedIndexChanged(object sender, EventArgs e)
{
if (cmbSourceType.Text != "厂商直采")
return;
cmbCat3.Text = "";
cmbCat3.Items.Clear();
var cate1 = GlobalConfig.WxCatList.FirstOrDefault(c => c.level == 1 && c.name == cmbCat1.Text.Trim());
var cates2 = GlobalConfig.WxCatList.Where(c => c.f_cat_id == cate1?.cat_id).ToList();
var cate2 = cates2.FirstOrDefault(c => c.level == 2 && c.name == cmbCat2.Text.Trim());
var cates3 = GlobalConfig.WxCatList.Where(c => c.f_cat_id == cate2?.cat_id).ToList();
foreach (var cate3 in cates3)
{
cmbCat3.Items.Add(cate3.name);
}
}
private void cmbCateFilter3_SelectedIndexChanged(object sender, EventArgs e)
{
var cate1 = GlobalConfig.WxCatList.FirstOrDefault(c => c.level == 1 && c.name == cmbCat1.Text.Trim());
var cates2 = GlobalConfig.WxCatList.Where(c => c.f_cat_id == cate1?.cat_id).ToList();
var cate2 = cates2.FirstOrDefault(c => c.level == 2 && c.name == cmbCat1.Text.Trim());
var cates3 = GlobalConfig.WxCatList.Where(c => c.f_cat_id == cate2?.cat_id).ToList();
var cate3 = cates3.FirstOrDefault(c => c.level == 3 && c.name == cmbCat1.Text.Trim());
}
private void dgvDbProduct_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
if (e.ColumnIndex < 0 || e.RowIndex < 0)
@@ -653,6 +734,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
{
GetPDDProductGroup(new List<ComboBox> { box });
}
public static void GetPDDProductGroup(List<ComboBox> boxs)
{
var url = BaseClass.BuildPDDObjString("product/get_product_groups");
@@ -1376,6 +1458,12 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.statusBar.lblTaskStatus.Text = "正在导出 " + this.statusBar.pgbTaskProgress.Value + "/" + dbProdLst.Count;
}));
var dbProd = PDDDBProdEditForm.GetPddProductDetail(prod.id.ParseToString());
if (!dbProd.sku_secret_json.IsNullOrEmpty() && dbProd.sku_secret_json.Length > 10)
{
continue;
}
var rst = new WxProdFormConverter().JstPddConvertToWxOutServer(dbProd);
if (!rst.Contains("\"success\":true"))
{
@@ -1703,5 +1791,229 @@ namespace TemuKJD.PDDForms.ProductSelectForms
break;
}
}
private void cmbSourceType_SelectedIndexChanged(object sender, EventArgs e)
{
if (cmbSourceType.Text != "厂商直采")
fillPddCate();
else
fillWxCate();
}
/// <summary>
/// 获取商品所有类目
/// </summary>
void GetPddProductCate()
{
var url = BaseClass.BuildObjString("product/get_pdd_product_cates");
var data = UserLogin.GetSignaturex();
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"))
{
BaseMsgForm.ShowError("商品类目获取失败,请重试!" + BaseRegex.GetStringJson(ref html, "msg"));
}
else
{
pdd_product_cates = BaseRegex.GetStringJson(ref html, "data");
}
Invoke(new Action(() =>
{
if (cmbSourceType.Text != "厂商直采")
{
fillPddCate();
}
else
{
fillWxCate();
}
}));
}
public string pdd_product_cates = "";
void fillPddCate()
{
cmbCat1.Items.Clear();
cmbCat2.Items.Clear();
cmbCat3.Items.Clear();
cmbCat1.Text = "";
cmbCat2.Text = "";
cmbCat3.Text = "";
foreach (var item in pdd_product_cates.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries))
{
cmbCat1.Items.Add(item);
}
cmbCat1.Items.Add("");
}
void fillWxCate()
{
cmbCat1.Items.Clear();
cmbCat2.Items.Clear();
cmbCat3.Items.Clear();
cmbCat1.Text = "";
cmbCat2.Text = "";
cmbCat3.Text = "";
foreach (var cate in GlobalConfig.WxCatList.Where(c => c.level == 1).ToList())
{
cmbCat1.Items.Add(cate.name);
}
}
private void btnReturnSecretData_Click(object sender, EventArgs e)
{
var lstProdId = dgvDbProduct.Rows.Cast<DataGridViewRow>().Where(row
=> row.Cells["colSelect"]?.Value.ParseToBool() == true).Select(r => r.Cells["col_spu_id"]?.Value.ToString()).ToList();
var prodList = this.lstTemuDbProduct.Where(p => lstProdId.Contains(p.spu_id)).ToList();
if (prodList.Count == 0)
return;
this.statusBar.pgbTaskProgress.Maximum = prodList.Count;
this.statusBar.UpdateProgressBar(0);
this.pbLoading.Visible = true;
if (cancellationTokenSource == null || cancellationTokenSource.IsCancellationRequested)
{
cancellationTokenSource = new CancellationTokenSource();
}
Task.Run(() =>
{
try
{
ReturnToServer(prodList);
}
catch (Exception ex)
{
BaseMsgForm.ShowError(ex.Message);
}
// 刷新结果
SearchDbProd(this.ucSplitPage1.CurrentPage);
Invoke(new Action(() =>
{
pbLoading.Visible = false;
BaseMsgForm.ShowInfo("操作完成!数据回传 " + prodList.Count() + " 条数据,成功 " + prodList.Where(p => p.standby3 == "1").Count() + " 条");
}));
}, cancellationTokenSource.Token);
}
public void ReturnToServer(List<KJDDBProduct> dbProdLst)
{
foreach (var prod in dbProdLst)
{
if (cancellationTokenSource.IsCancellationRequested)
break;
Invoke(new Action(() =>
{
this.statusBar.UpdateProgressBar(this.statusBar.pgbTaskProgress.Value + 1);
this.statusBar.lblTaskStatus.Text = "正在回传 " + this.statusBar.pgbTaskProgress.Value + "/" + dbProdLst.Count + " 成功:" + dbProdLst.Where(p => p.standby3 == "1").Count();
}));
var dbProd = PDDDBProdEditForm.GetPddProductDetail(prod.id.ParseToString());
if (string.IsNullOrEmpty(dbProd?.sku_secret_json) && dbProd.sku_secret_json.Length > 10)
{
//continue;
}
var rst = new WxProdFormConverter().JstPddConvertToWxOutServer(dbProd);
if (!rst.Contains("\"success\":true"))
{
continue;
}
var prodDataStr = "";
try
{
var prodDataObj = JsonHelper.JObjectParse(rst)["data"];
prodDataObj["spuCode"] = dbProd.ext_code;
prodDataStr = JsonHelper.SerializeObject(prodDataObj);
}
catch
{
continue;
}
string url = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/addGoods";
var exportRst = WXHttpResponseBLL.e57PostResponse(url, prodDataStr, "");
//Thread.Sleep(500);
// 导出成功,回写数据
if (exportRst.Contains("\"code\":200"))
{
if (chkPullAfterPush.Checked)
{
url = "https://po.e57.cn/prod-api/api/oms-api/updateGoodsId";
string body = dbProd.sku_secret_json.TrimStart('[').TrimEnd(']');
var getRst = WXHttpResponseBLL.e57PostResponse(url, body, "");
if (getRst.Contains("\"code\":0") || getRst.Contains("<code>200</code>"))
{
try
{
{
//url = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/goods/list/get";
//string bodyx = "{\"spuCodes\":[\"" + dbProd.ext_code + "\"]}";
//var getRstx = WXHttpResponseBLL.e57PostResponse(url, bodyx, "");
}
var url3 = BaseClass.BuildPDDObjString("product/mdy_product");
if (1==1)
{
var data3 = Work.UserLogin.GetSignaturex() +
"&spu_id=" + dbProd.spu_id +
"&standby3=" + 1;
var html = GetHtml.PostUtf8(url3, data3);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(url3, data3);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
{
}
else
{
prod.standby3 = "1";
dbProd.standby3 = "1";
}
}
else
{
}
}
catch
{
}
}
else
{
}
}
////如果外部服务端提示入库成功又没有实际加成功,则记录未回拉
//if (prod.send_to_out_server == 2)
//{
// var url2 = BaseClass.BuildPDDObjString("product/mdy_product");
// var data2 = Work.UserLogin.GetSignaturex() +
// "&spu_id=" + dbProd.spu_id +
// "&send_to_out_server=" + 2;
// var html = GetHtml.PostUtf8(url2, data2);
// if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
// html = GetHtml.PostUtf8(url2, data2);
// if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
// {
// }
//}
}
else
{
}
Thread.Sleep(100);
// 查询微信接口token
//url = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/shop/list?userName=阿杰账户";
//exportRst = WXHttpResponseBLL.e57PostResponse(url, "&warehouseNum=123456&shopId=46568955", "");
//exportRst = WXHttpResponseBLL.e57GetResponse(url, "");
}
}
}
}
@@ -126,6 +126,9 @@
<metadata name="colFromShopId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colFromShopName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="col_product_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>