diff --git a/AllBase/BaseClass.cs b/AllBase/BaseClass.cs
index 3ba2975..5c2b2af 100644
--- a/AllBase/BaseClass.cs
+++ b/AllBase/BaseClass.cs
@@ -27,7 +27,7 @@ namespace AllBase
///
/// 版本ID
///
- public static int VersionCount = 831;
+ public static int VersionCount = 832;
//public static int VersionCount = 613;
///
diff --git a/TEMUKJD/KJD.csproj b/TEMUKJD/KJD.csproj
index 7c6d66b..ff74a9a 100644
--- a/TEMUKJD/KJD.csproj
+++ b/TEMUKJD/KJD.csproj
@@ -179,6 +179,12 @@
WXDBProdUploadCacheForm.cs
+
+ Form
+
+
+ WXProdPreSaleForm.cs
+
Form
@@ -1069,6 +1075,9 @@
WXDBProdUploadCacheForm.cs
+
+ WXProdPreSaleForm.cs
+
WXDBProdUploadForm.cs
diff --git a/TEMUKJD/WXForms/ProductForms/WXProdPreSaleForm.Designer.cs b/TEMUKJD/WXForms/ProductForms/WXProdPreSaleForm.Designer.cs
new file mode 100644
index 0000000..9f1e37e
--- /dev/null
+++ b/TEMUKJD/WXForms/ProductForms/WXProdPreSaleForm.Designer.cs
@@ -0,0 +1,1530 @@
+
+using TemuKJD.PDDForms.ProductSelectForms;
+
+namespace TemuKJD.WXForms.ProductForms
+{
+ partial class WXProdPreSaleForm
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ 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();
+ this.splitContainer1 = new System.Windows.Forms.SplitContainer();
+ this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
+ this.chkNoPreSale = new TemuKJD.UserComponent.UcCheckBox(this.components);
+ this.label18 = new System.Windows.Forms.Label();
+ this.txtPreDays = new System.Windows.Forms.TextBox();
+ this.chkPreSale = new TemuKJD.UserComponent.UcCheckBox(this.components);
+ this.btnStop = new DevComponents.DotNetBar.PanelEx();
+ this.btnClearDgv = new DevComponents.DotNetBar.PanelEx();
+ this.btnSetPreSale = new DevComponents.DotNetBar.PanelEx();
+ this.ucGroupBoxEx4 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
+ this.cmbPreType = new System.Windows.Forms.ComboBox();
+ this.label3 = new System.Windows.Forms.Label();
+ this.panelEx2 = new DevComponents.DotNetBar.PanelEx();
+ this.txtPageEnd = new System.Windows.Forms.TextBox();
+ this.label2 = new System.Windows.Forms.Label();
+ this.txtProductName = new System.Windows.Forms.TextBox();
+ this.label11 = new System.Windows.Forms.Label();
+ this.btnClearFilter = new DevComponents.DotNetBar.PanelEx();
+ this.txtIdFilter = new System.Windows.Forms.TextBox();
+ this.txtExtCodeFilter = new System.Windows.Forms.TextBox();
+ this.lblIdFilter = new System.Windows.Forms.Label();
+ this.lblExtCodeFilter = new System.Windows.Forms.Label();
+ this.btnSearchProd = new DevComponents.DotNetBar.PanelEx();
+ this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
+ this.btnRefreshAuthor = new DevComponents.DotNetBar.PanelEx();
+ this.btnSelectOffline = new DevComponents.DotNetBar.PanelEx();
+ this.btnSelectOnline = new DevComponents.DotNetBar.PanelEx();
+ this.btnAddUnSelect = new DevComponents.DotNetBar.PanelEx();
+ this.btnReverse = new DevComponents.DotNetBar.PanelEx();
+ this.cmbFilterShopNotes = new TemuKJD.UserComponent.UcComboBoxMutiSelect();
+ this.btnAddSelect = new DevComponents.DotNetBar.PanelEx();
+ this.btnEmptyShop = new DevComponents.DotNetBar.PanelEx();
+ this.btnFilterShop = new DevComponents.DotNetBar.PanelEx();
+ this.label16 = new System.Windows.Forms.Label();
+ this.txtFilterShopName = new System.Windows.Forms.TextBox();
+ this.btnRefreshShop = new DevComponents.DotNetBar.PanelEx();
+ this.label17 = new System.Windows.Forms.Label();
+ this.splitContainer3 = new System.Windows.Forms.SplitContainer();
+ this.splitContainer2 = new System.Windows.Forms.SplitContainer();
+ this.pbLoadingShop = new System.Windows.Forms.PictureBox();
+ this.txtPageBegin = new System.Windows.Forms.TextBox();
+ this.label1 = new System.Windows.Forms.Label();
+ this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx();
+ this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+ this.colShopLoginName = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colShopNotes = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colSelectProduct = new System.Windows.Forms.DataGridViewLinkColumn();
+ this.colLoginStatus = new System.Windows.Forms.DataGridViewLinkColumn();
+ this.colApi = new System.Windows.Forms.DataGridViewLinkColumn();
+ this.colCanUse = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+ this.colUploadCount = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colOnSaleNum = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colRemaining = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.chkUpDraft = new TemuKJD.UserComponent.UcCheckBox(this.components);
+ this.pbLoading = new System.Windows.Forms.PictureBox();
+ this.chkTestNoAuditUpload = new TemuKJD.UserComponent.UcCheckBox(this.components);
+ this.dgvSelectProduct = new TemuKJD.UserComponent.DataGridViewEx();
+ this.splitContainer4 = new System.Windows.Forms.SplitContainer();
+ this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
+ this.btnClear = new DevComponents.DotNetBar.PanelEx();
+ this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
+ this.colCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+ this.colSelectId = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colSupplierId = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colSupplierName = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colLogin = new System.Windows.Forms.DataGridViewLinkColumn();
+ this.colInShop = new System.Windows.Forms.DataGridViewLinkColumn();
+ this.colSpuId = new System.Windows.Forms.DataGridViewLinkColumn();
+ this.colSkcId = new System.Windows.Forms.DataGridViewLinkColumn();
+ this.colDraftId = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colImgUrl = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colProductSkcPic = new System.Windows.Forms.DataGridViewImageColumn();
+ this.colSkuFakeImgUrl = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colSkuFakeImg = new System.Windows.Forms.DataGridViewImageColumn();
+ this.colProductName = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colProductCat = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colExtCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colPrice = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colMsg = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colNotes = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colUserNotes = new System.Windows.Forms.DataGridViewLinkColumn();
+ this.ColDelete = new System.Windows.Forms.DataGridViewLinkColumn();
+ this.colAddTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colOpResult = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
+ this.splitContainer1.Panel1.SuspendLayout();
+ this.splitContainer1.Panel2.SuspendLayout();
+ this.splitContainer1.SuspendLayout();
+ this.ucGroupBoxEx2.SuspendLayout();
+ this.ucGroupBoxEx4.SuspendLayout();
+ this.ucGroupBoxEx1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).BeginInit();
+ this.splitContainer3.Panel1.SuspendLayout();
+ this.splitContainer3.Panel2.SuspendLayout();
+ this.splitContainer3.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
+ this.splitContainer2.Panel1.SuspendLayout();
+ this.splitContainer2.Panel2.SuspendLayout();
+ this.splitContainer2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pbLoadingShop)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvShop)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pbLoading)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvSelectProduct)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).BeginInit();
+ this.splitContainer4.Panel1.SuspendLayout();
+ this.splitContainer4.Panel2.SuspendLayout();
+ this.splitContainer4.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // splitContainer1
+ //
+ this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
+ this.splitContainer1.Location = new System.Drawing.Point(0, 0);
+ this.splitContainer1.Name = "splitContainer1";
+ this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
+ //
+ // splitContainer1.Panel1
+ //
+ this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx2);
+ this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx4);
+ this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx1);
+ //
+ // splitContainer1.Panel2
+ //
+ this.splitContainer1.Panel2.Controls.Add(this.splitContainer3);
+ this.splitContainer1.Size = new System.Drawing.Size(1583, 641);
+ this.splitContainer1.SplitterDistance = 165;
+ this.splitContainer1.TabIndex = 11;
+ //
+ // ucGroupBoxEx2
+ //
+ this.ucGroupBoxEx2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.ucGroupBoxEx2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
+ this.ucGroupBoxEx2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.ucGroupBoxEx2.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
+ this.ucGroupBoxEx2.Controls.Add(this.chkNoPreSale);
+ this.ucGroupBoxEx2.Controls.Add(this.label18);
+ this.ucGroupBoxEx2.Controls.Add(this.txtPreDays);
+ this.ucGroupBoxEx2.Controls.Add(this.chkPreSale);
+ this.ucGroupBoxEx2.Controls.Add(this.btnStop);
+ this.ucGroupBoxEx2.Controls.Add(this.btnClearDgv);
+ this.ucGroupBoxEx2.Controls.Add(this.btnSetPreSale);
+ this.ucGroupBoxEx2.Location = new System.Drawing.Point(571, 2);
+ this.ucGroupBoxEx2.Name = "ucGroupBoxEx2";
+ this.ucGroupBoxEx2.Size = new System.Drawing.Size(1010, 165);
+ this.ucGroupBoxEx2.TabIndex = 667;
+ this.ucGroupBoxEx2.TabStop = false;
+ this.ucGroupBoxEx2.Text = "设置预售";
+ //
+ // chkNoPreSale
+ //
+ this.chkNoPreSale.AutoSize = true;
+ this.chkNoPreSale.Checked = true;
+ this.chkNoPreSale.CheckState = System.Windows.Forms.CheckState.Checked;
+ this.chkNoPreSale.Location = new System.Drawing.Point(35, 30);
+ this.chkNoPreSale.Name = "chkNoPreSale";
+ this.chkNoPreSale.Size = new System.Drawing.Size(75, 21);
+ this.chkNoPreSale.TabIndex = 810;
+ this.chkNoPreSale.Text = "取消预售";
+ this.chkNoPreSale.UseVisualStyleBackColor = true;
+ this.chkNoPreSale.CheckedChanged += new System.EventHandler(this.chkNoPreSale_CheckedChanged);
+ //
+ // label18
+ //
+ this.label18.AutoSize = true;
+ this.label18.Location = new System.Drawing.Point(255, 32);
+ this.label18.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
+ this.label18.Name = "label18";
+ this.label18.Size = new System.Drawing.Size(54, 17);
+ this.label18.TabIndex = 800;
+ this.label18.Text = "(3-45天)";
+ //
+ // txtPreDays
+ //
+ this.txtPreDays.Location = new System.Drawing.Point(222, 29);
+ this.txtPreDays.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
+ this.txtPreDays.Name = "txtPreDays";
+ this.txtPreDays.Size = new System.Drawing.Size(33, 23);
+ this.txtPreDays.TabIndex = 790;
+ this.txtPreDays.Text = "5";
+ this.txtPreDays.TextChanged += new System.EventHandler(this.txtPreDays_TextChanged);
+ //
+ // chkPreSale
+ //
+ this.chkPreSale.AutoSize = true;
+ this.chkPreSale.Location = new System.Drawing.Point(130, 30);
+ this.chkPreSale.Name = "chkPreSale";
+ this.chkPreSale.Size = new System.Drawing.Size(99, 21);
+ this.chkPreSale.TabIndex = 789;
+ this.chkPreSale.Text = "设置预售天数";
+ this.chkPreSale.UseVisualStyleBackColor = true;
+ this.chkPreSale.CheckedChanged += new System.EventHandler(this.chkPreSale_CheckedChanged);
+ //
+ // btnStop
+ //
+ this.btnStop.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ 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(904, 62);
+ this.btnStop.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2);
+ this.btnStop.Name = "btnStop";
+ this.btnStop.Size = new System.Drawing.Size(84, 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 = 546;
+ this.btnStop.Text = "停止设置";
+ this.btnStop.Click += new System.EventHandler(this.btnStop_Click);
+ //
+ // btnClearDgv
+ //
+ this.btnClearDgv.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ 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(904, 93);
+ this.btnClearDgv.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2);
+ this.btnClearDgv.Name = "btnClearDgv";
+ this.btnClearDgv.Size = new System.Drawing.Size(84, 23);
+ this.btnClearDgv.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnClearDgv.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
+ this.btnClearDgv.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
+ this.btnClearDgv.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
+ this.btnClearDgv.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnClearDgv.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
+ this.btnClearDgv.Style.GradientAngle = 90;
+ this.btnClearDgv.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnClearDgv.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnClearDgv.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnClearDgv.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnClearDgv.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
+ this.btnClearDgv.TabIndex = 612;
+ this.btnClearDgv.Text = "清空列表选中";
+ this.btnClearDgv.Click += new System.EventHandler(this.btnClearDgv_Click);
+ //
+ // btnSetPreSale
+ //
+ this.btnSetPreSale.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.btnSetPreSale.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnSetPreSale.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnSetPreSale.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnSetPreSale.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnSetPreSale.Location = new System.Drawing.Point(904, 31);
+ this.btnSetPreSale.Name = "btnSetPreSale";
+ this.btnSetPreSale.Size = new System.Drawing.Size(84, 23);
+ this.btnSetPreSale.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnSetPreSale.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnSetPreSale.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnSetPreSale.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
+ this.btnSetPreSale.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
+ this.btnSetPreSale.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
+ this.btnSetPreSale.Style.ForeColor.Color = System.Drawing.Color.White;
+ this.btnSetPreSale.Style.GradientAngle = 90;
+ this.btnSetPreSale.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnSetPreSale.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnSetPreSale.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnSetPreSale.TabIndex = 517;
+ this.btnSetPreSale.Text = "批量设置";
+ this.btnSetPreSale.Click += new System.EventHandler(this.btnSetPreSale_Click);
+ //
+ // ucGroupBoxEx4
+ //
+ this.ucGroupBoxEx4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)));
+ this.ucGroupBoxEx4.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.ucGroupBoxEx4.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
+ this.ucGroupBoxEx4.Controls.Add(this.cmbPreType);
+ this.ucGroupBoxEx4.Controls.Add(this.label3);
+ this.ucGroupBoxEx4.Controls.Add(this.panelEx2);
+ this.ucGroupBoxEx4.Controls.Add(this.txtPageEnd);
+ this.ucGroupBoxEx4.Controls.Add(this.label2);
+ this.ucGroupBoxEx4.Controls.Add(this.txtProductName);
+ this.ucGroupBoxEx4.Controls.Add(this.label11);
+ this.ucGroupBoxEx4.Controls.Add(this.btnClearFilter);
+ this.ucGroupBoxEx4.Controls.Add(this.txtIdFilter);
+ this.ucGroupBoxEx4.Controls.Add(this.txtExtCodeFilter);
+ this.ucGroupBoxEx4.Controls.Add(this.lblIdFilter);
+ this.ucGroupBoxEx4.Controls.Add(this.lblExtCodeFilter);
+ this.ucGroupBoxEx4.Controls.Add(this.btnSearchProd);
+ this.ucGroupBoxEx4.Location = new System.Drawing.Point(162, 2);
+ this.ucGroupBoxEx4.Name = "ucGroupBoxEx4";
+ this.ucGroupBoxEx4.Size = new System.Drawing.Size(410, 165);
+ this.ucGroupBoxEx4.TabIndex = 666;
+ this.ucGroupBoxEx4.TabStop = false;
+ this.ucGroupBoxEx4.Text = "商品查询";
+ //
+ // cmbPreType
+ //
+ this.cmbPreType.FormattingEnabled = true;
+ this.cmbPreType.Items.AddRange(new object[] {
+ "",
+ "预售",
+ "非预售"});
+ this.cmbPreType.Location = new System.Drawing.Point(262, 25);
+ this.cmbPreType.Name = "cmbPreType";
+ this.cmbPreType.Size = new System.Drawing.Size(134, 25);
+ this.cmbPreType.TabIndex = 807;
+ this.cmbPreType.SelectedIndexChanged += new System.EventHandler(this.cmbPreType_SelectedIndexChanged);
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(207, 29);
+ this.label3.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
+ this.label3.Name = "label3";
+ this.label3.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
+ this.label3.Size = new System.Drawing.Size(56, 17);
+ this.label3.TabIndex = 806;
+ this.label3.Text = "预售状态";
+ //
+ // panelEx2
+ //
+ this.panelEx2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.panelEx2.CanvasColor = System.Drawing.SystemColors.Control;
+ this.panelEx2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.panelEx2.DisabledBackColor = System.Drawing.Color.Empty;
+ this.panelEx2.Location = new System.Drawing.Point(338, 128);
+ this.panelEx2.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2);
+ this.panelEx2.Name = "panelEx2";
+ this.panelEx2.Size = new System.Drawing.Size(58, 25);
+ this.panelEx2.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.panelEx2.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
+ this.panelEx2.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
+ this.panelEx2.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
+ this.panelEx2.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.panelEx2.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
+ this.panelEx2.Style.GradientAngle = 90;
+ this.panelEx2.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
+ this.panelEx2.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.panelEx2.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.panelEx2.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.panelEx2.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
+ this.panelEx2.TabIndex = 805;
+ this.panelEx2.Text = "停止查询";
+ this.panelEx2.Click += new System.EventHandler(this.btnStop_Click);
+ //
+ // txtPageEnd
+ //
+ this.txtPageEnd.Font = new System.Drawing.Font("微软雅黑", 10F);
+ this.txtPageEnd.Location = new System.Drawing.Point(68, 25);
+ this.txtPageEnd.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
+ this.txtPageEnd.Name = "txtPageEnd";
+ this.txtPageEnd.Size = new System.Drawing.Size(134, 25);
+ this.txtPageEnd.TabIndex = 792;
+ this.txtPageEnd.Text = "999";
+ this.txtPageEnd.TextChanged += new System.EventHandler(this.txtPageEnd_TextChanged);
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(13, 29);
+ this.label2.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
+ this.label2.Name = "label2";
+ this.label2.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
+ this.label2.Size = new System.Drawing.Size(56, 17);
+ this.label2.TabIndex = 793;
+ this.label2.Text = "查询页数";
+ //
+ // txtProductName
+ //
+ this.txtProductName.Font = new System.Drawing.Font("微软雅黑", 10F);
+ this.txtProductName.Location = new System.Drawing.Point(68, 95);
+ this.txtProductName.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
+ this.txtProductName.Name = "txtProductName";
+ this.txtProductName.Size = new System.Drawing.Size(328, 25);
+ this.txtProductName.TabIndex = 784;
+ this.txtProductName.Visible = false;
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.Location = new System.Drawing.Point(37, 99);
+ this.label11.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(32, 17);
+ this.label11.TabIndex = 785;
+ this.label11.Text = "标题";
+ this.label11.Visible = false;
+ //
+ // btnClearFilter
+ //
+ this.btnClearFilter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.btnClearFilter.CanvasColor = System.Drawing.SystemColors.Control;
+ this.btnClearFilter.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnClearFilter.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnClearFilter.Location = new System.Drawing.Point(276, 128);
+ this.btnClearFilter.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2);
+ this.btnClearFilter.Name = "btnClearFilter";
+ this.btnClearFilter.Size = new System.Drawing.Size(58, 25);
+ this.btnClearFilter.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnClearFilter.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
+ this.btnClearFilter.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
+ this.btnClearFilter.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
+ this.btnClearFilter.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnClearFilter.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
+ this.btnClearFilter.Style.GradientAngle = 90;
+ this.btnClearFilter.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnClearFilter.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnClearFilter.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnClearFilter.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnClearFilter.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
+ this.btnClearFilter.TabIndex = 548;
+ this.btnClearFilter.Text = "清空条件";
+ this.btnClearFilter.Click += new System.EventHandler(this.btnClearFilter_Click);
+ //
+ // txtIdFilter
+ //
+ this.txtIdFilter.Font = new System.Drawing.Font("微软雅黑", 10F);
+ this.txtIdFilter.Location = new System.Drawing.Point(68, 60);
+ this.txtIdFilter.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
+ this.txtIdFilter.Name = "txtIdFilter";
+ this.txtIdFilter.Size = new System.Drawing.Size(134, 25);
+ this.txtIdFilter.TabIndex = 652;
+ this.txtIdFilter.Visible = false;
+ //
+ // txtExtCodeFilter
+ //
+ this.txtExtCodeFilter.Font = new System.Drawing.Font("微软雅黑", 10F);
+ this.txtExtCodeFilter.Location = new System.Drawing.Point(262, 60);
+ this.txtExtCodeFilter.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
+ this.txtExtCodeFilter.Name = "txtExtCodeFilter";
+ this.txtExtCodeFilter.Size = new System.Drawing.Size(134, 25);
+ this.txtExtCodeFilter.TabIndex = 555;
+ this.txtExtCodeFilter.Visible = false;
+ //
+ // lblIdFilter
+ //
+ this.lblIdFilter.AutoSize = true;
+ this.lblIdFilter.Location = new System.Drawing.Point(48, 65);
+ this.lblIdFilter.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
+ this.lblIdFilter.Name = "lblIdFilter";
+ this.lblIdFilter.Size = new System.Drawing.Size(21, 17);
+ this.lblIdFilter.TabIndex = 651;
+ this.lblIdFilter.Text = "ID";
+ this.lblIdFilter.Visible = false;
+ //
+ // lblExtCodeFilter
+ //
+ this.lblExtCodeFilter.AutoSize = true;
+ this.lblExtCodeFilter.Location = new System.Drawing.Point(231, 64);
+ this.lblExtCodeFilter.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
+ this.lblExtCodeFilter.Name = "lblExtCodeFilter";
+ this.lblExtCodeFilter.Size = new System.Drawing.Size(32, 17);
+ this.lblExtCodeFilter.TabIndex = 560;
+ this.lblExtCodeFilter.Text = "货号";
+ this.lblExtCodeFilter.Visible = false;
+ //
+ // btnSearchProd
+ //
+ this.btnSearchProd.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnSearchProd.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnSearchProd.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnSearchProd.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnSearchProd.Location = new System.Drawing.Point(213, 128);
+ this.btnSearchProd.Name = "btnSearchProd";
+ this.btnSearchProd.Size = new System.Drawing.Size(58, 25);
+ this.btnSearchProd.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnSearchProd.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnSearchProd.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnSearchProd.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
+ this.btnSearchProd.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
+ this.btnSearchProd.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
+ this.btnSearchProd.Style.ForeColor.Color = System.Drawing.Color.White;
+ this.btnSearchProd.Style.GradientAngle = 90;
+ this.btnSearchProd.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnSearchProd.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnSearchProd.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnSearchProd.TabIndex = 431;
+ this.btnSearchProd.Text = "商品查询";
+ this.btnSearchProd.Click += new System.EventHandler(this.btnSearchProd_Click);
+ //
+ // ucGroupBoxEx1
+ //
+ this.ucGroupBoxEx1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)));
+ 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.btnRefreshAuthor);
+ this.ucGroupBoxEx1.Controls.Add(this.btnSelectOffline);
+ this.ucGroupBoxEx1.Controls.Add(this.btnSelectOnline);
+ this.ucGroupBoxEx1.Controls.Add(this.btnAddUnSelect);
+ this.ucGroupBoxEx1.Controls.Add(this.btnReverse);
+ this.ucGroupBoxEx1.Controls.Add(this.cmbFilterShopNotes);
+ this.ucGroupBoxEx1.Controls.Add(this.btnAddSelect);
+ this.ucGroupBoxEx1.Controls.Add(this.btnEmptyShop);
+ this.ucGroupBoxEx1.Controls.Add(this.btnFilterShop);
+ this.ucGroupBoxEx1.Controls.Add(this.label16);
+ this.ucGroupBoxEx1.Controls.Add(this.txtFilterShopName);
+ this.ucGroupBoxEx1.Controls.Add(this.btnRefreshShop);
+ this.ucGroupBoxEx1.Controls.Add(this.label17);
+ this.ucGroupBoxEx1.Location = new System.Drawing.Point(3, 2);
+ this.ucGroupBoxEx1.Name = "ucGroupBoxEx1";
+ this.ucGroupBoxEx1.Size = new System.Drawing.Size(160, 165);
+ this.ucGroupBoxEx1.TabIndex = 399;
+ this.ucGroupBoxEx1.TabStop = false;
+ this.ucGroupBoxEx1.Text = "基础";
+ //
+ // btnRefreshAuthor
+ //
+ this.btnRefreshAuthor.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnRefreshAuthor.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnRefreshAuthor.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnRefreshAuthor.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnRefreshAuthor.Location = new System.Drawing.Point(81, 17);
+ this.btnRefreshAuthor.Name = "btnRefreshAuthor";
+ this.btnRefreshAuthor.Size = new System.Drawing.Size(70, 20);
+ this.btnRefreshAuthor.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnRefreshAuthor.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnRefreshAuthor.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnRefreshAuthor.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
+ this.btnRefreshAuthor.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
+ this.btnRefreshAuthor.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
+ this.btnRefreshAuthor.Style.ForeColor.Color = System.Drawing.Color.White;
+ this.btnRefreshAuthor.Style.GradientAngle = 90;
+ this.btnRefreshAuthor.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnRefreshAuthor.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnRefreshAuthor.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnRefreshAuthor.TabIndex = 800;
+ this.btnRefreshAuthor.Text = "刷新授权";
+ this.btnRefreshAuthor.Click += new System.EventHandler(this.btnRefreshAuthor_Click);
+ //
+ // btnSelectOffline
+ //
+ this.btnSelectOffline.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnSelectOffline.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnSelectOffline.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnSelectOffline.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnSelectOffline.Location = new System.Drawing.Point(61, 137);
+ this.btnSelectOffline.Name = "btnSelectOffline";
+ this.btnSelectOffline.Size = new System.Drawing.Size(50, 20);
+ this.btnSelectOffline.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnSelectOffline.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnSelectOffline.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnSelectOffline.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
+ this.btnSelectOffline.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
+ this.btnSelectOffline.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
+ this.btnSelectOffline.Style.ForeColor.Color = System.Drawing.Color.White;
+ this.btnSelectOffline.Style.GradientAngle = 90;
+ this.btnSelectOffline.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnSelectOffline.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnSelectOffline.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnSelectOffline.TabIndex = 772;
+ this.btnSelectOffline.Text = "选掉线";
+ this.btnSelectOffline.Click += new System.EventHandler(this.btnSelectOffline_Click);
+ //
+ // btnSelectOnline
+ //
+ this.btnSelectOnline.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnSelectOnline.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnSelectOnline.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnSelectOnline.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnSelectOnline.Location = new System.Drawing.Point(9, 137);
+ this.btnSelectOnline.Name = "btnSelectOnline";
+ this.btnSelectOnline.Size = new System.Drawing.Size(50, 20);
+ this.btnSelectOnline.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnSelectOnline.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnSelectOnline.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnSelectOnline.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
+ this.btnSelectOnline.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
+ this.btnSelectOnline.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
+ this.btnSelectOnline.Style.ForeColor.Color = System.Drawing.Color.White;
+ this.btnSelectOnline.Style.GradientAngle = 90;
+ this.btnSelectOnline.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnSelectOnline.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnSelectOnline.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnSelectOnline.TabIndex = 768;
+ this.btnSelectOnline.Text = "选在线";
+ this.btnSelectOnline.Click += new System.EventHandler(this.btnSelectOnline_Click);
+ //
+ // btnAddUnSelect
+ //
+ this.btnAddUnSelect.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnAddUnSelect.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnAddUnSelect.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnAddUnSelect.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnAddUnSelect.Location = new System.Drawing.Point(81, 115);
+ this.btnAddUnSelect.Name = "btnAddUnSelect";
+ this.btnAddUnSelect.Size = new System.Drawing.Size(70, 20);
+ this.btnAddUnSelect.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnAddUnSelect.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnAddUnSelect.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnAddUnSelect.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
+ this.btnAddUnSelect.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
+ this.btnAddUnSelect.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
+ this.btnAddUnSelect.Style.ForeColor.Color = System.Drawing.Color.White;
+ this.btnAddUnSelect.Style.GradientAngle = 90;
+ this.btnAddUnSelect.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnAddUnSelect.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnAddUnSelect.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnAddUnSelect.TabIndex = 746;
+ this.btnAddUnSelect.Text = "弃选条件";
+ this.btnAddUnSelect.Click += new System.EventHandler(this.btnAddUnSelect_Click);
+ //
+ // btnReverse
+ //
+ this.btnReverse.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnReverse.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnReverse.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnReverse.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnReverse.Location = new System.Drawing.Point(113, 137);
+ this.btnReverse.Name = "btnReverse";
+ this.btnReverse.Size = new System.Drawing.Size(38, 20);
+ this.btnReverse.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnReverse.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnReverse.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnReverse.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
+ this.btnReverse.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
+ this.btnReverse.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
+ this.btnReverse.Style.ForeColor.Color = System.Drawing.Color.White;
+ this.btnReverse.Style.GradientAngle = 90;
+ this.btnReverse.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnReverse.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnReverse.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnReverse.TabIndex = 726;
+ this.btnReverse.Text = "反选";
+ this.btnReverse.Click += new System.EventHandler(this.btnReverse_Click);
+ //
+ // cmbFilterShopNotes
+ //
+ this.cmbFilterShopNotes.DefaultText = "全部";
+ this.cmbFilterShopNotes.DropDownHeight = 1;
+ this.cmbFilterShopNotes.DropDownWidth = 1;
+ this.cmbFilterShopNotes.FormattingEnabled = true;
+ this.cmbFilterShopNotes.IntegralHeight = false;
+ this.cmbFilterShopNotes.Location = new System.Drawing.Point(38, 66);
+ this.cmbFilterShopNotes.Name = "cmbFilterShopNotes";
+ this.cmbFilterShopNotes.Size = new System.Drawing.Size(113, 25);
+ this.cmbFilterShopNotes.TabIndex = 442;
+ this.cmbFilterShopNotes.Text = "全部";
+ //
+ // btnAddSelect
+ //
+ this.btnAddSelect.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnAddSelect.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnAddSelect.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnAddSelect.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnAddSelect.Location = new System.Drawing.Point(9, 115);
+ this.btnAddSelect.Name = "btnAddSelect";
+ this.btnAddSelect.Size = new System.Drawing.Size(70, 20);
+ this.btnAddSelect.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnAddSelect.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnAddSelect.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnAddSelect.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
+ this.btnAddSelect.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
+ this.btnAddSelect.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
+ this.btnAddSelect.Style.ForeColor.Color = System.Drawing.Color.White;
+ this.btnAddSelect.Style.GradientAngle = 90;
+ this.btnAddSelect.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnAddSelect.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnAddSelect.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnAddSelect.TabIndex = 742;
+ this.btnAddSelect.Text = "选中条件";
+ this.btnAddSelect.Click += new System.EventHandler(this.btnAddSelect_Click);
+ //
+ // btnEmptyShop
+ //
+ this.btnEmptyShop.CanvasColor = System.Drawing.SystemColors.Control;
+ this.btnEmptyShop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnEmptyShop.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnEmptyShop.Location = new System.Drawing.Point(113, 93);
+ this.btnEmptyShop.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2);
+ this.btnEmptyShop.Name = "btnEmptyShop";
+ this.btnEmptyShop.Size = new System.Drawing.Size(38, 20);
+ this.btnEmptyShop.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnEmptyShop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
+ this.btnEmptyShop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
+ this.btnEmptyShop.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
+ this.btnEmptyShop.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnEmptyShop.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
+ this.btnEmptyShop.Style.GradientAngle = 90;
+ this.btnEmptyShop.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnEmptyShop.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnEmptyShop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnEmptyShop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnEmptyShop.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
+ this.btnEmptyShop.TabIndex = 713;
+ this.btnEmptyShop.Text = "清空";
+ this.btnEmptyShop.Click += new System.EventHandler(this.btnEmptyShop_Click);
+ //
+ // btnFilterShop
+ //
+ this.btnFilterShop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnFilterShop.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnFilterShop.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnFilterShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnFilterShop.Location = new System.Drawing.Point(9, 93);
+ this.btnFilterShop.Name = "btnFilterShop";
+ this.btnFilterShop.Size = new System.Drawing.Size(102, 20);
+ this.btnFilterShop.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnFilterShop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnFilterShop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnFilterShop.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
+ this.btnFilterShop.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
+ this.btnFilterShop.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
+ this.btnFilterShop.Style.ForeColor.Color = System.Drawing.Color.White;
+ this.btnFilterShop.Style.GradientAngle = 90;
+ this.btnFilterShop.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnFilterShop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnFilterShop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnFilterShop.TabIndex = 703;
+ this.btnFilterShop.Text = "过滤店铺";
+ this.btnFilterShop.Click += new System.EventHandler(this.btnFilterShop_Click);
+ //
+ // label16
+ //
+ this.label16.AutoSize = true;
+ this.label16.Location = new System.Drawing.Point(7, 70);
+ this.label16.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
+ this.label16.Name = "label16";
+ this.label16.Size = new System.Drawing.Size(32, 17);
+ this.label16.TabIndex = 697;
+ this.label16.Text = "备注";
+ //
+ // txtFilterShopName
+ //
+ this.txtFilterShopName.Font = new System.Drawing.Font("微软雅黑", 10F);
+ this.txtFilterShopName.Location = new System.Drawing.Point(38, 39);
+ this.txtFilterShopName.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
+ this.txtFilterShopName.Name = "txtFilterShopName";
+ this.txtFilterShopName.Size = new System.Drawing.Size(113, 25);
+ this.txtFilterShopName.TabIndex = 653;
+ //
+ // btnRefreshShop
+ //
+ this.btnRefreshShop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnRefreshShop.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnRefreshShop.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnRefreshShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnRefreshShop.Location = new System.Drawing.Point(9, 17);
+ this.btnRefreshShop.Name = "btnRefreshShop";
+ this.btnRefreshShop.Size = new System.Drawing.Size(70, 20);
+ this.btnRefreshShop.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnRefreshShop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnRefreshShop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnRefreshShop.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
+ this.btnRefreshShop.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
+ this.btnRefreshShop.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
+ this.btnRefreshShop.Style.ForeColor.Color = System.Drawing.Color.White;
+ this.btnRefreshShop.Style.GradientAngle = 90;
+ this.btnRefreshShop.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnRefreshShop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnRefreshShop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnRefreshShop.TabIndex = 431;
+ this.btnRefreshShop.Text = "刷新店铺";
+ this.btnRefreshShop.Click += new System.EventHandler(this.btnRefreshShop_Click);
+ //
+ // label17
+ //
+ this.label17.AutoSize = true;
+ this.label17.Location = new System.Drawing.Point(7, 43);
+ this.label17.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
+ this.label17.Name = "label17";
+ this.label17.Size = new System.Drawing.Size(32, 17);
+ this.label17.TabIndex = 699;
+ this.label17.Text = "名称";
+ //
+ // splitContainer3
+ //
+ this.splitContainer3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.splitContainer3.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
+ this.splitContainer3.Location = new System.Drawing.Point(0, 0);
+ this.splitContainer3.Name = "splitContainer3";
+ this.splitContainer3.Orientation = System.Windows.Forms.Orientation.Horizontal;
+ //
+ // splitContainer3.Panel1
+ //
+ this.splitContainer3.Panel1.Controls.Add(this.splitContainer2);
+ //
+ // splitContainer3.Panel2
+ //
+ this.splitContainer3.Panel2.Controls.Add(this.splitContainer4);
+ this.splitContainer3.Size = new System.Drawing.Size(1583, 472);
+ this.splitContainer3.SplitterDistance = 442;
+ this.splitContainer3.TabIndex = 1;
+ //
+ // splitContainer2
+ //
+ this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
+ this.splitContainer2.Location = new System.Drawing.Point(0, 0);
+ this.splitContainer2.Name = "splitContainer2";
+ //
+ // splitContainer2.Panel1
+ //
+ this.splitContainer2.Panel1.Controls.Add(this.pbLoadingShop);
+ this.splitContainer2.Panel1.Controls.Add(this.txtPageBegin);
+ this.splitContainer2.Panel1.Controls.Add(this.label1);
+ this.splitContainer2.Panel1.Controls.Add(this.dgvShop);
+ this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 0, 0);
+ //
+ // splitContainer2.Panel2
+ //
+ this.splitContainer2.Panel2.Controls.Add(this.chkUpDraft);
+ this.splitContainer2.Panel2.Controls.Add(this.pbLoading);
+ 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(1583, 442);
+ this.splitContainer2.SplitterDistance = 350;
+ this.splitContainer2.TabIndex = 0;
+ //
+ // pbLoadingShop
+ //
+ this.pbLoadingShop.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.pbLoadingShop.Image = global::TemuKJD.Properties.Resources.loading_blue;
+ this.pbLoadingShop.Location = new System.Drawing.Point(150, 196);
+ this.pbLoadingShop.Name = "pbLoadingShop";
+ this.pbLoadingShop.Size = new System.Drawing.Size(50, 50);
+ this.pbLoadingShop.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pbLoadingShop.TabIndex = 189;
+ this.pbLoadingShop.TabStop = false;
+ this.pbLoadingShop.Visible = false;
+ //
+ // txtPageBegin
+ //
+ this.txtPageBegin.Font = new System.Drawing.Font("微软雅黑", 10F);
+ this.txtPageBegin.Location = new System.Drawing.Point(51, 35);
+ this.txtPageBegin.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
+ this.txtPageBegin.Name = "txtPageBegin";
+ this.txtPageBegin.Size = new System.Drawing.Size(140, 25);
+ this.txtPageBegin.TabIndex = 795;
+ this.txtPageBegin.Text = "1";
+ this.txtPageBegin.Visible = false;
+ this.txtPageBegin.TextChanged += new System.EventHandler(this.txtPageBegin_TextChanged);
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(8, 39);
+ this.label1.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
+ this.label1.Name = "label1";
+ this.label1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
+ this.label1.Size = new System.Drawing.Size(44, 17);
+ this.label1.TabIndex = 794;
+ this.label1.Text = "开始页";
+ this.label1.Visible = false;
+ //
+ // dgvShop
+ //
+ this.dgvShop.AllowUserToAddRows = false;
+ this.dgvShop.AllowUserToDeleteRows = false;
+ dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
+ this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
+ 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)))));
+ dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
+ this.dgvShop.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvShop.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.colSelect,
+ this.colShopLoginName,
+ this.colShopId,
+ this.colShopName,
+ this.colShopNotes,
+ this.colSelectProduct,
+ this.colLoginStatus,
+ this.colApi,
+ this.colCanUse,
+ this.colUploadCount,
+ this.colOnSaleNum,
+ this.colRemaining,
+ this.colMessage});
+ this.dgvShop.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.dgvShop.Location = new System.Drawing.Point(4, 0);
+ this.dgvShop.Name = "dgvShop";
+ this.dgvShop.ReadOnly = true;
+ this.dgvShop.RowHeadersWidth = 25;
+ this.dgvShop.RowTemplate.Height = 23;
+ this.dgvShop.Size = new System.Drawing.Size(346, 442);
+ this.dgvShop.TabIndex = 6;
+ this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick);
+ //
+ // colSelect
+ //
+ this.colSelect.HeaderText = "全选";
+ this.colSelect.Name = "colSelect";
+ this.colSelect.ReadOnly = true;
+ this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.colSelect.Width = 28;
+ //
+ // colShopLoginName
+ //
+ this.colShopLoginName.HeaderText = "店铺登录名";
+ this.colShopLoginName.Name = "colShopLoginName";
+ this.colShopLoginName.ReadOnly = true;
+ this.colShopLoginName.Visible = false;
+ //
+ // colShopId
+ //
+ this.colShopId.HeaderText = "店铺Id";
+ this.colShopId.Name = "colShopId";
+ this.colShopId.ReadOnly = true;
+ this.colShopId.Visible = false;
+ this.colShopId.Width = 55;
+ //
+ // colShopName
+ //
+ this.colShopName.FillWeight = 150F;
+ this.colShopName.HeaderText = "店铺名称";
+ this.colShopName.Name = "colShopName";
+ this.colShopName.ReadOnly = true;
+ this.colShopName.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.colShopName.Width = 75;
+ //
+ // colShopNotes
+ //
+ this.colShopNotes.HeaderText = "备注";
+ this.colShopNotes.Name = "colShopNotes";
+ this.colShopNotes.ReadOnly = true;
+ this.colShopNotes.Width = 75;
+ //
+ // colSelectProduct
+ //
+ this.colSelectProduct.HeaderText = "选择商品";
+ this.colSelectProduct.Name = "colSelectProduct";
+ this.colSelectProduct.ReadOnly = true;
+ this.colSelectProduct.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.colSelectProduct.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.colSelectProduct.Visible = false;
+ this.colSelectProduct.Width = 62;
+ //
+ // colLoginStatus
+ //
+ this.colLoginStatus.HeaderText = "状态";
+ this.colLoginStatus.Name = "colLoginStatus";
+ this.colLoginStatus.ReadOnly = true;
+ this.colLoginStatus.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.colLoginStatus.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.colLoginStatus.Width = 38;
+ //
+ // colApi
+ //
+ this.colApi.HeaderText = "Api";
+ this.colApi.Name = "colApi";
+ this.colApi.ReadOnly = true;
+ this.colApi.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.colApi.Visible = false;
+ this.colApi.Width = 38;
+ //
+ // colCanUse
+ //
+ this.colCanUse.HeaderText = "可用";
+ this.colCanUse.Name = "colCanUse";
+ this.colCanUse.ReadOnly = true;
+ this.colCanUse.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.colCanUse.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.colCanUse.Visible = false;
+ this.colCanUse.Width = 28;
+ //
+ // colUploadCount
+ //
+ this.colUploadCount.HeaderText = "已传";
+ this.colUploadCount.Name = "colUploadCount";
+ this.colUploadCount.ReadOnly = true;
+ this.colUploadCount.Visible = false;
+ this.colUploadCount.Width = 38;
+ //
+ // colOnSaleNum
+ //
+ this.colOnSaleNum.HeaderText = "在售";
+ this.colOnSaleNum.Name = "colOnSaleNum";
+ this.colOnSaleNum.ReadOnly = true;
+ this.colOnSaleNum.Visible = false;
+ this.colOnSaleNum.Width = 38;
+ //
+ // colRemaining
+ //
+ this.colRemaining.HeaderText = "月限额";
+ this.colRemaining.Name = "colRemaining";
+ this.colRemaining.ReadOnly = true;
+ this.colRemaining.Visible = false;
+ //
+ // colMessage
+ //
+ this.colMessage.HeaderText = "消息";
+ this.colMessage.Name = "colMessage";
+ this.colMessage.ReadOnly = true;
+ //
+ // chkUpDraft
+ //
+ this.chkUpDraft.AutoSize = true;
+ this.chkUpDraft.Location = new System.Drawing.Point(16, 39);
+ this.chkUpDraft.Name = "chkUpDraft";
+ this.chkUpDraft.Size = new System.Drawing.Size(87, 21);
+ this.chkUpDraft.TabIndex = 790;
+ this.chkUpDraft.Text = "上传草稿箱";
+ this.chkUpDraft.UseVisualStyleBackColor = true;
+ this.chkUpDraft.Visible = false;
+ //
+ // pbLoading
+ //
+ this.pbLoading.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.pbLoading.Image = global::TemuKJD.Properties.Resources.loading_blue;
+ this.pbLoading.Location = new System.Drawing.Point(589, 196);
+ this.pbLoading.Name = "pbLoading";
+ this.pbLoading.Size = new System.Drawing.Size(50, 50);
+ this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pbLoading.TabIndex = 780;
+ this.pbLoading.TabStop = false;
+ this.pbLoading.Visible = false;
+ //
+ // chkTestNoAuditUpload
+ //
+ this.chkTestNoAuditUpload.AutoSize = true;
+ this.chkTestNoAuditUpload.Location = new System.Drawing.Point(1094, 35);
+ this.chkTestNoAuditUpload.Name = "chkTestNoAuditUpload";
+ this.chkTestNoAuditUpload.Size = new System.Drawing.Size(123, 21);
+ this.chkTestNoAuditUpload.TabIndex = 779;
+ this.chkTestNoAuditUpload.Text = "测试免审提交商品";
+ this.chkTestNoAuditUpload.UseVisualStyleBackColor = true;
+ this.chkTestNoAuditUpload.Visible = false;
+ //
+ // dgvSelectProduct
+ //
+ this.dgvSelectProduct.AllowUserToAddRows = false;
+ this.dgvSelectProduct.AllowUserToDeleteRows = false;
+ dataGridViewCellStyle3.BackColor = System.Drawing.Color.WhiteSmoke;
+ this.dgvSelectProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3;
+ this.dgvSelectProduct.AutoRowNumber = true;
+ this.dgvSelectProduct.BackgroundColor = System.Drawing.Color.White;
+ this.dgvSelectProduct.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.dgvSelectProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;
+ this.dgvSelectProduct.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvSelectProduct.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.colCheck,
+ this.colSelectId,
+ this.colSupplierId,
+ this.colSupplierName,
+ this.colLogin,
+ this.colInShop,
+ this.colSpuId,
+ this.colSkcId,
+ this.colDraftId,
+ this.colImgUrl,
+ this.colProductSkcPic,
+ this.colSkuFakeImgUrl,
+ this.colSkuFakeImg,
+ this.colProductName,
+ this.colProductCat,
+ this.colExtCode,
+ this.colPrice,
+ this.colMsg,
+ this.colNotes,
+ this.colUserNotes,
+ this.ColDelete,
+ this.colAddTime,
+ this.colOpResult});
+ this.dgvSelectProduct.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.dgvSelectProduct.Location = new System.Drawing.Point(0, 0);
+ this.dgvSelectProduct.Name = "dgvSelectProduct";
+ this.dgvSelectProduct.ReadOnly = true;
+ this.dgvSelectProduct.RowTemplate.Height = 23;
+ this.dgvSelectProduct.Size = new System.Drawing.Size(1225, 442);
+ this.dgvSelectProduct.TabIndex = 187;
+ this.dgvSelectProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvSelectProduct_CellContentClick);
+ //
+ // splitContainer4
+ //
+ this.splitContainer4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.splitContainer4.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
+ this.splitContainer4.Location = new System.Drawing.Point(0, 0);
+ this.splitContainer4.Name = "splitContainer4";
+ //
+ // splitContainer4.Panel1
+ //
+ this.splitContainer4.Panel1.Controls.Add(this.statusBar);
+ //
+ // splitContainer4.Panel2
+ //
+ this.splitContainer4.Panel2.Controls.Add(this.btnClear);
+ this.splitContainer4.Panel2.Controls.Add(this.panelEx1);
+ this.splitContainer4.Size = new System.Drawing.Size(1583, 26);
+ this.splitContainer4.SplitterDistance = 892;
+ this.splitContainer4.TabIndex = 3;
+ //
+ // 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(892, 26);
+ this.statusBar.TabIndex = 2;
+ //
+ // btnClear
+ //
+ this.btnClear.Anchor = 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(475, 2);
+ 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;
+ //
+ // panelEx1
+ //
+ this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control;
+ this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty;
+ this.panelEx1.Location = new System.Drawing.Point(568, 2);
+ this.panelEx1.Name = "panelEx1";
+ this.panelEx1.Size = new System.Drawing.Size(115, 21);
+ this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.panelEx1.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
+ this.panelEx1.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
+ this.panelEx1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
+ this.panelEx1.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.panelEx1.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
+ this.panelEx1.Style.GradientAngle = 90;
+ this.panelEx1.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
+ this.panelEx1.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.panelEx1.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.panelEx1.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.panelEx1.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
+ this.panelEx1.TabIndex = 668;
+ this.panelEx1.Text = "停止当前操作";
+ this.panelEx1.Visible = false;
+ //
+ // colCheck
+ //
+ this.colCheck.Frozen = true;
+ this.colCheck.HeaderText = "选择";
+ this.colCheck.Name = "colCheck";
+ this.colCheck.ReadOnly = true;
+ this.colCheck.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.colCheck.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.colCheck.Width = 30;
+ //
+ // colSelectId
+ //
+ this.colSelectId.HeaderText = "认领Id";
+ this.colSelectId.Name = "colSelectId";
+ this.colSelectId.ReadOnly = true;
+ this.colSelectId.Visible = false;
+ //
+ // colSupplierId
+ //
+ this.colSupplierId.Frozen = true;
+ this.colSupplierId.HeaderText = "店铺Id";
+ this.colSupplierId.Name = "colSupplierId";
+ this.colSupplierId.ReadOnly = true;
+ //
+ // colSupplierName
+ //
+ dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.colSupplierName.DefaultCellStyle = dataGridViewCellStyle5;
+ this.colSupplierName.Frozen = true;
+ this.colSupplierName.HeaderText = "店铺名称";
+ this.colSupplierName.Name = "colSupplierName";
+ this.colSupplierName.ReadOnly = true;
+ //
+ // colLogin
+ //
+ this.colLogin.HeaderText = "登录";
+ this.colLogin.Name = "colLogin";
+ this.colLogin.ReadOnly = true;
+ this.colLogin.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.colLogin.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.colLogin.Width = 40;
+ //
+ // colInShop
+ //
+ this.colInShop.HeaderText = "进店";
+ this.colInShop.Name = "colInShop";
+ this.colInShop.ReadOnly = true;
+ this.colInShop.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.colInShop.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.colInShop.Width = 40;
+ //
+ // colSpuId
+ //
+ this.colSpuId.HeaderText = "源商品ID";
+ this.colSpuId.Name = "colSpuId";
+ this.colSpuId.ReadOnly = true;
+ this.colSpuId.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.colSpuId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.colSpuId.Visible = false;
+ //
+ // colSkcId
+ //
+ this.colSkcId.FillWeight = 150F;
+ this.colSkcId.HeaderText = "商品SKC";
+ this.colSkcId.Name = "colSkcId";
+ this.colSkcId.ReadOnly = true;
+ this.colSkcId.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.colSkcId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.colSkcId.Visible = false;
+ this.colSkcId.Width = 80;
+ //
+ // colDraftId
+ //
+ this.colDraftId.HeaderText = "商品Id";
+ this.colDraftId.Name = "colDraftId";
+ this.colDraftId.ReadOnly = true;
+ this.colDraftId.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.colDraftId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ this.colDraftId.Width = 120;
+ //
+ // colImgUrl
+ //
+ this.colImgUrl.HeaderText = "图片地址";
+ this.colImgUrl.Name = "colImgUrl";
+ this.colImgUrl.ReadOnly = true;
+ this.colImgUrl.Visible = false;
+ //
+ // colProductSkcPic
+ //
+ this.colProductSkcPic.HeaderText = "图片";
+ this.colProductSkcPic.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Zoom;
+ this.colProductSkcPic.Name = "colProductSkcPic";
+ this.colProductSkcPic.ReadOnly = true;
+ this.colProductSkcPic.Width = 60;
+ //
+ // colSkuFakeImgUrl
+ //
+ this.colSkuFakeImgUrl.HeaderText = "SKU替换图地址";
+ this.colSkuFakeImgUrl.Name = "colSkuFakeImgUrl";
+ this.colSkuFakeImgUrl.ReadOnly = true;
+ this.colSkuFakeImgUrl.Visible = false;
+ //
+ // colSkuFakeImg
+ //
+ this.colSkuFakeImg.HeaderText = "SKU替换图";
+ this.colSkuFakeImg.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Zoom;
+ this.colSkuFakeImg.Name = "colSkuFakeImg";
+ this.colSkuFakeImg.ReadOnly = true;
+ this.colSkuFakeImg.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.colSkuFakeImg.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.colSkuFakeImg.Visible = false;
+ this.colSkuFakeImg.Width = 60;
+ //
+ // colProductName
+ //
+ dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.colProductName.DefaultCellStyle = dataGridViewCellStyle6;
+ this.colProductName.HeaderText = "商品标题";
+ this.colProductName.Name = "colProductName";
+ this.colProductName.ReadOnly = true;
+ this.colProductName.Width = 150;
+ //
+ // colProductCat
+ //
+ dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.colProductCat.DefaultCellStyle = dataGridViewCellStyle7;
+ this.colProductCat.HeaderText = "商品类目";
+ this.colProductCat.Name = "colProductCat";
+ this.colProductCat.ReadOnly = true;
+ this.colProductCat.Width = 90;
+ //
+ // colExtCode
+ //
+ this.colExtCode.HeaderText = "商品货号";
+ this.colExtCode.Name = "colExtCode";
+ this.colExtCode.ReadOnly = true;
+ this.colExtCode.Width = 145;
+ //
+ // colPrice
+ //
+ this.colPrice.HeaderText = "价格";
+ this.colPrice.Name = "colPrice";
+ this.colPrice.ReadOnly = true;
+ this.colPrice.Width = 60;
+ //
+ // colMsg
+ //
+ this.colMsg.HeaderText = "状态";
+ this.colMsg.Name = "colMsg";
+ this.colMsg.ReadOnly = true;
+ //
+ // colNotes
+ //
+ this.colNotes.HeaderText = "上传备注";
+ this.colNotes.Name = "colNotes";
+ this.colNotes.ReadOnly = true;
+ this.colNotes.Visible = false;
+ //
+ // colUserNotes
+ //
+ this.colUserNotes.HeaderText = "重上/已买";
+ this.colUserNotes.Name = "colUserNotes";
+ this.colUserNotes.ReadOnly = true;
+ this.colUserNotes.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.colUserNotes.Visible = false;
+ this.colUserNotes.Width = 75;
+ //
+ // ColDelete
+ //
+ this.ColDelete.HeaderText = "删除";
+ this.ColDelete.Name = "ColDelete";
+ this.ColDelete.ReadOnly = true;
+ this.ColDelete.Visible = false;
+ this.ColDelete.Width = 75;
+ //
+ // colAddTime
+ //
+ this.colAddTime.HeaderText = "上架时间";
+ this.colAddTime.Name = "colAddTime";
+ this.colAddTime.ReadOnly = true;
+ //
+ // colOpResult
+ //
+ this.colOpResult.HeaderText = "操作结果";
+ this.colOpResult.Name = "colOpResult";
+ this.colOpResult.ReadOnly = true;
+ this.colOpResult.Width = 260;
+ //
+ // WXProdPreSaleForm
+ //
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
+ this.BackColor = System.Drawing.Color.White;
+ this.ClientSize = new System.Drawing.Size(1583, 641);
+ this.Controls.Add(this.splitContainer1);
+ this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.Name = "WXProdPreSaleForm";
+ this.Text = "微信小店";
+ this.Load += new System.EventHandler(this.UserSelectDbProductForm_Load);
+ this.VisibleChanged += new System.EventHandler(this.UserSelectDbProductForm_VisibleChanged);
+ this.splitContainer1.Panel1.ResumeLayout(false);
+ this.splitContainer1.Panel2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
+ this.splitContainer1.ResumeLayout(false);
+ this.ucGroupBoxEx2.ResumeLayout(false);
+ this.ucGroupBoxEx2.PerformLayout();
+ this.ucGroupBoxEx4.ResumeLayout(false);
+ this.ucGroupBoxEx4.PerformLayout();
+ this.ucGroupBoxEx1.ResumeLayout(false);
+ this.ucGroupBoxEx1.PerformLayout();
+ this.splitContainer3.Panel1.ResumeLayout(false);
+ this.splitContainer3.Panel2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).EndInit();
+ this.splitContainer3.ResumeLayout(false);
+ this.splitContainer2.Panel1.ResumeLayout(false);
+ this.splitContainer2.Panel1.PerformLayout();
+ this.splitContainer2.Panel2.ResumeLayout(false);
+ this.splitContainer2.Panel2.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
+ this.splitContainer2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.pbLoadingShop)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvShop)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pbLoading)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvSelectProduct)).EndInit();
+ this.splitContainer4.Panel1.ResumeLayout(false);
+ this.splitContainer4.Panel2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).EndInit();
+ this.splitContainer4.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.SplitContainer splitContainer1;
+ private UserComponent.UcGroupBoxEx ucGroupBoxEx4;
+ private UserComponent.UcGroupBoxEx ucGroupBoxEx1;
+ private DevComponents.DotNetBar.PanelEx btnRefreshShop;
+ private System.Windows.Forms.SplitContainer splitContainer3;
+ private System.Windows.Forms.SplitContainer splitContainer2;
+ private UserComponent.DataGridViewEx dgvShop;
+ private UserComponent.DataGridViewEx dgvSelectProduct;
+ private System.Windows.Forms.SplitContainer splitContainer4;
+ private UserControls.StatusBarUserControl statusBar;
+ private DevComponents.DotNetBar.PanelEx btnSetPreSale;
+ private UserComponent.UcGroupBoxEx ucGroupBoxEx2;
+ private DevComponents.DotNetBar.PanelEx btnStop;
+ private DevComponents.DotNetBar.PanelEx btnSearchProd;
+ private DevComponents.DotNetBar.PanelEx btnClearFilter;
+ private DevComponents.DotNetBar.PanelEx btnClearDgv;
+ private System.Windows.Forms.TextBox txtExtCodeFilter;
+ private System.Windows.Forms.Label lblExtCodeFilter;
+ private DevComponents.DotNetBar.PanelEx btnClear;
+ private DevComponents.DotNetBar.PanelEx panelEx1;
+ private System.Windows.Forms.TextBox txtIdFilter;
+ private System.Windows.Forms.Label lblIdFilter;
+ private UserComponent.UcCheckBox chkTestNoAuditUpload;
+ private System.Windows.Forms.TextBox txtPreDays;
+ private UserComponent.UcCheckBox chkPreSale;
+ private System.Windows.Forms.Label label18;
+ private System.Windows.Forms.PictureBox pbLoadingShop;
+ private System.Windows.Forms.PictureBox pbLoading;
+ private System.Windows.Forms.TextBox txtFilterShopName;
+ private DevComponents.DotNetBar.PanelEx btnFilterShop;
+ private System.Windows.Forms.Label label17;
+ private System.Windows.Forms.Label label16;
+ private DevComponents.DotNetBar.PanelEx btnEmptyShop;
+ private UserComponent.UcComboBoxMutiSelect cmbFilterShopNotes;
+ private DevComponents.DotNetBar.PanelEx btnReverse;
+ private DevComponents.DotNetBar.PanelEx btnAddUnSelect;
+ private DevComponents.DotNetBar.PanelEx btnAddSelect;
+ private DevComponents.DotNetBar.PanelEx btnSelectOffline;
+ private DevComponents.DotNetBar.PanelEx btnSelectOnline;
+ private DevComponents.DotNetBar.PanelEx btnRefreshAuthor;
+ private System.Windows.Forms.TextBox txtProductName;
+ private System.Windows.Forms.Label label11;
+ private UserComponent.UcCheckBox chkUpDraft;
+ private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colShopLoginName;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colShopId;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colShopName;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colShopNotes;
+ private System.Windows.Forms.DataGridViewLinkColumn colSelectProduct;
+ private System.Windows.Forms.DataGridViewLinkColumn colLoginStatus;
+ private System.Windows.Forms.DataGridViewLinkColumn colApi;
+ private System.Windows.Forms.DataGridViewCheckBoxColumn colCanUse;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colUploadCount;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colOnSaleNum;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colRemaining;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colMessage;
+ private System.Windows.Forms.TextBox txtPageBegin;
+ private System.Windows.Forms.TextBox txtPageEnd;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.Label label2;
+ private UserComponent.UcCheckBox chkNoPreSale;
+ private DevComponents.DotNetBar.PanelEx panelEx2;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.ComboBox cmbPreType;
+ private System.Windows.Forms.DataGridViewCheckBoxColumn colCheck;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colSelectId;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colSupplierId;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colSupplierName;
+ private System.Windows.Forms.DataGridViewLinkColumn colLogin;
+ private System.Windows.Forms.DataGridViewLinkColumn colInShop;
+ private System.Windows.Forms.DataGridViewLinkColumn colSpuId;
+ private System.Windows.Forms.DataGridViewLinkColumn colSkcId;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colDraftId;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colImgUrl;
+ private System.Windows.Forms.DataGridViewImageColumn colProductSkcPic;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colSkuFakeImgUrl;
+ private System.Windows.Forms.DataGridViewImageColumn colSkuFakeImg;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colProductName;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colProductCat;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colExtCode;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colPrice;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colMsg;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colNotes;
+ private System.Windows.Forms.DataGridViewLinkColumn colUserNotes;
+ private System.Windows.Forms.DataGridViewLinkColumn ColDelete;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colAddTime;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colOpResult;
+ }
+}
\ No newline at end of file
diff --git a/TEMUKJD/WXForms/ProductForms/WXProdPreSaleForm.cs b/TEMUKJD/WXForms/ProductForms/WXProdPreSaleForm.cs
new file mode 100644
index 0000000..b566964
--- /dev/null
+++ b/TEMUKJD/WXForms/ProductForms/WXProdPreSaleForm.cs
@@ -0,0 +1,1458 @@
+using AllBase;
+using AllBase.Helper;
+using AllBase.Model.Result;
+using NaiBa.Util.Extension;
+using Newtonsoft.Json.Linq;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.IO;
+using System.Linq;
+using System.Net.Http;
+using System.Text;
+using System.Threading;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using TemuKJD.Extension;
+using TemuKJD.BaseForms;
+using TemuKJD.ToolForms;
+using Work;
+using TemuKJD.BLL;
+using System.Text.RegularExpressions;
+using TemuKJD.PDDForms.ProductSelectForms;
+using TemuKJD.WXForms.ShopForms;
+using AllBase.Model.Result.PDDResult;
+using AllBase.Model.Param.WXParam;
+using AllBase.Model.Result.WXResult;
+using Newtonsoft.Json;
+using NaiBa.Util;
+using AllBase.Model.Config;
+
+namespace TemuKJD.WXForms.ProductForms
+{
+ public partial class WXProdPreSaleForm : BaseForm
+ {
+ int PageBegin = 1;
+ int PageEnd = 999;
+ string PreType = "";
+ public CancellationTokenSource cancellationTokenSource { get; set; } = null;
+ public bool IsLoadComplate { get; set; } = false;
+
+ bool isInit = false;
+ CheckBox chkSelectAll = null;
+ ConcurrentList lstShopAuthInfo = new ConcurrentList();
+ ConcurrentList lstWXShopTokenInfo = new ConcurrentList();
+ public NaiBa.Util.ConcurrentList lstTemuDBProductSelect = new NaiBa.Util.ConcurrentList();
+ NaiBa.Util.ConcurrentList lstAddPriceRule = new NaiBa.Util.ConcurrentList();
+ AddPriceRule defaultAddPriceRule = null;
+ WXUploadRule wxUploadRule = null;
+ //public Dictionary> dicCheckedShopIdList = new Dictionary>();
+ public Dictionary dicCheckedShopId = new Dictionary();
+ public Dictionary dicShopUpload = new Dictionary();
+ public string pdd_product_cates = "";
+ public List forceFilteKeyWords = new List()
+ {
+ "亏本", "冲量", "白菜价", "跳楼价", "xxx", "xx", "最大", "最小", "低价", "降价", "成本", "赔钱", "甩卖",
+ "真丝", "蚕丝", "香云纱", "羊绒", "羊毛", "羊羔绒", "羊羔毛", "羽绒", "皮草"
+ };
+ public WXProdPreSaleForm()
+ {
+ InitializeComponent();
+ }
+
+ private void UserSelectDbProductForm_Load(object sender, EventArgs e)
+ {
+ this.splitContainer1.Dock = DockStyle.Fill;
+
+ lstShopAuthInfo = NaiBa.Util.Helper.ConfigHelper.LoadConfig>("wx_shop_auth_list");
+ if (lstShopAuthInfo == null)
+ lstShopAuthInfo = new ConcurrentList();
+
+ lstWXShopTokenInfo = NaiBa.Util.Helper.ConfigHelper.LoadConfig>("wx_shop_token_list");
+ if (lstWXShopTokenInfo == null)
+ lstWXShopTokenInfo = new ConcurrentList();
+
+ lstTemuDBProductSelect = NaiBa.Util.Helper.ConfigHelper.LoadConfig>("wx_db_prod_upload_list");
+ if (lstTemuDBProductSelect == null)
+ lstTemuDBProductSelect = new NaiBa.Util.ConcurrentList();
+
+ lstAddPriceRule = NaiBa.Util.Helper.ConfigHelper.LoadConfig>("wx_add_price_rules");
+ if (lstAddPriceRule == null)
+ {
+ lstAddPriceRule = new NaiBa.Util.ConcurrentList();
+ lstAddPriceRule.Add(new AddPriceRule() { MoreThanPrice = 0, LessThanPrice = 10, AddPriceTimes = 2, AddMorePrice = 10, SinglePriceAdd = 1 });
+ lstAddPriceRule.Add(new AddPriceRule() { MoreThanPrice = 10, LessThanPrice = 20, AddPriceTimes = 2, AddMorePrice = 10, SinglePriceAdd = 1 });
+ lstAddPriceRule.Add(new AddPriceRule() { MoreThanPrice = 20, LessThanPrice = 999, AddPriceTimes = 2, AddMorePrice = 10, SinglePriceAdd = 1 });
+ }
+
+ dicCheckedShopId = NaiBa.Util.Helper.ConfigHelper.LoadConfig>("wx_checked_shop_dic");
+ if (dicCheckedShopId == null)
+ dicCheckedShopId = new Dictionary();
+ dicShopUpload = NaiBa.Util.Helper.ConfigHelper.LoadConfig>("wx_shop_upload_info");
+ if (dicShopUpload == null)
+ dicShopUpload = new Dictionary();
+
+ defaultAddPriceRule = NaiBa.Util.Helper.ConfigHelper.LoadConfig("wx_default_add_price_rule");
+ if (defaultAddPriceRule == null)
+ {
+ defaultAddPriceRule = new AddPriceRule() { AddPriceTimes = 1.3m, AddMorePrice = 1, SinglePriceAdd = 1 };
+ }
+
+ wxUploadRule = NaiBa.Util.Helper.ConfigHelper.LoadConfig("wx_upload_rule");
+ if (wxUploadRule == null)
+ wxUploadRule = new WXUploadRule();
+ var filteWords = wxUploadRule.FilterWords.Split(new string[] { ",", ",", " ", "\r", "\n" }, StringSplitOptions.RemoveEmptyEntries).ToList();
+ filteWords.RemoveAll(w => forceFilteKeyWords.Contains(w));
+ filteWords.AddRange(forceFilteKeyWords);
+ wxUploadRule.FilterWords = string.Join(",", filteWords);
+ this.txtPreDays.TextChanged -= txtPreDays_TextChanged;
+ this.chkPreSale.CheckedChanged -= chkPreSale_CheckedChanged;
+ this.chkNoPreSale.CheckedChanged -= chkNoPreSale_CheckedChanged;
+
+ this.txtPreDays.Text = wxUploadRule.PreSaleDays.ParseToString();
+ this.chkPreSale.Checked = wxUploadRule.IsPreSale.ParseToBool();
+ this.chkNoPreSale.Checked = !wxUploadRule.IsPreSale.ParseToBool();
+
+ this.txtPreDays.TextChanged += txtPreDays_TextChanged;
+ this.chkPreSale.CheckedChanged += chkPreSale_CheckedChanged;
+ this.chkNoPreSale.CheckedChanged += chkNoPreSale_CheckedChanged;
+
+ int prodCount = 0;
+
+ chkSelectAll = dgvShop.Columns["colSelect"].AddHeaderCheckBox(HorizontalAlignment.Center, 0, 0, null, null, false);
+ dgvShop.Columns["colSelect"].HeaderText = "";
+ //chkSelectAll.Width = chkSelectAll.Height = 13;
+ chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged;
+ //chkSelectAll.Checked = true;
+
+ this.dgvSelectProduct.AddSelectorColumn("colCheck");
+
+ dgvSelectProduct.AddImgColumn("colProductSkcPic", "colImgUrl");
+ dgvSelectProduct.AddImgColumn("colSkuFakeImg", "colSkuFakeImgUrl");
+
+ dgvSelectProduct.Columns["colSkuFakeImg"].Visible = false;
+
+ //foreach (var selectProd in upload_draft_product_lst)
+ //{
+ // int rowIndex = 0;
+ // this.dgvSelectProduct.Rows.Insert(rowIndex,
+ // true,
+ // selectProd.id,
+ // selectProd.shop_id,
+ // selectProd.shop_account,
+ // "登录",
+ // "进店",
+ // BaseClass.SaLevel > 0 ? selectProd.spu_id : selectProd.spu_id.ParseToString().GetHashCode().ParseToString().Trim('-'),
+ // selectProd.skc_id,
+ // selectProd.main_img,
+ // DataGridViewExtension.defaultBitmap,
+ // "",
+ // null,
+ // selectProd.product_name, // 用户端显示商品原名
+ // selectProd.cat_name,
+ // BaseClass.SaLevel > 0 ? selectProd.ext_code : selectProd.ext_code.ParseToString().GetHashCode().ParseToString().Trim('-'),
+ // selectProd.status,
+ // selectProd.draft_id,
+ // selectProd.notes,
+ // (selectProd.user_notes + " 编辑").Trim(),
+ // "删除",
+ // selectProd.add_time.ToString("yy-MM-dd HH:mm:ss"),
+ // "");
+
+ // dgvSelectProduct.Rows[rowIndex].Height = 60;
+
+ // int maxRowCount = 10000;
+ // while (dgvSelectProduct.Rows.Count > maxRowCount)
+ // {
+ // dgvSelectProduct.Rows.RemoveAt(maxRowCount);
+ // }
+ //}
+
+//#if DEBUG
+ if (BaseClass.SaLevel == 1)
+ {
+ //txtIdFilter.Visible = true;
+ //txtExtCodeFilter.Visible = true;
+ //lblIdFilter.Visible = true;
+ //lblExtCodeFilter.Visible = true;
+ }
+//#endif
+ IsLoadComplate = true;
+ }
+
+ private void btnRefreshAuthor_Click(object sender, EventArgs e)
+ {
+ updateAuthor(true);
+ }
+
+ ///
+ /// 升级授权
+ ///
+ /// 今日取过的也取
+ private void updateAuthor(bool idRefreshTodayHasGet = false)
+ {
+ this.pbLoadingShop.Visible = true;
+ Task.Run(() =>
+ {
+ // 店铺Id
+ var updateIds = dgvShop.Rows.Cast().Select(r => r.Cells["colShopId"]?.Value.ToString()).ToList();
+ var selectIds = dgvShop.Rows.Cast().Where(row
+ => row.Cells["colSelect"]?.Value.ParseToBool() == true).Select(r => r.Cells["colShopId"]?.Value.ToString()).ToList();
+ if (idRefreshTodayHasGet == true)
+ updateIds = selectIds;
+
+ List tList = new List();
+ if (idRefreshTodayHasGet)
+ lstShopAuthInfo.RemoveAll(s => updateIds.Contains(s.ShopId));
+ foreach (var shop in GlobalConfig.ShopLoginList.Where(s => updateIds.Contains(s.ShopId)))
+ {
+ Invoke(new Action(() => { BindShop(shop, selectIds, ""); }));
+ var t = Task.Run(() =>
+ {
+ try
+ {
+ if (shop.LoginStatus != "登录成功")
+ {
+ Invoke(new Action(() => { BindShop(shop, selectIds, "店铺掉线"); }));
+ return;
+ }
+
+ var authInfo = lstShopAuthInfo.FirstOrDefault(sa => sa.ShopId == shop.ShopId);
+ if (idRefreshTodayHasGet || authInfo == null || authInfo?.AddTime.Date != DateTime.Now.Date)
+ {
+ lstShopAuthInfo.RemoveAll(sa => sa.ShopId == shop.ShopId);
+ var rst = WXUpload.GetApiServiceList(shop);
+ if (!rst.Contains("\"code\":0"))
+ {
+ WXShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false);
+ if (shop.LoginStatus != "登录成功")
+ {
+ Invoke(new Action(() => { BindShop(shop, selectIds, "店铺掉线"); }));
+ return;
+ }
+
+ lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, AddTime = DateTime.Now, ExpiresTime = DateTime.Now });
+ Invoke(new Action(() => { BindShop(shop, selectIds, "授权查询失败"); }));
+ return;
+ }
+
+ foreach (var itemObj in JsonHelper.JObjectParse(rst)["itemList"])
+ {
+ // 找到了指定服务
+ if (itemObj["serviceName"].ParseToString() == "店统领供应链-商品管理")
+ {
+ var expiresTick = itemObj["expireTime"].ParseToLong();
+ lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, AddTime = DateTime.Now, ExpiresTime = BaseClass.StampToDateTime(expiresTick.ParseToInt()) });
+ Invoke(new Action(() => { BindShop(shop, selectIds, "已查询"); }));
+ return;
+ }
+ }
+ // 没找到指定服务
+ lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, AddTime = DateTime.Now, ExpiresTime = DateTime.Now });
+ Invoke(new Action(() => { BindShop(shop, selectIds, "已查询"); }));
+ }
+ }
+ catch (Exception ex)
+ {
+ }
+ });
+ tList.Add(t);
+ while (tList.Where(ta => !ta.IsFaulted && !ta.IsCompleted).Count() >= 20) { Thread.Sleep(100); }
+ }
+ while (tList.Where(ta => !ta.IsFaulted && !ta.IsCompleted).Count() >= 1) { Thread.Sleep(100); }
+ NaiBa.Util.Helper.ConfigHelper.SaveConfig( "wx_shop_auth_list", lstShopAuthInfo);
+ Invoke(new Action(() => { pbLoadingShop.Visible = false; }));
+ });
+ }
+
+ private void chkSelectAll_CheckedChanged(object sender, EventArgs e)
+ {
+ if (!chkSelectAll.Checked)
+ {
+ foreach (DataGridViewRow row in dgvShop.Rows)
+ {
+ row.Cells["colSelect"].Value = false;
+ }
+ }
+ else
+ {
+ //var list = GlobalConfig.ShopLoginList.Where(s => s.LoginStatus == "登录成功").Select(ss => ss.ShopId);
+ foreach (DataGridViewRow row in dgvShop.Rows)
+ {
+ //if (list.Any(l => l == row.Cells["colShopId"]?.Value?.ToString()))
+ if(row.Visible == true)
+ row.Cells["colSelect"].Value = true;
+ }
+ }
+
+ foreach (var r in dgvShop.Rows.Cast())
+ {
+ dicCheckedShopId[r.Cells["colShopId"].Value.ParseToString()] = r.Cells["colSelect"].Value.ParseToBool();
+ }
+ NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_checked_shop_dic", dicCheckedShopId);
+ }
+
+ private void btnRefreshShop_Click(object sender, EventArgs e)
+ {
+ pbLoadingShop.Visible = true;
+ RefreshDbProd();
+ RefreshShopAuth();
+ }
+
+ private void UserSelectDbProductForm_VisibleChanged(object sender, EventArgs e)
+ {
+ if (Visible == true)
+ {
+ RefreshShopAuth();
+ updateAuthor();
+ RefreshDbProd();
+
+ if (!isInit)
+ {
+ Task.Run(() =>
+ {
+ foreach (var shop in GlobalConfig.ShopLoginList)
+ {
+ //if (shop.LoginStatus == "登录成功")
+ //{
+ // var rst = WXUpload.scanProductPreview(shop);
+ // if (!rst.Contains("\"code\":0") && !rst.Contains("\"success\":true"))
+ // {
+ // WXShopListForm.Instance.CheckShopLogin(new string[] { shop.LoginName }, false);
+ // }
+ //}
+ }
+
+ });
+ }
+
+ isInit = true;
+ }
+ }
+
+ private void RefreshDbProd()
+ {
+ Task.Run(() =>
+ {
+ Invoke(new Action(() =>
+ {
+ pbLoadingShop.Visible = false;
+ }));
+ });
+ }
+
+ private void RefreshShopAuth()
+ {
+ // 店铺Id
+ var selectIds = dgvShop.Rows.Cast().Where(row
+ => row.Cells["colSelect"]?.Value.ParseToBool() == true).Select(r => r.Cells["colShopId"]?.Value.ToString()).ToList();
+ // 获取被删除的店铺
+ List dgvRowList = dgvShop.Rows.Cast().Where(row
+ => !GlobalConfig.ShopLoginList.Any(s => s.ShopId == row.Cells["colShopId"]?.Value?.ToString())).ToList();
+ // 更新被删除的店铺列表
+ foreach (var row in dgvRowList)
+ {
+ dgvShop.Rows.Remove(row);
+ }
+ // 绑定其他店铺(含新导入的店铺)
+ foreach (ShopLoginInfo shopEntity in GlobalConfig.ShopLoginList)
+ {
+ if (!string.IsNullOrEmpty(shopEntity.ShopId))
+ BindShop(shopEntity, selectIds);
+ }
+ cmbFilterShopNotes.Items.Clear();
+ //cmbFilterShopNotes.Items.Add("");
+ foreach (var note in GlobalConfig.ShopLoginList.Select(s => s.Notes).Where(s => !s.IsNullOrEmpty()).Distinct())
+ {
+ cmbFilterShopNotes.Items.Add(note);
+ }
+ }
+
+ private void BindShop(ShopLoginInfo shopEntity, List selectShopId = null, string msg = "")
+ {
+ if (shopEntity == null)
+ return;
+ if (selectShopId == null)
+ selectShopId = new List();
+
+ bool canUse = shopEntity.LoginStatus == "登录成功";
+ //canUse = true; // 内部库不需要校验登录状态
+ var row = dgvShop.Rows.Cast().FirstOrDefault(p => p.Cells.GetCellValueFromColumnName("colShopId").ParseToString() == shopEntity.ShopId);
+ var day = DateTime.Now.ToString("yyyyMMdd").ParseToInt();
+ if (row == null)
+ {
+ this.dgvShop.Rows.Add(
+ //!isInit || (selectShopId.Contains(shopEntity.ShopId) && canUse),
+ dicCheckedShopId.Keys.Contains(shopEntity.ShopId) && dicCheckedShopId[shopEntity.ShopId] == true,
+ shopEntity.LoginName,
+ shopEntity.ShopId,
+ shopEntity.ShopAccount,
+ shopEntity.Notes,
+ "选择商品",
+ canUse ? "在线" : "掉线",
+ lstShopAuthInfo.FirstOrDefault(sa => sa.ShopId == shopEntity.ShopId)?.ExpiresTime > DateTime.Now.AddMinutes(5) ? "可用" : "过期",
+ canUse,
+ dicShopUpload.ContainsKey(shopEntity.ShopId) && dicShopUpload[shopEntity.ShopId].DicDayUploadCount.ContainsKey(day) ?
+ dicShopUpload[shopEntity.ShopId].DicDayUploadCount[day] : 0,
+ dicShopUpload.ContainsKey(shopEntity.ShopId) && dicShopUpload[shopEntity.ShopId].OnSaleRefreshDay == DateTime.Now.ToString("yyyyMMdd").ParseToInt() ?
+ dicShopUpload[shopEntity.ShopId].OnSaleCount : 0,
+ shopEntity.AddProductRemaining,
+ msg
+ );
+ }
+ else
+ {
+ row.Cells["colSelect"].Value = !isInit || (selectShopId.Contains(shopEntity.ShopId) && canUse);
+ row.Cells["colShopLoginName"].Value = shopEntity.LoginName;
+ row.Cells["colShopName"].Value = shopEntity.ShopAccount;
+ row.Cells["colShopNotes"].Value = shopEntity.Notes;
+ row.Cells["colLoginStatus"].Value = canUse ? "在线" : "掉线";
+ row.Cells["colLoginStatus"].Style.ForeColor = canUse ? Color.Green : Color.Red;
+ row.Cells["colCanUse"].Value = canUse;
+ row.Cells["colApi"].Value = lstShopAuthInfo.FirstOrDefault(sa => sa.ShopId == shopEntity.ShopId)?.ExpiresTime > DateTime.Now.AddMinutes(5) ? "可用" : "过期";
+ row.Cells["colRemaining"].Value = shopEntity.AddProductRemaining;
+ row.Cells["colUploadCount"].Value = dicShopUpload.ContainsKey(shopEntity.ShopId) && dicShopUpload[shopEntity.ShopId].DicDayUploadCount.ContainsKey(day) ?
+ dicShopUpload[shopEntity.ShopId].DicDayUploadCount[day] : 0;
+ row.Cells["colOnSaleNum"].Value = dicShopUpload.ContainsKey(shopEntity.ShopId) && dicShopUpload[shopEntity.ShopId].OnSaleRefreshDay == DateTime.Now.ToString("yyyyMMdd").ParseToInt() ?
+ dicShopUpload[shopEntity.ShopId].OnSaleCount : 0;
+ row.Cells["colMessage"].Value = msg;
+ }
+
+ displayAuthStatus(shopEntity);
+ }
+
+ void displayAuthStatus(ShopLoginInfo shop)
+ {
+ var rows = this.dgvShop.Rows.Cast().Where(r => r.Cells["colShopId"].Value.ParseToString() == shop?.ShopId);
+ foreach (var row in rows)
+ {
+ bool canUse = row.Cells["colLoginStatus"].Value.ParseToString() == "在线";
+ (row.Cells["colLoginStatus"] as DataGridViewLinkCell).Style.ForeColor = canUse ? Color.Blue : Color.Red;
+ (row.Cells["colLoginStatus"] as DataGridViewLinkCell).LinkColor = canUse ? Color.Blue : Color.Red;
+ (row.Cells["colLoginStatus"] as DataGridViewLinkCell).ActiveLinkColor = canUse ? Color.LightBlue : Color.OrangeRed;
+ (row.Cells["colLoginStatus"] as DataGridViewLinkCell).VisitedLinkColor = canUse ? Color.DarkBlue : Color.DarkRed;
+ canUse = row.Cells["colApi"].Value.ParseToString() == "可用";
+ (row.Cells["colApi"] as DataGridViewLinkCell).Style.ForeColor = canUse ? Color.Blue : Color.Red;
+ (row.Cells["colApi"] as DataGridViewLinkCell).LinkColor = canUse ? Color.Blue : Color.Red;
+ (row.Cells["colApi"] as DataGridViewLinkCell).ActiveLinkColor = canUse ? Color.LightBlue : Color.OrangeRed;
+ (row.Cells["colApi"] as DataGridViewLinkCell).VisitedLinkColor = canUse ? Color.DarkBlue : Color.DarkRed;
+ }
+ }
+
+ private void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e)
+ {
+ if (e.ColumnIndex < 0 || e.RowIndex < 0)
+ return;
+ string headerText = dgvShop.Columns[e.ColumnIndex].HeaderText;
+ string columnName = dgvShop.Columns[e.ColumnIndex].Name;
+ string shopId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToString();
+ string shopAccount = dgvShop.Rows[e.RowIndex].Cells["colShopName"].Value.ToString();
+ var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId.ToString());
+ var row = dgvShop.Rows[e.RowIndex];
+ switch (columnName)
+ {
+ case "colSelect":
+ //if (row.Cells["colCanUse"].Value.ParseToBool())
+ {
+ row.Cells["colSelect"].Value = !row.Cells["colSelect"].Value.ParseToBool();
+
+ chkSelectAll.CheckedChanged -= chkSelectAll_CheckedChanged;
+ if (dgvShop.Rows.Cast().All(r => r.Cells["colSelect"].Value.ParseToBool()))
+ chkSelectAll.Checked = true;
+ else
+ chkSelectAll.Checked = false;
+ chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged;
+ }
+ //else
+ {
+ //BaseMsgForm.ShowInfo("店铺未登录!");
+ }
+
+ dicCheckedShopId[row.Cells["colShopId"].Value.ParseToString()] = row.Cells["colSelect"].Value.ParseToBool();
+ NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_checked_shop_dic", dicCheckedShopId);
+ break;
+ case "colLoginStatus":
+ {
+ if (WXShopListForm.Instance == null)
+ WXShopListForm.Instance = new WXShopListForm();
+ WXShopListForm.Instance.CheckShopLogin(new string[] { shop.LoginName }, false);
+ WXShopLoginForm shopLoginForm = new WXShopLoginForm(shop);
+ //shopLoginForm.prodUserSelectForm = this;
+ if (shop.LoginStatus != "登录成功")
+ {
+ shopLoginForm.openType = EnumOpenType.login;
+ shopLoginForm.ShowDialog();
+ RefreshShopAuth();
+ }
+ else
+ {
+ shopLoginForm.openType = EnumOpenType.manage;
+ shopLoginForm.WindowState = FormWindowState.Maximized;
+ shopLoginForm.Show();
+ }
+ }
+ break;
+ case "colApi":
+ {
+ WXShopLoginForm shopLoginForm = new WXShopLoginForm(shop);
+ shopLoginForm.openType = EnumOpenType.manage;
+ shopLoginForm.WindowState = FormWindowState.Maximized;
+ shopLoginForm.InitUrl = "https://store.weixin.qq.com/shop/servicemarket/detail?serviceId=3984039898079707139";
+ shopLoginForm.Show();
+ }
+ break;
+ }
+ }
+
+ private void btnSearch_Click(object sender, EventArgs e)
+ {
+ var lstShopId = dgvShop.Rows.Cast().Where(row
+ => row.Cells["colSelect"]?.Value.ParseToBool() == true).Select(r => r.Cells["colShopId"]?.Value.ToString()).ToList();
+ if (lstShopId.Count == 0)
+ {
+ BaseMsgForm.ShowInfo("请选择店铺!");
+ return;
+ }
+ }
+
+ private void dgvSelectProduct_CellContentClick(object sender, DataGridViewCellEventArgs e)
+ {
+ if (e.ColumnIndex < 0 || e.RowIndex < 0)
+ return;
+ string headerText = dgvSelectProduct.Columns[e.ColumnIndex].HeaderText;
+ var dbId = dgvSelectProduct.Rows[e.RowIndex].Cells["colSelectId"].Value.ParseToString();
+ var dbProduct = lstTemuDBProductSelect.FirstOrDefault(p => p.id.ToString() == dbId);
+ var shopId = dgvSelectProduct.Rows[e.RowIndex].Cells["colSupplierId"].Value.ParseToString();
+ var draftId = dgvSelectProduct.Rows[e.RowIndex].Cells["colDraftId"].Value.ParseToString();
+ var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
+
+ switch (headerText)
+ {
+ case "删除":
+ break;
+ case "登录":
+ {
+ WXShopLoginForm shopLoginForm = new WXShopLoginForm(shop);
+ //shopLoginForm.prodUserSelectForm = this;
+ shopLoginForm.openType = EnumOpenType.login;
+ shopLoginForm.ShowDialog();
+ RefreshShopAuth();
+ }
+ break;
+ case "进店":
+ {
+ WXShopLoginForm shopLoginForm = new WXShopLoginForm(shop);
+ WXShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false);
+ if (shop.LoginStatus == "登录成功")
+ {
+ shopLoginForm.openType = EnumOpenType.manage;
+ shopLoginForm.WindowState = FormWindowState.Maximized;
+ shopLoginForm.InitUrl = "https://store.weixin.qq.com/shop/home";
+ shopLoginForm.Show();
+ }
+ else
+ {
+ shopLoginForm.openType = EnumOpenType.login;
+ shopLoginForm.ShowDialog();
+ RefreshShopAuth();
+ }
+ }
+ break;
+ case "上传商品Id":
+ //if (!string.IsNullOrEmpty(draftId) && shop != null)
+ //{
+ // ShopLoginForm shopLoginForm = new ShopLoginForm(shop);
+ // shopLoginForm.InitUrl = "https://seller.kuajingmaihuo.com/goods/product-create/product-edit?productDraftId=" +
+ // draftId + "&from=productDraftList";
+ // shopLoginForm.openType = EnumOpenType.manage;
+ // shopLoginForm.WindowState = FormWindowState.Maximized;
+ // shopLoginForm.ShowDialog();
+ //}
+ break;
+ case "图片":
+ {
+ ShowImgForm imgFrom = new ShowImgForm(dgvSelectProduct.Rows[e.RowIndex].Cells["colImgUrl"].Value.ParseToString());
+ imgFrom.ShowDialog();
+ break;
+ }
+ case "SKU替换图":
+ {
+ ShowImgForm imgFrom = new ShowImgForm(dgvSelectProduct.Rows[e.RowIndex].Cells["colSkuFakeImgUrl"].Value.ParseToString());
+ imgFrom.ShowDialog();
+ break;
+ }
+ case "":
+ dgvSelectProduct.Rows[e.RowIndex].Cells["colCheck"].Value = !(bool)dgvSelectProduct.Rows[e.RowIndex].Cells["colCheck"].Value;
+ break;
+ default:
+ break;
+ }
+ }
+
+
+ private void btnSetPreSale_Click(object sender, EventArgs e)
+ {
+ var rowLst = dgvSelectProduct.Rows.Cast().Where(r => r.Cells["colCheck"].Value.ParseToBool() == true).ToList();
+ if (rowLst.Count <= 0)
+ {
+ BaseMsgForm.ShowError("请勾选需要操作的商品!");
+ return;
+ }
+
+ this.pbLoading.Visible = true;
+ this.btnSetPreSale.Enabled = false;
+ cancellationTokenSource = new CancellationTokenSource();
+ Task.Run(() =>
+ {
+ SetProdPre(rowLst);
+ Invoke(new Action(() =>
+ {
+ this.statusBar.lblTaskStatus.Text = "商品设置完毕";
+ BaseMsgForm.ShowInfo("商品设置完毕");
+ this.pbLoading.Visible = false;
+ this.btnSetPreSale.Enabled = true;
+ }));
+ }, cancellationTokenSource.Token);
+
+ }
+
+ void SetProdPre(List rowLst)
+ {
+ Invoke(new Action(() =>
+ {
+ this.pbLoading.Visible = true;
+ this.statusBar.lblTaskStatus.Text = "正在设置" + "...".Substring(0, DateTime.Now.Second % 4);
+ this.statusBar.pgbTaskProgress.Maximum = dgvSelectProduct.Rows.Count;
+ this.statusBar.UpdateProgressBar(0);
+ }));
+
+ foreach (var row in rowLst)
+ {
+ Invoke(new Action(() =>
+ {
+ row.Cells["colOpResult"].Value = "";
+ }));
+
+ if (cancellationTokenSource.IsCancellationRequested)
+ break;
+
+ var prodId = row.Cells["colDraftId"].Value.ParseToString();
+ var shopId = row.Cells["colSupplierId"].Value.ParseToString();
+ var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
+ if (shop == null)
+ {
+ Invoke(new Action(() =>
+ {
+ row.Cells["colOpResult"].Value = "店铺不存在";
+ }));
+ continue;
+ }
+ if (shop.LoginStatus != "登录成功")
+ {
+ Invoke(new Action(() =>
+ {
+ row.Cells["colOpResult"].Value = "店铺掉线";
+ }));
+ continue;
+ }
+ //shop = new ShopLoginInfo();
+ var getEditProdRst = WXUpload.getEditProductV2(shop, prodId);
+ Thread.Sleep(Randomx.GetId(50, 100));
+ if(getEditProdRst.Contains("biz magic invalid"))
+ {
+ WXShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false);
+ }
+ if (!getEditProdRst.Contains("\"success\":true"))
+ {
+ var errmsg = BaseRegex.GetStringJson(ref getEditProdRst, "msg");
+ if (string.IsNullOrWhiteSpace(errmsg))
+ errmsg = getEditProdRst;
+
+ Invoke(new Action(() =>
+ {
+ row.Cells["colOpResult"].Value = errmsg;
+ }));
+ continue;
+ }
+
+ string productJson = "";
+ try
+ {
+ // 获取免审编辑回传数据
+ JObject jObjTmp = JsonHelper.JObjectParse(getEditProdRst);
+ jObjTmp["product"]["deliverInfo"]["skuDeliverInfo"]["fullPaymentPresaleDeliveryTime"] = chkPreSale.Checked ? txtPreDays.Text.Trim().ParseToInt() : 0;
+ jObjTmp["product"]["deliverInfo"]["deliverType"] = chkPreSale.Checked ? 1 : 0;
+ jObjTmp["product"]["info"]["presaleTag"] = chkPreSale.Checked ? 1 : 0;
+ jObjTmp["product"]["info"]["presaleTagType"] = chkPreSale.Checked ? 1 : 0;
+ productJson = JsonHelper.SerializeObject(jObjTmp);
+ }
+ catch (Exception ex)
+ {
+ Invoke(new Action(() =>
+ {
+ row.Cells["colOpResult"].Value = ex.Message;
+ }));
+ continue;
+ }
+
+ DateTime tickTime = DateTime.Now.AddSeconds(0 - Randomx.GetId(10, 30));
+ int time1 = BaseClass.DateTimeToTimestampSeconds(tickTime) - Randomx.GetId(80, 150);
+ int time2 = BaseClass.DateTimeToTimestampSeconds(tickTime);
+
+ // 提交免审修改(实际生效接口)
+ var listingAuditFreeRst = WXUpload.listingAuditFree(shop, productJson, prodId, time1, time2);
+ if (!listingAuditFreeRst.Contains("\"code\":0"))
+ {
+ var errmsg = BaseRegex.GetStringJson(ref listingAuditFreeRst, "msg");
+ if (string.IsNullOrWhiteSpace(errmsg))
+ errmsg = listingAuditFreeRst;
+
+ Invoke(new Action(() =>
+ {
+ row.Cells["colOpResult"].Value = errmsg;
+ }));
+ continue;
+ }
+ if (listingAuditFreeRst.Contains("\"code\":0"))
+ {
+ Invoke(new Action(() =>
+ {
+ row.Cells["colOpResult"].Value = "设置成功";
+ }));
+ }
+ }
+ }
+
+ private void btnStop_Click(object sender, EventArgs e)
+ {
+ if (this.cancellationTokenSource != null)
+ this.cancellationTokenSource.Cancel();
+ }
+
+ private void btnSearchProd_Click(object sender, EventArgs e)
+ {
+ var shopIdLst = dgvShop.Rows.Cast().Where(row
+ => row.Cells["colSelect"]?.Value.ParseToBool() == true).Select(r => r.Cells["colShopId"]?.Value.ToString()).ToList();
+ if (shopIdLst.Count <= 0)
+ {
+ BaseMsgForm.ShowError("未勾选上传店铺!");
+ return;
+ }
+ btnSearchProd.Enabled = false;
+ pbLoading.Visible = true;
+ cancellationTokenSource = new CancellationTokenSource();
+ dgvSelectProduct.Rows.Clear();
+ Task.Run(() =>
+ {
+ GetProduct(shopIdLst);
+ Invoke(new Action(() =>
+ {
+ this.statusBar.lblTaskStatus.Text = "商品查询完毕";
+ BaseMsgForm.ShowInfo("商品查询完毕");
+ pbLoading.Visible = false;
+ btnSearchProd.Enabled = true;
+ }));
+ }, cancellationTokenSource.Token);
+ }
+
+ void GetProduct(List shopIdLst)
+ {
+ List shopLst = GlobalConfig.ShopLoginList.Where(s => shopIdLst.Contains(s.ShopId)).ToList();
+ foreach(var shop in shopLst)
+ {
+ if(cancellationTokenSource.IsCancellationRequested)
+ break;
+
+ if (shop.LoginStatus != "登录成功")
+ {
+ continue;
+ }
+
+ int page = PageBegin - 1;
+ int totalPage = 1;
+ int pageSize = 50;
+ string nextKey = "";
+ while (page < totalPage && page < PageEnd)
+ {
+ page++;
+
+ if (cancellationTokenSource.IsCancellationRequested)
+ break;
+
+ string getProdOnSaleRst = "";
+
+ if (string.IsNullOrEmpty(PreType))
+ getProdOnSaleRst = WXPreSale.scanProductPreview(shop, page, nextKey, pageSize);
+ else
+ getProdOnSaleRst = WXPreSale.searchPreProduct(shop, page, PreType == "预售" ? 1 : 0, pageSize);
+ Thread.Sleep(Randomx.GetId(50, 100));
+ if (!getProdOnSaleRst.Contains("\"success\":true"))
+ {
+ var error = BaseRegex.GetStringJson(ref getProdOnSaleRst, "msg");
+ if (string.IsNullOrEmpty(error))
+ error = getProdOnSaleRst;
+
+ WXShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false);
+ if (shop.LoginStatus != "登录成功")
+ {
+ Invoke(new Action(() => { BindShop(shop, shopIdLst, "店铺掉线"); }));
+ }
+
+ var shopRow = dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ParseToString() == shop.ShopId);
+ Invoke(new Action(() => {
+ if (shopRow != null)
+ {
+ shopRow.Cells["colMsg"].Value = error;
+ }
+ }));
+ break;
+ }
+
+ try
+ {
+ var prodObjs = JsonHelper.JObjectParse(getProdOnSaleRst);
+ if (page == 1)
+ {
+ var totalNum = prodObjs["totalNum"].ParseToInt();
+ totalPage = Math.Ceiling(1m * totalNum / pageSize).ParseToInt();
+ nextKey = prodObjs["nextKey"].ParseToString();
+ }
+ Invoke(new Action(() =>
+ {
+ this.pbLoading.Visible = true;
+ this.statusBar.lblTaskStatus.Text = "正在查询店铺:" + shop.ShopAccount + " " + page + "/" + Math.Min(PageEnd, totalPage);
+ //this.statusBar.pgbTaskProgress.Maximum = lstTemuDBProductSelect.Count;
+ //this.statusBar.UpdateProgressBar(0);
+ }));
+ foreach (JObject prod in prodObjs["productList"])
+ {
+ Invoke(new Action(() =>
+ {
+ decimal? price = null;
+ try { price = prod["skuList"][0]["price"].ParseToDecimal() / 100; } catch { }
+
+ var rowIndex = this.dgvSelectProduct.Rows.Add(
+ false,
+ "",
+ shop.ShopId,
+ shop.ShopAccount,
+ "登录",
+ "进店",
+ "",
+ "",
+ prod["productId"].ParseToString(),
+ prod["headImg"].ParseToString(),
+ DataGridViewExtension.defaultBitmap,
+ "", // 替换图地址
+ null, // 替换图
+ prod["title"].ParseToString(), // 用户端显示商品原名
+ (prod["recommendCategory"].IsJTokenNullOrEmpty() || prod["recommendCategory"]["categoryNames"].IsJTokenNullOrEmpty()) ?
+ "" : string.Join(" >> ", prod["recommendCategory"]["categoryNames"].Select(s => s.ParseToString())), // 类目名称
+ prod["spuCode"].ParseToString(),
+ price,
+ "在售" + (prod["presaleTag"].ParseToInt() == 1 ? "[预售]" : ""),
+ "", // 备注
+ "",
+ "删除",
+ BaseClass.StampToDateTime(prod["lastEditDraftTime"].ParseToInt()).ToString("yy-MM-dd HH:mm"),
+ "");
+
+ dgvSelectProduct.Rows[rowIndex].Height = 60;
+ dgvSelectProduct.Rows[rowIndex].Cells["colMsg"].Style.ForeColor = dgvSelectProduct.Rows[rowIndex].Cells["colMsg"].Value.ParseToString().Contains("预售") ? Color.Orange : Color.Blue;
+ }));
+ }
+ }
+ catch (Exception ex)
+ {
+
+ }
+ }
+ }
+ }
+
+ private void btnClearDgv_Click(object sender, EventArgs e)
+ {
+ var rows = this.dgvSelectProduct.Rows.Cast().ToList(); //Cast后Rows做foreach循环时仍会夹花跳过,所以要ToList转一个新的数组。
+ foreach (var row in rows)
+ {
+ if (row.Cells["colCheck"].Value.ParseToBool() == true)
+ {
+ //var draft_id = row.Cells["colDraftId"].Value.ParseToString();
+ //upload_draft_product_lst.RemoveAll(p => p.draft_id == draft_id);
+
+ this.dgvSelectProduct.Rows.Remove(row);
+ }
+ }
+ //NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_select_upload_draft_products", upload_draft_product_lst);
+ }
+
+ private void btnClearFilter_Click(object sender, EventArgs e)
+ {
+ txtIdFilter.Text = "";
+ txtExtCodeFilter.Text = "";
+ txtProductName.Text = "";
+ }
+
+ private void txtPreDays_TextChanged(object sender, EventArgs e)
+ {
+ wxUploadRule.PreSaleDays = txtPreDays.Text.Trim().ParseToInt();
+ NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_upload_rule", wxUploadRule);
+ }
+
+ private void chkPreSale_CheckedChanged(object sender, EventArgs e)
+ {
+ chkNoPreSale.Checked = !chkPreSale.Checked;
+
+ wxUploadRule.IsPreSale = chkPreSale.Checked;
+ NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_upload_rule", wxUploadRule);
+ }
+
+ private void btnFilterShop_Click(object sender, EventArgs e)
+ {
+ foreach(DataGridViewRow row in dgvShop.Rows)
+ {
+ string notes = cmbFilterShopNotes.Text.Trim().Trim(';');
+ if (notes == "全部")
+ notes = "";
+ List notesLst = notes.Split(new string[] { ";", ",", ",", " " }, StringSplitOptions.RemoveEmptyEntries).ToList();
+
+ if (!row.Cells["colShopName"].Value.ParseToString().Contains(txtFilterShopName.Text.Trim()))
+ {
+ row.Visible = false;
+ row.Cells["colSelect"].Value = false;
+ continue;
+ }
+ if (!row.Cells["colShopNotes"].Value.ParseToString().Contains(notes) && !notesLst.Contains(row.Cells["colShopNotes"].Value.ParseToString()))
+ {
+ row.Visible = false;
+ row.Cells["colSelect"].Value = false;
+ continue;
+ }
+ row.Visible = true;
+ }
+ }
+
+ private void btnEmptyShop_Click(object sender, EventArgs e)
+ {
+ txtFilterShopName.Text = "";
+ cmbFilterShopNotes.Text = "全部";
+ btnFilterShop_Click(null, null);
+ }
+
+ private void btnReverse_Click(object sender, EventArgs e)
+ {
+ foreach(DataGridViewRow row in dgvShop.Rows)
+ {
+ if (row.Visible == true)
+ row.Cells["colSelect"].Value = !row.Cells["colSelect"].Value.ParseToBool();
+ }
+ }
+
+ private void btnAddSelect_Click(object sender, EventArgs e)
+ {
+ string notes = cmbFilterShopNotes.Text.Trim().Trim(';');
+ if (notes == "全部")
+ notes = "";
+ List notesLst = notes.Split(new string[] { ";", ",", ",", " " }, StringSplitOptions.RemoveEmptyEntries).ToList();
+
+ foreach (DataGridViewRow row in dgvShop.Rows)
+ {
+ if (row.Visible == true)
+ {
+ if (row.Cells["colShopName"].Value.ParseToString().Contains(txtFilterShopName.Text.Trim()) &&
+ (row.Cells["colShopNotes"].Value.ParseToString().Contains(notes) || notesLst.Contains(row.Cells["colShopNotes"].Value.ParseToString())))
+ {
+ row.Cells["colSelect"].Value = true;
+ }
+ }
+ }
+ }
+
+ private void btnAddUnSelect_Click(object sender, EventArgs e)
+ {
+ string notes = cmbFilterShopNotes.Text.Trim().Trim(';');
+ if (notes == "全部")
+ notes = "";
+ List notesLst = notes.Split(new string[] { ";", ",", ",", " " }, StringSplitOptions.RemoveEmptyEntries).ToList();
+
+ foreach (DataGridViewRow row in dgvShop.Rows)
+ {
+ if (row.Visible == true)
+ {
+ if (row.Cells["colShopName"].Value.ParseToString().Contains(txtFilterShopName.Text.Trim()) &&
+ (row.Cells["colShopNotes"].Value.ParseToString().Contains(notes) || notesLst.Contains(row.Cells["colShopNotes"].Value.ParseToString())))
+ {
+ row.Cells["colSelect"].Value = false;
+ }
+ }
+ }
+ }
+
+ private void btnSelectOnline_Click(object sender, EventArgs e)
+ {
+ foreach (DataGridViewRow row in dgvShop.Rows)
+ {
+ if (row.Visible == true)
+ {
+ if (row.Cells["colLoginStatus"].Value.ParseToString() == "在线")
+ {
+ row.Cells["colSelect"].Value = true;
+ }
+ else
+ {
+ row.Cells["colSelect"].Value = false;
+ }
+ }
+ }
+ }
+
+ private void btnSelectOffline_Click(object sender, EventArgs e)
+ {
+ foreach (DataGridViewRow row in dgvShop.Rows)
+ {
+ if (row.Visible == true)
+ {
+ if (row.Cells["colLoginStatus"].Value.ParseToString() != "在线")
+ {
+ row.Cells["colSelect"].Value = true;
+ }
+ else
+ {
+ row.Cells["colSelect"].Value = false;
+ }
+ }
+ }
+ }
+
+ private void txtPageBegin_TextChanged(object sender, EventArgs e)
+ {
+ PageEnd = txtPageBegin.Text.ParseToInt();
+ }
+
+ private void txtPageEnd_TextChanged(object sender, EventArgs e)
+ {
+ PageEnd = txtPageEnd.Text.ParseToInt();
+ }
+
+ private void chkNoPreSale_CheckedChanged(object sender, EventArgs e)
+ {
+ if (chkNoPreSale.Checked)
+ chkPreSale.Checked = false;
+ else
+ chkPreSale.Checked = true;
+ }
+
+ private void btnSelectPre_Click(object sender, EventArgs e)
+ {
+ foreach(DataGridViewRow row in dgvSelectProduct.Rows)
+ {
+ Invoke(new Action(() => { }));
+ }
+ }
+
+ private void cmbPreType_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ PreType = cmbPreType.Text.Trim();
+ }
+ }
+
+ public class WXPreSale
+ {
+ public static string searchPreProduct(ShopLoginInfo shop, int pageNum, int presaleType = 1, int pageSize = 50)
+ {
+ //https://store.weixin.qq.com/shop-faas/mmchannelstradeproductcore/cgi/goods/searchProduct?token=&lang=zh_CN&pageSize=20&productStatus[]=-1&productSource=[1,16,32]&searchSource=1&useNew=true&pageNum=44&status[]=5&presaleType[]=1
+ string url = "https://store.weixin.qq.com/shop-faas/mmchannelstradeproductcore/cgi/goods/searchProduct?token=&lang=zh_CN&" +
+ "pageSize=" + pageSize + "&productStatus[]=-1&productSource=[1,16,32]&searchSource=1&useNew=true&pageNum=" + pageNum + "&status[]=5&presaleType[]=" + presaleType;
+
+ string refere = "https://store.weixin.qq.com/shop/goods/list?currentTab=PRODUCT_STATUS_ON";
+ var result = WXHttpResponseBLL.WeiXinGetResponse(shop, url, refere);
+ return result;
+ }
+
+ public static string scanProductPreview(ShopLoginInfo shop, int page, string nextKey = "", int pageSize = 50)
+ {
+ string url = "https://store.weixin.qq.com/shop-faas/mmchannelstradeproductcore/cgi/goods/scanProductPreview?token=&lang=zh_CN";
+ string referer = "https://store.weixin.qq.com/shop/goods/list?currentTab=PRODUCT_STATUS_ON";
+ if (page > 1)
+ referer = "https://store.weixin.qq.com/shop/goods/list?currentTab=PRODUCT_STATUS_ON¤tPage=" + page;
+ //string body = @"{""pageSize"":20,""productStatus"":[-1],""productSource"":""[1,16,32]"",""searchSource"":1,""useNew"":true,""pageNum"":1,""status"":[5]}";
+ //string body = @"{""pageSize"":20,""productStatus"":[-1],""productSource"":""[1,16,32]"",""searchSource"":1,""useNew"":true,""pageNum"":2,""status"":[5],""nextKey"":""ChwItc+24YajAhCD14bMBhjqLiDoDCgAMITXhswGEhwIy8im34ajAhCa74XMBhiaXyDeBygAMJrvhcwGGAEgeiiIEw==""}";
+ string body = @"{""pageSize"":" + pageSize + @",""productStatus"":[-1],""productSource"":""[1,16,32]"",""searchSource"":1,""useNew"":true,""pageNum"":" + page +
+ @",""status"":[5],""nextKey"":""" + nextKey + @"""}";
+ var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, body, referer);
+ return result;
+ }
+
+ public static string getUploadTempImgAuth(ShopLoginInfo shop, int uploadScene = 3)
+ {
+ string url = "https://store.weixin.qq.com/shop-faas/mmecchannelspicture/cgi/getUploadTempImgAuth?token=&lang=zh_CN&uploadScene=" + uploadScene;
+ string refere = "https://store.weixin.qq.com/shop/goods/entry";
+ //{"code":0,"disK":"538c14e950da7b678ce9f5a12658c8acddd09e4b","disT":1767870926,"ext":"23aa0ecfb792a","url":"https://westore.video.qq.com/adtimageupload"}
+ var result = WXHttpResponseBLL.WeiXinGetResponse(shop, url, refere);
+ return result;
+ }
+
+ public static string adtimageupload(ShopLoginInfo shop, string imgBase64, string dis_k, long dis_t, string ext)
+ {
+ string url = "https://westorealpha.video.qq.com/adtimageupload";
+ string referer = "https://store.weixin.qq.com/";
+ string body = imgBase64;
+ var result = WXHttpResponseBLL.WeiXinImgPostResponse(shop, url, body, dis_k, dis_t, ext, referer);
+ return result;
+ }
+
+ public static string getProductClassify(ShopLoginInfo shop, string goodsName, List goodImgUrlsLst)
+ {
+ string boundaryLetters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
+ string boundaryStr = "----WebKitFormBoundary";
+ for (int i = 0; i < 16; i++)
+ {
+ boundaryStr += boundaryLetters[Randomx.GetId(boundaryLetters.Length)];
+ }
+
+ string url = "https://store.weixin.qq.com/shop-faas/cgi/common/productClassify?from=B&title=" + GetHtml.UrlEncodeUtf8(goodsName) + "&token=&lang=zh_CN";
+ string referer = "https://store.weixin.qq.com/shop/goods/entry";
+
+ string body = @"--" + boundaryStr + @"
+";
+ foreach (var imgFullPath in goodImgUrlsLst)
+ {
+ string fileName = imgFullPath.Split('\\').LastOrDefault();
+ body += @"Content-Disposition: form-data; name=""file""; filename=""" + fileName + @"""
+Content-Type: image/jpeg
+
+" + imgFullPath + @"
+--" + boundaryStr;
+ }
+ body += @"--
+";
+ var result = WXHttpResponseBLL.WeiXinUploadResponse(shop, url, body, boundaryStr, referer);
+ return result;
+ }
+
+ public static string getCategoryOnShelf(ShopLoginInfo shop, List catIdLst)
+ {
+ string url = "https://store.weixin.qq.com/shop-faas/mmchannelstradecategory/cgi/product/getCategoryOnShelfV2?token=&lang=zh_CN";
+ string referer = "https://store.weixin.qq.com/shop/goods/entry";
+ string body = @"{""catIdList"":[" + string.Join(",", catIdLst) + @"],""brandId"":2100000000}";
+ var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, body, referer);
+ return result;
+ }
+
+ public static string batchCheckCategoryRelation(ShopLoginInfo shop, long catId)
+ {
+ string url = "https://store.weixin.qq.com/shop-faas/mmchannelstradecategory/cgi/product/batchCheckCategoryRelation?token=&lang=zh_CN";
+ string referer = "https://store.weixin.qq.com/shop/goods/entry";
+ string body = @"{""categoryIdList"":[" + catId + "]}";
+ var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, body, referer);
+ return result;
+ }
+
+ public static string addFinderCategoryV2(ShopLoginInfo shop, long catId)
+ {
+ string url = "https://store.weixin.qq.com/shop-faas/mmchannelstradecategory/cgi/addFinderCategoryV2?token=&lang=zh_CN";
+ string referer = "https://store.weixin.qq.com/shop/goods/entry";
+ string body = @"{""categoryInfo"":{""categories"":[{""id"":""" + catId + @"""}]},""brandIdList"":[],""leafCategoryId"":""" + catId + @""",""reuse"":0,""applyType"":1}";
+ var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, body, referer);
+ //{"categoryInfo":{"categories":[{"id":10000257},{"id":10000245},{"id":112888}],"categoryDeposit":"10000.00","isNewApplyCat":true,"licenseGroupList":[{"licenseGroupId":"17","license":{"licenseId":"5","cosIdList":["1768635607165-orc0V2WjFHdNvjNnk967_g14awFw-7487"],"licenseFieldList":[{"key":"audit_license_no","value":"新出发皖字第1027号"},{"key":"audit_license_validty_period","value":"2029-04-30"}],"isReuse":true}}],"ruleVersion":5234,"certificate":[]},"brandIdList":[],"leafCategoryId":112888,"reuse":0,"applyType":"normalApply"}
+ //{"code":0,"baseResp":{"errcode":0,"errmsg":"ok"},"auditId":"8362856529"}
+ //string body = @"{""categoryInfo"":{""categories"":[{""id"":10000257},{""id"":10000245},{""id"":112888}],""categoryDeposit"":""10000.00"",""isNewApplyCat"":true,""licenseGroupList"":[{""licenseGroupId"":""17"",""license"":{""licenseId"":""5"",""cosIdList"":[""1768635607165-orc0V2WjFHdNvjNnk967_g14awFw-7487""],""licenseFieldList"":[{""key"":""audit_license_no"",""value"":""新出发皖字第1027号""},{""key"":""audit_license_validty_period"",""value"":""2029-04-30""}],""isReuse"":true}}],""ruleVersion"":5234,""certificate"":[]},""brandIdList"":[],""leafCategoryId"":112888,""reuse"":0,""applyType"":""normalApply""}";
+ // request.Referer = "https://store.weixin.qq.com/shop/brandAndCat/category/apply?defaultCategoryIds=%5B%2210000257%22%2C%2210000245%22%2C%22112888%22%5D&source=goods&type=apply";
+
+ return result;
+ }
+
+ public static string genProductShortTitle(ShopLoginInfo shop, WXGetShortTitleParam getShortTitleParam)
+ {
+ string url = "https://store.weixin.qq.com/shop-faas/mmecnodeproductupload/common/cgi/goods/genProductShortTitle?token=&lang=zh_CN";
+ string referer = "https://store.weixin.qq.com/shop/goods/entry";
+ string body = JsonHelper.SerializeObject(getShortTitleParam);
+ //{"productTitle":"妈妈老年中年阔脚裤冬季秋季时尚牛仔裤","headImgUrls":["https://wst.wxapp.tc.qq.com/160/20304/snscosdownload/SH/reserved/6xykWLEnztKEVU0iahAM7HQ28puCia87zPkvSbFT8Fcia99g2ZNWRdy8licxD6qwsqV4bCicoxwQF9e6jh3qwibgzxuA?token=x5Y29zUxcibCe0pFyoSA8zb1aYVKnIBLkQ8ZUXMcwEq3qYHsko3TDzv2rsL2AfJPd&idx=1&expire=1768211170","https://wst.wxapp.tc.qq.com/160/20304/snscosdownload/SH/reserved/6xykWLEnztKEVU0iahAM7Hbwaw1AboTKxjGsLhJgVreuYNxwyQxrk9RtvCv3XsXSnic9WfBFMAIZYpNgYkWd7VDQ?token=x5Y29zUxcibCe0pFyoSA8zb1aYVKnIBLk4qWUsS2WZiaCjXhZLj0D6PYyddX71qNiat&idx=1&expire=1768211170","https://wst.wxapp.tc.qq.com/160/20304/snscosdownload/SH/reserved/6xykWLEnztKEVU0iahAM7HTa1Ej2xJpy6Ej84arVO7A3vxIDD1XP6ZRVw43OficKLXPcXPUvDNmc8A4lMHCgbic3A?token=x5Y29zUxcibCe0pFyoSA8zb1aYVKnIBLkhejArCiaiaLIEKtvOicA5chibIj1tfELV0Mm&idx=1&expire=1768211170"],"categories":[{"catId":"10000111","catName":"服饰内衣"},{"catId":"10000113","catName":"女装"},{"catId":"10000672","catName":"裤子"},{"catId":"547705","catName":"牛仔裤"}]}
+ var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, body, referer);
+ return result;
+ }
+
+ public static string getFreightTemplate(ShopLoginInfo shop)
+ {
+ string url = "https://store.weixin.qq.com/shop-faas/mmecnodeproductupload/express/cgi/goods/getFreightTemplate?token=&lang=zh_CN";
+ string referer = "https://store.weixin.qq.com/shop/goods/entry";
+ var result = WXHttpResponseBLL.WeiXinGetResponse(shop, url, referer);
+ return result;
+ }
+
+ ///
+ /// 取售后地址
+ ///
+ ///
+ ///
+ public static string getAddress(ShopLoginInfo shop, string searchText="")
+ {
+ string url = "https://store.weixin.qq.com/shop-faas/mmchannelstradeexpress/cgi/getAddress?token=&lang=zh_CN";
+ if (!string.IsNullOrEmpty(searchText))
+ url = "https://store.weixin.qq.com/shop-faas/mmchannelstradeexpress/cgi/getAddress?searchStr=" + GetHtml.UrlEncodeUtf8(searchText) + "&token=&lang=zh_CN";
+ string referer = "https://store.weixin.qq.com/shop/goods/entry";
+ var result = WXHttpResponseBLL.WeiXinGetResponse(shop, url, referer);
+ return result;
+ }
+
+ public static string uploadProductDraft(ShopLoginInfo shop, WXUploadProductParam prodParam)
+ {
+ string url = "https://store.weixin.qq.com/shop-faas/mmecnodeproductupload/common/cgi/goods/uploadProductDraft?token=&lang=zh_CN";
+ string referer = "https://store.weixin.qq.com/shop/goods/entry";
+ JsonSerializerSettings jsonSetting = new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore };
+ var prodStr = JsonConvert.SerializeObject(prodParam, jsonSetting);
+ JObject jObj = new JObject();
+ jObj.Add("data", prodStr);
+ string body = JsonHelper.SerializeObject(jObj);
+ var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, body, referer);
+ return result;
+ }
+
+ public static string upProductV2(ShopLoginInfo shop, WXUploadProductParam prodParam)
+ {
+ string url = "https://store.weixin.qq.com/shop-faas/mmchannelstradeproductcore/cgi/goods/upProductV2?token=&lang=zh_CN";
+ string referer = "https://store.weixin.qq.com/shop/goods/entry";
+ JsonSerializerSettings jsonSetting = new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore };
+ var prodStr = JsonConvert.SerializeObject(prodParam, jsonSetting);
+ JObject jObj = new JObject();
+ jObj.Add("data", prodStr);
+ string body = JsonHelper.SerializeObject(jObj);
+ var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, body, referer);
+ return result;
+ }
+
+
+ public static string upProductJObjectV2(ShopLoginInfo shop, string prodStr)
+ {
+ string url = "https://store.weixin.qq.com/shop-faas/mmchannelstradeproductcore/cgi/goods/upProductV2?token=&lang=zh_CN";
+ string referer = "https://store.weixin.qq.com/shop/goods/entry";
+ //JsonSerializerSettings jsonSetting = new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore };
+ //var prodStr = JsonConvert.SerializeObject(prodParam, jsonSetting);
+ JObject jObj = new JObject();
+ jObj.Add("data", prodStr);
+ string body = JsonHelper.SerializeObject(jObj);
+ var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, body, referer);
+ return result;
+ }
+
+ ///
+ /// 尝试免审 失败
+ ///
+ ///
+ ///
+ ///
+ public static string getEditProductV2(ShopLoginInfo shop, string productId)
+ {
+ string url = "https://store.weixin.qq.com/shop-faas/mmchannelstradeproductcore/cgi/goods/getEditProductV2?token=&lang=zh_CN&productKey=%7B%22productId%22:" +
+ productId + "%7D&needRealStock=true&preview=false&release=false";
+ //url = "https://store.weixin.qq.com/shop-faas/mmchannelstradeproductcore/cgi/goods/getEditProductV2?token=&lang=zh_CN&productKey=%7B%22productId%22:" +
+ // productId + "%7D&needRealStock=true&preview=false&release=true";
+ string referer = "https://store.weixin.qq.com/shop/goods/entry?productId=" + productId + "&isUpdateAuditFree=0&source=list_edit&continueEditInfo={%22isEditingContinued%22:false,%22lastEditDraftTime%22:0,%22listingTime%22:0}";
+ //referer = "https://store.weixin.qq.com/shop/goods/entry?productId=" + productId + "&isUpdateAuditFree=1&source=list_audit_free&continueEditInfo={%22isEditingContinued%22:true,%22lastEditDraftTime%22:0,%22listingTime%22:0}";
+ var result = WXHttpResponseBLL.WeiXinGetResponse(shop, url, referer);
+ return result;
+ }
+
+ public static string initUploadPart(ShopLoginInfo shop, string submitJson, string prodId, int time1, int time2)
+ {
+ string url = "https://store.weixin.qq.com/shop-faas/mmecnodefiletransfer/filecos/initUploadPart?token=&lang=zh_CN";
+ string referer = "https://store.weixin.qq.com/shop/goods/entry?productId=" + prodId +
+ "&isUpdateAuditFree=1&source=list_audit_free&continueEditInfo=" +
+ "{%22isEditingContinued%22:true,%22lastEditDraftTime%22:" + time1 + "," +
+ "%22listingTime%22:" + time2 + "}";
+ string body = submitJson; //@"{""name"":""goods/10000456038253/2026-01-20/1768887306422/submit.json""}";
+ var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, body, referer);
+ return result;
+ }
+
+ public static string listingAuditFree(ShopLoginInfo shop, WXUploadProductParam prodParam, string prodId, int time1, int time2)
+ {
+ string url = "https://store.weixin.qq.com/shop-faas/mmchannelstradeproductcore/cgi/goods/listingAuditFree?token=&lang=zh_CN";
+ string referer = "https://store.weixin.qq.com/shop/goods/entry?productId=" + prodId +
+ "&isUpdateAuditFree=1&source=list_audit_free&continueEditInfo=" +
+ "{%22isEditingContinued%22:true,%22lastEditDraftTime%22:" + time1 + "," +
+ "%22listingTime%22:" + time2 + "}";
+ JsonSerializerSettings jsonSetting = new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore };
+ var prodStr = JsonConvert.SerializeObject(prodParam, jsonSetting);
+ JObject jObj = new JObject();
+ jObj.Add("data", prodStr);
+ string body = JsonHelper.SerializeObject(jObj);
+ var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, body, referer);
+ return result;
+ }
+
+ public static string listingAuditFree(ShopLoginInfo shop, string prodStr, string prodId, int time1, int time2)
+ {
+ string url = "https://store.weixin.qq.com/shop-faas/mmchannelstradeproductcore/cgi/goods/listingAuditFree?token=&lang=zh_CN";
+ string referer = "https://store.weixin.qq.com/shop/goods/entry?productId=" + prodId +
+ "&isUpdateAuditFree=1&source=list_audit_free&continueEditInfo=" +
+ "{%22isEditingContinued%22:true,%22lastEditDraftTime%22:" + time1 + "," +
+ "%22listingTime%22:" + time2 + "}";
+ JsonSerializerSettings jsonSetting = new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore };
+ JObject jObj = new JObject();
+ jObj.Add("data", prodStr);
+ string body = JsonHelper.SerializeObject(jObj);
+ var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, body, referer);
+ return result;
+ }
+
+ public static string uploadPartBinary(ShopLoginInfo shop, string initFileName, string blobPath, string uploadId, string prodId, int time1, int time2)
+ {
+ string boundaryLetters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
+ string boundaryStr = "----WebKitFormBoundary";
+ for (int i = 0; i < 16; i++)
+ {
+ boundaryStr += boundaryLetters[Randomx.GetId(boundaryLetters.Length)];
+ }
+
+ string url = "https://store.weixin.qq.com/shop-faas/mmecnodefiletransfer/filecos/uploadPartBinary?token=&lang=zh_CN";
+ string referer = "https://store.weixin.qq.com/shop/goods/entry?productId=" + prodId +
+ "&isUpdateAuditFree=1&source=list_audit_free&continueEditInfo=" +
+ "{%22isEditingContinued%22:true,%22lastEditDraftTime%22:" + time1 + "," +
+ "%22listingTime%22:" + time2 + "}";
+ string body = @"--" + boundaryStr + @"
+Content-Disposition: form-data; name=""name""
+
+" + initFileName + @"
+--" + boundaryStr + @"
+Content-Disposition: form-data; name=""uploadId""
+
+" + uploadId + @"
+--" + boundaryStr + @"
+Content-Disposition: form-data; name=""partSeq""
+
+1
+--" + boundaryStr + @"
+Content-Disposition: form-data; name=""file""; filename=""blob""
+Content-Type: application/octet-stream
+
+" + blobPath + @"
+--" + boundaryStr + @"--
+";
+ var result = WXHttpResponseBLL.WeiXinUploadResponse(shop, url, body, boundaryStr, referer);
+ return result;
+ }
+
+
+
+ public static string completeUploadPart(ShopLoginInfo shop, string completeJson, string prodId, int time1, int time2)
+ {
+ string url = "https://store.weixin.qq.com/shop-faas/mmecnodefiletransfer/filecos/completeUploadPart?token=&lang=zh_CN";
+ string referer = "https://store.weixin.qq.com/shop/goods/entry?productId=" + prodId +
+ "&isUpdateAuditFree=1&source=list_audit_free&continueEditInfo=" +
+ "{%22isEditingContinued%22:true,%22lastEditDraftTime%22:" + time1 + "," +
+ "%22listingTime%22:" + time2 + "}";
+ string body = completeJson; //{"name":"goods/10000466857488/2026-01-20/1768907711117/submit.json","uploadId":"176890774759894589c6096cab2210e0793688fb68b482b766a0387c8667d3280a36385109","etagList":["ade9671ce546efb4cb209f5aa7e5d597"],"partSeqList":[1]}
+ var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, body, referer);
+ return result;
+ }
+
+ ///
+ /// 商品列表
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static string scanProductPreview(ShopLoginInfo shop, string status = "5", int pageNum = 1, int pageSize = 20)
+ {
+ string url = "https://store.weixin.qq.com/shop-faas/mmchannelstradeproductcore/cgi/goods/scanProductPreview?token=&lang=zh_CN";
+ string referer = "https://store.weixin.qq.com/shop/goods/list?currentTab=PRODUCT_STATUS_ALL";
+ string body = @"{""pageSize"":" + pageSize + @",""productStatus"":[-1],""productSource"":""[1,16,32]"",""searchSource"":1,""useNew"":true,""pageNum"":" + pageNum +
+ @",""status"":[" + status + @"]}";
+ var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, body, referer);
+ return result;
+ }
+
+ ///
+ /// 添加售后地址
+ ///
+ public static string addAddress(ShopLoginInfo shop, string provinceName, string cityName, string countyName,
+ string detailInfo, string userName, string telNumber)
+ {
+ string url = "https://store.weixin.qq.com/shop-faas/mmchannelstradeexpress/address/addAddress?token=&lang=zh_CN";
+ string referer = "https://store.weixin.qq.com/shop/address/expressAddressMgmt";
+ string address = "{\"addressInfo\":{\"provinceName\":\"" + provinceName +
+ "\",\"cityName\":\"" + cityName + "\",\"countyName\":\"" + countyName +
+ "\",\"detailInfo\":\"" + detailInfo + "\",\"userName\":\"" + userName +
+ "\",\"telNumber\":\"" + telNumber + "\",\"location\":{}},\"defaultSend\":0,\"defaultRecv\":0}";
+
+ JObject obj = new JObject();
+ obj["data"] = address;
+ string body = JsonHelper.SerializeObject(obj);
+ var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, body, referer);
+ return result;
+ }
+
+ ///
+ /// 获取服务接口到期时间
+ ///
+ ///
+ ///
+ public static string GetApiServiceList(ShopLoginInfo shop)
+ {
+
+ string url = "https://store.weixin.qq.com/shop-faas/mmecnodeservicemarket/service/GetMyServiceList?offset=0&limit=20&status=2&token=&lang=zh_CN";
+ string referer = "https://store.weixin.qq.com/shop/servicemarket/myServices?status=2";
+ var result = WXHttpResponseBLL.WeiXinGetResponse(shop, url, referer);
+ return result;
+ }
+ }
+
+ public class AddPriceRule2
+ {
+ ///
+ /// 加价金额区间大于 不包含
+ ///
+ public decimal MoreThanPrice { get; set; }
+ ///
+ /// 加价金额区间小于 包含
+ ///
+ public decimal LessThanPrice { get; set; }
+ ///
+ /// 加价倍数
+ ///
+ public decimal AddPriceTimes { get; set; } = 2m;
+ ///
+ /// 额外加价金额
+ ///
+ public decimal AddMorePrice { get; set; } = 10m;
+ ///
+ /// 单买加价
+ ///
+ public decimal SinglePriceAdd { get; set; } = 1m;
+ ///
+ /// 先加后乘
+ ///
+ public bool AddMorePriceFirst { get; set; } = false;
+ ///
+ /// 上货库存量设置
+ ///
+ public int StockNum { get; set; } = 999;
+ public bool IsStepAddPrice { get; set; } = false;
+ ///
+ /// 运费倍率
+ ///
+ public decimal ShippingPriceTimes { get; set; } = 1.0m;
+ }
+
+ public class WXUploadRule2
+ {
+ public int PreSaleDays { get; set; } = 5;
+
+ public string FilterWords { get; set; } = "二手,亏本,冲量,白菜价,跳楼价,xx,xxx,最大,最小,低价,降价,成本,赔钱,甩卖,真丝,蚕丝,香云纱,羊绒,羊毛,羊羔绒,羊羔毛,羽绒,皮草";
+
+ public int SkuMinPrice { get; set; } = 10;
+
+ public int WaitSeconds { get; set; } = 10;
+
+ public bool OnlyHighestPriceSku { get; set; } = true;
+ public bool SameSpecSamePrice { get; set; } = true;
+ public bool SkipUploaded { get; set; } = true;
+ public bool UpDraft { get; set; } = false;
+ public bool IsPreSale { get; set; } = false;
+ }
+}
diff --git a/TEMUKJD/WXForms/ProductForms/WXProdPreSaleForm.resx b/TEMUKJD/WXForms/ProductForms/WXProdPreSaleForm.resx
new file mode 100644
index 0000000..519f029
--- /dev/null
+++ b/TEMUKJD/WXForms/ProductForms/WXProdPreSaleForm.resx
@@ -0,0 +1,222 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/TEMUKJD/WXForms/ProductForms/WXProductForm.Designer.cs b/TEMUKJD/WXForms/ProductForms/WXProductForm.Designer.cs
index d08431d..2f239f7 100644
--- a/TEMUKJD/WXForms/ProductForms/WXProductForm.Designer.cs
+++ b/TEMUKJD/WXForms/ProductForms/WXProductForm.Designer.cs
@@ -29,7 +29,7 @@
private void InitializeComponent()
{
System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("选品上传");
- System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("商品列表");
+ System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("商品预售");
System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("营销工具");
System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("商品管理", new System.Windows.Forms.TreeNode[] {
treeNode1,
@@ -127,8 +127,8 @@
this.tv.Name = "tv";
treeNode1.Name = "选品上传";
treeNode1.Text = "选品上传";
- treeNode2.Name = "商品列表";
- treeNode2.Text = "商品列表";
+ treeNode2.Name = "商品预售";
+ treeNode2.Text = "商品预售";
treeNode3.Name = "营销工具";
treeNode3.Text = "营销工具";
treeNode4.Name = "商品管理";
@@ -140,14 +140,14 @@
this.tv.TabIndex = 1;
this.tv.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.tv_AfterSelect);
//
- // PDDProductForm
+ // WXProductForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(934, 521);
this.Controls.Add(this.splitContainer1);
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
- this.Name = "PDDProductForm";
+ this.Name = "WXProductForm";
this.Text = "UploadForms";
this.Load += new System.EventHandler(this.ShopForm_Load);
this.panel1.ResumeLayout(false);
diff --git a/TEMUKJD/WXForms/ProductForms/WXProductForm.cs b/TEMUKJD/WXForms/ProductForms/WXProductForm.cs
index 97cd8f9..d38ef19 100644
--- a/TEMUKJD/WXForms/ProductForms/WXProductForm.cs
+++ b/TEMUKJD/WXForms/ProductForms/WXProductForm.cs
@@ -17,7 +17,7 @@ namespace TemuKJD.WXForms.ProductForms
{
public static WXProductForm instance;
public Lazy userSelectDbProductForm = new Lazy();
- //public Lazy productUpDownForm = new Lazy();
+ public Lazy wxProdPreSaleForm = new Lazy();
//public Lazy prodCouponForm = new Lazy();
public WXProductForm()
@@ -70,9 +70,9 @@ namespace TemuKJD.WXForms.ProductForms
case "选品上传":
SetForm(userSelectDbProductForm.Value);
break;
- //case "商品列表":
- // SetForm(productUpDownForm.Value);
- // break;
+ case "商品预售":
+ SetForm(wxProdPreSaleForm.Value);
+ break;
//case "营销工具":
// SetForm(prodCouponForm.Value);
// break;