1688商品采集

This commit is contained in:
wule committed 2026-03-18 20:45:32 +08:00
1 parent 53736cff6e
commit c489c30bf1
35 files changed
+4095 -254

No files matched your search

+2 -12
View File
@@ -56,24 +56,14 @@ namespace TemuKJD.WXForms.ShopForms
shop.Notes = this.txtNotes.Text;
shop.CompanyName = AllBase.BaseClass.CompanyName;
// 同一个登录账号下的店铺使用同样的groupName和Notes
var shopLst = GlobalConfig.ShopLoginList.Where(s => s.LoginName == shop.LoginName && s.ShopId != shop.ShopId).ToList();
foreach (var shop in shopLst)
{
shop.GroupName = shop.GroupName;
shop.Notes = shop.Notes;
}
var shopSubAccountLstTmp = shop.ShopSubAccountList;
foreach (var sp in lstShopLoginInfo)
{
sp.GroupName = this.cmbGroup.Text;
sp.Notes = this.txtNotes.Text;
sp.CompanyName = AllBase.BaseClass.CompanyName;
sp.ShopSubAccountList.Clear();
sp.ShopSubAccountList.AddRange(shopSubAccountLstTmp);
sp.SubUserName = shop.SubUserName;
}
this.OnSaveComplete(lstShopLoginInfo, isAdd);
this.Close();
}
+69 -69
View File
@@ -28,12 +28,14 @@
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
this.label1 = new System.Windows.Forms.Label();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.panel5 = new System.Windows.Forms.Panel();
this.btnCheck = new DevComponents.DotNetBar.PanelEx();
this.btnEdit = new DevComponents.DotNetBar.PanelEx();
this.btnLoginSelect = new TemuKJD.UserControls.ButtonEx();
this.panel4 = new System.Windows.Forms.Panel();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
@@ -85,8 +87,6 @@
this.colDelete = new System.Windows.Forms.DataGridViewLinkColumn();
this.chkAutoDrag = new System.Windows.Forms.CheckBox();
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
this.btnEdit = new DevComponents.DotNetBar.PanelEx();
this.btnCheck = new DevComponents.DotNetBar.PanelEx();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
@@ -158,6 +158,58 @@
this.panel5.Size = new System.Drawing.Size(249, 40);
this.panel5.TabIndex = 1;
//
// btnCheck
//
this.btnCheck.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
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(98, 10);
this.btnCheck.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
this.btnCheck.Name = "btnCheck";
this.btnCheck.Size = new System.Drawing.Size(60, 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 = 810;
this.btnCheck.Text = "检测选中";
this.btnCheck.Click += new System.EventHandler(this.btnCheck_Click);
//
// btnEdit
//
this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.btnEdit.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnEdit.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnEdit.DisabledBackColor = System.Drawing.Color.Empty;
this.btnEdit.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnEdit.Location = new System.Drawing.Point(33, 10);
this.btnEdit.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
this.btnEdit.Name = "btnEdit";
this.btnEdit.Size = new System.Drawing.Size(60, 23);
this.btnEdit.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnEdit.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnEdit.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnEdit.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnEdit.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnEdit.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnEdit.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnEdit.Style.GradientAngle = 90;
this.btnEdit.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnEdit.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnEdit.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnEdit.TabIndex = 806;
this.btnEdit.Text = "编辑选中";
this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
//
// btnLoginSelect
//
this.btnLoginSelect.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
@@ -235,7 +287,7 @@
this.cmbGroup.DropDownWidth = 1;
this.cmbGroup.FormattingEnabled = true;
this.cmbGroup.IntegralHeight = false;
this.cmbGroup.Location = new System.Drawing.Point(307, 5);
this.cmbGroup.Location = new System.Drawing.Point(307, 8);
this.cmbGroup.Margin = new System.Windows.Forms.Padding(0, 0, 0, 4);
this.cmbGroup.Name = "cmbGroup";
this.cmbGroup.Size = new System.Drawing.Size(48, 25);
@@ -261,7 +313,7 @@
this.cmbNotes.DropDownWidth = 1;
this.cmbNotes.FormattingEnabled = true;
this.cmbNotes.IntegralHeight = false;
this.cmbNotes.Location = new System.Drawing.Point(224, 5);
this.cmbNotes.Location = new System.Drawing.Point(224, 8);
this.cmbNotes.Margin = new System.Windows.Forms.Padding(0, 0, 0, 4);
this.cmbNotes.Name = "cmbNotes";
this.cmbNotes.Size = new System.Drawing.Size(48, 25);
@@ -394,7 +446,7 @@
this.cmbSubAccount.DropDownWidth = 1;
this.cmbSubAccount.FormattingEnabled = true;
this.cmbSubAccount.IntegralHeight = false;
this.cmbSubAccount.Location = new System.Drawing.Point(402, 5);
this.cmbSubAccount.Location = new System.Drawing.Point(402, 8);
this.cmbSubAccount.Margin = new System.Windows.Forms.Padding(0, 0, 0, 4);
this.cmbSubAccount.Name = "cmbSubAccount";
this.cmbSubAccount.Size = new System.Drawing.Size(48, 25);
@@ -530,20 +582,20 @@
//
this.dgvShop.AllowUserToAddRows = false;
this.dgvShop.AllowUserToDeleteRows = false;
dataGridViewCellStyle3.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3;
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)))));
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;
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,
@@ -821,58 +873,6 @@
this.statusBar.Size = new System.Drawing.Size(1264, 29);
this.statusBar.TabIndex = 1;
//
// btnEdit
//
this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.btnEdit.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnEdit.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnEdit.DisabledBackColor = System.Drawing.Color.Empty;
this.btnEdit.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnEdit.Location = new System.Drawing.Point(33, 10);
this.btnEdit.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
this.btnEdit.Name = "btnEdit";
this.btnEdit.Size = new System.Drawing.Size(60, 23);
this.btnEdit.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnEdit.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnEdit.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnEdit.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnEdit.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnEdit.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnEdit.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnEdit.Style.GradientAngle = 90;
this.btnEdit.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnEdit.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnEdit.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnEdit.TabIndex = 806;
this.btnEdit.Text = "编辑选中";
this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
//
// btnCheck
//
this.btnCheck.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
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(98, 10);
this.btnCheck.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
this.btnCheck.Name = "btnCheck";
this.btnCheck.Size = new System.Drawing.Size(60, 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 = 810;
this.btnCheck.Text = "检测选中";
this.btnCheck.Click += new System.EventHandler(this.btnCheck_Click);
//
// WXShopListForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
+4 -1
View File
@@ -293,6 +293,7 @@ namespace TemuKJD.WXForms.ShopForms
Invoke(new Action(() => {
this.statusBar.pgbTaskProgress.Value = i;
this.statusBar.pgbTaskProgress.Text = i + "/" + shopInfoLst.Count;
this.statusBar.pgbTaskProgress.Maximum = shopInfoLst.Count;
i++;
}));
ShopBLL.MdyPDDServerShopSubInfo(shopInfo);
@@ -466,7 +467,9 @@ namespace TemuKJD.WXForms.ShopForms
}
if (!string.IsNullOrEmpty(txtShopName.Text))
{
shopList = shopList.Where(s => s.ShopAccount.ParseToString().ToLower().Contains(txtShopName.Text.ToLower())).ToList();
shopList = shopList.Where(s => s.ShopAccount.ParseToString().ToLower().Contains(txtShopName.Text.ToLower()) ||
txtShopName.Text.ToLower().Split(new string[] { ",", ",", ";", ";", " " }, StringSplitOptions.RemoveEmptyEntries)
.Contains(s.ShopAccount.ParseToString().ToLower())).ToList();
}
}));