超级店铺管理功能

This commit is contained in:
wule committed 2025-07-09 10:09:32 +08:00
1 parent d3e404ac2a
commit fe2d2883db
91 files changed
+4295 -587

No files matched your search

@@ -116,7 +116,7 @@ namespace TemuKJD.KJDForms.ShopForms
}
int count = 0;
public void RefreshDataGridView(DouShopLoginInfo shop,string message)
public void RefreshDataGridView(ShopLoginInfo shop,string message)
{
this.Invoke(new Action(() =>
{
@@ -91,12 +91,12 @@ namespace TemuKJD.KJDForms.ShopForms
dgvShop.Rows.Remove(row);
}
// 绑定其他店铺(含新导入的店铺)
foreach (DouShopLoginInfo shopEntity in GlobalConfig.ShopLoginList)
foreach (ShopLoginInfo shopEntity in GlobalConfig.ShopLoginList)
{
BindShop(shopEntity, selectIds);
}
}
private void BindShop(DouShopLoginInfo shopEntity, List<string> selectShopId = null)
private void BindShop(ShopLoginInfo shopEntity, List<string> selectShopId = null)
{
if (shopEntity == null)
return;
@@ -18,10 +18,10 @@ namespace TemuKJD.KJDForms.ShopForms
{
public partial class FreightTemplateListForm : Form
{
public DouShopLoginInfo Shop = null;
public ShopLoginInfo Shop = null;
public List<FreightTemplateInfo> LstTemplate = new List<FreightTemplateInfo>();
public FreightTemplateListForm(DouShopLoginInfo shop = null)
public FreightTemplateListForm(ShopLoginInfo shop = null)
{
InitializeComponent();
@@ -26,11 +26,11 @@ namespace TemuKJD.KJDForms.ShopForms
public int CloseAfterSecond { get; set; }
public string shopAuthUrl = "https://fuwu.jinritemai.com/authorize?service_id=815";
private ChromiumWebBrowser cefWebBrowser = null;
private DouShopLoginInfo shop = null;
private ShopLoginInfo shop = null;
private bool isCefLoad = false;
private string currentUrl = "";
public ShopAuthForm(DouShopLoginInfo shopInfo)
public ShopAuthForm(ShopLoginInfo shopInfo)
{
InitializeComponent();
+39 -4
View File
@@ -44,12 +44,16 @@
this.label1 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.btnOk = new TemuKJD.UserControls.ButtonEx();
this.txtNotes = new DevComponents.DotNetBar.Controls.TextBoxX();
this.label8 = new System.Windows.Forms.Label();
this.panel2.SuspendLayout();
this.SuspendLayout();
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.White;
this.panel2.Controls.Add(this.label8);
this.panel2.Controls.Add(this.txtNotes);
this.panel2.Controls.Add(this.label7);
this.panel2.Controls.Add(this.cmbGroup);
this.panel2.Controls.Add(this.txtBuyAccount);
@@ -91,7 +95,7 @@
"上货",
"数据",
"登录"});
this.cmbGroup.Location = new System.Drawing.Point(91, 169);
this.cmbGroup.Location = new System.Drawing.Point(91, 257);
this.cmbGroup.Name = "cmbGroup";
this.cmbGroup.Size = new System.Drawing.Size(172, 25);
this.cmbGroup.TabIndex = 383;
@@ -108,7 +112,7 @@
this.txtBuyAccount.Border.PaddingLeft = 2;
this.txtBuyAccount.Border.PaddingRight = 2;
this.txtBuyAccount.Border.PaddingTop = 2;
this.txtBuyAccount.Location = new System.Drawing.Point(91, 134);
this.txtBuyAccount.Location = new System.Drawing.Point(91, 240);
this.txtBuyAccount.Name = "txtBuyAccount";
this.txtBuyAccount.Size = new System.Drawing.Size(172, 23);
this.txtBuyAccount.TabIndex = 382;
@@ -120,7 +124,7 @@
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(29, 137);
this.label6.Location = new System.Drawing.Point(29, 243);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(56, 17);
this.label6.TabIndex = 381;
@@ -224,7 +228,7 @@
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(29, 172);
this.label5.Location = new System.Drawing.Point(29, 260);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(56, 17);
this.label5.TabIndex = 377;
@@ -247,6 +251,35 @@
this.btnOk.UseVisualStyleBackColor = false;
this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
//
// txtNotes
//
//
//
//
this.txtNotes.Border.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.txtNotes.Border.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.txtNotes.Border.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.txtNotes.Border.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.txtNotes.Border.Class = "CrumbBarBackgroundKey";
this.txtNotes.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.txtNotes.Border.PaddingBottom = 2;
this.txtNotes.Border.PaddingLeft = 2;
this.txtNotes.Border.PaddingRight = 2;
this.txtNotes.Border.PaddingTop = 2;
this.txtNotes.Location = new System.Drawing.Point(91, 133);
this.txtNotes.Name = "txtNotes";
this.txtNotes.Size = new System.Drawing.Size(172, 23);
this.txtNotes.TabIndex = 385;
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(29, 135);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(56, 17);
this.label8.TabIndex = 386;
this.label8.Text = " 备注";
//
// ShopAddEditForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
@@ -282,5 +315,7 @@
private System.Windows.Forms.Label label4;
private System.Windows.Forms.ComboBox cmbGroup;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label8;
private DevComponents.DotNetBar.Controls.TextBoxX txtNotes;
}
}
+20 -8
View File
@@ -15,10 +15,10 @@ namespace TemuKJD.KJDForms.ShopForms
{
public partial class ShopAddEditForm : LRBaseForm
{
DouShopLoginInfo shopLoginInfo = null;
ShopLoginInfo shopLoginInfo = null;
bool isAdd = true;
public ShopAddEditForm(DouShopLoginInfo shop = null)
public ShopAddEditForm(ShopLoginInfo shop = null)
{
InitializeComponent();
shopLoginInfo = shop;
@@ -40,12 +40,23 @@ namespace TemuKJD.KJDForms.ShopForms
}
if (shopLoginInfo == null)
shopLoginInfo = new DouShopLoginInfo();
shopLoginInfo = new ShopLoginInfo();
shopLoginInfo.LoginName = this.txtLoginName.Text.Trim();
if (!string.IsNullOrEmpty(this.txtShopPassword.Text.Trim()))
shopLoginInfo.Password = DataOpenSSL.EncryptString(this.txtShopPassword.Text.Trim());
shopLoginInfo.Group = this.cmbGroup.Text;
shopLoginInfo.GroupName = this.cmbGroup.Text;
shopLoginInfo.Notes = this.txtNotes.Text;
shopLoginInfo.CompanyName = AllBase.BaseClass.CompanyName;
// 同一个登录账号下的店铺使用同样的groupName和Notes
var shopLst = GlobalConfig.ShopLoginList.Where(s => s.LoginName == shopLoginInfo.LoginName && s.ShopId != shopLoginInfo.ShopId).ToList();
foreach (var shop in shopLst)
{
shop.GroupName = shopLoginInfo.GroupName;
shop.Notes = shopLoginInfo.Notes;
}
this.OnSaveComplete(shopLoginInfo, isAdd);
this.Close();
}
@@ -61,13 +72,14 @@ namespace TemuKJD.KJDForms.ShopForms
this.cmbGroup.Items.Add(string.Empty);
foreach (var shop in GlobalConfig.ShopLoginList)
{
if (!string.IsNullOrEmpty(shop.Group) && !this.cmbGroup.Items.Contains(shop.Group))
this.cmbGroup.Items.Add(shop.Group);
if (!string.IsNullOrEmpty(shop.GroupName) && !this.cmbGroup.Items.Contains(shop.GroupName))
this.cmbGroup.Items.Add(shop.GroupName);
}
if (shopLoginInfo != null)
{
this.txtLoginName.Text = shopLoginInfo.LoginName;
this.cmbGroup.Text = shopLoginInfo.Group;
this.cmbGroup.Text = shopLoginInfo.GroupName;
this.txtNotes.Text = shopLoginInfo.Notes;
this.btnOk.Text = "更新";
this.TitleText = "编辑店铺 - " + shopLoginInfo.ShopAccount;
this.txtBuyAccount.Text = shopLoginInfo.BuyAccount;
@@ -109,7 +121,7 @@ namespace TemuKJD.KJDForms.ShopForms
private void F_SaveComplete(object obj)
{
var shop = obj as DouShopLoginInfo;
var shop = obj as ShopLoginInfo;
if (shop != null)
{
this.txtBuyAccount.Text = shop.BuyAccount;
+12 -8
View File
@@ -33,14 +33,16 @@
System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("运费模板");
System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("高级运费模板");
System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("素材库管理");
System.Windows.Forms.TreeNode treeNode6 = new System.Windows.Forms.TreeNode("超级用户管理");
System.Windows.Forms.TreeNode treeNode7 = new System.Windows.Forms.TreeNode("店铺管理", new System.Windows.Forms.TreeNode[] {
System.Windows.Forms.TreeNode treeNode6 = new System.Windows.Forms.TreeNode("超级店铺管理");
System.Windows.Forms.TreeNode treeNode7 = new System.Windows.Forms.TreeNode("超级用户管理");
System.Windows.Forms.TreeNode treeNode8 = new System.Windows.Forms.TreeNode("店铺管理", new System.Windows.Forms.TreeNode[] {
treeNode1,
treeNode2,
treeNode3,
treeNode4,
treeNode5,
treeNode6});
treeNode6,
treeNode7});
this.panel1 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
@@ -141,12 +143,14 @@
treeNode4.Text = "高级运费模板";
treeNode5.Name = "素材库管理";
treeNode5.Text = "素材库管理";
treeNode6.Name = "超级用户管理";
treeNode6.Text = "超级用户管理";
treeNode7.Name = "店铺管理";
treeNode7.Text = "店铺管理";
treeNode6.Name = "超级店铺管理";
treeNode6.Text = "超级店铺管理";
treeNode7.Name = "超级用户管理";
treeNode7.Text = "超级用户管理";
treeNode8.Name = "店铺管理";
treeNode8.Text = "店铺管理";
this.tv.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
treeNode7});
treeNode8});
this.tv.OverForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.tv.Size = new System.Drawing.Size(140, 461);
this.tv.TabIndex = 1;
+17 -8
View File
@@ -9,7 +9,7 @@ using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using TemuKJD.KJDForms.AccountForms;
using TemuKJD.KJDForms.AdminForms;
namespace TemuKJD.KJDForms.ShopForms
{
@@ -20,7 +20,8 @@ namespace TemuKJD.KJDForms.ShopForms
public Lazy<FreightTemplateAddForm> freightForm = new Lazy<FreightTemplateAddForm>();
public Lazy<FreightTemplateForm> freightTemplateForm = new Lazy<FreightTemplateForm>();
public Lazy<MaterialManageForm> materialManageForm = new Lazy<MaterialManageForm>();
public Lazy<MainAccountForm> mainAccountForm = new Lazy<MainAccountForm>();
public Lazy<AdminAccountForm> adminAccountForm = new Lazy<AdminAccountForm>();
public Lazy<AdminShopForm> adminShopForm = new Lazy<AdminShopForm>();
public ShopForm()
{
@@ -31,12 +32,17 @@ namespace TemuKJD.KJDForms.ShopForms
tv.SelectedNode = tv.Nodes[0].Nodes[0];
tv.ExpandGroup(tv.Nodes[0].Name);
List<string> hideName = new List<string>() { "高级运费模板", "运费模板", "素材库管理", "超级用户管理" };
List<string> hideName = new List<string>() { "用户管理", "高级运费模板", "运费模板", "素材库管理", "超级用户管理", "超级店铺管理" };
if (BaseClass.GroupId != 3)
hideName.Add("用户管理");
if (BaseClass.GroupId == 3 && (BaseClass.UserName == "18888888888" || BaseClass.UserName == "15266666666"))
hideName.Remove("超级用户管理");
if (BaseClass.GroupId == 3)
{
hideName.Remove("用户管理");
if (BaseClass.UserName == "18888888888" || BaseClass.UserName == "15333333333")
{
hideName.Remove("超级用户管理");
hideName.Remove("超级店铺管理");
}
}
foreach (var item in hideName)
{
@@ -77,7 +83,10 @@ namespace TemuKJD.KJDForms.ShopForms
SetForm(materialManageForm.Value);
break;
case "超级用户管理":
SetForm(mainAccountForm.Value);
SetForm(adminAccountForm.Value);
break;
case "超级店铺管理":
SetForm(adminShopForm.Value);
break;
}
}));
+165 -43
View File
@@ -39,20 +39,27 @@
this.btnLoginSelect = new TemuKJD.UserControls.ButtonEx();
this.btnCheck = new TemuKJD.UserControls.ButtonEx();
this.panel4 = new System.Windows.Forms.Panel();
this.pnlEmpty = new DevComponents.DotNetBar.PanelEx();
this.btnSearch = new TemuKJD.UserControls.ButtonEx();
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.btnImport = new TemuKJD.UserControls.ButtonEx();
this.btnAddShop = new TemuKJD.UserControls.ButtonEx();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.pbLoading = new System.Windows.Forms.PictureBox();
this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx();
this.chkAutoDrag = new System.Windows.Forms.CheckBox();
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
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.conNotes = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colCookie = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colSubUser = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colGroup = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colGroupName = 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();
@@ -66,6 +73,8 @@
this.colCopyCookies = new System.Windows.Forms.DataGridViewLinkColumn();
this.colEdit = new System.Windows.Forms.DataGridViewLinkColumn();
this.colDelete = new System.Windows.Forms.DataGridViewLinkColumn();
this.chkAutoDrag = new System.Windows.Forms.CheckBox();
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
@@ -187,6 +196,14 @@
//
// panel4
//
this.panel4.Controls.Add(this.pnlEmpty);
this.panel4.Controls.Add(this.btnSearch);
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.Controls.Add(this.btnImport);
this.panel4.Controls.Add(this.btnAddShop);
this.panel4.Dock = System.Windows.Forms.DockStyle.Fill;
@@ -195,6 +212,94 @@
this.panel4.Size = new System.Drawing.Size(822, 40);
this.panel4.TabIndex = 0;
//
// pnlEmpty
//
this.pnlEmpty.CanvasColor = System.Drawing.SystemColors.Control;
this.pnlEmpty.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.pnlEmpty.DisabledBackColor = System.Drawing.Color.Empty;
this.pnlEmpty.Location = new System.Drawing.Point(769, 9);
this.pnlEmpty.Name = "pnlEmpty";
this.pnlEmpty.Size = new System.Drawing.Size(66, 26);
this.pnlEmpty.Style.Alignment = System.Drawing.StringAlignment.Center;
this.pnlEmpty.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.pnlEmpty.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.pnlEmpty.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.pnlEmpty.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.pnlEmpty.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.pnlEmpty.Style.GradientAngle = 90;
this.pnlEmpty.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
this.pnlEmpty.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.pnlEmpty.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.pnlEmpty.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.pnlEmpty.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
this.pnlEmpty.TabIndex = 409;
this.pnlEmpty.Text = "清空条件";
this.pnlEmpty.Click += new System.EventHandler(this.btnEmpty_Click);
//
// btnSearch
//
this.btnSearch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnSearch.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnSearch.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSearch.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSearch.ForeColor = System.Drawing.Color.White;
this.btnSearch.Location = new System.Drawing.Point(698, 9);
this.btnSearch.Margin = new System.Windows.Forms.Padding(2);
this.btnSearch.Name = "btnSearch";
this.btnSearch.Size = new System.Drawing.Size(66, 26);
this.btnSearch.TabIndex = 372;
this.btnSearch.Text = "搜索";
this.btnSearch.UseVisualStyleBackColor = false;
this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
//
// txtNotes
//
this.txtNotes.Location = new System.Drawing.Point(574, 11);
this.txtNotes.Name = "txtNotes";
this.txtNotes.Size = new System.Drawing.Size(110, 23);
this.txtNotes.TabIndex = 376;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(538, 14);
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(415, 11);
this.txtShopName.Name = "txtShopName";
this.txtShopName.Size = new System.Drawing.Size(110, 23);
this.txtShopName.TabIndex = 374;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(367, 14);
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(245, 11);
this.txtShopId.Name = "txtShopId";
this.txtShopId.Size = new System.Drawing.Size(110, 23);
this.txtShopId.TabIndex = 372;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(197, 14);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(55, 17);
this.label2.TabIndex = 373;
this.label2.Text = "店铺id:";
//
// btnImport
//
this.btnImport.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
@@ -284,9 +389,10 @@
this.colLoginName,
this.colShopId,
this.colShopAccount,
this.conNotes,
this.colCookie,
this.colSubUser,
this.colGroup,
this.colGroupName,
this.colUploadAccount,
this.colBuyAccount,
this.colChatAccount,
@@ -311,31 +417,6 @@
this.dgvShop.TabIndex = 5;
this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick);
//
// 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(907, 2);
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;
this.chkAutoDrag.Click += new System.EventHandler(this.chkAutoDrag_Click);
//
// 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(1063, 28);
this.statusBar.TabIndex = 1;
//
// colSelect
//
this.colSelect.FillWeight = 26F;
@@ -347,14 +428,14 @@
//
// colLoginName
//
this.colLoginName.FillWeight = 69.42601F;
this.colLoginName.FillWeight = 69.426F;
this.colLoginName.HeaderText = "店铺登录号码";
this.colLoginName.Name = "colLoginName";
this.colLoginName.ReadOnly = true;
//
// colShopId
//
this.colShopId.FillWeight = 69.42601F;
this.colShopId.FillWeight = 69.426F;
this.colShopId.HeaderText = "店铺Id";
this.colShopId.Name = "colShopId";
this.colShopId.ReadOnly = true;
@@ -365,6 +446,12 @@
this.colShopAccount.Name = "colShopAccount";
this.colShopAccount.ReadOnly = true;
//
// conNotes
//
this.conNotes.HeaderText = "备注";
this.conNotes.Name = "conNotes";
this.conNotes.ReadOnly = true;
//
// colCookie
//
this.colCookie.HeaderText = "店铺Cookie";
@@ -379,17 +466,17 @@
this.colSubUser.Name = "colSubUser";
this.colSubUser.ReadOnly = true;
//
// colGroup
// colGroupName
//
this.colGroup.FillWeight = 69.42601F;
this.colGroup.HeaderText = "店铺分组";
this.colGroup.Name = "colGroup";
this.colGroup.ReadOnly = true;
this.colGroup.Visible = false;
this.colGroupName.FillWeight = 69.426F;
this.colGroupName.HeaderText = "店铺分组";
this.colGroupName.Name = "colGroupName";
this.colGroupName.ReadOnly = true;
this.colGroupName.Visible = false;
//
// colUploadAccount
//
this.colUploadAccount.FillWeight = 69.42601F;
this.colUploadAccount.FillWeight = 69.426F;
this.colUploadAccount.HeaderText = "上货账户";
this.colUploadAccount.Name = "colUploadAccount";
this.colUploadAccount.ReadOnly = true;
@@ -397,7 +484,7 @@
//
// colBuyAccount
//
this.colBuyAccount.FillWeight = 69.42601F;
this.colBuyAccount.FillWeight = 69.426F;
this.colBuyAccount.HeaderText = "采购账户";
this.colBuyAccount.Name = "colBuyAccount";
this.colBuyAccount.ReadOnly = true;
@@ -405,7 +492,7 @@
//
// colChatAccount
//
this.colChatAccount.FillWeight = 69.42601F;
this.colChatAccount.FillWeight = 69.426F;
this.colChatAccount.HeaderText = "客服账户";
this.colChatAccount.Name = "colChatAccount";
this.colChatAccount.ReadOnly = true;
@@ -458,7 +545,7 @@
//
// colApiAuth
//
this.colApiAuth.FillWeight = 69.42601F;
this.colApiAuth.FillWeight = 69.426F;
this.colApiAuth.HeaderText = "上货授权";
this.colApiAuth.Name = "colApiAuth";
this.colApiAuth.ReadOnly = true;
@@ -468,7 +555,7 @@
//
// colBuyApiAuth
//
this.colBuyApiAuth.FillWeight = 69.42601F;
this.colBuyApiAuth.FillWeight = 69.426F;
this.colBuyApiAuth.HeaderText = "拍单授权";
this.colBuyApiAuth.Name = "colBuyApiAuth";
this.colBuyApiAuth.ReadOnly = true;
@@ -501,6 +588,31 @@
this.colDelete.Name = "colDelete";
this.colDelete.ReadOnly = true;
//
// 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(907, 2);
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;
this.chkAutoDrag.Click += new System.EventHandler(this.chkAutoDrag_Click);
//
// 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(1063, 28);
this.statusBar.TabIndex = 1;
//
// ShopListForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
@@ -522,6 +634,7 @@
this.tableLayoutPanel2.ResumeLayout(false);
this.panel5.ResumeLayout(false);
this.panel4.ResumeLayout(false);
this.panel4.PerformLayout();
this.splitContainer2.Panel1.ResumeLayout(false);
this.splitContainer2.Panel2.ResumeLayout(false);
this.splitContainer2.Panel2.PerformLayout();
@@ -551,13 +664,21 @@
private System.Windows.Forms.CheckBox chkAutoDrag;
private UserControls.ButtonEx btnRefreshAuth;
private System.Windows.Forms.PictureBox pbLoading;
private System.Windows.Forms.TextBox txtShopName;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox txtShopId;
private System.Windows.Forms.Label label2;
private UserControls.ButtonEx btnSearch;
private System.Windows.Forms.TextBox txtNotes;
private System.Windows.Forms.Label label4;
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 conNotes;
private System.Windows.Forms.DataGridViewTextBoxColumn colCookie;
private System.Windows.Forms.DataGridViewTextBoxColumn colSubUser;
private System.Windows.Forms.DataGridViewTextBoxColumn colGroup;
private System.Windows.Forms.DataGridViewTextBoxColumn colGroupName;
private System.Windows.Forms.DataGridViewTextBoxColumn colUploadAccount;
private System.Windows.Forms.DataGridViewTextBoxColumn colBuyAccount;
private System.Windows.Forms.DataGridViewTextBoxColumn colChatAccount;
@@ -571,5 +692,6 @@
private System.Windows.Forms.DataGridViewLinkColumn colCopyCookies;
private System.Windows.Forms.DataGridViewLinkColumn colEdit;
private System.Windows.Forms.DataGridViewLinkColumn colDelete;
private DevComponents.DotNetBar.PanelEx pnlEmpty;
}
}
+69 -32
View File
@@ -29,7 +29,7 @@ namespace TemuKJD.KJDForms.ShopForms
private bool isLoading { get; set; } = false;
#region 服务端店铺管理
public static string AddServerDouShop(DouShopLoginInfo _shop)
public static string AddServerDouShop(ShopLoginInfo _shop)
{
var url = BaseClass.BuildObjString("shop/add_shop");
var data = UserLogin.GetSignaturex()
@@ -38,8 +38,10 @@ namespace TemuKJD.KJDForms.ShopForms
+ "&shop_id=" + _shop.ShopId
+ "&shop_account=" + _shop.ShopAccount
+ "&cookie=" + _shop.Cookies
+ "&shop_group=" + GetHtml.UrlEncodeUtf8(_shop.Group)
+ "&sub_user_name=" + GetHtml.UrlEncodeUtf8(_shop.SubUserName);
+ "&shop_group=" + GetHtml.UrlEncodeUtf8(_shop.GroupName)
+ "&sub_user_name=" + GetHtml.UrlEncodeUtf8(_shop.SubUserName)
+ "&notes=" + GetHtml.UrlEncodeUtf8(_shop.Notes)
+ "&login_status=" + _shop.LoginStatus;
var result = GetHtml.PostUtf8(url, data);
if (!result.Contains("\"code\":200") && !result.Contains("已达上限") && !result.Contains("已存在"))
@@ -56,14 +58,15 @@ namespace TemuKJD.KJDForms.ShopForms
return result;
}
public static string MdyServerDouShop(DouShopLoginInfo _shop)
public static string MdyServerDouShop(ShopLoginInfo _shop)
{
var url = BaseClass.BuildObjString("shop/mdy_shop");
var data = UserLogin.GetSignaturex()
+ "&login_name=" + _shop.LoginName
+ "&login_pass=" + GetHtml.UrlEncodeUtf8(_shop.Password)
+ "&shop_group=" + GetHtml.UrlEncodeUtf8(_shop.Group)
+ "&sub_user_name=" + GetHtml.UrlEncodeUtf8(_shop.SubUserName);
+ "&shop_group=" + GetHtml.UrlEncodeUtf8(_shop.GroupName)
+ "&sub_user_name=" + GetHtml.UrlEncodeUtf8(_shop.SubUserName)
+ "&notes=" + GetHtml.UrlEncodeUtf8(_shop.Notes);
var result = GetHtml.PostUtf8(url, data);
if (!result.Contains("\"code\":200") && !result.Contains("已达上限") && !result.Contains("已存在"))
@@ -80,9 +83,9 @@ namespace TemuKJD.KJDForms.ShopForms
return result;
}
public static List<DouShopLoginInfo> GetServerDouShop()
public static List<ShopLoginInfo> GetServerShop()
{
List<DouShopLoginInfo> list = new List<DouShopLoginInfo>();
List<ShopLoginInfo> list = new List<ShopLoginInfo>();
int page = 0;
while (true)
@@ -109,7 +112,7 @@ namespace TemuKJD.KJDForms.ShopForms
foreach (JObject jObj in jArr)
{
string shopStr = jObj.ToString();
DouShopLoginInfo shop = new DouShopLoginInfo();
ShopLoginInfo shop = new ShopLoginInfo();
shop.DbId = BaseRegex.GetStringJson(ref shopStr, "id");
if (shop.DbId == null)
continue;
@@ -117,10 +120,14 @@ namespace TemuKJD.KJDForms.ShopForms
shop.Password = BaseRegex.GetStringJson(ref shopStr, "login_pass");
shop.ShopId = BaseRegex.GetStringJson(ref shopStr, "shop_id");
shop.ShopAccount = BaseRegex.GetStringJson(ref shopStr, "shop_account");
shop.UserName = BaseRegex.GetStringJson(ref shopStr, "user_name");
shop.SubUserName = BaseRegex.GetStringJson(ref shopStr, "sub_user_name");
shop.Group = BaseRegex.GetStringJson(ref shopStr, "shop_group");
shop.GroupName = BaseRegex.GetStringJson(ref shopStr, "shop_group");
shop.Cookies = BaseRegex.GetStringJson(ref shopStr, "cookie");
shop.Cookies = shop.Cookies.Replace("&", "&").Replace("%", "%").Replace("+", "+");
shop.CompanyName = BaseRegex.GetStringJson(ref shopStr, "company_name");
shop.Notes = BaseRegex.GetStringJson(ref shopStr, "notes");
shop.LoginStatus = BaseRegex.GetStringJson(ref shopStr, "login_status");
//shop.PayStatus = BaseRegex.GetIntJson(ref shopStr, "shop_pay_status");
//if (list.Any(l => l.ShopId == shop.ShopId) || list.Any(l => l.ShopName == shop.ShopName))
// continue;
@@ -167,7 +174,7 @@ namespace TemuKJD.KJDForms.ShopForms
return list;
}
public static void UpdateShopTokens(List<DouShopLoginInfo> shops)
public static void UpdateShopTokens(List<ShopLoginInfo> shops)
{
string shopIds = "";
foreach (var shop in shops)
@@ -247,13 +254,13 @@ namespace TemuKJD.KJDForms.ShopForms
/// <param name="shopName">店铺名称</param>
/// <param name="shopCookies">cookies</param>
/// <param name="fromTool">工具名称(可不填写)</param>
public static void UpdateServerShopCookies(DouShopLoginInfo shop, string shopCookies, string fromTool = null)
public static void UpdateServerShopCookies(ShopLoginInfo shop, string shopCookies, string fromTool = null)
{
var fTool = string.IsNullOrEmpty(fromTool) ? "" : "&from_tool=" + fromTool;
var url = BaseClass.BuildObjString("shop/mdy_shop");
var url = BaseClass.BuildObjString("shop/mdy_shop_cookie_and_login_status");
var data = UserLogin.GetSignaturex()
+ "&login_name=" + shop.LoginName
+ "&sub_user_name=" + shop.SubUserName
+ "&login_status=" + shop.LoginStatus
+ "&cookie=" + shopCookies.Replace("&", "&").Replace("%", "%").Replace("+", "+")
+ fTool;
var result = GetHtml.PostUtf8(url, data);
@@ -303,7 +310,7 @@ namespace TemuKJD.KJDForms.ShopForms
private void Sae_SaveComplete(object obj, object isAdd)
{
var shopInfo = obj as DouShopLoginInfo;
var shopInfo = obj as ShopLoginInfo;
if (shopInfo != null)
{
if ((isAdd as bool?) == true)
@@ -375,14 +382,14 @@ namespace TemuKJD.KJDForms.ShopForms
var productArr = strArr[i].Split(new string[] { "-----" }, StringSplitOptions.RemoveEmptyEntries);
if (productArr.Length >= 2)
{
DouShopLoginInfo shop = new DouShopLoginInfo
ShopLoginInfo shop = new ShopLoginInfo
{
LoginName = productArr[0],
Password = DataOpenSSL.EncryptString(productArr[1]),
};
if (productArr.Length >= 3)
{
shop.Group = productArr[3];
shop.GroupName = productArr[3];
}
//ShopLoginForm shopLoginForm = new ShopLoginForm(shop);
@@ -394,7 +401,7 @@ namespace TemuKJD.KJDForms.ShopForms
if (shopInfo != null)
{
shopInfo.Password = shop.Password;
shopInfo.Group = shop.Group;
shopInfo.GroupName = shop.GroupName;
}
else
GlobalConfig.ShopLoginList.Add(shop);
@@ -432,6 +439,19 @@ namespace TemuKJD.KJDForms.ShopForms
|| GlobalConfig.ShopLoginList.Where(ss=>ss.LoginName == s.LoginName).Count() == 1)
.OrderBy(s=>s.LoginName).ToList();
if (!string.IsNullOrEmpty(txtNotes.Text))
{
shopList = shopList.Where(s => s.Notes.ParseToString().ToLower().Contains(txtNotes.Text.ToLower())).ToList();
}
if (!string.IsNullOrEmpty(txtShopId.Text))
{
shopList = shopList.Where(s => s.ShopId.ParseToString().ToLower().Contains(txtShopId.Text.ToLower())).ToList();
}
if (!string.IsNullOrEmpty(txtShopName.Text))
{
shopList = shopList.Where(s => s.ShopAccount.ParseToString().ToLower().Contains(txtShopName.Text.ToLower())).ToList();
}
this.Invoke(new Action(() =>
{
this.dgvShop.Rows.Clear();
@@ -465,7 +485,7 @@ namespace TemuKJD.KJDForms.ShopForms
});
}
private void AddDataGridViewRow(DouShopLoginInfo param, bool isRefresh = false)
private void AddDataGridViewRow(ShopLoginInfo param, bool isRefresh = false)
{
if (!this.Created)
return;
@@ -490,9 +510,10 @@ namespace TemuKJD.KJDForms.ShopForms
param.LoginName,
param.ShopId,
param.ShopAccount,
param.Notes,
param.Cookies,
param.SubUserName,
param.Group,
param.GroupName,
param.UploadAccount,
param.BuyAccount,
param.ChatAccount,
@@ -515,7 +536,7 @@ namespace TemuKJD.KJDForms.ShopForms
}));
}
private void UpdateDataGridViewRowToken(DataGridViewRow dgvr, DouShopLoginInfo param)
private void UpdateDataGridViewRowToken(DataGridViewRow dgvr, ShopLoginInfo param)
{
if (dgvr == null || param == null)
return;
@@ -524,7 +545,9 @@ namespace TemuKJD.KJDForms.ShopForms
dgvr.Cells["colBuyApiAuth"].Value = param.BuyApiAuth.ApiAuthStatus;
dgvr.Cells["colLoginName"].Value = param.LoginName;
dgvr.Cells["colShopAccount"].Value = param.ShopAccount;
dgvr.Cells["colGroup"].Value = param.Group;
dgvr.Cells["colNotes"].Value = param.Notes;
dgvr.Cells["colCookie"].Value = param.Cookies;
dgvr.Cells["colGroupName"].Value = param.GroupName;
dgvr.Cells["colUploadAccount"].Value = param.UploadAccount;
dgvr.Cells["colBuyAccount"].Value = param.BuyAccount;
dgvr.Cells["colChatAccount"].Value = param.ChatAccount;
@@ -542,6 +565,7 @@ namespace TemuKJD.KJDForms.ShopForms
{
Invoke(new Action(() =>
{
this.pbLoading.Visible = true;
this.statusBar.lblTaskStatus.Text = "正在检测...";
this.statusBar.pgbTaskProgress.Value = 0;
this.statusBar.pgbTaskProgress.Maximum = shopNames.Length;
@@ -555,6 +579,7 @@ namespace TemuKJD.KJDForms.ShopForms
{
this.Invoke(new Action(() =>
{
this.pbLoading.Visible = true;
this.statusBar.lblTaskStatus.Text = "检测完毕";
}));
}
@@ -575,26 +600,18 @@ namespace TemuKJD.KJDForms.ShopForms
foreach(var sc in campanys)
{
sc.LoginStatus = "登录成功";
//var shopId = BaseRegex.GetStringJson(ref loginResult, "id");
//var shopToken = BaseRegex.GetStringJson(ref loginResult, "token");
//var shopName = BaseRegex.GetStringJson(ref loginResult, "shop_name");
//var mobile = BaseRegex.GetStringJson(ref loginResult, "mobile");
//if (!string.IsNullOrEmpty(shopId)) shop.ShopId = shopId;
//if (!string.IsNullOrEmpty(shopToken)) shop.ShopToken = shopToken;
//if (!string.IsNullOrEmpty(shopName)) shop.ShopAccount = shopName;
//if (!string.IsNullOrEmpty(mobile)) shop.Mobile = mobile;
}
}
else
{
foreach (var sc in campanys)
{
//sc.LoginStatus = "登录失败";
sc.LoginStatus = "未登录";
}
}
//if (!string.IsNullOrEmpty(loginResult))
// shop.LastRefreshDate = DateTime.Now.ToString("yyyyMMdd");
UpdateServerShopCookies(shop, shop.Cookies); // 店铺cookie写入服务端,多店共用一个登录账号一组cookie
StartUp.SaveLocalShopLoginInfo();
}
if (this.Created && isShowProgress)
@@ -609,7 +626,7 @@ namespace TemuKJD.KJDForms.ShopForms
}
}
private string GetShopStatus(DouShopLoginInfo shop)
public static string GetShopStatus(ShopLoginInfo shop)
{
//if (shop.ShopAccount == "权益服务齐全的专营店")
//{
@@ -954,6 +971,21 @@ namespace TemuKJD.KJDForms.ShopForms
}
}
private void btnSearch_Click(object sender, EventArgs e)
{
Task.Run(() =>
{
RefreshDataGridView(false);
});
}
private void btnEmpty_Click(object sender, EventArgs e)
{
this.txtNotes.Text = "";
this.txtShopId.Text = "";
this.txtShopName.Text = "";
}
private static string sJsSetCookie = @"
function setCookie(name, value, daysToLive, path, domain, secure, httpOnly, sameSite) {
//let cookie = name + '=' + encodeURIComponent(value) + ';';
@@ -989,5 +1021,10 @@ function setCookie(name, value, daysToLive, path, domain, secure, httpOnly, same
}
document.cookie = cookie;
}";
private void buttonEx1_Click(object sender, EventArgs e)
{
}
}
}
+4 -1
View File
@@ -129,13 +129,16 @@
<metadata name="colShopAccount.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="conNotes.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colCookie.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colSubUser.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colGroup.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="colGroupName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colUploadAccount.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+1 -1
View File
@@ -319,7 +319,7 @@
//
// txtAddress
//
this.txtAddress.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
this.txtAddress.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtAddress.Location = new System.Drawing.Point(3, 3);
this.txtAddress.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+5 -5
View File
@@ -42,11 +42,11 @@ namespace TemuKJD.KJDForms.ShopForms
private string shopLoginUrl = "http://seller.kuajingmaihuo.com/login";
private string shopMainUrl = "https://seller.kuajingmaihuo.com";
private ChromiumWebBrowser cefWebBrowser = null;
private DouShopLoginInfo shop = null;
private ShopLoginInfo shop = null;
private List<ShopCompany> lstShopCompany = new List<ShopCompany>();
private string currentUrl = "";
public ShopLoginForm(DouShopLoginInfo shopInfo)
public ShopLoginForm(ShopLoginInfo shopInfo)
{
InitializeComponent();
@@ -141,11 +141,11 @@ namespace TemuKJD.KJDForms.ShopForms
foreach (ShopCompany sc in lstShopCompanyCopy)
{
DouShopLoginInfo newShop = new DouShopLoginInfo()
ShopLoginInfo newShop = new ShopLoginInfo()
{
LoginName = shop.LoginName,
Password = shop.Password,
Group = shop.Group,
GroupName = shop.GroupName,
ShopAccount = sc.AccountName,
ShopId = sc.AccountId,
SubUserName = shop.SubUserName,
@@ -166,7 +166,7 @@ namespace TemuKJD.KJDForms.ShopForms
oldShop.LastRefreshDate = DateTime.Now.ToString("yyyyMMdd");
oldShop.LoginName = newShop.LoginName;
oldShop.Password = newShop.Password;
oldShop.Group = newShop.Group;
oldShop.GroupName = newShop.GroupName;
oldShop.ShopAccount = newShop.ShopAccount;
oldShop.ShopId = newShop.ShopId;
oldShop.SubUserName = newShop.SubUserName;
@@ -16,11 +16,11 @@ namespace TemuKJD.KJDForms.ShopForms
{
public partial class SubAccountShopEditForm : LRBaseForm
{
DouShopLoginInfo shop = null;
ShopLoginInfo shop = null;
public List<DouShopSubAccountInfo> AllSubAccountList { get; set; } = new List<DouShopSubAccountInfo>();
public List<DouShopSubAccountInfo> ShopSubAccountList { get; set; } = new List<DouShopSubAccountInfo>();
public List<DouShopSubAccountInfo> NotShopSubAccountList { get; set; } = new List<DouShopSubAccountInfo>();
public SubAccountShopEditForm(DouShopLoginInfo _shop)
public SubAccountShopEditForm(ShopLoginInfo _shop)
{
InitializeComponent();
shop = _shop;