diff --git a/TEMUKJD/WXForms/ProductForms/WXDBProdUploadForm.Designer.cs b/TEMUKJD/WXForms/ProductForms/WXDBProdUploadForm.Designer.cs index ab8e926..6f072d9 100644 --- a/TEMUKJD/WXForms/ProductForms/WXDBProdUploadForm.Designer.cs +++ b/TEMUKJD/WXForms/ProductForms/WXDBProdUploadForm.Designer.cs @@ -149,7 +149,6 @@ namespace TemuKJD.WXForms.ProductForms this.pnlFilterSaleCountNum = new System.Windows.Forms.Panel(); this.label42 = new System.Windows.Forms.Label(); this.numFilterSaleCountNum = new System.Windows.Forms.NumericUpDown(); - this.chkFilterSaleCountNum = new TemuKJD.UserComponent.UcCheckBox(this.components); this.pnlFilterViewUv = new System.Windows.Forms.Panel(); this.label41 = new System.Windows.Forms.Label(); this.numFilterViewUv = new System.Windows.Forms.NumericUpDown(); @@ -187,12 +186,13 @@ namespace TemuKJD.WXForms.ProductForms this.lblHot = new System.Windows.Forms.Label(); this.label19 = new System.Windows.Forms.Label(); this.lblNotes = new System.Windows.Forms.Label(); - this.chkFilterViewUv = new TemuKJD.UserComponent.UcCheckBox(this.components); this.pbSelectProd = new System.Windows.Forms.PictureBox(); this.lblGoodsCount = new System.Windows.Forms.Label(); this.lblWaitToUp = new System.Windows.Forms.Label(); this.chkWXComplateProd = new TemuKJD.UserComponent.UcCheckBox(this.components); this.chkUpdateInDays = new TemuKJD.UserComponent.UcCheckBox(this.components); + this.chkFilterSaleCountNum = new TemuKJD.UserComponent.UcCheckBox(this.components); + this.chkFilterViewUv = new TemuKJD.UserComponent.UcCheckBox(this.components); this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); this.cmbFilterShopGroup = new TemuKJD.UserComponent.UcComboBoxMutiSelect(); this.label24 = new System.Windows.Forms.Label(); @@ -264,6 +264,7 @@ namespace TemuKJD.WXForms.ProductForms this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); this.btnClear = new DevComponents.DotNetBar.PanelEx(); this.panelEx1 = new DevComponents.DotNetBar.PanelEx(); + this.btnClearAll = new DevComponents.DotNetBar.PanelEx(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); @@ -332,6 +333,7 @@ namespace TemuKJD.WXForms.ProductForms this.ucGroupBoxEx2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.ucGroupBoxEx2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.ucGroupBoxEx2.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND; + this.ucGroupBoxEx2.Controls.Add(this.btnClearAll); this.ucGroupBoxEx2.Controls.Add(this.txtWaitSeconds); this.ucGroupBoxEx2.Controls.Add(this.label6); this.ucGroupBoxEx2.Controls.Add(this.chkRemoveSpecialChar); @@ -521,7 +523,7 @@ namespace TemuKJD.WXForms.ProductForms this.chkRandomCompanyProd.AutoSize = true; this.chkRandomCompanyProd.Checked = true; this.chkRandomCompanyProd.CheckState = System.Windows.Forms.CheckState.Checked; - this.chkRandomCompanyProd.Location = new System.Drawing.Point(1032, 121); + this.chkRandomCompanyProd.Location = new System.Drawing.Point(1032, 144); this.chkRandomCompanyProd.Name = "chkRandomCompanyProd"; this.chkRandomCompanyProd.Size = new System.Drawing.Size(99, 21); this.chkRandomCompanyProd.TabIndex = 889; @@ -1800,16 +1802,6 @@ namespace TemuKJD.WXForms.ProductForms 0, 0}); // - // chkFilterSaleCountNum - // - this.chkFilterSaleCountNum.Location = new System.Drawing.Point(284, 102); - this.chkFilterSaleCountNum.Name = "chkFilterSaleCountNum"; - this.chkFilterSaleCountNum.Size = new System.Drawing.Size(44, 17); - this.chkFilterSaleCountNum.TabIndex = 990; - this.chkFilterSaleCountNum.Text = "销量"; - this.chkFilterSaleCountNum.UseVisualStyleBackColor = true; - this.chkFilterSaleCountNum.Visible = false; - // // pnlFilterViewUv // this.pnlFilterViewUv.Controls.Add(this.label41); @@ -2325,16 +2317,6 @@ namespace TemuKJD.WXForms.ProductForms this.lblNotes.Text = "备注"; this.lblNotes.Visible = false; // - // chkFilterViewUv - // - this.chkFilterViewUv.Location = new System.Drawing.Point(149, 102); - this.chkFilterViewUv.Name = "chkFilterViewUv"; - this.chkFilterViewUv.Size = new System.Drawing.Size(44, 17); - this.chkFilterViewUv.TabIndex = 911; - this.chkFilterViewUv.Text = "曝光"; - this.chkFilterViewUv.UseVisualStyleBackColor = true; - this.chkFilterViewUv.Visible = false; - // // pbSelectProd // this.pbSelectProd.BackColor = System.Drawing.Color.Transparent; @@ -2396,6 +2378,26 @@ namespace TemuKJD.WXForms.ProductForms this.chkUpdateInDays.UseVisualStyleBackColor = true; this.chkUpdateInDays.Visible = false; // + // chkFilterSaleCountNum + // + this.chkFilterSaleCountNum.Location = new System.Drawing.Point(284, 102); + this.chkFilterSaleCountNum.Name = "chkFilterSaleCountNum"; + this.chkFilterSaleCountNum.Size = new System.Drawing.Size(44, 17); + this.chkFilterSaleCountNum.TabIndex = 990; + this.chkFilterSaleCountNum.Text = "销量"; + this.chkFilterSaleCountNum.UseVisualStyleBackColor = true; + this.chkFilterSaleCountNum.Visible = false; + // + // chkFilterViewUv + // + this.chkFilterViewUv.Location = new System.Drawing.Point(149, 102); + this.chkFilterViewUv.Name = "chkFilterViewUv"; + this.chkFilterViewUv.Size = new System.Drawing.Size(44, 17); + this.chkFilterViewUv.TabIndex = 911; + this.chkFilterViewUv.Text = "曝光"; + this.chkFilterViewUv.UseVisualStyleBackColor = true; + this.chkFilterViewUv.Visible = false; + // // ucGroupBoxEx1 // this.ucGroupBoxEx1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) @@ -3387,6 +3389,32 @@ namespace TemuKJD.WXForms.ProductForms this.panelEx1.Text = "停止当前操作"; this.panelEx1.Visible = false; // + // btnClearAll + // + this.btnClearAll.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnClearAll.CanvasColor = System.Drawing.SystemColors.Control; + this.btnClearAll.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnClearAll.DisabledBackColor = System.Drawing.Color.Empty; + this.btnClearAll.Location = new System.Drawing.Point(1032, 121); + this.btnClearAll.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2); + this.btnClearAll.Name = "btnClearAll"; + this.btnClearAll.Size = new System.Drawing.Size(60, 23); + this.btnClearAll.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnClearAll.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnClearAll.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnClearAll.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.btnClearAll.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnClearAll.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.btnClearAll.Style.GradientAngle = 90; + this.btnClearAll.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; + this.btnClearAll.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnClearAll.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnClearAll.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnClearAll.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; + this.btnClearAll.TabIndex = 929; + this.btnClearAll.Text = "清空全部"; + this.btnClearAll.Click += new System.EventHandler(this.btnClearAll_Click); + // // WXDBProdUploadForm // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; @@ -3679,5 +3707,6 @@ namespace TemuKJD.WXForms.ProductForms private System.Windows.Forms.Label label42; private System.Windows.Forms.NumericUpDown numFilterSaleCountNum; private UserComponent.UcCheckBox chkFilterSaleCountNum; + private DevComponents.DotNetBar.PanelEx btnClearAll; } } \ No newline at end of file diff --git a/TEMUKJD/WXForms/ProductForms/WXDBProdUploadForm.cs b/TEMUKJD/WXForms/ProductForms/WXDBProdUploadForm.cs index fe954f2..bd6664c 100644 --- a/TEMUKJD/WXForms/ProductForms/WXDBProdUploadForm.cs +++ b/TEMUKJD/WXForms/ProductForms/WXDBProdUploadForm.cs @@ -6687,8 +6687,14 @@ namespace TemuKJD.WXForms.ProductForms NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_select_upload_draft_products", upload_draft_product_lst); }); } + private async void btnClearAll_Click(object sender, EventArgs e) + { + dgvSelectProduct.Rows.Clear(); + upload_draft_product_lst.Clear(); + NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_select_upload_draft_products", upload_draft_product_lst); + } - private void chkAddMorePriceFirst_CheckedChanged(object sender, EventArgs e) + private void chkAddMorePriceFirst_CheckedChanged(object sender, EventArgs e) { if (IsFormLoad) {