This commit is contained in:
chfei authored and chfei committed 2026-09-14 09:16:59 +08:00
1 parent 0a3e5af6a9
commit c2dcedd238
59 files changed
+2053 -1274

No files matched your search

+1
View File
@@ -65,6 +65,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\AllBase\AllBase.csproj" />
<ProjectReference Include="..\Store.Product\Store.Product.csproj" />
<ProjectReference Include="..\Work\Work.csproj" />
</ItemGroup>
<ItemGroup>
+53 -53
View File
@@ -42,6 +42,7 @@ namespace TemuKJD.WXForms.ProductForms
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
this.btnClearAll = new DevComponents.DotNetBar.PanelEx();
this.txtWaitSeconds = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.chkRemoveSpecialChar = new TemuKJD.UserComponent.UcCheckBox(this.components);
@@ -264,7 +265,6 @@ namespace TemuKJD.WXForms.ProductForms
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
this.btnClear = new DevComponents.DotNetBar.PanelEx();
this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
this.btnClearAll = new DevComponents.DotNetBar.PanelEx();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
@@ -321,7 +321,7 @@ namespace TemuKJD.WXForms.ProductForms
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.Controls.Add(this.splitContainer3);
this.splitContainer1.Size = new System.Drawing.Size(1710, 641);
this.splitContainer1.Size = new System.Drawing.Size(1832, 641);
this.splitContainer1.SplitterDistance = 190;
this.splitContainer1.TabIndex = 11;
//
@@ -361,15 +361,41 @@ namespace TemuKJD.WXForms.ProductForms
this.ucGroupBoxEx2.Controls.Add(this.label15);
this.ucGroupBoxEx2.Location = new System.Drawing.Point(608, 2);
this.ucGroupBoxEx2.Name = "ucGroupBoxEx2";
this.ucGroupBoxEx2.Size = new System.Drawing.Size(1100, 189);
this.ucGroupBoxEx2.Size = new System.Drawing.Size(1222, 189);
this.ucGroupBoxEx2.TabIndex = 667;
this.ucGroupBoxEx2.TabStop = false;
this.ucGroupBoxEx2.Text = "商品上传";
//
// btnClearAll
//
this.btnClearAll.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnClearAll.CanvasColor = System.Drawing.SystemColors.Control;
this.btnClearAll.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnClearAll.DisabledBackColor = System.Drawing.Color.Empty;
this.btnClearAll.Location = new System.Drawing.Point(1154, 121);
this.btnClearAll.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2);
this.btnClearAll.Name = "btnClearAll";
this.btnClearAll.Size = new System.Drawing.Size(60, 23);
this.btnClearAll.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnClearAll.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnClearAll.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnClearAll.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.btnClearAll.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnClearAll.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.btnClearAll.Style.GradientAngle = 90;
this.btnClearAll.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
this.btnClearAll.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnClearAll.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnClearAll.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnClearAll.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
this.btnClearAll.TabIndex = 929;
this.btnClearAll.Text = "清空全部";
this.btnClearAll.Click += new System.EventHandler(this.btnClearAll_Click);
//
// txtWaitSeconds
//
this.txtWaitSeconds.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.txtWaitSeconds.Location = new System.Drawing.Point(1056, 12);
this.txtWaitSeconds.Location = new System.Drawing.Point(1178, 12);
this.txtWaitSeconds.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtWaitSeconds.Name = "txtWaitSeconds";
this.txtWaitSeconds.Size = new System.Drawing.Size(22, 23);
@@ -381,7 +407,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(1015, 15);
this.label6.Location = new System.Drawing.Point(1137, 15);
this.label6.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(44, 17);
@@ -394,7 +420,7 @@ namespace TemuKJD.WXForms.ProductForms
this.chkRemoveSpecialChar.AutoSize = true;
this.chkRemoveSpecialChar.Checked = true;
this.chkRemoveSpecialChar.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkRemoveSpecialChar.Location = new System.Drawing.Point(886, 13);
this.chkRemoveSpecialChar.Location = new System.Drawing.Point(1008, 13);
this.chkRemoveSpecialChar.Name = "chkRemoveSpecialChar";
this.chkRemoveSpecialChar.Size = new System.Drawing.Size(135, 21);
this.chkRemoveSpecialChar.TabIndex = 896;
@@ -406,7 +432,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.chkIsSubmitSuccess.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.chkIsSubmitSuccess.AutoSize = true;
this.chkIsSubmitSuccess.Location = new System.Drawing.Point(790, 13);
this.chkIsSubmitSuccess.Location = new System.Drawing.Point(912, 13);
this.chkIsSubmitSuccess.Name = "chkIsSubmitSuccess";
this.chkIsSubmitSuccess.Size = new System.Drawing.Size(99, 21);
this.chkIsSubmitSuccess.TabIndex = 906;
@@ -418,7 +444,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.chkUseShanghaiReturnOrderAddress.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.chkUseShanghaiReturnOrderAddress.AutoSize = true;
this.chkUseShanghaiReturnOrderAddress.Location = new System.Drawing.Point(659, 13);
this.chkUseShanghaiReturnOrderAddress.Location = new System.Drawing.Point(781, 13);
this.chkUseShanghaiReturnOrderAddress.Name = "chkUseShanghaiReturnOrderAddress";
this.chkUseShanghaiReturnOrderAddress.Size = new System.Drawing.Size(135, 21);
this.chkUseShanghaiReturnOrderAddress.TabIndex = 916;
@@ -430,7 +456,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(1077, 15);
this.label7.Location = new System.Drawing.Point(1199, 15);
this.label7.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(20, 17);
@@ -497,7 +523,7 @@ namespace TemuKJD.WXForms.ProductForms
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(1032, 65);
this.btnStop.Location = new System.Drawing.Point(1154, 65);
this.btnStop.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2);
this.btnStop.Name = "btnStop";
this.btnStop.Size = new System.Drawing.Size(60, 23);
@@ -523,7 +549,7 @@ namespace TemuKJD.WXForms.ProductForms
this.chkRandomCompanyProd.AutoSize = true;
this.chkRandomCompanyProd.Checked = true;
this.chkRandomCompanyProd.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkRandomCompanyProd.Location = new System.Drawing.Point(1032, 144);
this.chkRandomCompanyProd.Location = new System.Drawing.Point(1154, 144);
this.chkRandomCompanyProd.Name = "chkRandomCompanyProd";
this.chkRandomCompanyProd.Size = new System.Drawing.Size(99, 21);
this.chkRandomCompanyProd.TabIndex = 889;
@@ -549,7 +575,7 @@ namespace TemuKJD.WXForms.ProductForms
this.btnClearDgv.CanvasColor = System.Drawing.SystemColors.Control;
this.btnClearDgv.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnClearDgv.DisabledBackColor = System.Drawing.Color.Empty;
this.btnClearDgv.Location = new System.Drawing.Point(1032, 93);
this.btnClearDgv.Location = new System.Drawing.Point(1154, 93);
this.btnClearDgv.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2);
this.btnClearDgv.Name = "btnClearDgv";
this.btnClearDgv.Size = new System.Drawing.Size(60, 23);
@@ -722,7 +748,7 @@ namespace TemuKJD.WXForms.ProductForms
this.btnUpload.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnUpload.DisabledBackColor = System.Drawing.Color.Empty;
this.btnUpload.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnUpload.Location = new System.Drawing.Point(1032, 37);
this.btnUpload.Location = new System.Drawing.Point(1154, 37);
this.btnUpload.Name = "btnUpload";
this.btnUpload.Size = new System.Drawing.Size(60, 23);
this.btnUpload.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -789,7 +815,7 @@ namespace TemuKJD.WXForms.ProductForms
this.ucTabControlMetro1.Name = "ucTabControlMetro1";
this.ucTabControlMetro1.SelectedIndex = 0;
this.ucTabControlMetro1.ShowCloseButton = false;
this.ucTabControlMetro1.Size = new System.Drawing.Size(620, 176);
this.ucTabControlMetro1.Size = new System.Drawing.Size(742, 176);
this.ucTabControlMetro1.TabIndex = 822;
this.ucTabControlMetro1.TabSelectColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.ucTabControlMetro1.TabSelectTextColor = System.Drawing.Color.Gray;
@@ -835,7 +861,7 @@ namespace TemuKJD.WXForms.ProductForms
this.上传参数1.Location = new System.Drawing.Point(4, 28);
this.上传参数1.Name = "上传参数1";
this.上传参数1.Padding = new System.Windows.Forms.Padding(3);
this.上传参数1.Size = new System.Drawing.Size(612, 144);
this.上传参数1.Size = new System.Drawing.Size(734, 144);
this.上传参数1.TabIndex = 1;
this.上传参数1.Text = "上传参数";
this.上传参数1.UseVisualStyleBackColor = true;
@@ -927,7 +953,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.chkUseRecommand.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.chkUseRecommand.AutoSize = true;
this.chkUseRecommand.Location = new System.Drawing.Point(493, 51);
this.chkUseRecommand.Location = new System.Drawing.Point(615, 51);
this.chkUseRecommand.Name = "chkUseRecommand";
this.chkUseRecommand.Size = new System.Drawing.Size(123, 21);
this.chkUseRecommand.TabIndex = 907;
@@ -1014,7 +1040,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.chkUpDraft.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.chkUpDraft.AutoSize = true;
this.chkUpDraft.Location = new System.Drawing.Point(493, 72);
this.chkUpDraft.Location = new System.Drawing.Point(615, 72);
this.chkUpDraft.Name = "chkUpDraft";
this.chkUpDraft.Size = new System.Drawing.Size(87, 21);
this.chkUpDraft.TabIndex = 769;
@@ -1077,7 +1103,7 @@ namespace TemuKJD.WXForms.ProductForms
this.txtReplaceText.MaxLength = 1000000;
this.txtReplaceText.Multiline = true;
this.txtReplaceText.Name = "txtReplaceText";
this.txtReplaceText.Size = new System.Drawing.Size(423, 40);
this.txtReplaceText.Size = new System.Drawing.Size(545, 40);
this.txtReplaceText.TabIndex = 740;
this.txtReplaceText.Text = "真丝,蚕丝,香云纱,羊绒,羊毛,羊羔绒,羊羔毛,羽绒,皮草";
this.txtReplaceText.TextChanged += new System.EventHandler(this.txtReplaceText_TextChanged);
@@ -2723,7 +2749,7 @@ namespace TemuKJD.WXForms.ProductForms
// splitContainer3.Panel2
//
this.splitContainer3.Panel2.Controls.Add(this.splitContainer4);
this.splitContainer3.Size = new System.Drawing.Size(1710, 447);
this.splitContainer3.Size = new System.Drawing.Size(1832, 447);
this.splitContainer3.SplitterDistance = 418;
this.splitContainer3.TabIndex = 1;
//
@@ -2754,7 +2780,7 @@ namespace TemuKJD.WXForms.ProductForms
this.splitContainer2.Panel2.Controls.Add(this.chkTestNoAuditUpload);
this.splitContainer2.Panel2.Controls.Add(this.dgvSelectProduct);
this.splitContainer2.Panel2.Padding = new System.Windows.Forms.Padding(0, 0, 4, 0);
this.splitContainer2.Size = new System.Drawing.Size(1710, 418);
this.splitContainer2.Size = new System.Drawing.Size(1832, 418);
this.splitContainer2.SplitterDistance = 410;
this.splitContainer2.TabIndex = 0;
//
@@ -2991,7 +3017,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.pbLoading.Anchor = System.Windows.Forms.AnchorStyles.None;
this.pbLoading.Image = global::TemuKJD.Properties.Resources.loading_blue;
this.pbLoading.Location = new System.Drawing.Point(623, 187);
this.pbLoading.Location = new System.Drawing.Point(684, 187);
this.pbLoading.Name = "pbLoading";
this.pbLoading.Size = new System.Drawing.Size(50, 50);
this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
@@ -3006,7 +3032,7 @@ namespace TemuKJD.WXForms.ProductForms
this.并发上传.Cursor = System.Windows.Forms.Cursors.Hand;
this.并发上传.DisabledBackColor = System.Drawing.Color.Empty;
this.并发上传.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.并发上传.Location = new System.Drawing.Point(1170, 30);
this.并发上传.Location = new System.Drawing.Point(1292, 30);
this.并发上传.Name = "并发上传";
this.并发上传.Size = new System.Drawing.Size(118, 23);
this.并发上传.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -3118,7 +3144,7 @@ namespace TemuKJD.WXForms.ProductForms
this.dgvSelectProduct.Name = "dgvSelectProduct";
this.dgvSelectProduct.ReadOnly = true;
this.dgvSelectProduct.RowTemplate.Height = 23;
this.dgvSelectProduct.Size = new System.Drawing.Size(1292, 418);
this.dgvSelectProduct.Size = new System.Drawing.Size(1414, 418);
this.dgvSelectProduct.TabIndex = 187;
this.dgvSelectProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvSelectProduct_CellContentClick);
//
@@ -3324,8 +3350,8 @@ namespace TemuKJD.WXForms.ProductForms
//
this.splitContainer4.Panel2.Controls.Add(this.btnClear);
this.splitContainer4.Panel2.Controls.Add(this.panelEx1);
this.splitContainer4.Size = new System.Drawing.Size(1710, 25);
this.splitContainer4.SplitterDistance = 1019;
this.splitContainer4.Size = new System.Drawing.Size(1832, 25);
this.splitContainer4.SplitterDistance = 1141;
this.splitContainer4.TabIndex = 3;
//
// statusBar
@@ -3336,7 +3362,7 @@ namespace TemuKJD.WXForms.ProductForms
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(1019, 25);
this.statusBar.Size = new System.Drawing.Size(1141, 25);
this.statusBar.TabIndex = 2;
//
// btnClear
@@ -3389,37 +3415,11 @@ namespace TemuKJD.WXForms.ProductForms
this.panelEx1.Text = "停止当前操作";
this.panelEx1.Visible = false;
//
// btnClearAll
//
this.btnClearAll.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnClearAll.CanvasColor = System.Drawing.SystemColors.Control;
this.btnClearAll.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnClearAll.DisabledBackColor = System.Drawing.Color.Empty;
this.btnClearAll.Location = new System.Drawing.Point(1032, 121);
this.btnClearAll.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2);
this.btnClearAll.Name = "btnClearAll";
this.btnClearAll.Size = new System.Drawing.Size(60, 23);
this.btnClearAll.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnClearAll.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnClearAll.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnClearAll.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.btnClearAll.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnClearAll.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.btnClearAll.Style.GradientAngle = 90;
this.btnClearAll.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
this.btnClearAll.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnClearAll.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnClearAll.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnClearAll.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
this.btnClearAll.TabIndex = 929;
this.btnClearAll.Text = "清空全部";
this.btnClearAll.Click += new System.EventHandler(this.btnClearAll_Click);
//
// WXDBProdUploadForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(1710, 641);
this.ClientSize = new System.Drawing.Size(1832, 641);
this.Controls.Add(this.splitContainer1);
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.KeyPreview = true;
@@ -35,6 +35,8 @@ using TemuKJD.UserControls;
using TemuKJD.WXForms.ShopForms;
using Work;
using Work.BLL.Tools;
using Store.Product.Models.PublishParameters;
using Store.Product.Publish.Steps;
using Work.Services;
using static System.Net.Mime.MediaTypeNames;
@@ -49,6 +51,8 @@ namespace TemuKJD.WXForms.ProductForms
public CancellationTokenSource cancellationTokenSource { get; set; } = null;
public bool IsWxNotUseSoftwareDefaultAddressOnce { get; set; } = false;
public WXPublishParameters PublishParameters { get; set; } = new WXPublishParameters();
ConcurrentList<AddPriceRule> lstAddPriceRule = new ConcurrentList<AddPriceRule>();
bool isInit = false;
@@ -1059,6 +1063,98 @@ namespace TemuKJD.WXForms.ProductForms
void AddProductArr(List<string> shopIdLst)
{
PublishParameters = new WXPublishParameters
{
// 复用基类已有参数。
TitlePrefix = txtTitleHeadWord.Text.Trim(),
StorageType = chkUpDraft.Checked ? ProductStorage.InStock : ProductStorage.OnSale,
IsFilterPrice = new SwitchParams<Tuple<int, int>>(
!string.IsNullOrWhiteSpace(txtMinPrice.Text) || !string.IsNullOrWhiteSpace(txtMaxPrice.Text),
new Tuple<int, int>(
string.IsNullOrWhiteSpace(txtMinPrice.Text) ? 0 : txtMinPrice.Text.Trim().ParseToInt(),
string.IsNullOrWhiteSpace(txtMaxPrice.Text) ? int.MaxValue : txtMaxPrice.Text.Trim().ParseToInt())),
IsFilterCustomTitleKeywors = chkSkipReplaceText.Checked,
IsRemoveCustomTitleKeywors = !chkSkipReplaceText.Checked && !string.IsNullOrWhiteSpace(txtReplaceText.Text),
// 原 WXUploadRule 对应参数。
PreSaleDays = txtPreDays.Text.Trim().ParseToInt(),
FilterWords = txtReplaceText.Text.Trim(),
IsSkipHasFilterWordsProd = chkSkipReplaceText.Checked,
SkuMinPrice = string.IsNullOrWhiteSpace(txtMinPrice.Text) ? 0 : txtMinPrice.Text.Trim().ParseToInt(),
SkuMaxPrice = string.IsNullOrWhiteSpace(txtMaxPrice.Text) ? int.MaxValue : txtMaxPrice.Text.Trim().ParseToInt(),
WaitSeconds = txtWaitSeconds.Text.Trim().ParseToInt(),
OnlyHighestPriceSku = chkHighestPriceSku.Checked,
OnlyLowestPriceSku = chkLowestPriceSku.Checked,
SameSpecSamePriceUp = chkSameSpecPriceUp.Checked,
SameSpecSamePriceDown = chkSameSpecPriceDown.Checked,
SkipUploaded = chkSkipUploaded.Checked,
SkipExisting = chkSkipUploaded.Checked,
UpDraft = chkUpDraft.Checked,
IsPreSale = chkPreSale.Checked,
TitleHeadWords = txtTitleHeadWord.Text.Trim(),
IsSaveBound = chkSaveBound.Checked,
FilterBoundMinSave = txtFilterBoundMin.Text.Trim().ParseToInt(),
FilterBoundMaxSave = txtFilterBoundMax.Text.Trim().ParseToInt(),
IsAiShortTitle = chkAiShortTitle.Checked,
IsUseWXComplateProd = chkUseWXComplateProd.Checked,
IsUseShanghaiReturnOrderAddress = chkUseShanghaiReturnOrderAddress.Checked,
// UploadProduct 内直接读取的窗体参数。
IsFissionTitle = chkFissionGoodsName.Checked,
FissionTitles = txtFissionTitle.Text,
IsRemoveSpecialChar = chkRemoveSpecialChar.Checked,
IsCommissionUpload = chkCommission.Checked,
IsCommissionIncrease = cmbCommissionAddOrReduce.Text == "增加",
CommissionMinPercent = txtMinUpCommission.Text.Trim().ParseToInt(),
CommissionMaxPercent = txtMaxUpCommission.Text.Trim().ParseToInt(),
CommissionChangePercent = txtCommissionChangeValue.Text.Trim().ParseToInt(),
IsUseRecommendation = chkUseRecommand.Checked,
IsImageRandomBlock = chkImgRandomBlock.Checked,
IsRandomMainImageOrder = chkRandomMainImgOrder.Checked,
IsRandomDetailImageOrder = chkRandomDetailImgOrder.Checked,
IsFissionRandomPriceChange = chkFissionRandomPriceChange.Checked,
FissionRandomPriceChangeValue = txtFissionRandomPriceChange.Text.Trim().ParseToDecimal(),
SpecialBrandName = cmbSpBrandName.Text.Trim(),
IsAiImage = chkAiImage.Checked,
AiImageCount = txtAiImgCount.Text.Trim().ParseToInt(),
IsDefaultBestBefore = chkDefaultBestBefore.Checked,
DefaultBestBeforeDays = txtDefaultBestBefore.Text.Trim().ParseToInt(),
IsRandomImageBorder = chkRandomImgBorder.Checked,
MainBorderImageCount = txtMainBorderImgCount.Text.Trim().ParseToInt(),
DetailBorderImageCount = txtDetailBorderImgCount.Text.Trim().ParseToInt(),
IsFreightInsurance = chkFreightInsurance.Checked,
IsTestNoAuditUpload = chkTestNoAuditUpload.Checked,
IsCheckSubmitSuccess = chkIsSubmitSuccess.Checked,
UseSoftwareDefaultAddress = GlobalConfig.GlobalSettings.IsWxUseSoftwareDefaultAddress,
IgnoreSoftwareDefaultAddressOnce = IsWxNotUseSoftwareDefaultAddressOnce,
// 加价规则与商品价格/SKU/图片参数一起迁移。
DefaultAddPriceRule = new WXAddPriceRule
{
MoreThanPrice = defaultAddPriceRule.MoreThanPrice,
LessThanPrice = defaultAddPriceRule.LessThanPrice,
AddPriceTimes = defaultAddPriceRule.AddPriceTimes,
AddMorePrice = defaultAddPriceRule.AddMorePrice,
SinglePriceAdd = defaultAddPriceRule.SinglePriceAdd,
AddMorePriceFirst = defaultAddPriceRule.AddMorePriceFirst,
StockNum = defaultAddPriceRule.StockNum,
IsStepAddPrice = defaultAddPriceRule.IsStepAddPrice,
ShippingPriceTimes = defaultAddPriceRule.ShippingPriceTimes
},
AddPriceRules = lstAddPriceRule.Select(rule => new WXAddPriceRule
{
MoreThanPrice = rule.MoreThanPrice,
LessThanPrice = rule.LessThanPrice,
AddPriceTimes = rule.AddPriceTimes,
AddMorePrice = rule.AddMorePrice,
SinglePriceAdd = rule.SinglePriceAdd,
AddMorePriceFirst = rule.AddMorePriceFirst,
StockNum = rule.StockNum,
IsStepAddPrice = rule.IsStepAddPrice,
ShippingPriceTimes = rule.ShippingPriceTimes
}).ToList()
};
Invoke(new Action(() =>
{
this.pbLoading.Visible = true;
@@ -7838,33 +7934,90 @@ Content-Type: application/octet-stream
public class WXUploadRule
{
/// <summary>
/// 预售天数(页面限制为 3-45 天)。
/// </summary>
public int PreSaleDays { get; set; } = 5;
/// <summary>
/// 需要移除的敏感词,多个词使用逗号分隔。
/// </summary>
public string FilterWords { get; set; } = "顶级,之王,二手,亏本,冲量,白菜价,跳楼价,xx,xxx,最大,最小,低价,降价,成本,赔钱,甩卖,真丝,蚕丝,香云纱,羊绒,羊毛,羊羔绒,羊羔毛,羽绒,皮草";
/// <summary>
/// 是否跳过标题中包含过滤词的商品。
/// </summary>
public bool IsSkipHasFilterWordsProd { get; set; } = false;
/// <summary>
/// 跳过最低售价低于该值的 SKU(单位:元)。
/// </summary>
public int SkuMinPrice { get; set; } = 10;
/// <summary>
/// 跳过最高售价高于该值的 SKU(单位:元)。
/// </summary>
public int SkuMaxPrice { get; set; } = 9999;
/// <summary>
/// 商品上传操作后的额外等待秒数(无论上传成功或失败)。
/// </summary>
public int WaitSeconds { get; set; } = 10;
/// <summary>
/// 是否只保留最高价 SKU。
/// </summary>
public bool OnlyHighestPriceSku { get; set; } = false;
/// <summary>
/// 是否只保留最低价 SKU。
/// </summary>
public bool OnlyLowestPriceSku { get; set; } = false;
/// <summary>
/// 是否启用颜色规格同价(上浮)。
/// </summary>
public bool SameSpecSamePriceUp { get; set; } = false;
/// <summary>
/// 是否启用颜色规格同价(下浮)。
/// </summary>
public bool SameSpecSamePriceDown { get; set; } = false;
/// <summary>
/// 是否跳过已铺货商品。
/// </summary>
public bool SkipUploaded { get; set; } = true;
/// <summary>
/// 是否仅上传草稿,不上架商品。
/// </summary>
public bool UpDraft { get; set; } = false;
/// <summary>
/// 是否启用预售天数。
/// </summary>
public bool IsPreSale { get; set; } = false;
/// <summary>
/// 添加到商品标题最前面的标题前缀词。
/// </summary>
public string TitleHeadWords { get; set; } = "";
/// <summary>
/// 是否记住待传类目保证金的过滤范围。
/// </summary>
public bool IsSaveBound { get; set; } = false;
/// <summary>
/// 待传类目保证金过滤范围下限(单位:元)。
/// </summary>
public int FilterBoundMinSave { get; set; } = 1000;
/// <summary>
/// 待传类目保证金过滤范围上限(单位:元)。
/// </summary>
public int FilterBoundMaxSave { get; set; } = 1000;
/// <summary>
/// 是否使用 AI 优化商品标题。
/// </summary>
public bool IsAiShortTitle { get; set; } = false;
/// <summary>
/// 是否使用回采数据。
/// </summary>
public bool IsUseWXComplateProd { get; set; }
/// <summary>
/// 上海仓退货
/// 是否使用拍单退货仓地址。
/// </summary>
public bool IsUseShanghaiReturnOrderAddress { get; set; } = false;
}
@@ -117,6 +117,69 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="btnClearAll.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="btnStop.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>144, 93</value>
</metadata>
<metadata name="btnClearDgv.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 93</value>
</metadata>
<metadata name="btnUpload.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>1319, 55</value>
</metadata>
<metadata name="btnFilterBound.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>1179, 55</value>
</metadata>
<metadata name="btnLoginAssistant.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>1022, 55</value>
</metadata>
<metadata name="btnSwitchCatType.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>865, 55</value>
</metadata>
<metadata name="btnProdDb.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>746, 55</value>
</metadata>
<metadata name="btnClearFilter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>614, 55</value>
</metadata>
<metadata name="btnClearUpload.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>467, 55</value>
</metadata>
<metadata name="btnRandomAdd.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>320, 55</value>
</metadata>
<metadata name="btnRefreshAuthor.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>163, 55</value>
</metadata>
<metadata name="btnSelectOffline.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 55</value>
</metadata>
<metadata name="btnSelectOnline.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>1204, 17</value>
</metadata>
<metadata name="btnAddUnSelect.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>1056, 17</value>
</metadata>
<metadata name="btnReverse.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>936, 17</value>
</metadata>
<metadata name="btnAddSelect.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>804, 17</value>
</metadata>
<metadata name="btnEmptyShop.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>664, 17</value>
</metadata>
<metadata name="btnFilterShop.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>532, 17</value>
</metadata>
<metadata name="btnRefreshShop.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>384, 17</value>
</metadata>
<metadata name="btnRefreshNum.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>238, 17</value>
</metadata>
<metadata name="colSelect.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
@@ -156,6 +219,9 @@
<metadata name="colMessage.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="并发上传.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>135, 17</value>
</metadata>
<metadata name="colCheck.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
@@ -219,4 +285,10 @@
<metadata name="colOpResult.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="btnClear.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>245, 93</value>
</metadata>
<metadata name="panelEx1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>349, 93</value>
</metadata>
</root>