产品库搜索无分组商品 页面模拟上传优化
This commit is contained in:
1 parent
ec559bd6cc
commit
2cc12d96c9
20 files changed
+1160
-878
No files matched your search
+23
-6
@@ -74,6 +74,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
this.shopCountColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colSaLevel = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colSaLevelName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colAddShop = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.editColumn = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.deleteColumn = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer5)).BeginInit();
|
||||
@@ -131,7 +132,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
//
|
||||
this.splitContainer5.Panel2.Controls.Add(this.splitContainer1);
|
||||
this.splitContainer5.Panel2.Padding = new System.Windows.Forms.Padding(0, 5, 5, 5);
|
||||
this.splitContainer5.Size = new System.Drawing.Size(800, 527);
|
||||
this.splitContainer5.Size = new System.Drawing.Size(1270, 527);
|
||||
this.splitContainer5.SplitterDistance = 357;
|
||||
this.splitContainer5.SplitterWidth = 1;
|
||||
this.splitContainer5.TabIndex = 3;
|
||||
@@ -464,7 +465,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
// splitContainer1.Panel1
|
||||
//
|
||||
this.splitContainer1.Panel1.Controls.Add(this.dgvUser);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(437, 517);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(907, 517);
|
||||
this.splitContainer1.SplitterDistance = 486;
|
||||
this.splitContainer1.TabIndex = 2;
|
||||
//
|
||||
@@ -474,6 +475,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
this.dgvUser.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
|
||||
this.dgvUser.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.dgvUser.AutoRowNumber = true;
|
||||
this.dgvUser.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
|
||||
this.dgvUser.BackgroundColor = System.Drawing.Color.White;
|
||||
this.dgvUser.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
@@ -496,6 +498,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
this.shopCountColumn,
|
||||
this.colSaLevel,
|
||||
this.colSaLevelName,
|
||||
this.colAddShop,
|
||||
this.editColumn,
|
||||
this.deleteColumn});
|
||||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
@@ -509,10 +512,11 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
this.dgvUser.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dgvUser.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229)))));
|
||||
this.dgvUser.Location = new System.Drawing.Point(0, 0);
|
||||
this.dgvUser.MultiSelectCheckBox = true;
|
||||
this.dgvUser.Name = "dgvUser";
|
||||
this.dgvUser.ReadOnly = true;
|
||||
this.dgvUser.RowTemplate.Height = 23;
|
||||
this.dgvUser.Size = new System.Drawing.Size(437, 486);
|
||||
this.dgvUser.Size = new System.Drawing.Size(907, 486);
|
||||
this.dgvUser.TabIndex = 1;
|
||||
this.dgvUser.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvUser_CellContentClick);
|
||||
//
|
||||
@@ -574,8 +578,18 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
this.colSaLevelName.Name = "colSaLevelName";
|
||||
this.colSaLevelName.ReadOnly = true;
|
||||
//
|
||||
// colAddShop
|
||||
//
|
||||
this.colAddShop.FillWeight = 60F;
|
||||
this.colAddShop.HeaderText = "添加店铺";
|
||||
this.colAddShop.Name = "colAddShop";
|
||||
this.colAddShop.ReadOnly = true;
|
||||
this.colAddShop.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colAddShop.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
//
|
||||
// editColumn
|
||||
//
|
||||
this.editColumn.FillWeight = 60F;
|
||||
this.editColumn.HeaderText = "编辑";
|
||||
this.editColumn.Name = "editColumn";
|
||||
this.editColumn.ReadOnly = true;
|
||||
@@ -584,17 +598,19 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
//
|
||||
// deleteColumn
|
||||
//
|
||||
this.deleteColumn.FillWeight = 60F;
|
||||
this.deleteColumn.HeaderText = "删除";
|
||||
this.deleteColumn.Name = "deleteColumn";
|
||||
this.deleteColumn.ReadOnly = true;
|
||||
//
|
||||
// AdminAccountForm
|
||||
// PDDAdminAccountForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.ClientSize = new System.Drawing.Size(800, 527);
|
||||
this.ClientSize = new System.Drawing.Size(1270, 527);
|
||||
this.Controls.Add(this.splitContainer5);
|
||||
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.Name = "AdminAccountForm";
|
||||
this.KeyPreview = true;
|
||||
this.Name = "PDDAdminAccountForm";
|
||||
this.Text = "AccountForm";
|
||||
this.Load += new System.EventHandler(this.MainAccountForm_Load);
|
||||
this.VisibleChanged += new System.EventHandler(this.MainAccountForm_VisibleChanged);
|
||||
@@ -655,6 +671,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn shopCountColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colSaLevel;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colSaLevelName;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colAddShop;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn editColumn;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn deleteColumn;
|
||||
}
|
||||
|
||||
@@ -147,6 +147,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
user.shop_count,
|
||||
user.sa_level,
|
||||
user.sa_level_name,
|
||||
"添加店铺",
|
||||
"编辑",
|
||||
"删除");
|
||||
}
|
||||
@@ -208,6 +209,14 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
Delete(uid);
|
||||
}
|
||||
}
|
||||
if (columname == "添加店铺")
|
||||
{
|
||||
PDDAdminShopListForm shopListForm = new PDDAdminShopListForm();
|
||||
shopListForm.UserAccountInfo = AllUsers.FirstOrDefault(u => u.user_name == mobile);
|
||||
shopListForm.lblAddToAccount.Visible = true;
|
||||
shopListForm.btnAddToAccount.Visible = true;
|
||||
shopListForm.ShowDialog();
|
||||
}
|
||||
}
|
||||
|
||||
public void Delete(string uid)
|
||||
|
||||
@@ -144,6 +144,9 @@
|
||||
<metadata name="colSaLevelName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colAddShop.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="editColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
|
||||
+91
-44
@@ -29,11 +29,11 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.panel5 = new System.Windows.Forms.Panel();
|
||||
@@ -67,6 +67,8 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
this.chkAutoDrag = new System.Windows.Forms.CheckBox();
|
||||
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
this.lblAddToAccount = new System.Windows.Forms.Label();
|
||||
this.btnAddToAccount = new DevComponents.DotNetBar.PanelEx();
|
||||
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.colLoginName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -132,7 +134,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
|
||||
this.splitContainer1.Panel2.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(1273, 610);
|
||||
this.splitContainer1.SplitterDistance = 46;
|
||||
this.splitContainer1.SplitterDistance = 81;
|
||||
this.splitContainer1.TabIndex = 34;
|
||||
//
|
||||
// tableLayoutPanel2
|
||||
@@ -147,7 +149,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
this.tableLayoutPanel2.Name = "tableLayoutPanel2";
|
||||
this.tableLayoutPanel2.RowCount = 1;
|
||||
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tableLayoutPanel2.Size = new System.Drawing.Size(1273, 46);
|
||||
this.tableLayoutPanel2.Size = new System.Drawing.Size(1273, 81);
|
||||
this.tableLayoutPanel2.TabIndex = 37;
|
||||
//
|
||||
// panel5
|
||||
@@ -157,12 +159,12 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
this.panel5.Controls.Add(this.btnCheck);
|
||||
this.panel5.Location = new System.Drawing.Point(1010, 3);
|
||||
this.panel5.Name = "panel5";
|
||||
this.panel5.Size = new System.Drawing.Size(260, 40);
|
||||
this.panel5.Size = new System.Drawing.Size(260, 75);
|
||||
this.panel5.TabIndex = 1;
|
||||
//
|
||||
// chkShowDelete
|
||||
//
|
||||
this.chkShowDelete.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.chkShowDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkShowDelete.AutoSize = true;
|
||||
this.chkShowDelete.BackColor = System.Drawing.Color.White;
|
||||
this.chkShowDelete.Location = new System.Drawing.Point(29, 12);
|
||||
@@ -207,6 +209,8 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
//
|
||||
// panel4
|
||||
//
|
||||
this.panel4.Controls.Add(this.lblAddToAccount);
|
||||
this.panel4.Controls.Add(this.btnAddToAccount);
|
||||
this.panel4.Controls.Add(this.btnSetSubSa);
|
||||
this.panel4.Controls.Add(this.txtUserName);
|
||||
this.panel4.Controls.Add(this.label5);
|
||||
@@ -223,7 +227,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
this.panel4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel4.Location = new System.Drawing.Point(3, 3);
|
||||
this.panel4.Name = "panel4";
|
||||
this.panel4.Size = new System.Drawing.Size(1001, 40);
|
||||
this.panel4.Size = new System.Drawing.Size(1001, 75);
|
||||
this.panel4.TabIndex = 0;
|
||||
//
|
||||
// btnSetSubSa
|
||||
@@ -234,18 +238,19 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
this.btnSetSubSa.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnSetSubSa.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnSetSubSa.ForeColor = System.Drawing.Color.White;
|
||||
this.btnSetSubSa.Location = new System.Drawing.Point(895, 9);
|
||||
this.btnSetSubSa.Location = new System.Drawing.Point(906, 46);
|
||||
this.btnSetSubSa.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.btnSetSubSa.Name = "btnSetSubSa";
|
||||
this.btnSetSubSa.Size = new System.Drawing.Size(93, 26);
|
||||
this.btnSetSubSa.TabIndex = 424;
|
||||
this.btnSetSubSa.Text = "分配二级超管";
|
||||
this.btnSetSubSa.UseVisualStyleBackColor = false;
|
||||
this.btnSetSubSa.Visible = false;
|
||||
this.btnSetSubSa.Click += new System.EventHandler(this.btnSetSubSa_Click);
|
||||
//
|
||||
// txtUserName
|
||||
//
|
||||
this.txtUserName.Location = new System.Drawing.Point(34, 11);
|
||||
this.txtUserName.Location = new System.Drawing.Point(57, 11);
|
||||
this.txtUserName.Name = "txtUserName";
|
||||
this.txtUserName.Size = new System.Drawing.Size(90, 23);
|
||||
this.txtUserName.TabIndex = 419;
|
||||
@@ -253,7 +258,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(1, 14);
|
||||
this.label5.Location = new System.Drawing.Point(24, 14);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(44, 17);
|
||||
this.label5.TabIndex = 420;
|
||||
@@ -261,7 +266,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
//
|
||||
// txtLoginName
|
||||
//
|
||||
this.txtLoginName.Location = new System.Drawing.Point(185, 11);
|
||||
this.txtLoginName.Location = new System.Drawing.Point(208, 11);
|
||||
this.txtLoginName.Name = "txtLoginName";
|
||||
this.txtLoginName.Size = new System.Drawing.Size(90, 23);
|
||||
this.txtLoginName.TabIndex = 417;
|
||||
@@ -269,7 +274,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(128, 14);
|
||||
this.label1.Location = new System.Drawing.Point(151, 14);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(68, 17);
|
||||
this.label1.TabIndex = 418;
|
||||
@@ -280,7 +285,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
this.pnlEmpty.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.pnlEmpty.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.pnlEmpty.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.pnlEmpty.Location = new System.Drawing.Point(749, 9);
|
||||
this.pnlEmpty.Location = new System.Drawing.Point(507, 10);
|
||||
this.pnlEmpty.Name = "pnlEmpty";
|
||||
this.pnlEmpty.Size = new System.Drawing.Size(56, 26);
|
||||
this.pnlEmpty.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
@@ -306,7 +311,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
this.btnSearch.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnSearch.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnSearch.ForeColor = System.Drawing.Color.White;
|
||||
this.btnSearch.Location = new System.Drawing.Point(688, 9);
|
||||
this.btnSearch.Location = new System.Drawing.Point(446, 10);
|
||||
this.btnSearch.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.btnSearch.Name = "btnSearch";
|
||||
this.btnSearch.Size = new System.Drawing.Size(56, 26);
|
||||
@@ -317,7 +322,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
//
|
||||
// txtNotes
|
||||
//
|
||||
this.txtNotes.Location = new System.Drawing.Point(589, 11);
|
||||
this.txtNotes.Location = new System.Drawing.Point(207, 43);
|
||||
this.txtNotes.Name = "txtNotes";
|
||||
this.txtNotes.Size = new System.Drawing.Size(90, 23);
|
||||
this.txtNotes.TabIndex = 376;
|
||||
@@ -325,7 +330,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(556, 14);
|
||||
this.label4.Location = new System.Drawing.Point(174, 46);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(44, 17);
|
||||
this.label4.TabIndex = 377;
|
||||
@@ -333,7 +338,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
//
|
||||
// txtShopName
|
||||
//
|
||||
this.txtShopName.Location = new System.Drawing.Point(462, 11);
|
||||
this.txtShopName.Location = new System.Drawing.Point(57, 43);
|
||||
this.txtShopName.Name = "txtShopName";
|
||||
this.txtShopName.Size = new System.Drawing.Size(90, 23);
|
||||
this.txtShopName.TabIndex = 374;
|
||||
@@ -341,7 +346,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(417, 14);
|
||||
this.label3.Location = new System.Drawing.Point(12, 46);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(56, 17);
|
||||
this.label3.TabIndex = 375;
|
||||
@@ -349,7 +354,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
//
|
||||
// txtShopId
|
||||
//
|
||||
this.txtShopId.Location = new System.Drawing.Point(323, 11);
|
||||
this.txtShopId.Location = new System.Drawing.Point(346, 11);
|
||||
this.txtShopId.Name = "txtShopId";
|
||||
this.txtShopId.Size = new System.Drawing.Size(90, 23);
|
||||
this.txtShopId.TabIndex = 372;
|
||||
@@ -357,7 +362,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(279, 14);
|
||||
this.label2.Location = new System.Drawing.Point(302, 14);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(55, 17);
|
||||
this.label2.TabIndex = 373;
|
||||
@@ -385,15 +390,15 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
this.splitContainer2.Panel2.Controls.Add(this.chkAutoDrag);
|
||||
this.splitContainer2.Panel2.Controls.Add(this.ucSplitPage1);
|
||||
this.splitContainer2.Panel2.Controls.Add(this.statusBar);
|
||||
this.splitContainer2.Size = new System.Drawing.Size(1273, 560);
|
||||
this.splitContainer2.SplitterDistance = 531;
|
||||
this.splitContainer2.Size = new System.Drawing.Size(1273, 525);
|
||||
this.splitContainer2.SplitterDistance = 496;
|
||||
this.splitContainer2.TabIndex = 0;
|
||||
//
|
||||
// pbLoading
|
||||
//
|
||||
this.pbLoading.Anchor = System.Windows.Forms.AnchorStyles.None;
|
||||
this.pbLoading.Image = global::TemuKJD.Properties.Resources.loading_blue;
|
||||
this.pbLoading.Location = new System.Drawing.Point(611, 240);
|
||||
this.pbLoading.Location = new System.Drawing.Point(611, 223);
|
||||
this.pbLoading.Name = "pbLoading";
|
||||
this.pbLoading.Size = new System.Drawing.Size(50, 50);
|
||||
this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
@@ -407,7 +412,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
this.pnlAddProdRemaining.Controls.Add(this.lblShopId);
|
||||
this.pnlAddProdRemaining.Controls.Add(this.panel2);
|
||||
this.pnlAddProdRemaining.Controls.Add(this.lblAddProdRemaining);
|
||||
this.pnlAddProdRemaining.Location = new System.Drawing.Point(399, 70);
|
||||
this.pnlAddProdRemaining.Location = new System.Drawing.Point(399, 53);
|
||||
this.pnlAddProdRemaining.Name = "pnlAddProdRemaining";
|
||||
this.pnlAddProdRemaining.Size = new System.Drawing.Size(474, 146);
|
||||
this.pnlAddProdRemaining.TabIndex = 7;
|
||||
@@ -507,19 +512,20 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
//
|
||||
this.dgvShop.AllowUserToAddRows = false;
|
||||
this.dgvShop.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
|
||||
dataGridViewCellStyle6.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6;
|
||||
this.dgvShop.AutoRowNumber = true;
|
||||
this.dgvShop.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
|
||||
this.dgvShop.BackgroundColor = System.Drawing.Color.White;
|
||||
this.dgvShop.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
|
||||
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle7.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7;
|
||||
this.dgvShop.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dgvShop.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.colSelect,
|
||||
@@ -553,11 +559,12 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
this.colDelete});
|
||||
this.dgvShop.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dgvShop.Location = new System.Drawing.Point(4, 0);
|
||||
this.dgvShop.MultiSelectCheckBox = true;
|
||||
this.dgvShop.Name = "dgvShop";
|
||||
this.dgvShop.ReadOnly = true;
|
||||
this.dgvShop.RowTemplate.Height = 23;
|
||||
this.dgvShop.ShowCellErrors = false;
|
||||
this.dgvShop.Size = new System.Drawing.Size(1265, 531);
|
||||
this.dgvShop.Size = new System.Drawing.Size(1265, 496);
|
||||
this.dgvShop.TabIndex = 5;
|
||||
this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick);
|
||||
this.dgvShop.CellMouseDown += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvShop_CellMouseDown);
|
||||
@@ -599,6 +606,41 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
this.statusBar.Size = new System.Drawing.Size(1273, 25);
|
||||
this.statusBar.TabIndex = 1;
|
||||
//
|
||||
// lblAddToAccount
|
||||
//
|
||||
this.lblAddToAccount.AutoSize = true;
|
||||
this.lblAddToAccount.Location = new System.Drawing.Point(755, 15);
|
||||
this.lblAddToAccount.Name = "lblAddToAccount";
|
||||
this.lblAddToAccount.Size = new System.Drawing.Size(68, 17);
|
||||
this.lblAddToAccount.TabIndex = 461;
|
||||
this.lblAddToAccount.Text = "指定账号:";
|
||||
this.lblAddToAccount.Visible = false;
|
||||
//
|
||||
// btnAddToAccount
|
||||
//
|
||||
this.btnAddToAccount.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnAddToAccount.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnAddToAccount.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnAddToAccount.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnAddToAccount.Location = new System.Drawing.Point(598, 12);
|
||||
this.btnAddToAccount.Name = "btnAddToAccount";
|
||||
this.btnAddToAccount.Size = new System.Drawing.Size(153, 23);
|
||||
this.btnAddToAccount.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnAddToAccount.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnAddToAccount.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnAddToAccount.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnAddToAccount.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnAddToAccount.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnAddToAccount.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnAddToAccount.Style.GradientAngle = 90;
|
||||
this.btnAddToAccount.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnAddToAccount.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnAddToAccount.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnAddToAccount.TabIndex = 460;
|
||||
this.btnAddToAccount.Text = "选中店铺添加到指定账号";
|
||||
this.btnAddToAccount.Visible = false;
|
||||
this.btnAddToAccount.Click += new System.EventHandler(this.btnAddToAccount_Click);
|
||||
//
|
||||
// colSelect
|
||||
//
|
||||
this.colSelect.FillWeight = 26F;
|
||||
@@ -636,8 +678,8 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
//
|
||||
// colMinus
|
||||
//
|
||||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.colMinus.DefaultCellStyle = dataGridViewCellStyle3;
|
||||
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.colMinus.DefaultCellStyle = dataGridViewCellStyle8;
|
||||
this.colMinus.FillWeight = 15F;
|
||||
this.colMinus.HeaderText = "-";
|
||||
this.colMinus.Name = "colMinus";
|
||||
@@ -646,21 +688,23 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
//
|
||||
// colProductRemaining
|
||||
//
|
||||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.colProductRemaining.DefaultCellStyle = dataGridViewCellStyle4;
|
||||
dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.colProductRemaining.DefaultCellStyle = dataGridViewCellStyle9;
|
||||
this.colProductRemaining.FillWeight = 30F;
|
||||
this.colProductRemaining.HeaderText = "选品限额";
|
||||
this.colProductRemaining.Name = "colProductRemaining";
|
||||
this.colProductRemaining.ReadOnly = true;
|
||||
this.colProductRemaining.Visible = false;
|
||||
//
|
||||
// colPlus
|
||||
//
|
||||
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.colPlus.DefaultCellStyle = dataGridViewCellStyle5;
|
||||
dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.colPlus.DefaultCellStyle = dataGridViewCellStyle10;
|
||||
this.colPlus.FillWeight = 15F;
|
||||
this.colPlus.HeaderText = "+";
|
||||
this.colPlus.Name = "colPlus";
|
||||
this.colPlus.ReadOnly = true;
|
||||
this.colPlus.Visible = false;
|
||||
//
|
||||
// colCookie
|
||||
//
|
||||
@@ -848,6 +892,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
this.ClientSize = new System.Drawing.Size(1273, 610);
|
||||
this.Controls.Add(this.splitContainer1);
|
||||
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.KeyPreview = true;
|
||||
this.Name = "PDDAdminShopListForm";
|
||||
this.Text = "AdminShopForm";
|
||||
this.Load += new System.EventHandler(this.AdminShopForm_Load);
|
||||
@@ -911,6 +956,8 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
private DevComponents.DotNetBar.PanelEx btnRemainOK;
|
||||
private DevComponents.DotNetBar.PanelEx pnlCancel;
|
||||
private System.Windows.Forms.Label lblShopId;
|
||||
public System.Windows.Forms.Label lblAddToAccount;
|
||||
public DevComponents.DotNetBar.PanelEx btnAddToAccount;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colLoginName;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colShopId;
|
||||
|
||||
@@ -27,6 +27,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
public partial class PDDAdminShopListForm : BaseForm
|
||||
{
|
||||
static PDDAdminShopListForm inst = null;
|
||||
public SubAccountInfo UserAccountInfo { get; set; } = null;
|
||||
public static PDDAdminShopListForm Instance
|
||||
{
|
||||
get { if (inst == null) inst = new PDDAdminShopListForm(); return inst; }
|
||||
@@ -61,6 +62,11 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
dgvShop.Columns["colSubSa"].Visible = false;
|
||||
btnSetSubSa.Visible = false;
|
||||
}
|
||||
|
||||
if (UserAccountInfo != null)
|
||||
{
|
||||
this.lblAddToAccount.Text = "当前指定账号:" + UserAccountInfo.user_name + "(" + UserAccountInfo.nick_name + ")";
|
||||
}
|
||||
}
|
||||
|
||||
bool firstLoad = true;
|
||||
@@ -648,5 +654,73 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
{
|
||||
this.pnlAddProdRemaining.Visible = false;
|
||||
}
|
||||
|
||||
private void btnAddToAccount_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (UserAccountInfo != null)
|
||||
{
|
||||
List<string> shopLoginNameList = GetCheckedList().Distinct().ToList();
|
||||
if (!shopLoginNameList.Any())
|
||||
{
|
||||
BaseMsgForm.ShowError("请选择需要添加的店铺");
|
||||
IsOperate = false;
|
||||
return;
|
||||
}
|
||||
|
||||
this.pbLoading.Visible = true;
|
||||
this.statusBar.lblTaskStatus.Text = "正在添加...";
|
||||
this.statusBar.pgbTaskProgress.Maximum = shopLoginNameList.Count;
|
||||
this.statusBar.UpdateProgressBar(0);
|
||||
|
||||
Task.Run(() =>
|
||||
{
|
||||
int successCount = 0;
|
||||
int failCount = 0;
|
||||
int totalCount = shopLoginNameList.Count;
|
||||
foreach (var shopLoginName in shopLoginNameList)
|
||||
{
|
||||
var shop = lstAdminShopInfo.FirstOrDefault(s => s.LoginName == shopLoginName);
|
||||
if (shop == null)
|
||||
continue;
|
||||
|
||||
var url = BaseClass.BuildObjString("shop/admin_add_shop");
|
||||
var data = UserLogin.GetSignaturex() +
|
||||
"&shop_user_name=" + UserAccountInfo.user_name +
|
||||
"&login_name=" + shop.LoginName +
|
||||
"&login_pass=" + shop.Password +
|
||||
"&cookie=" + shop.Cookies +
|
||||
"&cookie2=" + shop.Cookies2 +
|
||||
"&shop_id=" + shop.ShopId +
|
||||
"&shop_account=" + shop.ShopAccount;
|
||||
var html = "";
|
||||
for (int i = 0; i < 3 && !html.Contains("\"code\":200"); i++)
|
||||
{
|
||||
html = GetHtml.PostUtf8(url, data);
|
||||
if (html.Contains("已存在"))
|
||||
break;
|
||||
}
|
||||
|
||||
if (html.Contains("\"code\":200") || html.Contains("已存在"))
|
||||
successCount++;
|
||||
else
|
||||
failCount++;
|
||||
Thread.Sleep(100);
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
this.statusBar.UpdateProgressBar(statusBar.pgbTaskProgress.Value + 1);
|
||||
this.statusBar.UpdateProgressBarStatus("正在添加... 总计:" + totalCount + " 成功:" + successCount + " 失败:" + failCount);
|
||||
}));
|
||||
}
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
this.pbLoading.Visible = false;
|
||||
BaseMsgForm.ShowInfo("添加完成!");
|
||||
this.statusBar.FinishProgressBar("添加完成 总计:" + totalCount + " 成功:" + successCount + " 失败:" + failCount);
|
||||
}));
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user