1temu用户选择商品三个表及数据库id映射draftid分表操作 2拼多多读取商品显示总数 3temu可以修改单店备注
This commit is contained in:
1 parent
a61b8786d1
commit
4fd2a4d579
47 files changed
+2146
-1042
No files matched your search
+7
-7
@@ -65,7 +65,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.colExpires = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colShopAccount = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.conNotes = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colNotes = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colEdit = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colDelete = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
@@ -378,7 +378,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.colExpires,
|
||||
this.colShopId,
|
||||
this.colShopAccount,
|
||||
this.conNotes,
|
||||
this.colNotes,
|
||||
this.colEdit,
|
||||
this.colDelete});
|
||||
this.dgvCardCode.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
@@ -480,11 +480,11 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.colShopAccount.Name = "colShopAccount";
|
||||
this.colShopAccount.ReadOnly = true;
|
||||
//
|
||||
// conNotes
|
||||
// colNotes
|
||||
//
|
||||
this.conNotes.HeaderText = "备注";
|
||||
this.conNotes.Name = "conNotes";
|
||||
this.conNotes.ReadOnly = true;
|
||||
this.colNotes.HeaderText = "备注";
|
||||
this.colNotes.Name = "colNotes";
|
||||
this.colNotes.ReadOnly = true;
|
||||
//
|
||||
// colEdit
|
||||
//
|
||||
@@ -559,7 +559,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colExpires;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colShopId;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colShopAccount;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn conNotes;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colNotes;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colEdit;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colDelete;
|
||||
}
|
||||
|
||||
@@ -141,7 +141,7 @@
|
||||
<metadata name="colShopAccount.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="conNotes.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<metadata name="colNotes.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colEdit.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
|
||||
+65
-26
@@ -41,6 +41,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.txtReplaceText = new System.Windows.Forms.TextBox();
|
||||
this.btnSearchPrice3 = new DevComponents.DotNetBar.PanelEx();
|
||||
this.numSleep = new System.Windows.Forms.NumericUpDown();
|
||||
this.lblSleep = new System.Windows.Forms.Label();
|
||||
@@ -111,6 +112,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.label20 = new System.Windows.Forms.Label();
|
||||
this.label11 = new System.Windows.Forms.Label();
|
||||
this.chkLessThan = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.splitContainer3 = new System.Windows.Forms.SplitContainer();
|
||||
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
|
||||
this.pbShopLoading = new System.Windows.Forms.PictureBox();
|
||||
@@ -156,6 +158,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.colMsg = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.splitContainer4 = new System.Windows.Forms.SplitContainer();
|
||||
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
|
||||
this.chkForceRestoreTitle = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
@@ -223,6 +226,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.ucGroupBoxEx1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.ucGroupBoxEx1.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx1.Controls.Add(this.txtReplaceText);
|
||||
this.ucGroupBoxEx1.Controls.Add(this.btnSearchPrice3);
|
||||
this.ucGroupBoxEx1.Controls.Add(this.numSleep);
|
||||
this.ucGroupBoxEx1.Controls.Add(this.lblSleep);
|
||||
@@ -269,6 +273,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.ucGroupBoxEx1.Controls.Add(this.chkFilterSize);
|
||||
this.ucGroupBoxEx1.Controls.Add(this.chkSearchTime);
|
||||
this.ucGroupBoxEx1.Controls.Add(this.pnlRestoreSizeAndNumber);
|
||||
this.ucGroupBoxEx1.Controls.Add(this.label8);
|
||||
this.ucGroupBoxEx1.Location = new System.Drawing.Point(2, 2);
|
||||
this.ucGroupBoxEx1.Name = "ucGroupBoxEx1";
|
||||
this.ucGroupBoxEx1.Size = new System.Drawing.Size(1480, 140);
|
||||
@@ -276,6 +281,13 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.ucGroupBoxEx1.TabStop = false;
|
||||
this.ucGroupBoxEx1.Text = "参数设置";
|
||||
//
|
||||
// txtReplaceText
|
||||
//
|
||||
this.txtReplaceText.Location = new System.Drawing.Point(964, 36);
|
||||
this.txtReplaceText.Name = "txtReplaceText";
|
||||
this.txtReplaceText.Size = new System.Drawing.Size(227, 23);
|
||||
this.txtReplaceText.TabIndex = 1207;
|
||||
//
|
||||
// btnSearchPrice3
|
||||
//
|
||||
this.btnSearchPrice3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
@@ -412,7 +424,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.btnRestoreSizeAndNumber.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnRestoreSizeAndNumber.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnRestoreSizeAndNumber.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnRestoreSizeAndNumber.Location = new System.Drawing.Point(1092, 51);
|
||||
this.btnRestoreSizeAndNumber.Location = new System.Drawing.Point(1092, 62);
|
||||
this.btnRestoreSizeAndNumber.Name = "btnRestoreSizeAndNumber";
|
||||
this.btnRestoreSizeAndNumber.Size = new System.Drawing.Size(99, 23);
|
||||
this.btnRestoreSizeAndNumber.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
@@ -616,7 +628,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//
|
||||
// numJudgeWeight
|
||||
//
|
||||
this.numJudgeWeight.Location = new System.Drawing.Point(1038, 51);
|
||||
this.numJudgeWeight.Location = new System.Drawing.Point(1038, 62);
|
||||
this.numJudgeWeight.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
|
||||
this.numJudgeWeight.Maximum = new decimal(new int[] {
|
||||
10000,
|
||||
@@ -658,7 +670,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//
|
||||
// numJudgeLen
|
||||
//
|
||||
this.numJudgeLen.Location = new System.Drawing.Point(964, 51);
|
||||
this.numJudgeLen.Location = new System.Drawing.Point(964, 62);
|
||||
this.numJudgeLen.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
|
||||
this.numJudgeLen.Maximum = new decimal(new int[] {
|
||||
299,
|
||||
@@ -677,7 +689,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
// lblJudgeLen
|
||||
//
|
||||
this.lblJudgeLen.AutoSize = true;
|
||||
this.lblJudgeLen.Location = new System.Drawing.Point(940, 54);
|
||||
this.lblJudgeLen.Location = new System.Drawing.Point(940, 65);
|
||||
this.lblJudgeLen.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.lblJudgeLen.Name = "lblJudgeLen";
|
||||
this.lblJudgeLen.Size = new System.Drawing.Size(29, 17);
|
||||
@@ -753,7 +765,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.btnRestoreProdName.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnRestoreProdName.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnRestoreProdName.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnRestoreProdName.Location = new System.Drawing.Point(1092, 17);
|
||||
this.btnRestoreProdName.Location = new System.Drawing.Point(1092, 12);
|
||||
this.btnRestoreProdName.Name = "btnRestoreProdName";
|
||||
this.btnRestoreProdName.Size = new System.Drawing.Size(99, 23);
|
||||
this.btnRestoreProdName.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
@@ -993,7 +1005,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
// chkFilterTitle
|
||||
//
|
||||
this.chkFilterTitle.AutoSize = true;
|
||||
this.chkFilterTitle.Location = new System.Drawing.Point(927, 18);
|
||||
this.chkFilterTitle.Location = new System.Drawing.Point(927, 13);
|
||||
this.chkFilterTitle.Name = "chkFilterTitle";
|
||||
this.chkFilterTitle.Size = new System.Drawing.Size(171, 21);
|
||||
this.chkFilterTitle.TabIndex = 857;
|
||||
@@ -1004,7 +1016,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
// lblJudgeWeight
|
||||
//
|
||||
this.lblJudgeWeight.AutoSize = true;
|
||||
this.lblJudgeWeight.Location = new System.Drawing.Point(1002, 54);
|
||||
this.lblJudgeWeight.Location = new System.Drawing.Point(1002, 65);
|
||||
this.lblJudgeWeight.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.lblJudgeWeight.Name = "lblJudgeWeight";
|
||||
this.lblJudgeWeight.Size = new System.Drawing.Size(41, 17);
|
||||
@@ -1024,7 +1036,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
// chkFilterSize
|
||||
//
|
||||
this.chkFilterSize.AutoSize = true;
|
||||
this.chkFilterSize.Location = new System.Drawing.Point(927, 55);
|
||||
this.chkFilterSize.Location = new System.Drawing.Point(927, 66);
|
||||
this.chkFilterSize.Name = "chkFilterSize";
|
||||
this.chkFilterSize.Size = new System.Drawing.Size(15, 14);
|
||||
this.chkFilterSize.TabIndex = 1076;
|
||||
@@ -1061,15 +1073,15 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.pnlRestoreSizeAndNumber.Controls.Add(this.label20);
|
||||
this.pnlRestoreSizeAndNumber.Controls.Add(this.label11);
|
||||
this.pnlRestoreSizeAndNumber.Controls.Add(this.chkLessThan);
|
||||
this.pnlRestoreSizeAndNumber.Location = new System.Drawing.Point(920, 76);
|
||||
this.pnlRestoreSizeAndNumber.Location = new System.Drawing.Point(920, 85);
|
||||
this.pnlRestoreSizeAndNumber.Name = "pnlRestoreSizeAndNumber";
|
||||
this.pnlRestoreSizeAndNumber.Size = new System.Drawing.Size(278, 58);
|
||||
this.pnlRestoreSizeAndNumber.Size = new System.Drawing.Size(278, 52);
|
||||
this.pnlRestoreSizeAndNumber.TabIndex = 1160;
|
||||
//
|
||||
// numPieces
|
||||
//
|
||||
this.numPieces.Enabled = false;
|
||||
this.numPieces.Location = new System.Drawing.Point(125, 3);
|
||||
this.numPieces.Location = new System.Drawing.Point(125, 2);
|
||||
this.numPieces.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
|
||||
this.numPieces.Maximum = new decimal(new int[] {
|
||||
99999,
|
||||
@@ -1089,7 +1101,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
// label17
|
||||
//
|
||||
this.label17.AutoSize = true;
|
||||
this.label17.Location = new System.Drawing.Point(109, 6);
|
||||
this.label17.Location = new System.Drawing.Point(109, 5);
|
||||
this.label17.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label17.Name = "label17";
|
||||
this.label17.Size = new System.Drawing.Size(20, 17);
|
||||
@@ -1098,7 +1110,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//
|
||||
// numHeight2
|
||||
//
|
||||
this.numHeight2.Location = new System.Drawing.Point(231, 31);
|
||||
this.numHeight2.Location = new System.Drawing.Point(231, 27);
|
||||
this.numHeight2.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
|
||||
this.numHeight2.Maximum = new decimal(new int[] {
|
||||
299,
|
||||
@@ -1116,7 +1128,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//
|
||||
// numHeight1
|
||||
//
|
||||
this.numHeight1.Location = new System.Drawing.Point(197, 31);
|
||||
this.numHeight1.Location = new System.Drawing.Point(197, 27);
|
||||
this.numHeight1.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
|
||||
this.numHeight1.Maximum = new decimal(new int[] {
|
||||
299,
|
||||
@@ -1134,7 +1146,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//
|
||||
// numWidth1
|
||||
//
|
||||
this.numWidth1.Location = new System.Drawing.Point(108, 31);
|
||||
this.numWidth1.Location = new System.Drawing.Point(108, 27);
|
||||
this.numWidth1.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
|
||||
this.numWidth1.Maximum = new decimal(new int[] {
|
||||
299,
|
||||
@@ -1152,7 +1164,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//
|
||||
// numWidth2
|
||||
//
|
||||
this.numWidth2.Location = new System.Drawing.Point(142, 31);
|
||||
this.numWidth2.Location = new System.Drawing.Point(142, 27);
|
||||
this.numWidth2.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
|
||||
this.numWidth2.Maximum = new decimal(new int[] {
|
||||
299,
|
||||
@@ -1170,7 +1182,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//
|
||||
// numLen1
|
||||
//
|
||||
this.numLen1.Location = new System.Drawing.Point(19, 31);
|
||||
this.numLen1.Location = new System.Drawing.Point(19, 27);
|
||||
this.numLen1.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
|
||||
this.numLen1.Maximum = new decimal(new int[] {
|
||||
299,
|
||||
@@ -1188,7 +1200,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//
|
||||
// numWeight2
|
||||
//
|
||||
this.numWeight2.Location = new System.Drawing.Point(221, 3);
|
||||
this.numWeight2.Location = new System.Drawing.Point(221, 2);
|
||||
this.numWeight2.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
|
||||
this.numWeight2.Maximum = new decimal(new int[] {
|
||||
10000,
|
||||
@@ -1206,7 +1218,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//
|
||||
// numWeight1
|
||||
//
|
||||
this.numWeight1.Location = new System.Drawing.Point(172, 3);
|
||||
this.numWeight1.Location = new System.Drawing.Point(172, 2);
|
||||
this.numWeight1.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
|
||||
this.numWeight1.Maximum = new decimal(new int[] {
|
||||
99999,
|
||||
@@ -1224,7 +1236,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//
|
||||
// numLen2
|
||||
//
|
||||
this.numLen2.Location = new System.Drawing.Point(53, 31);
|
||||
this.numLen2.Location = new System.Drawing.Point(53, 27);
|
||||
this.numLen2.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
|
||||
this.numLen2.Maximum = new decimal(new int[] {
|
||||
299,
|
||||
@@ -1243,7 +1255,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
// label15
|
||||
//
|
||||
this.label15.AutoSize = true;
|
||||
this.label15.Location = new System.Drawing.Point(3, 34);
|
||||
this.label15.Location = new System.Drawing.Point(3, 30);
|
||||
this.label15.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label15.Name = "label15";
|
||||
this.label15.Size = new System.Drawing.Size(20, 17);
|
||||
@@ -1253,7 +1265,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
// label18
|
||||
//
|
||||
this.label18.AutoSize = true;
|
||||
this.label18.Location = new System.Drawing.Point(92, 34);
|
||||
this.label18.Location = new System.Drawing.Point(92, 30);
|
||||
this.label18.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label18.Name = "label18";
|
||||
this.label18.Size = new System.Drawing.Size(20, 17);
|
||||
@@ -1263,7 +1275,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
// label19
|
||||
//
|
||||
this.label19.AutoSize = true;
|
||||
this.label19.Location = new System.Drawing.Point(181, 34);
|
||||
this.label19.Location = new System.Drawing.Point(181, 30);
|
||||
this.label19.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label19.Name = "label19";
|
||||
this.label19.Size = new System.Drawing.Size(20, 17);
|
||||
@@ -1273,7 +1285,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
// label20
|
||||
//
|
||||
this.label20.AutoSize = true;
|
||||
this.label20.Location = new System.Drawing.Point(155, 6);
|
||||
this.label20.Location = new System.Drawing.Point(155, 5);
|
||||
this.label20.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label20.Name = "label20";
|
||||
this.label20.Size = new System.Drawing.Size(20, 17);
|
||||
@@ -1283,7 +1295,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
// label11
|
||||
//
|
||||
this.label11.AutoSize = true;
|
||||
this.label11.Location = new System.Drawing.Point(77, 6);
|
||||
this.label11.Location = new System.Drawing.Point(77, 5);
|
||||
this.label11.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new System.Drawing.Size(44, 17);
|
||||
@@ -1293,7 +1305,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
// chkLessThan
|
||||
//
|
||||
this.chkLessThan.AutoSize = true;
|
||||
this.chkLessThan.Location = new System.Drawing.Point(7, 4);
|
||||
this.chkLessThan.Location = new System.Drawing.Point(7, 3);
|
||||
this.chkLessThan.Name = "chkLessThan";
|
||||
this.chkLessThan.Size = new System.Drawing.Size(75, 21);
|
||||
this.chkLessThan.TabIndex = 1160;
|
||||
@@ -1301,6 +1313,16 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.chkLessThan.UseVisualStyleBackColor = true;
|
||||
this.chkLessThan.CheckedChanged += new System.EventHandler(this.chkLessThan_CheckedChanged);
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new System.Drawing.Point(924, 39);
|
||||
this.label8.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(44, 17);
|
||||
this.label8.TabIndex = 1208;
|
||||
this.label8.Text = "过滤词";
|
||||
//
|
||||
// splitContainer3
|
||||
//
|
||||
this.splitContainer3.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
@@ -1831,6 +1853,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//
|
||||
// splitContainer4.Panel2
|
||||
//
|
||||
this.splitContainer4.Panel2.Controls.Add(this.chkForceRestoreTitle);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.statusBar);
|
||||
this.splitContainer4.Size = new System.Drawing.Size(1484, 26);
|
||||
this.splitContainer4.SplitterDistance = 322;
|
||||
@@ -1850,6 +1873,18 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.ucSplitPage1.TotalPage = 1;
|
||||
this.ucSplitPage1.PageChange += new System.Action<object>(this.ucSplitPage1_PageChange);
|
||||
//
|
||||
// chkForceRestoreTitle
|
||||
//
|
||||
this.chkForceRestoreTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkForceRestoreTitle.AutoSize = true;
|
||||
this.chkForceRestoreTitle.Location = new System.Drawing.Point(1031, 0);
|
||||
this.chkForceRestoreTitle.Name = "chkForceRestoreTitle";
|
||||
this.chkForceRestoreTitle.Size = new System.Drawing.Size(123, 21);
|
||||
this.chkForceRestoreTitle.TabIndex = 1077;
|
||||
this.chkForceRestoreTitle.Text = "强制还原英文标题";
|
||||
this.chkForceRestoreTitle.UseVisualStyleBackColor = true;
|
||||
this.chkForceRestoreTitle.Visible = false;
|
||||
//
|
||||
// statusBar
|
||||
//
|
||||
this.statusBar.BackColor = System.Drawing.Color.White;
|
||||
@@ -1913,6 +1948,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvPriceCheck)).EndInit();
|
||||
this.splitContainer4.Panel1.ResumeLayout(false);
|
||||
this.splitContainer4.Panel2.ResumeLayout(false);
|
||||
this.splitContainer4.Panel2.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).EndInit();
|
||||
this.splitContainer4.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
@@ -2039,5 +2075,8 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
private System.Windows.Forms.Panel pnlRestoreSizeAndNumber;
|
||||
private DevComponents.DotNetBar.PanelEx btnSearchPrice3;
|
||||
private UserComponent.UcCheckBox chkLessThan;
|
||||
private System.Windows.Forms.TextBox txtReplaceText;
|
||||
private System.Windows.Forms.Label label8;
|
||||
private UserComponent.UcCheckBox chkForceRestoreTitle;
|
||||
}
|
||||
}
|
||||
@@ -74,6 +74,12 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//dgvShop.Columns["colSubSa"].Visible = false;
|
||||
//btnSetSubSa.Visible = false;
|
||||
}
|
||||
|
||||
if (BaseClass.SaLevel == 1 && ClientMode == EnumClientMode.Admin)
|
||||
{
|
||||
//chkForceRestoreTitle.Visible = true;
|
||||
}
|
||||
|
||||
if (ClientMode != EnumClientMode.Admin)
|
||||
{
|
||||
ucSplitPage1.Visible = false;
|
||||
@@ -1162,6 +1168,22 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
|
||||
}
|
||||
|
||||
private string editPriceProductNameAndEnNameBatchAdd(ShopLoginInfo shop, string productId)
|
||||
{
|
||||
string url = "https://agentseller.temu.com/lich-mms/audit/edit/task/product/batchAdd";
|
||||
string body = @"{""bizIdType"":1,""bizIds"":[" + productId + @"],""productEditItems"":[{""editItem"":1,""editAdvice"":""优化""},{""editItem"":2,""editAdvice"":""优化""}]}";
|
||||
string referer = "https://agentseller.temu.com/goods/list?productId=" + productId;
|
||||
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
|
||||
}
|
||||
|
||||
private string editPriceProductEnNameBatchAdd(ShopLoginInfo shop, string productId)
|
||||
{
|
||||
string url = "https://agentseller.temu.com/lich-mms/audit/edit/task/product/batchAdd";
|
||||
string body = @"{""bizIdType"":1,""bizIds"":[" + productId + @"],""productEditItems"":[{""editItem"":2,""editAdvice"":""优化""}]}";
|
||||
string referer = "https://agentseller.temu.com/goods/list?productId=" + productId;
|
||||
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
|
||||
}
|
||||
|
||||
private string editPriceProductName(ShopLoginInfo shop, string taskUid, string productId, string productNewName)
|
||||
{
|
||||
string url = "https://agentseller.temu.com/visage-agent-seller/product/edit/task/reply";
|
||||
@@ -1170,6 +1192,27 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
string referer = "https://agentseller.temu.com/goods/edit?from=platform&productId=" + productId + "&taskUid=" + taskUid;
|
||||
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
|
||||
}
|
||||
private string editPriceProductNameAndEnName(ShopLoginInfo shop, string taskUid, string productId, string productNewName)
|
||||
{
|
||||
string url = "https://agentseller.temu.com/visage-agent-seller/product/edit/task/reply";
|
||||
string body = "";
|
||||
body = @"{""productId"":" + productId + @",""taskUid"":""" + taskUid + @""",""taskVersion"":0,""refuseEdit"":false," +
|
||||
@"""productName"":""" + productNewName + @""",""productI18nReqs"":[{""productName"":""" + productNewName + @""",""language"":""en""}]}";
|
||||
|
||||
string referer = "https://agentseller.temu.com/goods/edit?from=platform&productId=" + productId + "&taskUid=" + taskUid;
|
||||
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
|
||||
}
|
||||
|
||||
private string editPriceProductEnName(ShopLoginInfo shop, string taskUid, string productId, string productNewName)
|
||||
{
|
||||
string url = "https://agentseller.temu.com/visage-agent-seller/product/edit/task/reply";
|
||||
string body = "";
|
||||
body = @"{""productId"":" + productId + @",""taskUid"":""" + taskUid + @""",""taskVersion"":0,""refuseEdit"":false," +
|
||||
@"""productI18nReqs"":[{""productName"":""" + productNewName + @""",""language"":""en""}]}";
|
||||
|
||||
string referer = "https://agentseller.temu.com/goods/edit?from=platform&productId=" + productId + "&taskUid=" + taskUid;
|
||||
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
|
||||
}
|
||||
|
||||
//申请修改 SKU分类和包装清单 体积与重量 商品名称
|
||||
//{"bizIdType":1,"bizIds":[8942170367],"productEditItems":[{"editItem":4,"editAdvice":"12345"},{"editItem":8,"editAdvice":"54321"},{"editItem":1,"editAdvice":"33333"}]}
|
||||
@@ -1270,7 +1313,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
}
|
||||
|
||||
var pName = price.productName;
|
||||
if (CheckRestoreTitleWords(pName))
|
||||
if (CheckRestoreTitleWords(pName) || chkForceRestoreTitle.Checked)
|
||||
{
|
||||
}
|
||||
else
|
||||
@@ -1283,16 +1326,44 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
continue;
|
||||
}
|
||||
|
||||
var html = editPriceProductNameBatchAdd(shop, price.productId.ParseToString());
|
||||
var html = "";
|
||||
var isRestoreEnName = false;
|
||||
//// 中文标题不为空大概率加了英文标题了,一并还原英文标题
|
||||
//if (ProductSelectForms.DbProductSelectListManageForm.CountChineseCharacters(pName) <= 0 )
|
||||
//{
|
||||
// isRestoreEnName = true;
|
||||
// //if (chkForceRestoreTitle.Checked) // 强制还原英文标题功能已移除
|
||||
// // html = editPriceProductEnNameBatchAdd(shop, price.productId.ParseToString());
|
||||
// //else
|
||||
// html = editPriceProductNameAndEnNameBatchAdd(shop, price.productId.ParseToString());
|
||||
//}
|
||||
if (!isRestoreEnName) // 商品上传时已禁止英文标题头尾词,此处默认只还原商品主标题
|
||||
{
|
||||
html = editPriceProductNameBatchAdd(shop, price.productId.ParseToString());
|
||||
}
|
||||
//{"success":true,"errorCode":1000000,"errorMsg":null,"result":{"handleFailedList":[{"failedBizId":4432690492,"failedReason":"This product has pending or in-progress modification tasks, cannot initiate again"}],"addFailedList":[{"failedBizId":4432690492,"failedReason":"This product has pending or in-progress modification tasks, cannot initiate again","failedReasonType":8}],"successBizId2TaskUidMap":{}}}
|
||||
string taskUid = "";
|
||||
if (html.Contains("This product has pending or in-progress modification tasks"))
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
var taskHtml = editPriceProductSizeAndNumberTaskQuery(shop, price.productId.ParseToString());
|
||||
taskUid = BaseRegex.GetStringJson(ref taskHtml, "taskUid");
|
||||
//if (string.IsNullOrEmpty(taskUid) || !taskHtml.Contains("\"productEditTaskItems\":[{\"editItem\":1,\"editAdvice\":\"优化\"}]"))
|
||||
if (string.IsNullOrEmpty(taskUid) || !taskHtml.Contains("\"productEditTaskItems\":[{\"editItem\":1,"))
|
||||
{
|
||||
foreach (var row in rows)
|
||||
row.Cells["colMsg"].Value = "已提交过修改任务";
|
||||
}));
|
||||
continue;
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
foreach (var row in rows)
|
||||
row.Cells["colMsg"].Value = "已提交过修改任务或商品有其他修改任务,请在后店铺台终止任务并稍候重试";
|
||||
}));
|
||||
return; //continue;
|
||||
}
|
||||
|
||||
//Invoke(new Action(() =>
|
||||
//{
|
||||
// foreach (var row in rows)
|
||||
// row.Cells["colMsg"].Value = "已提交过修改任务";
|
||||
//}));
|
||||
//continue;
|
||||
}
|
||||
if (!html.Contains("\"success\":true"))
|
||||
{
|
||||
@@ -1319,11 +1390,14 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
|
||||
try
|
||||
{
|
||||
JObject jObj = JObject.Parse(html);
|
||||
var item = jObj["result"]["successBizId2TaskUidMap"].LastOrDefault().LastOrDefault();
|
||||
if (string.IsNullOrEmpty(taskUid))
|
||||
{
|
||||
JObject jObj = JObject.Parse(html);
|
||||
taskUid = jObj["result"]["successBizId2TaskUidMap"].LastOrDefault().LastOrDefault().ParseToString();
|
||||
}
|
||||
|
||||
// 还原原始标题
|
||||
var newPName = RestoreProductName(pName);
|
||||
var newProdName = RestoreProductName(pName, txtReplaceText.Text.Trim());
|
||||
|
||||
// 测试修改标题最多字符数量
|
||||
//while (newPName.Length < 500)
|
||||
@@ -1331,7 +1405,15 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
// newPName += "长";
|
||||
//}
|
||||
|
||||
html = editPriceProductName(shop, item.ParseToString(), price.productId.ParseToString(), newPName);
|
||||
if (isRestoreEnName)
|
||||
{
|
||||
//if (chkForceRestoreTitle.Checked) // 强制还原英文标题功能已移除
|
||||
// html = editPriceProductEnName(shop, item.ParseToString(), price.productId.ParseToString(), newProdName);
|
||||
//else
|
||||
html = editPriceProductNameAndEnName(shop, taskUid, price.productId.ParseToString(), newProdName);
|
||||
}
|
||||
else
|
||||
html = editPriceProductName(shop, taskUid, price.productId.ParseToString(), newProdName);
|
||||
Thread.Sleep(Randomx.GetId(25, 75));
|
||||
commonSleep();
|
||||
if (html.Contains("\"success\":true"))
|
||||
@@ -1707,10 +1789,10 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
|
||||
bool CheckRestoreTitleWords(string filterProdName)
|
||||
{
|
||||
return filterProdName != RestoreProductName(filterProdName);
|
||||
return filterProdName != RestoreProductName(filterProdName, txtReplaceText.Text.Trim());
|
||||
}
|
||||
|
||||
public static string RestoreProductName(string pName)
|
||||
public static string RestoreProductName(string pName, string replaceTxt = "")
|
||||
{
|
||||
string checkChineseName = pName.Replace("适合不同的搭配风格", "").Replace("个", "").Replace("适合不同的搭配场景", "");
|
||||
bool containsChinese = Regex.IsMatch(checkChineseName, @"[\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]");
|
||||
@@ -1738,6 +1820,9 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
newPName = newPName.Replace("适合不同的搭配风格", "Suitable for " + headword + " different matching styles").Trim()
|
||||
.Replace("适合不同的搭配场景", "Suitable for " + headword + " different matching scenarios").Trim();
|
||||
}
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(replaceTxt))
|
||||
newPName = newPName.Replace(replaceTxt, "");
|
||||
return newPName;
|
||||
}
|
||||
|
||||
@@ -1805,7 +1890,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
foreach (var row in rows)
|
||||
row.Cells["colMsg"].Value = "已提交过修改任务或商品有其他修改任务";
|
||||
row.Cells["colMsg"].Value = "已提交过修改任务或商品有其他修改任务,请在后店铺台终止任务并稍候重试";
|
||||
}));
|
||||
return; //continue;
|
||||
}
|
||||
@@ -1856,7 +1941,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
foreach (var row in rows)
|
||||
row.Cells["colMsg"].Value = "已提交过修改任务";
|
||||
row.Cells["colMsg"].Value = "已提交过修改任务,请在后店铺台终止任务并稍候重试";
|
||||
}));
|
||||
return; // continue;
|
||||
}
|
||||
|
||||
+99
-86
@@ -29,11 +29,11 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle 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();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.panel5 = new System.Windows.Forms.Panel();
|
||||
@@ -57,17 +57,22 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
|
||||
this.pbLoading = new System.Windows.Forms.PictureBox();
|
||||
this.pnlAddProdRemaining = new System.Windows.Forms.Panel();
|
||||
this.lblShopId = new System.Windows.Forms.Label();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.pnlCancel = new DevComponents.DotNetBar.PanelEx();
|
||||
this.numAddRemaining = new System.Windows.Forms.NumericUpDown();
|
||||
this.btnRemainOK = new DevComponents.DotNetBar.PanelEx();
|
||||
this.lblAddProdRemaining = new System.Windows.Forms.Label();
|
||||
this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.chkAutoDrag = new System.Windows.Forms.CheckBox();
|
||||
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.colLoginName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colShopAccount = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.conNotes = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colNotes = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colEditNotes = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colMinus = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colProductRemaining = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colPlus = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -92,10 +97,6 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.colSubSa = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colEdit = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colDelete = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.chkAutoDrag = new System.Windows.Forms.CheckBox();
|
||||
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
this.lblShopId = new System.Windows.Forms.Label();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
@@ -413,6 +414,16 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.pnlAddProdRemaining.TabIndex = 7;
|
||||
this.pnlAddProdRemaining.Visible = false;
|
||||
//
|
||||
// lblShopId
|
||||
//
|
||||
this.lblShopId.AutoSize = true;
|
||||
this.lblShopId.Location = new System.Drawing.Point(20, 19);
|
||||
this.lblShopId.Name = "lblShopId";
|
||||
this.lblShopId.Size = new System.Drawing.Size(50, 17);
|
||||
this.lblShopId.TabIndex = 455;
|
||||
this.lblShopId.Text = "ShopId";
|
||||
this.lblShopId.Visible = false;
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
||||
@@ -497,26 +508,28 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//
|
||||
this.dgvShop.AllowUserToAddRows = false;
|
||||
this.dgvShop.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle6.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.dgvShop.AutoRowNumber = true;
|
||||
this.dgvShop.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
|
||||
this.dgvShop.BackgroundColor = System.Drawing.Color.White;
|
||||
this.dgvShop.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle7.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7;
|
||||
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.colLoginName,
|
||||
this.colShopId,
|
||||
this.colShopAccount,
|
||||
this.conNotes,
|
||||
this.colNotes,
|
||||
this.colEditNotes,
|
||||
this.colMinus,
|
||||
this.colProductRemaining,
|
||||
this.colPlus,
|
||||
@@ -552,6 +565,43 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick);
|
||||
this.dgvShop.CellMouseDown += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvShop_CellMouseDown);
|
||||
//
|
||||
// chkAutoDrag
|
||||
//
|
||||
this.chkAutoDrag.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.chkAutoDrag.AutoSize = true;
|
||||
this.chkAutoDrag.BackColor = System.Drawing.Color.White;
|
||||
this.chkAutoDrag.Location = new System.Drawing.Point(597, 0);
|
||||
this.chkAutoDrag.Name = "chkAutoDrag";
|
||||
this.chkAutoDrag.Size = new System.Drawing.Size(159, 21);
|
||||
this.chkAutoDrag.TabIndex = 3;
|
||||
this.chkAutoDrag.Text = "登录时自动滑动拼图验证";
|
||||
this.chkAutoDrag.UseVisualStyleBackColor = false;
|
||||
this.chkAutoDrag.Visible = false;
|
||||
//
|
||||
// ucSplitPage1
|
||||
//
|
||||
this.ucSplitPage1.CurrentPage = 1;
|
||||
this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.ucSplitPage1.IsShowPageSize = false;
|
||||
this.ucSplitPage1.Location = new System.Drawing.Point(911, 0);
|
||||
this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.ucSplitPage1.Name = "ucSplitPage1";
|
||||
this.ucSplitPage1.PageSize = 50;
|
||||
this.ucSplitPage1.Size = new System.Drawing.Size(362, 25);
|
||||
this.ucSplitPage1.TabIndex = 4;
|
||||
this.ucSplitPage1.TotalPage = 1;
|
||||
//
|
||||
// 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(1273, 25);
|
||||
this.statusBar.TabIndex = 1;
|
||||
//
|
||||
// colSelect
|
||||
//
|
||||
this.colSelect.FillWeight = 26F;
|
||||
@@ -581,16 +631,25 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.colShopAccount.Name = "colShopAccount";
|
||||
this.colShopAccount.ReadOnly = true;
|
||||
//
|
||||
// conNotes
|
||||
// colNotes
|
||||
//
|
||||
this.conNotes.HeaderText = "备注";
|
||||
this.conNotes.Name = "conNotes";
|
||||
this.conNotes.ReadOnly = true;
|
||||
this.colNotes.HeaderText = "备注";
|
||||
this.colNotes.Name = "colNotes";
|
||||
this.colNotes.ReadOnly = true;
|
||||
//
|
||||
// colEditNotes
|
||||
//
|
||||
this.colEditNotes.FillWeight = 25F;
|
||||
this.colEditNotes.HeaderText = "编辑备注";
|
||||
this.colEditNotes.Name = "colEditNotes";
|
||||
this.colEditNotes.ReadOnly = true;
|
||||
this.colEditNotes.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colEditNotes.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
//
|
||||
// colMinus
|
||||
//
|
||||
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.colMinus.DefaultCellStyle = dataGridViewCellStyle8;
|
||||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.colMinus.DefaultCellStyle = dataGridViewCellStyle3;
|
||||
this.colMinus.FillWeight = 15F;
|
||||
this.colMinus.HeaderText = "-";
|
||||
this.colMinus.Name = "colMinus";
|
||||
@@ -599,8 +658,8 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//
|
||||
// colProductRemaining
|
||||
//
|
||||
dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.colProductRemaining.DefaultCellStyle = dataGridViewCellStyle9;
|
||||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.colProductRemaining.DefaultCellStyle = dataGridViewCellStyle4;
|
||||
this.colProductRemaining.FillWeight = 30F;
|
||||
this.colProductRemaining.HeaderText = "选品限额";
|
||||
this.colProductRemaining.Name = "colProductRemaining";
|
||||
@@ -608,8 +667,8 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//
|
||||
// colPlus
|
||||
//
|
||||
dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.colPlus.DefaultCellStyle = dataGridViewCellStyle10;
|
||||
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.colPlus.DefaultCellStyle = dataGridViewCellStyle5;
|
||||
this.colPlus.FillWeight = 15F;
|
||||
this.colPlus.HeaderText = "+";
|
||||
this.colPlus.Name = "colPlus";
|
||||
@@ -793,53 +852,6 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.colDelete.ReadOnly = true;
|
||||
this.colDelete.Visible = false;
|
||||
//
|
||||
// chkAutoDrag
|
||||
//
|
||||
this.chkAutoDrag.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.chkAutoDrag.AutoSize = true;
|
||||
this.chkAutoDrag.BackColor = System.Drawing.Color.White;
|
||||
this.chkAutoDrag.Location = new System.Drawing.Point(597, 0);
|
||||
this.chkAutoDrag.Name = "chkAutoDrag";
|
||||
this.chkAutoDrag.Size = new System.Drawing.Size(159, 21);
|
||||
this.chkAutoDrag.TabIndex = 3;
|
||||
this.chkAutoDrag.Text = "登录时自动滑动拼图验证";
|
||||
this.chkAutoDrag.UseVisualStyleBackColor = false;
|
||||
this.chkAutoDrag.Visible = false;
|
||||
//
|
||||
// ucSplitPage1
|
||||
//
|
||||
this.ucSplitPage1.CurrentPage = 1;
|
||||
this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.ucSplitPage1.IsShowPageSize = false;
|
||||
this.ucSplitPage1.Location = new System.Drawing.Point(911, 0);
|
||||
this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.ucSplitPage1.Name = "ucSplitPage1";
|
||||
this.ucSplitPage1.PageSize = 50;
|
||||
this.ucSplitPage1.Size = new System.Drawing.Size(362, 25);
|
||||
this.ucSplitPage1.TabIndex = 4;
|
||||
this.ucSplitPage1.TotalPage = 1;
|
||||
//
|
||||
// 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(1273, 25);
|
||||
this.statusBar.TabIndex = 1;
|
||||
//
|
||||
// lblShopId
|
||||
//
|
||||
this.lblShopId.AutoSize = true;
|
||||
this.lblShopId.Location = new System.Drawing.Point(20, 19);
|
||||
this.lblShopId.Name = "lblShopId";
|
||||
this.lblShopId.Size = new System.Drawing.Size(50, 17);
|
||||
this.lblShopId.TabIndex = 455;
|
||||
this.lblShopId.Text = "ShopId";
|
||||
this.lblShopId.Visible = false;
|
||||
//
|
||||
// AdminShopListForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
@@ -902,11 +914,19 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.CheckBox chkShowDelete;
|
||||
private UserControls.ButtonEx btnSetSubSa;
|
||||
private System.Windows.Forms.Panel pnlAddProdRemaining;
|
||||
private System.Windows.Forms.Label lblAddProdRemaining;
|
||||
private System.Windows.Forms.NumericUpDown numAddRemaining;
|
||||
private System.Windows.Forms.Panel panel2;
|
||||
private DevComponents.DotNetBar.PanelEx btnRemainOK;
|
||||
private DevComponents.DotNetBar.PanelEx pnlCancel;
|
||||
private System.Windows.Forms.Label lblShopId;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colLoginName;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colShopId;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colShopAccount;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn conNotes;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colNotes;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colEditNotes;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colMinus;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colProductRemaining;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colPlus;
|
||||
@@ -931,12 +951,5 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colSubSa;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colEdit;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colDelete;
|
||||
private System.Windows.Forms.Panel pnlAddProdRemaining;
|
||||
private System.Windows.Forms.Label lblAddProdRemaining;
|
||||
private System.Windows.Forms.NumericUpDown numAddRemaining;
|
||||
private System.Windows.Forms.Panel panel2;
|
||||
private DevComponents.DotNetBar.PanelEx btnRemainOK;
|
||||
private DevComponents.DotNetBar.PanelEx pnlCancel;
|
||||
private System.Windows.Forms.Label lblShopId;
|
||||
}
|
||||
}
|
||||
@@ -48,6 +48,9 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.dgvShop.AddSelectorColumn("colSelect");
|
||||
this.dgvShop.AddMergeColumnHeader(new List<string>() { /*"colMinus",*/ "colProductRemaining", "colPlus" }, "选品限额");
|
||||
this.dgvShop.AddMergeColumn(new List<string>() { /*"colMinus",*/ "colProductRemaining", "colPlus" });
|
||||
this.dgvShop.AddMergeColumnHeader(new List<string>() { "colNotes", "colEditNotes" }, "备注");
|
||||
this.dgvShop.AddMergeColumn(new List<string>() { "colNotes", "colEditNotes" });
|
||||
this.dgvShop.Columns["colEditNotes"].Width = 30;
|
||||
this.dgvShop.Columns["colMinus"].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
|
||||
this.dgvShop.Columns["colPlus"].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
|
||||
|
||||
@@ -112,6 +115,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
shop.ShopId,
|
||||
shop.ShopAccount,
|
||||
shop.Notes,
|
||||
"编辑",
|
||||
"-",
|
||||
shop.AddProductRemaining,
|
||||
"+",
|
||||
@@ -211,8 +215,10 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
return;
|
||||
string headerText = dgvShop.Columns[e.ColumnIndex].HeaderText;
|
||||
string loginName = dgvShop.Rows[e.RowIndex].Cells["colLoginName"].Value.ParseToString();
|
||||
string accountId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToString();
|
||||
var shop = lstAdminShopInfo.FirstOrDefault(v => v.LoginName == loginName && v.ShopId == accountId);
|
||||
string accountId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToString();
|
||||
string userName = dgvShop.Rows[e.RowIndex].Cells["colUser"].Value.ParseToString();
|
||||
var shop = lstAdminShopInfo.FirstOrDefault(v => v.LoginName == loginName && v.ShopId == accountId && v.UserName == userName);
|
||||
|
||||
|
||||
switch (headerText)
|
||||
{
|
||||
@@ -291,9 +297,28 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
SearchShop(this.ucSplitPage1.CurrentPage);
|
||||
break;
|
||||
case "编辑":
|
||||
ShopAddEditForm editForm = new ShopAddEditForm(shop);
|
||||
editForm.SaveCompleteWithDescribe += EditForm_SaveCompleteWithDescribe;
|
||||
editForm.ShowDialog();
|
||||
{
|
||||
ShopAddEditForm editForm = new ShopAddEditForm(shop);
|
||||
editForm.txtNotes.ReadOnly = true;
|
||||
editForm.txtNotes.Enabled = false;
|
||||
editForm.SaveCompleteWithDescribe += EditForm_SaveCompleteWithDescribe;
|
||||
editForm.ShowDialog();
|
||||
}
|
||||
break;
|
||||
case "编辑备注":
|
||||
{
|
||||
ShopAddEditForm editForm = new ShopAddEditForm(shop);
|
||||
editForm.txtChatAccount.ReadOnly = true;
|
||||
editForm.txtChatAccount.Enabled = false;
|
||||
editForm.txtShopPassword.ReadOnly = true;
|
||||
editForm.txtShopPassword.Enabled = false;
|
||||
editForm.ShowDialog();
|
||||
if (editForm.HasChange)
|
||||
{
|
||||
ShopBLL.AdminMdyServerShop(shop, true);
|
||||
SearchShop(this.ucSplitPage1.CurrentPage);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case "登录":
|
||||
IsOperate = true;
|
||||
|
||||
@@ -129,7 +129,10 @@
|
||||
<metadata name="colShopAccount.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="conNotes.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<metadata name="colNotes.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colEditNotes.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colMinus.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
|
||||
@@ -353,17 +353,21 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
private string ProductQuery(ShopLoginInfo shop, string prodId)
|
||||
{
|
||||
string url = "https://seller.kuajingmaihuo.com/bg-visage-mms/product/query";
|
||||
url = "https://agentseller.temu.com/visage-agent-seller/product/query";
|
||||
string body = @"{""productId"":" + prodId + @",""productEditTaskUid"":""""}";
|
||||
string refere = "https://seller.kuajingmaihuo.com/goods/product-create/product-edit?from=productList&productId=" + prodId;
|
||||
return HttpResponseBLL.PostResponse(shop, url, body, refere);
|
||||
refere = "https://agentseller.temu.com/goods/edit?from=productList&productId=" + prodId;
|
||||
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
|
||||
}
|
||||
|
||||
private string SizeSpecQuery(ShopLoginInfo shop, string prodId, string sizeSpecId)
|
||||
{
|
||||
string url = "https://seller.kuajingmaihuo.com/bg-anniston-mms/sizespec/query";
|
||||
url = "https://agentseller.temu.com/anniston-agent-seller/sizespec/query";
|
||||
string body = @"{""businessId"":" + sizeSpecId + @",""reusable"":false}";
|
||||
string refere = "https://seller.kuajingmaihuo.com/goods/product-create/product-edit?from=productList&productId=" + prodId;
|
||||
return HttpResponseBLL.PostResponse(shop, url, body, refere);
|
||||
refere = "https://agentseller.temu.com/goods/edit?from=productList&productId=" + prodId;
|
||||
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user