temu推单相关功能
This commit is contained in:
1 parent
165df61234
commit
b05de6797e
27 files changed
+4561
-315
No files matched your search
+10
-1
@@ -37,7 +37,7 @@
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\bin\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
@@ -160,6 +160,12 @@
|
||||
<Compile Include="KJDForms\JITForms\JITForm.Designer.cs">
|
||||
<DependentUpon>JITForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="KJDForms\JITForms\JitPushOrder.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="KJDForms\JITForms\JitPushOrder.Designer.cs">
|
||||
<DependentUpon>JitPushOrder.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="KJDForms\JITForms\JitShopActiveForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@@ -913,6 +919,9 @@
|
||||
<EmbeddedResource Include="KJDForms\JITForms\JITForm.resx">
|
||||
<DependentUpon>JITForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="KJDForms\JITForms\JitPushOrder.resx">
|
||||
<DependentUpon>JitPushOrder.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="KJDForms\JITForms\JitShopActiveForm.resx">
|
||||
<DependentUpon>JitShopActiveForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
||||
+102
-75
@@ -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);
|
||||
|
||||
+28
-24
@@ -29,17 +29,19 @@ namespace TemuKJD.KJDForms.JITForms
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("JIT卡密激活");
|
||||
System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("JIT商品选品");
|
||||
System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("JIT商品上传");
|
||||
System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("JIT商品核价");
|
||||
System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("开通JIT");
|
||||
System.Windows.Forms.TreeNode treeNode6 = new System.Windows.Forms.TreeNode("JIT", new System.Windows.Forms.TreeNode[] {
|
||||
treeNode1,
|
||||
treeNode2,
|
||||
treeNode3,
|
||||
treeNode4,
|
||||
treeNode5});
|
||||
System.Windows.Forms.TreeNode treeNode8 = new System.Windows.Forms.TreeNode("JIT卡密激活");
|
||||
System.Windows.Forms.TreeNode treeNode9 = new System.Windows.Forms.TreeNode("JIT商品选品");
|
||||
System.Windows.Forms.TreeNode treeNode10 = new System.Windows.Forms.TreeNode("JIT商品上传");
|
||||
System.Windows.Forms.TreeNode treeNode11 = new System.Windows.Forms.TreeNode("JIT商品核价");
|
||||
System.Windows.Forms.TreeNode treeNode12 = new System.Windows.Forms.TreeNode("开通JIT");
|
||||
System.Windows.Forms.TreeNode treeNode13 = new System.Windows.Forms.TreeNode("JIT推单");
|
||||
System.Windows.Forms.TreeNode treeNode14 = new System.Windows.Forms.TreeNode("JIT", new System.Windows.Forms.TreeNode[] {
|
||||
treeNode8,
|
||||
treeNode9,
|
||||
treeNode10,
|
||||
treeNode11,
|
||||
treeNode12,
|
||||
treeNode13});
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.tv = new TemuKJD.UserComponent.UcTreeView();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
@@ -92,20 +94,22 @@ namespace TemuKJD.KJDForms.JITForms
|
||||
this.tv.Location = new System.Drawing.Point(0, 0);
|
||||
this.tv.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.tv.Name = "tv";
|
||||
treeNode1.Name = "JIT卡密激活";
|
||||
treeNode1.Text = "JIT卡密激活";
|
||||
treeNode2.Name = "JIT商品选品";
|
||||
treeNode2.Text = "JIT商品选品";
|
||||
treeNode3.Name = "JIT商品上传";
|
||||
treeNode3.Text = "JIT商品上传";
|
||||
treeNode4.Name = "JIT商品核价";
|
||||
treeNode4.Text = "JIT商品核价";
|
||||
treeNode5.Name = "开通JIT";
|
||||
treeNode5.Text = "开通JIT";
|
||||
treeNode6.Name = "JIT";
|
||||
treeNode6.Text = "JIT";
|
||||
treeNode8.Name = "JIT卡密激活";
|
||||
treeNode8.Text = "JIT卡密激活";
|
||||
treeNode9.Name = "JIT商品选品";
|
||||
treeNode9.Text = "JIT商品选品";
|
||||
treeNode10.Name = "JIT商品上传";
|
||||
treeNode10.Text = "JIT商品上传";
|
||||
treeNode11.Name = "JIT商品核价";
|
||||
treeNode11.Text = "JIT商品核价";
|
||||
treeNode12.Name = "开通JIT";
|
||||
treeNode12.Text = "开通JIT";
|
||||
treeNode13.Name = "JIT推单";
|
||||
treeNode13.Text = "JIT推单";
|
||||
treeNode14.Name = "JIT";
|
||||
treeNode14.Text = "JIT";
|
||||
this.tv.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
|
||||
treeNode6});
|
||||
treeNode14});
|
||||
this.tv.OverForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
|
||||
this.tv.Size = new System.Drawing.Size(140, 450);
|
||||
this.tv.TabIndex = 4;
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace TemuKJD.KJDForms.JITForms
|
||||
public Lazy<DbProductSelectListManageForm> dDbProductSelectListManageForm = new Lazy<DbProductSelectListManageForm>(); // jit商品上传
|
||||
public Lazy<AdminProductPriceCheckForm> productPriceCheckForm = new Lazy<AdminProductPriceCheckForm>(); // jit商品核价
|
||||
public Lazy<TemuJitForm> temuJitForm = new Lazy<TemuJitForm>();
|
||||
public Lazy<JitPushOrder> jitPushOrder = new Lazy<JitPushOrder>();
|
||||
public JITForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -30,7 +31,7 @@ namespace TemuKJD.KJDForms.JITForms
|
||||
tv.SelectedNode = tv.Nodes[0].Nodes[0];
|
||||
tv.ExpandGroup(tv.Nodes[0].Name);
|
||||
|
||||
List<string> hideName = new List<string>() { "请在列表中填写要隐藏的Tab页面" };
|
||||
List<string> hideName = new List<string>() { "请在列表中填写要隐藏的Tab页面", "JIT推单" };
|
||||
|
||||
foreach (var item in hideName)
|
||||
{
|
||||
@@ -69,6 +70,10 @@ namespace TemuKJD.KJDForms.JITForms
|
||||
temuJitForm.Value.IsClientJit = true;
|
||||
SetForm(temuJitForm.Value);
|
||||
break;
|
||||
case "JIT推单":
|
||||
jitPushOrder.Value.IsClientJit = true;
|
||||
SetForm(jitPushOrder.Value);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1590
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,222 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="colSelect.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colUser.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colLoginName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colShopId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colShopNotes.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colLoginStatus.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colJitStatus.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colCanUse.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colMessage.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colCheck.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colIndexId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colSupplierId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colSupplierName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colSupplierInfo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colSubOrderSn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colSubOrderSnInfo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colImgUrl.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colProductSkcPic.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colParentStockId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colProductId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colUpProuctId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colProdName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colProductSn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colProdInfo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colSkuImgUrl.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colSkuImg.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colSkuInfo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colCost.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colPrcie.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colStockUpNum.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colCreateTime.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colUploadCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colUploadOrder.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colMsg.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
@@ -1,6 +1,7 @@
|
||||
using AllBase;
|
||||
using AllBase.Helper;
|
||||
using AllBase.Model.Result;
|
||||
using NaiBa.Util;
|
||||
using NaiBa.Util.Extension;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
@@ -28,11 +29,11 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
JoinDeliveryConfig joinDeliveryConfig = null;
|
||||
public bool IsAdmin = false;
|
||||
public CancellationTokenSource cancellationTokenSource { get; set; } = null;
|
||||
public List<ShopLoginInfo> lstAdminShopInfo { get; set; } = new List<ShopLoginInfo>();
|
||||
public ConcurrentList<ShopLoginInfo> lstAdminShopInfo { get; set; } = new ConcurrentList<ShopLoginInfo>();
|
||||
/// <summary>
|
||||
/// 备货单列表
|
||||
/// </summary>
|
||||
List<TemuStockInfo> lstStockInfo = new List<TemuStockInfo>();
|
||||
ConcurrentList<TemuStockInfo> lstStockInfo = new ConcurrentList<TemuStockInfo>();
|
||||
|
||||
public JoinDeliveryForm()
|
||||
{
|
||||
|
||||
@@ -121,10 +121,10 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
this.splitContainer1.TabIndex = 37;
|
||||
this.splitContainer1.TabStop = false;
|
||||
//
|
||||
// txtNotes
|
||||
// txtReason
|
||||
//
|
||||
this.txtReason.Location = new System.Drawing.Point(69, 42);
|
||||
this.txtReason.Name = "txtNotes";
|
||||
this.txtReason.Name = "txtReason";
|
||||
this.txtReason.Size = new System.Drawing.Size(347, 23);
|
||||
this.txtReason.TabIndex = 472;
|
||||
//
|
||||
@@ -325,6 +325,7 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
this.dgvOrder.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvOrder.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.dgvOrder.AutoRowNumber = true;
|
||||
this.dgvOrder.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
|
||||
this.dgvOrder.BackgroundColor = System.Drawing.Color.White;
|
||||
this.dgvOrder.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
@@ -434,6 +435,7 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
//
|
||||
this.colType.HeaderText = "申报价格类型";
|
||||
this.colType.Name = "colType";
|
||||
this.colType.ReadOnly = true;
|
||||
//
|
||||
// colSkuPrice
|
||||
//
|
||||
@@ -455,6 +457,7 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
//
|
||||
this.colUseArea.HeaderText = "调整后申报价格适用范围";
|
||||
this.colUseArea.Name = "colUseArea";
|
||||
this.colUseArea.ReadOnly = true;
|
||||
//
|
||||
// colAvailableBalance
|
||||
//
|
||||
|
||||
@@ -92,8 +92,11 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
{
|
||||
pbLoading.Visible = false;
|
||||
}));
|
||||
|
||||
if (IsAuto)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(ErrMsg))
|
||||
return;
|
||||
SaveNewPrice();
|
||||
}
|
||||
});
|
||||
@@ -156,7 +159,7 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
try
|
||||
{
|
||||
var jObj = JObject.Parse(adjustRst);
|
||||
var objStr = JsonHelper.SerializeObject( jObj["result"]);
|
||||
var objStr = JsonHelper.SerializeObject(jObj["result"]);
|
||||
var adjustPriceInfo = JsonHelper.DeserializeJsonToObject<AdjustPriceInfo>(objStr);
|
||||
|
||||
foreach (var item in adjustPriceInfo.spuAdjustResult[productId].skcItems[0].items)
|
||||
@@ -325,12 +328,18 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
|
||||
if (shop == null || productId.IsNullOrEmpty() || skcId.IsNullOrEmpty() || productName.IsNullOrEmpty())
|
||||
{
|
||||
BaseMsgForm.ShowError("店铺商品信息为空!");
|
||||
if (IsAuto)
|
||||
ErrMsg = "店铺商品信息为空!";
|
||||
else
|
||||
BaseMsgForm.ShowError("店铺商品信息为空!");
|
||||
return;
|
||||
}
|
||||
if (!dgvOrder.Rows.Cast<DataGridViewRow>().Any(r => r.Cells["colSelect"].Value.ParseToBool() == true))
|
||||
{
|
||||
BaseMsgForm.ShowError("请至少勾选一项!"); // todo
|
||||
if (IsAuto)
|
||||
ErrMsg = "请至少勾选一项!" + dgvOrder.Rows.Cast<DataGridViewRow>().Count();
|
||||
else
|
||||
BaseMsgForm.ShowError("请至少勾选一项!"); // todo,查找自动设置出现次错误原因
|
||||
return;
|
||||
}
|
||||
foreach (DataGridViewRow r in dgvOrder.Rows)
|
||||
@@ -339,7 +348,10 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
{
|
||||
if (r.Cells["colSkuNewPrice"].Value.ParseToDecimal() == 0)
|
||||
{
|
||||
BaseMsgForm.ShowError("请输入合理的新申报价格!");
|
||||
if (IsAuto)
|
||||
ErrMsg = "请输入合理的新申报价格!";
|
||||
else
|
||||
BaseMsgForm.ShowError("请输入合理的新申报价格!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
+74
-74
@@ -114,10 +114,6 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
this.btnClose = new DevComponents.DotNetBar.PanelEx();
|
||||
this.pbLoading = new System.Windows.Forms.PictureBox();
|
||||
this.dgvOpenJit = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.splitContainer4 = new System.Windows.Forms.SplitContainer();
|
||||
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
|
||||
this.btnClear = new DevComponents.DotNetBar.PanelEx();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
this.colCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.colProdIndex = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colOrderId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -140,6 +136,10 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
this.colStock = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colRecevieArea = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colMsg = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.splitContainer4 = new System.Windows.Forms.SplitContainer();
|
||||
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
|
||||
this.btnClear = new DevComponents.DotNetBar.PanelEx();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
@@ -1198,76 +1198,6 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
this.dgvOpenJit.TabIndex = 187;
|
||||
this.dgvOpenJit.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvOpenJit_CellContentClick);
|
||||
//
|
||||
// splitContainer4
|
||||
//
|
||||
this.splitContainer4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer4.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
|
||||
this.splitContainer4.Location = new System.Drawing.Point(0, 0);
|
||||
this.splitContainer4.Name = "splitContainer4";
|
||||
//
|
||||
// splitContainer4.Panel1
|
||||
//
|
||||
this.splitContainer4.Panel1.Controls.Add(this.ucSplitPage1);
|
||||
//
|
||||
// splitContainer4.Panel2
|
||||
//
|
||||
this.splitContainer4.Panel2.Controls.Add(this.btnClear);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.statusBar);
|
||||
this.splitContainer4.Size = new System.Drawing.Size(1584, 26);
|
||||
this.splitContainer4.SplitterDistance = 282;
|
||||
this.splitContainer4.TabIndex = 3;
|
||||
//
|
||||
// ucSplitPage1
|
||||
//
|
||||
this.ucSplitPage1.CurrentPage = 1;
|
||||
this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.ucSplitPage1.IsShowPageSize = false;
|
||||
this.ucSplitPage1.Location = new System.Drawing.Point(0, 0);
|
||||
this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.ucSplitPage1.Name = "ucSplitPage1";
|
||||
this.ucSplitPage1.PageSize = 50;
|
||||
this.ucSplitPage1.Size = new System.Drawing.Size(282, 26);
|
||||
this.ucSplitPage1.TabIndex = 5;
|
||||
this.ucSplitPage1.TotalPage = 1;
|
||||
this.ucSplitPage1.PageChange += new System.Action<object>(this.ucSplitPage1_PageChange);
|
||||
//
|
||||
// btnClear
|
||||
//
|
||||
this.btnClear.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnClear.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnClear.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnClear.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnClear.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnClear.Location = new System.Drawing.Point(1204, 0);
|
||||
this.btnClear.Name = "btnClear";
|
||||
this.btnClear.Size = new System.Drawing.Size(90, 21);
|
||||
this.btnClear.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnClear.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnClear.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnClear.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnClear.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnClear.Style.GradientAngle = 90;
|
||||
this.btnClear.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnClear.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnClear.TabIndex = 440;
|
||||
this.btnClear.Text = "清空结果";
|
||||
this.btnClear.Visible = false;
|
||||
//
|
||||
// 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(1298, 26);
|
||||
this.statusBar.TabIndex = 2;
|
||||
//
|
||||
// colCheck
|
||||
//
|
||||
this.colCheck.HeaderText = "选择";
|
||||
@@ -1448,6 +1378,76 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
this.colMsg.ReadOnly = true;
|
||||
this.colMsg.Width = 180;
|
||||
//
|
||||
// splitContainer4
|
||||
//
|
||||
this.splitContainer4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer4.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
|
||||
this.splitContainer4.Location = new System.Drawing.Point(0, 0);
|
||||
this.splitContainer4.Name = "splitContainer4";
|
||||
//
|
||||
// splitContainer4.Panel1
|
||||
//
|
||||
this.splitContainer4.Panel1.Controls.Add(this.ucSplitPage1);
|
||||
//
|
||||
// splitContainer4.Panel2
|
||||
//
|
||||
this.splitContainer4.Panel2.Controls.Add(this.btnClear);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.statusBar);
|
||||
this.splitContainer4.Size = new System.Drawing.Size(1584, 26);
|
||||
this.splitContainer4.SplitterDistance = 321;
|
||||
this.splitContainer4.TabIndex = 3;
|
||||
//
|
||||
// ucSplitPage1
|
||||
//
|
||||
this.ucSplitPage1.CurrentPage = 1;
|
||||
this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.ucSplitPage1.IsShowPageSize = false;
|
||||
this.ucSplitPage1.Location = new System.Drawing.Point(0, 0);
|
||||
this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.ucSplitPage1.Name = "ucSplitPage1";
|
||||
this.ucSplitPage1.PageSize = 50;
|
||||
this.ucSplitPage1.Size = new System.Drawing.Size(321, 26);
|
||||
this.ucSplitPage1.TabIndex = 5;
|
||||
this.ucSplitPage1.TotalPage = 1;
|
||||
this.ucSplitPage1.PageChange += new System.Action<object>(this.ucSplitPage1_PageChange);
|
||||
//
|
||||
// btnClear
|
||||
//
|
||||
this.btnClear.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnClear.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnClear.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnClear.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnClear.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnClear.Location = new System.Drawing.Point(1165, 0);
|
||||
this.btnClear.Name = "btnClear";
|
||||
this.btnClear.Size = new System.Drawing.Size(90, 21);
|
||||
this.btnClear.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnClear.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnClear.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnClear.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnClear.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnClear.Style.GradientAngle = 90;
|
||||
this.btnClear.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnClear.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnClear.TabIndex = 440;
|
||||
this.btnClear.Text = "清空结果";
|
||||
this.btnClear.Visible = false;
|
||||
//
|
||||
// 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(1259, 26);
|
||||
this.statusBar.TabIndex = 2;
|
||||
//
|
||||
// TemuJitForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using AllBase;
|
||||
using AllBase.Helper;
|
||||
using AllBase.Model.Result;
|
||||
using NaiBa.Util;
|
||||
using NaiBa.Util.Extension;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
@@ -30,27 +31,27 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
{
|
||||
public bool IsClientJit { get; set; } = false;
|
||||
public CancellationTokenSource cancellationTokenSource { get; set; } = null;
|
||||
public List<ShopLoginInfo> lstAdminShopInfo { get; set; } = new List<ShopLoginInfo>();
|
||||
public ConcurrentList<ShopLoginInfo> lstAdminShopInfo { get; set; } = new ConcurrentList<ShopLoginInfo>();
|
||||
/// <summary>
|
||||
/// 生命周期商品列表
|
||||
/// </summary>
|
||||
public List<TemuForChainProductInfo> lstChainProdInfo = new List<TemuForChainProductInfo>();
|
||||
public ConcurrentList<TemuForChainProductInfo> lstChainProdInfo = new ConcurrentList<TemuForChainProductInfo>();
|
||||
/// <summary>
|
||||
/// 商品合规信息列表
|
||||
/// </summary>
|
||||
public List<complianceInfo> lstComplianceInfo = new List<complianceInfo>();
|
||||
public ConcurrentList<complianceInfo> lstComplianceInfo = new ConcurrentList<complianceInfo>();
|
||||
/// <summary>
|
||||
/// 实拍图
|
||||
/// </summary>
|
||||
public List<RealPictureInfo> lstRealPictureInfo = new List<RealPictureInfo>();
|
||||
public ConcurrentList<RealPictureInfo> lstRealPictureInfo = new ConcurrentList<RealPictureInfo>();
|
||||
/// <summary>
|
||||
/// 商品信息(含虚拟库存)列表
|
||||
/// </summary>
|
||||
public List<TemuListProductInfo> lstProductInfo = new List<TemuListProductInfo>();
|
||||
public ConcurrentList<TemuListProductInfo> lstProductInfo = new ConcurrentList<TemuListProductInfo>();
|
||||
/// <summary>
|
||||
/// 期望到货区域列表
|
||||
/// </summary>
|
||||
public List<SkcReceiveAreaPickOutInfo> lstReceiveArea = new List<SkcReceiveAreaPickOutInfo>();
|
||||
public ConcurrentList<SkcReceiveAreaPickOutInfo> lstReceiveArea = new ConcurrentList<SkcReceiveAreaPickOutInfo>();
|
||||
|
||||
/// <summary>
|
||||
/// 界面参数配置
|
||||
@@ -2468,6 +2469,7 @@ Content-Disposition: form-data; name=""upload_sign""
|
||||
public string SearchNotes { get; set; } = "";
|
||||
public bool SearchAllShop { get; set; } = true;
|
||||
public string SearchSpuId { get; set; } = "";
|
||||
public string SearchSkcId { get; set; } = "";
|
||||
public string SearchExtCode { get; set; } = "";
|
||||
public bool SearchDuration { get; set; } = true;
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ using TemuKJD.BLL;
|
||||
using TemuKJD.ToolForms;
|
||||
using AllBase.Model.Result.TemuResult.TemuSizeConfigResult;
|
||||
using AllBase.Model.Result.TemuResult;
|
||||
using NaiBa.Util;
|
||||
|
||||
namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
{
|
||||
@@ -39,8 +40,9 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
List<string> skuRandomLetterArr = new List<string> { "~", "#", "¥", "%", "&", "*", "(", ")", "(", ")", "+", "-", "_", "=", "【", "】", "·", "|", "《", "》" };
|
||||
|
||||
NaiBa.Util.ConcurrentList<TemuDBProductSelect> lstAdminTemuDBProductSelect = new NaiBa.Util.ConcurrentList<TemuDBProductSelect>();
|
||||
List<ShopLoginInfo> shopLst = new List<ShopLoginInfo>();
|
||||
List<TemuDBExtCodePriceInfo> lstDbPrice = new List<TemuDBExtCodePriceInfo>();
|
||||
public ConcurrentList<CateSizeWeightConfig> lstCateSizeWeightConfig = new ConcurrentList<CateSizeWeightConfig>();
|
||||
ConcurrentList<ShopLoginInfo> shopLst = new ConcurrentList<ShopLoginInfo>();
|
||||
ConcurrentList<TemuDBExtCodePriceInfo> lstDbPrice = new ConcurrentList<TemuDBExtCodePriceInfo>();
|
||||
List<string> lstCustomImg = new List<string>();
|
||||
Dictionary<string, string> dicCustomImg = new Dictionary<string, string>();
|
||||
List<string> lstExtCodeFleeceInShoes = new List<string>() {
|
||||
@@ -148,8 +150,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
else
|
||||
{
|
||||
ucSplitPage1.cmbPageSize.Items.Remove("5000");
|
||||
ucSplitPage1.cmbPageSize.Items.Remove("2000");
|
||||
ucSplitPage1.cmbPageSize.Items.Remove("1000");
|
||||
//ucSplitPage1.cmbPageSize.Items.Remove("2000");
|
||||
//ucSplitPage1.cmbPageSize.Items.Remove("1000");
|
||||
}
|
||||
|
||||
if (BaseClass.SaLevel == 1 && !IsClientJit)
|
||||
@@ -282,7 +284,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
this.ucSplitPage1.TotalPage = pageCount;
|
||||
|
||||
var shopIdLst = list.Select(p => p.shop_id).Distinct().ToList();
|
||||
shopLst = ShopBLL.AdminGetServerShopLstByIds(shopIdLst);
|
||||
shopLst.Clear();
|
||||
shopLst.AddRange(ShopBLL.AdminGetServerShopLstByIds(shopIdLst));
|
||||
|
||||
//if (defaultBitmap == null)
|
||||
// defaultBitmap = new Bitmap(80, 80);
|
||||
@@ -509,9 +512,9 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
break;
|
||||
case "进店":
|
||||
{
|
||||
var shop = GetShop(shopId);
|
||||
if (!IsClientJit)
|
||||
{
|
||||
var shop = GetShop(shopId);
|
||||
AdminShopLoginForm adminLoginForm = new AdminShopLoginForm(shop);
|
||||
//adminLoginForm.InitUrl = "https://seller.kuajingmaihuo.com/goods/product/draft";
|
||||
adminLoginForm.InitUrl = "https://agentseller.temu.com/goods/draft";
|
||||
@@ -519,25 +522,41 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
adminLoginForm.WindowState = FormWindowState.Maximized;
|
||||
adminLoginForm.ShowDialog();
|
||||
}
|
||||
else
|
||||
{
|
||||
ShopLoginForm adminLoginForm = new ShopLoginForm(shop);
|
||||
//adminLoginForm.InitUrl = "https://seller.kuajingmaihuo.com/goods/product/draft";
|
||||
adminLoginForm.InitUrl = "https://agentseller.temu.com/goods/draft";
|
||||
adminLoginForm.openType = EnumOpenType.manage;
|
||||
adminLoginForm.WindowState = FormWindowState.Maximized;
|
||||
adminLoginForm.ShowDialog();
|
||||
}
|
||||
}
|
||||
break;
|
||||
case "登录":
|
||||
{
|
||||
var shop = GetShop(shopId);
|
||||
// 登录店铺
|
||||
if (!IsClientJit)
|
||||
{
|
||||
var shop = GetShop(shopId);
|
||||
// 登录店铺
|
||||
AdminShopLoginForm shopLoginForm = new AdminShopLoginForm(shop);
|
||||
shopLoginForm.openType = EnumOpenType.login;
|
||||
shopLoginForm.SaveComplete += ShopLoginForm_SaveComplete;
|
||||
shopLoginForm.ShowDialog();
|
||||
foreach (DataGridViewRow row in this.dgvSelectProduct.Rows)
|
||||
}
|
||||
else
|
||||
{
|
||||
ShopLoginForm shopLoginForm = new ShopLoginForm(shop);
|
||||
shopLoginForm.openType = EnumOpenType.login;
|
||||
shopLoginForm.SaveComplete += ShopLoginForm_SaveComplete;
|
||||
shopLoginForm.ShowDialog();
|
||||
}
|
||||
foreach (DataGridViewRow row in this.dgvSelectProduct.Rows)
|
||||
{
|
||||
if (row.Cells["colSupplierId"].Value.ParseToString() == shop.ShopId)
|
||||
{
|
||||
if (row.Cells["colSupplierId"].Value.ParseToString() == shop.ShopId)
|
||||
{
|
||||
row.Cells["colLogin"].Value = shop.LoginStatus2 == "国际版在线" ? "在线" : "登录";
|
||||
displayLoginStatusColor(row.Cells["colLogin"], row.Cells["colLogin"].Value.ParseToString());
|
||||
}
|
||||
row.Cells["colLogin"].Value = shop.LoginStatus2 == "国际版在线" ? "在线" : "登录";
|
||||
displayLoginStatusColor(row.Cells["colLogin"], row.Cells["colLogin"].Value.ParseToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -639,17 +658,25 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
|
||||
ShopLoginInfo GetShop(string shopId)
|
||||
{
|
||||
var shop = shopLst.FirstOrDefault(s => s.ShopId == shopId);
|
||||
if (shop == null)
|
||||
ShopLoginInfo shop;
|
||||
if (IsClientJit)
|
||||
{
|
||||
shop = AdminGetServerShop(shopId);
|
||||
shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
|
||||
}
|
||||
else
|
||||
{
|
||||
shop = shopLst.FirstOrDefault(s => s.ShopId == shopId);
|
||||
if (shop == null)
|
||||
{
|
||||
shop = new ShopLoginInfo() { ShopId = shopId };
|
||||
shop.LoginStatus = "不存在";
|
||||
shop = AdminGetServerShop(shopId);
|
||||
}
|
||||
shopLst.Add(shop);
|
||||
}
|
||||
if (shop == null)
|
||||
{
|
||||
shop = new ShopLoginInfo() { ShopId = shopId };
|
||||
shop.LoginStatus = "不存在";
|
||||
}
|
||||
shopLst.Add(shop);
|
||||
return shop;
|
||||
}
|
||||
|
||||
@@ -762,18 +789,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
continue;
|
||||
}
|
||||
|
||||
var shop = shopLst.FirstOrDefault(s => s.ShopId == prod.shop_id);
|
||||
if (shop == null)
|
||||
{
|
||||
shop = AdminGetServerShop(prod.shop_id);
|
||||
if (shop == null)
|
||||
{
|
||||
shop = new ShopLoginInfo() { ShopId = prod.shop_id };
|
||||
shop.LoginStatus = "不存在";
|
||||
}
|
||||
shopLst.Add(shop);
|
||||
}
|
||||
|
||||
var shop = GetShop(prod.shop_id);
|
||||
if (shop.LoginStatus != "登录成功")
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
@@ -837,7 +853,10 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
|
||||
if (result.Contains("登录过期") || result.Contains("Invalid Login State"))
|
||||
{
|
||||
AdminShopListForm.Instance.CheckShopLogin(shopLst.Where(s => s.LoginName == shop.LoginName).ToArray(), false);
|
||||
if (!IsClientJit)
|
||||
AdminShopListForm.Instance.CheckShopLogin(shopLst.Where(s => s.LoginName == shop.LoginName).ToArray(), false);
|
||||
else
|
||||
ShopListForm.Instance.CheckShopLogin(shopLst.Where(s => s.LoginName == shop.LoginName).ToArray(), false);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -1627,13 +1646,132 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
int numberOfPieces = 1; // 单品数量
|
||||
if (chkChangeSizeAndNumber.Checked) // 修改包装尺寸和单品数量
|
||||
{
|
||||
len = Randomx.GetId(numLen1.Value.ParseToInt(), numLen2.Value.ParseToInt()+1);
|
||||
len = Randomx.GetId(numLen1.Value.ParseToInt(), numLen2.Value.ParseToInt() + 1);
|
||||
width = Randomx.GetId(numWidth1.Value.ParseToInt(), Math.Min(len, numWidth2.Value.ParseToInt() + 1));
|
||||
height = Randomx.GetId(numHeight1.Value.ParseToInt(), Math.Min(width, numHeight2.Value.ParseToInt() + 1));
|
||||
weight = Randomx.GetId(numWeight1.Value.ParseToInt(), numWeight2.Value.ParseToInt() + 1);
|
||||
len *= 10;
|
||||
width *= 10;
|
||||
height *= 10;
|
||||
weight *= 1000;
|
||||
numberOfPieces = Randomx.GetId(numUnitNum1.Value.ParseToInt(), numUnitNum2.Value.ParseToInt());
|
||||
|
||||
var cateSizeWeightConfig = lstCateSizeWeightConfig.FirstOrDefault(c => c.catId == catId.ToString());
|
||||
if (cateSizeWeightConfig == null)
|
||||
{
|
||||
var url = BaseClass.BuildObjString("product/get_cate_size_weight_config_v2");
|
||||
var data = UserLogin.GetSignaturex() +
|
||||
"&cat_id=" + catId;
|
||||
html = GetHtml.PostUtf8(url, data);
|
||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||
html = GetHtml.PostUtf8(url, data);
|
||||
if (!string.IsNullOrEmpty(html) && html.Contains("\"code\":200"))
|
||||
{
|
||||
try
|
||||
{
|
||||
var jArr = JObject.Parse(html)["data"];
|
||||
cateSizeWeightConfig = JsonHelper.DeserializeJsonToObject<CateSizeWeightConfig>(jArr.ToString());
|
||||
if (cateSizeWeightConfig != null)
|
||||
lstCateSizeWeightConfig.Add(cateSizeWeightConfig);
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
}
|
||||
|
||||
if (cateSizeWeightConfig == null)
|
||||
{
|
||||
//查询接口尺寸重量限制
|
||||
html = "";
|
||||
html = queryProductSizeAndWeightConfig(shop, prodParam.productDraftId.ParseToString(), catId.ParseToString());
|
||||
var html1 = queryCatSizeAndWeightConfig(shop, prodParam.productDraftId.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(50, 100));
|
||||
if (html.Contains("\"success\":true"))
|
||||
{
|
||||
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_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
|
||||
{
|
||||
//if (html.Contains("登录过期") || html.Contains("Invalid Login State"))
|
||||
//{
|
||||
// this.CheckShopLogin(new ShopLoginInfo[] { shop }, false);
|
||||
// //Invoke(new Action(() =>
|
||||
// //{
|
||||
// // displayShopStatus(shop);
|
||||
// //}));
|
||||
//}
|
||||
//string sErrMsg = BaseRegex.GetStringJson(ref html, "errorMsg").ParseToString();
|
||||
//if (string.IsNullOrEmpty(sErrMsg))
|
||||
// sErrMsg = BaseRegex.GetStringJson(ref html, "error_msg").ParseToString();
|
||||
//if (string.IsNullOrEmpty(sErrMsg))
|
||||
// sErrMsg = html;
|
||||
//Invoke(new Action(() =>
|
||||
//{
|
||||
// foreach (var row in rows)
|
||||
// row.Cells["colMsg"].Value = "修改请求失败 " + sErrMsg;
|
||||
//}));
|
||||
//return; //continue;
|
||||
}
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int skuCount = 0;
|
||||
//foreach (var skuInfo in skcInfo.productSkuList)
|
||||
NaiBa.Util.ConcurrentList<TemuProductSku> skuListTmp = new NaiBa.Util.ConcurrentList<TemuProductSku>();
|
||||
@@ -1829,10 +1967,10 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
|
||||
if (chkChangeSizeAndNumber.Checked) // 修改包装尺寸和单品数量
|
||||
{
|
||||
skuItem.productSkuWhExtAttrReq.productSkuVolumeReq.len = len * 10;
|
||||
skuItem.productSkuWhExtAttrReq.productSkuVolumeReq.width = width * 10;
|
||||
skuItem.productSkuWhExtAttrReq.productSkuVolumeReq.height = height * 10;
|
||||
skuItem.productSkuWhExtAttrReq.productSkuWeightReq.value = weight * 1000;
|
||||
skuItem.productSkuWhExtAttrReq.productSkuVolumeReq.len = len;
|
||||
skuItem.productSkuWhExtAttrReq.productSkuVolumeReq.width = width;
|
||||
skuItem.productSkuWhExtAttrReq.productSkuVolumeReq.height = height;
|
||||
skuItem.productSkuWhExtAttrReq.productSkuWeightReq.value = weight;
|
||||
}
|
||||
skuItem.supplierPrice = skuInfo.supplierPrice;
|
||||
// 按照批号原价取商品原价和加价规则并修改商品上传价格
|
||||
@@ -2831,6 +2969,22 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
|
||||
}
|
||||
|
||||
private string queryProductSizeAndWeightConfig(ShopLoginInfo shop, 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?productDraftId=" + productId + "&from=productDraftList";
|
||||
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
|
||||
}
|
||||
private string queryCatSizeAndWeightConfig(ShopLoginInfo shop, 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 = @"{""catId"":" + catId + "}";
|
||||
string referer = "https://agentseller.temu.com/goods/edit?productDraftId=" + productId + "&from=productDraftList";
|
||||
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
|
||||
}
|
||||
|
||||
private string GetCatPathList(ShopLoginInfo shop, string draftId, string catId)
|
||||
{
|
||||
string url = "https://agentseller.temu.com/anniston-agent-seller/category/path/list";
|
||||
|
||||
Reference in new issue
Block a user