temu推单相关功能

This commit is contained in:
wule committed 2025-12-04 20:45:18 +08:00
1 parent 165df61234
commit b05de6797e
27 files changed
+4561 -315

No files matched your search

@@ -30,20 +30,22 @@ namespace TemuKJD.KJDForms.AdminForms
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();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
this.btnSearchPrice3 = new DevComponents.DotNetBar.PanelEx();
this.numSleep = new System.Windows.Forms.NumericUpDown();
this.lblSleep = new System.Windows.Forms.Label();
this.btnRestoreFilterParams = new DevComponents.DotNetBar.PanelEx();
this.btnStop = new DevComponents.DotNetBar.PanelEx();
this.btnSaveFilterParams = new DevComponents.DotNetBar.PanelEx();
this.btnRestoreSizeAndNumber = new DevComponents.DotNetBar.PanelEx();
this.txtPrice2 = new System.Windows.Forms.TextBox();
@@ -67,7 +69,6 @@ namespace TemuKJD.KJDForms.AdminForms
this.btnMutliOk = new DevComponents.DotNetBar.PanelEx();
this.dtpEndTime = new System.Windows.Forms.DateTimePicker();
this.dtpStartTime = new System.Windows.Forms.DateTimePicker();
this.btnStop = new DevComponents.DotNetBar.PanelEx();
this.btnSearchPrice2 = new DevComponents.DotNetBar.PanelEx();
this.btnRestoreProdName = new DevComponents.DotNetBar.PanelEx();
this.txtSkcId = new System.Windows.Forms.TextBox();
@@ -221,9 +222,11 @@ namespace TemuKJD.KJDForms.AdminForms
| System.Windows.Forms.AnchorStyles.Right)));
this.ucGroupBoxEx1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.ucGroupBoxEx1.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
this.ucGroupBoxEx1.Controls.Add(this.btnSearchPrice3);
this.ucGroupBoxEx1.Controls.Add(this.numSleep);
this.ucGroupBoxEx1.Controls.Add(this.lblSleep);
this.ucGroupBoxEx1.Controls.Add(this.btnRestoreFilterParams);
this.ucGroupBoxEx1.Controls.Add(this.btnStop);
this.ucGroupBoxEx1.Controls.Add(this.btnSaveFilterParams);
this.ucGroupBoxEx1.Controls.Add(this.btnRestoreSizeAndNumber);
this.ucGroupBoxEx1.Controls.Add(this.txtPrice2);
@@ -244,7 +247,6 @@ namespace TemuKJD.KJDForms.AdminForms
this.ucGroupBoxEx1.Controls.Add(this.btnMutliOk);
this.ucGroupBoxEx1.Controls.Add(this.dtpEndTime);
this.ucGroupBoxEx1.Controls.Add(this.dtpStartTime);
this.ucGroupBoxEx1.Controls.Add(this.btnStop);
this.ucGroupBoxEx1.Controls.Add(this.btnSearchPrice2);
this.ucGroupBoxEx1.Controls.Add(this.btnRestoreProdName);
this.ucGroupBoxEx1.Controls.Add(this.txtSkcId);
@@ -273,6 +275,30 @@ namespace TemuKJD.KJDForms.AdminForms
this.ucGroupBoxEx1.TabStop = false;
this.ucGroupBoxEx1.Text = "参数设置";
//
// btnSearchPrice3
//
this.btnSearchPrice3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnSearchPrice3.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnSearchPrice3.DisabledBackColor = System.Drawing.Color.Empty;
this.btnSearchPrice3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSearchPrice3.Location = new System.Drawing.Point(267, 110);
this.btnSearchPrice3.Name = "btnSearchPrice3";
this.btnSearchPrice3.Size = new System.Drawing.Size(71, 23);
this.btnSearchPrice3.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnSearchPrice3.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnSearchPrice3.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnSearchPrice3.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnSearchPrice3.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnSearchPrice3.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnSearchPrice3.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnSearchPrice3.Style.GradientAngle = 90;
this.btnSearchPrice3.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnSearchPrice3.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnSearchPrice3.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnSearchPrice3.TabIndex = 1164;
this.btnSearchPrice3.Text = "读取已发布";
this.btnSearchPrice3.Click += new System.EventHandler(this.btnSearchPrice3_Click);
//
// numSleep
//
this.numSleep.DecimalPlaces = 2;
@@ -331,6 +357,30 @@ namespace TemuKJD.KJDForms.AdminForms
this.btnRestoreFilterParams.Text = "还原选中配置";
this.btnRestoreFilterParams.Click += new System.EventHandler(this.btnRestoreFilterParams_Click);
//
// btnStop
//
this.btnStop.CanvasColor = System.Drawing.SystemColors.Control;
this.btnStop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnStop.DisabledBackColor = System.Drawing.Color.Empty;
this.btnStop.Location = new System.Drawing.Point(280, 86);
this.btnStop.Name = "btnStop";
this.btnStop.Size = new System.Drawing.Size(44, 23);
this.btnStop.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnStop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnStop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnStop.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.btnStop.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnStop.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.btnStop.Style.GradientAngle = 90;
this.btnStop.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
this.btnStop.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnStop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnStop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnStop.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
this.btnStop.TabIndex = 797;
this.btnStop.Text = "停止";
this.btnStop.Click += new System.EventHandler(this.btnStop_Click);
//
// btnSaveFilterParams
//
this.btnSaveFilterParams.CanvasColor = System.Drawing.SystemColors.Control;
@@ -446,22 +496,22 @@ namespace TemuKJD.KJDForms.AdminForms
//
this.dgvExtCode.AllowUserToAddRows = false;
this.dgvExtCode.AllowUserToDeleteRows = false;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
this.dgvExtCode.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
dataGridViewCellStyle10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
this.dgvExtCode.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle10;
this.dgvExtCode.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.dgvExtCode.AutoRowNumber = false;
this.dgvExtCode.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.dgvExtCode.BackgroundColor = System.Drawing.Color.White;
this.dgvExtCode.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.dgvExtCode.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle11.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvExtCode.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle11;
this.dgvExtCode.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.colSelectExtCode,
this.colFilterExtCode,
@@ -672,39 +722,15 @@ namespace TemuKJD.KJDForms.AdminForms
this.dtpStartTime.Size = new System.Drawing.Size(183, 23);
this.dtpStartTime.TabIndex = 825;
//
// btnStop
//
this.btnStop.CanvasColor = System.Drawing.SystemColors.Control;
this.btnStop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnStop.DisabledBackColor = System.Drawing.Color.Empty;
this.btnStop.Location = new System.Drawing.Point(453, 110);
this.btnStop.Name = "btnStop";
this.btnStop.Size = new System.Drawing.Size(56, 23);
this.btnStop.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnStop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnStop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnStop.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.btnStop.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnStop.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.btnStop.Style.GradientAngle = 90;
this.btnStop.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
this.btnStop.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnStop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnStop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnStop.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
this.btnStop.TabIndex = 797;
this.btnStop.Text = "停止读取";
this.btnStop.Click += new System.EventHandler(this.btnStop_Click);
//
// btnSearchPrice2
//
this.btnSearchPrice2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnSearchPrice2.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnSearchPrice2.DisabledBackColor = System.Drawing.Color.Empty;
this.btnSearchPrice2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSearchPrice2.Location = new System.Drawing.Point(357, 110);
this.btnSearchPrice2.Location = new System.Drawing.Point(411, 110);
this.btnSearchPrice2.Name = "btnSearchPrice2";
this.btnSearchPrice2.Size = new System.Drawing.Size(94, 23);
this.btnSearchPrice2.Size = new System.Drawing.Size(98, 23);
this.btnSearchPrice2.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnSearchPrice2.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnSearchPrice2.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
@@ -781,9 +807,9 @@ namespace TemuKJD.KJDForms.AdminForms
this.btnSearchPrice.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnSearchPrice.DisabledBackColor = System.Drawing.Color.Empty;
this.btnSearchPrice.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSearchPrice.Location = new System.Drawing.Point(280, 110);
this.btnSearchPrice.Location = new System.Drawing.Point(339, 110);
this.btnSearchPrice.Name = "btnSearchPrice";
this.btnSearchPrice.Size = new System.Drawing.Size(75, 23);
this.btnSearchPrice.Size = new System.Drawing.Size(71, 23);
this.btnSearchPrice.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnSearchPrice.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnSearchPrice.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
@@ -1322,19 +1348,19 @@ namespace TemuKJD.KJDForms.AdminForms
//
this.dgvShop.AllowUserToAddRows = false;
this.dgvShop.AllowUserToDeleteRows = false;
dataGridViewCellStyle3.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3;
dataGridViewCellStyle12.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle12;
this.dgvShop.AutoRowNumber = true;
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;
dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle13.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle13.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle13.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle13.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle13.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle13;
this.dgvShop.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvShop.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.colSelect,
@@ -1553,19 +1579,19 @@ namespace TemuKJD.KJDForms.AdminForms
//
this.dgvPriceCheck.AllowUserToAddRows = false;
this.dgvPriceCheck.AllowUserToDeleteRows = false;
dataGridViewCellStyle5.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvPriceCheck.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5;
dataGridViewCellStyle14.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvPriceCheck.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle14;
this.dgvPriceCheck.AutoRowNumber = true;
this.dgvPriceCheck.BackgroundColor = System.Drawing.Color.White;
this.dgvPriceCheck.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvPriceCheck.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6;
dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle15.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle15.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle15.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle15.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle15.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvPriceCheck.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle15;
this.dgvPriceCheck.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvPriceCheck.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.colCheck,
@@ -1678,8 +1704,8 @@ namespace TemuKJD.KJDForms.AdminForms
//
// colProdName
//
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colProdName.DefaultCellStyle = dataGridViewCellStyle7;
dataGridViewCellStyle16.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colProdName.DefaultCellStyle = dataGridViewCellStyle16;
this.colProdName.HeaderText = "标题";
this.colProdName.Name = "colProdName";
this.colProdName.ReadOnly = true;
@@ -1687,8 +1713,8 @@ namespace TemuKJD.KJDForms.AdminForms
//
// colSkuName
//
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colSkuName.DefaultCellStyle = dataGridViewCellStyle8;
dataGridViewCellStyle17.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colSkuName.DefaultCellStyle = dataGridViewCellStyle17;
this.colSkuName.HeaderText = "规格名称";
this.colSkuName.Name = "colSkuName";
this.colSkuName.ReadOnly = true;
@@ -1738,8 +1764,8 @@ namespace TemuKJD.KJDForms.AdminForms
//
// colCreatTime
//
dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colCreatTime.DefaultCellStyle = dataGridViewCellStyle9;
dataGridViewCellStyle18.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colCreatTime.DefaultCellStyle = dataGridViewCellStyle18;
this.colCreatTime.HeaderText = "创建时间";
this.colCreatTime.Name = "colCreatTime";
this.colCreatTime.ReadOnly = true;
@@ -1998,5 +2024,6 @@ namespace TemuKJD.KJDForms.AdminForms
private System.Windows.Forms.NumericUpDown numPieces;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.Panel pnlRestoreSizeAndNumber;
private DevComponents.DotNetBar.PanelEx btnSearchPrice3;
}
}
@@ -21,6 +21,7 @@ using TemuKJD.KJDForms.ShopForms;
using Work;
using TemuKJD.KJDForms.JITForms;
using AllBase.Helper;
using NaiBa.Util;
namespace TemuKJD.KJDForms.AdminForms
{
@@ -31,9 +32,9 @@ namespace TemuKJD.KJDForms.AdminForms
PriceCheckConfig priceCheckConfig = null;
List<PriceCheckFilterConfig> lstPriceCheckFilterConfig = new List<PriceCheckFilterConfig>();
public CancellationTokenSource cancellationTokenSource { get; set; } = null;
public List<ShopLoginInfo> lstAdminShopInfo { get; set; } = new List<ShopLoginInfo>();
public List<TemuForChainProductInfo> lstCheckPriceInfo = new List<TemuForChainProductInfo>();
public List<CateSizeWeightConfig> lstCateSizeWeightConfig = new List<CateSizeWeightConfig>();
public ConcurrentList<ShopLoginInfo> lstAdminShopInfo { get; set; } = new ConcurrentList<ShopLoginInfo>();
public ConcurrentList<TemuForChainProductInfo> lstCheckPriceInfo = new ConcurrentList<TemuForChainProductInfo>();
public ConcurrentList<CateSizeWeightConfig> lstCateSizeWeightConfig = new ConcurrentList<CateSizeWeightConfig>();
public AdminProductPriceCheckForm()
{
@@ -80,16 +81,18 @@ namespace TemuKJD.KJDForms.AdminForms
pnlRestoreSizeAndNumber.Visible = false;
btnRestoreSizeAndNumber.Text = "还原核价设置";
this.numJudgeLen.Value = 15;
this.numJudgeWeight.Value = 150;
this.numLen1.Value = 8;
this.numLen2.Value = 8;
this.numWidth1.Value = 7;
this.numWidth2.Value = 7;
this.numHeight1.Value = 6;
this.numHeight2.Value = 6;
this.numWeight1.Value = 6;
this.numWeight2.Value = 6;
this.numJudgeLen.Value = 26;
this.numJudgeWeight.Value = 201;
this.numLen1.Value = 25;
this.numLen2.Value = 25;
this.numWidth1.Value = 20;
this.numWidth2.Value = 20;
this.numHeight1.Value = 8;
this.numHeight2.Value = 8;
this.numWeight1.Value = 200;
this.numWeight2.Value = 200;
btnSearchPrice3.Visible = false;
}
if (IsClientJit)
@@ -762,6 +765,20 @@ namespace TemuKJD.KJDForms.AdminForms
this.dgvPriceCheck.Columns["colCancel"].Visible = false;
this.dgvPriceCheck.Columns["colCancelWithTitleWrong"].Visible = true;
SearchPrice("待创建首单");
//SearchPrice("已发布到站点");
}
private void btnSearchPrice3_Click(object sender, EventArgs e)
{
this.pnlDetailOperate1.Visible = false;
this.btnMutliOk.Visible = false;
this.btnMutliCancel.Visible = false;
this.pnlMutliCancelWithTitleWrong.Visible = false;
this.pnlMutliCancelWithTitleWrong.Location = btnMutliOk.Location;
this.dgvPriceCheck.Columns["colOk"].Visible = false;
this.dgvPriceCheck.Columns["colCancel"].Visible = false;
this.dgvPriceCheck.Columns["colCancelWithTitleWrong"].Visible = false;
SearchPrice("已发布到站点");
}
private void SearchPrice(string type = "待卖家确认")
@@ -1055,6 +1072,8 @@ namespace TemuKJD.KJDForms.AdminForms
body += "\"priceReviewStatusList\":[1],\"secondarySelectStatusList\":[7],";
else if (type == "待创建首单")
body += "\"secondarySelectStatusList\":[10],";
else if (type == "已发布到站点")
body += "\"secondarySelectStatusList\":[12],\"supplierTodoTypeList\":[],";
body += "\"supplierTodoTypeList\":[],";
if (!string.IsNullOrEmpty(prodSkcIds))
body += "\"productSkcIdList\":[" + prodSkcIds + "],";
@@ -1145,7 +1164,7 @@ namespace TemuKJD.KJDForms.AdminForms
/// <param name="shop"></param>
/// <param name="productId"></param>
/// <returns></returns>
private string editPriceProductSizeAndNumberBatchAdd(ShopLoginInfo shop, string productId)
public static string editPriceProductSizeAndNumberBatchAdd(ShopLoginInfo shop, string productId)
{
string url = "https://agentseller.temu.com/lich-mms/audit/edit/task/product/batchAdd";
string body = @"{""bizIdType"":1,""bizIds"":[" + productId + @"],""productEditItems"":[{""editItem"":4,""editAdvice"":""优化""},{""editItem"":8,""editAdvice"":""优化""}]}";
@@ -1153,7 +1172,7 @@ namespace TemuKJD.KJDForms.AdminForms
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
}
private string editPriceProductSizeAndNumberTaskQuery(ShopLoginInfo shop, string productId)
public static string editPriceProductSizeAndNumberTaskQuery(ShopLoginInfo shop, string productId)
{
string url = "https://agentseller.temu.com/lich-mms/audit/edit/task/product/pageQuery";
string body = @"{""page"":1,""pageSize"":10,""editTaskAggStatuses"":[1],""productIdList"":[" + productId + "]}";
@@ -1161,7 +1180,7 @@ namespace TemuKJD.KJDForms.AdminForms
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
}
private string editPriceProductQuery(ShopLoginInfo shop, string prodId, string taskUid)
public static string editPriceProductQuery(ShopLoginInfo shop, string prodId, string taskUid)
{
string url = "https://agentseller.temu.com/visage-agent-seller/product/query";
string body = @"{""productId"":" + prodId + @",""productEditTaskUid"":""" + taskUid + @"""}";
@@ -1169,14 +1188,25 @@ namespace TemuKJD.KJDForms.AdminForms
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
private string queryProductSizeAndWeightConfig(ShopLoginInfo shop, string taskUid, string productId)
public static string queryProductSizeAndWeightConfig(ShopLoginInfo shop, string taskUid, string productId, string catId)
{
string url = "https://agentseller.temu.com/anniston-agent-seller/product/check/common/queryConfig";
string body = "{}";
string referer = "https://agentseller.temu.com/goods/edit?from=platform&productId=" + productId + "&taskUid=" + taskUid;
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
}
private string editPriceProductSizeAndNumber(ShopLoginInfo shop, string taskUid, string productId, string data)
public static string queryCatSizeAndWeightConfig(ShopLoginInfo shop, string taskUid, string productId, string catId)
{
string url = "https://agentseller.temu.com/anniston-agent-seller/product/check/common/queryConfig";
url = "https://agentseller.temu.com/anniston-agent-seller/product/check/cat/queryConfig";
string body = "{}";
body = @"{""catId"":" + catId + "}";
string referer = "https://agentseller.temu.com/goods/edit?from=platform&productId=" + productId + "&taskUid=" + taskUid;
referer = "https://agentseller.temu.com/goods/edit?from=productList&productId=" + productId;
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
}
public static string editPriceProductSizeAndNumber(ShopLoginInfo shop, string taskUid, string productId, string data)
{
string url = "https://agentseller.temu.com/visage-agent-seller/product/edit/task/reply";
//string body = @"{""productId"":4432690492,""taskUid"":""8de73095-733e-4cdf-8fbd-3ddd8d9dff18"",""taskVersion"":0,""refuseEdit"":false,""productName"":""男士轻便 EVA 拖鞋,带钩环后跟带 ,舒适的露趾拖鞋,适合室内和室外使用,家居拖鞋,易于使用的魔鬼毡扣带扣,洞洞鞋,家居拖鞋,带钩环扣件,适合室内和室外使用,带扣凉鞋,后厨工专用鞋简约款两用,适合室内/室外使用,春夏凉鞋,EVA 拖鞋,适合19个不同的搭配风格""}";
@@ -1865,7 +1895,7 @@ namespace TemuKJD.KJDForms.AdminForms
if (cateSizeWeightConfig == null)
{
var url = BaseClass.BuildObjString("product/get_cate_size_weight_config");
var url = BaseClass.BuildObjString("product/get_cate_size_weight_config_v2");
var data = UserLogin.GetSignaturex() +
"&cat_id=" + catId;
html = GetHtml.PostUtf8(url, data);
@@ -1877,7 +1907,7 @@ namespace TemuKJD.KJDForms.AdminForms
{
var jArr = JObject.Parse(html)["data"];
cateSizeWeightConfig = JsonHelper.DeserializeJsonToObject<CateSizeWeightConfig>(jArr.ToString());
if (lstCateSizeWeightConfig != null)
if (cateSizeWeightConfig != null)
lstCateSizeWeightConfig.Add(cateSizeWeightConfig);
}
catch { }
@@ -1887,36 +1917,57 @@ namespace TemuKJD.KJDForms.AdminForms
if (cateSizeWeightConfig == null)
{
//查询接口尺寸重量限制
html = queryProductSizeAndWeightConfig(shop, taskUid.ParseToString(), price.productId.ParseToString());
html = queryProductSizeAndWeightConfig(shop, taskUid.ParseToString(), price.productId.ParseToString(), catId.ParseToString());
var html1 = queryCatSizeAndWeightConfig(shop, taskUid.ParseToString(), price.productId.ParseToString(), catId.ParseToString());
if (!string.IsNullOrEmpty(html1) && html1.Contains("length"))
html = html1;
//{"success":true,"errorCode":1000000,"errorMsg":null,"result":{"common":{"operatorId":null,"operatorName":null,"operatorType":null,"checkSideRelation":false,"noticeSideEquation":false,"length":{"min":10,"max":2999},"width":{"min":5,"max":2999},"height":{"min":2,"max":2999},"weight":{"min":2000,"max":99999000}}}}
Thread.Sleep(Randomx.GetId(25, 75));
commonSleep();
if (html.Contains("\"success\":true"))
{
JObject jObj = JObject.Parse(html);
cateSizeWeightConfig = new CateSizeWeightConfig() { catId = catId.ToString() };
cateSizeWeightConfig.minLen = jObj["result"]["common"]["length"]["min"].ParseToInt();
cateSizeWeightConfig.maxLen = jObj["result"]["common"]["length"]["max"].ParseToInt();
cateSizeWeightConfig.minWidth = jObj["result"]["common"]["width"]["min"].ParseToInt();
cateSizeWeightConfig.maxWidth = jObj["result"]["common"]["width"]["max"].ParseToInt();
cateSizeWeightConfig.minHeight = jObj["result"]["common"]["height"]["min"].ParseToInt();
cateSizeWeightConfig.maxHeight = jObj["result"]["common"]["height"]["max"].ParseToInt();
cateSizeWeightConfig.minWeight = jObj["result"]["common"]["weight"]["min"].ParseToInt();
cateSizeWeightConfig.maxWeight = jObj["result"]["common"]["weight"]["max"].ParseToInt();
lstCateSizeWeightConfig.Add(cateSizeWeightConfig);
try
{
JObject jObj = JObject.Parse(html);
cateSizeWeightConfig = new CateSizeWeightConfig() { catId = catId.ToString() };
if (html.Contains("common"))
{
cateSizeWeightConfig.minLen = jObj["result"]["common"]["length"]["min"].ParseToInt();
cateSizeWeightConfig.maxLen = jObj["result"]["common"]["length"]["max"].ParseToInt();
cateSizeWeightConfig.minWidth = jObj["result"]["common"]["width"]["min"].ParseToInt();
cateSizeWeightConfig.maxWidth = jObj["result"]["common"]["width"]["max"].ParseToInt();
cateSizeWeightConfig.minHeight = jObj["result"]["common"]["height"]["min"].ParseToInt();
cateSizeWeightConfig.maxHeight = jObj["result"]["common"]["height"]["max"].ParseToInt();
cateSizeWeightConfig.minWeight = jObj["result"]["common"]["weight"]["min"].ParseToInt();
cateSizeWeightConfig.maxWeight = jObj["result"]["common"]["weight"]["max"].ParseToInt();
}
else
{
cateSizeWeightConfig.minLen = jObj["result"]["length"]["min"].ParseToInt();
cateSizeWeightConfig.maxLen = jObj["result"]["length"]["max"].ParseToInt();
cateSizeWeightConfig.minWidth = jObj["result"]["width"]["min"].ParseToInt();
cateSizeWeightConfig.maxWidth = jObj["result"]["width"]["max"].ParseToInt();
cateSizeWeightConfig.minHeight = jObj["result"]["height"]["min"].ParseToInt();
cateSizeWeightConfig.maxHeight = jObj["result"]["height"]["max"].ParseToInt();
cateSizeWeightConfig.minWeight = jObj["result"]["weight"]["min"].ParseToInt();
cateSizeWeightConfig.maxWeight = jObj["result"]["weight"]["max"].ParseToInt();
}
lstCateSizeWeightConfig.Add(cateSizeWeightConfig);
var url = BaseClass.BuildObjString("product/add_cate_size_weight_config");
var data = UserLogin.GetSignaturex();
data += "&cat_id=" + catId;
data += "&minLen=" + cateSizeWeightConfig.minLen;
data += "&maxLen=" + cateSizeWeightConfig.maxLen;
data += "&minWidth=" + cateSizeWeightConfig.minWidth;
data += "&maxWidth=" + cateSizeWeightConfig.maxWidth;
data += "&minHeight=" + cateSizeWeightConfig.minHeight;
data += "&maxHeight=" + cateSizeWeightConfig.maxHeight;
data += "&minWeight=" + cateSizeWeightConfig.minWeight;
data += "&maxWeight=" + cateSizeWeightConfig.maxWeight;
html = GetHtml.PostUtf8(url, data);
var url = BaseClass.BuildObjString("product/add_cate_size_weight_config_v2");
var data = UserLogin.GetSignaturex();
data += "&cat_id=" + catId;
data += "&minLen=" + cateSizeWeightConfig.minLen;
data += "&maxLen=" + cateSizeWeightConfig.maxLen;
data += "&minWidth=" + cateSizeWeightConfig.minWidth;
data += "&maxWidth=" + cateSizeWeightConfig.maxWidth;
data += "&minHeight=" + cateSizeWeightConfig.minHeight;
data += "&maxHeight=" + cateSizeWeightConfig.maxHeight;
data += "&minWeight=" + cateSizeWeightConfig.minWeight;
data += "&maxWeight=" + cateSizeWeightConfig.maxWeight;
html = GetHtml.PostUtf8(url, data);
}
catch { }
}
else
{
@@ -1942,16 +1993,18 @@ namespace TemuKJD.KJDForms.AdminForms
}
}
// 设置长宽高
if (len < cateSizeWeightConfig.minLen) len = cateSizeWeightConfig.minLen;
if (len > cateSizeWeightConfig.maxLen) len = cateSizeWeightConfig.maxLen;
if (width < cateSizeWeightConfig.minWidth) width = cateSizeWeightConfig.minWidth;
if (width > cateSizeWeightConfig.maxWidth) width = cateSizeWeightConfig.maxWidth;
if (height < cateSizeWeightConfig.minHeight) height = cateSizeWeightConfig.minHeight;
if (height > cateSizeWeightConfig.maxHeight) height = cateSizeWeightConfig.maxHeight;
if (weight < cateSizeWeightConfig.minWeight) weight = cateSizeWeightConfig.minWeight;
if (weight > cateSizeWeightConfig.maxWeight) weight = cateSizeWeightConfig.maxWeight;
if (cateSizeWeightConfig != null)
{
// 设置长宽高
if (len < cateSizeWeightConfig.minLen) len = cateSizeWeightConfig.minLen;
if (len > cateSizeWeightConfig.maxLen) len = cateSizeWeightConfig.maxLen;
if (width < cateSizeWeightConfig.minWidth) width = cateSizeWeightConfig.minWidth;
if (width > cateSizeWeightConfig.maxWidth) width = cateSizeWeightConfig.maxWidth;
if (height < cateSizeWeightConfig.minHeight) height = cateSizeWeightConfig.minHeight;
if (height > cateSizeWeightConfig.maxHeight) height = cateSizeWeightConfig.maxHeight;
if (weight < cateSizeWeightConfig.minWeight) weight = cateSizeWeightConfig.minWeight;
if (weight > cateSizeWeightConfig.maxWeight) weight = cateSizeWeightConfig.maxWeight;
}
//JObject jPost = new JObject();
//jPost.Add("productId", price.productId);