拼多多版权限管理 指定类目上传 ai图片上传权限管理
This commit is contained in:
1 parent
58798805ed
commit
ce23b0a49a
28 files changed
+1265
-483
No files matched your search
@@ -239,43 +239,50 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
upload_draft_product_lst = NaiBa.Util.Helper.ConfigHelper.LoadConfig<NaiBa.Util.ConcurrentList<TemuDBProductSelect>>("wx_select_upload_draft_products");
|
||||
if (upload_draft_product_lst == null)
|
||||
upload_draft_product_lst = new ConcurrentList<TemuDBProductSelect>();
|
||||
foreach (var selectProd in upload_draft_product_lst)
|
||||
Task.Run(() =>
|
||||
{
|
||||
int rowIndex = 0;
|
||||
this.dgvSelectProduct.Rows.Insert(rowIndex,
|
||||
true,
|
||||
selectProd.id,
|
||||
selectProd.shop_id,
|
||||
selectProd.shop_account,
|
||||
"登录",
|
||||
"进店",
|
||||
BaseClass.SaLevel > 0 ? selectProd.spu_id : selectProd.spu_id.ParseToString().GetHashCode().ParseToString().Trim('-'),
|
||||
selectProd.skc_id,
|
||||
selectProd.main_img,
|
||||
DataGridViewExtension.defaultBitmap,
|
||||
"",
|
||||
null,
|
||||
selectProd.product_name, // 用户端显示商品原名
|
||||
selectProd.cat_name,
|
||||
BaseClass.SaLevel > 0 ? selectProd.ext_code : selectProd.ext_code.ParseToString().GetHashCode().ParseToString().Trim('-'),
|
||||
selectProd.status,
|
||||
selectProd.draft_id,
|
||||
selectProd.notes,
|
||||
(selectProd.user_notes + " 编辑").Trim(),
|
||||
"删除",
|
||||
selectProd.add_time.ToString("yy-MM-dd HH:mm:ss"),
|
||||
"");
|
||||
|
||||
dgvSelectProduct.Rows[rowIndex].Height = 60;
|
||||
|
||||
int maxRowCount = 10000;
|
||||
while (dgvSelectProduct.Rows.Count > maxRowCount)
|
||||
foreach (var selectProd in upload_draft_product_lst.Reverse().ToList())
|
||||
{
|
||||
dgvSelectProduct.Rows.RemoveAt(maxRowCount);
|
||||
}
|
||||
}
|
||||
int maxRowCount = 10000;
|
||||
if (dgvSelectProduct.Rows.Count >= maxRowCount)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (dgvSelectProduct.Rows.Count % 100 == 0)
|
||||
Thread.Sleep(1);
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
int rowIndex = this.dgvSelectProduct.Rows.Add(
|
||||
true,
|
||||
selectProd.id,
|
||||
selectProd.shop_id,
|
||||
selectProd.shop_account,
|
||||
"登录",
|
||||
"进店",
|
||||
BaseClass.SaLevel > 0 ? selectProd.spu_id : selectProd.spu_id.ParseToString().GetHashCode().ParseToString().Trim('-'),
|
||||
selectProd.skc_id,
|
||||
selectProd.main_img,
|
||||
DataGridViewExtension.defaultBitmap,
|
||||
"",
|
||||
null,
|
||||
selectProd.product_name, // 用户端显示商品原名
|
||||
selectProd.cat_name,
|
||||
BaseClass.SaLevel > 0 ? selectProd.ext_code : selectProd.ext_code.ParseToString().GetHashCode().ParseToString().Trim('-'),
|
||||
selectProd.status,
|
||||
selectProd.draft_id,
|
||||
selectProd.notes,
|
||||
(selectProd.user_notes + " 编辑").Trim(),
|
||||
"删除",
|
||||
selectProd.add_time.ToString("yy-MM-dd HH:mm:ss"),
|
||||
""
|
||||
);
|
||||
|
||||
//#if DEBUG
|
||||
dgvSelectProduct.Rows[rowIndex].Height = 60;
|
||||
}));
|
||||
}
|
||||
});
|
||||
|
||||
//#if DEBUG
|
||||
if (BaseClass.SaLevel == 1)
|
||||
{
|
||||
//lblExtCodeFilter.Visible = true;
|
||||
|
||||
@@ -355,7 +355,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.cmbCat3.DropDownWidth = 1;
|
||||
this.cmbCat3.FormattingEnabled = true;
|
||||
this.cmbCat3.IntegralHeight = false;
|
||||
this.cmbCat3.Location = new System.Drawing.Point(718, 5);
|
||||
this.cmbCat3.Location = new System.Drawing.Point(718, 7);
|
||||
this.cmbCat3.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbCat3.Name = "cmbCat3";
|
||||
this.cmbCat3.Size = new System.Drawing.Size(146, 25);
|
||||
@@ -383,7 +383,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.cmbCat2.DropDownWidth = 1;
|
||||
this.cmbCat2.FormattingEnabled = true;
|
||||
this.cmbCat2.IntegralHeight = false;
|
||||
this.cmbCat2.Location = new System.Drawing.Point(515, 5);
|
||||
this.cmbCat2.Location = new System.Drawing.Point(515, 7);
|
||||
this.cmbCat2.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbCat2.Name = "cmbCat2";
|
||||
this.cmbCat2.Size = new System.Drawing.Size(146, 25);
|
||||
@@ -411,7 +411,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.cmbCat1.DropDownWidth = 1;
|
||||
this.cmbCat1.FormattingEnabled = true;
|
||||
this.cmbCat1.IntegralHeight = false;
|
||||
this.cmbCat1.Location = new System.Drawing.Point(293, 5);
|
||||
this.cmbCat1.Location = new System.Drawing.Point(293, 7);
|
||||
this.cmbCat1.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbCat1.Name = "cmbCat1";
|
||||
this.cmbCat1.Size = new System.Drawing.Size(146, 25);
|
||||
@@ -471,7 +471,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
"安全+未校验",
|
||||
"安全商品",
|
||||
"未校验"});
|
||||
this.cmbWxSafe.Location = new System.Drawing.Point(71, 40);
|
||||
this.cmbWxSafe.Location = new System.Drawing.Point(71, 42);
|
||||
this.cmbWxSafe.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbWxSafe.Name = "cmbWxSafe";
|
||||
this.cmbWxSafe.Size = new System.Drawing.Size(146, 25);
|
||||
@@ -494,7 +494,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(938, 5);
|
||||
this.cmbGroupFilter.Location = new System.Drawing.Point(938, 7);
|
||||
this.cmbGroupFilter.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbGroupFilter.Name = "cmbGroupFilter";
|
||||
this.cmbGroupFilter.Size = new System.Drawing.Size(146, 25);
|
||||
@@ -516,7 +516,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
"机会商品",
|
||||
"以图搜品",
|
||||
"外部数据"});
|
||||
this.cmbSourceType.Location = new System.Drawing.Point(718, 40);
|
||||
this.cmbSourceType.Location = new System.Drawing.Point(718, 42);
|
||||
this.cmbSourceType.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbSourceType.Name = "cmbSourceType";
|
||||
this.cmbSourceType.Size = new System.Drawing.Size(146, 25);
|
||||
@@ -546,7 +546,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
"",
|
||||
"是",
|
||||
"否"});
|
||||
this.cmbRelation.Location = new System.Drawing.Point(938, 40);
|
||||
this.cmbRelation.Location = new System.Drawing.Point(938, 42);
|
||||
this.cmbRelation.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbRelation.Name = "cmbRelation";
|
||||
this.cmbRelation.Size = new System.Drawing.Size(146, 25);
|
||||
|
||||
+7
-7
@@ -420,7 +420,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.cmbCat3.DropDownWidth = 1;
|
||||
this.cmbCat3.FormattingEnabled = true;
|
||||
this.cmbCat3.IntegralHeight = false;
|
||||
this.cmbCat3.Location = new System.Drawing.Point(718, 7);
|
||||
this.cmbCat3.Location = new System.Drawing.Point(718, 5);
|
||||
this.cmbCat3.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbCat3.Name = "cmbCat3";
|
||||
this.cmbCat3.Size = new System.Drawing.Size(146, 25);
|
||||
@@ -448,7 +448,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.cmbCat2.DropDownWidth = 1;
|
||||
this.cmbCat2.FormattingEnabled = true;
|
||||
this.cmbCat2.IntegralHeight = false;
|
||||
this.cmbCat2.Location = new System.Drawing.Point(515, 7);
|
||||
this.cmbCat2.Location = new System.Drawing.Point(515, 5);
|
||||
this.cmbCat2.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbCat2.Name = "cmbCat2";
|
||||
this.cmbCat2.Size = new System.Drawing.Size(146, 25);
|
||||
@@ -476,7 +476,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.cmbCat1.DropDownWidth = 1;
|
||||
this.cmbCat1.FormattingEnabled = true;
|
||||
this.cmbCat1.IntegralHeight = false;
|
||||
this.cmbCat1.Location = new System.Drawing.Point(293, 5);
|
||||
this.cmbCat1.Location = new System.Drawing.Point(293, 7);
|
||||
this.cmbCat1.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbCat1.Name = "cmbCat1";
|
||||
this.cmbCat1.Size = new System.Drawing.Size(146, 25);
|
||||
@@ -536,7 +536,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
"安全+未校验",
|
||||
"安全商品",
|
||||
"未校验"});
|
||||
this.cmbWxSafe.Location = new System.Drawing.Point(71, 40);
|
||||
this.cmbWxSafe.Location = new System.Drawing.Point(71, 42);
|
||||
this.cmbWxSafe.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbWxSafe.Name = "cmbWxSafe";
|
||||
this.cmbWxSafe.Size = new System.Drawing.Size(146, 25);
|
||||
@@ -559,7 +559,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(938, 7);
|
||||
this.cmbGroupFilter.Location = new System.Drawing.Point(938, 5);
|
||||
this.cmbGroupFilter.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbGroupFilter.Name = "cmbGroupFilter";
|
||||
this.cmbGroupFilter.Size = new System.Drawing.Size(146, 25);
|
||||
@@ -580,7 +580,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
"机会商品",
|
||||
"以图搜品",
|
||||
"外部数据"});
|
||||
this.cmbSourceType.Location = new System.Drawing.Point(718, 42);
|
||||
this.cmbSourceType.Location = new System.Drawing.Point(718, 40);
|
||||
this.cmbSourceType.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbSourceType.Name = "cmbSourceType";
|
||||
this.cmbSourceType.Size = new System.Drawing.Size(146, 25);
|
||||
@@ -610,7 +610,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
"",
|
||||
"是",
|
||||
"否"});
|
||||
this.cmbRelation.Location = new System.Drawing.Point(938, 42);
|
||||
this.cmbRelation.Location = new System.Drawing.Point(938, 40);
|
||||
this.cmbRelation.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbRelation.Name = "cmbRelation";
|
||||
this.cmbRelation.Size = new System.Drawing.Size(146, 25);
|
||||
|
||||
Reference in new issue
Block a user