分组管理进一步优化
This commit is contained in:
1 parent
29b7a73f22
commit
0cfb454b37
4 files changed
+28
-12
No files matched your search
@@ -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
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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))
|
||||
{
|
||||
|
||||
@@ -2685,6 +2685,9 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
{
|
||||
PDDDBProdGroupManageFrom groupMf = new PDDDBProdGroupManageFrom();
|
||||
groupMf.ShowDialog();
|
||||
|
||||
GetPDDProductGroup(new List<ComboBox> { cmbGroup }, "", "无分组");
|
||||
GetPDDProductGroup(new List<ComboBox> { cmbGroupFilter }, "", "无分组");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user