1拼多多买手读单优化 2商品类目查询优化

This commit is contained in:
wule committed 2026-06-02 16:09:57 +08:00
1 parent 7601f5b2f3
commit 4ae8e4f1b2
40 files changed
+4743 -745

No files matched your search

+55 -55
View File
@@ -29,8 +29,8 @@
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
this.label1 = new System.Windows.Forms.Label();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
@@ -39,8 +39,9 @@
this.btnLoginSelect = new TemuKJD.UserControls.ButtonEx();
this.btnCheck = new TemuKJD.UserControls.ButtonEx();
this.panel4 = new System.Windows.Forms.Panel();
this.btnRefreshOrderApi = new TemuKJD.UserControls.ButtonEx();
this.label5 = new System.Windows.Forms.Label();
this.btnImport = new DevComponents.DotNetBar.PanelEx();
this.btnImportShop = new DevComponents.DotNetBar.PanelEx();
this.btnAddShop = new DevComponents.DotNetBar.PanelEx();
this.btnOpenOrder = new TemuKJD.UserControls.ButtonEx();
this.chkUsePddWorkbanch = new TemuKJD.UserComponent.UcCheckBox(this.components);
@@ -86,7 +87,6 @@
this.colDelete = new System.Windows.Forms.DataGridViewLinkColumn();
this.chkAutoDrag = new System.Windows.Forms.CheckBox();
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
this.btnRefreshOrderApi = new TemuKJD.UserControls.ButtonEx();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
@@ -209,7 +209,7 @@
//
this.panel4.Controls.Add(this.btnRefreshOrderApi);
this.panel4.Controls.Add(this.label5);
this.panel4.Controls.Add(this.btnImport);
this.panel4.Controls.Add(this.btnImportShop);
this.panel4.Controls.Add(this.btnAddShop);
this.panel4.Controls.Add(this.btnOpenOrder);
this.panel4.Controls.Add(this.chkUsePddWorkbanch);
@@ -227,6 +227,23 @@
this.panel4.Size = new System.Drawing.Size(1035, 60);
this.panel4.TabIndex = 0;
//
// btnRefreshOrderApi
//
this.btnRefreshOrderApi.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnRefreshOrderApi.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnRefreshOrderApi.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnRefreshOrderApi.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnRefreshOrderApi.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnRefreshOrderApi.ForeColor = System.Drawing.Color.White;
this.btnRefreshOrderApi.Location = new System.Drawing.Point(924, 35);
this.btnRefreshOrderApi.Margin = new System.Windows.Forms.Padding(2);
this.btnRefreshOrderApi.Name = "btnRefreshOrderApi";
this.btnRefreshOrderApi.Size = new System.Drawing.Size(93, 25);
this.btnRefreshOrderApi.TabIndex = 832;
this.btnRefreshOrderApi.Text = "刷新订单Api";
this.btnRefreshOrderApi.UseVisualStyleBackColor = false;
this.btnRefreshOrderApi.Click += new System.EventHandler(this.btnRefreshOrderApi_Click);
//
// label5
//
this.label5.AutoSize = true;
@@ -237,29 +254,29 @@
this.label5.TabIndex = 822;
this.label5.Text = "注:订单授权到期后无法读取订单、自动发货、读取售后;上传授权到期后无法进行发布商品和上下架等操作。";
//
// btnImport
// btnImportShop
//
this.btnImport.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnImport.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnImport.DisabledBackColor = System.Drawing.Color.Empty;
this.btnImport.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnImport.Location = new System.Drawing.Point(72, 8);
this.btnImport.Name = "btnImport";
this.btnImport.Size = new System.Drawing.Size(66, 26);
this.btnImport.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnImport.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnImport.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnImport.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnImport.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnImport.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnImport.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnImport.Style.GradientAngle = 90;
this.btnImport.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnImport.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnImport.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnImport.TabIndex = 812;
this.btnImport.Text = "导入店铺";
this.btnImport.Click += new System.EventHandler(this.btnImport_Click);
this.btnImportShop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnImportShop.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnImportShop.DisabledBackColor = System.Drawing.Color.Empty;
this.btnImportShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnImportShop.Location = new System.Drawing.Point(72, 8);
this.btnImportShop.Name = "btnImportShop";
this.btnImportShop.Size = new System.Drawing.Size(66, 26);
this.btnImportShop.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnImportShop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnImportShop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnImportShop.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnImportShop.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnImportShop.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnImportShop.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnImportShop.Style.GradientAngle = 90;
this.btnImportShop.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnImportShop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnImportShop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnImportShop.TabIndex = 812;
this.btnImportShop.Text = "导入店铺";
this.btnImportShop.Click += new System.EventHandler(this.btnImportShop_Click);
//
// btnAddShop
//
@@ -460,20 +477,20 @@
//
this.dgvShop.AllowUserToAddRows = false;
this.dgvShop.AllowUserToDeleteRows = false;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
dataGridViewCellStyle3.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3;
this.dgvShop.AutoRowNumber = true;
this.dgvShop.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.dgvShop.BackgroundColor = System.Drawing.Color.White;
this.dgvShop.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
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;
this.dgvShop.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvShop.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.colSelect,
@@ -766,23 +783,6 @@
this.statusBar.Size = new System.Drawing.Size(1264, 29);
this.statusBar.TabIndex = 1;
//
// btnRefreshOrderApi
//
this.btnRefreshOrderApi.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnRefreshOrderApi.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnRefreshOrderApi.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnRefreshOrderApi.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnRefreshOrderApi.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnRefreshOrderApi.ForeColor = System.Drawing.Color.White;
this.btnRefreshOrderApi.Location = new System.Drawing.Point(924, 35);
this.btnRefreshOrderApi.Margin = new System.Windows.Forms.Padding(2);
this.btnRefreshOrderApi.Name = "btnRefreshOrderApi";
this.btnRefreshOrderApi.Size = new System.Drawing.Size(93, 25);
this.btnRefreshOrderApi.TabIndex = 832;
this.btnRefreshOrderApi.Text = "刷新订单Api";
this.btnRefreshOrderApi.UseVisualStyleBackColor = false;
this.btnRefreshOrderApi.Click += new System.EventHandler(this.btnRefreshOrderApi_Click);
//
// PDDShopListForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
@@ -844,7 +844,7 @@
private UserComponent.UcCheckBox chkUsePddWorkbanch;
public UserControls.ButtonEx btnOpenOrder;
private DevComponents.DotNetBar.PanelEx btnAddShop;
private DevComponents.DotNetBar.PanelEx btnImport;
private DevComponents.DotNetBar.PanelEx btnImportShop;
private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect;
private System.Windows.Forms.DataGridViewTextBoxColumn colLoginName;
private System.Windows.Forms.DataGridViewTextBoxColumn colMallId;
@@ -296,7 +296,7 @@ namespace TemuKJD.PDDForms.ShopForms
});
}
private void btnImport_Click(object sender, EventArgs e)
private void btnImportShop_Click(object sender, EventArgs e)
{
IsOperate = true;
ImportShop();
@@ -305,7 +305,7 @@ namespace TemuKJD.PDDForms.ShopForms
void ImportShop()
{
this.btnImport.Enabled = false;
this.btnImportShop.Enabled = false;
string text = "店铺导入格式:\r\n\r\n1.店铺账号(手机/用户名/邮箱)-----店铺密码\r\n2.店铺账号-----密码-----备注\r\n\r\n多个店铺请每个店铺新起一行。";
BaseMsgForm.ShowInfo(text, "", FormLevel.LARGE);
@@ -366,7 +366,7 @@ namespace TemuKJD.PDDForms.ShopForms
}
}
IsOperate = false;
this.btnImport.Enabled = true;
this.btnImportShop.Enabled = true;
}
private void RefreshDataGridView(bool updateStatus=true)
@@ -726,7 +726,7 @@ namespace TemuKJD.PDDForms.ShopForms
this.dgvShop.Columns["ColEdit"].Visible = false;
this.dgvShop.Columns["colDelete"].Visible = false;
this.dgvShop.Columns["colSubUser"].Visible = false;
this.btnImport.Visible = false;
this.btnImportShop.Visible = false;
this.btnAddShop.Visible = false;
}
@@ -254,7 +254,7 @@ namespace TemuKJD.PDDForms.ShopForms
oldShop.SubUserName = newShop.SubUserName;
oldShop.Notes = newShop.Notes;
oldShop.AntiContents.AddRange(newShop.AntiContents);
while (oldShop.AntiContents.Count > 50)
while (oldShop.AntiContents.Count > 200)
oldShop.AntiContents.RemoveAt(0);
// 店铺更新写入到服务端