1688上传类目转换等优化 充值用户服务充值和用户续费店铺功能
This commit is contained in:
1 parent
ecb291e3d7
commit
aab73b978f
56 files changed
+4532
-1748
No files matched your search
@@ -227,7 +227,7 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
//this.dgvShop.Columns["colSubUser"].Visible = false;
|
||||
//this.dgvShop.Columns["colSubUserAccount"].Visible = false;
|
||||
}
|
||||
//if (BaseClass.UserAuthority.Contains("积分用户"))
|
||||
//if (BaseClass.UserAuthority.Contains("充值用户"))
|
||||
// this.dgvShop.Columns["colExpireTime"].Visible = true;
|
||||
|
||||
this.dgvShop.AddSelectorColumn("colSelect");
|
||||
|
||||
+251
-38
@@ -38,6 +38,8 @@
|
||||
this.btnEdit = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnLoginSelect = new TemuKJD.UserControls.ButtonEx();
|
||||
this.panel4 = new System.Windows.Forms.Panel();
|
||||
this.btnBatchRenewal = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnOpenOrderPage = new DevComponents.DotNetBar.PanelEx();
|
||||
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.cmbGroup = new TemuKJD.UserComponent.UcComboBoxMutiSelect();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
@@ -52,9 +54,18 @@
|
||||
this.cmbSubAccount = new TemuKJD.UserComponent.UcComboBoxMutiSelect();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.btnOpenOrder = new TemuKJD.UserControls.ButtonEx();
|
||||
this.btnAddShop = new TemuKJD.UserControls.ButtonEx();
|
||||
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
|
||||
this.pnlTopUp = new System.Windows.Forms.Panel();
|
||||
this.txtPrice = new System.Windows.Forms.Label();
|
||||
this.lblShopId = new System.Windows.Forms.Label();
|
||||
this.lblShopInfo = new System.Windows.Forms.Label();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.numAddTopUp = new System.Windows.Forms.NumericUpDown();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.btnTopUpCancel = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnTopUpOK = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnRefreshAuth = new TemuKJD.UserControls.ButtonEx();
|
||||
this.pbLoading = new System.Windows.Forms.PictureBox();
|
||||
this.btnImport = new TemuKJD.UserControls.ButtonEx();
|
||||
@@ -65,6 +76,7 @@
|
||||
this.colShopAccount = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colAddTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colExpireTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colRenewal = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colNotes = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colGroupName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colCookie = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -101,6 +113,9 @@
|
||||
this.splitContainer2.Panel1.SuspendLayout();
|
||||
this.splitContainer2.Panel2.SuspendLayout();
|
||||
this.splitContainer2.SuspendLayout();
|
||||
this.pnlTopUp.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numAddTopUp)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pbLoading)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvShop)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
@@ -230,8 +245,9 @@
|
||||
//
|
||||
// panel4
|
||||
//
|
||||
this.panel4.Controls.Add(this.btnBatchRenewal);
|
||||
this.panel4.Controls.Add(this.btnOpenOrderPage);
|
||||
this.panel4.Controls.Add(this.tableLayoutPanel1);
|
||||
this.panel4.Controls.Add(this.btnOpenOrder);
|
||||
this.panel4.Controls.Add(this.btnAddShop);
|
||||
this.panel4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel4.Location = new System.Drawing.Point(3, 3);
|
||||
@@ -239,6 +255,59 @@
|
||||
this.panel4.Size = new System.Drawing.Size(1133, 40);
|
||||
this.panel4.TabIndex = 0;
|
||||
//
|
||||
// btnBatchRenewal
|
||||
//
|
||||
this.btnBatchRenewal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnBatchRenewal.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnBatchRenewal.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnBatchRenewal.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnBatchRenewal.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnBatchRenewal.Location = new System.Drawing.Point(935, 9);
|
||||
this.btnBatchRenewal.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
|
||||
this.btnBatchRenewal.Name = "btnBatchRenewal";
|
||||
this.btnBatchRenewal.Size = new System.Drawing.Size(79, 23);
|
||||
this.btnBatchRenewal.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnBatchRenewal.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnBatchRenewal.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnBatchRenewal.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnBatchRenewal.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnBatchRenewal.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnBatchRenewal.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnBatchRenewal.Style.GradientAngle = 90;
|
||||
this.btnBatchRenewal.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnBatchRenewal.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnBatchRenewal.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnBatchRenewal.TabIndex = 806;
|
||||
this.btnBatchRenewal.Text = "批量续期";
|
||||
this.btnBatchRenewal.Visible = false;
|
||||
this.btnBatchRenewal.Click += new System.EventHandler(this.btnBatchRenewal_Click);
|
||||
//
|
||||
// btnOpenOrderPage
|
||||
//
|
||||
this.btnOpenOrderPage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnOpenOrderPage.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnOpenOrderPage.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnOpenOrderPage.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnOpenOrderPage.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnOpenOrderPage.Location = new System.Drawing.Point(1018, 9);
|
||||
this.btnOpenOrderPage.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
|
||||
this.btnOpenOrderPage.Name = "btnOpenOrderPage";
|
||||
this.btnOpenOrderPage.Size = new System.Drawing.Size(106, 23);
|
||||
this.btnOpenOrderPage.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnOpenOrderPage.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnOpenOrderPage.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnOpenOrderPage.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnOpenOrderPage.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnOpenOrderPage.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnOpenOrderPage.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnOpenOrderPage.Style.GradientAngle = 90;
|
||||
this.btnOpenOrderPage.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnOpenOrderPage.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnOpenOrderPage.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnOpenOrderPage.TabIndex = 802;
|
||||
this.btnOpenOrderPage.Text = "登录订单系统";
|
||||
this.btnOpenOrderPage.Click += new System.EventHandler(this.btnOpenOrder_Click);
|
||||
//
|
||||
// tableLayoutPanel1
|
||||
//
|
||||
this.tableLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
@@ -289,7 +358,7 @@
|
||||
this.cmbGroup.DropDownWidth = 1;
|
||||
this.cmbGroup.FormattingEnabled = true;
|
||||
this.cmbGroup.IntegralHeight = false;
|
||||
this.cmbGroup.Location = new System.Drawing.Point(385, 8);
|
||||
this.cmbGroup.Location = new System.Drawing.Point(385, 5);
|
||||
this.cmbGroup.Margin = new System.Windows.Forms.Padding(0, 0, 0, 4);
|
||||
this.cmbGroup.Name = "cmbGroup";
|
||||
this.cmbGroup.Size = new System.Drawing.Size(74, 25);
|
||||
@@ -315,7 +384,7 @@
|
||||
this.cmbNotes.DropDownWidth = 1;
|
||||
this.cmbNotes.FormattingEnabled = true;
|
||||
this.cmbNotes.IntegralHeight = false;
|
||||
this.cmbNotes.Location = new System.Drawing.Point(276, 8);
|
||||
this.cmbNotes.Location = new System.Drawing.Point(276, 5);
|
||||
this.cmbNotes.Margin = new System.Windows.Forms.Padding(0, 0, 0, 4);
|
||||
this.cmbNotes.Name = "cmbNotes";
|
||||
this.cmbNotes.Size = new System.Drawing.Size(74, 25);
|
||||
@@ -448,7 +517,7 @@
|
||||
this.cmbSubAccount.DropDownWidth = 1;
|
||||
this.cmbSubAccount.FormattingEnabled = true;
|
||||
this.cmbSubAccount.IntegralHeight = false;
|
||||
this.cmbSubAccount.Location = new System.Drawing.Point(506, 8);
|
||||
this.cmbSubAccount.Location = new System.Drawing.Point(506, 5);
|
||||
this.cmbSubAccount.Margin = new System.Windows.Forms.Padding(0, 0, 0, 4);
|
||||
this.cmbSubAccount.Name = "cmbSubAccount";
|
||||
this.cmbSubAccount.Size = new System.Drawing.Size(74, 25);
|
||||
@@ -477,24 +546,6 @@
|
||||
this.label6.TabIndex = 415;
|
||||
this.label6.Text = "分组";
|
||||
//
|
||||
// btnOpenOrder
|
||||
//
|
||||
this.btnOpenOrder.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnOpenOrder.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnOpenOrder.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnOpenOrder.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnOpenOrder.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnOpenOrder.ForeColor = System.Drawing.Color.White;
|
||||
this.btnOpenOrder.Location = new System.Drawing.Point(1012, 9);
|
||||
this.btnOpenOrder.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.btnOpenOrder.Name = "btnOpenOrder";
|
||||
this.btnOpenOrder.Size = new System.Drawing.Size(119, 25);
|
||||
this.btnOpenOrder.TabIndex = 465;
|
||||
this.btnOpenOrder.Text = "登录订单系统";
|
||||
this.btnOpenOrder.UseVisualStyleBackColor = false;
|
||||
this.btnOpenOrder.Visible = false;
|
||||
this.btnOpenOrder.Click += new System.EventHandler(this.btnOpenOrder_Click);
|
||||
//
|
||||
// btnAddShop
|
||||
//
|
||||
this.btnAddShop.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
@@ -522,6 +573,7 @@
|
||||
// splitContainer2.Panel1
|
||||
//
|
||||
this.splitContainer2.Panel1.BackColor = System.Drawing.Color.White;
|
||||
this.splitContainer2.Panel1.Controls.Add(this.pnlTopUp);
|
||||
this.splitContainer2.Panel1.Controls.Add(this.btnRefreshAuth);
|
||||
this.splitContainer2.Panel1.Controls.Add(this.pbLoading);
|
||||
this.splitContainer2.Panel1.Controls.Add(this.btnImport);
|
||||
@@ -536,6 +588,140 @@
|
||||
this.splitContainer2.SplitterDistance = 540;
|
||||
this.splitContainer2.TabIndex = 0;
|
||||
//
|
||||
// pnlTopUp
|
||||
//
|
||||
this.pnlTopUp.Anchor = System.Windows.Forms.AnchorStyles.None;
|
||||
this.pnlTopUp.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.pnlTopUp.Controls.Add(this.txtPrice);
|
||||
this.pnlTopUp.Controls.Add(this.lblShopId);
|
||||
this.pnlTopUp.Controls.Add(this.lblShopInfo);
|
||||
this.pnlTopUp.Controls.Add(this.panel2);
|
||||
this.pnlTopUp.Location = new System.Drawing.Point(460, 197);
|
||||
this.pnlTopUp.Name = "pnlTopUp";
|
||||
this.pnlTopUp.Size = new System.Drawing.Size(474, 146);
|
||||
this.pnlTopUp.TabIndex = 375;
|
||||
this.pnlTopUp.Visible = false;
|
||||
//
|
||||
// txtPrice
|
||||
//
|
||||
this.txtPrice.Location = new System.Drawing.Point(125, 115);
|
||||
this.txtPrice.Name = "txtPrice";
|
||||
this.txtPrice.Size = new System.Drawing.Size(322, 17);
|
||||
this.txtPrice.TabIndex = 457;
|
||||
this.txtPrice.Text = "预计续费点数:0";
|
||||
this.txtPrice.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
//
|
||||
// lblShopId
|
||||
//
|
||||
this.lblShopId.AutoSize = true;
|
||||
this.lblShopId.Location = new System.Drawing.Point(20, 115);
|
||||
this.lblShopId.Name = "lblShopId";
|
||||
this.lblShopId.Size = new System.Drawing.Size(50, 17);
|
||||
this.lblShopId.TabIndex = 456;
|
||||
this.lblShopId.Text = "ShopId";
|
||||
this.lblShopId.Visible = false;
|
||||
//
|
||||
// lblShopInfo
|
||||
//
|
||||
this.lblShopInfo.AutoSize = true;
|
||||
this.lblShopInfo.Location = new System.Drawing.Point(20, 19);
|
||||
this.lblShopInfo.Name = "lblShopInfo";
|
||||
this.lblShopInfo.Size = new System.Drawing.Size(61, 17);
|
||||
this.lblShopInfo.TabIndex = 455;
|
||||
this.lblShopInfo.Text = "ShopInfo";
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
||||
this.panel2.Controls.Add(this.label7);
|
||||
this.panel2.Controls.Add(this.numAddTopUp);
|
||||
this.panel2.Controls.Add(this.label8);
|
||||
this.panel2.Controls.Add(this.btnTopUpCancel);
|
||||
this.panel2.Controls.Add(this.btnTopUpOK);
|
||||
this.panel2.Location = new System.Drawing.Point(23, 52);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new System.Drawing.Size(424, 57);
|
||||
this.panel2.TabIndex = 454;
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(191, 19);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(32, 17);
|
||||
this.label7.TabIndex = 465;
|
||||
this.label7.Text = "个月";
|
||||
//
|
||||
// numAddTopUp
|
||||
//
|
||||
this.numAddTopUp.Location = new System.Drawing.Point(151, 16);
|
||||
this.numAddTopUp.Maximum = new decimal(new int[] {
|
||||
10000,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.numAddTopUp.Name = "numAddTopUp";
|
||||
this.numAddTopUp.Size = new System.Drawing.Size(36, 23);
|
||||
this.numAddTopUp.TabIndex = 1;
|
||||
this.numAddTopUp.ValueChanged += new System.EventHandler(this.numAddTopUp_ValueChanged);
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new System.Drawing.Point(87, 19);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(68, 17);
|
||||
this.label8.TabIndex = 456;
|
||||
this.label8.Text = "店铺续费:";
|
||||
//
|
||||
// btnTopUpCancel
|
||||
//
|
||||
this.btnTopUpCancel.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.btnTopUpCancel.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnTopUpCancel.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnTopUpCancel.Location = new System.Drawing.Point(284, 16);
|
||||
this.btnTopUpCancel.Name = "btnTopUpCancel";
|
||||
this.btnTopUpCancel.Size = new System.Drawing.Size(56, 23);
|
||||
this.btnTopUpCancel.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnTopUpCancel.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.btnTopUpCancel.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.btnTopUpCancel.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.btnTopUpCancel.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnTopUpCancel.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.btnTopUpCancel.Style.GradientAngle = 90;
|
||||
this.btnTopUpCancel.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnTopUpCancel.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnTopUpCancel.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnTopUpCancel.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnTopUpCancel.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnTopUpCancel.TabIndex = 458;
|
||||
this.btnTopUpCancel.Text = "取消";
|
||||
this.btnTopUpCancel.Click += new System.EventHandler(this.btnTopUpCancel_Click);
|
||||
//
|
||||
// btnTopUpOK
|
||||
//
|
||||
this.btnTopUpOK.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnTopUpOK.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnTopUpOK.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnTopUpOK.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnTopUpOK.Location = new System.Drawing.Point(225, 16);
|
||||
this.btnTopUpOK.Name = "btnTopUpOK";
|
||||
this.btnTopUpOK.Size = new System.Drawing.Size(56, 23);
|
||||
this.btnTopUpOK.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnTopUpOK.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnTopUpOK.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnTopUpOK.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnTopUpOK.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnTopUpOK.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnTopUpOK.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnTopUpOK.Style.GradientAngle = 90;
|
||||
this.btnTopUpOK.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnTopUpOK.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnTopUpOK.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnTopUpOK.TabIndex = 453;
|
||||
this.btnTopUpOK.Text = "确定";
|
||||
this.btnTopUpOK.Click += new System.EventHandler(this.btnTopUpOK_Click);
|
||||
//
|
||||
// btnRefreshAuth
|
||||
//
|
||||
this.btnRefreshAuth.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
@@ -607,6 +793,7 @@
|
||||
this.colShopAccount,
|
||||
this.colAddTime,
|
||||
this.colExpireTime,
|
||||
this.colRenewal,
|
||||
this.colNotes,
|
||||
this.colGroupName,
|
||||
this.colCookie,
|
||||
@@ -672,19 +859,27 @@
|
||||
//
|
||||
// colAddTime
|
||||
//
|
||||
this.colAddTime.FillWeight = 70F;
|
||||
this.colAddTime.FillWeight = 65F;
|
||||
this.colAddTime.HeaderText = "添加时间";
|
||||
this.colAddTime.Name = "colAddTime";
|
||||
this.colAddTime.ReadOnly = true;
|
||||
//
|
||||
// colExpireTime
|
||||
//
|
||||
this.colExpireTime.FillWeight = 70F;
|
||||
this.colExpireTime.FillWeight = 65F;
|
||||
this.colExpireTime.HeaderText = "到期时间";
|
||||
this.colExpireTime.Name = "colExpireTime";
|
||||
this.colExpireTime.ReadOnly = true;
|
||||
this.colExpireTime.Visible = false;
|
||||
//
|
||||
// colRenewal
|
||||
//
|
||||
this.colRenewal.FillWeight = 35F;
|
||||
this.colRenewal.HeaderText = "续期";
|
||||
this.colRenewal.Name = "colRenewal";
|
||||
this.colRenewal.ReadOnly = true;
|
||||
this.colRenewal.Visible = false;
|
||||
//
|
||||
// colNotes
|
||||
//
|
||||
this.colNotes.FillWeight = 90F;
|
||||
@@ -762,7 +957,7 @@
|
||||
//
|
||||
// colShopOperate
|
||||
//
|
||||
this.colShopOperate.FillWeight = 46F;
|
||||
this.colShopOperate.FillWeight = 50F;
|
||||
this.colShopOperate.HeaderText = "检测";
|
||||
this.colShopOperate.Name = "colShopOperate";
|
||||
this.colShopOperate.ReadOnly = true;
|
||||
@@ -772,7 +967,7 @@
|
||||
//
|
||||
// colRelogin
|
||||
//
|
||||
this.colRelogin.FillWeight = 40F;
|
||||
this.colRelogin.FillWeight = 50F;
|
||||
this.colRelogin.HeaderText = "登录";
|
||||
this.colRelogin.Name = "colRelogin";
|
||||
this.colRelogin.ReadOnly = true;
|
||||
@@ -781,7 +976,7 @@
|
||||
//
|
||||
// colSwitchLogin
|
||||
//
|
||||
this.colSwitchLogin.FillWeight = 60F;
|
||||
this.colSwitchLogin.FillWeight = 50F;
|
||||
this.colSwitchLogin.HeaderText = "批量登录";
|
||||
this.colSwitchLogin.Name = "colSwitchLogin";
|
||||
this.colSwitchLogin.ReadOnly = true;
|
||||
@@ -790,7 +985,7 @@
|
||||
//
|
||||
// colReLogin2
|
||||
//
|
||||
this.colReLogin2.FillWeight = 55F;
|
||||
this.colReLogin2.FillWeight = 50F;
|
||||
this.colReLogin2.HeaderText = "国际版状态";
|
||||
this.colReLogin2.Name = "colReLogin2";
|
||||
this.colReLogin2.ReadOnly = true;
|
||||
@@ -798,16 +993,17 @@
|
||||
//
|
||||
// colBuyApi
|
||||
//
|
||||
this.colBuyApi.FillWeight = 46F;
|
||||
this.colBuyApi.FillWeight = 50F;
|
||||
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;
|
||||
this.colBuyApi.Visible = false;
|
||||
//
|
||||
// colMultiLogin
|
||||
//
|
||||
this.colMultiLogin.FillWeight = 52F;
|
||||
this.colMultiLogin.FillWeight = 50F;
|
||||
this.colMultiLogin.HeaderText = "多重登录";
|
||||
this.colMultiLogin.Name = "colMultiLogin";
|
||||
this.colMultiLogin.ReadOnly = true;
|
||||
@@ -817,7 +1013,7 @@
|
||||
//
|
||||
// colApiAuth
|
||||
//
|
||||
this.colApiAuth.FillWeight = 70F;
|
||||
this.colApiAuth.FillWeight = 50F;
|
||||
this.colApiAuth.HeaderText = "上货授权";
|
||||
this.colApiAuth.Name = "colApiAuth";
|
||||
this.colApiAuth.ReadOnly = true;
|
||||
@@ -827,7 +1023,7 @@
|
||||
//
|
||||
// colBuyApiAuth
|
||||
//
|
||||
this.colBuyApiAuth.FillWeight = 70F;
|
||||
this.colBuyApiAuth.FillWeight = 50F;
|
||||
this.colBuyApiAuth.HeaderText = "拍单授权";
|
||||
this.colBuyApiAuth.Name = "colBuyApiAuth";
|
||||
this.colBuyApiAuth.ReadOnly = true;
|
||||
@@ -837,7 +1033,7 @@
|
||||
//
|
||||
// colUpdateCookies
|
||||
//
|
||||
this.colUpdateCookies.FillWeight = 67F;
|
||||
this.colUpdateCookies.FillWeight = 55F;
|
||||
this.colUpdateCookies.HeaderText = "导入Cookie";
|
||||
this.colUpdateCookies.Name = "colUpdateCookies";
|
||||
this.colUpdateCookies.ReadOnly = true;
|
||||
@@ -846,7 +1042,7 @@
|
||||
//
|
||||
// colCopyCookies
|
||||
//
|
||||
this.colCopyCookies.FillWeight = 70F;
|
||||
this.colCopyCookies.FillWeight = 55F;
|
||||
this.colCopyCookies.HeaderText = "复制Cookie";
|
||||
this.colCopyCookies.Name = "colCopyCookies";
|
||||
this.colCopyCookies.ReadOnly = true;
|
||||
@@ -855,7 +1051,7 @@
|
||||
//
|
||||
// colEdit
|
||||
//
|
||||
this.colEdit.FillWeight = 40F;
|
||||
this.colEdit.FillWeight = 35F;
|
||||
this.colEdit.HeaderText = "编辑";
|
||||
this.colEdit.Name = "colEdit";
|
||||
this.colEdit.ReadOnly = true;
|
||||
@@ -864,7 +1060,7 @@
|
||||
//
|
||||
// colDelete
|
||||
//
|
||||
this.colDelete.FillWeight = 40F;
|
||||
this.colDelete.FillWeight = 35F;
|
||||
this.colDelete.HeaderText = "删除";
|
||||
this.colDelete.Name = "colDelete";
|
||||
this.colDelete.ReadOnly = true;
|
||||
@@ -922,6 +1118,11 @@
|
||||
this.splitContainer2.Panel2.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
|
||||
this.splitContainer2.ResumeLayout(false);
|
||||
this.pnlTopUp.ResumeLayout(false);
|
||||
this.pnlTopUp.PerformLayout();
|
||||
this.panel2.ResumeLayout(false);
|
||||
this.panel2.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numAddTopUp)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pbLoading)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvShop)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
@@ -952,7 +1153,6 @@
|
||||
private System.Windows.Forms.Label label4;
|
||||
private DevComponents.DotNetBar.PanelEx btnEmpty;
|
||||
private UserComponent.UcComboBoxMutiSelect cmbNotes;
|
||||
public UserControls.ButtonEx btnOpenOrder;
|
||||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private UserComponent.UcComboBoxMutiSelect cmbSubAccount;
|
||||
@@ -962,12 +1162,23 @@
|
||||
private System.Windows.Forms.Label label6;
|
||||
private DevComponents.DotNetBar.PanelEx btnCheck;
|
||||
private DevComponents.DotNetBar.PanelEx btnEdit;
|
||||
private System.Windows.Forms.Panel pnlTopUp;
|
||||
private System.Windows.Forms.Label lblShopInfo;
|
||||
private System.Windows.Forms.Panel panel2;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.NumericUpDown numAddTopUp;
|
||||
private System.Windows.Forms.Label label8;
|
||||
private DevComponents.DotNetBar.PanelEx btnTopUpCancel;
|
||||
private DevComponents.DotNetBar.PanelEx btnTopUpOK;
|
||||
private System.Windows.Forms.Label lblShopId;
|
||||
private System.Windows.Forms.Label txtPrice;
|
||||
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 colAddTime;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colExpireTime;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colRenewal;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colNotes;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colGroupName;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colCookie;
|
||||
@@ -990,5 +1201,7 @@
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colCopyCookies;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colEdit;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colDelete;
|
||||
private DevComponents.DotNetBar.PanelEx btnBatchRenewal;
|
||||
private DevComponents.DotNetBar.PanelEx btnOpenOrderPage;
|
||||
}
|
||||
}
|
||||
@@ -38,6 +38,12 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
GlobalConfig.ShopLoginList.RemoveAll(s => !serverShopList.Any(ss => ss.LoginName == s.LoginName && ss.ShopId == s.ShopId));
|
||||
foreach (var serverShop in serverShopList)
|
||||
{
|
||||
|
||||
if (serverShop.ShopId == "wx2543ce37a0009883")
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
var localShop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.LoginName == serverShop.LoginName && s.ShopId == serverShop.ShopId);
|
||||
if (localShop != null)
|
||||
{
|
||||
@@ -64,6 +70,8 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
localShop.AddProductRemaining = serverShop.AddProductRemaining;
|
||||
localShop.OperateSubSaName = serverShop.OperateSubSaName;
|
||||
localShop.TrialUploadCount = Math.Max(0, serverShop.TrialUploadCount);
|
||||
localShop.is_point_shop_expire = serverShop.is_point_shop_expire;
|
||||
localShop.expire_time = serverShop.expire_time;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -77,12 +85,13 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
List<ShopLoginInfo> list = new List<ShopLoginInfo>();
|
||||
|
||||
int page = 0;
|
||||
int pageSize = 100;
|
||||
while (true)
|
||||
{
|
||||
page++;
|
||||
|
||||
var url = BaseClass.BuildObjString("shop/get_shop_list");
|
||||
var data = UserLogin.GetSignaturex() + "&page=" + page;
|
||||
var data = UserLogin.GetSignaturex() + "&page=" + page + "&page_size=" + pageSize;
|
||||
var html = GetHtml.PostUtf8(url, data);
|
||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||
html = GetHtml.PostUtf8(url, data);
|
||||
@@ -95,11 +104,19 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
break;
|
||||
}
|
||||
|
||||
var jArr = JObject.Parse(html)["data"];
|
||||
if (jArr.Count() == 0)
|
||||
break;
|
||||
var count = BaseRegex.GetIntJson(ref html, "count");
|
||||
var totalPage = Math.Ceiling(1.0m * count / pageSize).ParseToInt();
|
||||
|
||||
list.AddRange(ShopBLL.DeserializationShop(html));
|
||||
try
|
||||
{
|
||||
list.AddRange(ShopBLL.DeserializationShop(html));
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
|
||||
if (page >= totalPage)
|
||||
break;
|
||||
}
|
||||
return list;
|
||||
}
|
||||
@@ -388,7 +405,6 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
}
|
||||
else
|
||||
GlobalConfig.ShopLoginList.Add(shop);
|
||||
StartUp.SaveLocalShopLoginInfo();
|
||||
ShopBLL.AddServerShop(shop);
|
||||
}
|
||||
}
|
||||
@@ -408,7 +424,9 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
if (isLoading)
|
||||
{
|
||||
//BaseMsgForm.ShowError("当前正在加载,请稍等");
|
||||
return;
|
||||
Thread.Sleep(100);
|
||||
if (isLoading)
|
||||
return;
|
||||
}
|
||||
|
||||
Task.Run(() =>
|
||||
@@ -542,7 +560,8 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
param.ShopId,
|
||||
param.ShopAccount,
|
||||
param.AddTime.ToString("yy-MM-dd HH:mm"),
|
||||
param.is_shop_expire ? "已过期" : BaseClass.StampToDateTime(param.expire_time.ParseToInt()).ToString("yy-MM-dd HH:mm"),
|
||||
param.is_point_shop_expire ? "已过期" : BaseClass.StampToDateTime(param.expire_time.ParseToInt()).ToString("yy-MM-dd HH:mm"),
|
||||
"续期",
|
||||
param.Notes,
|
||||
param.GroupName,
|
||||
param.Cookies,
|
||||
@@ -597,7 +616,8 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
dgvr.Cells["colBuyAccount"].Value = param.BuyAccount;
|
||||
dgvr.Cells["colChatAccount"].Value = param.ChatAccount;
|
||||
dgvr.Cells["colRelogin"].Value = string.IsNullOrWhiteSpace(param.LoginStatus) ? "未登录" : param.LoginStatus.Trim();
|
||||
dgvr.Cells["colExpireTime"].Value = param.is_shop_expire ? "已过期" : BaseClass.StampToDateTime(param.expire_time.ParseToInt()).ToString("yy-MM-dd HH:mm");
|
||||
dgvr.Cells["colExpireTime"].Value = param.is_point_shop_expire ? "已过期" : BaseClass.StampToDateTime(param.expire_time.ParseToInt()).ToString("yy-MM-dd HH:mm");
|
||||
dgvr.Cells["colExpireTime"].Style.ForeColor = dgvr.Cells["colExpireTime"].Value.ParseToString() == "已过期" ? Color.Red : Color.Blue;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -681,7 +701,6 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
}
|
||||
}
|
||||
UpdateServerShopCookies(shop, null, isShowProgress); // 店铺cookie写入服务端,多店共用一个登录账号一组cookie
|
||||
StartUp.SaveLocalShopLoginInfo();
|
||||
}
|
||||
|
||||
if (this.Created && isShowProgress)
|
||||
@@ -723,6 +742,10 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
|
||||
private void ShopListForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.dgvShop.Columns["colExpireTime"].Visible = false;
|
||||
this.dgvShop.Columns["colRenewal"].Visible = false;
|
||||
this.btnBatchRenewal.Visible = false;
|
||||
|
||||
if (BaseClass.GroupId != 3)
|
||||
{
|
||||
//this.dgvShop.Columns["ColEdit"].Visible = false;
|
||||
@@ -733,8 +756,15 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
this.btnAddShop.Visible = false;
|
||||
//this.btnEdit.Visible = false;
|
||||
}
|
||||
if (BaseClass.UserAuthority.Contains("积分用户"))
|
||||
if (BaseClass.UserAuthority.Contains("充值用户") || BaseClass.ParentAuthority.Contains("充值用户"))
|
||||
{
|
||||
this.dgvShop.Columns["colExpireTime"].Visible = true;
|
||||
if (BaseClass.GroupId == 3)
|
||||
{
|
||||
this.dgvShop.Columns["colRenewal"].Visible = true;
|
||||
btnBatchRenewal.Visible = true;
|
||||
}
|
||||
}
|
||||
|
||||
this.dgvShop.AddSelectorColumn("colSelect");
|
||||
this.chkAutoDrag.Checked = GlobalConfig.TemuShopSettingParam.IsAutoDragLogin;
|
||||
@@ -774,6 +804,7 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
string loginName = dgvShop.Rows[e.RowIndex].Cells["colLoginName"].Value.ParseToString();
|
||||
string accountId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToString();
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(v => v.LoginName == loginName && v.ShopId == accountId);
|
||||
var row = dgvShop.Rows[e.RowIndex];
|
||||
|
||||
switch (headerText)
|
||||
{
|
||||
@@ -842,7 +873,6 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
return;
|
||||
DeleteShop(e.RowIndex);
|
||||
DelServerDouShop(shop.LoginName);
|
||||
StartUp.SaveLocalShopLoginInfo();
|
||||
break;
|
||||
case "编辑":
|
||||
WXShopAddEditForm editForm = new WXShopAddEditForm(new List<ShopLoginInfo> { shop });
|
||||
@@ -878,6 +908,12 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
}
|
||||
}
|
||||
break;
|
||||
case "续期":
|
||||
lblShopId.Text = shop.ShopId;
|
||||
lblShopInfo.Text = shop.ShopAccount;
|
||||
numAddTopUp.Value = 0;
|
||||
pnlTopUp.Visible = true;
|
||||
break;
|
||||
//case "多重登录":
|
||||
// IsOperate = true;
|
||||
// ShopLoginForm shopMultiLoginForm = new ShopLoginForm(shop);
|
||||
@@ -1164,5 +1200,94 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
editForm.SaveCompleteWithDescribe += Sae_SaveComplete;
|
||||
editForm.ShowDialog();
|
||||
}
|
||||
|
||||
private void btnTopUpCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
pnlTopUp.Visible = false;
|
||||
}
|
||||
|
||||
private void btnTopUpOK_Click(object sender, EventArgs e)
|
||||
{
|
||||
//var row = pnlTopUp.Tag as DataGridViewRow;
|
||||
//if (row == null)
|
||||
// return;
|
||||
//var shopId = row.Cells["colShopId"].Value.ParseToString();
|
||||
//if (shopId == null)
|
||||
// return;
|
||||
//var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
|
||||
//if (shop == null)
|
||||
// return;
|
||||
var shopIds = lblShopId.Text.Split(';');
|
||||
pbLoading.Visible = true;
|
||||
pbLoading.BringToFront();
|
||||
string errMsg = "";
|
||||
Task.Run(() =>
|
||||
{
|
||||
foreach (var shopId in shopIds)
|
||||
{
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
|
||||
if (shop == null)
|
||||
continue;
|
||||
|
||||
string url = BaseClass.BuildObjString("user/update_user_points");
|
||||
string data = UserLogin.GetSignaturex();
|
||||
data += "&update_user_name=" + BaseClass.UserName;
|
||||
data += "&update_user_nick=" + BaseClass.NickName;
|
||||
data += "&option_type=" + "续费";
|
||||
data += "&operator_type=" + "用户";
|
||||
data += "&operator_name=" + BaseClass.UserName;
|
||||
data += "&delta_points=" + (numAddTopUp.Value * 30).ParseToInt();
|
||||
data += "&shop_id=" + shopId;
|
||||
data += "&shop_account=" + shop.ShopAccount;
|
||||
|
||||
string html = GetHtml.PostUtf8(url, data.ToString()).Trim();
|
||||
Thread.Sleep(100);
|
||||
if (!html.Contains("\"code\":200"))
|
||||
{
|
||||
var msg = BaseRegex.GetStringJsonByRegs(ref html, html, "msg");
|
||||
errMsg += shop.ShopAccount + ":" + msg + " ";
|
||||
continue;
|
||||
}
|
||||
|
||||
shop.expire_time = BaseRegex.GetIntJson(ref html, "newExpireTime");
|
||||
shop.is_point_shop_expire = false;
|
||||
BaseClass.Points = BaseRegex.GetIntJson(ref html, "newUserPoints");
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
MainForm.instance.lblPoints.Text = "账户积分:" + BaseClass.Points;
|
||||
}));
|
||||
RefreshDataGridView(true, new List<ShopLoginInfo>() { shop });
|
||||
}
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
pnlTopUp.Visible = false;
|
||||
pbLoading.Visible = false;
|
||||
if (string.IsNullOrEmpty(errMsg))
|
||||
{
|
||||
BaseMsgForm.ShowInfo("充值完成");
|
||||
}
|
||||
else
|
||||
{
|
||||
BaseMsgForm.ShowInfo("充值完成 发生以下错误:\r\n" + errMsg);
|
||||
}
|
||||
}));
|
||||
});
|
||||
}
|
||||
|
||||
private void numAddTopUp_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.txtPrice.Text = "预计续费点数:" + (numAddTopUp.Value * lblShopId.Text.Split(';').Length * 30).ParseToString();
|
||||
}
|
||||
|
||||
private void btnBatchRenewal_Click(object sender, EventArgs e)
|
||||
{
|
||||
List<string> shopNameList = GetCheckedList();
|
||||
List<ShopLoginInfo> shops = GlobalConfig.ShopLoginList.Where(s => shopNameList.Contains(s.ShopId)).ToList();
|
||||
|
||||
lblShopId.Text = string.Join(";", shops.Select(s => s.ShopId));
|
||||
lblShopInfo.Text = string.Join(" ", shops.Select(s => s.ShopAccount));
|
||||
numAddTopUp.Value = 0;
|
||||
pnlTopUp.Visible = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -135,6 +135,9 @@
|
||||
<metadata name="colExpireTime.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colRenewal.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colNotes.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
private string shopCookieHead = "qq.com";
|
||||
private string shopLoginUrl = "https://store.weixin.qq.com/shop?redirect_url=%2Fhome";
|
||||
private string shopMainUrl = "https://store.weixin.qq.com/shop/home";
|
||||
public ChromiumWebBrowser cefWebBrowser = null;
|
||||
public ChromiumWebBrowser cefWebBrowser { get; set; } = null;
|
||||
private ShopLoginInfo shop = null;
|
||||
private ConcurrentList<ShopCompany> lstShopCompany = new ConcurrentList<ShopCompany>();
|
||||
private string currentUrl = "";
|
||||
@@ -784,7 +784,6 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
if (shop != null)
|
||||
{
|
||||
shop.DictMultiCookies.Remove(cmbMultiCookieName.Text);
|
||||
StartUp.SaveLocalShopLoginInfo();
|
||||
|
||||
InitMultiLoginCookies();
|
||||
}
|
||||
|
||||
@@ -169,7 +169,7 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
{
|
||||
if (shopEntity == null)
|
||||
return;
|
||||
if (shopEntity.is_shop_expire)
|
||||
if (shopEntity.is_point_shop_expire)
|
||||
return;
|
||||
if (selectShopId == null)
|
||||
selectShopId = new List<string>();
|
||||
|
||||
Reference in new issue
Block a user