diff --git a/AllBase/GetHtml.cs b/AllBase/GetHtml.cs
index 6406e95..453a095 100644
--- a/AllBase/GetHtml.cs
+++ b/AllBase/GetHtml.cs
@@ -1174,6 +1174,15 @@ Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrom
{
return await PostUtf8Async(url, postData, contentType: "application/json", timeOut: timeOut);
}
+ public static string PostJson(string url, object postData, int? timeOut = null)
+ {
+ return PostUtf8(url, JsonHelper.SerializeObject(postData), contentType: "application/json", timeOut: timeOut);
+ }
+ public static string PostJson(string url, string postData, int? timeOut = null)
+ {
+ return PostUtf8(url, postData, contentType: "application/json", timeOut: timeOut);
+ }
+
///
/// post 数据
///
diff --git a/AllBase/Model/Result/ShopLoginInfo.cs b/AllBase/Model/Result/ShopLoginInfo.cs
index 639c0be..7cb8279 100644
--- a/AllBase/Model/Result/ShopLoginInfo.cs
+++ b/AllBase/Model/Result/ShopLoginInfo.cs
@@ -228,7 +228,12 @@ namespace AllBase.Model.Result
/// 遇到需要终止上货的提示词的重试次数。
///
public int upLimitRetryCount { get; set; } = 0;
- }
+ ///
+ /// 是否永不过期
+ ///
+ public bool never_expires { get; set; }
+
+ }
public class AuthInfo
{
diff --git a/TEMUKJD/BLL/ShopBLL.cs b/TEMUKJD/BLL/ShopBLL.cs
index 142d886..e2fba3c 100644
--- a/TEMUKJD/BLL/ShopBLL.cs
+++ b/TEMUKJD/BLL/ShopBLL.cs
@@ -296,8 +296,8 @@ namespace TemuKJD.BLL
shop.AddTime = BaseRegex.GetStringJson(ref shopStr, "add_time") == null ? DateTime.MinValue : Convert.ToDateTime(BaseRegex.GetStringJson(ref shopStr, "add_time"));
shop.is_point_shop_expire = BaseRegex.GetBoolJson(ref shopStr, "is_point_shop_expire");
shop.expire_time = BaseRegex.GetIntJson(ref shopStr, "expire_time");
-
- if (BaseClass.MainPath == "29pdd")
+ shop.never_expires = BaseRegex.GetBoolJson(ref shopStr, "never_expires");
+ if (BaseClass.MainPath == "29pdd")
{
shop.AntiContents.Clear();
//shop.AntiContents.AddRange(JsonHelper.DeserializeJsonToList(jObj["anti_contents"].IsNullOrEmpty() ? "[]" : jObj["anti_contents"].ToString()));
diff --git a/TEMUKJD/WXForms/AdminForms/WXAdminShopListForm.Designer.cs b/TEMUKJD/WXForms/AdminForms/WXAdminShopListForm.Designer.cs
index e540dcc..5ab6925 100644
--- a/TEMUKJD/WXForms/AdminForms/WXAdminShopListForm.Designer.cs
+++ b/TEMUKJD/WXForms/AdminForms/WXAdminShopListForm.Designer.cs
@@ -29,604 +29,605 @@ namespace TemuKJD.WXForms.AdminForms
///
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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WXAdminShopListForm));
- this.splitContainer1 = new System.Windows.Forms.SplitContainer();
- this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
- this.panel5 = new System.Windows.Forms.Panel();
- this.btnLoginSelect = new DevComponents.DotNetBar.PanelEx();
- this.chkShowDelete = new System.Windows.Forms.CheckBox();
- this.btnCheck = new DevComponents.DotNetBar.PanelEx();
- this.panel4 = new System.Windows.Forms.Panel();
- this.lblAddToAccount = new System.Windows.Forms.Label();
- this.btnAddToAccount = new DevComponents.DotNetBar.PanelEx();
- this.btnSearch = new DevComponents.DotNetBar.PanelEx();
- this.txtUserName = new System.Windows.Forms.TextBox();
- this.label5 = new System.Windows.Forms.Label();
- this.txtLoginName = new System.Windows.Forms.TextBox();
- this.label1 = new System.Windows.Forms.Label();
- this.btnEmpty = new DevComponents.DotNetBar.PanelEx();
- this.txtNotes = new System.Windows.Forms.TextBox();
- this.label4 = new System.Windows.Forms.Label();
- this.txtShopName = new System.Windows.Forms.TextBox();
- this.label3 = new System.Windows.Forms.Label();
- this.txtShopId = new System.Windows.Forms.TextBox();
- this.label2 = new System.Windows.Forms.Label();
- this.splitContainer2 = new System.Windows.Forms.SplitContainer();
- this.btnSetSubSa = new DevComponents.DotNetBar.PanelEx();
- this.btnExportShopErp = new DevComponents.DotNetBar.PanelEx();
- this.pbLoading = new System.Windows.Forms.PictureBox();
- this.pnlAddProdRemaining = new System.Windows.Forms.Panel();
- this.lblShopId = new System.Windows.Forms.Label();
- this.panel2 = new System.Windows.Forms.Panel();
- this.btnCancel = new DevComponents.DotNetBar.PanelEx();
- this.numAddRemaining = new System.Windows.Forms.NumericUpDown();
- this.btnRemainOK = new DevComponents.DotNetBar.PanelEx();
- this.lblAddProdRemaining = new System.Windows.Forms.Label();
- this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx();
- this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
- this.colLoginName = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.colShopAccount = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.colNotes = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.colGroupName = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.colMinus = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.colProductRemaining = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.colPlus = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.colCookie = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.colUser = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.colSubUser = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.colUploadAccount = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.colBuyAccount = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.colChatAccount = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.colLoginStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.colGotoShop = new System.Windows.Forms.DataGridViewLinkColumn();
- this.colShopOperate = new System.Windows.Forms.DataGridViewLinkColumn();
- this.colRelogin = new System.Windows.Forms.DataGridViewLinkColumn();
- this.colRelogin2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.colBuyApi = new System.Windows.Forms.DataGridViewLinkColumn();
- this.colMultiLogin = new System.Windows.Forms.DataGridViewLinkColumn();
- this.colApiAuth = new System.Windows.Forms.DataGridViewLinkColumn();
- this.colBuyApiAuth = new System.Windows.Forms.DataGridViewLinkColumn();
- this.colImportCookies = new System.Windows.Forms.DataGridViewLinkColumn();
- this.colCopyCookies = new System.Windows.Forms.DataGridViewLinkColumn();
- this.colUpload = new System.Windows.Forms.DataGridViewLinkColumn();
- this.colSubSa = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.colEdit = new System.Windows.Forms.DataGridViewLinkColumn();
- this.colDelete = new System.Windows.Forms.DataGridViewLinkColumn();
- this.colMsg = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.chkAutoDrag = new System.Windows.Forms.CheckBox();
- this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
- this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
- this.panel3 = new System.Windows.Forms.Panel();
- ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
- this.splitContainer1.Panel1.SuspendLayout();
- this.splitContainer1.Panel2.SuspendLayout();
- this.splitContainer1.SuspendLayout();
- this.tableLayoutPanel2.SuspendLayout();
- this.panel5.SuspendLayout();
- this.panel4.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
- this.splitContainer2.Panel1.SuspendLayout();
- this.splitContainer2.Panel2.SuspendLayout();
- this.splitContainer2.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.pbLoading)).BeginInit();
- this.pnlAddProdRemaining.SuspendLayout();
- this.panel2.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.numAddRemaining)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.dgvShop)).BeginInit();
- this.panel3.SuspendLayout();
- this.SuspendLayout();
- //
- // splitContainer1
- //
- this.splitContainer1.BackColor = System.Drawing.Color.White;
- this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
- this.splitContainer1.Location = new System.Drawing.Point(0, 0);
- this.splitContainer1.Name = "splitContainer1";
- this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
- //
- // splitContainer1.Panel1
- //
- this.splitContainer1.Panel1.Controls.Add(this.tableLayoutPanel2);
- //
- // splitContainer1.Panel2
- //
- this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
- this.splitContainer1.Panel2.Margin = new System.Windows.Forms.Padding(4);
- this.splitContainer1.Size = new System.Drawing.Size(1271, 576);
- this.splitContainer1.SplitterDistance = 84;
- this.splitContainer1.TabIndex = 34;
- //
- // tableLayoutPanel2
- //
- this.tableLayoutPanel2.ColumnCount = 2;
- this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
- this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
- this.tableLayoutPanel2.Controls.Add(this.panel5, 1, 0);
- this.tableLayoutPanel2.Controls.Add(this.panel4, 0, 0);
- this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
- this.tableLayoutPanel2.Location = new System.Drawing.Point(0, 0);
- 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(1271, 84);
- this.tableLayoutPanel2.TabIndex = 37;
- //
- // panel5
- //
- this.panel5.Controls.Add(this.btnLoginSelect);
- this.panel5.Controls.Add(this.chkShowDelete);
- this.panel5.Controls.Add(this.btnCheck);
- this.panel5.Location = new System.Drawing.Point(1008, 3);
- this.panel5.Name = "panel5";
- this.panel5.Size = new System.Drawing.Size(260, 40);
- this.panel5.TabIndex = 1;
- //
- // btnLoginSelect
- //
- this.btnLoginSelect.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.btnLoginSelect.Cursor = System.Windows.Forms.Cursors.Hand;
- this.btnLoginSelect.DisabledBackColor = System.Drawing.Color.Empty;
- this.btnLoginSelect.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.btnLoginSelect.Location = new System.Drawing.Point(192, 12);
- this.btnLoginSelect.Name = "btnLoginSelect";
- this.btnLoginSelect.Size = new System.Drawing.Size(66, 23);
- this.btnLoginSelect.Style.Alignment = System.Drawing.StringAlignment.Center;
- this.btnLoginSelect.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- this.btnLoginSelect.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- this.btnLoginSelect.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
- this.btnLoginSelect.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
- this.btnLoginSelect.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
- this.btnLoginSelect.Style.ForeColor.Color = System.Drawing.Color.White;
- this.btnLoginSelect.Style.GradientAngle = 90;
- this.btnLoginSelect.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
- this.btnLoginSelect.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
- this.btnLoginSelect.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
- this.btnLoginSelect.TabIndex = 467;
- this.btnLoginSelect.Text = "检测选中";
- this.btnLoginSelect.Click += new System.EventHandler(this.btnLoginSelect_Click);
- //
- // chkShowDelete
- //
- this.chkShowDelete.Anchor = System.Windows.Forms.AnchorStyles.Right;
- this.chkShowDelete.AutoSize = true;
- this.chkShowDelete.BackColor = System.Drawing.Color.White;
- this.chkShowDelete.Location = new System.Drawing.Point(29, 13);
- this.chkShowDelete.Name = "chkShowDelete";
- this.chkShowDelete.Size = new System.Drawing.Size(87, 21);
- this.chkShowDelete.TabIndex = 374;
- this.chkShowDelete.Text = "显示操作栏";
- this.chkShowDelete.UseVisualStyleBackColor = false;
- this.chkShowDelete.CheckedChanged += new System.EventHandler(this.chkShowDelete_CheckedChanged);
- //
- // btnCheck
- //
- this.btnCheck.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.btnCheck.Cursor = System.Windows.Forms.Cursors.Hand;
- this.btnCheck.DisabledBackColor = System.Drawing.Color.Empty;
- this.btnCheck.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.btnCheck.Location = new System.Drawing.Point(122, 12);
- this.btnCheck.Name = "btnCheck";
- this.btnCheck.Size = new System.Drawing.Size(66, 23);
- this.btnCheck.Style.Alignment = System.Drawing.StringAlignment.Center;
- this.btnCheck.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- this.btnCheck.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- this.btnCheck.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
- this.btnCheck.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
- this.btnCheck.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
- this.btnCheck.Style.ForeColor.Color = System.Drawing.Color.White;
- this.btnCheck.Style.GradientAngle = 90;
- this.btnCheck.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
- this.btnCheck.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
- this.btnCheck.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
- this.btnCheck.TabIndex = 463;
- this.btnCheck.Text = "检测选中";
- this.btnCheck.Click += new System.EventHandler(this.btnCheck_Click);
- //
- // panel4
- //
- this.panel4.Controls.Add(this.lblAddToAccount);
- this.panel4.Controls.Add(this.btnAddToAccount);
- this.panel4.Controls.Add(this.btnSearch);
- this.panel4.Controls.Add(this.txtUserName);
- this.panel4.Controls.Add(this.label5);
- this.panel4.Controls.Add(this.txtLoginName);
- this.panel4.Controls.Add(this.label1);
- this.panel4.Controls.Add(this.btnEmpty);
- this.panel4.Controls.Add(this.txtNotes);
- this.panel4.Controls.Add(this.label4);
- this.panel4.Controls.Add(this.txtShopName);
- this.panel4.Controls.Add(this.label3);
- this.panel4.Controls.Add(this.txtShopId);
- this.panel4.Controls.Add(this.label2);
- 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(999, 78);
- this.panel4.TabIndex = 0;
- //
- // lblAddToAccount
- //
- this.lblAddToAccount.AutoSize = true;
- this.lblAddToAccount.Location = new System.Drawing.Point(764, 15);
- this.lblAddToAccount.Name = "lblAddToAccount";
- this.lblAddToAccount.Size = new System.Drawing.Size(68, 17);
- this.lblAddToAccount.TabIndex = 456;
- this.lblAddToAccount.Text = "指定账号:";
- this.lblAddToAccount.Visible = false;
- this.lblAddToAccount.Click += new System.EventHandler(this.lblAddToAccount_Click);
- //
- // 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(607, 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 = 453;
- this.btnAddToAccount.Text = "选中店铺添加到指定账号";
- this.btnAddToAccount.Visible = false;
- this.btnAddToAccount.Click += new System.EventHandler(this.btnAddToAccount_Click);
- //
- // btnSearch
- //
- this.btnSearch.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.btnSearch.Cursor = System.Windows.Forms.Cursors.Hand;
- this.btnSearch.DisabledBackColor = System.Drawing.Color.Empty;
- this.btnSearch.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.btnSearch.Location = new System.Drawing.Point(441, 12);
- this.btnSearch.Name = "btnSearch";
- this.btnSearch.Size = new System.Drawing.Size(56, 23);
- this.btnSearch.Style.Alignment = System.Drawing.StringAlignment.Center;
- this.btnSearch.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- this.btnSearch.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- this.btnSearch.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
- this.btnSearch.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
- this.btnSearch.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
- this.btnSearch.Style.ForeColor.Color = System.Drawing.Color.White;
- this.btnSearch.Style.GradientAngle = 90;
- this.btnSearch.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
- this.btnSearch.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
- this.btnSearch.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
- this.btnSearch.TabIndex = 449;
- this.btnSearch.Text = "搜索";
- this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
- //
- // txtUserName
- //
- this.txtUserName.Location = new System.Drawing.Point(57, 12);
- this.txtUserName.Name = "txtUserName";
- this.txtUserName.Size = new System.Drawing.Size(90, 23);
- this.txtUserName.TabIndex = 419;
- //
- // label5
- //
- this.label5.AutoSize = true;
- this.label5.Location = new System.Drawing.Point(24, 15);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(44, 17);
- this.label5.TabIndex = 420;
- this.label5.Text = "账户:";
- //
- // txtLoginName
- //
- this.txtLoginName.Location = new System.Drawing.Point(208, 12);
- this.txtLoginName.Name = "txtLoginName";
- this.txtLoginName.Size = new System.Drawing.Size(90, 23);
- this.txtLoginName.TabIndex = 417;
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(151, 15);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(68, 17);
- this.label1.TabIndex = 418;
- this.label1.Text = "登录号码:";
- //
- // btnEmpty
- //
- this.btnEmpty.CanvasColor = System.Drawing.SystemColors.Control;
- this.btnEmpty.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.btnEmpty.DisabledBackColor = System.Drawing.Color.Empty;
- this.btnEmpty.Location = new System.Drawing.Point(502, 12);
- this.btnEmpty.Name = "btnEmpty";
- this.btnEmpty.Size = new System.Drawing.Size(56, 23);
- this.btnEmpty.Style.Alignment = System.Drawing.StringAlignment.Center;
- this.btnEmpty.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
- this.btnEmpty.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
- this.btnEmpty.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
- this.btnEmpty.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- this.btnEmpty.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
- this.btnEmpty.Style.GradientAngle = 90;
- this.btnEmpty.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
- this.btnEmpty.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
- this.btnEmpty.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- this.btnEmpty.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- this.btnEmpty.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
- this.btnEmpty.TabIndex = 413;
- this.btnEmpty.Text = "清空条件";
- this.btnEmpty.Click += new System.EventHandler(this.pnlEmpty_Click);
- //
- // txtNotes
- //
- this.txtNotes.Location = new System.Drawing.Point(208, 41);
- this.txtNotes.Name = "txtNotes";
- this.txtNotes.Size = new System.Drawing.Size(90, 23);
- this.txtNotes.TabIndex = 376;
- //
- // label4
- //
- this.label4.AutoSize = true;
- this.label4.Location = new System.Drawing.Point(175, 44);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(44, 17);
- this.label4.TabIndex = 377;
- this.label4.Text = "备注:";
- //
- // txtShopName
- //
- this.txtShopName.Location = new System.Drawing.Point(57, 41);
- this.txtShopName.Name = "txtShopName";
- this.txtShopName.Size = new System.Drawing.Size(90, 23);
- this.txtShopName.TabIndex = 374;
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Location = new System.Drawing.Point(12, 44);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(56, 17);
- this.label3.TabIndex = 375;
- this.label3.Text = "店铺名:";
- //
- // txtShopId
- //
- this.txtShopId.Location = new System.Drawing.Point(346, 12);
- this.txtShopId.Name = "txtShopId";
- this.txtShopId.Size = new System.Drawing.Size(90, 23);
- this.txtShopId.TabIndex = 372;
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.Location = new System.Drawing.Point(302, 15);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(55, 17);
- this.label2.TabIndex = 373;
- this.label2.Text = "店铺id:";
- //
- // splitContainer2
- //
- this.splitContainer2.BackColor = System.Drawing.Color.White;
- this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
- this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
- this.splitContainer2.Location = new System.Drawing.Point(0, 0);
- this.splitContainer2.Name = "splitContainer2";
- this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;
- //
- // splitContainer2.Panel1
- //
- this.splitContainer2.Panel1.BackColor = System.Drawing.Color.White;
- this.splitContainer2.Panel1.Controls.Add(this.btnSetSubSa);
- this.splitContainer2.Panel1.Controls.Add(this.btnExportShopErp);
- this.splitContainer2.Panel1.Controls.Add(this.pbLoading);
- this.splitContainer2.Panel1.Controls.Add(this.pnlAddProdRemaining);
- this.splitContainer2.Panel1.Controls.Add(this.dgvShop);
- this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 4, 0);
- //
- // splitContainer2.Panel2
- //
- 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(1271, 488);
- this.splitContainer2.SplitterDistance = 459;
- this.splitContainer2.TabIndex = 0;
- //
- // btnSetSubSa
- //
- this.btnSetSubSa.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.btnSetSubSa.Cursor = System.Windows.Forms.Cursors.Hand;
- this.btnSetSubSa.DisabledBackColor = System.Drawing.Color.Empty;
- this.btnSetSubSa.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.btnSetSubSa.Location = new System.Drawing.Point(192, 51);
- this.btnSetSubSa.Name = "btnSetSubSa";
- this.btnSetSubSa.Size = new System.Drawing.Size(93, 23);
- this.btnSetSubSa.Style.Alignment = System.Drawing.StringAlignment.Center;
- this.btnSetSubSa.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- this.btnSetSubSa.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- this.btnSetSubSa.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
- this.btnSetSubSa.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
- this.btnSetSubSa.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
- this.btnSetSubSa.Style.ForeColor.Color = System.Drawing.Color.White;
- this.btnSetSubSa.Style.GradientAngle = 90;
- this.btnSetSubSa.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
- this.btnSetSubSa.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
- this.btnSetSubSa.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
- this.btnSetSubSa.TabIndex = 453;
- this.btnSetSubSa.Text = "分配二级超管";
- this.btnSetSubSa.Visible = false;
- this.btnSetSubSa.Click += new System.EventHandler(this.btnSetSubSa_Click);
- //
- // btnExportShopErp
- //
- this.btnExportShopErp.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.btnExportShopErp.Cursor = System.Windows.Forms.Cursors.Hand;
- this.btnExportShopErp.DisabledBackColor = System.Drawing.Color.Empty;
- this.btnExportShopErp.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.btnExportShopErp.Location = new System.Drawing.Point(30, 51);
- this.btnExportShopErp.Name = "btnExportShopErp";
- this.btnExportShopErp.Size = new System.Drawing.Size(140, 23);
- this.btnExportShopErp.Style.Alignment = System.Drawing.StringAlignment.Center;
- this.btnExportShopErp.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- this.btnExportShopErp.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- this.btnExportShopErp.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
- this.btnExportShopErp.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
- this.btnExportShopErp.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
- this.btnExportShopErp.Style.ForeColor.Color = System.Drawing.Color.White;
- this.btnExportShopErp.Style.GradientAngle = 90;
- this.btnExportShopErp.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
- this.btnExportShopErp.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
- this.btnExportShopErp.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
- this.btnExportShopErp.TabIndex = 435;
- this.btnExportShopErp.Text = "导出店铺到后台系统";
- this.btnExportShopErp.Visible = false;
- this.btnExportShopErp.Click += new System.EventHandler(this.btnExportShopErp_Click);
- //
- // 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(610, 204);
- this.pbLoading.Name = "pbLoading";
- this.pbLoading.Size = new System.Drawing.Size(50, 50);
- this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
- this.pbLoading.TabIndex = 6;
- this.pbLoading.TabStop = false;
- //
- // pnlAddProdRemaining
- //
- this.pnlAddProdRemaining.Anchor = System.Windows.Forms.AnchorStyles.None;
- this.pnlAddProdRemaining.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- 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(398, 34);
- this.pnlAddProdRemaining.Name = "pnlAddProdRemaining";
- this.pnlAddProdRemaining.Size = new System.Drawing.Size(474, 146);
- this.pnlAddProdRemaining.TabIndex = 7;
- this.pnlAddProdRemaining.Visible = false;
- //
- // lblShopId
- //
- this.lblShopId.AutoSize = true;
- this.lblShopId.Location = new System.Drawing.Point(20, 19);
- this.lblShopId.Name = "lblShopId";
- this.lblShopId.Size = new System.Drawing.Size(50, 17);
- this.lblShopId.TabIndex = 455;
- this.lblShopId.Text = "ShopId";
- this.lblShopId.Visible = false;
- //
- // panel2
- //
- this.panel2.Anchor = System.Windows.Forms.AnchorStyles.Top;
- this.panel2.Controls.Add(this.btnCancel);
- this.panel2.Controls.Add(this.numAddRemaining);
- this.panel2.Controls.Add(this.btnRemainOK);
- this.panel2.Location = new System.Drawing.Point(23, 80);
- this.panel2.Name = "panel2";
- this.panel2.Size = new System.Drawing.Size(424, 29);
- this.panel2.TabIndex = 454;
- //
- // 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(273, 2);
- this.btnCancel.Name = "btnCancel";
- this.btnCancel.Size = new System.Drawing.Size(56, 24);
- 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 = 458;
- this.btnCancel.Text = "取消";
- this.btnCancel.Click += new System.EventHandler(this.pnlCancel_Click);
- //
- // numAddRemaining
- //
- this.numAddRemaining.Location = new System.Drawing.Point(93, 3);
- this.numAddRemaining.Maximum = new decimal(new int[] {
+ 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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WXAdminShopListForm));
+ this.splitContainer1 = new System.Windows.Forms.SplitContainer();
+ this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
+ this.panel5 = new System.Windows.Forms.Panel();
+ this.btnLoginSelect = new DevComponents.DotNetBar.PanelEx();
+ this.chkShowDelete = new System.Windows.Forms.CheckBox();
+ this.btnCheck = new DevComponents.DotNetBar.PanelEx();
+ this.panel4 = new System.Windows.Forms.Panel();
+ this.lblAddToAccount = new System.Windows.Forms.Label();
+ this.btnAddToAccount = new DevComponents.DotNetBar.PanelEx();
+ this.btnSearch = new DevComponents.DotNetBar.PanelEx();
+ this.txtUserName = new System.Windows.Forms.TextBox();
+ this.label5 = new System.Windows.Forms.Label();
+ this.txtLoginName = new System.Windows.Forms.TextBox();
+ this.label1 = new System.Windows.Forms.Label();
+ this.btnEmpty = new DevComponents.DotNetBar.PanelEx();
+ this.txtNotes = new System.Windows.Forms.TextBox();
+ this.label4 = new System.Windows.Forms.Label();
+ this.txtShopName = new System.Windows.Forms.TextBox();
+ this.label3 = new System.Windows.Forms.Label();
+ this.txtShopId = new System.Windows.Forms.TextBox();
+ this.label2 = new System.Windows.Forms.Label();
+ this.splitContainer2 = new System.Windows.Forms.SplitContainer();
+ this.btnSetSubSa = new DevComponents.DotNetBar.PanelEx();
+ this.btnExportShopErp = new DevComponents.DotNetBar.PanelEx();
+ this.pbLoading = new System.Windows.Forms.PictureBox();
+ this.pnlAddProdRemaining = new System.Windows.Forms.Panel();
+ this.lblShopId = new System.Windows.Forms.Label();
+ this.panel2 = new System.Windows.Forms.Panel();
+ this.btnCancel = new DevComponents.DotNetBar.PanelEx();
+ this.numAddRemaining = new System.Windows.Forms.NumericUpDown();
+ this.btnRemainOK = new DevComponents.DotNetBar.PanelEx();
+ this.lblAddProdRemaining = new System.Windows.Forms.Label();
+ this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx();
+ this.chkAutoDrag = new System.Windows.Forms.CheckBox();
+ this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
+ this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
+ this.panel3 = new System.Windows.Forms.Panel();
+ this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+ this.colLoginName = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colShopAccount = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colNotes = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colGroupName = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colMinus = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colProductRemaining = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colPlus = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colCookie = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colUser = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colSubUser = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colUploadAccount = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colBuyAccount = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colChatAccount = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colLoginStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colGotoShop = new System.Windows.Forms.DataGridViewLinkColumn();
+ this.colShopOperate = new System.Windows.Forms.DataGridViewLinkColumn();
+ this.colRelogin = new System.Windows.Forms.DataGridViewLinkColumn();
+ this.colRelogin2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colBuyApi = new System.Windows.Forms.DataGridViewLinkColumn();
+ this.colMultiLogin = new System.Windows.Forms.DataGridViewLinkColumn();
+ this.colApiAuth = new System.Windows.Forms.DataGridViewLinkColumn();
+ this.colBuyApiAuth = new System.Windows.Forms.DataGridViewLinkColumn();
+ this.colImportCookies = new System.Windows.Forms.DataGridViewLinkColumn();
+ this.colCopyCookies = new System.Windows.Forms.DataGridViewLinkColumn();
+ this.colUpload = new System.Windows.Forms.DataGridViewLinkColumn();
+ this.colSubSa = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.col_never_expires = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+ this.colEdit = new System.Windows.Forms.DataGridViewLinkColumn();
+ this.colDelete = new System.Windows.Forms.DataGridViewLinkColumn();
+ this.colMsg = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
+ this.splitContainer1.Panel1.SuspendLayout();
+ this.splitContainer1.Panel2.SuspendLayout();
+ this.splitContainer1.SuspendLayout();
+ this.tableLayoutPanel2.SuspendLayout();
+ this.panel5.SuspendLayout();
+ this.panel4.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
+ this.splitContainer2.Panel1.SuspendLayout();
+ this.splitContainer2.Panel2.SuspendLayout();
+ this.splitContainer2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pbLoading)).BeginInit();
+ this.pnlAddProdRemaining.SuspendLayout();
+ this.panel2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.numAddRemaining)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvShop)).BeginInit();
+ this.panel3.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // splitContainer1
+ //
+ this.splitContainer1.BackColor = System.Drawing.Color.White;
+ this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
+ this.splitContainer1.Location = new System.Drawing.Point(0, 0);
+ this.splitContainer1.Name = "splitContainer1";
+ this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
+ //
+ // splitContainer1.Panel1
+ //
+ this.splitContainer1.Panel1.Controls.Add(this.tableLayoutPanel2);
+ //
+ // splitContainer1.Panel2
+ //
+ this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
+ this.splitContainer1.Panel2.Margin = new System.Windows.Forms.Padding(4);
+ this.splitContainer1.Size = new System.Drawing.Size(1271, 576);
+ this.splitContainer1.SplitterDistance = 84;
+ this.splitContainer1.TabIndex = 34;
+ //
+ // tableLayoutPanel2
+ //
+ this.tableLayoutPanel2.ColumnCount = 2;
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
+ this.tableLayoutPanel2.Controls.Add(this.panel5, 1, 0);
+ this.tableLayoutPanel2.Controls.Add(this.panel4, 0, 0);
+ this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tableLayoutPanel2.Location = new System.Drawing.Point(0, 0);
+ 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(1271, 84);
+ this.tableLayoutPanel2.TabIndex = 37;
+ //
+ // panel5
+ //
+ this.panel5.Controls.Add(this.btnLoginSelect);
+ this.panel5.Controls.Add(this.chkShowDelete);
+ this.panel5.Controls.Add(this.btnCheck);
+ this.panel5.Location = new System.Drawing.Point(1008, 3);
+ this.panel5.Name = "panel5";
+ this.panel5.Size = new System.Drawing.Size(260, 40);
+ this.panel5.TabIndex = 1;
+ //
+ // btnLoginSelect
+ //
+ this.btnLoginSelect.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnLoginSelect.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnLoginSelect.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnLoginSelect.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnLoginSelect.Location = new System.Drawing.Point(192, 12);
+ this.btnLoginSelect.Name = "btnLoginSelect";
+ this.btnLoginSelect.Size = new System.Drawing.Size(66, 23);
+ this.btnLoginSelect.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnLoginSelect.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnLoginSelect.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnLoginSelect.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
+ this.btnLoginSelect.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
+ this.btnLoginSelect.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
+ this.btnLoginSelect.Style.ForeColor.Color = System.Drawing.Color.White;
+ this.btnLoginSelect.Style.GradientAngle = 90;
+ this.btnLoginSelect.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnLoginSelect.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnLoginSelect.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnLoginSelect.TabIndex = 467;
+ this.btnLoginSelect.Text = "检测选中";
+ this.btnLoginSelect.Click += new System.EventHandler(this.btnLoginSelect_Click);
+ //
+ // chkShowDelete
+ //
+ this.chkShowDelete.Anchor = System.Windows.Forms.AnchorStyles.Right;
+ this.chkShowDelete.AutoSize = true;
+ this.chkShowDelete.BackColor = System.Drawing.Color.White;
+ this.chkShowDelete.Location = new System.Drawing.Point(29, 13);
+ this.chkShowDelete.Name = "chkShowDelete";
+ this.chkShowDelete.Size = new System.Drawing.Size(87, 21);
+ this.chkShowDelete.TabIndex = 374;
+ this.chkShowDelete.Text = "显示操作栏";
+ this.chkShowDelete.UseVisualStyleBackColor = false;
+ this.chkShowDelete.CheckedChanged += new System.EventHandler(this.chkShowDelete_CheckedChanged);
+ //
+ // btnCheck
+ //
+ this.btnCheck.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnCheck.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnCheck.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnCheck.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnCheck.Location = new System.Drawing.Point(122, 12);
+ this.btnCheck.Name = "btnCheck";
+ this.btnCheck.Size = new System.Drawing.Size(66, 23);
+ this.btnCheck.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnCheck.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnCheck.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnCheck.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
+ this.btnCheck.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
+ this.btnCheck.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
+ this.btnCheck.Style.ForeColor.Color = System.Drawing.Color.White;
+ this.btnCheck.Style.GradientAngle = 90;
+ this.btnCheck.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnCheck.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnCheck.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnCheck.TabIndex = 463;
+ this.btnCheck.Text = "检测选中";
+ this.btnCheck.Click += new System.EventHandler(this.btnCheck_Click);
+ //
+ // panel4
+ //
+ this.panel4.Controls.Add(this.lblAddToAccount);
+ this.panel4.Controls.Add(this.btnAddToAccount);
+ this.panel4.Controls.Add(this.btnSearch);
+ this.panel4.Controls.Add(this.txtUserName);
+ this.panel4.Controls.Add(this.label5);
+ this.panel4.Controls.Add(this.txtLoginName);
+ this.panel4.Controls.Add(this.label1);
+ this.panel4.Controls.Add(this.btnEmpty);
+ this.panel4.Controls.Add(this.txtNotes);
+ this.panel4.Controls.Add(this.label4);
+ this.panel4.Controls.Add(this.txtShopName);
+ this.panel4.Controls.Add(this.label3);
+ this.panel4.Controls.Add(this.txtShopId);
+ this.panel4.Controls.Add(this.label2);
+ 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(999, 78);
+ this.panel4.TabIndex = 0;
+ //
+ // lblAddToAccount
+ //
+ this.lblAddToAccount.AutoSize = true;
+ this.lblAddToAccount.Location = new System.Drawing.Point(764, 15);
+ this.lblAddToAccount.Name = "lblAddToAccount";
+ this.lblAddToAccount.Size = new System.Drawing.Size(68, 17);
+ this.lblAddToAccount.TabIndex = 456;
+ this.lblAddToAccount.Text = "指定账号:";
+ this.lblAddToAccount.Visible = false;
+ this.lblAddToAccount.Click += new System.EventHandler(this.lblAddToAccount_Click);
+ //
+ // 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(607, 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 = 453;
+ this.btnAddToAccount.Text = "选中店铺添加到指定账号";
+ this.btnAddToAccount.Visible = false;
+ this.btnAddToAccount.Click += new System.EventHandler(this.btnAddToAccount_Click);
+ //
+ // btnSearch
+ //
+ this.btnSearch.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnSearch.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnSearch.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnSearch.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnSearch.Location = new System.Drawing.Point(441, 12);
+ this.btnSearch.Name = "btnSearch";
+ this.btnSearch.Size = new System.Drawing.Size(56, 23);
+ this.btnSearch.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnSearch.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnSearch.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnSearch.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
+ this.btnSearch.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
+ this.btnSearch.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
+ this.btnSearch.Style.ForeColor.Color = System.Drawing.Color.White;
+ this.btnSearch.Style.GradientAngle = 90;
+ this.btnSearch.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnSearch.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnSearch.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnSearch.TabIndex = 449;
+ this.btnSearch.Text = "搜索";
+ this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
+ //
+ // txtUserName
+ //
+ this.txtUserName.Location = new System.Drawing.Point(57, 12);
+ this.txtUserName.Name = "txtUserName";
+ this.txtUserName.Size = new System.Drawing.Size(90, 23);
+ this.txtUserName.TabIndex = 419;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(24, 15);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(44, 17);
+ this.label5.TabIndex = 420;
+ this.label5.Text = "账户:";
+ //
+ // txtLoginName
+ //
+ this.txtLoginName.Location = new System.Drawing.Point(208, 12);
+ this.txtLoginName.Name = "txtLoginName";
+ this.txtLoginName.Size = new System.Drawing.Size(90, 23);
+ this.txtLoginName.TabIndex = 417;
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(151, 15);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(68, 17);
+ this.label1.TabIndex = 418;
+ this.label1.Text = "登录号码:";
+ //
+ // btnEmpty
+ //
+ this.btnEmpty.CanvasColor = System.Drawing.SystemColors.Control;
+ this.btnEmpty.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnEmpty.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnEmpty.Location = new System.Drawing.Point(502, 12);
+ this.btnEmpty.Name = "btnEmpty";
+ this.btnEmpty.Size = new System.Drawing.Size(56, 23);
+ this.btnEmpty.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnEmpty.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
+ this.btnEmpty.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
+ this.btnEmpty.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
+ this.btnEmpty.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnEmpty.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
+ this.btnEmpty.Style.GradientAngle = 90;
+ this.btnEmpty.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnEmpty.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnEmpty.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnEmpty.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnEmpty.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
+ this.btnEmpty.TabIndex = 413;
+ this.btnEmpty.Text = "清空条件";
+ this.btnEmpty.Click += new System.EventHandler(this.pnlEmpty_Click);
+ //
+ // txtNotes
+ //
+ this.txtNotes.Location = new System.Drawing.Point(208, 41);
+ this.txtNotes.Name = "txtNotes";
+ this.txtNotes.Size = new System.Drawing.Size(90, 23);
+ this.txtNotes.TabIndex = 376;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(175, 44);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(44, 17);
+ this.label4.TabIndex = 377;
+ this.label4.Text = "备注:";
+ //
+ // txtShopName
+ //
+ this.txtShopName.Location = new System.Drawing.Point(57, 41);
+ this.txtShopName.Name = "txtShopName";
+ this.txtShopName.Size = new System.Drawing.Size(90, 23);
+ this.txtShopName.TabIndex = 374;
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(12, 44);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(56, 17);
+ this.label3.TabIndex = 375;
+ this.label3.Text = "店铺名:";
+ //
+ // txtShopId
+ //
+ this.txtShopId.Location = new System.Drawing.Point(346, 12);
+ this.txtShopId.Name = "txtShopId";
+ this.txtShopId.Size = new System.Drawing.Size(90, 23);
+ this.txtShopId.TabIndex = 372;
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(302, 15);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(55, 17);
+ this.label2.TabIndex = 373;
+ this.label2.Text = "店铺id:";
+ //
+ // splitContainer2
+ //
+ this.splitContainer2.BackColor = System.Drawing.Color.White;
+ this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
+ this.splitContainer2.Location = new System.Drawing.Point(0, 0);
+ this.splitContainer2.Name = "splitContainer2";
+ this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;
+ //
+ // splitContainer2.Panel1
+ //
+ this.splitContainer2.Panel1.BackColor = System.Drawing.Color.White;
+ this.splitContainer2.Panel1.Controls.Add(this.btnSetSubSa);
+ this.splitContainer2.Panel1.Controls.Add(this.btnExportShopErp);
+ this.splitContainer2.Panel1.Controls.Add(this.pbLoading);
+ this.splitContainer2.Panel1.Controls.Add(this.pnlAddProdRemaining);
+ this.splitContainer2.Panel1.Controls.Add(this.dgvShop);
+ this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ //
+ // splitContainer2.Panel2
+ //
+ 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(1271, 488);
+ this.splitContainer2.SplitterDistance = 459;
+ this.splitContainer2.TabIndex = 0;
+ //
+ // btnSetSubSa
+ //
+ this.btnSetSubSa.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnSetSubSa.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnSetSubSa.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnSetSubSa.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnSetSubSa.Location = new System.Drawing.Point(192, 51);
+ this.btnSetSubSa.Name = "btnSetSubSa";
+ this.btnSetSubSa.Size = new System.Drawing.Size(93, 23);
+ this.btnSetSubSa.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnSetSubSa.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnSetSubSa.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnSetSubSa.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
+ this.btnSetSubSa.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
+ this.btnSetSubSa.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
+ this.btnSetSubSa.Style.ForeColor.Color = System.Drawing.Color.White;
+ this.btnSetSubSa.Style.GradientAngle = 90;
+ this.btnSetSubSa.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnSetSubSa.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnSetSubSa.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnSetSubSa.TabIndex = 453;
+ this.btnSetSubSa.Text = "分配二级超管";
+ this.btnSetSubSa.Visible = false;
+ this.btnSetSubSa.Click += new System.EventHandler(this.btnSetSubSa_Click);
+ //
+ // btnExportShopErp
+ //
+ this.btnExportShopErp.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnExportShopErp.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnExportShopErp.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnExportShopErp.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnExportShopErp.Location = new System.Drawing.Point(30, 51);
+ this.btnExportShopErp.Name = "btnExportShopErp";
+ this.btnExportShopErp.Size = new System.Drawing.Size(140, 23);
+ this.btnExportShopErp.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnExportShopErp.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnExportShopErp.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnExportShopErp.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
+ this.btnExportShopErp.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
+ this.btnExportShopErp.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
+ this.btnExportShopErp.Style.ForeColor.Color = System.Drawing.Color.White;
+ this.btnExportShopErp.Style.GradientAngle = 90;
+ this.btnExportShopErp.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnExportShopErp.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnExportShopErp.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnExportShopErp.TabIndex = 435;
+ this.btnExportShopErp.Text = "导出店铺到后台系统";
+ this.btnExportShopErp.Visible = false;
+ this.btnExportShopErp.Click += new System.EventHandler(this.btnExportShopErp_Click);
+ //
+ // 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(610, 204);
+ this.pbLoading.Name = "pbLoading";
+ this.pbLoading.Size = new System.Drawing.Size(50, 50);
+ this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pbLoading.TabIndex = 6;
+ this.pbLoading.TabStop = false;
+ //
+ // pnlAddProdRemaining
+ //
+ this.pnlAddProdRemaining.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.pnlAddProdRemaining.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ 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(398, 34);
+ this.pnlAddProdRemaining.Name = "pnlAddProdRemaining";
+ this.pnlAddProdRemaining.Size = new System.Drawing.Size(474, 146);
+ this.pnlAddProdRemaining.TabIndex = 7;
+ this.pnlAddProdRemaining.Visible = false;
+ //
+ // lblShopId
+ //
+ this.lblShopId.AutoSize = true;
+ this.lblShopId.Location = new System.Drawing.Point(20, 19);
+ this.lblShopId.Name = "lblShopId";
+ this.lblShopId.Size = new System.Drawing.Size(50, 17);
+ this.lblShopId.TabIndex = 455;
+ this.lblShopId.Text = "ShopId";
+ this.lblShopId.Visible = false;
+ //
+ // panel2
+ //
+ this.panel2.Anchor = System.Windows.Forms.AnchorStyles.Top;
+ this.panel2.Controls.Add(this.btnCancel);
+ this.panel2.Controls.Add(this.numAddRemaining);
+ this.panel2.Controls.Add(this.btnRemainOK);
+ this.panel2.Location = new System.Drawing.Point(23, 80);
+ this.panel2.Name = "panel2";
+ this.panel2.Size = new System.Drawing.Size(424, 29);
+ this.panel2.TabIndex = 454;
+ //
+ // 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(273, 2);
+ this.btnCancel.Name = "btnCancel";
+ this.btnCancel.Size = new System.Drawing.Size(56, 24);
+ 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 = 458;
+ this.btnCancel.Text = "取消";
+ this.btnCancel.Click += new System.EventHandler(this.pnlCancel_Click);
+ //
+ // numAddRemaining
+ //
+ this.numAddRemaining.Location = new System.Drawing.Point(93, 3);
+ this.numAddRemaining.Maximum = new decimal(new int[] {
10000,
0,
0,
0});
- this.numAddRemaining.Name = "numAddRemaining";
- this.numAddRemaining.Size = new System.Drawing.Size(120, 23);
- this.numAddRemaining.TabIndex = 1;
- //
- // btnRemainOK
- //
- this.btnRemainOK.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.btnRemainOK.Cursor = System.Windows.Forms.Cursors.Hand;
- this.btnRemainOK.DisabledBackColor = System.Drawing.Color.Empty;
- this.btnRemainOK.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.btnRemainOK.Location = new System.Drawing.Point(215, 2);
- this.btnRemainOK.Name = "btnRemainOK";
- this.btnRemainOK.Size = new System.Drawing.Size(56, 24);
- this.btnRemainOK.Style.Alignment = System.Drawing.StringAlignment.Center;
- this.btnRemainOK.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- this.btnRemainOK.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- this.btnRemainOK.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
- this.btnRemainOK.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
- this.btnRemainOK.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
- this.btnRemainOK.Style.ForeColor.Color = System.Drawing.Color.White;
- this.btnRemainOK.Style.GradientAngle = 90;
- this.btnRemainOK.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
- this.btnRemainOK.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
- this.btnRemainOK.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
- this.btnRemainOK.TabIndex = 453;
- this.btnRemainOK.Text = "确定";
- this.btnRemainOK.Click += new System.EventHandler(this.btnRemainOK_Click);
- //
- // lblAddProdRemaining
- //
- this.lblAddProdRemaining.Location = new System.Drawing.Point(23, 36);
- this.lblAddProdRemaining.Name = "lblAddProdRemaining";
- this.lblAddProdRemaining.Size = new System.Drawing.Size(424, 17);
- this.lblAddProdRemaining.TabIndex = 0;
- this.lblAddProdRemaining.Text = "shopInfo";
- this.lblAddProdRemaining.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // dgvShop
- //
- this.dgvShop.AllowUserToAddRows = false;
- this.dgvShop.AllowUserToDeleteRows = false;
- dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
- this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
- 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;
- this.dgvShop.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.dgvShop.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.numAddRemaining.Name = "numAddRemaining";
+ this.numAddRemaining.Size = new System.Drawing.Size(120, 23);
+ this.numAddRemaining.TabIndex = 1;
+ //
+ // btnRemainOK
+ //
+ this.btnRemainOK.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnRemainOK.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnRemainOK.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnRemainOK.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnRemainOK.Location = new System.Drawing.Point(215, 2);
+ this.btnRemainOK.Name = "btnRemainOK";
+ this.btnRemainOK.Size = new System.Drawing.Size(56, 24);
+ this.btnRemainOK.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnRemainOK.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnRemainOK.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnRemainOK.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
+ this.btnRemainOK.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
+ this.btnRemainOK.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
+ this.btnRemainOK.Style.ForeColor.Color = System.Drawing.Color.White;
+ this.btnRemainOK.Style.GradientAngle = 90;
+ this.btnRemainOK.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnRemainOK.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnRemainOK.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnRemainOK.TabIndex = 453;
+ this.btnRemainOK.Text = "确定";
+ this.btnRemainOK.Click += new System.EventHandler(this.btnRemainOK_Click);
+ //
+ // lblAddProdRemaining
+ //
+ this.lblAddProdRemaining.Location = new System.Drawing.Point(23, 36);
+ this.lblAddProdRemaining.Name = "lblAddProdRemaining";
+ this.lblAddProdRemaining.Size = new System.Drawing.Size(424, 17);
+ this.lblAddProdRemaining.TabIndex = 0;
+ this.lblAddProdRemaining.Text = "shopInfo";
+ this.lblAddProdRemaining.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // dgvShop
+ //
+ this.dgvShop.AllowUserToAddRows = false;
+ this.dgvShop.AllowUserToDeleteRows = false;
+ dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
+ this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
+ 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;
+ this.dgvShop.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvShop.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.colSelect,
this.colLoginName,
this.colShopId,
@@ -655,364 +656,379 @@ namespace TemuKJD.WXForms.AdminForms
this.colCopyCookies,
this.colUpload,
this.colSubSa,
+ this.col_never_expires,
this.colEdit,
this.colDelete,
this.colMsg});
- 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(1263, 459);
- 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);
- //
- // colSelect
- //
- this.colSelect.FillWeight = 26F;
- this.colSelect.HeaderText = "";
- this.colSelect.Name = "colSelect";
- this.colSelect.ReadOnly = true;
- this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- //
- // colLoginName
- //
- this.colLoginName.FillWeight = 70F;
- this.colLoginName.HeaderText = "店铺登录号码";
- this.colLoginName.Name = "colLoginName";
- this.colLoginName.ReadOnly = true;
- //
- // colShopId
- //
- this.colShopId.FillWeight = 70F;
- this.colShopId.HeaderText = "店铺Id";
- this.colShopId.Name = "colShopId";
- this.colShopId.ReadOnly = true;
- //
- // colShopAccount
- //
- this.colShopAccount.HeaderText = "店铺账号";
- this.colShopAccount.Name = "colShopAccount";
- this.colShopAccount.ReadOnly = true;
- //
- // colNotes
- //
- this.colNotes.HeaderText = "备注";
- this.colNotes.Name = "colNotes";
- this.colNotes.ReadOnly = true;
- //
- // colGroupName
- //
- this.colGroupName.FillWeight = 70F;
- this.colGroupName.HeaderText = "店铺分组";
- this.colGroupName.Name = "colGroupName";
- this.colGroupName.ReadOnly = true;
- //
- // colMinus
- //
- dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- this.colMinus.DefaultCellStyle = dataGridViewCellStyle3;
- this.colMinus.FillWeight = 15F;
- this.colMinus.HeaderText = "-";
- this.colMinus.Name = "colMinus";
- this.colMinus.ReadOnly = true;
- this.colMinus.Visible = false;
- //
- // colProductRemaining
- //
- dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- this.colProductRemaining.DefaultCellStyle = dataGridViewCellStyle4;
- 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;
- this.colPlus.FillWeight = 15F;
- this.colPlus.HeaderText = "+";
- this.colPlus.Name = "colPlus";
- this.colPlus.ReadOnly = true;
- this.colPlus.Visible = false;
- //
- // colCookie
- //
- this.colCookie.HeaderText = "店铺Cookie";
- this.colCookie.Name = "colCookie";
- this.colCookie.ReadOnly = true;
- this.colCookie.Visible = false;
- //
- // colUser
- //
- this.colUser.FillWeight = 67F;
- this.colUser.HeaderText = "所属账户";
- this.colUser.Name = "colUser";
- this.colUser.ReadOnly = true;
- //
- // colSubUser
- //
- this.colSubUser.FillWeight = 67F;
- this.colSubUser.HeaderText = "子账户";
- this.colSubUser.Name = "colSubUser";
- this.colSubUser.ReadOnly = true;
- //
- // colUploadAccount
- //
- this.colUploadAccount.FillWeight = 70F;
- this.colUploadAccount.HeaderText = "上货账户";
- this.colUploadAccount.Name = "colUploadAccount";
- this.colUploadAccount.ReadOnly = true;
- this.colUploadAccount.Visible = false;
- //
- // colBuyAccount
- //
- this.colBuyAccount.FillWeight = 70F;
- this.colBuyAccount.HeaderText = "采购账户";
- this.colBuyAccount.Name = "colBuyAccount";
- this.colBuyAccount.ReadOnly = true;
- this.colBuyAccount.Visible = false;
- //
- // colChatAccount
- //
- this.colChatAccount.FillWeight = 70F;
- this.colChatAccount.HeaderText = "客服账户";
- this.colChatAccount.Name = "colChatAccount";
- this.colChatAccount.ReadOnly = true;
- this.colChatAccount.Visible = false;
- //
- // colLoginStatus
- //
- this.colLoginStatus.HeaderText = "登录状态";
- this.colLoginStatus.Name = "colLoginStatus";
- this.colLoginStatus.ReadOnly = true;
- this.colLoginStatus.Visible = false;
- //
- // colGotoShop
- //
- this.colGotoShop.FillWeight = 46F;
- this.colGotoShop.HeaderText = "进入店铺";
- this.colGotoShop.Name = "colGotoShop";
- this.colGotoShop.ReadOnly = true;
- this.colGotoShop.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.colGotoShop.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- //
- // colShopOperate
- //
- this.colShopOperate.FillWeight = 46F;
- this.colShopOperate.HeaderText = "检测";
- this.colShopOperate.Name = "colShopOperate";
- this.colShopOperate.ReadOnly = true;
- this.colShopOperate.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.colShopOperate.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- this.colShopOperate.Visible = false;
- //
- // colRelogin
- //
- this.colRelogin.FillWeight = 46F;
- this.colRelogin.HeaderText = "登录";
- this.colRelogin.Name = "colRelogin";
- this.colRelogin.ReadOnly = true;
- this.colRelogin.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.colRelogin.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- //
- // colRelogin2
- //
- this.colRelogin2.FillWeight = 55F;
- this.colRelogin2.HeaderText = "国际版状态";
- this.colRelogin2.Name = "colRelogin2";
- this.colRelogin2.ReadOnly = true;
- this.colRelogin2.Visible = false;
- //
- // colBuyApi
- //
- this.colBuyApi.FillWeight = 46F;
- this.colBuyApi.HeaderText = "API购买";
- this.colBuyApi.Name = "colBuyApi";
- this.colBuyApi.ReadOnly = true;
- this.colBuyApi.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.colBuyApi.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- //
- // colMultiLogin
- //
- this.colMultiLogin.FillWeight = 52F;
- this.colMultiLogin.HeaderText = "多重登录";
- this.colMultiLogin.Name = "colMultiLogin";
- this.colMultiLogin.ReadOnly = true;
- this.colMultiLogin.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.colMultiLogin.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- this.colMultiLogin.Visible = false;
- //
- // colApiAuth
- //
- this.colApiAuth.FillWeight = 70F;
- this.colApiAuth.HeaderText = "上货授权";
- this.colApiAuth.Name = "colApiAuth";
- this.colApiAuth.ReadOnly = true;
- this.colApiAuth.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.colApiAuth.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- this.colApiAuth.Visible = false;
- //
- // colBuyApiAuth
- //
- this.colBuyApiAuth.FillWeight = 70F;
- this.colBuyApiAuth.HeaderText = "拍单授权";
- this.colBuyApiAuth.Name = "colBuyApiAuth";
- this.colBuyApiAuth.ReadOnly = true;
- this.colBuyApiAuth.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.colBuyApiAuth.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- this.colBuyApiAuth.Visible = false;
- //
- // colImportCookies
- //
- this.colImportCookies.FillWeight = 70F;
- this.colImportCookies.HeaderText = "导入Cookie";
- this.colImportCookies.Name = "colImportCookies";
- this.colImportCookies.ReadOnly = true;
- this.colImportCookies.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.colImportCookies.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- this.colImportCookies.Visible = false;
- //
- // colCopyCookies
- //
- this.colCopyCookies.FillWeight = 70F;
- this.colCopyCookies.HeaderText = "复制Cookie";
- this.colCopyCookies.Name = "colCopyCookies";
- this.colCopyCookies.ReadOnly = true;
- this.colCopyCookies.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.colCopyCookies.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- //
- // colUpload
- //
- this.colUpload.FillWeight = 67F;
- this.colUpload.HeaderText = "上传商品";
- this.colUpload.Name = "colUpload";
- this.colUpload.ReadOnly = true;
- this.colUpload.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.colUpload.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- this.colUpload.Visible = false;
- //
- // colSubSa
- //
- this.colSubSa.FillWeight = 67F;
- this.colSubSa.HeaderText = "二级超管";
- this.colSubSa.Name = "colSubSa";
- this.colSubSa.ReadOnly = true;
- //
- // colEdit
- //
- this.colEdit.FillWeight = 46F;
- this.colEdit.HeaderText = "编辑";
- this.colEdit.Name = "colEdit";
- this.colEdit.ReadOnly = true;
- this.colEdit.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.colEdit.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- this.colEdit.Visible = false;
- //
- // colDelete
- //
- this.colDelete.FillWeight = 46F;
- this.colDelete.HeaderText = "删除";
- this.colDelete.Name = "colDelete";
- this.colDelete.ReadOnly = true;
- this.colDelete.Visible = false;
- //
- // colMsg
- //
- this.colMsg.HeaderText = "操作结果";
- this.colMsg.Name = "colMsg";
- this.colMsg.ReadOnly = true;
- this.colMsg.Visible = false;
- //
- // chkAutoDrag
- //
- this.chkAutoDrag.Anchor = System.Windows.Forms.AnchorStyles.Right;
- this.chkAutoDrag.AutoSize = true;
- this.chkAutoDrag.BackColor = System.Drawing.Color.White;
- this.chkAutoDrag.Location = new System.Drawing.Point(595, 0);
- this.chkAutoDrag.Name = "chkAutoDrag";
- this.chkAutoDrag.Size = new System.Drawing.Size(159, 21);
- this.chkAutoDrag.TabIndex = 3;
- this.chkAutoDrag.Text = "登录时自动滑动拼图验证";
- this.chkAutoDrag.UseVisualStyleBackColor = false;
- this.chkAutoDrag.Visible = false;
- //
- // ucSplitPage1
- //
- this.ucSplitPage1.CurrentPage = 1;
- this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Right;
- this.ucSplitPage1.IsShowPageSize = true;
- this.ucSplitPage1.Location = new System.Drawing.Point(882, 0);
- this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
- this.ucSplitPage1.Name = "ucSplitPage1";
- this.ucSplitPage1.PageSize = 50;
- this.ucSplitPage1.Size = new System.Drawing.Size(389, 25);
- this.ucSplitPage1.TabIndex = 4;
- this.ucSplitPage1.TotalPage = 1;
- //
- // statusBar
- //
- this.statusBar.BackColor = System.Drawing.Color.White;
- this.statusBar.Dock = System.Windows.Forms.DockStyle.Fill;
- this.statusBar.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.statusBar.Location = new System.Drawing.Point(0, 0);
- this.statusBar.Margin = new System.Windows.Forms.Padding(0);
- this.statusBar.Name = "statusBar";
- this.statusBar.Size = new System.Drawing.Size(1271, 25);
- this.statusBar.TabIndex = 1;
- //
- // panel3
- //
- this.panel3.BackColor = System.Drawing.Color.White;
- this.panel3.Controls.Add(this.splitContainer1);
- this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
- this.panel3.Location = new System.Drawing.Point(1, 33);
- this.panel3.Name = "panel3";
- this.panel3.Size = new System.Drawing.Size(1271, 576);
- this.panel3.TabIndex = 35;
- //
- // WXAdminShopListForm
- //
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
- this.ClientSize = new System.Drawing.Size(1273, 610);
- this.Controls.Add(this.panel3);
- 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")));
- this.KeyPreview = true;
- this.Name = "WXAdminShopListForm";
- this.Text = "微信小店店铺列表";
- this.TitleText = "微信小店店铺列表";
- this.Load += new System.EventHandler(this.AdminShopForm_Load);
- this.VisibleChanged += new System.EventHandler(this.AdminShopForm_VisibleChanged);
- this.Controls.SetChildIndex(this.panel3, 0);
- this.splitContainer1.Panel1.ResumeLayout(false);
- this.splitContainer1.Panel2.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
- this.splitContainer1.ResumeLayout(false);
- this.tableLayoutPanel2.ResumeLayout(false);
- this.panel5.ResumeLayout(false);
- this.panel5.PerformLayout();
- this.panel4.ResumeLayout(false);
- this.panel4.PerformLayout();
- this.splitContainer2.Panel1.ResumeLayout(false);
- this.splitContainer2.Panel2.ResumeLayout(false);
- this.splitContainer2.Panel2.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
- this.splitContainer2.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.pbLoading)).EndInit();
- this.pnlAddProdRemaining.ResumeLayout(false);
- this.pnlAddProdRemaining.PerformLayout();
- this.panel2.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.numAddRemaining)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.dgvShop)).EndInit();
- this.panel3.ResumeLayout(false);
- this.ResumeLayout(false);
+ 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(1263, 459);
+ 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);
+ //
+ // chkAutoDrag
+ //
+ this.chkAutoDrag.Anchor = System.Windows.Forms.AnchorStyles.Right;
+ this.chkAutoDrag.AutoSize = true;
+ this.chkAutoDrag.BackColor = System.Drawing.Color.White;
+ this.chkAutoDrag.Location = new System.Drawing.Point(595, 0);
+ this.chkAutoDrag.Name = "chkAutoDrag";
+ this.chkAutoDrag.Size = new System.Drawing.Size(159, 21);
+ this.chkAutoDrag.TabIndex = 3;
+ this.chkAutoDrag.Text = "登录时自动滑动拼图验证";
+ this.chkAutoDrag.UseVisualStyleBackColor = false;
+ this.chkAutoDrag.Visible = false;
+ //
+ // ucSplitPage1
+ //
+ this.ucSplitPage1.CurrentPage = 1;
+ this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Right;
+ this.ucSplitPage1.IsShowPageSize = true;
+ this.ucSplitPage1.IsShowTotalCount = false;
+ this.ucSplitPage1.Location = new System.Drawing.Point(882, 0);
+ this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
+ this.ucSplitPage1.MaxPageSizeValue = 5000;
+ this.ucSplitPage1.Name = "ucSplitPage1";
+ this.ucSplitPage1.PageSize = 50;
+ this.ucSplitPage1.Size = new System.Drawing.Size(389, 25);
+ this.ucSplitPage1.TabIndex = 4;
+ this.ucSplitPage1.TotalCount = ((long)(0));
+ this.ucSplitPage1.TotalPage = 1;
+ //
+ // statusBar
+ //
+ this.statusBar.BackColor = System.Drawing.Color.White;
+ this.statusBar.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.statusBar.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.statusBar.Location = new System.Drawing.Point(0, 0);
+ this.statusBar.Margin = new System.Windows.Forms.Padding(0);
+ this.statusBar.Name = "statusBar";
+ this.statusBar.Size = new System.Drawing.Size(1271, 25);
+ this.statusBar.TabIndex = 1;
+ //
+ // panel3
+ //
+ this.panel3.BackColor = System.Drawing.Color.White;
+ this.panel3.Controls.Add(this.splitContainer1);
+ this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.panel3.Location = new System.Drawing.Point(1, 33);
+ this.panel3.Name = "panel3";
+ this.panel3.Size = new System.Drawing.Size(1271, 576);
+ this.panel3.TabIndex = 35;
+ //
+ // colSelect
+ //
+ this.colSelect.FillWeight = 21.69699F;
+ this.colSelect.HeaderText = "";
+ this.colSelect.Name = "colSelect";
+ this.colSelect.ReadOnly = true;
+ this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ //
+ // colLoginName
+ //
+ this.colLoginName.FillWeight = 58.41498F;
+ this.colLoginName.HeaderText = "店铺登录号码";
+ this.colLoginName.Name = "colLoginName";
+ this.colLoginName.ReadOnly = true;
+ //
+ // colShopId
+ //
+ this.colShopId.FillWeight = 58.41498F;
+ this.colShopId.HeaderText = "店铺Id";
+ this.colShopId.Name = "colShopId";
+ this.colShopId.ReadOnly = true;
+ //
+ // colShopAccount
+ //
+ this.colShopAccount.FillWeight = 83.44997F;
+ this.colShopAccount.HeaderText = "店铺账号";
+ this.colShopAccount.Name = "colShopAccount";
+ this.colShopAccount.ReadOnly = true;
+ //
+ // colNotes
+ //
+ this.colNotes.FillWeight = 83.44997F;
+ this.colNotes.HeaderText = "备注";
+ this.colNotes.Name = "colNotes";
+ this.colNotes.ReadOnly = true;
+ //
+ // colGroupName
+ //
+ this.colGroupName.FillWeight = 58.41498F;
+ this.colGroupName.HeaderText = "店铺分组";
+ this.colGroupName.Name = "colGroupName";
+ this.colGroupName.ReadOnly = true;
+ //
+ // colMinus
+ //
+ dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ this.colMinus.DefaultCellStyle = dataGridViewCellStyle3;
+ this.colMinus.FillWeight = 15F;
+ this.colMinus.HeaderText = "-";
+ this.colMinus.Name = "colMinus";
+ this.colMinus.ReadOnly = true;
+ this.colMinus.Visible = false;
+ //
+ // colProductRemaining
+ //
+ dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ this.colProductRemaining.DefaultCellStyle = dataGridViewCellStyle4;
+ 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;
+ this.colPlus.FillWeight = 15F;
+ this.colPlus.HeaderText = "+";
+ this.colPlus.Name = "colPlus";
+ this.colPlus.ReadOnly = true;
+ this.colPlus.Visible = false;
+ //
+ // colCookie
+ //
+ this.colCookie.HeaderText = "店铺Cookie";
+ this.colCookie.Name = "colCookie";
+ this.colCookie.ReadOnly = true;
+ this.colCookie.Visible = false;
+ //
+ // colUser
+ //
+ this.colUser.FillWeight = 55.91148F;
+ this.colUser.HeaderText = "所属账户";
+ this.colUser.Name = "colUser";
+ this.colUser.ReadOnly = true;
+ //
+ // colSubUser
+ //
+ this.colSubUser.FillWeight = 55.91148F;
+ this.colSubUser.HeaderText = "子账户";
+ this.colSubUser.Name = "colSubUser";
+ this.colSubUser.ReadOnly = true;
+ //
+ // colUploadAccount
+ //
+ this.colUploadAccount.FillWeight = 70F;
+ this.colUploadAccount.HeaderText = "上货账户";
+ this.colUploadAccount.Name = "colUploadAccount";
+ this.colUploadAccount.ReadOnly = true;
+ this.colUploadAccount.Visible = false;
+ //
+ // colBuyAccount
+ //
+ this.colBuyAccount.FillWeight = 70F;
+ this.colBuyAccount.HeaderText = "采购账户";
+ this.colBuyAccount.Name = "colBuyAccount";
+ this.colBuyAccount.ReadOnly = true;
+ this.colBuyAccount.Visible = false;
+ //
+ // colChatAccount
+ //
+ this.colChatAccount.FillWeight = 70F;
+ this.colChatAccount.HeaderText = "客服账户";
+ this.colChatAccount.Name = "colChatAccount";
+ this.colChatAccount.ReadOnly = true;
+ this.colChatAccount.Visible = false;
+ //
+ // colLoginStatus
+ //
+ this.colLoginStatus.HeaderText = "登录状态";
+ this.colLoginStatus.Name = "colLoginStatus";
+ this.colLoginStatus.ReadOnly = true;
+ this.colLoginStatus.Visible = false;
+ //
+ // colGotoShop
+ //
+ this.colGotoShop.FillWeight = 38.38699F;
+ this.colGotoShop.HeaderText = "进入店铺";
+ this.colGotoShop.Name = "colGotoShop";
+ this.colGotoShop.ReadOnly = true;
+ this.colGotoShop.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.colGotoShop.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ //
+ // colShopOperate
+ //
+ this.colShopOperate.FillWeight = 46F;
+ this.colShopOperate.HeaderText = "检测";
+ this.colShopOperate.Name = "colShopOperate";
+ this.colShopOperate.ReadOnly = true;
+ this.colShopOperate.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.colShopOperate.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.colShopOperate.Visible = false;
+ //
+ // colRelogin
+ //
+ this.colRelogin.FillWeight = 38.38699F;
+ this.colRelogin.HeaderText = "登录";
+ this.colRelogin.Name = "colRelogin";
+ this.colRelogin.ReadOnly = true;
+ this.colRelogin.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.colRelogin.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ //
+ // colRelogin2
+ //
+ this.colRelogin2.FillWeight = 55F;
+ this.colRelogin2.HeaderText = "国际版状态";
+ this.colRelogin2.Name = "colRelogin2";
+ this.colRelogin2.ReadOnly = true;
+ this.colRelogin2.Visible = false;
+ //
+ // colBuyApi
+ //
+ this.colBuyApi.FillWeight = 38.38699F;
+ this.colBuyApi.HeaderText = "API购买";
+ this.colBuyApi.Name = "colBuyApi";
+ this.colBuyApi.ReadOnly = true;
+ this.colBuyApi.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.colBuyApi.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ //
+ // colMultiLogin
+ //
+ this.colMultiLogin.FillWeight = 52F;
+ this.colMultiLogin.HeaderText = "多重登录";
+ this.colMultiLogin.Name = "colMultiLogin";
+ this.colMultiLogin.ReadOnly = true;
+ this.colMultiLogin.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.colMultiLogin.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.colMultiLogin.Visible = false;
+ //
+ // colApiAuth
+ //
+ this.colApiAuth.FillWeight = 70F;
+ this.colApiAuth.HeaderText = "上货授权";
+ this.colApiAuth.Name = "colApiAuth";
+ this.colApiAuth.ReadOnly = true;
+ this.colApiAuth.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.colApiAuth.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.colApiAuth.Visible = false;
+ //
+ // colBuyApiAuth
+ //
+ this.colBuyApiAuth.FillWeight = 70F;
+ this.colBuyApiAuth.HeaderText = "拍单授权";
+ this.colBuyApiAuth.Name = "colBuyApiAuth";
+ this.colBuyApiAuth.ReadOnly = true;
+ this.colBuyApiAuth.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.colBuyApiAuth.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.colBuyApiAuth.Visible = false;
+ //
+ // colImportCookies
+ //
+ this.colImportCookies.FillWeight = 70F;
+ this.colImportCookies.HeaderText = "导入Cookie";
+ this.colImportCookies.Name = "colImportCookies";
+ this.colImportCookies.ReadOnly = true;
+ this.colImportCookies.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.colImportCookies.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.colImportCookies.Visible = false;
+ //
+ // colCopyCookies
+ //
+ this.colCopyCookies.FillWeight = 58.41498F;
+ this.colCopyCookies.HeaderText = "复制Cookie";
+ this.colCopyCookies.Name = "colCopyCookies";
+ this.colCopyCookies.ReadOnly = true;
+ this.colCopyCookies.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.colCopyCookies.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ //
+ // colUpload
+ //
+ this.colUpload.FillWeight = 67F;
+ this.colUpload.HeaderText = "上传商品";
+ this.colUpload.Name = "colUpload";
+ this.colUpload.ReadOnly = true;
+ this.colUpload.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.colUpload.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.colUpload.Visible = false;
+ //
+ // colSubSa
+ //
+ this.colSubSa.FillWeight = 55.91148F;
+ this.colSubSa.HeaderText = "二级超管";
+ this.colSubSa.Name = "colSubSa";
+ this.colSubSa.ReadOnly = true;
+ //
+ // col_never_expires
+ //
+ this.col_never_expires.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.col_never_expires.FillWeight = 239.8477F;
+ this.col_never_expires.HeaderText = "永不过期";
+ this.col_never_expires.Name = "col_never_expires";
+ this.col_never_expires.ReadOnly = true;
+ this.col_never_expires.Width = 50;
+ //
+ // colEdit
+ //
+ this.colEdit.FillWeight = 46F;
+ this.colEdit.HeaderText = "编辑";
+ this.colEdit.Name = "colEdit";
+ this.colEdit.ReadOnly = true;
+ this.colEdit.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.colEdit.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.colEdit.Visible = false;
+ //
+ // colDelete
+ //
+ this.colDelete.FillWeight = 46F;
+ this.colDelete.HeaderText = "删除";
+ this.colDelete.Name = "colDelete";
+ this.colDelete.ReadOnly = true;
+ this.colDelete.Visible = false;
+ //
+ // colMsg
+ //
+ this.colMsg.HeaderText = "操作结果";
+ this.colMsg.Name = "colMsg";
+ this.colMsg.ReadOnly = true;
+ this.colMsg.Visible = false;
+ //
+ // WXAdminShopListForm
+ //
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
+ this.ClientSize = new System.Drawing.Size(1273, 610);
+ this.Controls.Add(this.panel3);
+ 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")));
+ this.KeyPreview = true;
+ this.Name = "WXAdminShopListForm";
+ this.Text = "微信小店店铺列表";
+ this.TitleText = "微信小店店铺列表";
+ this.Load += new System.EventHandler(this.AdminShopForm_Load);
+ this.VisibleChanged += new System.EventHandler(this.AdminShopForm_VisibleChanged);
+ this.Controls.SetChildIndex(this.panel3, 0);
+ this.splitContainer1.Panel1.ResumeLayout(false);
+ this.splitContainer1.Panel2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
+ this.splitContainer1.ResumeLayout(false);
+ this.tableLayoutPanel2.ResumeLayout(false);
+ this.panel5.ResumeLayout(false);
+ this.panel5.PerformLayout();
+ this.panel4.ResumeLayout(false);
+ this.panel4.PerformLayout();
+ this.splitContainer2.Panel1.ResumeLayout(false);
+ this.splitContainer2.Panel2.ResumeLayout(false);
+ this.splitContainer2.Panel2.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
+ this.splitContainer2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.pbLoading)).EndInit();
+ this.pnlAddProdRemaining.ResumeLayout(false);
+ this.pnlAddProdRemaining.PerformLayout();
+ this.panel2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.numAddRemaining)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvShop)).EndInit();
+ this.panel3.ResumeLayout(false);
+ this.ResumeLayout(false);
}
@@ -1055,36 +1071,37 @@ namespace TemuKJD.WXForms.AdminForms
private System.Windows.Forms.Panel panel3;
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;
- private System.Windows.Forms.DataGridViewTextBoxColumn colShopAccount;
- private System.Windows.Forms.DataGridViewTextBoxColumn colNotes;
- private System.Windows.Forms.DataGridViewTextBoxColumn colGroupName;
- private System.Windows.Forms.DataGridViewTextBoxColumn colMinus;
- private System.Windows.Forms.DataGridViewTextBoxColumn colProductRemaining;
- private System.Windows.Forms.DataGridViewTextBoxColumn colPlus;
- private System.Windows.Forms.DataGridViewTextBoxColumn colCookie;
- private System.Windows.Forms.DataGridViewTextBoxColumn colUser;
- private System.Windows.Forms.DataGridViewTextBoxColumn colSubUser;
- private System.Windows.Forms.DataGridViewTextBoxColumn colUploadAccount;
- private System.Windows.Forms.DataGridViewTextBoxColumn colBuyAccount;
- private System.Windows.Forms.DataGridViewTextBoxColumn colChatAccount;
- private System.Windows.Forms.DataGridViewTextBoxColumn colLoginStatus;
- private System.Windows.Forms.DataGridViewLinkColumn colGotoShop;
- private System.Windows.Forms.DataGridViewLinkColumn colShopOperate;
- private System.Windows.Forms.DataGridViewLinkColumn colRelogin;
- private System.Windows.Forms.DataGridViewTextBoxColumn colRelogin2;
- private System.Windows.Forms.DataGridViewLinkColumn colBuyApi;
- private System.Windows.Forms.DataGridViewLinkColumn colMultiLogin;
- private System.Windows.Forms.DataGridViewLinkColumn colApiAuth;
- private System.Windows.Forms.DataGridViewLinkColumn colBuyApiAuth;
- private System.Windows.Forms.DataGridViewLinkColumn colImportCookies;
- private System.Windows.Forms.DataGridViewLinkColumn colCopyCookies;
- private System.Windows.Forms.DataGridViewLinkColumn colUpload;
- private System.Windows.Forms.DataGridViewTextBoxColumn colSubSa;
- private System.Windows.Forms.DataGridViewLinkColumn colEdit;
- private System.Windows.Forms.DataGridViewLinkColumn colDelete;
- private System.Windows.Forms.DataGridViewTextBoxColumn colMsg;
- }
+ private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colLoginName;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colShopId;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colShopAccount;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colNotes;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colGroupName;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colMinus;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colProductRemaining;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colPlus;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colCookie;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colUser;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colSubUser;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colUploadAccount;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colBuyAccount;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colChatAccount;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colLoginStatus;
+ private System.Windows.Forms.DataGridViewLinkColumn colGotoShop;
+ private System.Windows.Forms.DataGridViewLinkColumn colShopOperate;
+ private System.Windows.Forms.DataGridViewLinkColumn colRelogin;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colRelogin2;
+ private System.Windows.Forms.DataGridViewLinkColumn colBuyApi;
+ private System.Windows.Forms.DataGridViewLinkColumn colMultiLogin;
+ private System.Windows.Forms.DataGridViewLinkColumn colApiAuth;
+ private System.Windows.Forms.DataGridViewLinkColumn colBuyApiAuth;
+ private System.Windows.Forms.DataGridViewLinkColumn colImportCookies;
+ private System.Windows.Forms.DataGridViewLinkColumn colCopyCookies;
+ private System.Windows.Forms.DataGridViewLinkColumn colUpload;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colSubSa;
+ private System.Windows.Forms.DataGridViewCheckBoxColumn col_never_expires;
+ private System.Windows.Forms.DataGridViewLinkColumn colEdit;
+ private System.Windows.Forms.DataGridViewLinkColumn colDelete;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colMsg;
+ }
}
\ No newline at end of file
diff --git a/TEMUKJD/WXForms/AdminForms/WXAdminShopListForm.cs b/TEMUKJD/WXForms/AdminForms/WXAdminShopListForm.cs
index 393e4b6..768083f 100644
--- a/TEMUKJD/WXForms/AdminForms/WXAdminShopListForm.cs
+++ b/TEMUKJD/WXForms/AdminForms/WXAdminShopListForm.cs
@@ -1,7 +1,9 @@
using AllBase;
using AllBase.Model.Param.TemuProductManage;
using AllBase.Model.Result;
+using NaiBa.Util;
using NaiBa.Util.Extension;
+using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
@@ -11,749 +13,792 @@ using System.Drawing;
using System.Globalization;
using System.IO;
using System.Linq;
+using System.Runtime.Remoting.Metadata.W3cXsd2001;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
+using TemuKJD.BaseForms;
using TemuKJD.BLL;
using TemuKJD.Extension;
-using TemuKJD.BaseForms;
-using Work;
-using NaiBa.Util;
using TemuKJD.WXForms.ShopForms;
+using Work;
namespace TemuKJD.WXForms.AdminForms
{
- public partial class WXAdminShopListForm : BaseForms.BaseGeneralForm
- {
- static WXAdminShopListForm inst = null;
- public UserAccountInfo UserAccountInfo { get; set; } = null;
- public static WXAdminShopListForm Instance
- {
- get { if (inst == null) inst = new WXAdminShopListForm(); return inst; }
- set { inst = value; }
- }
+ public partial class WXAdminShopListForm : BaseForms.BaseGeneralForm
+ {
+ static WXAdminShopListForm inst = null;
+ public UserAccountInfo UserAccountInfo { get; set; } = null;
+ public static WXAdminShopListForm Instance
+ {
+ get { if (inst == null) inst = new WXAdminShopListForm(); return inst; }
+ set { inst = value; }
+ }
- public static ConcurrentList lstAdminShopInfo { get; set; } = new ConcurrentList();
+ public static ConcurrentList lstAdminShopInfo { get; set; } = new ConcurrentList();
- public WXAdminShopListForm()
- {
- InitializeComponent();
+ public WXAdminShopListForm()
+ {
+ InitializeComponent();
- Instance = this;
- }
+ Instance = this;
+ }
- private void AdminShopForm_Load(object sender, EventArgs e)
- {
- this.ucSplitPage1.PageChange += UcSplitPage1_PageChange;
+ private void AdminShopForm_Load(object sender, EventArgs e)
+ {
+ this.ucSplitPage1.PageChange += UcSplitPage1_PageChange;
- this.dgvShop.AddSelectorColumn("colSelect");
- this.dgvShop.AddMergeColumnHeader(new List() { /*"colMinus",*/ "colProductRemaining", "colPlus" }, "选品限额");
- this.dgvShop.AddMergeColumn(new List() { /*"colMinus",*/ "colProductRemaining", "colPlus" });
- this.dgvShop.Columns["colMinus"].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
- this.dgvShop.Columns["colPlus"].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
- this.dgvShop.Columns["colPlus"].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
+ this.dgvShop.AddSelectorColumn("colSelect");
+ this.dgvShop.AddMergeColumnHeader(new List() { /*"colMinus",*/ "colProductRemaining", "colPlus" }, "选品限额");
+ this.dgvShop.AddMergeColumn(new List() { /*"colMinus",*/ "colProductRemaining", "colPlus" });
+ this.dgvShop.Columns["colMinus"].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
+ this.dgvShop.Columns["colPlus"].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
+ this.dgvShop.Columns["colPlus"].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
- if (BaseClass.SaLevel != 1)
- {
- this.chkShowDelete.Visible = false;
+ if (BaseClass.SaLevel != 1)
+ {
+ this.chkShowDelete.Visible = false;
- dgvShop.Columns["colSubSa"].Visible = false;
- btnSetSubSa.Visible = false;
- }
- if (UserAccountInfo != null)
- {
- this.lblAddToAccount.Text = "当前指定账号:" + UserAccountInfo.user_name + "(" + UserAccountInfo.nick_name + ")";
- }
- }
+ dgvShop.Columns["colSubSa"].Visible = false;
+ btnSetSubSa.Visible = false;
+ }
+ if (UserAccountInfo != null)
+ {
+ this.lblAddToAccount.Text = "当前指定账号:" + UserAccountInfo.user_name + "(" + UserAccountInfo.nick_name + ")";
+ }
+ }
- bool firstLoad = true;
- private void AdminShopForm_VisibleChanged(object sender, EventArgs e)
- {
- if (this.Visible == true && firstLoad)
- {
- firstLoad = false;
- this.pbLoading.Visible = true;
- SearchShop(this.ucSplitPage1.CurrentPage);
- }
- }
+ bool firstLoad = true;
+ private void AdminShopForm_VisibleChanged(object sender, EventArgs e)
+ {
+ if (this.Visible == true && firstLoad)
+ {
+ firstLoad = false;
+ this.pbLoading.Visible = true;
+ SearchShop(this.ucSplitPage1.CurrentPage);
+ }
+ }
- private void UcSplitPage1_PageChange(object obj)
- {
- SearchShop(this.ucSplitPage1.CurrentPage);
- }
+ private void UcSplitPage1_PageChange(object obj)
+ {
+ SearchShop(this.ucSplitPage1.CurrentPage);
+ }
- public void SearchShop(int page)
- {
- List shopIdList = GetCheckedShopIdList();
- if (InvokeRequired)
- {
- Invoke(new Action(() =>
- {
- this.pbLoading.Visible = true;
- this.dgvShop.Rows.Clear();
- lstAdminShopInfo.Clear();
- }));
- }
- else
- {
- this.pbLoading.Visible = true;
- this.dgvShop.Rows.Clear();
- lstAdminShopInfo.Clear();
- }
- Task.Run(() =>
- {
- int pageCount;
- decimal seconds = 0;
- var list = AdminGetServerShopLst(out pageCount, out seconds, page, ucSplitPage1.PageSize);
- lstAdminShopInfo.AddRange(list);
- this.ucSplitPage1.TotalPage = pageCount;
+ public void SearchShop(int page)
+ {
+ List shopIdList = GetCheckedShopIdList();
+ if (InvokeRequired)
+ {
+ Invoke(new Action(() =>
+ {
+ this.pbLoading.Visible = true;
+ this.dgvShop.Rows.Clear();
+ lstAdminShopInfo.Clear();
+ }));
+ }
+ else
+ {
+ this.pbLoading.Visible = true;
+ this.dgvShop.Rows.Clear();
+ lstAdminShopInfo.Clear();
+ }
+ Task.Run(() =>
+ {
+ int pageCount;
+ decimal seconds = 0;
+ var list = AdminGetServerShopLst(out pageCount, out seconds, page, ucSplitPage1.PageSize);
+ lstAdminShopInfo.AddRange(list);
+ this.ucSplitPage1.TotalPage = pageCount;
- foreach (var shop in lstAdminShopInfo)
- {
- Invoke(new Action(() =>
- {
- int rowIndex = this.dgvShop.Rows.Add(
- shopIdList.Contains(shop.ShopId + shop.UserName),
- shop.LoginName,
- shop.ShopId,
- shop.ShopAccount,
- shop.Notes,
- shop.GroupName,
- "-",
- shop.AddProductRemaining,
- "+",
- //"±",
- shop.Cookies,
- shop.UserName,
- shop.SubUserName,
- shop.UploadAccount,
- shop.BuyAccount,
- shop.ChatAccount,
- "",
- "进入",
- "检测",
- string.IsNullOrWhiteSpace(shop.LoginStatus) ? "未登录" : shop.LoginStatus.Trim(),
- string.IsNullOrWhiteSpace(shop.LoginStatus2) ? "国际版未登录" : shop.LoginStatus2.Trim(),
- "购买",
- "多重登录",
- shop.ApiAuthStatus,
- shop.BuyApiAuth.ApiAuthStatus,
- "导入Cookie",
- "复制Cookie",
- "上传",
- shop.OperateSubSaName,
- "编辑",
- "删除");
- }));
- }
+ foreach (var shop in lstAdminShopInfo)
+ {
+ Invoke(new Action(() =>
+ {
+ int rowIndex = this.dgvShop.Rows.Add(
+ shopIdList.Contains(shop.ShopId + shop.UserName),
+ shop.LoginName,
+ shop.ShopId,
+ shop.ShopAccount,
+ shop.Notes,
+ shop.GroupName,
+ "-",
+ shop.AddProductRemaining,
+ "+",
+ //"±",
+ shop.Cookies,
+ shop.UserName,
+ shop.SubUserName,
+ shop.UploadAccount,
+ shop.BuyAccount,
+ shop.ChatAccount,
+ "",
+ "进入",
+ "检测",
+ string.IsNullOrWhiteSpace(shop.LoginStatus) ? "未登录" : shop.LoginStatus.Trim(),
+ string.IsNullOrWhiteSpace(shop.LoginStatus2) ? "国际版未登录" : shop.LoginStatus2.Trim(),
+ "购买",
+ "多重登录",
+ shop.ApiAuthStatus,
+ shop.BuyApiAuth.ApiAuthStatus,
+ "导入Cookie",
+ "复制Cookie",
+ "上传",
+ shop.OperateSubSaName,
+ shop.never_expires,
+ "编辑",
+ "删除");
+ }));
+ }
- Invoke(new Action(() =>
- {
- this.pbLoading.Visible = false;
- this.statusBar.lblTaskStatus.Text = "店铺查询完毕";
+ Invoke(new Action(() =>
+ {
+ this.pbLoading.Visible = false;
+ this.statusBar.lblTaskStatus.Text = "店铺查询完毕";
#if DEBUG
- this.statusBar.lblTaskStatus.Text += ",耗时:" + seconds;
+ this.statusBar.lblTaskStatus.Text += ",耗时:" + seconds;
#endif
- }));
- });
- }
+ }));
+ });
+ }
- private void btnSearch_Click(object sender, EventArgs e)
- {
- if (this.ucSplitPage1.CurrentPage != 1)
- this.ucSplitPage1.CurrentPage = 1;
- else
- SearchShop(1);
- }
+ private void btnSearch_Click(object sender, EventArgs e)
+ {
+ if (this.ucSplitPage1.CurrentPage != 1)
+ this.ucSplitPage1.CurrentPage = 1;
+ else
+ SearchShop(1);
+ }
- private void pnlEmpty_Click(object sender, EventArgs e)
- {
- this.txtUserName.Text = "";
- this.txtLoginName.Text = "";
- this.txtNotes.Text = "";
- this.txtShopId.Text = "";
- this.txtShopName.Text = "";
- }
+ private void pnlEmpty_Click(object sender, EventArgs e)
+ {
+ this.txtUserName.Text = "";
+ this.txtLoginName.Text = "";
+ this.txtNotes.Text = "";
+ this.txtShopId.Text = "";
+ this.txtShopName.Text = "";
+ }
- bool IsOperate = false;
- private void btnLoginSelect_Click(object sender, EventArgs e)
- {
- IsOperate = true;
- if (this.btnLoginSelect.Text == "登录选中")
- {
- List shopLoginNameList = GetCheckedList();
- if (!shopLoginNameList.Any())
- {
- BaseMsgForm.ShowError("请选择需要登录的店铺");
- IsOperate = false;
- return;
- }
+ bool IsOperate = false;
+ private void btnLoginSelect_Click(object sender, EventArgs e)
+ {
+ IsOperate = true;
+ if (this.btnLoginSelect.Text == "登录选中")
+ {
+ List shopLoginNameList = GetCheckedList();
+ if (!shopLoginNameList.Any())
+ {
+ BaseMsgForm.ShowError("请选择需要登录的店铺");
+ IsOperate = false;
+ return;
+ }
- shopLoginNameList = shopLoginNameList.Distinct().ToList();
- foreach (var loginName in shopLoginNameList)
- {
- if (IsOperate == false)
- break;
+ shopLoginNameList = shopLoginNameList.Distinct().ToList();
+ foreach (var loginName in shopLoginNameList)
+ {
+ if (IsOperate == false)
+ break;
- var shopInfo = lstAdminShopInfo.FirstOrDefault(v => v.LoginName == loginName);
- if (shopInfo != null && !string.IsNullOrEmpty(shopInfo.LoginName) && !string.IsNullOrEmpty(shopInfo.Password))
- {
- WXAdminShopLoginForm shopLoginForm = new WXAdminShopLoginForm(shopInfo);
- shopLoginForm.openType = EnumOpenType.login;
- shopLoginForm.ShowDialog();
- }
- }
- if (shopLoginNameList.Count>0)
- {
- SearchShop(this.ucSplitPage1.CurrentPage);
- }
- }
- IsOperate = false;
- }
+ var shopInfo = lstAdminShopInfo.FirstOrDefault(v => v.LoginName == loginName);
+ if (shopInfo != null && !string.IsNullOrEmpty(shopInfo.LoginName) && !string.IsNullOrEmpty(shopInfo.Password))
+ {
+ WXAdminShopLoginForm shopLoginForm = new WXAdminShopLoginForm(shopInfo);
+ shopLoginForm.openType = EnumOpenType.login;
+ shopLoginForm.ShowDialog();
+ }
+ }
+ if (shopLoginNameList.Count > 0)
+ {
+ SearchShop(this.ucSplitPage1.CurrentPage);
+ }
+ }
+ IsOperate = false;
+ }
- private void shopLoginForm_SaveComplete(object obj)
- {
- SearchShop(this.ucSplitPage1.CurrentPage);
- }
+ private void shopLoginForm_SaveComplete(object obj)
+ {
+ SearchShop(this.ucSplitPage1.CurrentPage);
+ }
- private void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e)
- {
- if (e.ColumnIndex < 0 || e.RowIndex < 0)
- return;
- string headerText = dgvShop.Columns[e.ColumnIndex].HeaderText;
- string loginName = dgvShop.Rows[e.RowIndex].Cells["colLoginName"].Value.ParseToString();
- string accountId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToString();
- var shop = lstAdminShopInfo.FirstOrDefault(v => v.LoginName == loginName && v.ShopId == accountId);
+ private async void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e)
+ {
+ if (e.ColumnIndex < 0 || e.RowIndex < 0)
+ return;
+ string headerText = dgvShop.Columns[e.ColumnIndex].HeaderText;
+ string loginName = dgvShop.Rows[e.RowIndex].Cells["colLoginName"].Value.ParseToString();
+ string accountId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToString();
+ var shop = lstAdminShopInfo.FirstOrDefault(v => v.LoginName == loginName && v.ShopId == accountId);
+ string ownerUser = dgvShop.Rows[e.RowIndex].Cells["colUser"].Value.ParseToString();
+ switch (headerText)
+ {
+ case "检测":
+ //CheckShopLoginAsync(new string[] { loginName });
+ break;
+ case "进入店铺":
+ IsOperate = true;
+ {
+ WXAdminShopLoginForm adminLoginForm = new WXAdminShopLoginForm(shop);
+ adminLoginForm.openType = EnumOpenType.manage;
+ adminLoginForm.WindowState = FormWindowState.Maximized;
+ adminLoginForm.InitUrl = "https://store.weixin.qq.com/shop/home";
+ adminLoginForm.Show();
+ }
+ IsOperate = false;
+ break;
+ case "API购买":
+ {
+ WXAdminShopLoginForm shopLoginForm = new WXAdminShopLoginForm(shop);
+ shopLoginForm.openType = EnumOpenType.manage;
+ shopLoginForm.WindowState = FormWindowState.Maximized;
+ shopLoginForm.InitUrl = "https://store.weixin.qq.com/shop/servicemarket/detail?serviceId=3984039898079707139";
+ shopLoginForm.Show();
+ }
+ break;
+ case "复制Cookie":
+ List cooks = null;
+ try { cooks = JsonHelper.DeserializeJsonToList(shop.Cookies); } catch (Exception ex) { }
+ if (cooks == null)
+ cooks = new List();
- switch (headerText)
- {
- case "检测":
- //CheckShopLoginAsync(new string[] { loginName });
- break;
- case "进入店铺":
- IsOperate = true;
- {
- WXAdminShopLoginForm adminLoginForm = new WXAdminShopLoginForm(shop);
- adminLoginForm.openType = EnumOpenType.manage;
- adminLoginForm.WindowState = FormWindowState.Maximized;
- adminLoginForm.InitUrl = "https://store.weixin.qq.com/shop/home";
- adminLoginForm.Show();
- }
- IsOperate = false;
- break;
- case "API购买":
- {
- WXAdminShopLoginForm shopLoginForm = new WXAdminShopLoginForm(shop);
- shopLoginForm.openType = EnumOpenType.manage;
- shopLoginForm.WindowState = FormWindowState.Maximized;
- shopLoginForm.InitUrl = "https://store.weixin.qq.com/shop/servicemarket/detail?serviceId=3984039898079707139";
- shopLoginForm.Show();
- }
- break;
- case "复制Cookie":
- List cooks = null;
- try { cooks = JsonHelper.DeserializeJsonToList(shop.Cookies); } catch (Exception ex) { }
- if (cooks == null)
- cooks = new List();
+ string cookJs = "";
+ var keys = new string[] { "_qimei_uuid", "_qpsvr_localtk", "biz_magic", "biz_rand", "biz_ticket", "biz_token", "ptcz", "RK", "yyb_muid" };
+ foreach (var shopCook in cooks)
+ {
+ var cookie = shopCook.Name + "=" + shopCook.Value;
+ if (!keys.Any(k => cookie.StartsWith(k)))
+ continue;
+ cookJs += "\r\ndocument.cookie='" + cookie.Substring(0, Math.Max(0, cookie.IndexOf("="))) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';";
+ }
+ foreach (var shopCook in cooks)
+ {
+ var cookie = shopCook.Name + "=" + shopCook.Value;
+ if (!keys.Any(k => cookie.StartsWith(k)))
+ continue;
+ if (!cookie.StartsWith("biz_magic") && !cookie.StartsWith("biz_rand") && !cookie.StartsWith("biz_ticket") && !cookie.StartsWith("biz_token"))
+ cookJs += "\r\ndocument.cookie='" + cookie + "; domain=.qq.com; expires=" +
+ DateTime.Now.AddMonths(1).ToUniversalTime().ToString("ddd, dd MMM yyyy HH:mm:ss 'UTC'", new DateTimeFormatInfo()) + "; path=/';";
+ else
+ cookJs += "\r\ndocument.cookie='" + cookie + "; domain=store.weixin.qq.com; expires=" +
+ DateTime.Now.AddMonths(1).ToUniversalTime().ToString("ddd, dd MMM yyyy HH:mm:ss 'UTC'", new DateTimeFormatInfo()) + "; path=/';";
+ }
+ cookJs += "\r\nsetTimeout(() => { window.location.href='https://store.weixin.qq.com/shop/goods/list'; }, 200)";
+ Clipboard.SetDataObject(cookJs);
+ BaseMsgForm.ShowInfo("复制成功");
+ break;
+ case "导入Cookie":
+ WXShopUpdateCookieForm updateCookieForm = new WXShopUpdateCookieForm(shop);
+ updateCookieForm.SaveComplete += UpdateCookieForm_SaveComplete;
+ updateCookieForm.ShowDialog();
+ break;
+ case "删除":
+ if (BaseMsgForm.ShowConfirm("确定删除店铺吗?删除后不可恢复!").DialogResult == DialogResult.Cancel)
+ return;
+ if (ShopBLL.AdminDelServerShop(shop))
+ SearchShop(this.ucSplitPage1.CurrentPage);
+ break;
+ case "编辑":
+ WXShopAddEditForm editForm = new WXShopAddEditForm(new List { shop });
+ editForm.SaveCompleteWithDescribe += EditForm_SaveCompleteWithDescribe;
+ editForm.ShowDialog();
+ break;
+ case "登录":
+ IsOperate = true;
+ {
+ WXAdminShopLoginForm shopLoginForm = new WXAdminShopLoginForm(shop);
+ shopLoginForm.openType = EnumOpenType.login;
+ shopLoginForm.SaveComplete += shopLoginForm_SaveComplete;
+ shopLoginForm.ShowDialog();
+ }
+ IsOperate = false;
+ break;
+ case "上传商品":
+ IsOperate = true;
+ {
+ //UploadProduct(shop);
+ }
+ IsOperate = false;
+ break;
- string cookJs = "";
- var keys = new string[] { "_qimei_uuid", "_qpsvr_localtk", "biz_magic", "biz_rand", "biz_ticket", "biz_token", "ptcz", "RK", "yyb_muid" };
- foreach (var shopCook in cooks)
- {
- var cookie = shopCook.Name + "=" + shopCook.Value;
- if (!keys.Any(k => cookie.StartsWith(k)))
- continue;
- cookJs += "\r\ndocument.cookie='" + cookie.Substring(0, Math.Max(0, cookie.IndexOf("="))) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';";
- }
- foreach (var shopCook in cooks)
- {
- var cookie = shopCook.Name + "=" + shopCook.Value;
- if (!keys.Any(k => cookie.StartsWith(k)))
- continue;
- if (!cookie.StartsWith("biz_magic") && !cookie.StartsWith("biz_rand") && !cookie.StartsWith("biz_ticket") && !cookie.StartsWith("biz_token"))
- cookJs += "\r\ndocument.cookie='" + cookie + "; domain=.qq.com; expires=" +
- DateTime.Now.AddMonths(1).ToUniversalTime().ToString("ddd, dd MMM yyyy HH:mm:ss 'UTC'", new DateTimeFormatInfo()) + "; path=/';";
- else
- cookJs += "\r\ndocument.cookie='" + cookie + "; domain=store.weixin.qq.com; expires=" +
- DateTime.Now.AddMonths(1).ToUniversalTime().ToString("ddd, dd MMM yyyy HH:mm:ss 'UTC'", new DateTimeFormatInfo()) + "; path=/';";
- }
- cookJs += "\r\nsetTimeout(() => { window.location.href='https://store.weixin.qq.com/shop/goods/list'; }, 200)";
- Clipboard.SetDataObject(cookJs);
- BaseMsgForm.ShowInfo("复制成功");
- break;
- case "导入Cookie":
- WXShopUpdateCookieForm updateCookieForm = new WXShopUpdateCookieForm(shop);
- updateCookieForm.SaveComplete += UpdateCookieForm_SaveComplete;
- updateCookieForm.ShowDialog();
- break;
- case "删除":
- if (BaseMsgForm.ShowConfirm("确定删除店铺吗?删除后不可恢复!").DialogResult == DialogResult.Cancel)
- return;
- if (ShopBLL.AdminDelServerShop(shop))
- SearchShop(this.ucSplitPage1.CurrentPage);
- break;
- case "编辑":
- WXShopAddEditForm editForm = new WXShopAddEditForm(new List { shop });
- editForm.SaveCompleteWithDescribe += EditForm_SaveCompleteWithDescribe;
- editForm.ShowDialog();
- break;
- case "登录":
- IsOperate = true;
- {
- WXAdminShopLoginForm shopLoginForm = new WXAdminShopLoginForm(shop);
- shopLoginForm.openType = EnumOpenType.login;
- shopLoginForm.SaveComplete += shopLoginForm_SaveComplete;
- shopLoginForm.ShowDialog();
- }
- IsOperate = false;
- break;
- case "上传商品":
- IsOperate = true;
- {
- //UploadProduct(shop);
- }
- IsOperate = false;
- break;
+ case "+":
+ case "±":
+ this.lblAddProdRemaining.Text = shop.ShopAccount + " " + shop.ShopId + " 调整选品限额";
+ this.lblShopId.Text = shop.ShopId;
+ this.numAddRemaining.Value = shop.AddProductRemaining;
+ this.pnlAddProdRemaining.Visible = true;
+ break;
+ case "永不过期":
- case "+":
- case "±":
- this.lblAddProdRemaining.Text = shop.ShopAccount + " " + shop.ShopId + " 调整选品限额";
- this.lblShopId.Text = shop.ShopId;
- this.numAddRemaining.Value = shop.AddProductRemaining;
- this.pnlAddProdRemaining.Visible = true;
- break;
- case "":
- dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value = !(bool)dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value;
- break;
- default:
- break;
- }
- }
+ var isNever = !(bool)dgvShop.Rows[e.RowIndex].Cells["col_never_expires"].Value;
+ if (await UpdateShopNeverExpires(shop.ShopId, ownerUser, isNever))
+ {
+ dgvShop.Rows[e.RowIndex].Cells["col_never_expires"].Value = isNever;
+ }
+ break;
+ case "":
+ dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value = !(bool)dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value;
+ break;
+ default:
+ break;
+ }
+ }
- private void UpdateCookieForm_SaveComplete(object obj)
- {
- Task.Run(() =>
- {
- //CheckShopListLogin(new string[] { (obj as DouShopLoginInfo).LoginName });
- //RefreshDataGridView(false);
- SearchShop(this.ucSplitPage1.CurrentPage);
- });
- }
+ private void UpdateCookieForm_SaveComplete(object obj)
+ {
+ Task.Run(() =>
+ {
+ //CheckShopListLogin(new string[] { (obj as DouShopLoginInfo).LoginName });
+ //RefreshDataGridView(false);
+ SearchShop(this.ucSplitPage1.CurrentPage);
+ });
+ }
- private void EditForm_SaveCompleteWithDescribe(object obj, object isAdd, object sender)
- {
- var shopInfoLst = obj as List;
- if (shopInfoLst != null)
- {
- this.pbLoading.Visible = true;
- Task.Run(() =>
- {
- int i = 1;
- foreach (var shopInfo in shopInfoLst)
- {
- Invoke(new Action(() =>{
- this.statusBar.pgbTaskProgress.Value = i;
- this.statusBar.pgbTaskProgress.Text = i + "/" + shopInfoLst.Count;
- i++;
- }));
- if ((isAdd as bool?) == true)
- {
- var shop = lstAdminShopInfo.FirstOrDefault(v => v.LoginName == shopInfo.LoginName);
- if (shop != null)
- {
- BaseMsgForm.ShowError("店铺" + shopInfo.LoginName + "已存在!");
- }
- else
- {
- ShopBLL.AdminAddServerShop(shopInfo);
- }
- }
- else
- {
- ShopBLL.AdminMdyServerShop(shopInfo);
- }
- }
- Invoke(new Action(() =>
- {
- this.pbLoading.Visible = false;
- this.statusBar.pgbTaskProgress.Text = "准备就绪";
- }));
- });
- SearchShop(this.ucSplitPage1.CurrentPage);
- }
- }
+ private void EditForm_SaveCompleteWithDescribe(object obj, object isAdd, object sender)
+ {
+ var shopInfoLst = obj as List;
+ if (shopInfoLst != null)
+ {
+ this.pbLoading.Visible = true;
+ Task.Run(() =>
+ {
+ int i = 1;
+ foreach (var shopInfo in shopInfoLst)
+ {
+ Invoke(new Action(() =>
+ {
+ this.statusBar.pgbTaskProgress.Value = i;
+ this.statusBar.pgbTaskProgress.Text = i + "/" + shopInfoLst.Count;
+ i++;
+ }));
+ if ((isAdd as bool?) == true)
+ {
+ var shop = lstAdminShopInfo.FirstOrDefault(v => v.LoginName == shopInfo.LoginName);
+ if (shop != null)
+ {
+ BaseMsgForm.ShowError("店铺" + shopInfo.LoginName + "已存在!");
+ }
+ else
+ {
+ ShopBLL.AdminAddServerShop(shopInfo);
+ }
+ }
+ else
+ {
+ ShopBLL.AdminMdyServerShop(shopInfo);
+ }
+ }
+ Invoke(new Action(() =>
+ {
+ this.pbLoading.Visible = false;
+ this.statusBar.pgbTaskProgress.Text = "准备就绪";
+ }));
+ });
+ SearchShop(this.ucSplitPage1.CurrentPage);
+ }
+ }
- private List GetCheckedList()
- {
- List shopLoginNameList = new List();
- for (int i = 0; i < dgvShop.Rows.Count; i++)
- {
- if (dgvShop.Rows[i].Cells["colSelect"].Value.ParseToBool())
- {
- string shopName = dgvShop.Rows[i].Cells["colLoginName"].Value.ParseToString();
- shopLoginNameList.Add(shopName);
- }
- }
- return shopLoginNameList;
- }
+ private List GetCheckedList()
+ {
+ List shopLoginNameList = new List();
+ for (int i = 0; i < dgvShop.Rows.Count; i++)
+ {
+ if (dgvShop.Rows[i].Cells["colSelect"].Value.ParseToBool())
+ {
+ string shopName = dgvShop.Rows[i].Cells["colLoginName"].Value.ParseToString();
+ shopLoginNameList.Add(shopName);
+ }
+ }
+ return shopLoginNameList;
+ }
- private List GetCheckedShopIdList()
- {
- List shopNameList = new List();
- for (int i = 0; i < dgvShop.Rows.Count; i++)
- {
- if (dgvShop.Rows[i].Cells["colSelect"].Value.ParseToBool())
- {
- string shopName = dgvShop.Rows[i].Cells["colShopId"].Value.ParseToString();
- shopName += dgvShop.Rows[i].Cells["colUser"].Value.ParseToString();
- shopNameList.Add(shopName);
- }
- }
- return shopNameList;
- }
+ private List GetCheckedShopIdList()
+ {
+ List shopNameList = new List();
+ for (int i = 0; i < dgvShop.Rows.Count; i++)
+ {
+ if (dgvShop.Rows[i].Cells["colSelect"].Value.ParseToBool())
+ {
+ string shopName = dgvShop.Rows[i].Cells["colShopId"].Value.ParseToString();
+ shopName += dgvShop.Rows[i].Cells["colUser"].Value.ParseToString();
+ shopNameList.Add(shopName);
+ }
+ }
+ return shopNameList;
+ }
- public List AdminGetServerShopLst(out int pageCount, out decimal seconds, int page = 1, int pageSize = 50)
- {
- List list = new List();
- pageCount = 1;
- seconds = 0;
+ public List AdminGetServerShopLst(out int pageCount, out decimal seconds, int page = 1, int pageSize = 50)
+ {
+ List list = new List();
+ pageCount = 1;
+ seconds = 0;
- var url = BaseClass.BuildObjString("shop/admin_get_shop_list");
- var data = UserLogin.GetSignaturex() +
- "&page=" + page +
- "&page_size=" + pageSize +
- "&search_user_name=" + txtUserName.Text.Trim() +
- "&search_login_name=" + txtLoginName.Text.Trim() +
- "&search_notes=" + txtNotes.Text.Trim() +
- "&search_id=" + txtShopId.Text.Trim() +
- "&search_name=" + txtShopName.Text.Trim();
- if (BaseClass.SaLevel > 1)
- data += "&operate_sub_sa_name=" + BaseClass.UserName;
- var html = GetHtml.PostUtf8(url, data);
- //if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
- // html = GetHtml.PostUtf8(url, data);
- //if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
- // html = GetHtml.PostUtf8(url, data);
- if (string.IsNullOrEmpty(html)
- || !html.Contains("shop_id") || !html.Contains("shop_account") || !html.Contains("login_pass"))
- {
- return list;
- }
+ var url = BaseClass.BuildObjString("shop/admin_get_shop_list");
+ var data = UserLogin.GetSignaturex() +
+ "&page=" + page +
+ "&page_size=" + pageSize +
+ "&search_user_name=" + txtUserName.Text.Trim() +
+ "&search_login_name=" + txtLoginName.Text.Trim() +
+ "&search_notes=" + txtNotes.Text.Trim() +
+ "&search_id=" + txtShopId.Text.Trim() +
+ "&search_name=" + txtShopName.Text.Trim();
+ if (BaseClass.SaLevel > 1)
+ data += "&operate_sub_sa_name=" + BaseClass.UserName;
+ var html = GetHtml.PostUtf8(url, data);
+ //if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
+ // html = GetHtml.PostUtf8(url, data);
+ //if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
+ // html = GetHtml.PostUtf8(url, data);
+ if (string.IsNullOrEmpty(html)
+ || !html.Contains("shop_id") || !html.Contains("shop_account") || !html.Contains("login_pass"))
+ {
+ return list;
+ }
- int count = BaseRegex.GetIntJson(ref html, "count");
- pageCount = Math.Ceiling(1.0 * count / pageSize).ParseToInt();
- pageCount = Math.Max(pageCount, 1);
- seconds = BaseRegex.GetDecimalJson(ref html, "seconds");
+ int count = BaseRegex.GetIntJson(ref html, "count");
+ pageCount = Math.Ceiling(1.0 * count / pageSize).ParseToInt();
+ pageCount = Math.Max(pageCount, 1);
+ seconds = BaseRegex.GetDecimalJson(ref html, "seconds");
- return ShopBLL.DeserializationShop(html);
- }
+ return ShopBLL.DeserializationShop(html);
+ }
- private void btnCheck_Click(object sender, EventArgs e)
- {
- if (this.btnCheck.Text == "检测选中")
- {
- List shopLoginNameList = GetCheckedList();
- if (!shopLoginNameList.Any())
- {
- BaseMsgForm.ShowError("请选择需要检测的店铺");
- return;
- }
+ private void btnCheck_Click(object sender, EventArgs e)
+ {
+ if (this.btnCheck.Text == "检测选中")
+ {
+ List shopLoginNameList = GetCheckedList();
+ if (!shopLoginNameList.Any())
+ {
+ BaseMsgForm.ShowError("请选择需要检测的店铺");
+ return;
+ }
- Task.Run(() =>
- {
- CheckShopListLogin(shopLoginNameList.Distinct().ToArray());
- SearchShop(this.ucSplitPage1.CurrentPage);
- });
- }
- }
+ Task.Run(() =>
+ {
+ CheckShopListLogin(shopLoginNameList.Distinct().ToArray());
+ SearchShop(this.ucSplitPage1.CurrentPage);
+ });
+ }
+ }
- ///
- /// 检测店铺授权状态
- ///
- ///
- ///
- public void CheckShopListLogin(string[] shopLoginNames, bool isShowProgress = true)
- {
- if (isShowProgress)
- {
- Invoke(new Action(() =>
- {
- this.pbLoading.Visible = true;
- this.statusBar.lblTaskStatus.Text = "正在检测...";
- this.statusBar.pgbTaskProgress.Maximum = shopLoginNames.Length;
- this.statusBar.UpdateProgressBar(0);
- }));
- }
+ ///
+ /// 检测店铺授权状态
+ ///
+ ///
+ ///
+ public void CheckShopListLogin(string[] shopLoginNames, bool isShowProgress = true)
+ {
+ if (isShowProgress)
+ {
+ Invoke(new Action(() =>
+ {
+ this.pbLoading.Visible = true;
+ this.statusBar.lblTaskStatus.Text = "正在检测...";
+ this.statusBar.pgbTaskProgress.Maximum = shopLoginNames.Length;
+ this.statusBar.UpdateProgressBar(0);
+ }));
+ }
- var shops = lstAdminShopInfo.Where(s => shopLoginNames.Contains(s.LoginName));
- CheckShopLogin(shops.ToArray(), isShowProgress);
+ var shops = lstAdminShopInfo.Where(s => shopLoginNames.Contains(s.LoginName));
+ CheckShopLogin(shops.ToArray(), isShowProgress);
- if (this.Created && isShowProgress)
- {
- this.Invoke(new Action(() =>
- {
- this.pbLoading.Visible = false;
- this.statusBar.lblTaskStatus.Text = "检测完毕";
- }));
- }
- }
+ if (this.Created && isShowProgress)
+ {
+ this.Invoke(new Action(() =>
+ {
+ this.pbLoading.Visible = false;
+ this.statusBar.lblTaskStatus.Text = "检测完毕";
+ }));
+ }
+ }
- public void CheckShopLogin(ShopLoginInfo[] shops, bool isShowProgress = true)
- {
- var shopLoginNames = shops.Select(s => s.LoginName).Distinct().ToArray();
- for (int i = 0; i < shopLoginNames.Length; i++)
- {
- var campanys = shops.Where(v => v.LoginName == shopLoginNames[i]).ToList();
- var shop = shops.FirstOrDefault(v => v.LoginName == shopLoginNames[i]);
+ public void CheckShopLogin(ShopLoginInfo[] shops, bool isShowProgress = true)
+ {
+ var shopLoginNames = shops.Select(s => s.LoginName).Distinct().ToArray();
+ for (int i = 0; i < shopLoginNames.Length; i++)
+ {
+ var campanys = shops.Where(v => v.LoginName == shopLoginNames[i]).ToList();
+ var shop = shops.FirstOrDefault(v => v.LoginName == shopLoginNames[i]);
- // 先从服务端取最新cookie
- var serverCampanys = ShopBLL.AdminGetServerShopLstByIds(campanys.Select(c => c.ShopId).ToList());
- var serverShop = serverCampanys.FirstOrDefault();
- if (shop != null && serverShop != null)
- {
- shop.Cookies = serverShop.Cookies;
- shop.Cookies2 = serverShop.Cookies2;
- foreach (var sc in campanys)
- {
- sc.Cookies = serverShop.Cookies;
- sc.Cookies2 = serverShop.Cookies2;
- }
- }
+ // 先从服务端取最新cookie
+ var serverCampanys = ShopBLL.AdminGetServerShopLstByIds(campanys.Select(c => c.ShopId).ToList());
+ var serverShop = serverCampanys.FirstOrDefault();
+ if (shop != null && serverShop != null)
+ {
+ shop.Cookies = serverShop.Cookies;
+ shop.Cookies2 = serverShop.Cookies2;
+ foreach (var sc in campanys)
+ {
+ sc.Cookies = serverShop.Cookies;
+ sc.Cookies2 = serverShop.Cookies2;
+ }
+ }
- if (shop != null)
- {
- var loginResult = WXShopListForm.CheckShopLogin(shop);
- if (loginResult.Contains("\"success\":true") && !loginResult.Contains("\"login\":true"))
- {
- shop.Cookies = "[]";
- foreach (var sc in campanys)
- {
- sc.LoginStatus = "未登录";
- shop.Cookies = "[]";
- }
- }
- else
- {
- foreach (var sc in campanys)
- {
- sc.LoginStatus = "登录成功";
- sc.LastRefreshDate = DateTime.Now.ToString("yyyyMMdd");
- }
- }
- WXShopListForm.UpdateServerShopCookies(shop); // 店铺cookie写入服务端,多店共用一个登录账号一组cookie
- }
- if (this.Created && isShowProgress)
- {
- this.Invoke(new Action(() =>
- {
- this.statusBar.lblTaskStatus.Text = "正在检测...";
- this.statusBar.pgbTaskProgress.Value = (i + 1);
- this.statusBar.pgbTaskProgress.Text = (i + 1) + "/" + shopLoginNames.Length;
- }));
- }
- }
- }
+ if (shop != null)
+ {
+ var loginResult = WXShopListForm.CheckShopLogin(shop);
+ if (loginResult.Contains("\"success\":true") && !loginResult.Contains("\"login\":true"))
+ {
+ shop.Cookies = "[]";
+ foreach (var sc in campanys)
+ {
+ sc.LoginStatus = "未登录";
+ shop.Cookies = "[]";
+ }
+ }
+ else
+ {
+ foreach (var sc in campanys)
+ {
+ sc.LoginStatus = "登录成功";
+ sc.LastRefreshDate = DateTime.Now.ToString("yyyyMMdd");
+ }
+ }
+ WXShopListForm.UpdateServerShopCookies(shop); // 店铺cookie写入服务端,多店共用一个登录账号一组cookie
+ }
+ if (this.Created && isShowProgress)
+ {
+ this.Invoke(new Action(() =>
+ {
+ this.statusBar.lblTaskStatus.Text = "正在检测...";
+ this.statusBar.pgbTaskProgress.Value = (i + 1);
+ this.statusBar.pgbTaskProgress.Text = (i + 1) + "/" + shopLoginNames.Length;
+ }));
+ }
+ }
+ }
- private void chkShowDelete_CheckedChanged(object sender, EventArgs e)
- {
- if(chkShowDelete.Checked)
- {
- this.dgvShop.Columns["colEdit"].Visible = true;
- this.dgvShop.Columns["colDelete"].Visible = true;
- }
- else
- {
- this.dgvShop.Columns["colEdit"].Visible = false;
- this.dgvShop.Columns["colDelete"].Visible = false;
- }
- }
+ private void chkShowDelete_CheckedChanged(object sender, EventArgs e)
+ {
+ if (chkShowDelete.Checked)
+ {
+ this.dgvShop.Columns["colEdit"].Visible = true;
+ this.dgvShop.Columns["colDelete"].Visible = true;
+ }
+ else
+ {
+ this.dgvShop.Columns["colEdit"].Visible = false;
+ this.dgvShop.Columns["colDelete"].Visible = false;
+ }
+ }
- private void btnSetSubSa_Click(object sender, EventArgs e)
- {
+ private void btnSetSubSa_Click(object sender, EventArgs e)
+ {
- var lstLoginName = dgvShop.Rows.Cast().Where(row
- => row.Cells["colSelect"]?.Value.ParseToBool() == true).Select(r => r.Cells["colLoginName"]?.Value.ToString()).ToList();
- var shopList = lstAdminShopInfo.Where(p => lstLoginName.Contains(p.LoginName)).ToArray();
+ var lstLoginName = dgvShop.Rows.Cast().Where(row
+ => row.Cells["colSelect"]?.Value.ParseToBool() == true).Select(r => r.Cells["colLoginName"]?.Value.ToString()).ToList();
+ var shopList = lstAdminShopInfo.Where(p => lstLoginName.Contains(p.LoginName)).ToArray();
- if (shopList.Count() <= 0)
- {
- BaseMsgForm.ShowError("请选择要分配二级超管的店铺!");
- return;
- }
+ if (shopList.Count() <= 0)
+ {
+ BaseMsgForm.ShowError("请选择要分配二级超管的店铺!");
+ return;
+ }
- WXAdminShopAddSubSaForm subSaForm = new WXAdminShopAddSubSaForm(
- shopList.Select(p => p.LoginName.ToString()).ToList()
- );
- subSaForm.SaveComplete += SubSaForm_SaveComplete;
- subSaForm.ShowDialog();
- }
+ WXAdminShopAddSubSaForm subSaForm = new WXAdminShopAddSubSaForm(
+ shopList.Select(p => p.LoginName.ToString()).ToList()
+ );
+ subSaForm.SaveComplete += SubSaForm_SaveComplete;
+ subSaForm.ShowDialog();
+ }
- private void SubSaForm_SaveComplete(object subSaName)
- {
- // 同店铺下商品分配给同一个二级超管
- var lstLoginName = dgvShop.Rows.Cast().Where(row
- => row.Cells["colSelect"]?.Value.ParseToBool() == true).Select(r => r.Cells["colLoginName"]?.Value.ToString()).ToList();
- var prodList = lstAdminShopInfo.Where(p => lstLoginName.Contains(p.LoginName)).ToArray();
+ private void SubSaForm_SaveComplete(object subSaName)
+ {
+ // 同店铺下商品分配给同一个二级超管
+ var lstLoginName = dgvShop.Rows.Cast().Where(row
+ => row.Cells["colSelect"]?.Value.ParseToBool() == true).Select(r => r.Cells["colLoginName"]?.Value.ToString()).ToList();
+ var prodList = lstAdminShopInfo.Where(p => lstLoginName.Contains(p.LoginName)).ToArray();
- var rows = dgvShop.Rows.Cast().Where(row => lstLoginName.Contains(row.Cells["colLoginName"]?.Value.ParseToString()));
- foreach (var row in rows)
- {
- row.Cells["colSubSa"].Value = subSaName.ParseToString();
- }
- foreach (var p in prodList)
- {
- p.OperateSubSaName = subSaName.ParseToString();
- }
- }
+ var rows = dgvShop.Rows.Cast().Where(row => lstLoginName.Contains(row.Cells["colLoginName"]?.Value.ParseToString()));
+ foreach (var row in rows)
+ {
+ row.Cells["colSubSa"].Value = subSaName.ParseToString();
+ }
+ foreach (var p in prodList)
+ {
+ p.OperateSubSaName = subSaName.ParseToString();
+ }
+ }
- private void dgvShop_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e)
- {
- }
+ private void dgvShop_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e)
+ {
+ }
- private void btnRemainOK_Click(object sender, EventArgs e)
- {
- var url = BaseClass.BuildObjString("shop/update_add_prod_remaining");
- var data = UserLogin.GetSignaturex() +
- "&remain_count=" + numAddRemaining.Text.Trim() +
- "&shop_ids=" + lblShopId.Text.Trim();
- var html = GetHtml.PostUtf8(url, data);
- if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
- html = GetHtml.PostUtf8(url, data);
- if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
- html = GetHtml.PostUtf8(url, data);
- if (html.Contains("\"code\":200"))
- {
- foreach (DataGridViewRow row in this.dgvShop.Rows)
- {
- if (row.Cells["colShopId"].Value.ParseToString() == lblShopId.Text.Trim())
- {
- row.Cells["colProductRemaining"].Value = numAddRemaining.Text.Trim();
- }
- }
- foreach(var shop in lstAdminShopInfo)
- {
- if (shop.ShopId == lblShopId.Text.Trim())
- shop.AddProductRemaining = numAddRemaining.Text.Trim().ParseToInt();
- }
- this.pnlAddProdRemaining.Visible = false;
- }
- else
- {
- var msg = BaseRegex.GetStringJson(ref html, "msg");
- if (string.IsNullOrEmpty(msg))
- msg = "选品限额修改失败!";
- BaseMsgForm.ShowError(msg);
- }
- }
+ private void btnRemainOK_Click(object sender, EventArgs e)
+ {
+ var url = BaseClass.BuildObjString("shop/update_add_prod_remaining");
+ var data = UserLogin.GetSignaturex() +
+ "&remain_count=" + numAddRemaining.Text.Trim() +
+ "&shop_ids=" + lblShopId.Text.Trim();
+ var html = GetHtml.PostUtf8(url, data);
+ if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
+ html = GetHtml.PostUtf8(url, data);
+ if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
+ html = GetHtml.PostUtf8(url, data);
+ if (html.Contains("\"code\":200"))
+ {
+ foreach (DataGridViewRow row in this.dgvShop.Rows)
+ {
+ if (row.Cells["colShopId"].Value.ParseToString() == lblShopId.Text.Trim())
+ {
+ row.Cells["colProductRemaining"].Value = numAddRemaining.Text.Trim();
+ }
+ }
+ foreach (var shop in lstAdminShopInfo)
+ {
+ if (shop.ShopId == lblShopId.Text.Trim())
+ shop.AddProductRemaining = numAddRemaining.Text.Trim().ParseToInt();
+ }
+ this.pnlAddProdRemaining.Visible = false;
+ }
+ else
+ {
+ var msg = BaseRegex.GetStringJson(ref html, "msg");
+ if (string.IsNullOrEmpty(msg))
+ msg = "选品限额修改失败!";
+ BaseMsgForm.ShowError(msg);
+ }
+ }
- private void pnlCancel_Click(object sender, EventArgs e)
- {
- this.pnlAddProdRemaining.Visible = false;
- }
+ private void pnlCancel_Click(object sender, EventArgs e)
+ {
+ this.pnlAddProdRemaining.Visible = false;
+ }
- private void btnExportShopErp_Click(object sender, EventArgs e)
- {
- //int success = 0;
- //foreach (var shop in lstAdminShopInfo)
- //{
- // ////if (user.group_id != "3")
- // //// continue;
+ private void btnExportShopErp_Click(object sender, EventArgs e)
+ {
+ //int success = 0;
+ //foreach (var shop in lstAdminShopInfo)
+ //{
+ // ////if (user.group_id != "3")
+ // //// continue;
- // //string prodDataStr = "{\"userName\":\"15288888888\",\"password\":\"Andy@1984\",\"phonenumber\":\"15288888888\",\"status\": \"0\",\"remark\":\"a15288888888.\",\"roleIds\":[\"5\"]}";
- // //prodDataStr = "{\"userName\":\"" + user.user_name + "\",\"password\":\"" + user.user_name + "\",\"phonenumber\":\"" + user.mobile +
- // // "\",\"status\": \"0\",\"nickName\":\"" + user.nick_name + "\",\"roleIds\":[\"5\"]}";
+ // //string prodDataStr = "{\"userName\":\"15288888888\",\"password\":\"Andy@1984\",\"phonenumber\":\"15288888888\",\"status\": \"0\",\"remark\":\"a15288888888.\",\"roleIds\":[\"5\"]}";
+ // //prodDataStr = "{\"userName\":\"" + user.user_name + "\",\"password\":\"" + user.user_name + "\",\"phonenumber\":\"" + user.mobile +
+ // // "\",\"status\": \"0\",\"nickName\":\"" + user.nick_name + "\",\"roleIds\":[\"5\"]}";
- // string url = "https://po.e57.cn/prod-api/api/oms-api/shop/addShopTemp";
- // string data = "{\"mainAccountUserName\":\"" + shop.UserName + "\",\"appId\":\"" + shop.ShopId + "\",\"shopName\":\"" + shop.ShopAccount + "\"}";
- // var exportRst = WXHttpResponseBLL.e57PostResponse(url, data, "");
- // if (exportRst.Contains("200"))
- // {
- // success++;
- // }
- // else
- // {
+ // string url = "https://po.e57.cn/prod-api/api/oms-api/shop/addShopTemp";
+ // string data = "{\"mainAccountUserName\":\"" + shop.UserName + "\",\"appId\":\"" + shop.ShopId + "\",\"shopName\":\"" + shop.ShopAccount + "\"}";
+ // var exportRst = WXHttpResponseBLL.e57PostResponse(url, data, "");
+ // if (exportRst.Contains("200"))
+ // {
+ // success++;
+ // }
+ // else
+ // {
- // }
- // //Thread.Sleep(500);
- //}
- }
+ // }
+ // //Thread.Sleep(500);
+ //}
+ }
- private void btnAddToAccount_Click(object sender, EventArgs e)
- {
- if (UserAccountInfo != null)
- {
- List shopLoginNameList = GetCheckedList().Distinct().ToList();
- if (!shopLoginNameList.Any())
- {
- BaseMsgForm.ShowError("请选择需要添加的店铺");
- IsOperate = false;
- return;
- }
+ private void btnAddToAccount_Click(object sender, EventArgs e)
+ {
+ if (UserAccountInfo != null)
+ {
+ List 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);
+ 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;
+ 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;
- }
+ 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++;
- CheckShopLogin(new ShopLoginInfo[] { shop }, false);
- }
- else
- failCount++;
- Thread.Sleep(100);
+ if (html.Contains("\"code\":200") || html.Contains("已存在"))
+ {
+ successCount++;
+ CheckShopLogin(new ShopLoginInfo[] { shop }, false);
+ }
+ 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.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);
- }));
- });
- }
- }
+ Invoke(new Action(() =>
+ {
+ this.pbLoading.Visible = false;
+ BaseMsgForm.ShowInfo("添加完成!");
+ this.statusBar.FinishProgressBar("添加完成 总计:" + totalCount + " 成功:" + successCount + " 失败:" + failCount);
+ }));
+ });
+ }
+ }
+
+ private void lblAddToAccount_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private async Task UpdateShopNeverExpires(string shopid, string ownerUser, bool isnever)
+ {
+ this.pbLoading.Visible = true;
+ try
+ {
+ var url = BaseClass.BuildObjString("shop/UpdateShopNeverExpires");
+ var data = UserLogin.GetSignPostData(new
+ {
+ ShopId = shopid,
+ IsNever = isnever,
+ OwnerUser = ownerUser
+ });
+
+ string html = await GetHtml.PostJsonAsync(url, data);
+ var ret = JsonConvert.DeserializeObject>(html);
+ if (ret.Code == 200)
+ {
+ return ret.Data;
+ }
+ return false;
+ }
+ catch
+ {
+ return false;
+ }
+ finally
+ {
+ this.pbLoading.Visible = false;
+ }
+ }
+ }
- private void lblAddToAccount_Click(object sender, EventArgs e)
- {
- }
- }
}
diff --git a/TEMUKJD/WXForms/AdminForms/WXAdminShopListForm.resx b/TEMUKJD/WXForms/AdminForms/WXAdminShopListForm.resx
index 8a85acf..739abe2 100644
--- a/TEMUKJD/WXForms/AdminForms/WXAdminShopListForm.resx
+++ b/TEMUKJD/WXForms/AdminForms/WXAdminShopListForm.resx
@@ -201,6 +201,9 @@
True
+
+ True
+
True