1微信用户采集店铺商品功能 2查询达人带货商品并联系达人功能
This commit is contained in:
1 parent
e1ee91dd03
commit
2759ff0f6d
33 files changed
+2464
-626
No files matched your search
+172
-136
@@ -54,19 +54,17 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
this.flowLayoutPanel4 = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.cmbSpec1 = new TemuKJD.UserComponent.UcComboBoxMutiSelect();
|
||||
this.cmbSpec2 = new TemuKJD.UserComponent.UcComboBoxMutiSelect();
|
||||
this.panel7 = new System.Windows.Forms.Panel();
|
||||
this.txtMultiPrice = new System.Windows.Forms.TextBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.txtPrice = new System.Windows.Forms.TextBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.btnBatchSetValue = new DevComponents.DotNetBar.PanelEx();
|
||||
this.txtSkuSn = new System.Windows.Forms.TextBox();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.txtPrice = new System.Windows.Forms.TextBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.txtMultiPrice = new System.Windows.Forms.TextBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.dgvDbProduct = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.panel5 = new System.Windows.Forms.Panel();
|
||||
this.btnRestoreAll = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnCancel = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnSaveSkuLst = new DevComponents.DotNetBar.PanelEx();
|
||||
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.colSkuId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colSpec1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -78,6 +76,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
this.colSkuImg = new System.Windows.Forms.DataGridViewImageColumn();
|
||||
this.colEditSkuImg = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colSkuSn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.panel5 = new System.Windows.Forms.Panel();
|
||||
this.btnRestoreAll = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnCancel = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnSaveSkuLst = new DevComponents.DotNetBar.PanelEx();
|
||||
this.panel2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pbLoading)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
@@ -92,6 +94,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
this.panel4.SuspendLayout();
|
||||
this.panel6.SuspendLayout();
|
||||
this.flowLayoutPanel4.SuspendLayout();
|
||||
this.panel7.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
this.panel3.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvDbProduct)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
@@ -145,7 +149,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
this.splitContainer1.Panel2.Controls.Add(this.btnCancel);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.btnSaveSkuLst);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(1278, 604);
|
||||
this.splitContainer1.SplitterDistance = 568;
|
||||
this.splitContainer1.SplitterDistance = 570;
|
||||
this.splitContainer1.TabIndex = 0;
|
||||
//
|
||||
// flowLayoutPanel3
|
||||
@@ -163,7 +167,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
this.flowLayoutPanel3.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
|
||||
this.flowLayoutPanel3.Location = new System.Drawing.Point(0, 0);
|
||||
this.flowLayoutPanel3.Name = "flowLayoutPanel3";
|
||||
this.flowLayoutPanel3.Size = new System.Drawing.Size(1278, 568);
|
||||
this.flowLayoutPanel3.Size = new System.Drawing.Size(1278, 570);
|
||||
this.flowLayoutPanel3.TabIndex = 1;
|
||||
this.flowLayoutPanel3.WrapContents = false;
|
||||
//
|
||||
@@ -339,6 +343,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
//
|
||||
this.flowLayoutPanel4.Controls.Add(this.cmbSpec1);
|
||||
this.flowLayoutPanel4.Controls.Add(this.cmbSpec2);
|
||||
this.flowLayoutPanel4.Controls.Add(this.panel7);
|
||||
this.flowLayoutPanel4.Controls.Add(this.panel1);
|
||||
this.flowLayoutPanel4.Controls.Add(this.panel3);
|
||||
this.flowLayoutPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.flowLayoutPanel4.Location = new System.Drawing.Point(0, 0);
|
||||
@@ -375,21 +381,77 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
this.cmbSpec2.TabIndex = 2;
|
||||
this.cmbSpec2.Text = "全部";
|
||||
//
|
||||
// panel7
|
||||
//
|
||||
this.panel7.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.panel7.AutoSize = true;
|
||||
this.panel7.Controls.Add(this.txtMultiPrice);
|
||||
this.panel7.Controls.Add(this.label4);
|
||||
this.panel7.Location = new System.Drawing.Point(256, 1);
|
||||
this.panel7.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0);
|
||||
this.panel7.Name = "panel7";
|
||||
this.panel7.Size = new System.Drawing.Size(114, 28);
|
||||
this.panel7.TabIndex = 12;
|
||||
//
|
||||
// txtMultiPrice
|
||||
//
|
||||
this.txtMultiPrice.Location = new System.Drawing.Point(49, 2);
|
||||
this.txtMultiPrice.Name = "txtMultiPrice";
|
||||
this.txtMultiPrice.Size = new System.Drawing.Size(62, 23);
|
||||
this.txtMultiPrice.TabIndex = 3;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(3, 5);
|
||||
this.label4.Margin = new System.Windows.Forms.Padding(5, 5, 3, 3);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(56, 17);
|
||||
this.label4.TabIndex = 4;
|
||||
this.label4.Text = "拼单价:";
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.panel1.AutoSize = true;
|
||||
this.panel1.Controls.Add(this.txtPrice);
|
||||
this.panel1.Controls.Add(this.label5);
|
||||
this.panel1.Location = new System.Drawing.Point(373, 1);
|
||||
this.panel1.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(114, 28);
|
||||
this.panel1.TabIndex = 11;
|
||||
this.panel1.Visible = false;
|
||||
//
|
||||
// txtPrice
|
||||
//
|
||||
this.txtPrice.Location = new System.Drawing.Point(49, 2);
|
||||
this.txtPrice.Name = "txtPrice";
|
||||
this.txtPrice.Size = new System.Drawing.Size(62, 23);
|
||||
this.txtPrice.TabIndex = 5;
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(3, 5);
|
||||
this.label5.Margin = new System.Windows.Forms.Padding(5, 5, 3, 3);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(56, 17);
|
||||
this.label5.TabIndex = 6;
|
||||
this.label5.Text = "单买价:";
|
||||
//
|
||||
// panel3
|
||||
//
|
||||
this.panel3.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.panel3.AutoSize = true;
|
||||
this.panel3.Controls.Add(this.btnBatchSetValue);
|
||||
this.panel3.Controls.Add(this.txtSkuSn);
|
||||
this.panel3.Controls.Add(this.label6);
|
||||
this.panel3.Controls.Add(this.txtPrice);
|
||||
this.panel3.Controls.Add(this.label5);
|
||||
this.panel3.Controls.Add(this.txtMultiPrice);
|
||||
this.panel3.Controls.Add(this.label4);
|
||||
this.panel3.Location = new System.Drawing.Point(256, 2);
|
||||
this.panel3.Location = new System.Drawing.Point(490, 1);
|
||||
this.panel3.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0);
|
||||
this.panel3.MinimumSize = new System.Drawing.Size(10, 10);
|
||||
this.panel3.Name = "panel3";
|
||||
this.panel3.Size = new System.Drawing.Size(540, 27);
|
||||
this.panel3.Size = new System.Drawing.Size(299, 28);
|
||||
this.panel3.TabIndex = 10;
|
||||
//
|
||||
// btnBatchSetValue
|
||||
@@ -397,7 +459,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
this.btnBatchSetValue.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.btnBatchSetValue.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnBatchSetValue.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnBatchSetValue.Location = new System.Drawing.Point(459, 2);
|
||||
this.btnBatchSetValue.Location = new System.Drawing.Point(226, 2);
|
||||
this.btnBatchSetValue.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2);
|
||||
this.btnBatchSetValue.Name = "btnBatchSetValue";
|
||||
this.btnBatchSetValue.Size = new System.Drawing.Size(71, 23);
|
||||
@@ -419,7 +481,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
//
|
||||
// txtSkuSn
|
||||
//
|
||||
this.txtSkuSn.Location = new System.Drawing.Point(294, 2);
|
||||
this.txtSkuSn.Location = new System.Drawing.Point(61, 2);
|
||||
this.txtSkuSn.Name = "txtSkuSn";
|
||||
this.txtSkuSn.Size = new System.Drawing.Size(158, 23);
|
||||
this.txtSkuSn.TabIndex = 7;
|
||||
@@ -427,47 +489,13 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(236, 5);
|
||||
this.label6.Location = new System.Drawing.Point(3, 5);
|
||||
this.label6.Margin = new System.Windows.Forms.Padding(5, 5, 3, 3);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(68, 17);
|
||||
this.label6.TabIndex = 8;
|
||||
this.label6.Text = "规格编码:";
|
||||
//
|
||||
// txtPrice
|
||||
//
|
||||
this.txtPrice.Location = new System.Drawing.Point(165, 2);
|
||||
this.txtPrice.Name = "txtPrice";
|
||||
this.txtPrice.Size = new System.Drawing.Size(62, 23);
|
||||
this.txtPrice.TabIndex = 5;
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(119, 5);
|
||||
this.label5.Margin = new System.Windows.Forms.Padding(5, 5, 3, 3);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(56, 17);
|
||||
this.label5.TabIndex = 6;
|
||||
this.label5.Text = "单买价:";
|
||||
//
|
||||
// txtMultiPrice
|
||||
//
|
||||
this.txtMultiPrice.Location = new System.Drawing.Point(49, 2);
|
||||
this.txtMultiPrice.Name = "txtMultiPrice";
|
||||
this.txtMultiPrice.Size = new System.Drawing.Size(62, 23);
|
||||
this.txtMultiPrice.TabIndex = 3;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(3, 5);
|
||||
this.label4.Margin = new System.Windows.Forms.Padding(5, 5, 3, 3);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(56, 17);
|
||||
this.label4.TabIndex = 4;
|
||||
this.label4.Text = "拼单价:";
|
||||
//
|
||||
// dgvDbProduct
|
||||
//
|
||||
this.dgvDbProduct.AllowUserToAddRows = false;
|
||||
@@ -510,88 +538,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
this.dgvDbProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvDbProduct_CellContentClick);
|
||||
this.dgvDbProduct.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvDbProduct_CellValueChanged);
|
||||
//
|
||||
// panel5
|
||||
//
|
||||
this.panel5.Location = new System.Drawing.Point(3, 842);
|
||||
this.panel5.MinimumSize = new System.Drawing.Size(1250, 10);
|
||||
this.panel5.Name = "panel5";
|
||||
this.panel5.Size = new System.Drawing.Size(1250, 10);
|
||||
this.panel5.TabIndex = 15;
|
||||
//
|
||||
// btnRestoreAll
|
||||
//
|
||||
this.btnRestoreAll.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.btnRestoreAll.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnRestoreAll.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnRestoreAll.Location = new System.Drawing.Point(5, 2);
|
||||
this.btnRestoreAll.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2);
|
||||
this.btnRestoreAll.Name = "btnRestoreAll";
|
||||
this.btnRestoreAll.Size = new System.Drawing.Size(100, 23);
|
||||
this.btnRestoreAll.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnRestoreAll.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.btnRestoreAll.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.btnRestoreAll.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.btnRestoreAll.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnRestoreAll.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.btnRestoreAll.Style.GradientAngle = 90;
|
||||
this.btnRestoreAll.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnRestoreAll.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnRestoreAll.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnRestoreAll.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnRestoreAll.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnRestoreAll.TabIndex = 1017;
|
||||
this.btnRestoreAll.Text = "还原原始商品";
|
||||
this.btnRestoreAll.Click += new System.EventHandler(this.btnRestoreAll_Click);
|
||||
//
|
||||
// btnCancel
|
||||
//
|
||||
this.btnCancel.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.btnCancel.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnCancel.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnCancel.Location = new System.Drawing.Point(1166, 2);
|
||||
this.btnCancel.Name = "btnCancel";
|
||||
this.btnCancel.Size = new System.Drawing.Size(51, 23);
|
||||
this.btnCancel.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnCancel.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.btnCancel.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.btnCancel.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.btnCancel.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnCancel.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.btnCancel.Style.GradientAngle = 90;
|
||||
this.btnCancel.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnCancel.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnCancel.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnCancel.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnCancel.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnCancel.TabIndex = 1007;
|
||||
this.btnCancel.Text = "取消";
|
||||
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
|
||||
//
|
||||
// btnSaveSkuLst
|
||||
//
|
||||
this.btnSaveSkuLst.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnSaveSkuLst.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnSaveSkuLst.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnSaveSkuLst.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnSaveSkuLst.Location = new System.Drawing.Point(1219, 2);
|
||||
this.btnSaveSkuLst.Name = "btnSaveSkuLst";
|
||||
this.btnSaveSkuLst.Size = new System.Drawing.Size(51, 23);
|
||||
this.btnSaveSkuLst.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnSaveSkuLst.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnSaveSkuLst.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnSaveSkuLst.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnSaveSkuLst.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnSaveSkuLst.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnSaveSkuLst.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnSaveSkuLst.Style.GradientAngle = 90;
|
||||
this.btnSaveSkuLst.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnSaveSkuLst.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnSaveSkuLst.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnSaveSkuLst.TabIndex = 1006;
|
||||
this.btnSaveSkuLst.Tag = "";
|
||||
this.btnSaveSkuLst.Text = "保存";
|
||||
this.btnSaveSkuLst.Click += new System.EventHandler(this.btnSaveSkuLst_Click);
|
||||
//
|
||||
// colSelect
|
||||
//
|
||||
this.colSelect.FillWeight = 26F;
|
||||
@@ -623,7 +569,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
//
|
||||
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colMultiPrice.DefaultCellStyle = dataGridViewCellStyle3;
|
||||
this.colMultiPrice.HeaderText = "拼单价";
|
||||
this.colMultiPrice.HeaderText = "单价";
|
||||
this.colMultiPrice.Name = "colMultiPrice";
|
||||
this.colMultiPrice.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
||||
//
|
||||
@@ -632,6 +578,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
this.colPrice.HeaderText = "单买价";
|
||||
this.colPrice.Name = "colPrice";
|
||||
this.colPrice.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
||||
this.colPrice.Visible = false;
|
||||
//
|
||||
// colStock
|
||||
//
|
||||
@@ -670,6 +617,88 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
this.colSkuSn.Name = "colSkuSn";
|
||||
this.colSkuSn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
||||
//
|
||||
// panel5
|
||||
//
|
||||
this.panel5.Location = new System.Drawing.Point(3, 842);
|
||||
this.panel5.MinimumSize = new System.Drawing.Size(1250, 10);
|
||||
this.panel5.Name = "panel5";
|
||||
this.panel5.Size = new System.Drawing.Size(1250, 10);
|
||||
this.panel5.TabIndex = 15;
|
||||
//
|
||||
// btnRestoreAll
|
||||
//
|
||||
this.btnRestoreAll.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.btnRestoreAll.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnRestoreAll.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnRestoreAll.Location = new System.Drawing.Point(5, 2);
|
||||
this.btnRestoreAll.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2);
|
||||
this.btnRestoreAll.Name = "btnRestoreAll";
|
||||
this.btnRestoreAll.Size = new System.Drawing.Size(100, 23);
|
||||
this.btnRestoreAll.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnRestoreAll.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.btnRestoreAll.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.btnRestoreAll.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.btnRestoreAll.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnRestoreAll.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.btnRestoreAll.Style.GradientAngle = 90;
|
||||
this.btnRestoreAll.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnRestoreAll.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnRestoreAll.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnRestoreAll.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnRestoreAll.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnRestoreAll.TabIndex = 1017;
|
||||
this.btnRestoreAll.Text = "还原原始商品";
|
||||
this.btnRestoreAll.Click += new System.EventHandler(this.btnRestoreAll_Click);
|
||||
//
|
||||
// btnCancel
|
||||
//
|
||||
this.btnCancel.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.btnCancel.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnCancel.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnCancel.Location = new System.Drawing.Point(1169, 2);
|
||||
this.btnCancel.Name = "btnCancel";
|
||||
this.btnCancel.Size = new System.Drawing.Size(51, 23);
|
||||
this.btnCancel.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnCancel.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.btnCancel.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.btnCancel.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.btnCancel.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnCancel.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.btnCancel.Style.GradientAngle = 90;
|
||||
this.btnCancel.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnCancel.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnCancel.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnCancel.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnCancel.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnCancel.TabIndex = 1007;
|
||||
this.btnCancel.Text = "取消";
|
||||
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
|
||||
//
|
||||
// btnSaveSkuLst
|
||||
//
|
||||
this.btnSaveSkuLst.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnSaveSkuLst.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnSaveSkuLst.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnSaveSkuLst.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnSaveSkuLst.Location = new System.Drawing.Point(1222, 2);
|
||||
this.btnSaveSkuLst.Name = "btnSaveSkuLst";
|
||||
this.btnSaveSkuLst.Size = new System.Drawing.Size(51, 23);
|
||||
this.btnSaveSkuLst.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnSaveSkuLst.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnSaveSkuLst.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnSaveSkuLst.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnSaveSkuLst.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnSaveSkuLst.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnSaveSkuLst.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnSaveSkuLst.Style.GradientAngle = 90;
|
||||
this.btnSaveSkuLst.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnSaveSkuLst.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnSaveSkuLst.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnSaveSkuLst.TabIndex = 1006;
|
||||
this.btnSaveSkuLst.Tag = "";
|
||||
this.btnSaveSkuLst.Text = "保存";
|
||||
this.btnSaveSkuLst.Click += new System.EventHandler(this.btnSaveSkuLst_Click);
|
||||
//
|
||||
// PDDDBProdEditDetailForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
@@ -703,6 +732,11 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
this.panel4.PerformLayout();
|
||||
this.panel6.ResumeLayout(false);
|
||||
this.flowLayoutPanel4.ResumeLayout(false);
|
||||
this.flowLayoutPanel4.PerformLayout();
|
||||
this.panel7.ResumeLayout(false);
|
||||
this.panel7.PerformLayout();
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
this.panel3.ResumeLayout(false);
|
||||
this.panel3.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvDbProduct)).EndInit();
|
||||
@@ -757,5 +791,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
private System.Windows.Forms.DataGridViewImageColumn colSkuImg;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colEditSkuImg;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colSkuSn;
|
||||
private System.Windows.Forms.Panel panel7;
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
}
|
||||
}
|
||||
@@ -102,6 +102,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
|
||||
if (lstSkuEditItem.All(s => s.spec.Count < 2))
|
||||
{
|
||||
cmbSpec2.Visible = true;
|
||||
this.pnlSpec2.Visible = flowLayoutPanel2.Visible = cmbSpec2.Visible = false;
|
||||
this.dgvDbProduct.Columns["colSpec2"].Visible = false;
|
||||
}
|
||||
@@ -728,10 +729,15 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
BaseMsgForm.ShowError("价格不能为 0");
|
||||
return;
|
||||
}
|
||||
if (this.lstSkuEditItem.Any(s => s.price < s.multi_price + 100))
|
||||
//if (this.lstSkuEditItem.Any(s => s.price < s.multi_price + 100))
|
||||
//{
|
||||
// BaseMsgForm.ShowError("单买价低于拼单价加 1 元");
|
||||
// return;
|
||||
//}
|
||||
var items = this.lstSkuEditItem.Where(s => s.price < s.multi_price + 100).ToList();
|
||||
foreach (var item in items)
|
||||
{
|
||||
BaseMsgForm.ShowError("单买价低于拼单价加 1 元");
|
||||
return;
|
||||
item.price = item.multi_price + 100;
|
||||
}
|
||||
if (this.lstSkuEditItem.Any(s => s.thumb_url.IsNullOrEmpty() && s.thumb_md5.IsNullOrEmpty()))
|
||||
{
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
/// <summary>
|
||||
/// 是否是普通商品采集授权用户
|
||||
/// </summary>
|
||||
public bool IsAuthorityUser { get; set; } = false;
|
||||
public bool IsCollectAuthorityUser { get; set; } = false;
|
||||
|
||||
CheckBox chkSelectAll;
|
||||
ChanceProductConfig chanceProductConfig;
|
||||
@@ -56,9 +56,9 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
private void PDDGetChanceProd_Load(object sender, EventArgs e)
|
||||
{
|
||||
pnlAddEditShop.Dock = DockStyle.Fill;
|
||||
//if (IsAuthorityUser)
|
||||
//if (IsCollectAuthorityUser)
|
||||
// btnShowMyCollect.Visible = true;
|
||||
if (IsAuthorityUser)
|
||||
if (IsCollectAuthorityUser)
|
||||
{
|
||||
btnRefreshShop.Visible = true;
|
||||
btnAddShop.Visible = true;
|
||||
@@ -201,7 +201,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
else
|
||||
{
|
||||
List<ShopLoginInfo> list = new List<ShopLoginInfo>();
|
||||
if (this.IsAuthorityUser && BaseClass.MainPath == "29wx")
|
||||
if (this.IsCollectAuthorityUser && BaseClass.MainPath == "29wx")
|
||||
{
|
||||
list = GlobalConfig._29WxPddShopLoginList.Where(s => s.LoginStatus == "登录成功").ToList();
|
||||
}
|
||||
@@ -229,7 +229,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
|
||||
private void btnSearchShop_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (IsAuthorityUser && BaseClass.MainPath == "29wx")
|
||||
if (IsCollectAuthorityUser && BaseClass.MainPath == "29wx")
|
||||
{
|
||||
Search29WxPddShop();
|
||||
}
|
||||
@@ -436,7 +436,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
string loginName = dgvShop.Rows[e.RowIndex].Cells["colShopLoginName"].Value.ParseToString();
|
||||
string accountId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToString();
|
||||
ShopLoginInfo shop = null;
|
||||
if (IsAuthorityUser && BaseClass.MainPath == "29wx")
|
||||
if (IsCollectAuthorityUser && BaseClass.MainPath == "29wx")
|
||||
shop = GlobalConfig._29WxPddShopLoginList.FirstOrDefault(s => s.LoginName == loginName && s.ShopId == accountId);
|
||||
else
|
||||
shop = lstAdminPddShopInfo.FirstOrDefault(s => s.LoginName == loginName && s.ShopId == accountId);
|
||||
@@ -448,7 +448,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
{
|
||||
if (shop == null)
|
||||
return;
|
||||
if (IsAuthorityUser && BaseClass.MainPath == "29wx")
|
||||
if (IsCollectAuthorityUser && BaseClass.MainPath == "29wx")
|
||||
{
|
||||
_29WxPddShopManage.Check29WxPddShopLogin(new ShopLoginInfo[] { shop }, this.statusBar);
|
||||
if (shop.LoginStatus == "登录成功")
|
||||
@@ -581,7 +581,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
var rst = GetChanceGoodsList(shop, searchTxt, searchLabels, "hot_index", page, cat1, cat2, price1, price2);
|
||||
if (!rst.Contains("success\":true"))
|
||||
{
|
||||
if (IsAuthorityUser && BaseClass.MainPath == "29wx")
|
||||
if (IsCollectAuthorityUser && BaseClass.MainPath == "29wx")
|
||||
_29WxPddShopManage.Check29WxPddShopLogin(new ShopLoginInfo[] { shop }, this.statusBar);
|
||||
else
|
||||
PDDAdminShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false);
|
||||
@@ -665,7 +665,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
|
||||
void GetAntiContent(ShopLoginInfo shop)
|
||||
{
|
||||
if (IsAuthorityUser && BaseClass.MainPath == "29wx")
|
||||
if (IsCollectAuthorityUser && BaseClass.MainPath == "29wx")
|
||||
{
|
||||
WXForms.ShopForms.WXPDDShopLoginForm loginForm = null;
|
||||
Invoke(new Action(() =>
|
||||
@@ -919,7 +919,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
try
|
||||
{
|
||||
var shopList = new List<ShopLoginInfo>();
|
||||
if (IsAuthorityUser && BaseClass.MainPath == "29wx")
|
||||
if (IsCollectAuthorityUser && BaseClass.MainPath == "29wx")
|
||||
shopList = GlobalConfig._29WxPddShopLoginList.Where(s => shopIds.Contains(s.ShopId) && s.LoginStatus == "登录成功").ToList();
|
||||
else
|
||||
shopList = lstAdminPddShopInfo.Where(s => shopIds.Contains(s.ShopId) && s.LoginStatus == "登录成功").ToList();
|
||||
@@ -932,7 +932,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
return null;
|
||||
}
|
||||
var shop = shopList[Randomx.GetId(shopList.Count)];
|
||||
if (IsAuthorityUser && BaseClass.MainPath == "29wx")
|
||||
if (IsCollectAuthorityUser && BaseClass.MainPath == "29wx")
|
||||
_29WxPddShopManage.Check29WxPddShopLogin(new ShopLoginInfo[] { shop }, this.statusBar);
|
||||
else
|
||||
PDDAdminShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false);
|
||||
@@ -1031,7 +1031,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
|
||||
// 商品采集权限用户采集的数据加上用户前缀(商品前缀显示给用户的时候隐藏)
|
||||
string userAuthorityTag = "";
|
||||
if (IsAuthorityUser)
|
||||
if (IsCollectAuthorityUser)
|
||||
userAuthorityTag = "-" + BaseClass.UserName;
|
||||
|
||||
bool isExist = false;
|
||||
@@ -1097,7 +1097,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
"&size_json=" + HttpUtility.UrlEncode(dbProd.size_json, Encoding.UTF8) +
|
||||
"&main_img=" + HttpUtility.UrlEncode(dbProd.main_img, Encoding.UTF8) +
|
||||
"&product_get_type=" + HttpUtility.UrlEncode("机会商品", Encoding.UTF8);
|
||||
if (IsAuthorityUser)
|
||||
if (IsCollectAuthorityUser)
|
||||
{
|
||||
data += "&add_user_name=" + BaseClass.UserName;
|
||||
data += "&group=用户" + BaseClass.UserName;
|
||||
|
||||
+249
-139
@@ -1,4 +1,6 @@
|
||||
namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
{
|
||||
partial class WXUserCollectAuthProdEditNotesForm
|
||||
{
|
||||
@@ -30,6 +32,20 @@
|
||||
{
|
||||
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();
|
||||
@@ -41,14 +57,6 @@
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.txtNotes = new DevComponents.DotNetBar.Controls.TextBoxX();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.cmbCat1 = new TemuKJD.UserComponent.UcComboBoxMutiSelect();
|
||||
this.label14 = new System.Windows.Forms.Label();
|
||||
this.cmbCat2 = new TemuKJD.UserComponent.UcComboBoxMutiSelect();
|
||||
this.label17 = new System.Windows.Forms.Label();
|
||||
this.cmbCat3 = new TemuKJD.UserComponent.UcComboBoxMutiSelect();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.cmbCatLeaf = new TemuKJD.UserComponent.UcComboBoxMutiSelect();
|
||||
this.panel2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
@@ -56,14 +64,20 @@
|
||||
// panel2
|
||||
//
|
||||
this.panel2.BackColor = System.Drawing.Color.White;
|
||||
this.panel2.Controls.Add(this.cmbCatLeaf);
|
||||
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.cmbCat1);
|
||||
this.panel2.Controls.Add(this.cmbCateFilter1);
|
||||
this.panel2.Controls.Add(this.label14);
|
||||
this.panel2.Controls.Add(this.cmbCat2);
|
||||
this.panel2.Controls.Add(this.cmbCateFilter2);
|
||||
this.panel2.Controls.Add(this.label17);
|
||||
this.panel2.Controls.Add(this.cmbCat3);
|
||||
this.panel2.Controls.Add(this.cmbCateFilter3);
|
||||
this.panel2.Controls.Add(this.label7);
|
||||
this.panel2.Controls.Add(this.txtFissionWords);
|
||||
this.panel2.Controls.Add(this.btnOK1);
|
||||
@@ -78,13 +92,203 @@
|
||||
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(464, 572);
|
||||
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, 387);
|
||||
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;
|
||||
@@ -108,11 +312,11 @@
|
||||
this.txtFissionWords.Border.PaddingLeft = 2;
|
||||
this.txtFissionWords.Border.PaddingRight = 2;
|
||||
this.txtFissionWords.Border.PaddingTop = 2;
|
||||
this.txtFissionWords.Location = new System.Drawing.Point(90, 387);
|
||||
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(337, 123);
|
||||
this.txtFissionWords.Size = new System.Drawing.Size(440, 123);
|
||||
this.txtFissionWords.TabIndex = 658;
|
||||
this.txtFissionWords.WatermarkText = "一行一个";
|
||||
//
|
||||
@@ -123,7 +327,7 @@
|
||||
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(381, 528);
|
||||
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;
|
||||
@@ -143,12 +347,12 @@
|
||||
//
|
||||
// btnEditDetail
|
||||
//
|
||||
this.btnEditDetail.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
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, 528);
|
||||
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;
|
||||
@@ -170,25 +374,29 @@
|
||||
//
|
||||
this.txtProductName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtProductName.Location = new System.Drawing.Point(90, 200);
|
||||
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(337, 46);
|
||||
this.txtProductName.Size = new System.Drawing.Size(440, 46);
|
||||
this.txtProductName.TabIndex = 397;
|
||||
//
|
||||
// txtSpuId
|
||||
//
|
||||
this.txtSpuId.Location = new System.Drawing.Point(90, 166);
|
||||
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(337, 23);
|
||||
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, 204);
|
||||
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;
|
||||
@@ -197,7 +405,7 @@
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(34, 169);
|
||||
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;
|
||||
@@ -206,7 +414,7 @@
|
||||
// pictureBox1
|
||||
//
|
||||
this.pictureBox1.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
||||
this.pictureBox1.Location = new System.Drawing.Point(165, 18);
|
||||
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;
|
||||
@@ -217,7 +425,7 @@
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new System.Drawing.Point(34, 329);
|
||||
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;
|
||||
@@ -240,120 +448,16 @@
|
||||
this.txtNotes.Border.PaddingLeft = 2;
|
||||
this.txtNotes.Border.PaddingRight = 2;
|
||||
this.txtNotes.Border.PaddingTop = 2;
|
||||
this.txtNotes.Location = new System.Drawing.Point(90, 329);
|
||||
this.txtNotes.Location = new System.Drawing.Point(90, 359);
|
||||
this.txtNotes.Multiline = true;
|
||||
this.txtNotes.Name = "txtNotes";
|
||||
this.txtNotes.Size = new System.Drawing.Size(337, 47);
|
||||
this.txtNotes.Size = new System.Drawing.Size(440, 47);
|
||||
this.txtNotes.TabIndex = 385;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(47, 262);
|
||||
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";
|
||||
//
|
||||
// cmbCat1
|
||||
//
|
||||
this.cmbCat1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbCat1.DefaultText = "全部";
|
||||
this.cmbCat1.DropDownHeight = 1;
|
||||
this.cmbCat1.DropDownWidth = 1;
|
||||
this.cmbCat1.FormattingEnabled = true;
|
||||
this.cmbCat1.IntegralHeight = false;
|
||||
this.cmbCat1.Location = new System.Drawing.Point(90, 258);
|
||||
this.cmbCat1.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbCat1.Name = "cmbCat1";
|
||||
this.cmbCat1.Size = new System.Drawing.Size(133, 25);
|
||||
this.cmbCat1.TabIndex = 815;
|
||||
this.cmbCat1.Text = "全部";
|
||||
//
|
||||
// label14
|
||||
//
|
||||
this.label14.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.label14.AutoSize = true;
|
||||
this.label14.Location = new System.Drawing.Point(251, 262);
|
||||
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";
|
||||
//
|
||||
// cmbCat2
|
||||
//
|
||||
this.cmbCat2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbCat2.DefaultText = "全部";
|
||||
this.cmbCat2.DropDownHeight = 1;
|
||||
this.cmbCat2.DropDownWidth = 1;
|
||||
this.cmbCat2.FormattingEnabled = true;
|
||||
this.cmbCat2.IntegralHeight = false;
|
||||
this.cmbCat2.Location = new System.Drawing.Point(294, 257);
|
||||
this.cmbCat2.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbCat2.Name = "cmbCat2";
|
||||
this.cmbCat2.Size = new System.Drawing.Size(133, 25);
|
||||
this.cmbCat2.TabIndex = 814;
|
||||
this.cmbCat2.Text = "全部";
|
||||
//
|
||||
// label17
|
||||
//
|
||||
this.label17.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.label17.AutoSize = true;
|
||||
this.label17.Location = new System.Drawing.Point(47, 296);
|
||||
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";
|
||||
//
|
||||
// cmbCat3
|
||||
//
|
||||
this.cmbCat3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbCat3.DefaultText = "全部";
|
||||
this.cmbCat3.DropDownHeight = 1;
|
||||
this.cmbCat3.DropDownWidth = 1;
|
||||
this.cmbCat3.FormattingEnabled = true;
|
||||
this.cmbCat3.IntegralHeight = false;
|
||||
this.cmbCat3.Location = new System.Drawing.Point(90, 293);
|
||||
this.cmbCat3.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbCat3.Name = "cmbCat3";
|
||||
this.cmbCat3.Size = new System.Drawing.Size(133, 25);
|
||||
this.cmbCat3.TabIndex = 817;
|
||||
this.cmbCat3.Text = "全部";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(238, 296);
|
||||
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 = "叶子类目";
|
||||
//
|
||||
// cmbCatLeaf
|
||||
//
|
||||
this.cmbCatLeaf.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbCatLeaf.DefaultText = "全部";
|
||||
this.cmbCatLeaf.DropDownHeight = 1;
|
||||
this.cmbCatLeaf.DropDownWidth = 1;
|
||||
this.cmbCatLeaf.FormattingEnabled = true;
|
||||
this.cmbCatLeaf.IntegralHeight = false;
|
||||
this.cmbCatLeaf.Location = new System.Drawing.Point(294, 293);
|
||||
this.cmbCatLeaf.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbCatLeaf.Name = "cmbCatLeaf";
|
||||
this.cmbCatLeaf.Size = new System.Drawing.Size(133, 25);
|
||||
this.cmbCatLeaf.TabIndex = 822;
|
||||
this.cmbCatLeaf.Text = "全部";
|
||||
//
|
||||
// WXUserCollectAuthProdEditNotesForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.ClientSize = new System.Drawing.Size(466, 606);
|
||||
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")));
|
||||
@@ -383,13 +487,19 @@
|
||||
private DevComponents.DotNetBar.PanelEx btnEditDetail;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private DevComponents.DotNetBar.Controls.TextBoxX txtFissionWords;
|
||||
private UserComponent.UcComboBoxMutiSelect cmbCatLeaf;
|
||||
private ComboBox cmbCateFilter4Leaf;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private UserComponent.UcComboBoxMutiSelect cmbCat1;
|
||||
private ComboBox cmbCateFilter1;
|
||||
private System.Windows.Forms.Label label14;
|
||||
private UserComponent.UcComboBoxMutiSelect cmbCat2;
|
||||
private ComboBox cmbCateFilter2;
|
||||
private System.Windows.Forms.Label label17;
|
||||
private UserComponent.UcComboBoxMutiSelect cmbCat3;
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -17,6 +17,8 @@ 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
|
||||
{
|
||||
@@ -25,6 +27,11 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
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();
|
||||
@@ -34,6 +41,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
|
||||
private void ProductSelectListForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
lstSelectCateList.Height = 180;
|
||||
if (dbProd != null)
|
||||
{
|
||||
txtProductName.Text = dbProd.product_name;
|
||||
@@ -50,6 +58,66 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,6 +128,23 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
var data = UserLogin.GetSignaturex() +
|
||||
"&db_id=" + dbProd.id + "¬es=" + 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
|
||||
@@ -77,6 +162,21 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
{
|
||||
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
|
||||
@@ -136,7 +236,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
|
||||
private void btnEditDetail_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool canEdit = false;
|
||||
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 == "厂商直采")
|
||||
@@ -267,5 +367,178 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user