1.随机地址功能优化

2.商品随机主图遍框实现裂变
This commit is contained in:
wule_5900x committed 2026-05-31 01:01:11 +08:00
1 parent 898a739b65
commit 3f6a91c164
10 files changed
+3523 -214

No files matched your search

+2 -2
View File
@@ -27,8 +27,8 @@ namespace AllBase
/// <summary>
/// 版本ID
/// </summary>
public static int VersionCount = 1121;
public static string MainPath = "29pdd";
public static int VersionCount = 1125;
public static string MainPath = "29wx";
//public static string MainPath = "29wx";
//public static string MainPath = "29pdd";
//public static string MainPath = "kuajingda";
@@ -37,7 +37,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
CheckBox chkSelectAll;
ChanceProductConfig chanceProductConfig;
public CancellationTokenSource cancellationTokenSource { get; set; } = null;
public ConcurrentList<ShopLoginInfo> lstAdminShopInfo { get; set; } = new ConcurrentList<ShopLoginInfo>();
public ConcurrentList<ShopLoginInfo> lstAdminPddShopInfo { get; set; } = new ConcurrentList<ShopLoginInfo>();
public ConcurrentList<ChanceProductResult> lstChanceProductResult { get; set; } = new ConcurrentList<ChanceProductResult>();
public List<ChanceCateInfo> lstChanceCateInfo { get; set; } = new List<ChanceCateInfo>();
/// <summary>
@@ -50,8 +50,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms
private void PDDGetChanceProd_Load(object sender, EventArgs e)
{
if (IsAuthorityUser)
btnShowMyCollect.Visible = true;
//if (IsAuthorityUser)
// btnShowMyCollect.Visible = true;
this.panel2.Location = new Point(45, 55);
this.panel2.Width = Math.Max(10, this.panel2.Parent.Width - 90);
@@ -188,7 +188,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
}
else
{
var list = lstAdminShopInfo.Where(s => s.LoginStatus == "登录成功").ToList();
var list = lstAdminPddShopInfo.Where(s => s.LoginStatus == "登录成功").ToList();
foreach (DataGridViewRow row in dgvShop.Rows)
{
if (list.Any(l => l.ShopId == row.Cells["colShopId"]?.Value?.ToString()))
@@ -223,14 +223,14 @@ namespace TemuKJD.PDDForms.ProductSelectForms
{
this.pbShopLoading.Visible = true;
this.dgvShop.Rows.Clear();
lstAdminShopInfo.Clear();
lstAdminPddShopInfo.Clear();
}));
}
else
{
this.pbShopLoading.Visible = true;
this.dgvShop.Rows.Clear();
lstAdminShopInfo.Clear();
lstAdminPddShopInfo.Clear();
}
if (cancellationTokenSource == null || cancellationTokenSource.IsCancellationRequested)
cancellationTokenSource = new CancellationTokenSource();
@@ -238,10 +238,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms
{
int pageCount;
var list = AdminGetServerShopLst(out pageCount, page);
lstAdminShopInfo.AddRange(list);
lstAdminPddShopInfo.AddRange(list);
this.ucSplitPage1.TotalPage = pageCount;
foreach (var shop in lstAdminShopInfo)
foreach (var shop in lstAdminPddShopInfo)
{
bool canUse = shop.LoginStatus2 == "国际版在线";
Invoke(new Action(() =>
@@ -332,7 +332,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
string loginName = dgvShop.Rows[e.RowIndex].Cells["colShopLoginName"].Value.ParseToString();
string accountId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToString();
ShopLoginInfo shop = null;
shop = lstAdminShopInfo.FirstOrDefault(s => s.LoginName == loginName && s.ShopId == accountId);
shop = lstAdminPddShopInfo.FirstOrDefault(s => s.LoginName == loginName && s.ShopId == accountId);
switch (headerText)
{
@@ -784,7 +784,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
{
try
{
var shopList = lstAdminShopInfo.Where(s => shopIds.Contains(s.ShopId) && s.LoginStatus == "登录成功").ToList();
var shopList = lstAdminPddShopInfo.Where(s => shopIds.Contains(s.ShopId) && s.LoginStatus == "登录成功").ToList();
if (shopList.Count == 0)
{
Invoke(new Action(() =>
@@ -1143,8 +1143,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms
private void btnGetMyCollect_Click(object sender, EventArgs e)
{
WXUserCollectAuthProdListForm userCollectAuthProdListForm = new WXUserCollectAuthProdListForm();
userCollectAuthProdListForm.ShowDialog();
//WXUserCollectAuthProdListForm userCollectAuthProdListForm = new WXUserCollectAuthProdListForm();
//userCollectAuthProdListForm.ShowDialog();
}
}
+84 -72
View File
@@ -30,9 +30,9 @@ namespace TemuKJD.WXForms.AdminForms
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
this.splitContainer5 = new System.Windows.Forms.SplitContainer();
this.chkCommissionUpdate = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.chkEcWaybill = new TemuKJD.UserComponent.UcCheckBox(this.components);
@@ -82,7 +82,6 @@ namespace TemuKJD.WXForms.AdminForms
this.btnTopUpCancel = new DevComponents.DotNetBar.PanelEx();
this.btnTopUpOK = new DevComponents.DotNetBar.PanelEx();
this.dgvUser = new TemuKJD.UserComponent.DataGridViewEx();
this.btnExportShopErp = new DevComponents.DotNetBar.PanelEx();
this.UserIdColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.UserNickNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.mobileColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -99,6 +98,8 @@ namespace TemuKJD.WXForms.AdminForms
this.colAddShop = new System.Windows.Forms.DataGridViewLinkColumn();
this.editColumn = new System.Windows.Forms.DataGridViewLinkColumn();
this.deleteColumn = new System.Windows.Forms.DataGridViewLinkColumn();
this.btnExportShopErp = new DevComponents.DotNetBar.PanelEx();
this.chkProdFission = new TemuKJD.UserComponent.UcCheckBox(this.components);
((System.ComponentModel.ISupportInitialize)(this.splitContainer5)).BeginInit();
this.splitContainer5.Panel1.SuspendLayout();
this.splitContainer5.Panel2.SuspendLayout();
@@ -124,6 +125,7 @@ namespace TemuKJD.WXForms.AdminForms
// splitContainer5.Panel1
//
this.splitContainer5.Panel1.BackColor = System.Drawing.Color.WhiteSmoke;
this.splitContainer5.Panel1.Controls.Add(this.chkProdFission);
this.splitContainer5.Panel1.Controls.Add(this.chkCommissionUpdate);
this.splitContainer5.Panel1.Controls.Add(this.chkEcWaybill);
this.splitContainer5.Panel1.Controls.Add(this.chkHot);
@@ -175,7 +177,7 @@ namespace TemuKJD.WXForms.AdminForms
//
// chkCommissionUpdate
//
this.chkCommissionUpdate.Location = new System.Drawing.Point(192, 415);
this.chkCommissionUpdate.Location = new System.Drawing.Point(192, 391);
this.chkCommissionUpdate.Name = "chkCommissionUpdate";
this.chkCommissionUpdate.Size = new System.Drawing.Size(68, 21);
this.chkCommissionUpdate.TabIndex = 816;
@@ -184,7 +186,7 @@ namespace TemuKJD.WXForms.AdminForms
//
// chkEcWaybill
//
this.chkEcWaybill.Location = new System.Drawing.Point(112, 415);
this.chkEcWaybill.Location = new System.Drawing.Point(112, 391);
this.chkEcWaybill.Name = "chkEcWaybill";
this.chkEcWaybill.Size = new System.Drawing.Size(68, 21);
this.chkEcWaybill.TabIndex = 815;
@@ -193,7 +195,7 @@ namespace TemuKJD.WXForms.AdminForms
//
// chkHot
//
this.chkHot.Location = new System.Drawing.Point(192, 394);
this.chkHot.Location = new System.Drawing.Point(192, 370);
this.chkHot.Name = "chkHot";
this.chkHot.Size = new System.Drawing.Size(68, 21);
this.chkHot.TabIndex = 814;
@@ -202,7 +204,7 @@ namespace TemuKJD.WXForms.AdminForms
//
// chkShopOptimize
//
this.chkShopOptimize.Location = new System.Drawing.Point(112, 394);
this.chkShopOptimize.Location = new System.Drawing.Point(112, 370);
this.chkShopOptimize.Name = "chkShopOptimize";
this.chkShopOptimize.Size = new System.Drawing.Size(68, 21);
this.chkShopOptimize.TabIndex = 813;
@@ -211,16 +213,16 @@ namespace TemuKJD.WXForms.AdminForms
//
// chkChanceProdCollect
//
this.chkChanceProdCollect.Location = new System.Drawing.Point(192, 436);
this.chkChanceProdCollect.Location = new System.Drawing.Point(192, 412);
this.chkChanceProdCollect.Name = "chkChanceProdCollect";
this.chkChanceProdCollect.Size = new System.Drawing.Size(96, 21);
this.chkChanceProdCollect.Size = new System.Drawing.Size(68, 21);
this.chkChanceProdCollect.TabIndex = 812;
this.chkChanceProdCollect.Text = "机会商品采集";
this.chkChanceProdCollect.Text = "商品采集";
this.chkChanceProdCollect.UseVisualStyleBackColor = true;
//
// chkShopPoints
//
this.chkShopPoints.Location = new System.Drawing.Point(112, 436);
this.chkShopPoints.Location = new System.Drawing.Point(112, 413);
this.chkShopPoints.Name = "chkShopPoints";
this.chkShopPoints.Size = new System.Drawing.Size(68, 21);
this.chkShopPoints.TabIndex = 811;
@@ -229,7 +231,7 @@ namespace TemuKJD.WXForms.AdminForms
//
// chkWXShowProdGetFromType
//
this.chkWXShowProdGetFromType.Location = new System.Drawing.Point(192, 373);
this.chkWXShowProdGetFromType.Location = new System.Drawing.Point(192, 349);
this.chkWXShowProdGetFromType.Name = "chkWXShowProdGetFromType";
this.chkWXShowProdGetFromType.Size = new System.Drawing.Size(68, 21);
this.chkWXShowProdGetFromType.TabIndex = 810;
@@ -240,7 +242,7 @@ namespace TemuKJD.WXForms.AdminForms
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label7.Location = new System.Drawing.Point(55, 373);
this.label7.Location = new System.Drawing.Point(55, 349);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(51, 20);
this.label7.TabIndex = 809;
@@ -248,7 +250,7 @@ namespace TemuKJD.WXForms.AdminForms
//
// chkWXComplateProd
//
this.chkWXComplateProd.Location = new System.Drawing.Point(112, 373);
this.chkWXComplateProd.Location = new System.Drawing.Point(112, 349);
this.chkWXComplateProd.Name = "chkWXComplateProd";
this.chkWXComplateProd.Size = new System.Drawing.Size(68, 21);
this.chkWXComplateProd.TabIndex = 808;
@@ -262,7 +264,7 @@ namespace TemuKJD.WXForms.AdminForms
"普通用户",
"一级超管",
"二级超管"});
this.cmbSaLevel.Location = new System.Drawing.Point(112, 336);
this.cmbSaLevel.Location = new System.Drawing.Point(112, 318);
this.cmbSaLevel.Name = "cmbSaLevel";
this.cmbSaLevel.Size = new System.Drawing.Size(148, 25);
this.cmbSaLevel.TabIndex = 48;
@@ -272,7 +274,7 @@ namespace TemuKJD.WXForms.AdminForms
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label6.Location = new System.Drawing.Point(27, 338);
this.label6.Location = new System.Drawing.Point(27, 320);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(79, 20);
this.label6.TabIndex = 47;
@@ -336,7 +338,7 @@ namespace TemuKJD.WXForms.AdminForms
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.Location = new System.Drawing.Point(55, 302);
this.label3.Location = new System.Drawing.Point(55, 287);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(51, 20);
this.label3.TabIndex = 40;
@@ -344,7 +346,7 @@ namespace TemuKJD.WXForms.AdminForms
//
// txtCompany
//
this.txtCompany.Location = new System.Drawing.Point(112, 301);
this.txtCompany.Location = new System.Drawing.Point(112, 286);
this.txtCompany.Name = "txtCompany";
this.txtCompany.Size = new System.Drawing.Size(148, 23);
this.txtCompany.TabIndex = 39;
@@ -364,7 +366,7 @@ namespace TemuKJD.WXForms.AdminForms
//
this.label1.AutoSize = true;
this.label1.ForeColor = System.Drawing.SystemColors.ButtonShadow;
this.label1.Location = new System.Drawing.Point(56, 498);
this.label1.Location = new System.Drawing.Point(56, 505);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(212, 17);
this.label1.TabIndex = 37;
@@ -393,7 +395,7 @@ namespace TemuKJD.WXForms.AdminForms
this.btnCancel.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCancel.ForeColor = System.Drawing.Color.White;
this.btnCancel.Location = new System.Drawing.Point(59, 460);
this.btnCancel.Location = new System.Drawing.Point(59, 467);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(86, 25);
this.btnCancel.TabIndex = 35;
@@ -409,7 +411,7 @@ namespace TemuKJD.WXForms.AdminForms
this.btnOpUser.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnOpUser.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOpUser.ForeColor = System.Drawing.Color.White;
this.btnOpUser.Location = new System.Drawing.Point(174, 460);
this.btnOpUser.Location = new System.Drawing.Point(174, 467);
this.btnOpUser.Name = "btnOpUser";
this.btnOpUser.Size = new System.Drawing.Size(86, 25);
this.btnOpUser.TabIndex = 34;
@@ -421,7 +423,7 @@ namespace TemuKJD.WXForms.AdminForms
//
this.label30.AutoSize = true;
this.label30.ForeColor = System.Drawing.SystemColors.ButtonShadow;
this.label30.Location = new System.Drawing.Point(282, 162);
this.label30.Location = new System.Drawing.Point(282, 159);
this.label30.Name = "label30";
this.label30.Size = new System.Drawing.Size(56, 17);
this.label30.TabIndex = 33;
@@ -431,7 +433,7 @@ namespace TemuKJD.WXForms.AdminForms
//
this.label31.AutoSize = true;
this.label31.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
this.label31.Location = new System.Drawing.Point(266, 232);
this.label31.Location = new System.Drawing.Point(266, 223);
this.label31.Name = "label31";
this.label31.Size = new System.Drawing.Size(13, 17);
this.label31.TabIndex = 32;
@@ -439,7 +441,7 @@ namespace TemuKJD.WXForms.AdminForms
//
// txtRePass
//
this.txtRePass.Location = new System.Drawing.Point(112, 229);
this.txtRePass.Location = new System.Drawing.Point(112, 220);
this.txtRePass.Name = "txtRePass";
this.txtRePass.PasswordChar = '*';
this.txtRePass.Size = new System.Drawing.Size(148, 23);
@@ -449,7 +451,7 @@ namespace TemuKJD.WXForms.AdminForms
//
this.label32.AutoSize = true;
this.label32.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label32.Location = new System.Drawing.Point(27, 230);
this.label32.Location = new System.Drawing.Point(27, 221);
this.label32.Name = "label32";
this.label32.Size = new System.Drawing.Size(79, 20);
this.label32.TabIndex = 31;
@@ -459,7 +461,7 @@ namespace TemuKJD.WXForms.AdminForms
//
this.label33.AutoSize = true;
this.label33.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
this.label33.Location = new System.Drawing.Point(266, 268);
this.label33.Location = new System.Drawing.Point(266, 256);
this.label33.Name = "label33";
this.label33.Size = new System.Drawing.Size(13, 17);
this.label33.TabIndex = 30;
@@ -469,7 +471,7 @@ namespace TemuKJD.WXForms.AdminForms
//
this.label34.AutoSize = true;
this.label34.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
this.label34.Location = new System.Drawing.Point(266, 197);
this.label34.Location = new System.Drawing.Point(266, 191);
this.label34.Name = "label34";
this.label34.Size = new System.Drawing.Size(13, 17);
this.label34.TabIndex = 29;
@@ -479,7 +481,7 @@ namespace TemuKJD.WXForms.AdminForms
//
this.label35.AutoSize = true;
this.label35.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
this.label35.Location = new System.Drawing.Point(266, 162);
this.label35.Location = new System.Drawing.Point(266, 159);
this.label35.Name = "label35";
this.label35.Size = new System.Drawing.Size(13, 17);
this.label35.TabIndex = 28;
@@ -504,7 +506,7 @@ namespace TemuKJD.WXForms.AdminForms
"上货",
"数据",
"登录"});
this.cmbGroup.Location = new System.Drawing.Point(112, 264);
this.cmbGroup.Location = new System.Drawing.Point(112, 252);
this.cmbGroup.Name = "cmbGroup";
this.cmbGroup.Size = new System.Drawing.Size(148, 25);
this.cmbGroup.TabIndex = 26;
@@ -514,7 +516,7 @@ namespace TemuKJD.WXForms.AdminForms
//
this.label37.AutoSize = true;
this.label37.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label37.Location = new System.Drawing.Point(55, 266);
this.label37.Location = new System.Drawing.Point(55, 254);
this.label37.Name = "label37";
this.label37.Size = new System.Drawing.Size(51, 20);
this.label37.TabIndex = 25;
@@ -522,7 +524,7 @@ namespace TemuKJD.WXForms.AdminForms
//
// txtPassword
//
this.txtPassword.Location = new System.Drawing.Point(112, 194);
this.txtPassword.Location = new System.Drawing.Point(112, 188);
this.txtPassword.Name = "txtPassword";
this.txtPassword.PasswordChar = '*';
this.txtPassword.Size = new System.Drawing.Size(148, 23);
@@ -532,7 +534,7 @@ namespace TemuKJD.WXForms.AdminForms
//
this.label38.AutoSize = true;
this.label38.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label38.Location = new System.Drawing.Point(55, 195);
this.label38.Location = new System.Drawing.Point(55, 189);
this.label38.Name = "label38";
this.label38.Size = new System.Drawing.Size(51, 20);
this.label38.TabIndex = 22;
@@ -540,7 +542,7 @@ namespace TemuKJD.WXForms.AdminForms
//
// txtMobile
//
this.txtMobile.Location = new System.Drawing.Point(112, 159);
this.txtMobile.Location = new System.Drawing.Point(112, 156);
this.txtMobile.Name = "txtMobile";
this.txtMobile.Size = new System.Drawing.Size(148, 23);
this.txtMobile.TabIndex = 21;
@@ -549,7 +551,7 @@ namespace TemuKJD.WXForms.AdminForms
//
this.label39.AutoSize = true;
this.label39.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label39.Location = new System.Drawing.Point(41, 160);
this.label39.Location = new System.Drawing.Point(41, 157);
this.label39.Name = "label39";
this.label39.Size = new System.Drawing.Size(65, 20);
this.label39.TabIndex = 20;
@@ -703,20 +705,20 @@ namespace TemuKJD.WXForms.AdminForms
//
this.dgvUser.AllowUserToAddRows = false;
this.dgvUser.AllowUserToDeleteRows = false;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
this.dgvUser.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
this.dgvUser.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4;
this.dgvUser.AutoRowNumber = true;
this.dgvUser.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.dgvUser.BackgroundColor = System.Drawing.Color.White;
this.dgvUser.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.dgvUser.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvUser.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
this.dgvUser.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvUser.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.UserIdColumn,
@@ -746,31 +748,6 @@ namespace TemuKJD.WXForms.AdminForms
this.dgvUser.TabIndex = 1;
this.dgvUser.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvUser_CellContentClick);
//
// btnExportShopErp
//
this.btnExportShopErp.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnExportShopErp.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnExportShopErp.DisabledBackColor = System.Drawing.Color.Empty;
this.btnExportShopErp.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnExportShopErp.Location = new System.Drawing.Point(0, 1);
this.btnExportShopErp.Name = "btnExportShopErp";
this.btnExportShopErp.Size = new System.Drawing.Size(140, 25);
this.btnExportShopErp.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnExportShopErp.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnExportShopErp.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnExportShopErp.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnExportShopErp.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnExportShopErp.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnExportShopErp.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnExportShopErp.Style.GradientAngle = 90;
this.btnExportShopErp.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnExportShopErp.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnExportShopErp.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnExportShopErp.TabIndex = 439;
this.btnExportShopErp.Text = "导出用户到后台系统";
this.btnExportShopErp.Visible = false;
this.btnExportShopErp.Click += new System.EventHandler(this.btnExportShopErp_Click);
//
// UserIdColumn
//
this.UserIdColumn.HeaderText = "id";
@@ -851,8 +828,8 @@ namespace TemuKJD.WXForms.AdminForms
//
// colPlus
//
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.colPlus.DefaultCellStyle = dataGridViewCellStyle3;
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.colPlus.DefaultCellStyle = dataGridViewCellStyle6;
this.colPlus.FillWeight = 18F;
this.colPlus.HeaderText = "+";
this.colPlus.Name = "colPlus";
@@ -883,6 +860,40 @@ namespace TemuKJD.WXForms.AdminForms
this.deleteColumn.Name = "deleteColumn";
this.deleteColumn.ReadOnly = true;
//
// btnExportShopErp
//
this.btnExportShopErp.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnExportShopErp.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnExportShopErp.DisabledBackColor = System.Drawing.Color.Empty;
this.btnExportShopErp.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnExportShopErp.Location = new System.Drawing.Point(0, 1);
this.btnExportShopErp.Name = "btnExportShopErp";
this.btnExportShopErp.Size = new System.Drawing.Size(140, 25);
this.btnExportShopErp.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnExportShopErp.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnExportShopErp.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnExportShopErp.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnExportShopErp.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnExportShopErp.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnExportShopErp.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnExportShopErp.Style.GradientAngle = 90;
this.btnExportShopErp.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnExportShopErp.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnExportShopErp.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnExportShopErp.TabIndex = 439;
this.btnExportShopErp.Text = "导出用户到后台系统";
this.btnExportShopErp.Visible = false;
this.btnExportShopErp.Click += new System.EventHandler(this.btnExportShopErp_Click);
//
// chkProdFission
//
this.chkProdFission.Location = new System.Drawing.Point(112, 435);
this.chkProdFission.Name = "chkProdFission";
this.chkProdFission.Size = new System.Drawing.Size(68, 21);
this.chkProdFission.TabIndex = 817;
this.chkProdFission.Text = "商品裂变";
this.chkProdFission.UseVisualStyleBackColor = true;
//
// WXAdminAccountForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
@@ -981,5 +992,6 @@ namespace TemuKJD.WXForms.AdminForms
private System.Windows.Forms.DataGridViewLinkColumn colAddShop;
private System.Windows.Forms.DataGridViewLinkColumn editColumn;
private System.Windows.Forms.DataGridViewLinkColumn deleteColumn;
private UserComponent.UcCheckBox chkProdFission;
}
}
@@ -82,17 +82,19 @@ namespace TemuKJD.WXForms.AdminForms
if (chkWXShowProdGetFromType.Checked)
authority += "货源选择,";
if (chkChanceProdCollect.Checked)
authority += "机会商品采集,";
authority += "商品采集,";
if (chkHot.Checked)
authority += "爆款数据,";
if (chkShopOptimize.Checked)
authority += "评分考核,";
if (chkEcWaybill.Checked)
authority += chkEcWaybill.Text + ",";
authority += chkEcWaybill.Text + ","; // 在线寄件
if (chkCommissionUpdate.Checked)
authority += chkCommissionUpdate.Text + ",";
authority += chkCommissionUpdate.Text + ","; // 佣金上货
if (chkShopPoints.Checked)
authority += "充值用户,";
authority += chkShopPoints.Text + ","; // 充值用户
if (chkProdFission.Checked)
authority += chkProdFission.Text + ","; // 商品裂变
data.Append("&authority=" + authority.Trim(','));
string url = BaseClass.BuildObjString("user/add_user");
@@ -209,6 +211,7 @@ namespace TemuKJD.WXForms.AdminForms
chkCommissionUpdate.Checked = false;
chkHot.Checked = false;
chkShopPoints.Checked = false;
chkProdFission.Checked = false;
}
private void btnRefresh_Click(object sender, EventArgs e)
@@ -243,6 +246,7 @@ namespace TemuKJD.WXForms.AdminForms
cmbSaLevel.Text = saLevelName;
chkWXComplateProd.Checked = authority.Contains(chkWXComplateProd.Text);
chkShopPoints.Checked = authority.Contains(chkShopPoints.Text);
chkProdFission.Checked = authority.Contains(chkProdFission.Text);
chkChanceProdCollect.Checked = authority.Contains(chkChanceProdCollect.Text);
chkShopOptimize.Checked = authority.Contains(chkShopOptimize.Text);
chkEcWaybill.Checked = authority.Contains(chkEcWaybill.Text);
File diff suppressed because it is too large. Load diff
@@ -108,6 +108,22 @@ namespace TemuKJD.WXForms.ProductForms
this.label27 = new System.Windows.Forms.Label();
this.chkCommission = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.btnLoginAssistant = new DevComponents.DotNetBar.PanelEx();
this.商品裂变 = new System.Windows.Forms.TabPage();
this.txtDetailBorderImgCount = new System.Windows.Forms.TextBox();
this.label35 = new System.Windows.Forms.Label();
this.label36 = new System.Windows.Forms.Label();
this.txtMainBorderImgCount = new System.Windows.Forms.TextBox();
this.label34 = new System.Windows.Forms.Label();
this.label33 = new System.Windows.Forms.Label();
this.label32 = new System.Windows.Forms.Label();
this.txtAiImgCount = new System.Windows.Forms.TextBox();
this.chkAiImage = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.chkRandomDetailImgOrder = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.chkRandomMainImgOrder = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.lblFissionTitleCount = new System.Windows.Forms.Label();
this.chkFissionGoodsName = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.chkRandomImgBorder = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.txtFissionTitle = new System.Windows.Forms.TextBox();
this.ucGroupBoxEx4 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
this.cmbHot = new System.Windows.Forms.ComboBox();
this.btnProdDb = new DevComponents.DotNetBar.PanelEx();
@@ -221,6 +237,7 @@ namespace TemuKJD.WXForms.ProductForms
this.ucTabControlMetro1.SuspendLayout();
this.上传参数.SuspendLayout();
this.佣金上货.SuspendLayout();
this.商品裂变.SuspendLayout();
this.ucGroupBoxEx4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pbSelectProd)).BeginInit();
this.ucGroupBoxEx1.SuspendLayout();
@@ -688,6 +705,7 @@ namespace TemuKJD.WXForms.ProductForms
this.ucTabControlMetro1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(157)))));
this.ucTabControlMetro1.Controls.Add(this.上传参数);
this.ucTabControlMetro1.Controls.Add(this.佣金上货);
this.ucTabControlMetro1.Controls.Add(this.商品裂变);
this.ucTabControlMetro1.ItemSize = new System.Drawing.Size(72, 24);
this.ucTabControlMetro1.Location = new System.Drawing.Point(421, 11);
this.ucTabControlMetro1.Name = "ucTabControlMetro1";
@@ -1191,6 +1209,192 @@ namespace TemuKJD.WXForms.ProductForms
this.btnLoginAssistant.Text = "佣金登录";
this.btnLoginAssistant.Click += new System.EventHandler(this.btnLoginAssistant_Click);
//
// 商品裂变
//
this.商品裂变.Controls.Add(this.txtDetailBorderImgCount);
this.商品裂变.Controls.Add(this.label35);
this.商品裂变.Controls.Add(this.label36);
this.商品裂变.Controls.Add(this.txtMainBorderImgCount);
this.商品裂变.Controls.Add(this.label34);
this.商品裂变.Controls.Add(this.label33);
this.商品裂变.Controls.Add(this.label32);
this.商品裂变.Controls.Add(this.txtAiImgCount);
this.商品裂变.Controls.Add(this.chkAiImage);
this.商品裂变.Controls.Add(this.chkRandomDetailImgOrder);
this.商品裂变.Controls.Add(this.chkRandomMainImgOrder);
this.商品裂变.Controls.Add(this.lblFissionTitleCount);
this.商品裂变.Controls.Add(this.chkFissionGoodsName);
this.商品裂变.Controls.Add(this.chkRandomImgBorder);
this.商品裂变.Controls.Add(this.txtFissionTitle);
this.商品裂变.Location = new System.Drawing.Point(4, 28);
this.商品裂变.Name = "商品裂变";
this.商品裂变.Padding = new System.Windows.Forms.Padding(3);
this.商品裂变.Size = new System.Drawing.Size(531, 118);
this.商品裂变.TabIndex = 3;
this.商品裂变.Text = "商品裂变";
this.商品裂变.UseVisualStyleBackColor = true;
//
// txtDetailBorderImgCount
//
this.txtDetailBorderImgCount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.txtDetailBorderImgCount.Location = new System.Drawing.Point(228, 90);
this.txtDetailBorderImgCount.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtDetailBorderImgCount.Name = "txtDetailBorderImgCount";
this.txtDetailBorderImgCount.Size = new System.Drawing.Size(24, 23);
this.txtDetailBorderImgCount.TabIndex = 902;
this.txtDetailBorderImgCount.Text = "0";
//
// label35
//
this.label35.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label35.AutoSize = true;
this.label35.Location = new System.Drawing.Point(186, 93);
this.label35.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label35.Name = "label35";
this.label35.Size = new System.Drawing.Size(44, 17);
this.label35.TabIndex = 904;
this.label35.Text = "详情图";
//
// label36
//
this.label36.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label36.AutoSize = true;
this.label36.Location = new System.Drawing.Point(252, 93);
this.label36.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label36.Name = "label36";
this.label36.Size = new System.Drawing.Size(20, 17);
this.label36.TabIndex = 903;
this.label36.Text = "张";
//
// txtMainBorderImgCount
//
this.txtMainBorderImgCount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.txtMainBorderImgCount.Location = new System.Drawing.Point(137, 90);
this.txtMainBorderImgCount.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtMainBorderImgCount.Name = "txtMainBorderImgCount";
this.txtMainBorderImgCount.Size = new System.Drawing.Size(24, 23);
this.txtMainBorderImgCount.TabIndex = 899;
this.txtMainBorderImgCount.Text = "9";
//
// label34
//
this.label34.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label34.AutoSize = true;
this.label34.Location = new System.Drawing.Point(106, 93);
this.label34.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label34.Name = "label34";
this.label34.Size = new System.Drawing.Size(32, 17);
this.label34.TabIndex = 901;
this.label34.Text = "主图";
//
// label33
//
this.label33.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label33.AutoSize = true;
this.label33.Location = new System.Drawing.Point(162, 93);
this.label33.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label33.Name = "label33";
this.label33.Size = new System.Drawing.Size(20, 17);
this.label33.TabIndex = 900;
this.label33.Text = "张";
//
// label32
//
this.label32.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.label32.AutoSize = true;
this.label32.Location = new System.Drawing.Point(497, 57);
this.label32.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.label32.Name = "label32";
this.label32.Size = new System.Drawing.Size(20, 17);
this.label32.TabIndex = 898;
this.label32.Text = "张";
this.label32.Visible = false;
//
// txtAiImgCount
//
this.txtAiImgCount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.txtAiImgCount.Location = new System.Drawing.Point(472, 54);
this.txtAiImgCount.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.txtAiImgCount.Name = "txtAiImgCount";
this.txtAiImgCount.Size = new System.Drawing.Size(24, 23);
this.txtAiImgCount.TabIndex = 897;
this.txtAiImgCount.Text = "1";
this.txtAiImgCount.Visible = false;
//
// chkAiImage
//
this.chkAiImage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.chkAiImage.AutoSize = true;
this.chkAiImage.Location = new System.Drawing.Point(403, 55);
this.chkAiImage.Name = "chkAiImage";
this.chkAiImage.Size = new System.Drawing.Size(74, 21);
this.chkAiImage.TabIndex = 892;
this.chkAiImage.Text = "Ai生主图";
this.chkAiImage.UseVisualStyleBackColor = true;
this.chkAiImage.Visible = false;
//
// chkRandomDetailImgOrder
//
this.chkRandomDetailImgOrder.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.chkRandomDetailImgOrder.Location = new System.Drawing.Point(385, 91);
this.chkRandomDetailImgOrder.Name = "chkRandomDetailImgOrder";
this.chkRandomDetailImgOrder.Size = new System.Drawing.Size(107, 21);
this.chkRandomDetailImgOrder.TabIndex = 896;
this.chkRandomDetailImgOrder.Text = "随机详情图顺序";
this.chkRandomDetailImgOrder.UseVisualStyleBackColor = true;
//
// chkRandomMainImgOrder
//
this.chkRandomMainImgOrder.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.chkRandomMainImgOrder.Location = new System.Drawing.Point(283, 91);
this.chkRandomMainImgOrder.Name = "chkRandomMainImgOrder";
this.chkRandomMainImgOrder.Size = new System.Drawing.Size(94, 21);
this.chkRandomMainImgOrder.TabIndex = 895;
this.chkRandomMainImgOrder.Text = "随机主图顺序";
this.chkRandomMainImgOrder.UseVisualStyleBackColor = true;
//
// lblFissionTitleCount
//
this.lblFissionTitleCount.ForeColor = System.Drawing.Color.Gray;
this.lblFissionTitleCount.Location = new System.Drawing.Point(-10, 32);
this.lblFissionTitleCount.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.lblFissionTitleCount.Name = "lblFissionTitleCount";
this.lblFissionTitleCount.Size = new System.Drawing.Size(88, 17);
this.lblFissionTitleCount.TabIndex = 894;
this.lblFissionTitleCount.Text = "标题数:0";
this.lblFissionTitleCount.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// chkFissionGoodsName
//
this.chkFissionGoodsName.Location = new System.Drawing.Point(10, 7);
this.chkFissionGoodsName.Name = "chkFissionGoodsName";
this.chkFissionGoodsName.Size = new System.Drawing.Size(68, 21);
this.chkFissionGoodsName.TabIndex = 893;
this.chkFissionGoodsName.Text = "裂变标题";
this.chkFissionGoodsName.UseVisualStyleBackColor = true;
//
// chkRandomImgBorder
//
this.chkRandomImgBorder.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.chkRandomImgBorder.Location = new System.Drawing.Point(10, 91);
this.chkRandomImgBorder.Name = "chkRandomImgBorder";
this.chkRandomImgBorder.Size = new System.Drawing.Size(94, 21);
this.chkRandomImgBorder.TabIndex = 890;
this.chkRandomImgBorder.Text = "随机图片边框";
this.chkRandomImgBorder.UseVisualStyleBackColor = true;
//
// txtFissionTitle
//
this.txtFissionTitle.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.txtFissionTitle.Location = new System.Drawing.Point(81, 7);
this.txtFissionTitle.Multiline = true;
this.txtFissionTitle.Name = "txtFissionTitle";
this.txtFissionTitle.Size = new System.Drawing.Size(444, 79);
this.txtFissionTitle.TabIndex = 0;
this.txtFissionTitle.TextChanged += new System.EventHandler(this.txtFissionTitle_TextChanged);
//
// ucGroupBoxEx4
//
this.ucGroupBoxEx4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
@@ -2663,6 +2867,8 @@ namespace TemuKJD.WXForms.ProductForms
this.上传参数.PerformLayout();
this.佣金上货.ResumeLayout(false);
this.佣金上货.PerformLayout();
this.商品裂变.ResumeLayout(false);
this.商品裂变.PerformLayout();
this.ucGroupBoxEx4.ResumeLayout(false);
this.ucGroupBoxEx4.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pbSelectProd)).EndInit();
@@ -2862,5 +3068,21 @@ namespace TemuKJD.WXForms.ProductForms
private System.Windows.Forms.ComboBox cmbCommissionAddOrReduce;
private System.Windows.Forms.Label label29;
private System.Windows.Forms.Label label31;
private System.Windows.Forms.TabPage 商品裂变;
private System.Windows.Forms.TextBox txtFissionTitle;
private UserComponent.UcCheckBox chkRandomImgBorder;
private UserComponent.UcCheckBox chkAiImage;
private UserComponent.UcCheckBox chkFissionGoodsName;
private System.Windows.Forms.Label lblFissionTitleCount;
private UserComponent.UcCheckBox chkRandomDetailImgOrder;
private UserComponent.UcCheckBox chkRandomMainImgOrder;
private System.Windows.Forms.Label label32;
private System.Windows.Forms.TextBox txtAiImgCount;
private System.Windows.Forms.TextBox txtDetailBorderImgCount;
private System.Windows.Forms.Label label35;
private System.Windows.Forms.Label label36;
private System.Windows.Forms.TextBox txtMainBorderImgCount;
private System.Windows.Forms.Label label34;
private System.Windows.Forms.Label label33;
}
}
@@ -36,25 +36,34 @@ namespace TemuKJD.WXForms.ProductForms
{
public partial class WXDBProdUploadForm : BaseForm
{
public static WXDBProdUploadForm Instance { get; set; } = null;
public CancellationTokenSource cancellationTokenSource { get; set; } = null;
public bool IsWxNotUseSoftwareDefaultAddressOnce { get; set; } = false;
public bool IsLoadComplate { get; set; } = false;
public ConcurrentList<TemuDBProductSelect> lstTemuDBProductSelect = new ConcurrentList<TemuDBProductSelect>();
ConcurrentList<WXShopTokenInfo> lstWXShopTokenInfo = new ConcurrentList<WXShopTokenInfo>();
ConcurrentList<AddPriceRule> lstAddPriceRule = new ConcurrentList<AddPriceRule>();
bool isInit = false;
CheckBox chkSelectAll = null;
ConcurrentList<WXShopTokenInfo> lstWXShopTokenInfo = new ConcurrentList<WXShopTokenInfo>();
ConcurrentList<TemuDBProductSelect> lstTemuDBProductSelect = new ConcurrentList<TemuDBProductSelect>();
ConcurrentList<AddPriceRule> lstAddPriceRule = new ConcurrentList<AddPriceRule>();
AddPriceRule defaultAddPriceRule = null;
WXUploadRule wxUploadRule = null;
public Dictionary<string, bool> dicCheckedShopId = new Dictionary<string, bool>();
public string pdd_product_cates = "";
public List<string> forceFilteKeyWords = new List<string>()
{
"顶级", "之王", "二手", "亏本", "冲量", "白菜价", "跳楼价", "xxx", "xx", "最大", "最小", "低价", "降价", "成本", "赔钱", "甩卖",
"真丝", "蚕丝", "香云纱", "羊绒", "羊毛", "羊羔绒", "羊羔毛", "羽绒", "皮草"
};
string DefaultAdultBrandId = "";
// 微信带货助手cookie
List<Cookie> lstWxSaleAssistantCookie = new List<Cookie>();
@@ -65,6 +74,8 @@ namespace TemuKJD.WXForms.ProductForms
private void UserSelectDbProductForm_Load(object sender, EventArgs e)
{
Instance = this;
if (!BaseClass.UserAuthority.Contains("佣金上货"))
this.ucTabControlMetro1.TabPages.Remove(佣金上货);
else
@@ -131,6 +142,15 @@ namespace TemuKJD.WXForms.ProductForms
{
defaultAddPriceRule = new AddPriceRule() { AddPriceTimes = 1.3m, AddMorePrice = 1, SinglePriceAdd = 1 };
}
//this.txtFissionTitle.Text = NaiBa.Util.Helper.ConfigHelper.LoadConfig<string>("wx_prod_fission_title").ParseToString();
try
{
if (File.Exists("data\\config\\wx_prod_fission_title"))
this.txtFissionTitle.Text = File.ReadAllText("data\\config\\wx_prod_fission_title");
}
catch { }
txtAddTimes.TextChanged -= txtAddPrice_TextChanged;
txtAddMorePrice.TextChanged -= txtAddPrice_TextChanged;
txtSinglePriceAdd.TextChanged -= txtAddPrice_TextChanged;
@@ -155,6 +175,7 @@ namespace TemuKJD.WXForms.ProductForms
chkAddMorePriceFirst.CheckedChanged += chkAddMorePriceFirst_CheckedChanged;
chkStepAddPrice.CheckedChanged += chkStepAddPrice_CheckedChanged;
wxUploadRule = NaiBa.Util.Helper.ConfigHelper.LoadConfig<WXUploadRule>("wx_upload_rule");
if (wxUploadRule == null)
wxUploadRule = new WXUploadRule();
@@ -335,6 +356,10 @@ namespace TemuKJD.WXForms.ProductForms
cmbSourceType.Items.Insert(1, "1688商品");
cmbSourceType.Items.Insert(1, "多多商品");
}
if (!BaseClass.UserAuthority.Contains("商品裂变"))
{
ucTabControlMetro1.TabPages.Remove(商品裂变);
}
//#endif
if (BaseClass.SaLevel == 1)
{
@@ -1935,8 +1960,33 @@ namespace TemuKJD.WXForms.ProductForms
if (token == null || token.isExpire || string.IsNullOrEmpty(token.accessToken))
token = new WxApiBLL().GetRandomWxToken();
#region 设置标题
#region 设置标题
string prodTitle = dbProd.product_name.IsNullOrEmpty() ? prodInfo.detail.goods_name : dbProd.product_name;
// 裂变标题
if (BaseClass.UserAuthority.Contains("商品裂变") && chkFissionGoodsName.Checked)
{
bool isFinish = false;
Invoke(new Action(() => {
var titles = txtFissionTitle.Text.Split(new string[] { "\r", "\n" }, StringSplitOptions.RemoveEmptyEntries).ToList();
if (titles.Count == 0)
{
cancellationTokenSource.Cancel();
if (cell != null)
cell.Value = "裂变标题数量不足,将暂停上传";
BaseMsgForm.ShowError("裂变标题数量不足,将暂停上传");
isFinish = true;
}
prodTitle = titles[0];
titles.RemoveAt(0);
txtFissionTitle.Text = string.Join("\r\n", titles);
}));
if (isFinish)
{
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"裂变标题数量不足,将暂停上传\"}";
}
}
upProdInitParam.product.info.title = prodTitle;
upProdParam.product.info.title = prodTitle;
upProdParam.sessionInfo.sessionId = upProdInitParam.product.sessionId;
@@ -2422,7 +2472,7 @@ namespace TemuKJD.WXForms.ProductForms
#endregion
#region ai短标题 // ai获取短标题
if (wxUploadRule.IsAiShortTitle)
if (wxUploadRule.IsAiShortTitle || chkAiImage.Checked)
{
if (cell != null)
{
@@ -4129,6 +4179,249 @@ namespace TemuKJD.WXForms.ProductForms
}
#endregion
#region AI生成图片,用于商品裂变
if (chkAiImage.Checked)
{
int imgCount = 1;
Invoke(new Action(() =>
{
if (cell != null)
cell.Value = "正在Ai生图";
imgCount = txtAiImgCount.Text.Trim().ParseToInt();
if (imgCount == 0)
imgCount = 1;
}));
List<Task> tList = new List<Task>();
List<string> errStrLst = new List<string>();
for (int n = 0; n < upProdParam.product.info.headImg.Count && n < imgCount; n++)
{
while (tList.Count >= 10)
{
Thread.Sleep(500);
tList.RemoveAll(t => t.IsCanceled || t.IsFaulted || t.IsCompleted);
}
var tt = Task.Run(() =>
{
var imgUrl = GetAiImg(upProdParam.product.info.headImg[n], upProdParam.product.info.shortTitle);
if (imgUrl.StartsWith("生成Ai图片错误"))
{
errStrLst.Add(imgUrl);
return;
//return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"" + imgUrl + "\"}";
}
// api上传图片文件 Ai主图
if (1 == 1)
{
try
{
string errMsg = "";
//var imgBase64 = GetImgBase64ForApi(out errMsg, imgUrl, needAddRandomBlock, wantAddRandomBlock, 800, 800);
var imgBase64 = GetImgBase64ForApi(out errMsg, imgUrl, false, false, 800, 800);
if (!string.IsNullOrEmpty(errMsg))
{
errStrLst.Add(errMsg);
return;
//return errMsg;
}
var urlImg = BaseClass.BuildPDDObjString("product/wx_api_upload_image");
var upDate = UserLogin.GetSignaturex();
upDate += "&token=" + token.accessToken;
//upDate += "&is_file=true";
//if (needAddRandomBlock || wantAddRandomBlock)
// upDate += "&random_code=true";
upDate += "&img_url=" + imgUrl;
upDate += "&img_base64=" + imgBase64;
var sTime = DateTime.Now;
var apiUpImgFileRst = GetHtml.PostUtf8(urlImg, upDate);
if (cell != null)
{
Invoke(new Action(() =>
{
cell.Value = "正在上传Ai主图文件 " + (DateTime.Now - sTime).TotalMilliseconds.ParseToInt();
}));
}
for (int i = 0; i < 5 && apiUpImgFileRst.Contains("access_token expired"); i++)
{
token.mdyTime = DateTime.Now.AddDays(-100);
token = new WxApiBLL().GetRandomWxToken();
apiUpImgFileRst = GetHtml.PostUtf8(urlImg, upDate);
}
var upImgUrl = BaseRegex.GetStringJson(ref apiUpImgFileRst, "img_url");
if (apiUpImgFileRst.Contains("\"errcode\":0") && !string.IsNullOrEmpty(upImgUrl))
{
upProdParam.product.info.headImg[n] = upImgUrl;
//if (n == 0)
// upProdParam.product.info.detail.detailImg.Insert(0, upImgUrl);
}
else
{
string upImgErrMsg = BaseRegex.GetStringJsonByRegs(ref apiUpImgFileRst, apiUpImgFileRst, "msg", "errMsg", "errorMsg", "err_msg", "error_msg");
errStrLst.Add("上传Ai图失败 " + upImgErrMsg);
return;
//return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"上传Ai图失败 " + upImgErrMsg + "\"}";
}
}
catch (Exception ex)
{
errStrLst.Add("上传Ai图失败 " + ex.Message);
return;
//return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"上传Ai图失败 " + ex.Message + "\"}";
}
}
});
tList.Add(tt);
}
while (tList.Count > 0)
{
Thread.Sleep(500);
tList.RemoveAll(t => t.IsCanceled || t.IsFaulted || t.IsCompleted);
}
// 错误超过一定数量直接报错返回
if (errStrLst.Count > 0 && errStrLst.Count >= imgCount / 3)
{
return string.Join(",", errStrLst);
}
}
#endregion
#region 添加图片随机外框,用于商品裂变
if (BaseClass.UserAuthority.Contains("商品裂变") && chkRandomImgBorder.Checked)
{
int mainCount = 9;
int detailCount = 1;
Invoke(new Action(() =>
{
mainCount = txtMainBorderImgCount.Text.Trim().ParseToInt();
detailCount = txtDetailBorderImgCount.Text.Trim().ParseToInt();
}));
// api上传图片文件 边框主图
if (1 == 1)
{
if (chkRandomMainImgOrder.Checked)
upProdParam.product.info.headImg = upProdParam.product.info.headImg.OrderBy(x => Guid.NewGuid()).Take(100).ToList();
for (int n = 0; n < upProdParam.product.info.headImg.Count && n < mainCount; n++)
{
var imgUrl = upProdParam.product.info.headImg[n];
try
{
string errMsg = "";
//var imgBase64 = GetImgBase64ForApi(out errMsg, imgUrl, needAddRandomBlock, wantAddRandomBlock, 800, 800);
var imgBase64 = GetImgBase64ForApi(out errMsg, imgUrl, false, false, 800, 800, true);
if (!string.IsNullOrEmpty(errMsg))
{
return errMsg;
}
var urlImg = BaseClass.BuildPDDObjString("product/wx_api_upload_image");
var upDate = UserLogin.GetSignaturex();
upDate += "&token=" + token.accessToken;
//upDate += "&is_file=true";
//if (needAddRandomBlock || wantAddRandomBlock)
// upDate += "&random_code=true";
upDate += "&img_url=" + imgUrl;
upDate += "&img_base64=" + imgBase64;
var sTime = DateTime.Now;
var apiUpImgFileRst = GetHtml.PostUtf8(urlImg, upDate);
if (cell != null)
{
Invoke(new Action(() =>
{
cell.Value = "正在优化主图文件 " + (DateTime.Now - sTime).TotalMilliseconds.ParseToInt();
}));
}
for (int i = 0; i < 5 && apiUpImgFileRst.Contains("access_token expired"); i++)
{
token.mdyTime = DateTime.Now.AddDays(-100);
token = new WxApiBLL().GetRandomWxToken();
apiUpImgFileRst = GetHtml.PostUtf8(urlImg, upDate);
}
var upImgUrl = BaseRegex.GetStringJson(ref apiUpImgFileRst, "img_url");
if (apiUpImgFileRst.Contains("\"errcode\":0") && !string.IsNullOrEmpty(upImgUrl))
{
upProdParam.product.info.headImg[n] = upImgUrl;
}
else
{
string upImgErrMsg = BaseRegex.GetStringJsonByRegs(ref apiUpImgFileRst, apiUpImgFileRst, "msg", "errMsg", "errorMsg", "err_msg", "error_msg");
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"优化主图失败 " + upImgErrMsg + "\"}";
}
}
catch (Exception ex)
{
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"优化主图失败 " + ex.Message + "\"}";
}
}
}
// api上传图片文件 边框详情图
if (1 == 1)
{
if (chkRandomDetailImgOrder.Checked)
upProdParam.product.info.detail.detailImg = upProdParam.product.info.detail.detailImg.OrderBy(x => Guid.NewGuid()).Take(100).ToList();
for (int n = 0; n < upProdParam.product.info.detail.detailImg.Count && n < detailCount; n++)
{
var imgUrl = upProdParam.product.info.detail.detailImg[n];
try
{
string errMsg = "";
//var imgBase64 = GetImgBase64ForApi(out errMsg, imgUrl, needAddRandomBlock, wantAddRandomBlock, 800, 800);
var imgBase64 = GetImgBase64ForApi(out errMsg, imgUrl, false, false, 800, 800, true);
if (!string.IsNullOrEmpty(errMsg))
{
return errMsg;
}
var urlImg = BaseClass.BuildPDDObjString("product/wx_api_upload_image");
var upDate = UserLogin.GetSignaturex();
upDate += "&token=" + token.accessToken;
//upDate += "&is_file=true";
//if (needAddRandomBlock || wantAddRandomBlock)
// upDate += "&random_code=true";
upDate += "&img_url=" + imgUrl;
upDate += "&img_base64=" + imgBase64;
var sTime = DateTime.Now;
var apiUpImgFileRst = GetHtml.PostUtf8(urlImg, upDate);
if (cell != null)
{
Invoke(new Action(() =>
{
cell.Value = "正在优化详情图文件 " + (DateTime.Now - sTime).TotalMilliseconds.ParseToInt();
}));
}
for (int i = 0; i < 5 && apiUpImgFileRst.Contains("access_token expired"); i++)
{
token.mdyTime = DateTime.Now.AddDays(-100);
token = new WxApiBLL().GetRandomWxToken();
apiUpImgFileRst = GetHtml.PostUtf8(urlImg, upDate);
}
var upImgUrl = BaseRegex.GetStringJson(ref apiUpImgFileRst, "img_url");
if (apiUpImgFileRst.Contains("\"errcode\":0") && !string.IsNullOrEmpty(upImgUrl))
{
upProdParam.product.info.detail.detailImg[n] = upImgUrl;
}
else
{
string upImgErrMsg = BaseRegex.GetStringJsonByRegs(ref apiUpImgFileRst, apiUpImgFileRst, "msg", "errMsg", "errorMsg", "err_msg", "error_msg");
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"优化详情图失败 " + upImgErrMsg + "\"}";
}
}
catch (Exception ex)
{
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"优化详情图失败 " + ex.Message + "\"}";
}
}
}
}
#endregion
// 直接使用微信回采情趣商品品牌
if (BaseClass.UserAuthority.ParseToString().Contains("微信回采") && chkUseWXComplateProd.Checked &&
upProdParam.product.info.category.FirstOrDefault()?.name == "成人用品" && upProdParam.product.info.category[1].name != "情趣内衣")
@@ -4426,14 +4719,14 @@ namespace TemuKJD.WXForms.ProductForms
}
public static string GetImgBase64ForApi(out string errorMsg, string img_url, bool needAddRandomBlock, bool wantAddRandomBlock, int imgWidth = 0, int imgHeight = 0)
public static string GetImgBase64ForApi(out string errorMsg, string img_url, bool needAddRandomBlock, bool wantAddRandomBlock, int imgWidth = 0, int imgHeight = 0, bool wantAddRandomBorder = false)
{
errorMsg = "";
string imgBase64 = "";
//-------------------------------------------------------------------------------------------------------------------------------------
//生成主图base64字符串
string getImgError;
if (!img_url.Contains("wst.wxapp.tc.qq.com"))
if (!img_url.Contains("wst.wxapp.tc.qq.com") && !img_url.Contains("mmecimage.cn"))
img_url = img_url.Replace("https://", "http://");
var image = GetHtml.GetUrlImg(img_url, out getImgError);
if (image == null)
@@ -4459,6 +4752,14 @@ namespace TemuKJD.WXForms.ProductForms
g.FillRectangle(new SolidBrush(Color.FromArgb(Randomx.GetId(256), Randomx.GetId(256), Randomx.GetId(256))),
new Rectangle(Randomx.GetId(imageBg.Width - 30), Randomx.GetId(imageBg.Height - 30), 30, 30));
}
if (wantAddRandomBorder)
{
var borderColor = Color.FromArgb(Randomx.GetId(256), Randomx.GetId(256), Randomx.GetId(256));
g.FillRectangle(new SolidBrush(borderColor), new Rectangle(0, 0, imageBg.Width, 20));
g.FillRectangle(new SolidBrush(borderColor), new Rectangle(0, imageBg.Height - 20, imageBg.Width, 20));
g.FillRectangle(new SolidBrush(borderColor), new Rectangle(0, 0, 20, imageBg.Height));
g.FillRectangle(new SolidBrush(borderColor), new Rectangle(imageBg.Width - 20, 0, 20, imageBg.Height));
}
}
using (MemoryStream memoryStream = new MemoryStream())
{
@@ -4504,7 +4805,6 @@ namespace TemuKJD.WXForms.ProductForms
}
public string UploadImg(ShopLoginInfo shop, Bitmap img, DataGridViewCell cell = null)
{
var upImgAuthRst = WXUpload.getUploadTempImgAuth(shop);
@@ -4586,6 +4886,24 @@ namespace TemuKJD.WXForms.ProductForms
}));
});
if (BaseClass.UserAuthority.Contains("商品裂变") && chkFissionGoodsName.Checked)
{
Invoke(new Action(() =>
{
var titles = txtFissionTitle.Text.Split(new string[] { "\r", "\n" }, StringSplitOptions.RemoveEmptyEntries).ToList();
txtAddCount.Text = "" + titles.Count;
if (titles.Count == 0)
{
BaseMsgForm.ShowError("裂变标题数量不足");
return;
}
this.lstTemuDBProductSelect.Clear();
NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_db_prod_upload_list", this.lstTemuDBProductSelect);
lblWaitToUp.Text = "待上传 " + lstTemuDBProductSelect.Count + " 件";
}));
}
pbSelectProd.Visible = true;
int addCount = txtAddCount.Text.Trim().ParseToInt();
if (getProdTokenSource != null)
@@ -4866,6 +5184,36 @@ namespace TemuKJD.WXForms.ProductForms
}
}
public string GetAiImg(string imgUrl, string imgWord)
{
string image_url = imgUrl;
string word = imgWord;
string secret = "sadhjufhe15c4fbvFBvcvds+5sdfds@#%$xsc";
string time = BaseClass.DateTimeToTimestampSeconds(DateTime.Now).ToString();
string code = BaseClass.GetMd5(secret + time).ToLower();
try
{
//string url = "http://ai-bs.jiaotian.vip:" + Randomx.GetId(20010, 20021) + "/index.php?obj=public/image";
//http://svn.jiaotian.vip:20010-20020/index.php?obj=public/image
string url = "http://svn.jiaotian.vip:" + Randomx.GetId(20010, 20021) + "/index.php?obj=public/image";
string data = "time=" + time + "&code=" + code + "&image_url=" + image_url + "&word=" + word;
string html = GetHtml.PostUtf8(url, data, "", 120);
if (!string.IsNullOrEmpty(html) && !html.Contains("error"))
{
return html;
}
else
{
return "生成Ai图片错误 " + html;
}
}
catch (Exception ex)
{
return "生成Ai图片错误 " + ex.Message;
}
}
private void btnClearUpload_Click(object sender, EventArgs e)
{
if (BaseMsgForm.ShowConfirm("确定清空待上传商品吗?清空后不可恢复!").DialogResult == DialogResult.Cancel)
@@ -5532,7 +5880,7 @@ namespace TemuKJD.WXForms.ProductForms
WXUserProdListForm.Instance.BringToFront();
}
private void dbProdList_SaveComplete(object obj)
public void dbProdList_SaveComplete(object obj)
{
NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_db_prod_upload_list", this.lstTemuDBProductSelect);
Invoke(new Action(() =>
@@ -5565,6 +5913,13 @@ namespace TemuKJD.WXForms.ProductForms
if (lstWxSaleAssistantCookie == null)
lstWxSaleAssistantCookie = new List<Cookie>();
}
private void txtFissionTitle_TextChanged(object sender, EventArgs e)
{
if (this.IsLoadComplate)
NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_prod_fission_title", txtFissionTitle.Text);
lblFissionTitleCount.Text = "标题数:" + txtFissionTitle.Text.Split(new string[] { "\r", "\n" }, StringSplitOptions.RemoveEmptyEntries).ToList().Count();
}
}
public class WXUpload
@@ -49,14 +49,15 @@ namespace TemuKJD.WXForms.ProductForms
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WXUserCollectAuthProdListForm));
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.btnSelect = new DevComponents.DotNetBar.PanelEx();
this.btnSearch = new DevComponents.DotNetBar.PanelEx();
this.btnStopStop = new DevComponents.DotNetBar.PanelEx();
this.btnEmpty = new DevComponents.DotNetBar.PanelEx();
this.btnGetProdWxCate = new DevComponents.DotNetBar.PanelEx();
this.btnDel = new DevComponents.DotNetBar.PanelEx();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.txtCatBoundLessThan = new System.Windows.Forms.TextBox();
this.chkCatBoundLessThan = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.btnSearch = new DevComponents.DotNetBar.PanelEx();
this.btnEmpty = new DevComponents.DotNetBar.PanelEx();
this.txtSPU = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.cmbWxCat = new System.Windows.Forms.ComboBox();
@@ -158,7 +159,10 @@ namespace TemuKJD.WXForms.ProductForms
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.btnSelect);
this.splitContainer1.Panel1.Controls.Add(this.btnSearch);
this.splitContainer1.Panel1.Controls.Add(this.btnStopStop);
this.splitContainer1.Panel1.Controls.Add(this.btnEmpty);
this.splitContainer1.Panel1.Controls.Add(this.btnGetProdWxCate);
this.splitContainer1.Panel1.Controls.Add(this.btnDel);
this.splitContainer1.Panel1.Controls.Add(this.tableLayoutPanel1);
@@ -170,15 +174,65 @@ namespace TemuKJD.WXForms.ProductForms
this.splitContainer1.SplitterDistance = 74;
this.splitContainer1.TabIndex = 1;
//
// btnSelect
//
this.btnSelect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnSelect.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnSelect.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnSelect.DisabledBackColor = System.Drawing.Color.Empty;
this.btnSelect.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSelect.Location = new System.Drawing.Point(1060, 44);
this.btnSelect.Name = "btnSelect";
this.btnSelect.Size = new System.Drawing.Size(95, 25);
this.btnSelect.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnSelect.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnSelect.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnSelect.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnSelect.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnSelect.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnSelect.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnSelect.Style.GradientAngle = 90;
this.btnSelect.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnSelect.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnSelect.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnSelect.TabIndex = 894;
this.btnSelect.Text = "批量添加上传";
this.btnSelect.Click += new System.EventHandler(this.btnSelect_Click);
//
// btnSearch
//
this.btnSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnSearch.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnSearch.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnSearch.DisabledBackColor = System.Drawing.Color.Empty;
this.btnSearch.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSearch.Location = new System.Drawing.Point(1060, 9);
this.btnSearch.Name = "btnSearch";
this.btnSearch.Size = new System.Drawing.Size(46, 25);
this.btnSearch.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnSearch.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnSearch.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnSearch.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnSearch.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnSearch.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnSearch.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnSearch.Style.GradientAngle = 90;
this.btnSearch.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnSearch.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnSearch.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnSearch.TabIndex = 643;
this.btnSearch.Text = "搜索";
this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
//
// btnStopStop
//
this.btnStopStop.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnStopStop.CanvasColor = System.Drawing.SystemColors.Control;
this.btnStopStop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnStopStop.DisabledBackColor = System.Drawing.Color.Empty;
this.btnStopStop.Location = new System.Drawing.Point(1209, 42);
this.btnStopStop.Location = new System.Drawing.Point(1263, 9);
this.btnStopStop.Name = "btnStopStop";
this.btnStopStop.Size = new System.Drawing.Size(84, 25);
this.btnStopStop.Size = new System.Drawing.Size(63, 25);
this.btnStopStop.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnStopStop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnStopStop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
@@ -195,6 +249,31 @@ namespace TemuKJD.WXForms.ProductForms
this.btnStopStop.Text = "停止操作";
this.btnStopStop.Click += new System.EventHandler(this.btnStopStop_Click);
//
// btnEmpty
//
this.btnEmpty.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnEmpty.CanvasColor = System.Drawing.SystemColors.Control;
this.btnEmpty.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnEmpty.DisabledBackColor = System.Drawing.Color.Empty;
this.btnEmpty.Location = new System.Drawing.Point(1109, 9);
this.btnEmpty.Name = "btnEmpty";
this.btnEmpty.Size = new System.Drawing.Size(46, 25);
this.btnEmpty.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnEmpty.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnEmpty.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnEmpty.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.btnEmpty.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnEmpty.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.btnEmpty.Style.GradientAngle = 90;
this.btnEmpty.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
this.btnEmpty.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnEmpty.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnEmpty.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnEmpty.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
this.btnEmpty.TabIndex = 431;
this.btnEmpty.Text = "清空";
this.btnEmpty.Click += new System.EventHandler(this.pnlEmpty_Click);
//
// btnGetProdWxCate
//
this.btnGetProdWxCate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@@ -202,7 +281,7 @@ namespace TemuKJD.WXForms.ProductForms
this.btnGetProdWxCate.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnGetProdWxCate.DisabledBackColor = System.Drawing.Color.Empty;
this.btnGetProdWxCate.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnGetProdWxCate.Location = new System.Drawing.Point(1209, 9);
this.btnGetProdWxCate.Location = new System.Drawing.Point(1176, 9);
this.btnGetProdWxCate.Name = "btnGetProdWxCate";
this.btnGetProdWxCate.Size = new System.Drawing.Size(84, 25);
this.btnGetProdWxCate.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -251,13 +330,13 @@ namespace TemuKJD.WXForms.ProductForms
| System.Windows.Forms.AnchorStyles.Right)));
this.tableLayoutPanel1.ColumnCount = 14;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66817F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66817F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66318F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66716F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
@@ -266,8 +345,6 @@ namespace TemuKJD.WXForms.ProductForms
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.Controls.Add(this.txtCatBoundLessThan, 9, 1);
this.tableLayoutPanel1.Controls.Add(this.chkCatBoundLessThan, 8, 1);
this.tableLayoutPanel1.Controls.Add(this.btnSearch, 12, 0);
this.tableLayoutPanel1.Controls.Add(this.btnEmpty, 13, 0);
this.tableLayoutPanel1.Controls.Add(this.txtSPU, 1, 0);
this.tableLayoutPanel1.Controls.Add(this.label5, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.cmbWxCat, 11, 0);
@@ -294,23 +371,23 @@ namespace TemuKJD.WXForms.ProductForms
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33444F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33445F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33112F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(1199, 105);
this.tableLayoutPanel1.Size = new System.Drawing.Size(1050, 105);
this.tableLayoutPanel1.TabIndex = 679;
//
// txtCatBoundLessThan
//
this.txtCatBoundLessThan.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.txtCatBoundLessThan.Location = new System.Drawing.Point(791, 41);
this.txtCatBoundLessThan.Location = new System.Drawing.Point(763, 41);
this.txtCatBoundLessThan.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtCatBoundLessThan.Name = "txtCatBoundLessThan";
this.txtCatBoundLessThan.Size = new System.Drawing.Size(116, 23);
this.txtCatBoundLessThan.Size = new System.Drawing.Size(109, 23);
this.txtCatBoundLessThan.TabIndex = 883;
this.txtCatBoundLessThan.Text = "100000";
//
// chkCatBoundLessThan
//
this.chkCatBoundLessThan.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.chkCatBoundLessThan.Location = new System.Drawing.Point(724, 42);
this.chkCatBoundLessThan.Location = new System.Drawing.Point(696, 42);
this.chkCatBoundLessThan.Margin = new System.Windows.Forms.Padding(10, 3, 3, 3);
this.chkCatBoundLessThan.Name = "chkCatBoundLessThan";
this.chkCatBoundLessThan.Size = new System.Drawing.Size(64, 21);
@@ -319,63 +396,13 @@ namespace TemuKJD.WXForms.ProductForms
this.chkCatBoundLessThan.UseVisualStyleBackColor = true;
this.chkCatBoundLessThan.CheckedChanged += new System.EventHandler(this.chkCatBoundLessThan_CheckedChanged);
//
// btnSearch
//
this.btnSearch.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.btnSearch.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnSearch.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnSearch.DisabledBackColor = System.Drawing.Color.Empty;
this.btnSearch.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSearch.Location = new System.Drawing.Point(1095, 5);
this.btnSearch.Name = "btnSearch";
this.btnSearch.Size = new System.Drawing.Size(46, 25);
this.btnSearch.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnSearch.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnSearch.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnSearch.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnSearch.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnSearch.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnSearch.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnSearch.Style.GradientAngle = 90;
this.btnSearch.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnSearch.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnSearch.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnSearch.TabIndex = 643;
this.btnSearch.Text = "搜索";
this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
//
// btnEmpty
//
this.btnEmpty.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.btnEmpty.CanvasColor = System.Drawing.SystemColors.Control;
this.btnEmpty.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnEmpty.DisabledBackColor = System.Drawing.Color.Empty;
this.btnEmpty.Location = new System.Drawing.Point(1147, 5);
this.btnEmpty.Name = "btnEmpty";
this.btnEmpty.Size = new System.Drawing.Size(46, 25);
this.btnEmpty.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnEmpty.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnEmpty.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnEmpty.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.btnEmpty.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnEmpty.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.btnEmpty.Style.GradientAngle = 90;
this.btnEmpty.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
this.btnEmpty.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnEmpty.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnEmpty.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnEmpty.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
this.btnEmpty.TabIndex = 431;
this.btnEmpty.Text = "清空";
this.btnEmpty.Click += new System.EventHandler(this.pnlEmpty_Click);
//
// txtSPU
//
this.txtSPU.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.txtSPU.Location = new System.Drawing.Point(52, 6);
this.txtSPU.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtSPU.Name = "txtSPU";
this.txtSPU.Size = new System.Drawing.Size(116, 23);
this.txtSPU.Size = new System.Drawing.Size(109, 23);
this.txtSPU.TabIndex = 434;
//
// label5
@@ -397,27 +424,27 @@ namespace TemuKJD.WXForms.ProductForms
"",
"是",
"否"});
this.cmbWxCat.Location = new System.Drawing.Point(973, 7);
this.cmbWxCat.Location = new System.Drawing.Point(938, 5);
this.cmbWxCat.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbWxCat.Name = "cmbWxCat";
this.cmbWxCat.Size = new System.Drawing.Size(116, 25);
this.cmbWxCat.Size = new System.Drawing.Size(109, 25);
this.cmbWxCat.TabIndex = 802;
//
// txtProdName
//
this.txtProdName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.tableLayoutPanel1.SetColumnSpan(this.txtProdName, 3);
this.txtProdName.Location = new System.Drawing.Point(234, 6);
this.txtProdName.Location = new System.Drawing.Point(227, 6);
this.txtProdName.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtProdName.Name = "txtProdName";
this.txtProdName.Size = new System.Drawing.Size(281, 23);
this.txtProdName.Size = new System.Drawing.Size(267, 23);
this.txtProdName.TabIndex = 427;
//
// label12
//
this.label12.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label12.AutoSize = true;
this.label12.Location = new System.Drawing.Point(913, 9);
this.label12.Location = new System.Drawing.Point(878, 9);
this.label12.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(60, 17);
@@ -428,7 +455,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.label3.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(174, 9);
this.label3.Location = new System.Drawing.Point(167, 9);
this.label3.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(60, 17);
@@ -454,10 +481,10 @@ namespace TemuKJD.WXForms.ProductForms
this.cmbCat1.DropDownWidth = 1;
this.cmbCat1.FormattingEnabled = true;
this.cmbCat1.IntegralHeight = false;
this.cmbCat1.Location = new System.Drawing.Point(52, 42);
this.cmbCat1.Location = new System.Drawing.Point(52, 40);
this.cmbCat1.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCat1.Name = "cmbCat1";
this.cmbCat1.Size = new System.Drawing.Size(116, 25);
this.cmbCat1.Size = new System.Drawing.Size(109, 25);
this.cmbCat1.TabIndex = 805;
this.cmbCat1.Text = "全部";
this.cmbCat1.SelectedIndexChanged += new System.EventHandler(this.cmbCat1_SelectedIndexChanged);
@@ -466,17 +493,17 @@ namespace TemuKJD.WXForms.ProductForms
// txtCatBoundMoreThan
//
this.txtCatBoundMoreThan.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.txtCatBoundMoreThan.Location = new System.Drawing.Point(595, 41);
this.txtCatBoundMoreThan.Location = new System.Drawing.Point(574, 41);
this.txtCatBoundMoreThan.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtCatBoundMoreThan.Name = "txtCatBoundMoreThan";
this.txtCatBoundMoreThan.Size = new System.Drawing.Size(116, 23);
this.txtCatBoundMoreThan.Size = new System.Drawing.Size(109, 23);
this.txtCatBoundMoreThan.TabIndex = 882;
this.txtCatBoundMoreThan.Text = "1000";
//
// chkCatBoundMoreThan
//
this.chkCatBoundMoreThan.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.chkCatBoundMoreThan.Location = new System.Drawing.Point(528, 42);
this.chkCatBoundMoreThan.Location = new System.Drawing.Point(507, 42);
this.chkCatBoundMoreThan.Margin = new System.Windows.Forms.Padding(10, 3, 3, 3);
this.chkCatBoundMoreThan.Name = "chkCatBoundMoreThan";
this.chkCatBoundMoreThan.Size = new System.Drawing.Size(64, 21);
@@ -489,7 +516,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.label14.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label14.AutoSize = true;
this.label14.Location = new System.Drawing.Point(191, 44);
this.label14.Location = new System.Drawing.Point(184, 44);
this.label14.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(43, 17);
@@ -504,10 +531,10 @@ namespace TemuKJD.WXForms.ProductForms
this.cmbCat2.DropDownWidth = 1;
this.cmbCat2.FormattingEnabled = true;
this.cmbCat2.IntegralHeight = false;
this.cmbCat2.Location = new System.Drawing.Point(234, 42);
this.cmbCat2.Location = new System.Drawing.Point(227, 40);
this.cmbCat2.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCat2.Name = "cmbCat2";
this.cmbCat2.Size = new System.Drawing.Size(116, 25);
this.cmbCat2.Size = new System.Drawing.Size(109, 25);
this.cmbCat2.TabIndex = 804;
this.cmbCat2.Text = "全部";
this.cmbCat2.SelectedIndexChanged += new System.EventHandler(this.cmbCat2_SelectedIndexChanged);
@@ -517,7 +544,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.label17.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label17.AutoSize = true;
this.label17.Location = new System.Drawing.Point(356, 44);
this.label17.Location = new System.Drawing.Point(342, 44);
this.label17.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(43, 17);
@@ -532,10 +559,10 @@ namespace TemuKJD.WXForms.ProductForms
this.cmbCat3.DropDownWidth = 1;
this.cmbCat3.FormattingEnabled = true;
this.cmbCat3.IntegralHeight = false;
this.cmbCat3.Location = new System.Drawing.Point(399, 42);
this.cmbCat3.Location = new System.Drawing.Point(385, 40);
this.cmbCat3.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCat3.Name = "cmbCat3";
this.cmbCat3.Size = new System.Drawing.Size(116, 25);
this.cmbCat3.Size = new System.Drawing.Size(109, 25);
this.cmbCat3.TabIndex = 811;
this.cmbCat3.Text = "全部";
this.cmbCat3.SelectedIndexChanged += new System.EventHandler(this.cmbCat3_SelectedIndexChanged);
@@ -545,7 +572,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.lblWxSafe.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.lblWxSafe.AutoSize = true;
this.lblWxSafe.Location = new System.Drawing.Point(913, 44);
this.lblWxSafe.Location = new System.Drawing.Point(878, 44);
this.lblWxSafe.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.lblWxSafe.Name = "lblWxSafe";
this.lblWxSafe.Size = new System.Drawing.Size(60, 17);
@@ -561,27 +588,27 @@ namespace TemuKJD.WXForms.ProductForms
"安全+未校验",
"安全商品",
"未校验"});
this.cmbWxSafe.Location = new System.Drawing.Point(973, 42);
this.cmbWxSafe.Location = new System.Drawing.Point(938, 40);
this.cmbWxSafe.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbWxSafe.Name = "cmbWxSafe";
this.cmbWxSafe.Size = new System.Drawing.Size(116, 25);
this.cmbWxSafe.Size = new System.Drawing.Size(109, 25);
this.cmbWxSafe.TabIndex = 676;
this.cmbWxSafe.Text = "安全+未校验";
//
// txtNotes
//
this.txtNotes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.txtNotes.Location = new System.Drawing.Point(791, 6);
this.txtNotes.Location = new System.Drawing.Point(763, 6);
this.txtNotes.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtNotes.Name = "txtNotes";
this.txtNotes.Size = new System.Drawing.Size(116, 23);
this.txtNotes.Size = new System.Drawing.Size(109, 23);
this.txtNotes.TabIndex = 439;
//
// lblNotes
//
this.lblNotes.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.lblNotes.AutoSize = true;
this.lblNotes.Location = new System.Drawing.Point(755, 9);
this.lblNotes.Location = new System.Drawing.Point(727, 9);
this.lblNotes.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.lblNotes.Name = "lblNotes";
this.lblNotes.Size = new System.Drawing.Size(36, 17);
@@ -596,10 +623,10 @@ namespace TemuKJD.WXForms.ProductForms
"",
"多多商品",
"1688商品"});
this.cmbSourceType.Location = new System.Drawing.Point(595, 7);
this.cmbSourceType.Location = new System.Drawing.Point(574, 5);
this.cmbSourceType.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbSourceType.Name = "cmbSourceType";
this.cmbSourceType.Size = new System.Drawing.Size(116, 25);
this.cmbSourceType.Size = new System.Drawing.Size(109, 25);
this.cmbSourceType.TabIndex = 654;
this.cmbSourceType.SelectedIndexChanged += new System.EventHandler(this.cmbSourceType_SelectedIndexChanged);
this.cmbSourceType.TextChanged += new System.EventHandler(this.cmbSourceType_SelectedIndexChanged);
@@ -608,7 +635,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.lblSourceType.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.lblSourceType.AutoSize = true;
this.lblSourceType.Location = new System.Drawing.Point(551, 9);
this.lblSourceType.Location = new System.Drawing.Point(530, 9);
this.lblSourceType.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.lblSourceType.Name = "lblSourceType";
this.lblSourceType.Size = new System.Drawing.Size(44, 17);
@@ -1381,5 +1408,6 @@ namespace TemuKJD.WXForms.ProductForms
private System.Windows.Forms.DataGridViewLinkColumn col_edit;
private System.Windows.Forms.DataGridViewLinkColumn col_delete;
private System.Windows.Forms.DataGridViewLinkColumn col_select_product;
private DevComponents.DotNetBar.PanelEx btnSelect;
}
}
@@ -744,10 +744,6 @@ namespace TemuKJD.WXForms.ProductForms
}, cancellationTokenSource.Token);
}
void SelectProduct(KJDDBProduct[] prodList)
{
}
private void dgvDbProduct_Scroll(object sender, ScrollEventArgs e)
{
ShowDgvImg();
@@ -982,5 +978,49 @@ namespace TemuKJD.WXForms.ProductForms
Thread.Sleep(1000);
}
}
private void btnSelect_Click(object sender, EventArgs e)
{
var lstProdId = dgvDbProduct.Rows.Cast<DataGridViewRow>().Where(row
=> row.Cells["colSelect"]?.Value.ParseToBool() == true).Select(r => r.Cells["col_spu_id"]?.Value.ToString()).ToList();
var prodList = this.lstTemuDbProduct.Where(p => lstProdId.Contains(p.spu_id)).ToArray();
if (prodList.Count() > 0)
{
this.btnSelect.Enabled = false;
Task.Run(() =>
{
SelectProduct(prodList);
Invoke(new Action(() =>
{
this.btnSelect.Enabled = true;
BaseMsgForm.ShowInfo("添加成功");
}));
});
}
else
{
BaseMsgForm.ShowError("请选择商品!");
}
}
void SelectProduct(KJDDBProduct[] prodList)
{
if (WXDBProdUploadForm.Instance != null)
{
foreach (var prod in prodList)
{
var selectProd = JsonHelper.DeserializeJsonToObject<TemuDBProductSelect>(JsonHelper.SerializeObject(prod));
selectProd.out_product_Id = prod.id.ToString();
selectProd.id = 1;
if (WXDBProdUploadForm.Instance.lstTemuDBProductSelect.Count > 0)
selectProd.id = WXDBProdUploadForm.Instance.lstTemuDBProductSelect.Max(p => p.id) + 1;
//if (!string.IsNullOrEmpty(lblSetShop.Tag.ParseToString()))
// selectProd.shop_id = lblSetShop.Tag.ParseToString();
WXDBProdUploadForm.Instance.lstTemuDBProductSelect.Add(selectProd);
}
WXDBProdUploadForm.Instance.dbProdList_SaveComplete(WXDBProdUploadForm.Instance.lstTemuDBProductSelect);
}
}
}
}
+18 -18
View File
@@ -330,16 +330,16 @@ namespace TemuKJD.WXForms.ProductForms
// txtViewUvMin
//
this.txtViewUvMin.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.txtViewUvMin.Location = new System.Drawing.Point(1133, 41);
this.txtViewUvMin.Location = new System.Drawing.Point(1132, 41);
this.txtViewUvMin.Name = "txtViewUvMin";
this.txtViewUvMin.Size = new System.Drawing.Size(57, 23);
this.txtViewUvMin.Size = new System.Drawing.Size(58, 23);
this.txtViewUvMin.TabIndex = 882;
this.txtViewUvMin.Visible = false;
//
// chkViewUvMin
//
this.chkViewUvMin.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.chkViewUvMin.Location = new System.Drawing.Point(1079, 42);
this.chkViewUvMin.Location = new System.Drawing.Point(1078, 42);
this.chkViewUvMin.Margin = new System.Windows.Forms.Padding(6, 3, 3, 3);
this.chkViewUvMin.Name = "chkViewUvMin";
this.chkViewUvMin.Size = new System.Drawing.Size(48, 21);
@@ -356,7 +356,7 @@ namespace TemuKJD.WXForms.ProductForms
"",
"爆款数据",
"普通商品"});
this.cmbHot.Location = new System.Drawing.Point(922, 7);
this.cmbHot.Location = new System.Drawing.Point(921, 7);
this.cmbHot.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbHot.Name = "cmbHot";
this.cmbHot.Size = new System.Drawing.Size(148, 25);
@@ -369,7 +369,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.lblHot.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.lblHot.AutoSize = true;
this.lblHot.Location = new System.Drawing.Point(878, 9);
this.lblHot.Location = new System.Drawing.Point(877, 9);
this.lblHot.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.lblHot.Name = "lblHot";
this.lblHot.Size = new System.Drawing.Size(44, 17);
@@ -384,7 +384,7 @@ namespace TemuKJD.WXForms.ProductForms
this.btnSearch.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnSearch.DisabledBackColor = System.Drawing.Color.Empty;
this.btnSearch.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSearch.Location = new System.Drawing.Point(1076, 5);
this.btnSearch.Location = new System.Drawing.Point(1075, 5);
this.btnSearch.Name = "btnSearch";
this.btnSearch.Size = new System.Drawing.Size(51, 25);
this.btnSearch.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -408,9 +408,9 @@ namespace TemuKJD.WXForms.ProductForms
this.btnEmpty.CanvasColor = System.Drawing.SystemColors.Control;
this.btnEmpty.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnEmpty.DisabledBackColor = System.Drawing.Color.Empty;
this.btnEmpty.Location = new System.Drawing.Point(1133, 5);
this.btnEmpty.Location = new System.Drawing.Point(1132, 5);
this.btnEmpty.Name = "btnEmpty";
this.btnEmpty.Size = new System.Drawing.Size(57, 25);
this.btnEmpty.Size = new System.Drawing.Size(58, 25);
this.btnEmpty.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnEmpty.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnEmpty.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
@@ -435,7 +435,7 @@ namespace TemuKJD.WXForms.ProductForms
this.cmbCat3.DropDownWidth = 1;
this.cmbCat3.FormattingEnabled = true;
this.cmbCat3.IntegralHeight = false;
this.cmbCat3.Location = new System.Drawing.Point(724, 7);
this.cmbCat3.Location = new System.Drawing.Point(723, 7);
this.cmbCat3.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCat3.Name = "cmbCat3";
this.cmbCat3.Size = new System.Drawing.Size(148, 25);
@@ -448,7 +448,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.label17.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label17.AutoSize = true;
this.label17.Location = new System.Drawing.Point(673, 9);
this.label17.Location = new System.Drawing.Point(672, 9);
this.label17.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(51, 17);
@@ -466,7 +466,7 @@ namespace TemuKJD.WXForms.ProductForms
this.cmbCat2.Location = new System.Drawing.Point(519, 7);
this.cmbCat2.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCat2.Name = "cmbCat2";
this.cmbCat2.Size = new System.Drawing.Size(148, 25);
this.cmbCat2.Size = new System.Drawing.Size(147, 25);
this.cmbCat2.TabIndex = 804;
this.cmbCat2.Text = "全部";
this.cmbCat2.SelectedIndexChanged += new System.EventHandler(this.cmbCat2_SelectedIndexChanged);
@@ -491,7 +491,7 @@ namespace TemuKJD.WXForms.ProductForms
this.cmbCat1.DropDownWidth = 1;
this.cmbCat1.FormattingEnabled = true;
this.cmbCat1.IntegralHeight = false;
this.cmbCat1.Location = new System.Drawing.Point(295, 7);
this.cmbCat1.Location = new System.Drawing.Point(295, 5);
this.cmbCat1.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCat1.Name = "cmbCat1";
this.cmbCat1.Size = new System.Drawing.Size(148, 25);
@@ -551,7 +551,7 @@ namespace TemuKJD.WXForms.ProductForms
"安全+未校验",
"安全商品",
"未校验"});
this.cmbWxSafe.Location = new System.Drawing.Point(71, 42);
this.cmbWxSafe.Location = new System.Drawing.Point(71, 40);
this.cmbWxSafe.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbWxSafe.Name = "cmbWxSafe";
this.cmbWxSafe.Size = new System.Drawing.Size(148, 25);
@@ -599,7 +599,7 @@ namespace TemuKJD.WXForms.ProductForms
this.txtCatBoundLessThan.Location = new System.Drawing.Point(519, 41);
this.txtCatBoundLessThan.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtCatBoundLessThan.Name = "txtCatBoundLessThan";
this.txtCatBoundLessThan.Size = new System.Drawing.Size(148, 23);
this.txtCatBoundLessThan.Size = new System.Drawing.Size(147, 23);
this.txtCatBoundLessThan.TabIndex = 883;
this.txtCatBoundLessThan.Text = "100000";
this.txtCatBoundLessThan.Visible = false;
@@ -608,7 +608,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.cmbGroupFilter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.cmbGroupFilter.FormattingEnabled = true;
this.cmbGroupFilter.Location = new System.Drawing.Point(922, 42);
this.cmbGroupFilter.Location = new System.Drawing.Point(921, 42);
this.cmbGroupFilter.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbGroupFilter.Name = "cmbGroupFilter";
this.cmbGroupFilter.Size = new System.Drawing.Size(148, 25);
@@ -620,7 +620,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.lblSourceType.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.lblSourceType.AutoSize = true;
this.lblSourceType.Location = new System.Drawing.Point(680, 44);
this.lblSourceType.Location = new System.Drawing.Point(679, 44);
this.lblSourceType.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.lblSourceType.Name = "lblSourceType";
this.lblSourceType.Size = new System.Drawing.Size(44, 17);
@@ -632,7 +632,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.lblGroupFilter.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.lblGroupFilter.AutoSize = true;
this.lblGroupFilter.Location = new System.Drawing.Point(878, 44);
this.lblGroupFilter.Location = new System.Drawing.Point(877, 44);
this.lblGroupFilter.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.lblGroupFilter.Name = "lblGroupFilter";
this.lblGroupFilter.Size = new System.Drawing.Size(44, 17);
@@ -655,7 +655,7 @@ namespace TemuKJD.WXForms.ProductForms
"机会商品",
"以图搜品",
"外部数据"});
this.cmbSourceType.Location = new System.Drawing.Point(724, 42);
this.cmbSourceType.Location = new System.Drawing.Point(723, 42);
this.cmbSourceType.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbSourceType.Name = "cmbSourceType";
this.cmbSourceType.Size = new System.Drawing.Size(148, 25);