From 0cfb454b3791bed8ce2e6f6986a44e724a8e25d4 Mon Sep 17 00:00:00 2001 From: wule Date: Sat, 20 Jun 2026 23:36:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E7=BB=84=E7=AE=A1=E7=90=86=E8=BF=9B?= =?UTF-8?q?=E4=B8=80=E6=AD=A5=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BLL/BXX/BXXProductManage.cs | 4 +-- .../PDDDBProdGroupManageFrom.Designer.cs | 27 ++++++++++++++----- .../PDDDBProdGroupManageFrom.cs | 6 ++--- .../ProductSelectForms/PDDDBProdListForm.cs | 3 +++ 4 files changed, 28 insertions(+), 12 deletions(-) diff --git a/KJDService/KJD_WebService/BLL/BXX/BXXProductManage.cs b/KJDService/KJD_WebService/BLL/BXX/BXXProductManage.cs index 134c321..5e9963f 100644 --- a/KJDService/KJD_WebService/BLL/BXX/BXXProductManage.cs +++ b/KJDService/KJD_WebService/BLL/BXX/BXXProductManage.cs @@ -1392,12 +1392,12 @@ namespace KJD_Web.BLL.BXX string sql = "INSERT IGNORE INTO `bxx`.`product_group` (group_name,add_user_name) VALUES ('" + group_name + "','" + add_user_name + "')"; - var del_rows = mySql.ExecuteAffectedRows(sql); + var add_rows = mySql.ExecuteAffectedRows(sql); mySql.Close(); if (string.IsNullOrEmpty(mySql.Message)) { - return "{\"code\":200,\"msg\":\"success\", \"del_rows\":" + del_rows + "}"; + return "{\"code\":200,\"msg\":\"success\", \"add_rows\":" + add_rows + "}"; } else { diff --git a/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdGroupManageFrom.Designer.cs b/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdGroupManageFrom.Designer.cs index a2e4829..3e43dae 100644 --- a/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdGroupManageFrom.Designer.cs +++ b/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdGroupManageFrom.Designer.cs @@ -45,6 +45,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.colDbId = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colGroupName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colSAddUserName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.label2 = new System.Windows.Forms.Label(); this.panel2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); @@ -95,6 +96,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms // // splitContainer2.Panel1 // + this.splitContainer2.Panel1.Controls.Add(this.label2); this.splitContainer2.Panel1.Controls.Add(this.label1); this.splitContainer2.Panel1.Controls.Add(this.btnDeleteGroup); this.splitContainer2.Panel1.Controls.Add(this.btnAddGroup); @@ -110,7 +112,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms // label1 // this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(9, 23); + this.label1.Location = new System.Drawing.Point(9, 13); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(77, 12); this.label1.TabIndex = 835; @@ -122,7 +124,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.btnDeleteGroup.Cursor = System.Windows.Forms.Cursors.Hand; this.btnDeleteGroup.DisabledBackColor = System.Drawing.Color.Empty; this.btnDeleteGroup.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnDeleteGroup.Location = new System.Drawing.Point(296, 18); + this.btnDeleteGroup.Location = new System.Drawing.Point(296, 8); this.btnDeleteGroup.Name = "btnDeleteGroup"; this.btnDeleteGroup.Size = new System.Drawing.Size(80, 21); this.btnDeleteGroup.Style.Alignment = System.Drawing.StringAlignment.Center; @@ -146,7 +148,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.btnAddGroup.Cursor = System.Windows.Forms.Cursors.Hand; this.btnAddGroup.DisabledBackColor = System.Drawing.Color.Empty; this.btnAddGroup.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnAddGroup.Location = new System.Drawing.Point(230, 18); + this.btnAddGroup.Location = new System.Drawing.Point(230, 8); this.btnAddGroup.Name = "btnAddGroup"; this.btnAddGroup.Size = new System.Drawing.Size(46, 21); this.btnAddGroup.Style.Alignment = System.Drawing.StringAlignment.Center; @@ -166,7 +168,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms // // txtGroupName // - this.txtGroupName.Location = new System.Drawing.Point(90, 18); + this.txtGroupName.Location = new System.Drawing.Point(90, 8); this.txtGroupName.Name = "txtGroupName"; this.txtGroupName.Size = new System.Drawing.Size(137, 21); this.txtGroupName.TabIndex = 0; @@ -230,7 +232,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.colSelect.ReadOnly = true; this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.True; this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.colSelect.Width = 30; + this.colSelect.Width = 50; // // colDbId // @@ -256,6 +258,16 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.colSAddUserName.Visible = false; this.colSAddUserName.Width = 150; // + // label2 + // + this.label2.AutoSize = true; + this.label2.ForeColor = System.Drawing.SystemColors.ActiveCaption; + this.label2.Location = new System.Drawing.Point(42, 36); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(305, 12); + this.label2.TabIndex = 842; + this.label2.Text = "备注:删除选中仅删除分组,原分组内的商品仍然保留。"; + // // PDDDBProdGroupManageFrom // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -265,8 +277,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.KeyPreview = true; this.Name = "PDDDBProdGroupManageFrom"; - this.Text = "指定二级超管"; - this.TitleText = "指定二级超管"; + this.Text = "分组管理"; + this.TitleText = "分组管理"; this.Load += new System.EventHandler(this.AdminShopAddSubSaForm_Load); this.Controls.SetChildIndex(this.panel2, 0); this.panel2.ResumeLayout(false); @@ -295,6 +307,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms private DevComponents.DotNetBar.PanelEx btnDeleteGroup; private DevComponents.DotNetBar.PanelEx btnAddGroup; private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; private System.Windows.Forms.DataGridViewTextBoxColumn colDbId; private System.Windows.Forms.DataGridViewTextBoxColumn colGroupName; diff --git a/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdGroupManageFrom.cs b/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdGroupManageFrom.cs index 2383242..fa24b4f 100644 --- a/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdGroupManageFrom.cs +++ b/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdGroupManageFrom.cs @@ -99,8 +99,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms StringBuilder data = new StringBuilder(); data.Append(UserLogin.GetSignaturex()); - data.Append("&group_name=" + string.Join(",", selectRows.Select(r => r.Cells["col_group_name"].Value.ParseToString()))); - string url = BaseClass.BuildPDDObjString("product/del_product_group"); + data.Append("&group_name=" + string.Join(",", selectRows.Select(r => r.Cells["colGroupName"].Value.ParseToString()))); + string url = BaseClass.BuildPDDObjString("product/del_product_groups"); string html = GetHtml.PostUtf8(url, data.ToString()).Trim(); if (!string.IsNullOrEmpty(html)) { @@ -142,7 +142,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms data.Append(UserLogin.GetSignaturex()); data.Append("&add_user_name=" + add_user_name); data.Append("&group_name=" + groupName); - string url = BaseClass.BuildPDDObjString("product/add_product_group"); + string url = BaseClass.BuildPDDObjString("product/add_product_groups"); string html = GetHtml.PostUtf8(url, data.ToString()).Trim(); if (!string.IsNullOrEmpty(html)) { diff --git a/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdListForm.cs b/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdListForm.cs index 933bf77..005dd44 100644 --- a/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdListForm.cs +++ b/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdListForm.cs @@ -2685,6 +2685,9 @@ namespace TemuKJD.PDDForms.ProductSelectForms { PDDDBProdGroupManageFrom groupMf = new PDDDBProdGroupManageFrom(); groupMf.ShowDialog(); + + GetPDDProductGroup(new List { cmbGroup }, "", "无分组"); + GetPDDProductGroup(new List { cmbGroupFilter }, "", "无分组"); } } }