1.界面优化调整 2.618取消活动 3.清理无流量新 4.用户商品库1688及拼多多外部商品入库逻辑优化 5.带百分号的属性微信上货优化 6.数据库产品在不同用户间迁移 7.删除店铺功能开放给充值用户防止店铺导入错误无法删除

This commit is contained in:
wule committed 2026-06-11 11:38:08 +08:00
1 parent 2759ff0f6d
commit 0a9980335f
59 files changed
+3078 -652

No files matched your search

@@ -91,7 +91,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.dtpStart = new System.Windows.Forms.DateTimePicker();
this.chkTime = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.cmbCat2 = new System.Windows.Forms.ComboBox();
this.chkNoUserProduct = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.label16 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.txtSecretStyleCode = new System.Windows.Forms.TextBox();
@@ -127,7 +126,9 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.btnSearch = new DevComponents.DotNetBar.PanelEx();
this.label11 = new System.Windows.Forms.Label();
this.cmbSpProdType = new System.Windows.Forms.ComboBox();
this.panel1 = new System.Windows.Forms.Panel();
this.chkWXComplateProd = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.chkNoUserProduct = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.chkPullAfterPush = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
@@ -178,6 +179,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.col_select_product = new System.Windows.Forms.DataGridViewLinkColumn();
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
this.btnAddUserProd = new DevComponents.DotNetBar.PanelEx();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
@@ -189,6 +191,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.tabPage2.SuspendLayout();
this.flowLayoutPanel1.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
this.splitContainer2.Panel1.SuspendLayout();
this.splitContainer2.Panel2.SuspendLayout();
@@ -247,6 +250,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
// tabPage1
//
this.tabPage1.Controls.Add(this.btnAddUserProd);
this.tabPage1.Controls.Add(this.btnTitleFission);
this.tabPage1.Controls.Add(this.btnSetGroup);
this.tabPage1.Controls.Add(this.btnDelSelect);
@@ -270,7 +274,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.btnTitleFission.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnTitleFission.Location = new System.Drawing.Point(6, 13);
this.btnTitleFission.Name = "btnTitleFission";
this.btnTitleFission.Size = new System.Drawing.Size(82, 25);
this.btnTitleFission.Size = new System.Drawing.Size(96, 25);
this.btnTitleFission.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnTitleFission.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnTitleFission.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
@@ -293,7 +297,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.btnSetGroup.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnSetGroup.DisabledBackColor = System.Drawing.Color.Empty;
this.btnSetGroup.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSetGroup.Location = new System.Drawing.Point(208, 13);
this.btnSetGroup.Location = new System.Drawing.Point(216, 13);
this.btnSetGroup.Name = "btnSetGroup";
this.btnSetGroup.Size = new System.Drawing.Size(84, 25);
this.btnSetGroup.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -340,7 +344,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.cmbGroup.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.cmbGroup.FormattingEnabled = true;
this.cmbGroup.Location = new System.Drawing.Point(114, 13);
this.cmbGroup.Location = new System.Drawing.Point(122, 13);
this.cmbGroup.Name = "cmbGroup";
this.cmbGroup.Size = new System.Drawing.Size(92, 25);
this.cmbGroup.TabIndex = 640;
@@ -354,7 +358,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"安全商品",
"违规商品",
"未校验"});
this.cmbSetWxSafe.Location = new System.Drawing.Point(114, 41);
this.cmbSetWxSafe.Location = new System.Drawing.Point(122, 41);
this.cmbSetWxSafe.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbSetWxSafe.Name = "cmbSetWxSafe";
this.cmbSetWxSafe.Size = new System.Drawing.Size(92, 25);
@@ -367,7 +371,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.btnSetWxSafe.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnSetWxSafe.DisabledBackColor = System.Drawing.Color.Empty;
this.btnSetWxSafe.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSetWxSafe.Location = new System.Drawing.Point(208, 41);
this.btnSetWxSafe.Location = new System.Drawing.Point(216, 41);
this.btnSetWxSafe.Name = "btnSetWxSafe";
this.btnSetWxSafe.Size = new System.Drawing.Size(84, 25);
this.btnSetWxSafe.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -826,7 +830,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.tableLayoutPanel1.Controls.Add(this.dtpStart, 9, 2);
this.tableLayoutPanel1.Controls.Add(this.chkTime, 8, 2);
this.tableLayoutPanel1.Controls.Add(this.cmbCat2, 5, 2);
this.tableLayoutPanel1.Controls.Add(this.chkNoUserProduct, 15, 2);
this.tableLayoutPanel1.Controls.Add(this.label16, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.label1, 0, 2);
this.tableLayoutPanel1.Controls.Add(this.txtSecretStyleCode, 5, 0);
@@ -862,7 +865,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.tableLayoutPanel1.Controls.Add(this.btnSearch, 16, 0);
this.tableLayoutPanel1.Controls.Add(this.label11, 14, 0);
this.tableLayoutPanel1.Controls.Add(this.cmbSpProdType, 15, 0);
this.tableLayoutPanel1.Controls.Add(this.chkWXComplateProd, 13, 2);
this.tableLayoutPanel1.Controls.Add(this.panel1, 13, 2);
this.tableLayoutPanel1.Location = new System.Drawing.Point(4, 4);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 3;
@@ -870,7 +873,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33445F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33112F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(900, 105);
this.tableLayoutPanel1.Size = new System.Drawing.Size(908, 105);
this.tableLayoutPanel1.TabIndex = 679;
//
// cmbHasFission
@@ -881,17 +884,17 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"",
"是",
"否"});
this.cmbHasFission.Location = new System.Drawing.Point(794, 42);
this.cmbHasFission.Location = new System.Drawing.Point(801, 42);
this.cmbHasFission.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbHasFission.Name = "cmbHasFission";
this.cmbHasFission.Size = new System.Drawing.Size(48, 25);
this.cmbHasFission.Size = new System.Drawing.Size(49, 25);
this.cmbHasFission.TabIndex = 981;
//
// label20
//
this.label20.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label20.AutoSize = true;
this.label20.Location = new System.Drawing.Point(738, 44);
this.label20.Location = new System.Drawing.Point(745, 44);
this.label20.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label20.Name = "label20";
this.label20.Size = new System.Drawing.Size(56, 17);
@@ -901,16 +904,16 @@ namespace TemuKJD.PDDForms.ProductSelectForms
// txtViewUvMin
//
this.txtViewUvMin.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.txtViewUvMin.Location = new System.Drawing.Point(684, 41);
this.txtViewUvMin.Location = new System.Drawing.Point(690, 41);
this.txtViewUvMin.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtViewUvMin.Name = "txtViewUvMin";
this.txtViewUvMin.Size = new System.Drawing.Size(48, 23);
this.txtViewUvMin.Size = new System.Drawing.Size(49, 23);
this.txtViewUvMin.TabIndex = 980;
//
// chkViewUvMin
//
this.chkViewUvMin.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.chkViewUvMin.Location = new System.Drawing.Point(625, 42);
this.chkViewUvMin.Location = new System.Drawing.Point(631, 42);
this.chkViewUvMin.Name = "chkViewUvMin";
this.chkViewUvMin.Size = new System.Drawing.Size(56, 21);
this.chkViewUvMin.TabIndex = 978;
@@ -925,17 +928,17 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"",
"是",
"否"});
this.cmbPddRelation.Location = new System.Drawing.Point(684, 7);
this.cmbPddRelation.Location = new System.Drawing.Point(690, 7);
this.cmbPddRelation.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbPddRelation.Name = "cmbPddRelation";
this.cmbPddRelation.Size = new System.Drawing.Size(48, 25);
this.cmbPddRelation.Size = new System.Drawing.Size(49, 25);
this.cmbPddRelation.TabIndex = 805;
//
// label19
//
this.label19.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label19.AutoSize = true;
this.label19.Location = new System.Drawing.Point(628, 9);
this.label19.Location = new System.Drawing.Point(634, 9);
this.label19.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(56, 17);
@@ -948,10 +951,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.tableLayoutPanel1.SetColumnSpan(this.dtpEnd, 2);
this.dtpEnd.CustomFormat = "yyyy-MM-dd HH:mm";
this.dtpEnd.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dtpEnd.Location = new System.Drawing.Point(571, 76);
this.dtpEnd.Location = new System.Drawing.Point(576, 76);
this.dtpEnd.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.dtpEnd.Name = "dtpEnd";
this.dtpEnd.Size = new System.Drawing.Size(110, 23);
this.dtpEnd.Size = new System.Drawing.Size(111, 23);
this.dtpEnd.TabIndex = 979;
//
// dtpStart
@@ -960,16 +963,16 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.tableLayoutPanel1.SetColumnSpan(this.dtpStart, 2);
this.dtpStart.CustomFormat = "yyyy-MM-dd HH:mm";
this.dtpStart.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dtpStart.Location = new System.Drawing.Point(461, 76);
this.dtpStart.Location = new System.Drawing.Point(465, 76);
this.dtpStart.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.dtpStart.Name = "dtpStart";
this.dtpStart.Size = new System.Drawing.Size(107, 23);
this.dtpStart.Size = new System.Drawing.Size(108, 23);
this.dtpStart.TabIndex = 978;
//
// chkTime
//
this.chkTime.Anchor = System.Windows.Forms.AnchorStyles.None;
this.chkTime.Location = new System.Drawing.Point(393, 77);
this.chkTime.Location = new System.Drawing.Point(397, 77);
this.chkTime.Name = "chkTime";
this.chkTime.Size = new System.Drawing.Size(65, 21);
this.chkTime.TabIndex = 977;
@@ -980,28 +983,13 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
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(246, 77);
this.cmbCat2.Location = new System.Drawing.Point(248, 77);
this.cmbCat2.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCat2.Name = "cmbCat2";
this.cmbCat2.Size = new System.Drawing.Size(48, 25);
this.cmbCat2.Size = new System.Drawing.Size(49, 25);
this.cmbCat2.TabIndex = 804;
this.cmbCat2.SelectedIndexChanged += new System.EventHandler(this.cmbCateFilter2_SelectedIndexChanged);
//
// chkNoUserProduct
//
this.chkNoUserProduct.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.chkNoUserProduct.AutoSize = true;
this.chkNoUserProduct.Checked = true;
this.chkNoUserProduct.CheckState = System.Windows.Forms.CheckState.Checked;
this.tableLayoutPanel1.SetColumnSpan(this.chkNoUserProduct, 2);
this.chkNoUserProduct.Location = new System.Drawing.Point(800, 77);
this.chkNoUserProduct.Margin = new System.Windows.Forms.Padding(6, 3, 3, 3);
this.chkNoUserProduct.Name = "chkNoUserProduct";
this.chkNoUserProduct.Size = new System.Drawing.Size(97, 21);
this.chkNoUserProduct.TabIndex = 809;
this.chkNoUserProduct.Text = "不显示客户商品";
this.chkNoUserProduct.UseVisualStyleBackColor = true;
//
// label16
//
this.label16.Anchor = System.Windows.Forms.AnchorStyles.Right;
@@ -1027,17 +1015,17 @@ 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(248, 6);
this.txtSecretStyleCode.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtSecretStyleCode.Name = "txtSecretStyleCode";
this.txtSecretStyleCode.Size = new System.Drawing.Size(48, 23);
this.txtSecretStyleCode.Size = new System.Drawing.Size(49, 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(207, 79);
this.label14.Location = new System.Drawing.Point(209, 79);
this.label14.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(39, 17);
@@ -1048,7 +1036,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.label15.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label15.AutoSize = true;
this.label15.Location = new System.Drawing.Point(214, 9);
this.label15.Location = new System.Drawing.Point(216, 9);
this.label15.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(32, 17);
@@ -1059,7 +1047,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.label13.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(515, 44);
this.label13.Location = new System.Drawing.Point(520, 44);
this.label13.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(56, 17);
@@ -1081,10 +1069,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"机会商品",
"以图搜品",
"多多外部数据"});
this.cmbSourceType.Location = new System.Drawing.Point(246, 42);
this.cmbSourceType.Location = new System.Drawing.Point(248, 42);
this.cmbSourceType.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbSourceType.Name = "cmbSourceType";
this.cmbSourceType.Size = new System.Drawing.Size(48, 25);
this.cmbSourceType.Size = new System.Drawing.Size(49, 25);
this.cmbSourceType.TabIndex = 654;
this.cmbSourceType.SelectedIndexChanged += new System.EventHandler(this.cmbSourceType_SelectedIndexChanged);
//
@@ -1092,7 +1080,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.label10.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(214, 44);
this.label10.Location = new System.Drawing.Point(216, 44);
this.label10.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(32, 17);
@@ -1116,7 +1104,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.txtSPU.Location = new System.Drawing.Point(60, 6);
this.txtSPU.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtSPU.Name = "txtSPU";
this.txtSPU.Size = new System.Drawing.Size(48, 23);
this.txtSPU.Size = new System.Drawing.Size(49, 23);
this.txtSPU.TabIndex = 434;
//
// cmbWxCat
@@ -1127,10 +1115,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"",
"是",
"否"});
this.cmbWxCat.Location = new System.Drawing.Point(571, 7);
this.cmbWxCat.Location = new System.Drawing.Point(576, 7);
this.cmbWxCat.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbWxCat.Name = "cmbWxCat";
this.cmbWxCat.Size = new System.Drawing.Size(48, 25);
this.cmbWxCat.Size = new System.Drawing.Size(49, 25);
this.cmbWxCat.TabIndex = 802;
//
// txtSKC
@@ -1139,7 +1127,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.txtSKC.Location = new System.Drawing.Point(60, 41);
this.txtSKC.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtSKC.Name = "txtSKC";
this.txtSKC.Size = new System.Drawing.Size(48, 23);
this.txtSKC.Size = new System.Drawing.Size(49, 23);
this.txtSKC.TabIndex = 432;
//
// cmbSort
@@ -1149,10 +1137,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.cmbSort.Items.AddRange(new object[] {
"入库时间",
"曝光量"});
this.cmbSort.Location = new System.Drawing.Point(339, 42);
this.cmbSort.Location = new System.Drawing.Point(342, 42);
this.cmbSort.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbSort.Name = "cmbSort";
this.cmbSort.Size = new System.Drawing.Size(48, 25);
this.cmbSort.Size = new System.Drawing.Size(49, 25);
this.cmbSort.TabIndex = 448;
this.cmbSort.Text = "入库时间";
//
@@ -1160,7 +1148,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.label6.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(307, 44);
this.label6.Location = new System.Drawing.Point(310, 44);
this.label6.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(32, 17);
@@ -1171,7 +1159,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.label4.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(307, 9);
this.label4.Location = new System.Drawing.Point(310, 9);
this.label4.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(32, 17);
@@ -1182,7 +1170,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.label12.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label12.AutoSize = true;
this.label12.Location = new System.Drawing.Point(515, 9);
this.label12.Location = new System.Drawing.Point(520, 9);
this.label12.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(56, 17);
@@ -1192,17 +1180,17 @@ 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(339, 6);
this.txtExtCode.Location = new System.Drawing.Point(342, 6);
this.txtExtCode.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtExtCode.Name = "txtExtCode";
this.txtExtCode.Size = new System.Drawing.Size(48, 23);
this.txtExtCode.Size = new System.Drawing.Size(49, 23);
this.txtExtCode.TabIndex = 429;
//
// lblGroup
//
this.lblGroup.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.lblGroup.AutoSize = true;
this.lblGroup.Location = new System.Drawing.Point(121, 44);
this.lblGroup.Location = new System.Drawing.Point(122, 44);
this.lblGroup.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.lblGroup.Name = "lblGroup";
this.lblGroup.Size = new System.Drawing.Size(32, 17);
@@ -1213,10 +1201,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(153, 42);
this.cmbGroupFilter.Location = new System.Drawing.Point(154, 42);
this.cmbGroupFilter.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbGroupFilter.Name = "cmbGroupFilter";
this.cmbGroupFilter.Size = new System.Drawing.Size(48, 25);
this.cmbGroupFilter.Size = new System.Drawing.Size(49, 25);
this.cmbGroupFilter.TabIndex = 653;
//
// cmbExportToOutServer
@@ -1228,17 +1216,17 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"是",
"否",
"导出未拉回"});
this.cmbExportToOutServer.Location = new System.Drawing.Point(571, 42);
this.cmbExportToOutServer.Location = new System.Drawing.Point(576, 42);
this.cmbExportToOutServer.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbExportToOutServer.Name = "cmbExportToOutServer";
this.cmbExportToOutServer.Size = new System.Drawing.Size(48, 25);
this.cmbExportToOutServer.Size = new System.Drawing.Size(49, 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(393, 9);
this.label3.Location = new System.Drawing.Point(397, 9);
this.label3.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(56, 17);
@@ -1248,10 +1236,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(461, 6);
this.txtProdName.Location = new System.Drawing.Point(465, 6);
this.txtProdName.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtProdName.Name = "txtProdName";
this.txtProdName.Size = new System.Drawing.Size(48, 23);
this.txtProdName.Size = new System.Drawing.Size(49, 23);
this.txtProdName.TabIndex = 427;
//
// cmbWxSafe
@@ -1264,10 +1252,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"安全商品",
"违规商品",
"未校验"});
this.cmbWxSafe.Location = new System.Drawing.Point(461, 42);
this.cmbWxSafe.Location = new System.Drawing.Point(465, 42);
this.cmbWxSafe.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbWxSafe.Name = "cmbWxSafe";
this.cmbWxSafe.Size = new System.Drawing.Size(48, 25);
this.cmbWxSafe.Size = new System.Drawing.Size(49, 25);
this.cmbWxSafe.TabIndex = 676;
this.cmbWxSafe.Text = "安全+未校验";
//
@@ -1275,7 +1263,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.lblWxSafe.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.lblWxSafe.AutoSize = true;
this.lblWxSafe.Location = new System.Drawing.Point(393, 44);
this.lblWxSafe.Location = new System.Drawing.Point(397, 44);
this.lblWxSafe.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.lblWxSafe.Name = "lblWxSafe";
this.lblWxSafe.Size = new System.Drawing.Size(56, 17);
@@ -1286,7 +1274,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.lblNotes.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.lblNotes.AutoSize = true;
this.lblNotes.Location = new System.Drawing.Point(121, 9);
this.lblNotes.Location = new System.Drawing.Point(122, 9);
this.lblNotes.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.lblNotes.Name = "lblNotes";
this.lblNotes.Size = new System.Drawing.Size(32, 17);
@@ -1296,20 +1284,20 @@ 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(153, 6);
this.txtNotes.Location = new System.Drawing.Point(154, 6);
this.txtNotes.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtNotes.Name = "txtNotes";
this.txtNotes.Size = new System.Drawing.Size(48, 23);
this.txtNotes.Size = new System.Drawing.Size(49, 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(153, 77);
this.cmbCat1.Location = new System.Drawing.Point(154, 77);
this.cmbCat1.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCat1.Name = "cmbCat1";
this.cmbCat1.Size = new System.Drawing.Size(48, 25);
this.cmbCat1.Size = new System.Drawing.Size(49, 25);
this.cmbCat1.TabIndex = 805;
this.cmbCat1.SelectedIndexChanged += new System.EventHandler(this.cmbCateFilter1_SelectedIndexChanged);
//
@@ -1317,7 +1305,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.label2.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(114, 79);
this.label2.Location = new System.Drawing.Point(115, 79);
this.label2.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(39, 17);
@@ -1328,10 +1316,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
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(339, 77);
this.cmbCat3.Location = new System.Drawing.Point(342, 77);
this.cmbCat3.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCat3.Name = "cmbCat3";
this.cmbCat3.Size = new System.Drawing.Size(48, 25);
this.cmbCat3.Size = new System.Drawing.Size(49, 25);
this.cmbCat3.TabIndex = 811;
this.cmbCat3.SelectedIndexChanged += new System.EventHandler(this.cmbCateFilter3_SelectedIndexChanged);
//
@@ -1339,7 +1327,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.label17.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label17.AutoSize = true;
this.label17.Location = new System.Drawing.Point(300, 79);
this.label17.Location = new System.Drawing.Point(303, 79);
this.label17.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(39, 17);
@@ -1352,7 +1340,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.txtRealCoid.Location = new System.Drawing.Point(60, 76);
this.txtRealCoid.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtRealCoid.Name = "txtRealCoid";
this.txtRealCoid.Size = new System.Drawing.Size(48, 23);
this.txtRealCoid.Size = new System.Drawing.Size(49, 23);
this.txtRealCoid.TabIndex = 814;
//
// btnEmpty
@@ -1361,7 +1349,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.btnEmpty.CanvasColor = System.Drawing.SystemColors.Control;
this.btnEmpty.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnEmpty.DisabledBackColor = System.Drawing.Color.Empty;
this.btnEmpty.Location = new System.Drawing.Point(848, 40);
this.btnEmpty.Location = new System.Drawing.Point(856, 40);
this.btnEmpty.Name = "btnEmpty";
this.btnEmpty.Size = new System.Drawing.Size(46, 25);
this.btnEmpty.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -1387,7 +1375,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(848, 5);
this.btnSearch.Location = new System.Drawing.Point(856, 5);
this.btnSearch.Name = "btnSearch";
this.btnSearch.Size = new System.Drawing.Size(46, 25);
this.btnSearch.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -1409,7 +1397,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.label11.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(738, 9);
this.label11.Location = new System.Drawing.Point(745, 9);
this.label11.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(56, 17);
@@ -1424,17 +1412,29 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"",
"普通商品",
"爆款数据"});
this.cmbSpProdType.Location = new System.Drawing.Point(794, 7);
this.cmbSpProdType.Location = new System.Drawing.Point(801, 7);
this.cmbSpProdType.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbSpProdType.Name = "cmbSpProdType";
this.cmbSpProdType.Size = new System.Drawing.Size(48, 25);
this.cmbSpProdType.Size = new System.Drawing.Size(49, 25);
this.cmbSpProdType.TabIndex = 677;
//
// panel1
//
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tableLayoutPanel1.SetColumnSpan(this.panel1, 4);
this.panel1.Controls.Add(this.chkWXComplateProd);
this.panel1.Controls.Add(this.chkNoUserProduct);
this.panel1.Location = new System.Drawing.Point(693, 73);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(212, 29);
this.panel1.TabIndex = 982;
//
// chkWXComplateProd
//
this.chkWXComplateProd.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.tableLayoutPanel1.SetColumnSpan(this.chkWXComplateProd, 2);
this.chkWXComplateProd.Location = new System.Drawing.Point(690, 77);
this.chkWXComplateProd.Location = new System.Drawing.Point(1, 4);
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);
@@ -1442,6 +1442,20 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.chkWXComplateProd.Text = "微信回采商品";
this.chkWXComplateProd.UseVisualStyleBackColor = true;
//
// chkNoUserProduct
//
this.chkNoUserProduct.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.chkNoUserProduct.AutoSize = true;
this.chkNoUserProduct.Checked = true;
this.chkNoUserProduct.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkNoUserProduct.Location = new System.Drawing.Point(98, 4);
this.chkNoUserProduct.Margin = new System.Windows.Forms.Padding(6, 3, 3, 3);
this.chkNoUserProduct.Name = "chkNoUserProduct";
this.chkNoUserProduct.Size = new System.Drawing.Size(111, 21);
this.chkNoUserProduct.TabIndex = 809;
this.chkNoUserProduct.Text = "不显示客户商品";
this.chkNoUserProduct.UseVisualStyleBackColor = true;
//
// chkPullAfterPush
//
this.chkPullAfterPush.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@@ -2018,6 +2032,32 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.statusBar.Size = new System.Drawing.Size(1438, 25);
this.statusBar.TabIndex = 5;
//
// btnAddUserProd
//
this.btnAddUserProd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnAddUserProd.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnAddUserProd.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnAddUserProd.DisabledBackColor = System.Drawing.Color.Empty;
this.btnAddUserProd.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnAddUserProd.Location = new System.Drawing.Point(6, 41);
this.btnAddUserProd.Name = "btnAddUserProd";
this.btnAddUserProd.Size = new System.Drawing.Size(96, 25);
this.btnAddUserProd.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnAddUserProd.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnAddUserProd.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnAddUserProd.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnAddUserProd.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnAddUserProd.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnAddUserProd.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnAddUserProd.Style.GradientAngle = 90;
this.btnAddUserProd.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnAddUserProd.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnAddUserProd.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnAddUserProd.TabIndex = 800;
this.btnAddUserProd.Text = "添加到用户商品";
this.btnAddUserProd.Visible = false;
this.btnAddUserProd.Click += new System.EventHandler(this.btnAddUserProd_Click);
//
// PDDDBProdListForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
@@ -2049,6 +2089,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.flowLayoutPanel1.PerformLayout();
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.splitContainer2.Panel1.ResumeLayout(false);
this.splitContainer2.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
@@ -2195,5 +2237,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
private System.Windows.Forms.TabPage tabPage4;
private System.Windows.Forms.Label label8;
private UserComponent.UcCheckBox chkNoUserProduct;
private System.Windows.Forms.Panel panel1;
private DevComponents.DotNetBar.PanelEx btnAddUserProd;
}
}
@@ -112,6 +112,13 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.dgvDbProduct.Columns["colAddTimes"].Visible = true;
}
//#if DEBUG
if (BaseClass.MainPath == "29wx")
{
btnAddUserProd.Visible = true;
}
//#endif
this.ucSplitPage1.PageChange += UcSplitPage1_PageChange;
this.dgvDbProduct.AddSelectorColumn("colSelect");
@@ -177,7 +184,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
}));
foreach (var prod in lstTemuDbProduct)
{
string catName = prod.cat_name ?? prod.cat_id;
string catName = (prod.cat_name ?? prod.cat_id);
if (prod.wx_cat_leaf != null)
{
var catN = GlobalConfig.WxCatList.FirstOrDefault(c => c.cat_id == prod.wx_cat_leaf.ParseToString())?.name;
@@ -210,6 +217,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms
catName = catN + " >> " + catName;
}
}
if (prod.wx_cat_1 == null || prod.wx_cat_2 == null || prod.wx_cat_3 == null || prod.wx_cat_leaf == null)
catName += "(未识别)";
Invoke(new Action(() =>
{
int rowIndex = this.dgvDbProduct.Rows.Add(
@@ -1381,6 +1390,13 @@ namespace TemuKJD.PDDForms.ProductSelectForms
mainImgLst3 = wxClientProdInfo.info.head_img.Take(3).ToList();
productTitle = wxClientProdInfo.info.title;
}
if (dbProd.product_get_type_text == "微信店采")
{
string convertRst = "";
var pInfo = new PDDProdFormConverter().WXProdToPddConvert(out convertRst, dbProd);
mainImgLst3 = pInfo.detail.galleries.Where(g => g.type == 1).Select(g => g.url).ToList();
productTitle = pInfo.detail.goods_name;
}
if (dbProd.product_get_type_text == "1688外部数据")
{
string convertRst = "";
@@ -2396,5 +2412,226 @@ namespace TemuKJD.PDDForms.ProductSelectForms
{
Get1688ProductForm.Out1688ProductImport(false, this.statusBar, this.pbLoading);
}
private void btnAddUserProd_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().Split(' ').FirstOrDefault()).ToList();
var prodList = this.lstTemuDbProduct.Where(p => lstProdId.Contains(p.spu_id)).ToList();
if (prodList.Count == 0)
{
BaseMsgForm.ShowInfo("请选择要添加到用户商品库的商品");
return;
}
WXForms.AdminForms.WXAdminAccountSelectForm wxAdminAccountSelectForm = new WXForms.AdminForms.WXAdminAccountSelectForm();
wxAdminAccountSelectForm.chkChanceProdCollect.Checked = true;
wxAdminAccountSelectForm.chkChanceProdCollect.Enabled = false;
wxAdminAccountSelectForm.ShowDialog();
var user = wxAdminAccountSelectForm.selectUser;
if (user == null)
{
BaseMsgForm.ShowInfo("未选择用户");
return;
}
this.statusBar.pgbTaskProgress.Maximum = prodList.Count;
this.statusBar.UpdateProgressBar(0);
if (cancellationTokenSource == null || cancellationTokenSource.IsCancellationRequested)
{
cancellationTokenSource = new CancellationTokenSource();
}
this.pbLoading.Visible = true;
Task.Run(() =>
{
try
{
int fail = 0;
int success = 0;
int prodTotal = prodList.Count;
foreach (var prod in prodList)
{
Invoke(new Action(() =>
{
statusBar.pgbTaskProgress.Maximum = prodTotal;
statusBar.UpdateProgressBar(fail + success);
statusBar.lblTaskStatus.Text = "添加用户商品总数" + prodTotal + ",成功" + success + ",失败" + fail;
}));
var dbProd = PDDDBProdEditForm.GetPddProductDetail(prod.id.ParseToString());
var rst = AddUserProdFromPDDDB(user, dbProd);
if (!rst.Contains("成功"))
{
fail++;
continue;
}
Thread.Sleep(100);
rst = AddUserProdFromPDDDB(user, dbProd);
if (!rst.Contains("成功"))
{
fail++;
continue;
}
success++;
}
Invoke(new Action(() =>
{
statusBar.pgbTaskProgress.Maximum = prodTotal;
statusBar.UpdateProgressBar(fail + success);
statusBar.lblTaskStatus.Text = "添加用户商品总数" + prodTotal + ",成功" + success + ",失败" + fail;
}));
}
catch (Exception ex)
{
BaseMsgForm.ShowError(ex.Message);
}
// 刷新结果
SearchDbProd(this.ucSplitPage1.CurrentPage);
Invoke(new Action(() =>
{
pbLoading.Visible = false;
statusBar.lblTaskStatus.Text += " 添加到用户商品库完成";
BaseMsgForm.ShowInfo("添加到用户商品库完成!");
}));
}, cancellationTokenSource.Token);
}
public string AddUserProdFromPDDDB(UserSubAccountInfo user, KJDDBProduct sourceProd)
{
if (user == null)
return "添加用户商品入库失败!用户不存在";
if (sourceProd == null)
return "添加用户商品入库失败!商品不存在";
string prodId = sourceProd.spu_id?.Split('-')?.FirstOrDefault();
if (prodId.IsNullOrEmpty())
return "添加用户商品入库失败!商品ID不存在";
var isCollectAuthorityUser = user.authority.Contains("商品采集");
if (!isCollectAuthorityUser)
return "添加用户商品入库失败!用户无商品采集权限";
// 商品采集权限用户采集的数据加上用户前缀(商品前缀显示给用户的时候隐藏)
string collectAuthorityTag = "";
if (isCollectAuthorityUser)
collectAuthorityTag = "-" + user.user_name;
bool isExist = false;
var existUrl = BaseClass.BuildPDDObjString("product/get_product_spu_id_list");
string existData = UserLogin.GetSignaturex() + "&search_spu_ids=" + prodId + collectAuthorityTag;
string html = GetHtml.PostUtf8(existUrl, existData);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(existUrl, existData);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
{
return "添加用户商品入库失败,产品数据库连接失败";
}
else
{
if (html.Contains("\"data\":[") && !html.Contains("\"data\":[]"))
isExist = true;
}
var url = BaseClass.BuildPDDObjString("product/add_product");
if (isExist)
url = BaseClass.BuildPDDObjString("product/mdy_product");
var data = Work.UserLogin.GetSignaturex();
data += "&spu_id=" + prodId + collectAuthorityTag;
data += "&skc_id=" + sourceProd.skc_id;
data += "&from_shop_id=" + sourceProd.from_shop_id;
data += "&from_shop_name=" + sourceProd.from_shop_name;
if (!string.IsNullOrWhiteSpace(sourceProd.real_coid))
data += "&real_coid=" + sourceProd.real_coid;
data += "&price_text=" + sourceProd.price_text;
data += "&ext_code=" + sourceProd.ext_code;
data += "&product_name=" + HttpUtility.UrlEncode(sourceProd.product_name, Encoding.UTF8) +
"&product_json=" + HttpUtility.UrlEncode(sourceProd.product_json, Encoding.UTF8) +
"&size_json=" + HttpUtility.UrlEncode(sourceProd.size_json, Encoding.UTF8) +
"&sale_count=" + sourceProd.sale_count +
"&sale_count_text=" + sourceProd.sale_count_text +
"&main_img=" + HttpUtility.UrlEncode(sourceProd.main_img, Encoding.UTF8) +
"&wx_safe_status=" + HttpUtility.UrlEncode(sourceProd.wx_safe_status, Encoding.UTF8) +
"&product_get_type=" + HttpUtility.UrlEncode(sourceProd.product_get_type_text, Encoding.UTF8);
if (isCollectAuthorityUser)
{
data += "&add_user_name=" + user.user_name;
data += "&group=用户" + user.user_name;
}
if (sourceProd.wx_cat_1 != null) data += "&wx_cat_1=" + sourceProd.wx_cat_1;
if (sourceProd.wx_cat_2 != null) data += "&wx_cat_2=" + sourceProd.wx_cat_2;
if (sourceProd.wx_cat_3 != null) data += "&wx_cat_3=" + sourceProd.wx_cat_3;
if (sourceProd.wx_cat_leaf != null) data += "&wx_cat_leaf=" + sourceProd.wx_cat_leaf;
data += "&main_cat_id=" + sourceProd.main_cat_id;
data += "&main_cat_name=" + sourceProd.main_cat_name;
data += "&cat_id=" + sourceProd.cat_id;
data += "&cat_name=" + HttpUtility.UrlEncode(sourceProd.cat_name.ParseToString(), Encoding.UTF8);
if (sourceProd.distribution_set != null)
data += "&distribution_set=" + sourceProd.distribution_set;
// 转移给别的用户就变成普通商品
//var specialProdType = sourceProd.special_prod_type == "爆款数据" ? "爆款数据" : "普通商品";
//if (specialProdType == "爆款数据")
// data += "&add_hot_version=v3";
//data += "&special_prod_type=" + HttpUtility.UrlEncode(specialProdType, Encoding.UTF8);
data += "&special_prod_type=" + HttpUtility.UrlEncode("普通商品", Encoding.UTF8);
if (sourceProd.view_uv != null)
{
data += "&view_uv=" + sourceProd.view_uv;
}
// 其他一些商品数据复制
{
data += "&fission_words=" + sourceProd.fission_words;
data += "&head_words=" + sourceProd.head_words;
data += "&end_words=" + sourceProd.end_words;
data += "&ext_code_price=" + sourceProd.ext_code_price;
data += "&notes=" + sourceProd.notes;
data += "&offline_supplier_id=" + sourceProd.offline_supplier_id;
data += "&offline_supplier_name=" + sourceProd.offline_supplier_name;
data += "&problem_prod_data=" + sourceProd.problem_prod_data;
data += "&send_to_out_server=" + sourceProd.send_to_out_server;
data += "&sku_edit_json=" + sourceProd.sku_edit_json;
data += "&wx_img_map_json=" + sourceProd.wx_img_map_json;
if (!string.IsNullOrEmpty(sourceProd.real_spu_id))
data += "&real_spu_id=" + sourceProd.real_spu_id;
data += "&secret_spu_id=" + sourceProd.secret_spu_id;
data += "&sku_secret_json=" + sourceProd.sku_secret_json;
}
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"))
{
string msg = "商品入库失败!请检查网络连接:" + BaseRegex.GetStringJson(ref html, "msg");
return msg;
}
else
{
//prod.getProductMsg = "商品入库成功!";
//Invoke(new Action(() =>
//{
// row.Cells["colMsg"].Value = prod.getProductMsg;
//}));
if (!isExist)
{
url = BaseClass.BuildPDDObjString("product/mdy_product");
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"))
{
string msg = "商品入库失败!请检查网络连接:" + BaseRegex.GetStringJson(ref html, "msg");
return msg;
}
}
return "微信商品采集入库成功!";
}
}
}
}
@@ -1,505 +0,0 @@
using System.Windows.Forms;
namespace TemuKJD.PDDForms.ProductSelectForms
{
partial class WXUserCollectAuthProdEditNotesForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WXUserCollectAuthProdEditNotesForm));
this.panel2 = new System.Windows.Forms.Panel();
this.lblBound = new System.Windows.Forms.Label();
this.btnCloseLst = new DevComponents.DotNetBar.PanelEx();
this.lstSelectCateList = new System.Windows.Forms.ListBox();
this.btnDelCate = new DevComponents.DotNetBar.PanelEx();
this.label5 = new System.Windows.Forms.Label();
this.txtCateSearch = new DevComponents.DotNetBar.Controls.TextBoxX();
this.cmbCateFilter4Leaf = new System.Windows.Forms.ComboBox();
this.label4 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.cmbCateFilter1 = new System.Windows.Forms.ComboBox();
this.label14 = new System.Windows.Forms.Label();
this.cmbCateFilter2 = new System.Windows.Forms.ComboBox();
this.label17 = new System.Windows.Forms.Label();
this.cmbCateFilter3 = new System.Windows.Forms.ComboBox();
this.label7 = new System.Windows.Forms.Label();
this.txtFissionWords = new DevComponents.DotNetBar.Controls.TextBoxX();
this.btnOK1 = new DevComponents.DotNetBar.PanelEx();
this.btnEditDetail = new DevComponents.DotNetBar.PanelEx();
this.txtProductName = new System.Windows.Forms.TextBox();
this.txtSpuId = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.label8 = new System.Windows.Forms.Label();
this.txtNotes = new DevComponents.DotNetBar.Controls.TextBoxX();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.White;
this.panel2.Controls.Add(this.lblBound);
this.panel2.Controls.Add(this.btnCloseLst);
this.panel2.Controls.Add(this.lstSelectCateList);
this.panel2.Controls.Add(this.btnDelCate);
this.panel2.Controls.Add(this.label5);
this.panel2.Controls.Add(this.txtCateSearch);
this.panel2.Controls.Add(this.cmbCateFilter4Leaf);
this.panel2.Controls.Add(this.label4);
this.panel2.Controls.Add(this.label2);
this.panel2.Controls.Add(this.cmbCateFilter1);
this.panel2.Controls.Add(this.label14);
this.panel2.Controls.Add(this.cmbCateFilter2);
this.panel2.Controls.Add(this.label17);
this.panel2.Controls.Add(this.cmbCateFilter3);
this.panel2.Controls.Add(this.label7);
this.panel2.Controls.Add(this.txtFissionWords);
this.panel2.Controls.Add(this.btnOK1);
this.panel2.Controls.Add(this.btnEditDetail);
this.panel2.Controls.Add(this.txtProductName);
this.panel2.Controls.Add(this.txtSpuId);
this.panel2.Controls.Add(this.label3);
this.panel2.Controls.Add(this.label1);
this.panel2.Controls.Add(this.pictureBox1);
this.panel2.Controls.Add(this.label8);
this.panel2.Controls.Add(this.txtNotes);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(1, 33);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(567, 594);
this.panel2.TabIndex = 1;
//
// lblBound
//
this.lblBound.AutoSize = true;
this.lblBound.Location = new System.Drawing.Point(456, 327);
this.lblBound.Name = "lblBound";
this.lblBound.Size = new System.Drawing.Size(56, 17);
this.lblBound.TabIndex = 884;
this.lblBound.Text = "保证金:";
//
// btnCloseLst
//
this.btnCloseLst.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnCloseLst.CanvasColor = System.Drawing.SystemColors.Control;
this.btnCloseLst.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnCloseLst.DisabledBackColor = System.Drawing.Color.Empty;
this.btnCloseLst.Location = new System.Drawing.Point(510, 280);
this.btnCloseLst.Name = "btnCloseLst";
this.btnCloseLst.Size = new System.Drawing.Size(16, 17);
this.btnCloseLst.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnCloseLst.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnCloseLst.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnCloseLst.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.btnCloseLst.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnCloseLst.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.btnCloseLst.Style.GradientAngle = 90;
this.btnCloseLst.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
this.btnCloseLst.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnCloseLst.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnCloseLst.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnCloseLst.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
this.btnCloseLst.TabIndex = 871;
this.btnCloseLst.Text = "X";
this.btnCloseLst.Visible = false;
this.btnCloseLst.Click += new System.EventHandler(this.btnCloseLst_Click);
//
// lstSelectCateList
//
this.lstSelectCateList.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lstSelectCateList.FormattingEnabled = true;
this.lstSelectCateList.ItemHeight = 17;
this.lstSelectCateList.Location = new System.Drawing.Point(90, 276);
this.lstSelectCateList.Name = "lstSelectCateList";
this.lstSelectCateList.Size = new System.Drawing.Size(440, 21);
this.lstSelectCateList.TabIndex = 858;
this.lstSelectCateList.Visible = false;
this.lstSelectCateList.SelectedIndexChanged += new System.EventHandler(this.lstSelectCateList_SelectedIndexChanged);
//
// btnDelCate
//
this.btnDelCate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnDelCate.CanvasColor = System.Drawing.SystemColors.Control;
this.btnDelCate.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnDelCate.DisabledBackColor = System.Drawing.Color.Empty;
this.btnDelCate.Location = new System.Drawing.Point(474, 253);
this.btnDelCate.Name = "btnDelCate";
this.btnDelCate.Size = new System.Drawing.Size(56, 23);
this.btnDelCate.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnDelCate.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnDelCate.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnDelCate.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.btnDelCate.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnDelCate.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.btnDelCate.Style.GradientAngle = 90;
this.btnDelCate.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
this.btnDelCate.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnDelCate.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnDelCate.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnDelCate.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
this.btnDelCate.TabIndex = 848;
this.btnDelCate.Text = "删除类目";
this.btnDelCate.Click += new System.EventHandler(this.btnDelCate_Click);
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(34, 256);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(56, 17);
this.label5.TabIndex = 834;
this.label5.Text = "类目搜索";
//
// txtCateSearch
//
this.txtCateSearch.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
//
//
//
this.txtCateSearch.Border.Class = "TextBoxBorder";
this.txtCateSearch.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.txtCateSearch.Location = new System.Drawing.Point(90, 253);
this.txtCateSearch.Name = "txtCateSearch";
this.txtCateSearch.PreventEnterBeep = true;
this.txtCateSearch.Size = new System.Drawing.Size(378, 23);
this.txtCateSearch.TabIndex = 833;
this.txtCateSearch.TextChanged += new System.EventHandler(this.txtCateSearch_TextChanged);
//
// cmbCateFilter4Leaf
//
this.cmbCateFilter4Leaf.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.cmbCateFilter4Leaf.FormattingEnabled = true;
this.cmbCateFilter4Leaf.IntegralHeight = false;
this.cmbCateFilter4Leaf.Location = new System.Drawing.Point(310, 323);
this.cmbCateFilter4Leaf.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCateFilter4Leaf.Name = "cmbCateFilter4Leaf";
this.cmbCateFilter4Leaf.Size = new System.Drawing.Size(145, 25);
this.cmbCateFilter4Leaf.TabIndex = 822;
this.cmbCateFilter4Leaf.SelectedIndexChanged += new System.EventHandler(this.cmbCateFilter4Leaf_SelectedIndexChanged);
this.cmbCateFilter4Leaf.TextChanged += new System.EventHandler(this.cmbCateFilter4Leaf_TextChanged);
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(254, 327);
this.label4.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(56, 17);
this.label4.TabIndex = 821;
this.label4.Text = "叶子类目";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(47, 291);
this.label2.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(43, 17);
this.label2.TabIndex = 812;
this.label2.Text = " 类目1";
//
// cmbCateFilter1
//
this.cmbCateFilter1.FormattingEnabled = true;
this.cmbCateFilter1.IntegralHeight = false;
this.cmbCateFilter1.Location = new System.Drawing.Point(90, 287);
this.cmbCateFilter1.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCateFilter1.Name = "cmbCateFilter1";
this.cmbCateFilter1.Size = new System.Drawing.Size(161, 25);
this.cmbCateFilter1.TabIndex = 815;
this.cmbCateFilter1.SelectedIndexChanged += new System.EventHandler(this.cmbCateFilter1_SelectedIndexChanged);
this.cmbCateFilter1.TextChanged += new System.EventHandler(this.cmbCateFilter1_TextChanged);
//
// label14
//
this.label14.AutoSize = true;
this.label14.Location = new System.Drawing.Point(267, 291);
this.label14.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(43, 17);
this.label14.TabIndex = 813;
this.label14.Text = " 类目2";
//
// cmbCateFilter2
//
this.cmbCateFilter2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.cmbCateFilter2.FormattingEnabled = true;
this.cmbCateFilter2.IntegralHeight = false;
this.cmbCateFilter2.Location = new System.Drawing.Point(310, 287);
this.cmbCateFilter2.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCateFilter2.Name = "cmbCateFilter2";
this.cmbCateFilter2.Size = new System.Drawing.Size(220, 25);
this.cmbCateFilter2.TabIndex = 814;
this.cmbCateFilter2.SelectedIndexChanged += new System.EventHandler(this.cmbCateFilter2_SelectedIndexChanged);
this.cmbCateFilter2.TextChanged += new System.EventHandler(this.cmbCateFilter2_TextChanged);
//
// label17
//
this.label17.AutoSize = true;
this.label17.Location = new System.Drawing.Point(47, 327);
this.label17.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(43, 17);
this.label17.TabIndex = 816;
this.label17.Text = " 类目3";
//
// cmbCateFilter3
//
this.cmbCateFilter3.FormattingEnabled = true;
this.cmbCateFilter3.IntegralHeight = false;
this.cmbCateFilter3.Location = new System.Drawing.Point(90, 323);
this.cmbCateFilter3.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCateFilter3.Name = "cmbCateFilter3";
this.cmbCateFilter3.Size = new System.Drawing.Size(161, 25);
this.cmbCateFilter3.TabIndex = 817;
this.cmbCateFilter3.SelectedIndexChanged += new System.EventHandler(this.cmbCateFilter3_SelectedIndexChanged);
this.cmbCateFilter3.TextChanged += new System.EventHandler(this.cmbCateFilter3_TextChanged);
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(34, 417);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(56, 17);
this.label7.TabIndex = 659;
this.label7.Text = "裂变标题";
//
// txtFissionWords
//
this.txtFissionWords.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
//
//
//
this.txtFissionWords.Border.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.txtFissionWords.Border.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.txtFissionWords.Border.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.txtFissionWords.Border.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.txtFissionWords.Border.Class = "CrumbBarBackgroundKey";
this.txtFissionWords.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.txtFissionWords.Border.PaddingBottom = 2;
this.txtFissionWords.Border.PaddingLeft = 2;
this.txtFissionWords.Border.PaddingRight = 2;
this.txtFissionWords.Border.PaddingTop = 2;
this.txtFissionWords.Location = new System.Drawing.Point(90, 417);
this.txtFissionWords.Multiline = true;
this.txtFissionWords.Name = "txtFissionWords";
this.txtFissionWords.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.txtFissionWords.Size = new System.Drawing.Size(440, 123);
this.txtFissionWords.TabIndex = 658;
this.txtFissionWords.WatermarkText = "一行一个";
//
// btnOK1
//
this.btnOK1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnOK1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnOK1.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnOK1.DisabledBackColor = System.Drawing.Color.Empty;
this.btnOK1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOK1.Location = new System.Drawing.Point(484, 550);
this.btnOK1.Name = "btnOK1";
this.btnOK1.Size = new System.Drawing.Size(46, 26);
this.btnOK1.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnOK1.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnOK1.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnOK1.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnOK1.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnOK1.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnOK1.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnOK1.Style.GradientAngle = 90;
this.btnOK1.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnOK1.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnOK1.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnOK1.TabIndex = 651;
this.btnOK1.Text = "提交";
this.btnOK1.Click += new System.EventHandler(this.btnOk_Click);
//
// btnEditDetail
//
this.btnEditDetail.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnEditDetail.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnEditDetail.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnEditDetail.DisabledBackColor = System.Drawing.Color.Empty;
this.btnEditDetail.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnEditDetail.Location = new System.Drawing.Point(34, 550);
this.btnEditDetail.Name = "btnEditDetail";
this.btnEditDetail.Size = new System.Drawing.Size(85, 26);
this.btnEditDetail.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnEditDetail.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnEditDetail.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnEditDetail.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnEditDetail.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnEditDetail.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnEditDetail.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnEditDetail.Style.GradientAngle = 90;
this.btnEditDetail.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnEditDetail.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnEditDetail.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnEditDetail.TabIndex = 647;
this.btnEditDetail.Text = "编辑商品SKU";
this.btnEditDetail.Click += new System.EventHandler(this.btnEditDetail_Click);
//
// txtProductName
//
this.txtProductName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtProductName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.txtProductName.Location = new System.Drawing.Point(90, 196);
this.txtProductName.Multiline = true;
this.txtProductName.Name = "txtProductName";
this.txtProductName.ReadOnly = true;
this.txtProductName.Size = new System.Drawing.Size(440, 46);
this.txtProductName.TabIndex = 397;
//
// txtSpuId
//
this.txtSpuId.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtSpuId.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.txtSpuId.Location = new System.Drawing.Point(90, 162);
this.txtSpuId.Name = "txtSpuId";
this.txtSpuId.ReadOnly = true;
this.txtSpuId.Size = new System.Drawing.Size(440, 23);
this.txtSpuId.TabIndex = 395;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(34, 196);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(56, 17);
this.label3.TabIndex = 392;
this.label3.Text = "商品标题";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(34, 165);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(56, 17);
this.label1.TabIndex = 390;
this.label1.Text = " SPU ID";
//
// pictureBox1
//
this.pictureBox1.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.pictureBox1.Location = new System.Drawing.Point(216, 15);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(136, 136);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 389;
this.pictureBox1.TabStop = false;
this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(34, 359);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(56, 17);
this.label8.TabIndex = 386;
this.label8.Text = " 备注";
//
// txtNotes
//
this.txtNotes.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
//
//
//
this.txtNotes.Border.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.txtNotes.Border.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.txtNotes.Border.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.txtNotes.Border.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.txtNotes.Border.Class = "CrumbBarBackgroundKey";
this.txtNotes.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.txtNotes.Border.PaddingBottom = 2;
this.txtNotes.Border.PaddingLeft = 2;
this.txtNotes.Border.PaddingRight = 2;
this.txtNotes.Border.PaddingTop = 2;
this.txtNotes.Location = new System.Drawing.Point(90, 359);
this.txtNotes.Multiline = true;
this.txtNotes.Name = "txtNotes";
this.txtNotes.Size = new System.Drawing.Size(440, 47);
this.txtNotes.TabIndex = 385;
//
// WXUserCollectAuthProdEditNotesForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(569, 628);
this.Controls.Add(this.panel2);
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "WXUserCollectAuthProdEditNotesForm";
this.Text = "编辑商品备注/货号";
this.TitleText = "编辑商品备注/货号";
this.Load += new System.EventHandler(this.ProductSelectListForm_Load);
this.Controls.SetChildIndex(this.panel2, 0);
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel2;
private DevComponents.DotNetBar.Controls.TextBoxX txtNotes;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.TextBox txtSpuId;
public System.Windows.Forms.TextBox txtProductName;
private System.Windows.Forms.Label label8;
private DevComponents.DotNetBar.PanelEx btnOK1;
private DevComponents.DotNetBar.PanelEx btnEditDetail;
private System.Windows.Forms.Label label7;
private DevComponents.DotNetBar.Controls.TextBoxX txtFissionWords;
private ComboBox cmbCateFilter4Leaf;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label2;
private ComboBox cmbCateFilter1;
private System.Windows.Forms.Label label14;
private ComboBox cmbCateFilter2;
private System.Windows.Forms.Label label17;
private ComboBox cmbCateFilter3;
private System.Windows.Forms.Label label5;
private DevComponents.DotNetBar.Controls.TextBoxX txtCateSearch;
private DevComponents.DotNetBar.PanelEx btnDelCate;
private ListBox lstSelectCateList;
private DevComponents.DotNetBar.PanelEx btnCloseLst;
private Label lblBound;
}
}
@@ -1,544 +0,0 @@
using AllBase.Helper;
using AllBase.Model.Result;
using TemuKJD.BaseForms;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using AllBase;
using Work;
using TemuKJD.ToolForms;
using Newtonsoft.Json.Linq;
using System.IO;
using Work.BLL.Tools;
using TemuKJD.BLL;
using NaiBa.Util.Extension;
using AllBase.Model.Result.WXResult;
namespace TemuKJD.PDDForms.ProductSelectForms
{
public partial class WXUserCollectAuthProdEditNotesForm : BaseGeneralForm
{
KJDDBProduct dbProd = null;
KJDDBProduct dbProdDetail = null;
List<WxCatInfo> selectCate1 = new List<WxCatInfo>();
List<WxCatInfo> selectCate2 = new List<WxCatInfo>();
List<WxCatInfo> selectCate3 = new List<WxCatInfo>();
List<WxCatInfo> selectCate4 = new List<WxCatInfo>();
public WXUserCollectAuthProdEditNotesForm(KJDDBProduct prod)
{
InitializeComponent();
dbProd = prod;
}
private void ProductSelectListForm_Load(object sender, EventArgs e)
{
lstSelectCateList.Height = 180;
if (dbProd != null)
{
txtProductName.Text = dbProd.product_name;
txtSpuId.Text = dbProd.spu_id;
this.pictureBox1.ImageLocation = dbProd.main_img.Replace("https", "http");
this.txtNotes.Text = dbProd.notes;
this.txtFissionWords.Text = dbProd.fission_words.Replace("fission_goods_names:", "");
if (string.IsNullOrWhiteSpace(dbProd?.product_json))
{
dbProdDetail = GetPddProductDetail(dbProd.id.ToString());
//if (prodTmp != null)
//{
// dbProd = prodTmp;
//}
}
fillWxCate();
string catName = (dbProd.cat_name ?? dbProd.cat_id) + "(未识别)";
if (dbProd.wx_cat_1 != null)
{
var catN = GlobalConfig.WxCatList.FirstOrDefault(c => c.cat_id == dbProd.wx_cat_1.ParseToString())?.name;
cmbCateFilter1.Text = catN.ParseToString();
if (!string.IsNullOrEmpty(catN))
{
catName = catN;
}
}
if (dbProd.wx_cat_2 != null)
{
var catN = GlobalConfig.WxCatList.FirstOrDefault(c => c.cat_id == dbProd.wx_cat_2.ParseToString())?.name;
cmbCateFilter2.Text = catN.ParseToString();
if (!string.IsNullOrEmpty(catN))
{
catName = catName + " >> " + catN;
}
}
if (dbProd.wx_cat_3 != null)
{
var catN = GlobalConfig.WxCatList.FirstOrDefault(c => c.cat_id == dbProd.wx_cat_3.ParseToString())?.name;
cmbCateFilter3.Text = catN.ParseToString();
if (!string.IsNullOrEmpty(catN))
{
catName = catName + " >> " + catN;
}
}
if (dbProd.wx_cat_leaf != null)
{
var catN = GlobalConfig.WxCatList.FirstOrDefault(c => c.cat_id == dbProd.wx_cat_leaf.ParseToString())?.name;
cmbCateFilter4Leaf.Text = catN.ParseToString();
if (!string.IsNullOrEmpty(catN))
{
catName = catName + " >> " + catN;
}
}
txtCateSearch.WatermarkText = catName.Replace(">>", ">");
if (!dbProd.wx_cat_1.IsNullOrZero() && !dbProd.wx_cat_2.IsNullOrZero() && !dbProd.wx_cat_3.IsNullOrZero() && !dbProd.wx_cat_leaf.IsNullOrZero())
{
//this.cmbCateFilter1.Text =
}
}
}
void fillWxCate()
{
cmbCateFilter1.Items.Clear();
cmbCateFilter2.Items.Clear();
cmbCateFilter3.Items.Clear();
cmbCateFilter4Leaf.Items.Clear();
cmbCateFilter1.Text = "";
cmbCateFilter2.Text = "";
cmbCateFilter3.Text = "";
cmbCateFilter4Leaf.Text = "";
foreach (var cate in GlobalConfig.WxCatList.Where(c => c.level == 1).ToList())
{
cmbCateFilter1.Items.Add(cate.name);
}
}
private void btnOk_Click(object sender, EventArgs e)
{
//var url = BaseClass.BuildPDDObjString("product/mdy_product_notes");
var url = BaseClass.BuildPDDObjString("product/mdy_db_product");
var data = UserLogin.GetSignaturex() +
"&db_id=" + dbProd.id + "&notes=" + this.txtNotes.Text.Trim();
data += "&product_name=" + this.txtProductName.Text.Trim();
data += "&wx_cat_1=" + (selectCate1.FirstOrDefault()?.cat_id == null ? "null" : selectCate1.FirstOrDefault()?.cat_id.ParseToString());
data += "&wx_cat_2=" + (selectCate2.FirstOrDefault()?.cat_id == null ? "null" : selectCate2.FirstOrDefault()?.cat_id.ParseToString());
data += "&wx_cat_3=" + (selectCate3.FirstOrDefault()?.cat_id == null ? "null" : selectCate3.FirstOrDefault()?.cat_id.ParseToString());
data += "&wx_cat_leaf=" + (selectCate4.FirstOrDefault()?.cat_id == null ? "null" : selectCate4.FirstOrDefault()?.cat_id.ParseToString());
if (selectCate1.FirstOrDefault()?.cat_id != null)
{
data += "&main_cat_id=" + selectCate1.FirstOrDefault()?.cat_id +
"&main_cat_name=" + HttpUtility.UrlEncode(selectCate1.FirstOrDefault()?.name, Encoding.UTF8);
}
if (selectCate4.FirstOrDefault()?.cat_id != null)
{
data += "&cat_id=" + selectCate4.FirstOrDefault()?.cat_id +
"&cat_name=" + HttpUtility.UrlEncode(selectCate4.FirstOrDefault()?.name, Encoding.UTF8);
}
if (string.IsNullOrEmpty(this.txtFissionWords.Text.Trim()))
data += "&fission_words=";
else
data += "&fission_words=" + "fission_goods_names:" + this.txtFissionWords.Text.Trim();
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"))
{
BaseMsgForm.ShowError("商品备注编辑失败,请重试!" + BaseRegex.GetStringJson(ref html, "msg"));
}
else
{
dbProd.notes = this.txtNotes.Text.Trim();
dbProd.product_name = this.txtProductName.Text.Trim();
dbProd.wx_cat_1 = selectCate1.FirstOrDefault()?.cat_id == null ? null : selectCate1.FirstOrDefault()?.cat_id.ParseToLong();
dbProd.wx_cat_2 = selectCate2.FirstOrDefault()?.cat_id == null ? null : selectCate2.FirstOrDefault()?.cat_id.ParseToLong();
dbProd.wx_cat_3 = selectCate3.FirstOrDefault()?.cat_id == null ? null : selectCate3.FirstOrDefault()?.cat_id.ParseToLong();
dbProd.wx_cat_leaf = selectCate4.FirstOrDefault()?.cat_id == null ? null : selectCate4.FirstOrDefault()?.cat_id.ParseToLong();
if (selectCate1.FirstOrDefault()?.cat_id != null)
{
dbProd.main_cat_id = selectCate1.FirstOrDefault()?.cat_id;
dbProd.main_cat_name = selectCate1.FirstOrDefault()?.name;
}
if (selectCate4.FirstOrDefault()?.cat_id != null)
{
dbProd.cat_id = selectCate4.FirstOrDefault()?.cat_id;
dbProd.cat_name = selectCate4.FirstOrDefault()?.name;
}
if (string.IsNullOrEmpty(this.txtFissionWords.Text.Trim()))
dbProd.fission_words = "";
else
dbProd.fission_words = "fission_goods_names:" + this.txtFissionWords.Text.Trim();
this.Close();
}
}
private void pictureBox1_Click(object sender, EventArgs e)
{
ShowImgForm imgFrom = new ShowImgForm(pictureBox1.ImageLocation);
imgFrom.ShowDialog();
}
public static KJDDBProduct GetPddProductDetail(string prodDbId)
{
if (string.IsNullOrEmpty(prodDbId))
return new KJDDBProduct();
List<KJDDBProduct> list = new List<KJDDBProduct>();
var url = BaseClass.BuildPDDObjString("product/get_product_detail_list");
var data = "";
data = UserLogin.GetSignaturex() + "&search_db_ids=" + prodDbId;
if (BaseClass.SaLevel > 0 || BaseClass.UserAuthority.Contains("爆款数据"))
data += "&special_prod_type=普通商品,书籍,爆款数据";
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"))
{
return null;
}
var jArr = JObject.Parse(html)["data"];
if (jArr.Count() == 0)
return null;
var sProd = JsonHelper.SerializeObject(jArr);
try
{
list = JsonHelper.DeserializeJsonToList<KJDDBProduct>(sProd);
var item = list.FirstOrDefault();
if (item == null)
item = new KJDDBProduct();
return item;
}
catch (Exception ex)
{
return null;
}
}
private void btnEditDetail_Click(object sender, EventArgs e)
{
bool canEdit = true;
var kjdDbProd = JsonHelper.DeserializeJsonToObject<KJDDBProduct>(JsonHelper.SerializeObject(dbProdDetail));
//{"goodsId":"2032007952082477057","warehouseGoodsId":"171C2881E8C6491CA65728683483EDE9","spuCode":"987651321321","skus":[{"skuId":"2032007952837451777","warehouseSkuId":"6B710CE261B240C38B5245006F3622A3","skuCode":"20190311002"},{"skuId":"2032007953839890434","warehouseSkuId":"2FA14AAB600541CAA72DDE7697D8D27A","skuCode":"201607090622"}]}
if (kjdDbProd.product_get_type_text == "厂商直采")
{
canEdit = true;
string convertRst = "";
var pInfo = new PDDProdFormConverter().JstPddProdToPddConvert(out convertRst, kjdDbProd);
if (!string.IsNullOrEmpty(convertRst))
{
BaseMsgForm.ShowError("商品结构获取失败 " + convertRst);
return;
}
}
if (kjdDbProd.product_get_type_text == "微信店采")
{
canEdit = true;
string convertRst = "";
var pInfo = new PDDProdFormConverter().WXProdToPddConvert(out convertRst, kjdDbProd);
if (!string.IsNullOrEmpty(convertRst))
{
BaseMsgForm.ShowError("商品结构获取失败");
return;
}
}
#region 微信小店app
if (dbProd.product_get_type_text == "微信小店")
{
canEdit = true;
string convertRst = "";
var pInfo = new PDDProdFormConverter().WXClientToPddConvert(out convertRst, kjdDbProd);
if (!string.IsNullOrEmpty(convertRst))
{
BaseMsgForm.ShowError("商品结构获取失败");
return;
}
}
#endregion
if (kjdDbProd.product_get_type_text == "1688厂家")
{
canEdit = true;
string convertRst = "";
var pInfo = new PDDProdFormConverter()._1688ClientToPddConvert(out convertRst, kjdDbProd);
if (!string.IsNullOrEmpty(convertRst))
{
BaseMsgForm.ShowError("商品结构获取失败");
return;
}
}
if (kjdDbProd.product_get_type_text == "1688外部数据")
{
canEdit = true;
string convertRst = "";
var pInfo = new PDDProdFormConverter()._1688OutToPddConvert(out convertRst, kjdDbProd);
if (!string.IsNullOrEmpty(convertRst))
{
BaseMsgForm.ShowError("商品结构获取失败");
return;
}
}
PDDDBProdEditDetailForm editDetailForm = new PDDDBProdEditDetailForm(kjdDbProd);
if (!canEdit)
{
editDetailForm.btnRestoreAll.Visible = false;
editDetailForm.btnSaveSkuLst.Visible = false;
}
editDetailForm.ShowDialog();
if (editDetailForm.IsSave)
this.Close();
}
private void btnBookImg_Click(object sender, EventArgs e)
{
var prodJson = this.dbProd.product_json;
var prodInfo = JsonHelper.DeserializeJsonToObject<AllBase.Model.Result.PDDResult.PDDProductInfo>(prodJson);
if (prodInfo != null)
{
string publisher = "出版社:" + new List<string> () { "技术出版社", "文化出版社", "美术出版社" }[Randomx.GetId(3)];
string isbn = "ISBN:";
string bookName = "书名:";
string bookPrice = "定价:" + prodInfo.detail.sku.Max(s => s.multi_price) * 0.01;
string author = "作者:王老师";
string publishTime = "出版时间:" + DateTime.Now.AddMonths(-3);
string edition = "版次:1";
string binding = "装帧:平装";
foreach (var propInfo in prodInfo.property.goods_properties)
{
if (propInfo.name.Contains("出版社名称"))
publisher = "出版社:" + propInfo.values.FirstOrDefault()?.value;
else if (propInfo.name.Contains("ISBN"))
isbn = "ISBN:" + propInfo.values.FirstOrDefault()?.value;
else if (propInfo.name.Contains("书名"))
bookName = "书名:" + propInfo.values.FirstOrDefault()?.value;
else if (propInfo.name.Contains("定价"))
bookPrice = "定价:" + propInfo.values.FirstOrDefault()?.value;
else if (propInfo.name.Contains("作者"))
author = "作者:" + propInfo.values.FirstOrDefault()?.value;
else if (propInfo.name.Contains("出版时间"))
publishTime = "出版时间:" + propInfo.values.FirstOrDefault()?.value;
else if (propInfo.name.Contains("版次"))
edition = "版次:" + propInfo.values.FirstOrDefault()?.value;
else if (propInfo.name.Contains("装帧"))
binding = "装帧:" + propInfo.values.FirstOrDefault()?.value;
}
var bookStr = publisher + "\r\n" + "\r\n" +
isbn + "\r\n" + "\r\n" +
bookName + "\r\n" + "\r\n" +
bookPrice + "\r\n" + "\r\n" +
author + "\r\n" + "\r\n" +
publishTime + "\r\n" + "\r\n" +
edition + "\r\n" + "\r\n" +
binding;
var imageBg = new Bitmap(800, 800);
using (Graphics g = Graphics.FromImage(imageBg))
{
g.Clear(Color.White);
//Font font = new Font("宋体", 15, FontStyle.Bold);
Font font = new Font("微软雅黑", 15, FontStyle.Regular);
Brush textBrush = Brushes.Black;
g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
RectangleF rectF = new RectangleF(80, 80, 800 - 80, 800 - 80);
g.DrawString(bookStr, font, textBrush, rectF);
}
ShowImgForm imgFrom = new ShowImgForm(imageBg);
imgFrom.ShowDialog();
}
}
private void cmbCateFilter1_TextChanged(object sender, EventArgs e)
{
//if (cmbSourceType.Text != "厂商直采" && cmbSourceType.Text != "1688厂家" && cmbSourceType.Text != "微信店采" && cmbSourceType.Text != "微信小店")
//if (btnSwitchCatType.Text != "W")
// return;
cmbCateFilter2.Text = "";
cmbCateFilter2.Items.Clear();
cmbCateFilter3.Text = "";
cmbCateFilter3.Items.Clear();
selectCate1 = GlobalConfig.WxCatList
.Where(c => c.level == 1 && (";" + cmbCateFilter1.Text.Trim() + ";").Contains(";" + c.name + ";")).ToList();
var cates2 = GlobalConfig.WxCatList.Where(c => selectCate1.Any(c1 => c.f_cat_id == c1.cat_id)).ToList();
cmbCateFilter2.Items.AddRange(cates2.Select(c => c.name).ToArray());
}
private void cmbCateFilter2_TextChanged(object sender, EventArgs e)
{
//if (cmbSourceType.Text != "厂商直采" && cmbSourceType.Text != "1688厂家" && cmbSourceType.Text != "微信店采" && cmbSourceType.Text != "微信小店")
//if (btnSwitchCatType.Text != "W")
// return;
cmbCateFilter3.Text = "";
cmbCateFilter3.Items.Clear();
selectCate1 = GlobalConfig.WxCatList
.Where(c => c.level == 1 && (";" + cmbCateFilter1.Text.Trim() + ";").Contains(";" + c.name + ";")).ToList();
var cates2 = GlobalConfig.WxCatList.Where(c => selectCate1.Any(c1 => c.f_cat_id == c1.cat_id)).ToList();
selectCate2 = cates2
.Where(c => c.level == 2 && (";" + cmbCateFilter2.Text.Trim() + ";").Contains(";" + c.name + ";")).ToList();
var cates3 = GlobalConfig.WxCatList.Where(c => selectCate2.Any(c2 => c.f_cat_id == c2.cat_id)).ToList();
cmbCateFilter3.Items.AddRange(cates3.Select(c => c.name).ToArray());
}
private void cmbCateFilter3_TextChanged(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());
cmbCateFilter4Leaf.Text = "";
cmbCateFilter4Leaf.Items.Clear();
selectCate1 = GlobalConfig.WxCatList
.Where(c => c.level == 1 && (";" + cmbCateFilter1.Text.Trim() + ";").Contains(";" + c.name + ";")).ToList();
var cates2 = GlobalConfig.WxCatList.Where(c => selectCate1.Any(c1 => c.f_cat_id == c1.cat_id)).ToList();
selectCate2 = cates2
.Where(c => c.level == 2 && (";" + cmbCateFilter2.Text.Trim() + ";").Contains(";" + c.name + ";")).ToList();
var cates3 = GlobalConfig.WxCatList.Where(c => selectCate2.Any(c2 => c.f_cat_id == c2.cat_id)).ToList();
selectCate3 = cates3
.Where(c => c.level == 3 && (";" + cmbCateFilter3.Text.Trim() + ";").Contains(";" + c.name + ";")).ToList();
var cates4 = GlobalConfig.WxCatList.Where(c => selectCate3.Any(c3 => c.f_cat_id == c3.cat_id) || selectCate3.Any(c3 => c.cat_id == c3.cat_id && c.leaf)).ToList();
if (cates4.Count == 1)
cmbCateFilter4Leaf.Text = cates4.FirstOrDefault().name;
cmbCateFilter4Leaf.Items.AddRange(cates4.Select(c => c.name).ToArray());
}
private void cmbCateFilter4Leaf_TextChanged(object sender, EventArgs e)
{
selectCate1 = GlobalConfig.WxCatList
.Where(c => c.level == 1 && (";" + cmbCateFilter1.Text.Trim() + ";").Contains(";" + c.name + ";")).ToList();
var cates2 = GlobalConfig.WxCatList.Where(c => selectCate1.Any(c1 => c.f_cat_id == c1.cat_id)).ToList();
selectCate2 = cates2
.Where(c => c.level == 2 && (";" + cmbCateFilter2.Text.Trim() + ";").Contains(";" + c.name + ";")).ToList();
var cates3 = GlobalConfig.WxCatList.Where(c => selectCate2.Any(c2 => c.f_cat_id == c2.cat_id)).ToList();
selectCate3 = cates3
.Where(c => c.level == 3 && (";" + cmbCateFilter3.Text.Trim() + ";").Contains(";" + c.name + ";")).ToList();
var cates4 = GlobalConfig.WxCatList.Where(c => selectCate3.Any(c3 => c.f_cat_id == c3.cat_id) || selectCate3.Any(c3 => c.cat_id == c3.cat_id && c.leaf)).ToList();
selectCate4 = cates4
.Where(c => c.leaf && (";" + cmbCateFilter4Leaf.Text.Trim() + ";").Contains(";" + c.name + ";")).ToList();
var selCat = selectCate4.FirstOrDefault();
lblBound.Text ="保证金:" + GlobalConfig.WxCatBoundList.FirstOrDefault(cb => cb.leaf_id == selCat?.cat_id.ParseToLong())?.cat_bound;
}
private void cmbCateFilter1_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void cmbCateFilter2_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void cmbCateFilter3_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void cmbCateFilter4Leaf_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void btnDelCate_Click(object sender, EventArgs e)
{
cmbCateFilter1.Text = "";
txtCateSearch.WatermarkText = "(未识别)";
//cmbCateFilter2.Text = "";
//cmbCateFilter3.Text = "";
//cmbCateFilter4Leaf.Text = "";
}
private void txtCateSearch_TextChanged(object sender, EventArgs e)
{
var searchTxt = txtCateSearch.Text.Trim();
List<WxCatInfo> wxCatList = new List<WxCatInfo>();
if (!string.IsNullOrEmpty(searchTxt))
{
wxCatList.AddRange(GlobalConfig.WxCatList.Where(c => c.leaf && c.name.Contains(searchTxt)));
wxCatList.AddRange(GlobalConfig.WxCatList.Where(c => c.level == 3 && !c.leaf && c.name.Contains(searchTxt)));
wxCatList.AddRange(GlobalConfig.WxCatList.Where(c => c.level == 2 && !c.leaf && c.name.Contains(searchTxt)));
wxCatList.AddRange(GlobalConfig.WxCatList.Where(c => c.level == 1 && !c.leaf && c.name.Contains(searchTxt)));
}
wxCatList = wxCatList.Take(50).ToList();
lstSelectCateList.Items.Clear();
foreach (var cate in wxCatList)
{
var cateTmp = cate;
string cateName = cateTmp.name;
var parent = GlobalConfig.WxCatList.FirstOrDefault(c => c.cat_id == cateTmp.f_cat_id);
while (parent != null)
{
cateTmp = parent;
cateName = cateTmp.name + " >> " + cateName;
parent = GlobalConfig.WxCatList.FirstOrDefault(c => c.cat_id == cateTmp.f_cat_id);
}
string bountStr = " 保证金:" + GlobalConfig.WxCatBoundList.FirstOrDefault(cb => cb.leaf_id == cate.cat_id.ParseToLong())?.cat_bound;
lstSelectCateList.Items.Add(cateName + bountStr);
}
if (lstSelectCateList.Items.Count > 0)
{
lstSelectCateList.Visible = true;
btnCloseLst.Visible = true;
lstSelectCateList.BringToFront();
btnCloseLst.BringToFront();
}
else
{
lstSelectCateList.Visible = false;
btnCloseLst.Visible = false;
}
}
private void lstSelectCateList_SelectedIndexChanged(object sender, EventArgs e)
{
var cateStr = lstSelectCateList.SelectedItem.ParseToString().Split(new string[] { "保证金" }, StringSplitOptions.RemoveEmptyEntries).FirstOrDefault()?.Trim();
var cateItems = cateStr.Split(new string[] { ">", " " }, StringSplitOptions.RemoveEmptyEntries).ToList();
if (cateItems.Count > 0)
cmbCateFilter1.Text = cateItems[0];
if (cateItems.Count > 1)
cmbCateFilter2.Text = cateItems[1];
if (cateItems.Count > 2)
cmbCateFilter3.Text = cateItems[2];
if (cateItems.Count > 3)
cmbCateFilter4Leaf.Text = cateItems[3];
txtCateSearch.WatermarkText = lstSelectCateList.SelectedItem.ParseToString();
lstSelectCateList.Visible = false;
btnCloseLst.Visible = false;
}
private void btnCloseLst_Click(object sender, EventArgs e)
{
lstSelectCateList.Visible = false;
btnCloseLst.Visible = false;
}
}
}
@@ -1,298 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAgIAQYAAAAABoKAAAFgAAACgAAACAAAAAAAEAAAEABAAAAAAAACgAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAgICAAMDAwAAAAP8AAP8AAAD//wD/AAAA/wD/AP//
AAD///8AAAAAAAAAAAAAAAAABEZmbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZmZkQAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAZszMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
zMxmAAAAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
zMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
zMzMzMzMzMzMzMzMxkAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
zMzMzMzMzMzMzMzMzMzMzMzGQAAAAAAAAAAAAAAAAAAAbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMYAAAAAAAAAAAAAAAAARszMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAABszMzMzMzMzMzMzMzMzMzMzMzMzM
zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMxgAAAAAAAAAAAAAGzMzMzMzMzMzMzMzMzMzMzM
zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMxgAAAAAAAAAAAAbMzMzMzMzMzMzMzMzM
zMzMzMzMzMx3d4iIiIiIiIh3fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMxgAAAAAAAAAABszMzMzMzMzMzM
zMzMzMzMzMzHeIiIiIj/////////iIiIiId8zMzMzMzMzMzMzMzMzMzMzMzMxgAAAAAAAAAGzMzMzMzM
zMzMzMzMzMzMzMeIiI/////////////////////4iIh8zMzMzMzMzMzMzMzMzMzMzMxgAAAAAAAATMzM
zMzMzMzMzMzMzMzMzHiI////////////////////////////iIfMzMzMzMzMzMzMzMzMzMzMxAAAAAAA
AGzMzMzMzMzMzMzMzMzMx3iP///////////////////////////////4iHzMzMzMzMzMzMzMzMzMzMYA
AAAAAAbMzMzMzMzMzMzMzMzMx3iP//////////////////////////////////+IfMzMzMzMzMzMzMzM
zMzMYAAAAABMzMzMzMzMzMzMzMzMx3iP/////////////////////////////////////4h8zMzMzMzM
zMzMzMzMzMQAAAAAbMzMzMzMzMzMzMzMzHiP////////////////////////////////////////h3zM
zMzMzMzMzMzMzMzGAAAABMzMzMzMzMzMzMzMzHiP////////////////////////////////////////
//iHzMzMzMzMzMzMzMzMzEAAAAbMzMzMzMzMzMzMzMeI////////////////////////////////////
////////+IfMzMzMzMzMzMzMzMxgAABMzMzMzMzMzMzMzMx4////////////////////////////////
//////////////+IfMzMzMzMzMzMzMzMxAAAbMzMzMzMzMzMzMzHj///////////////////////////
/////////////////////4fMzMzMzMzMzMzMzMYAAMzMzMzMzMzMzMzMeP//////////////////////
///////////////////////////4fMzMzMzMzMzMzMzMAAbMzMzMzMzMzMzMx4//////////////////
/////////////////////////////////4fMzMzMzMzMzMzMzGAGzMzMzMzMzMzMzHj/////////////
///////////////////////////////////////4fMzMzMzMzMzMzMxgDMzMzMzMzMzMzMyI////////
/////////////////////////////////////////////4zMzMzMzMzMzMzMwEzMzMzMzMzMzMzHj///
//////////////////////////////////////////////////+HzMzMzMzMzMzMzMRszMzMzMzMzMzM
eP//////////////////////////////////////////////////////+HzMzMzMzMzMzMzGbMzMzMzM
zMzMzHj///////////////////////////////////////////////////////+MzMzMzMzMzMzMxmzM
zMzMzMzMzMyP////+IiP////////////////////////////////////////+I//////h8zMzMzMzMzM
zMZszMzMzMzMzMzHj////4iIiI//////////////////////////////////////+IiIj/////jMzMzM
zMzMzMzGbMzMzMzMzMzMyP////iIiIiI/////////////////////////////////////4iIiIj////4
fMzMzMzMzMzMxszMzMzMzMzMzHj////4iIiIiP////////////////////////////////////+IiIiI
j////4zMzMzMzMzMzMbMzMzMzMzMzMx4////iIiIiIj////////////////////////////////////4
iIiIiI////+HzMzMzMzMzMzMzMzMzMzMzMzMj////4iIiIiI//////////////+IiP//iI//////////
////+IiIiIiP////h8zMzMzMzMzMzMzMzMzMzMzMzI/////4iIiIiP/////////////4d3eIiIeIj///
//////////+IiIiIj/////jMzMzMzMzMzMzMzMzMzMzMzMyP////+IiIiIj/////////////iIiId3eI
iI//////////////iIiIiI/////4zMzMzMzMzMzMzMzMzMzMzMzHj/////+IiIiP/////////////4//
/4d4j/+P//////////////iIiIj/////+MzMzMzMzMzMzMzMzMzMzMzMx4//////+IiP////////////
///////4j///////////////////iIiP//////jMzMzMzMzMzMzMzMzMzMzMzMeP//////////+IiIj/
///////////////////////////////////////////4fMzMzMzMzMzMzMzMzMzMzMzH//////////+H
fMx8eP//////////////////////////iId3iP//////////+HzMzMzMzMzMzMzMzMzMzMzMyP//////
///4fMzHh8eP////////////////////////+MzMzMd4//////////h8zMzMzMzMzMzMzMzMzMzMzMf/
////////+MzMePjMeP///////////////////////4zMzMeHx4/////////4fMzMzMzMzMzMzMzMzMzM
zMzH/////////4fMd3eHzMeP//////////////////////iMzMzIiHx4////////+HzMzMzMzMzMzMzM
zMzMzMzMx/////////+Hx4iIfMzMj//////////////////////4h3d8x4h8yP////////jMzMzMzMzM
zMzMzMzMzMzMzMeP////////+HiP+IfMzI//////////////////////+HiIiHd3zHj////////4zMzM
zMzMzMzMzMzMzMzMzMzHj/////////h4//+HzMeP//////////////////////h4//h8zMyP////////
+MzMzMzMzMzMzMzMzMzMzMzMzI/////////4iP//h8x4///////////////////////4j//4fMzHj///
//////jMzMzMzMzMzMzMzMzMzMzMzMyP///////4iIiP+IfHj///////////////////////+Ij/+HzM
eP/////////4zMzMzMzMzMzMzMzMzMzMzMzMj///////iIiIiIh3eP////////////////////////+I
j4h8x3iI////////h8zMzMzMzMzMzMzMzMzMzMzMzH//////+Hj///iIiI//////////////////////
/////4iId4iIiIj//////4zMzMzMzMzMzMzMzMzMzMzMzMx4//////iP////iP//////////////////
/////////////4iP//iI//////+MzMzMzMzMzMzMzMzMzMzMzMzMyP//////////+I//////////////
///////////////////4eP//iP//////jMzMzMzMzMzMzMzMzMzMzMzMzMj///////////iP////////
/////////////////////////4j/////////+HzMzMzMzMzMzMzMzMzMzMzMzMzHj///////////////
//////////////////////////////+I//////////jMzMzMzMzMzMzMzMzMzMzMzMzMzI//////////
//////////////////////////////////////////////+HzMzMzMzMzMzMzMzMzMzMzMzMzMyP////
////////////////////////////////////////////////////h8zMzMzMzMzMzMzMzMzMzMzMzMzM
eP///////////////////////////////////////////////////////4zMzMzMzMzMzMzMzMzMzMzM
zMzMzMj///////////////////////////////////////////////////////h8zMzMzMzMzMzMzMzM
zMzMzMzMzMzHj//////////////////////////////////////////////////////4zMzMzMzMzMzM
zMzMzMzMzMzMzMzMzI//////////////////////////////////////////////////////h8zMzMzM
zMzMzMzMzMzMzMzMzMzMzMx4////////////////////////////////////////////////////+HzM
zMzMzMzMzMzMzMzMzMzMzMzMzMzMyI////+I////////////////////////////////////////////
//h8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMeP////+Ij/////////////////////////////////////
//////+HzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMeP////+IiIiIj//////////////////////////4
////iI/////4fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMiP/////4iIiP//////////////////////
////+IiIiIj/////iHzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzHiP//////////////////////////
///////////4iIj//////4fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzHiP////////////////////
//////////////////////////h8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzHiP//////////////
//////////////////////////////+HzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzHj/////////
///////////////////////////////////4fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMeP////
////////////////////////////////////////+MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzI
j/////////////////////////////////////////////h8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
zMzMeP//////////////////////////////////////////////h8zMzMzMzMzMzMzMzMzMzMzMzMzM
zMzMzMzMx4////////+I//////////////////////////////////////jMzMzMzMzMzMzMzMzMzMzM
zMzMzMzMzMzMzMeP///////4iIj///////////////////////////iP///////4fMzMzMzMzMzMzMzM
zMzMzMzMzMzMzMzMzMx4////////iIiIiP///////////////////////4iIiP///////4zMzMzMzMzM
zMzMzMzMzMzMzMzMzMzMzMzMj///////+IiIiIiI////////////////////+IiIiIj///////+HzMzM
zMzMzMzMzMzMzMzMzMzMzMzMzMzMx4////////iIiIiIj////////////////////4iIiIiIj///////
+MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMj///////+IiIiIiI////////////////////+IiIiIiI//
//////h8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMx4////////iIiIiIiP////////////////////iIiI
iIiI///////4fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMj///////+IiIiIiIj/////iIiIiIiIj/////
/4iIiIiIiP///////4zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMx4////////iIiIiIiI/////4zMzMzMzM
j/////+IiIiIiIiP//////+HzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMeP//////+IiIiIiIj/////+MzM
zMzMzI//////+IiIiIiIj///////+MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzI////////iIiIiIiI////
//jMzMzMzMyP//////iIiIiIiIj///////jMzMzMzMzMzMzMzMzMzMzMzMzMzMzMeP///////4iIiIiI
iP/////4zMzMzMzMj//////4iIiIiIiI///////4fMzMzMzMzMzMzMzMzMzMzMzMzMzMzI////////iI
iIiIiI//////+MzMzMzMzI//////+IiIiIiIiP///////4zMzMzMzMzMzMzMzMzMzMzMzMzMzMyP////
///4iIiIiIiP//////fMzMzMzMyP//////+IiIiIiIj///////+MzMzMzMzMzMzMzMzMzMzMzMzMzMzH
j///////+IiIiIiI//////+HzMzMzMzMeP//////iIiIiIiIj///////jMzMzMzMzMzMzMzMzMzMzMzM
zMzMyP////////iIiIiIiP//////jMzMzMzMzHj///////iIiIiIiI///////4fMzMzMzMzMzMzMzMzM
zMzMzMzMzMj///////+IiIiIiI///////4zMzMzMzMzI///////4iIiIiIiI///////3zMzMzMzMzMzM
zMzMzMzMzMzMzMzI////////iIiIiIiP//////+MzMzMzMzMyP//////+IiIiIiIiP//////+MzMzMzM
zMzMzMzMzMzMzMzMzMzMeP///////4iIiIiIj///////jMzMzMzMzMj///////+IiIiIiIj///////jM
zMzMzMzMzMzMzMzMzMzMzMzMzI////////+IiIiIiP//////+HzMzMzMzMzHj///////iIiIiIiI////
///4zMzMzMzMzMzMzMzMzMzMzMzMzMyP////////iIiIiI////////jMzMzMzMzMzI///////4iIiIiI
iI//////+MzMzMzMzMzMzMzMzMzMzMzMzMzMj////////4iIiIiP///////4zMzMzMzMzMyP///////4
iIiIiIiP//////jMzMzMzMzMzMzMzMzMzMzMzMzMzI////////+IiIiI////////h8zMzMzMzMzMeP//
/////4iIiIiIj//////4fMzMzMzMzMzMzMzMzMzMzMzMzMyP////////iIiIj////////4fMzMzMzMzM
zHj///////+IiIiIiI//////+HzMzMzMzMzMzMzMzMzMzMzMzMzHj/////////iIiP////////+MzMzM
zMzMzMzI////////+IiIiIiP//////h8zMzMzMzMzMzMxmzMzMzMzMzMx4/////////4iP/////////4
fMzMzMzMzMzMx4////////+IiIiIj//////4fMzMzMzMzMzMzMZszMzMzMzMzMeP////////////////
////+MzMzMzMzMzMzMyP////////iIiIiP//////+HzMzMzMzMzMzMzGbMzMzMzMzMzH////////////
//////////fMzMzMzMzMzMzMeP////////iIiIj///////98zMzMzMzMzMzMxmzMzMzMzMzMyP//////
//////////////+HzMzMzMzMzMzMzHj/////////+IiP////////jMzMzMzMzMzMzMZszMzMzMzMzMj/
////////////////////jMzMzMzMzMzMzMzIj////////////////////4zMzMzMzMzMzMzGTMzMzMzM
zMzH////////////////////+HzMzMzMzMzMzMzMx4////////////////////+MzMzMzMzMzMzMxAzM
zMzMzMzMx/////////////////////jMzMzMzMzMzMzMzMyI///////////////////4fMzMzMzMzMzM
zMAGzMzMzMzMzMeP//////////////////+HzMzMzMzMzMzMzMzMeP//////////////////+HzMzMzM
zMzMzMxgBszMzMzMzMzHj//////////////////4fMzMzMzMzMzMzMzMzMeP//////////////////h8
zMzMzMzMzMzMYADMzMzMzMzMzI//////////////////+HzMzMzMzMzMzMzMzMzHj///////////////
///4zMzMzMzMzMzMzAAAbMzMzMzMzMyP/////////////////4fMzMzMzMzMzMzMzMzMzHj/////////
////////+MzMzMzMzMzMzMYAAEzMzMzMzMzMj/////////////////+MzMzMzMzMzMzMzMzMzMzIj///
/////////////4fMzMzMzMzMzMzEAAAGzMzMzMzMzHj////////////////4fMzMzMzMzMzMzMzMzMzM
x4////////////////+MzMzMzMzMzMzMYAAABMzMzMzMzMx4////////////////h8zMzMzMzMzMzMzM
zMzMzMx4///////////////4fMzMzMzMzMzMzEAAAABszMzMzMzMx4//////////////+HzMzMzMzMzM
zMzMzMzMzMzMx4//////////////+MzMzMzMzMzMzMYAAAAATMzMzMzMzMyP/////////////4fMzMzM
zMzMzMzMzMzMzMzMzMeI/////////////4fMzMzMzMzMzMzEAAAAAAbMzMzMzMzMeP////////////h8
zMzMzMzMzMzMzMzMzMzMzMzMeI////////////h8zMzMzMzMzMzMYAAAAAAAbMzMzMzMzMeP////////
//iHzMzMzMzMzMzMzMzMzMzMzMzMzMyI//////////+HzMzMzMzMzMzMxgAAAAAAAEzMzMzMzMzMeP//
//////iHfMzMzMzMzMzMzMzMzMzMzMzMzMzMx4/////////4fMzMzMzMzMzMzMQAAAAAAAAGzMzMzMzM
zMeI//////iHfMzMzMzMzMzMzMzMzMzMzMzMzMzMzMx4j//////4h8zMzMzMzMzMzMxgAAAAAAAAAGzM
zMzMzMzMx4iIiIiHzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzHiIj/+Ih3zMzMzMzMzMzMzGAAAAAAAA
AAAGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMx3iId8zMzMzMzMzMzMzMYAAA
AAAAAAAAAGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
xgAAAAAAAAAAAAAGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
zMzMzGAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
zMzMzMzMzGQAAAAAAAAAAAAAAAAAbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
zMzMzMzMzMzMzMYAAAAAAAAAAAAAAAAAAARszMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
zMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAABGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
zMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
zMzMzMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAAAABmzMzMzMzMzMzMzMzMzMzMzMzM
zMzMzMzMzMzMzMzMzMzMzMzMzMzMzGYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARGZmzMzMzMzMzMzMzM
zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZmZEAAAAAAAAAAAAAAAAD////+AAAAAAAAAAD/////////AAAA
AAAAAAAAAP//////+AAAAAAAAAAAAAAf/////+AAAAAAAAAAAAAAB/////+AAAAAAAAAAAAAAAH////+
AAAAAAAAAAAAAAAAf////AAAAAAAAAAAAAAAAD////AAAAAAAAAAAAAAAAAP///gAAAAAAAAAAAAAAAA
B///wAAAAAAAAAAAAAAAAAP//4AAAAAAAAAAAAAAAAAB//8AAAAAAAAAAAAAAAAAAP/+AAAAAAAAAAAA
AAAAAAB//gAAAAAAAAAAAAAAAAAAf/wAAAAAAAAAAAAAAAAAAD/4AAAAAAAAAAAAAAAAAAAf+AAAAAAA
AAAAAAAAAAAAH/AAAAAAAAAAAAAAAAAAAA/wAAAAAAAAAAAAAAAAAAAP4AAAAAAAAAAAAAAAAAAAB+AA
AAAAAAAAAAAAAAAAAAfAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAAAAA
AAOAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAA
AAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAABAAAAAAAA
AAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAA
AAGAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAA
AAAAAAABgAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAPAAAAAAAAAAAAAAAAAAAADwAAAAAAA
AAAAAAAAAAAAA+AAAAAAAAAAAAAAAAAAAAfgAAAAAAAAAAAAAAAAAAAH8AAAAAAAAAAAAAAAAAAAD/AA
AAAAAAAAAAAAAAAAAA/4AAAAAAAAAAAAAAAAAAAf+AAAAAAAAAAAAAAAAAAAH/wAAAAAAAAAAAAAAAAA
AD/+AAAAAAAAAAAAAAAAAAB//gAAAAAAAAAAAAAAAAAAf/8AAAAAAAAAAAAAAAAAAP//gAAAAAAAAAAA
AAAAAAH//8AAAAAAAAAAAAAAAAAD///gAAAAAAAAAAAAAAAAB///8AAAAAAAAAAAAAAAAA////wAAAAA
AAAAAAAAAAA////+AAAAAAAAAAAAAAAAf////4AAAAAAAAAAAAAAAf/////gAAAAAAAAAAAAAAf/////
+AAAAAAAAAAAAAAf//////8AAAAAAAAAAAAA/////////gAAAAAAAAAAf////w==
</value>
</data>
</root>