拼多多版权限管理 指定类目上传 ai图片上传权限管理
This commit is contained in:
1 parent
58798805ed
commit
ce23b0a49a
28 files changed
+1265
-483
No files matched your search
+21
-6
@@ -42,6 +42,7 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.chkDown981Failed = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.txtLowPriceAddPriceTimes = new System.Windows.Forms.TextBox();
|
||||
this.txtLowPriceAddMorePrice = new System.Windows.Forms.TextBox();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
@@ -197,6 +198,7 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.ucGroupBoxEx2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.ucGroupBoxEx2.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx2.Controls.Add(this.chkDown981Failed);
|
||||
this.ucGroupBoxEx2.Controls.Add(this.txtLowPriceAddPriceTimes);
|
||||
this.ucGroupBoxEx2.Controls.Add(this.txtLowPriceAddMorePrice);
|
||||
this.ucGroupBoxEx2.Controls.Add(this.label8);
|
||||
@@ -243,12 +245,24 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
this.ucGroupBoxEx2.TabStop = false;
|
||||
this.ucGroupBoxEx2.Text = "活动价格配置";
|
||||
//
|
||||
// txtLowPriceAddTimes
|
||||
// chkDown981Failed
|
||||
//
|
||||
this.chkDown981Failed.AutoSize = true;
|
||||
this.chkDown981Failed.Checked = true;
|
||||
this.chkDown981Failed.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.chkDown981Failed.Location = new System.Drawing.Point(694, 16);
|
||||
this.chkDown981Failed.Name = "chkDown981Failed";
|
||||
this.chkDown981Failed.Size = new System.Drawing.Size(144, 21);
|
||||
this.chkDown981Failed.TabIndex = 938;
|
||||
this.chkDown981Failed.Text = "下架报名981失败商品";
|
||||
this.chkDown981Failed.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// txtLowPriceAddPriceTimes
|
||||
//
|
||||
this.txtLowPriceAddPriceTimes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.txtLowPriceAddPriceTimes.Location = new System.Drawing.Point(770, 89);
|
||||
this.txtLowPriceAddPriceTimes.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
|
||||
this.txtLowPriceAddPriceTimes.Name = "txtLowPriceAddTimes";
|
||||
this.txtLowPriceAddPriceTimes.Name = "txtLowPriceAddPriceTimes";
|
||||
this.txtLowPriceAddPriceTimes.Size = new System.Drawing.Size(31, 23);
|
||||
this.txtLowPriceAddPriceTimes.TabIndex = 924;
|
||||
this.txtLowPriceAddPriceTimes.Text = "1.0";
|
||||
@@ -335,7 +349,7 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
//
|
||||
this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(831, 18);
|
||||
this.label5.Location = new System.Drawing.Point(944, 18);
|
||||
this.label5.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(20, 17);
|
||||
@@ -346,7 +360,7 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
//
|
||||
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(713, 18);
|
||||
this.label3.Location = new System.Drawing.Point(838, 18);
|
||||
this.label3.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(80, 17);
|
||||
@@ -355,10 +369,10 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
//
|
||||
// txtSleepTime
|
||||
//
|
||||
this.txtSleepTime.Location = new System.Drawing.Point(793, 15);
|
||||
this.txtSleepTime.Location = new System.Drawing.Point(918, 15);
|
||||
this.txtSleepTime.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
|
||||
this.txtSleepTime.Name = "txtSleepTime";
|
||||
this.txtSleepTime.Size = new System.Drawing.Size(38, 23);
|
||||
this.txtSleepTime.Size = new System.Drawing.Size(26, 23);
|
||||
this.txtSleepTime.TabIndex = 891;
|
||||
this.txtSleepTime.Text = "1";
|
||||
this.txtSleepTime.TextChanged += new System.EventHandler(this.txtSleepTime_TextChanged);
|
||||
@@ -1748,5 +1762,6 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
private System.Windows.Forms.Label label8;
|
||||
private System.Windows.Forms.Label label13;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private UserComponent.UcCheckBox chkDown981Failed;
|
||||
}
|
||||
}
|
||||
@@ -636,10 +636,10 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
Thread.Sleep((moreSleepTime * 1000).ParseToInt());
|
||||
for (int i = 0; i < 5 && activityRst1.Contains("频繁"); i++)
|
||||
{
|
||||
int totalPage = 9999;
|
||||
int page = 1;
|
||||
if (i > 0)
|
||||
{
|
||||
int totalPage = 9999;
|
||||
int page = 1;
|
||||
int readCount = 0;
|
||||
while (page < totalPage)
|
||||
{
|
||||
@@ -770,10 +770,10 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
Thread.Sleep((moreSleepTime * 1000).ParseToInt());
|
||||
for (int i = 0; i < 5 && activityRst1.Contains("频繁"); i++)
|
||||
{
|
||||
int totalPage = 9999;
|
||||
int page = 1;
|
||||
if (i > 0)
|
||||
{
|
||||
int totalPage = 9999;
|
||||
int page = 1;
|
||||
int readCount = 0;
|
||||
while (page < totalPage)
|
||||
{
|
||||
@@ -2961,6 +2961,10 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
else
|
||||
row.Cells["colOpResult"].Value = "源商品不存在";
|
||||
}));
|
||||
if (chkDown981Failed.Checked && actProd != null)
|
||||
{
|
||||
DownProd(shop, new List<long?>() { actProd.goods_id });
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -2981,6 +2985,10 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
else
|
||||
row.Cells["colOpResult"].Value = "匹配到多个同货号源商品无法确定,跳过";
|
||||
}));
|
||||
if (chkDown981Failed.Checked)
|
||||
{
|
||||
DownProd(shop, new List<long?>() { actProd.goods_id });
|
||||
}
|
||||
continue;
|
||||
}
|
||||
var dbProd = dbProds.FirstOrDefault();
|
||||
@@ -2995,6 +3003,10 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
{
|
||||
row.Cells["colOpResult"].Value = "商品查询错误 " + convertRst;
|
||||
}));
|
||||
if (chkDown981Failed.Checked)
|
||||
{
|
||||
DownProd(shop, new List<long?>() { actProd.goods_id });
|
||||
}
|
||||
continue;
|
||||
}
|
||||
}
|
||||
@@ -3012,6 +3024,10 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
{
|
||||
row.Cells["colOpResult"].Value = "商品格式化错误 " + ex.Message;
|
||||
}));
|
||||
if (chkDown981Failed.Checked)
|
||||
{
|
||||
DownProd(shop, new List<long?>() { actProd.goods_id });
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -3048,9 +3064,17 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
{
|
||||
shippingTemplateJson = JsonHelper.SerializeObject(JsonHelper.JObjectParse(htmlShipping)["data"]);
|
||||
}
|
||||
catch
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row.Cells["colOpResult"].Value = "运费模板获取失败 " + ex.Message;
|
||||
}));
|
||||
if (chkDown981Failed.Checked)
|
||||
{
|
||||
DownProd(shop, new List<long?>() { actProd.goods_id });
|
||||
}
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3072,6 +3096,10 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
{
|
||||
row.Cells["colOpResult"].Value = "运费模板获取失败 " + errMsg;
|
||||
}));
|
||||
if (chkDown981Failed.Checked)
|
||||
{
|
||||
DownProd(shop, new List<long?>() { actProd.goods_id });
|
||||
}
|
||||
continue;
|
||||
}
|
||||
try
|
||||
@@ -3091,6 +3119,15 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row.Cells["colOpResult"].Value = "运费模板获取失败 " + ex.Message;
|
||||
}));
|
||||
if (chkDown981Failed.Checked)
|
||||
{
|
||||
DownProd(shop, new List<long?>() { actProd.goods_id });
|
||||
}
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3116,6 +3153,10 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
{
|
||||
row.Cells["colOpResult"].Value = "运费模板获取失败 " + ex.Message;
|
||||
}));
|
||||
if (chkDown981Failed.Checked)
|
||||
{
|
||||
DownProd(shop, new List<long?>() { actProd.goods_id });
|
||||
}
|
||||
continue;
|
||||
}
|
||||
}
|
||||
@@ -3125,6 +3166,10 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
{
|
||||
row.Cells["colOpResult"].Value = "运费模板获取失败 未获取到";
|
||||
}));
|
||||
if (chkDown981Failed.Checked)
|
||||
{
|
||||
DownProd(shop, new List<long?>() { actProd.goods_id });
|
||||
}
|
||||
continue;
|
||||
}
|
||||
prodInfo.ship_price = shipPrice;
|
||||
@@ -3253,6 +3298,9 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
break;
|
||||
}
|
||||
|
||||
//任何环节报名失败直接下架,包括频繁
|
||||
var Act981FailedIds = new List<long?>();
|
||||
|
||||
// 检测是否可以报名活动
|
||||
string checkActivityRst = "{\"success\":true,\"msg\":\"活动校验成功\",\"fail_list\":[]}";
|
||||
checkActivityRst = CheckActivity20981(shop, prodParamLst);
|
||||
@@ -3265,14 +3313,20 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
foreach (var row in rowOperateLst)
|
||||
row.Cells["colOpResult"].Value = BaseRegex.GetStringJson(ref checkActivityRst, "msg");
|
||||
}));
|
||||
|
||||
foreach (var prodParam in prodParamLst)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
var failStr = JsonHelper.SerializeObject(JsonHelper.JObjectParse(checkActivityRst)["fail_list"]);
|
||||
var failList = JsonHelper.DeserializeJsonToList<AddActivityFailInfo>(failStr);
|
||||
if (failList == null)
|
||||
failList = new List<AddActivityFailInfo>();
|
||||
|
||||
failList = new List<AddActivityFailInfo>();
|
||||
|
||||
if (1 == 1)
|
||||
{
|
||||
foreach (var row in rowOperateLst)
|
||||
@@ -3289,6 +3343,7 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
|
||||
// 删除校验未通过的商品
|
||||
var goodsIds = failList.Select(f => f.goods_id).ToList();
|
||||
Act981FailedIds.AddRange(goodsIds);
|
||||
prodParamLst.RemoveAll(p => goodsIds.Contains(p.goods_id));
|
||||
// 筛除校验未通过的商品所在的列表行
|
||||
rowOperateLst = rowOperateLst.Where(r => prodParamLst.Any(p => p.goods_id == r.Cells["colSpuId"].Value.ParseToLong())).ToList();
|
||||
@@ -3297,35 +3352,9 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
goodsIds = failList.Where(f => f.error_msg.Contains("所有活动报价均低于产品期望价格")).Select(f => f.goods_id).ToList();
|
||||
if (chkDownNoPrice.Checked)
|
||||
{
|
||||
if (goodsIds.Count > 0)
|
||||
{
|
||||
var rws = dgvActProduct.Rows.Cast<DataGridViewRow>().Where(r => goodsIds.Contains(r.Cells["colSpuId"].Value.ParseToLong())).ToList();
|
||||
var downProdRst = "";
|
||||
for (int i = 0; i < 5 && !downProdRst.Contains("\"success\":true"); i++)
|
||||
{
|
||||
Thread.Sleep(Randomx.GetId(500, 1500));
|
||||
downProdRst = PDDProductUpDownForm.down_goods(shop, string.Join(",", goodsIds));
|
||||
}
|
||||
if (!downProdRst.Contains("\"success\":true"))
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
var error = BaseRegex.GetStringJson(ref downProdRst, "errorMsg");
|
||||
if (string.IsNullOrEmpty(error))
|
||||
error = downProdRst;
|
||||
foreach (var rw in rws)
|
||||
rw.Cells["colOpResult"].Value += " 尝试下架失败 " + error;
|
||||
}));
|
||||
}
|
||||
else
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
foreach (var rw in rws)
|
||||
rw.Cells["colOpResult"].Value += " 下架成功";
|
||||
}));
|
||||
}
|
||||
}
|
||||
// 检测失败的从实际报名失败的列表中移除。
|
||||
Act981FailedIds.RemoveAll(fId => goodsIds.Contains(fId));
|
||||
DownProd(shop, goodsIds);
|
||||
}
|
||||
prodParamLst.RemoveAll(p => goodsIds.Contains(p.goods_id));
|
||||
|
||||
@@ -3368,7 +3397,10 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
if (!mdyQuantityRst.Contains("\"success\":true"))
|
||||
{
|
||||
goodsIds.Add(prodParam.goods_id);
|
||||
Act981FailedIds.Add(prodParam.goods_id);
|
||||
var error = BaseRegex.GetStringJson(ref mdyQuantityRst, "error_msg");
|
||||
if (string.IsNullOrEmpty(error))
|
||||
error = BaseRegex.GetStringJson(ref mdyQuantityRst, "errorMsg");
|
||||
if (string.IsNullOrEmpty(error))
|
||||
error = mdyQuantityRst;
|
||||
|
||||
@@ -3391,6 +3423,7 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
}
|
||||
}
|
||||
}
|
||||
Act981FailedIds.AddRange(goodsIds);
|
||||
prodParamLst.RemoveAll(p => goodsIds.Contains(p.goods_id));
|
||||
// 筛除修改未给价sku失败的商品所在的列表行
|
||||
rowOperateLst = rowOperateLst.Where(r => prodParamLst.Any(p => p.goods_id == r.Cells["colSpuId"].Value.ParseToLong())).ToList();
|
||||
@@ -3482,36 +3515,72 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
continue;
|
||||
}
|
||||
}
|
||||
Act981FailedIds.AddRange(goodsIds);
|
||||
// 移除修改库存失败的商品
|
||||
prodParamLst.RemoveAll(p => goodsIds.Contains(p.goods_id));
|
||||
rowOperateLst = rowOperateLst.Where(r => prodParamLst.Any(p => p.goods_id == r.Cells["colSpuId"].Value.ParseToLong())).ToList();
|
||||
}
|
||||
|
||||
if (prodParamLst.Count == 0)
|
||||
// 剩余商品数量大于0才报名活动
|
||||
if (prodParamLst.Count > 0)
|
||||
{
|
||||
continue;
|
||||
|
||||
string activityRsts = SignActivity(shop, prodParamLst, sign22347, sign20981, sign21365, sign15996, sign23513, sign23730, sign23456);
|
||||
failList = JsonHelper.DeserializeJsonToList<AddActivityFailInfo>(activityRsts);
|
||||
foreach (var prodParam in prodParamLst)
|
||||
{
|
||||
var prodActRsts = failList.Where(f => f.goods_id == prodParam.goods_id).ToList();
|
||||
var actSuccessStr = "";
|
||||
var actFailStr = "";
|
||||
foreach (var actRst in prodActRsts)
|
||||
{
|
||||
if (actRst.error_msg.Contains("报名成功"))
|
||||
actSuccessStr += " " + actRst.error_msg;
|
||||
else
|
||||
actFailStr += "\r\n" + actRst.error_msg;
|
||||
}
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
var rws = rowOperateLst.Where(r => prodParam.goods_id == r.Cells["colSpuId"].Value.ParseToLong()).ToList();
|
||||
foreach (var rw in rws)
|
||||
rw.Cells["colOpResult"].Value = (actSuccessStr + actFailStr).Trim('\r', '\n', ' ');
|
||||
}));
|
||||
|
||||
if (!actSuccessStr.Contains("981报名成功"))
|
||||
{
|
||||
Act981FailedIds.Add(prodParam.goods_id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
string activityRsts = SignActivity(shop, prodParamLst, sign22347, sign20981, sign21365, sign15996, sign23513, sign23730, sign23456);
|
||||
failList = JsonHelper.DeserializeJsonToList<AddActivityFailInfo>(activityRsts);
|
||||
foreach (var prodParam in prodParamLst)
|
||||
if (Act981FailedIds.Count > 0 && chkDown981Failed.Checked)
|
||||
{
|
||||
var prodActRsts = failList.Where(f => f.goods_id == prodParam.goods_id);
|
||||
var actSuccessStr = "";
|
||||
var actFailStr = "";
|
||||
foreach (var actRst in prodActRsts)
|
||||
var rws = dgvActProduct.Rows.Cast<DataGridViewRow>().Where(r => Act981FailedIds.Contains(r.Cells["colSpuId"].Value.ParseToLong())).ToList();
|
||||
var downProdRst = "";
|
||||
for (int i = 0; i < 5 && !downProdRst.Contains("\"success\":true"); i++)
|
||||
{
|
||||
if (actRst.error_msg.Contains("报名成功"))
|
||||
actSuccessStr += " " + actRst.error_msg;
|
||||
else
|
||||
actFailStr += "\r\n" + actRst.error_msg;
|
||||
Thread.Sleep(Randomx.GetId(500, 1500));
|
||||
downProdRst = PDDProductUpDownForm.down_goods(shop, string.Join(",", Act981FailedIds));
|
||||
}
|
||||
Invoke(new Action(() =>
|
||||
if (!downProdRst.Contains("\"success\":true"))
|
||||
{
|
||||
var rws = rowOperateLst.Where(r => prodParam.goods_id == r.Cells["colSpuId"].Value.ParseToLong()).ToList();
|
||||
foreach (var rw in rws)
|
||||
rw.Cells["colOpResult"].Value = (actSuccessStr + actFailStr).Trim('\r', '\n', ' ');
|
||||
}));
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
var error = BaseRegex.GetStringJson(ref downProdRst, "errorMsg");
|
||||
if (string.IsNullOrEmpty(error))
|
||||
error = downProdRst;
|
||||
foreach (var rw in rws)
|
||||
rw.Cells["colOpResult"].Value = "尝试下架失败 " + error + " " + rw.Cells["colOpResult"].Value.ParseToString();
|
||||
}));
|
||||
}
|
||||
else
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
foreach (var rw in rws)
|
||||
rw.Cells["colOpResult"].Value = "下架成功 " + rw.Cells["colOpResult"].Value.ParseToString();
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -3537,6 +3606,39 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
}, cancellationTokenSource.Token);
|
||||
}
|
||||
|
||||
void DownProd(ShopLoginInfo shop, List<long?> goodsIds)
|
||||
{
|
||||
if (goodsIds.Count > 0)
|
||||
{
|
||||
var rws = dgvActProduct.Rows.Cast<DataGridViewRow>().Where(r => goodsIds.Contains(r.Cells["colSpuId"].Value.ParseToLong())).ToList();
|
||||
var downProdRst = "";
|
||||
for (int i = 0; i < 5 && !downProdRst.Contains("\"success\":true"); i++)
|
||||
{
|
||||
Thread.Sleep(Randomx.GetId(500, 1500));
|
||||
downProdRst = PDDProductUpDownForm.down_goods(shop, string.Join(",", goodsIds));
|
||||
}
|
||||
if (!downProdRst.Contains("\"success\":true"))
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
var error = BaseRegex.GetStringJson(ref downProdRst, "errorMsg");
|
||||
if (string.IsNullOrEmpty(error))
|
||||
error = downProdRst;
|
||||
foreach (var rw in rws)
|
||||
rw.Cells["colOpResult"].Value += " 尝试下架失败 " + error;
|
||||
}));
|
||||
}
|
||||
else
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
foreach (var rw in rws)
|
||||
rw.Cells["colOpResult"].Value += " 下架成功";
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void btnRefreshApi_Click(object sender, EventArgs e)
|
||||
{
|
||||
RefreshApi(true);
|
||||
|
||||
+182
-150
@@ -38,8 +38,10 @@ namespace TemuKJD.PDDForms.ProductForms
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.btnSelectNeedCutPrice = new DevComponents.DotNetBar.PanelEx();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.txtLowStock = new System.Windows.Forms.TextBox();
|
||||
this.btnSelectLowStock = new DevComponents.DotNetBar.PanelEx();
|
||||
@@ -93,6 +95,10 @@ namespace TemuKJD.PDDForms.ProductForms
|
||||
this.txtShopId = new System.Windows.Forms.TextBox();
|
||||
this.btnClearDgv = new DevComponents.DotNetBar.PanelEx();
|
||||
this.dgvProduct = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.splitContainer4 = new System.Windows.Forms.SplitContainer();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
this.btnClear = new DevComponents.DotNetBar.PanelEx();
|
||||
this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
|
||||
this.colCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.colSupplierId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colSupplierName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -111,10 +117,6 @@ namespace TemuKJD.PDDForms.ProductForms
|
||||
this.colIsOnSale = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colOpResult = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.splitContainer4 = new System.Windows.Forms.SplitContainer();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
this.btnClear = new DevComponents.DotNetBar.PanelEx();
|
||||
this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
@@ -166,6 +168,7 @@ namespace TemuKJD.PDDForms.ProductForms
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.ucGroupBoxEx2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.ucGroupBoxEx2.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx2.Controls.Add(this.btnSelectNeedCutPrice);
|
||||
this.ucGroupBoxEx2.Controls.Add(this.label10);
|
||||
this.ucGroupBoxEx2.Controls.Add(this.txtLowStock);
|
||||
this.ucGroupBoxEx2.Controls.Add(this.btnSelectLowStock);
|
||||
@@ -196,6 +199,30 @@ namespace TemuKJD.PDDForms.ProductForms
|
||||
this.ucGroupBoxEx2.TabStop = false;
|
||||
this.ucGroupBoxEx2.Text = "商品查询";
|
||||
//
|
||||
// btnSelectNeedCutPrice
|
||||
//
|
||||
this.btnSelectNeedCutPrice.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnSelectNeedCutPrice.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnSelectNeedCutPrice.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnSelectNeedCutPrice.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnSelectNeedCutPrice.Location = new System.Drawing.Point(706, 64);
|
||||
this.btnSelectNeedCutPrice.Name = "btnSelectNeedCutPrice";
|
||||
this.btnSelectNeedCutPrice.Size = new System.Drawing.Size(107, 23);
|
||||
this.btnSelectNeedCutPrice.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnSelectNeedCutPrice.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnSelectNeedCutPrice.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnSelectNeedCutPrice.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnSelectNeedCutPrice.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnSelectNeedCutPrice.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnSelectNeedCutPrice.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnSelectNeedCutPrice.Style.GradientAngle = 90;
|
||||
this.btnSelectNeedCutPrice.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnSelectNeedCutPrice.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnSelectNeedCutPrice.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnSelectNeedCutPrice.TabIndex = 711;
|
||||
this.btnSelectNeedCutPrice.Text = "选中权益失效商品";
|
||||
this.btnSelectNeedCutPrice.Click += new System.EventHandler(this.btnSelectNeedCutPrice_Click);
|
||||
//
|
||||
// label10
|
||||
//
|
||||
this.label10.AutoSize = true;
|
||||
@@ -971,143 +998,6 @@ namespace TemuKJD.PDDForms.ProductForms
|
||||
this.dgvProduct.TabIndex = 187;
|
||||
this.dgvProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvProduct_CellContentClick);
|
||||
//
|
||||
// colCheck
|
||||
//
|
||||
this.colCheck.Frozen = true;
|
||||
this.colCheck.HeaderText = "选择";
|
||||
this.colCheck.Name = "colCheck";
|
||||
this.colCheck.ReadOnly = true;
|
||||
this.colCheck.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colCheck.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.colCheck.Width = 30;
|
||||
//
|
||||
// colSupplierId
|
||||
//
|
||||
this.colSupplierId.HeaderText = "店铺Id";
|
||||
this.colSupplierId.Name = "colSupplierId";
|
||||
this.colSupplierId.ReadOnly = true;
|
||||
//
|
||||
// colSupplierName
|
||||
//
|
||||
this.colSupplierName.HeaderText = "店铺名称";
|
||||
this.colSupplierName.Name = "colSupplierName";
|
||||
this.colSupplierName.ReadOnly = true;
|
||||
this.colSupplierName.Width = 110;
|
||||
//
|
||||
// colImgUrl
|
||||
//
|
||||
this.colImgUrl.HeaderText = "图片地址";
|
||||
this.colImgUrl.Name = "colImgUrl";
|
||||
this.colImgUrl.ReadOnly = true;
|
||||
this.colImgUrl.Visible = false;
|
||||
//
|
||||
// colProductSkcPic
|
||||
//
|
||||
this.colProductSkcPic.HeaderText = "图片";
|
||||
this.colProductSkcPic.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Zoom;
|
||||
this.colProductSkcPic.Name = "colProductSkcPic";
|
||||
this.colProductSkcPic.ReadOnly = true;
|
||||
this.colProductSkcPic.Width = 60;
|
||||
//
|
||||
// colSpuId
|
||||
//
|
||||
this.colSpuId.HeaderText = "商品ID";
|
||||
this.colSpuId.Name = "colSpuId";
|
||||
this.colSpuId.ReadOnly = true;
|
||||
this.colSpuId.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colSpuId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.colSpuId.Width = 80;
|
||||
//
|
||||
// colExtCode
|
||||
//
|
||||
this.colExtCode.HeaderText = "商品编码";
|
||||
this.colExtCode.Name = "colExtCode";
|
||||
this.colExtCode.ReadOnly = true;
|
||||
//
|
||||
// colProductName
|
||||
//
|
||||
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colProductName.DefaultCellStyle = dataGridViewCellStyle5;
|
||||
this.colProductName.HeaderText = "商品标题";
|
||||
this.colProductName.Name = "colProductName";
|
||||
this.colProductName.ReadOnly = true;
|
||||
this.colProductName.Width = 150;
|
||||
//
|
||||
// colResource
|
||||
//
|
||||
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colResource.DefaultCellStyle = dataGridViewCellStyle6;
|
||||
this.colResource.HeaderText = "资源位";
|
||||
this.colResource.Name = "colResource";
|
||||
this.colResource.ReadOnly = true;
|
||||
this.colResource.Width = 70;
|
||||
//
|
||||
// colPrice
|
||||
//
|
||||
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colPrice.DefaultCellStyle = dataGridViewCellStyle7;
|
||||
this.colPrice.HeaderText = "价格";
|
||||
this.colPrice.Name = "colPrice";
|
||||
this.colPrice.ReadOnly = true;
|
||||
this.colPrice.Width = 105;
|
||||
//
|
||||
// colStock
|
||||
//
|
||||
this.colStock.HeaderText = "库存";
|
||||
this.colStock.Name = "colStock";
|
||||
this.colStock.ReadOnly = true;
|
||||
this.colStock.Width = 50;
|
||||
//
|
||||
// colFavorites
|
||||
//
|
||||
this.colFavorites.HeaderText = "收藏";
|
||||
this.colFavorites.Name = "colFavorites";
|
||||
this.colFavorites.ReadOnly = true;
|
||||
this.colFavorites.Width = 50;
|
||||
//
|
||||
// colSales
|
||||
//
|
||||
this.colSales.HeaderText = "总销量";
|
||||
this.colSales.Name = "colSales";
|
||||
this.colSales.ReadOnly = true;
|
||||
this.colSales.Width = 60;
|
||||
//
|
||||
// colSalesThirtyDays
|
||||
//
|
||||
this.colSalesThirtyDays.HeaderText = "30日销量";
|
||||
this.colSalesThirtyDays.Name = "colSalesThirtyDays";
|
||||
this.colSalesThirtyDays.ReadOnly = true;
|
||||
this.colSalesThirtyDays.Width = 70;
|
||||
//
|
||||
// colAddTime
|
||||
//
|
||||
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colAddTime.DefaultCellStyle = dataGridViewCellStyle8;
|
||||
this.colAddTime.HeaderText = "创建时间";
|
||||
this.colAddTime.Name = "colAddTime";
|
||||
this.colAddTime.ReadOnly = true;
|
||||
this.colAddTime.Width = 80;
|
||||
//
|
||||
// colIsOnSale
|
||||
//
|
||||
this.colIsOnSale.HeaderText = "在售/下架";
|
||||
this.colIsOnSale.Name = "colIsOnSale";
|
||||
this.colIsOnSale.ReadOnly = true;
|
||||
this.colIsOnSale.Width = 80;
|
||||
//
|
||||
// colStatus
|
||||
//
|
||||
this.colStatus.HeaderText = "审核状态";
|
||||
this.colStatus.Name = "colStatus";
|
||||
this.colStatus.ReadOnly = true;
|
||||
//
|
||||
// colOpResult
|
||||
//
|
||||
this.colOpResult.HeaderText = "操作结果";
|
||||
this.colOpResult.Name = "colOpResult";
|
||||
this.colOpResult.ReadOnly = true;
|
||||
this.colOpResult.Width = 200;
|
||||
//
|
||||
// splitContainer4
|
||||
//
|
||||
this.splitContainer4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
@@ -1188,6 +1078,147 @@ namespace TemuKJD.PDDForms.ProductForms
|
||||
this.panelEx1.Text = "停止当前操作";
|
||||
this.panelEx1.Click += new System.EventHandler(this.btnCancel_Click);
|
||||
//
|
||||
// colCheck
|
||||
//
|
||||
this.colCheck.Frozen = true;
|
||||
this.colCheck.HeaderText = "选择";
|
||||
this.colCheck.Name = "colCheck";
|
||||
this.colCheck.ReadOnly = true;
|
||||
this.colCheck.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colCheck.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.colCheck.Width = 30;
|
||||
//
|
||||
// colSupplierId
|
||||
//
|
||||
this.colSupplierId.HeaderText = "店铺Id";
|
||||
this.colSupplierId.Name = "colSupplierId";
|
||||
this.colSupplierId.ReadOnly = true;
|
||||
this.colSupplierId.Width = 90;
|
||||
//
|
||||
// colSupplierName
|
||||
//
|
||||
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colSupplierName.DefaultCellStyle = dataGridViewCellStyle5;
|
||||
this.colSupplierName.HeaderText = "店铺名称";
|
||||
this.colSupplierName.Name = "colSupplierName";
|
||||
this.colSupplierName.ReadOnly = true;
|
||||
this.colSupplierName.Width = 90;
|
||||
//
|
||||
// colImgUrl
|
||||
//
|
||||
this.colImgUrl.HeaderText = "图片地址";
|
||||
this.colImgUrl.Name = "colImgUrl";
|
||||
this.colImgUrl.ReadOnly = true;
|
||||
this.colImgUrl.Visible = false;
|
||||
//
|
||||
// colProductSkcPic
|
||||
//
|
||||
this.colProductSkcPic.HeaderText = "图片";
|
||||
this.colProductSkcPic.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Zoom;
|
||||
this.colProductSkcPic.Name = "colProductSkcPic";
|
||||
this.colProductSkcPic.ReadOnly = true;
|
||||
this.colProductSkcPic.Width = 60;
|
||||
//
|
||||
// colSpuId
|
||||
//
|
||||
this.colSpuId.HeaderText = "商品ID";
|
||||
this.colSpuId.Name = "colSpuId";
|
||||
this.colSpuId.ReadOnly = true;
|
||||
this.colSpuId.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colSpuId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.colSpuId.Width = 95;
|
||||
//
|
||||
// colExtCode
|
||||
//
|
||||
this.colExtCode.HeaderText = "商品编码";
|
||||
this.colExtCode.Name = "colExtCode";
|
||||
this.colExtCode.ReadOnly = true;
|
||||
//
|
||||
// colProductName
|
||||
//
|
||||
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colProductName.DefaultCellStyle = dataGridViewCellStyle6;
|
||||
this.colProductName.HeaderText = "商品标题";
|
||||
this.colProductName.Name = "colProductName";
|
||||
this.colProductName.ReadOnly = true;
|
||||
this.colProductName.Width = 150;
|
||||
//
|
||||
// colResource
|
||||
//
|
||||
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colResource.DefaultCellStyle = dataGridViewCellStyle7;
|
||||
this.colResource.HeaderText = "资源位";
|
||||
this.colResource.Name = "colResource";
|
||||
this.colResource.ReadOnly = true;
|
||||
this.colResource.Width = 70;
|
||||
//
|
||||
// colPrice
|
||||
//
|
||||
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colPrice.DefaultCellStyle = dataGridViewCellStyle8;
|
||||
this.colPrice.HeaderText = "价格";
|
||||
this.colPrice.Name = "colPrice";
|
||||
this.colPrice.ReadOnly = true;
|
||||
this.colPrice.Width = 130;
|
||||
//
|
||||
// colStock
|
||||
//
|
||||
this.colStock.HeaderText = "库存";
|
||||
this.colStock.Name = "colStock";
|
||||
this.colStock.ReadOnly = true;
|
||||
this.colStock.Width = 50;
|
||||
//
|
||||
// colFavorites
|
||||
//
|
||||
this.colFavorites.HeaderText = "收藏";
|
||||
this.colFavorites.Name = "colFavorites";
|
||||
this.colFavorites.ReadOnly = true;
|
||||
this.colFavorites.Width = 50;
|
||||
//
|
||||
// colSales
|
||||
//
|
||||
this.colSales.HeaderText = "总销量";
|
||||
this.colSales.Name = "colSales";
|
||||
this.colSales.ReadOnly = true;
|
||||
this.colSales.Width = 60;
|
||||
//
|
||||
// colSalesThirtyDays
|
||||
//
|
||||
this.colSalesThirtyDays.HeaderText = "30日销量";
|
||||
this.colSalesThirtyDays.Name = "colSalesThirtyDays";
|
||||
this.colSalesThirtyDays.ReadOnly = true;
|
||||
this.colSalesThirtyDays.Width = 70;
|
||||
//
|
||||
// colAddTime
|
||||
//
|
||||
dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colAddTime.DefaultCellStyle = dataGridViewCellStyle9;
|
||||
this.colAddTime.HeaderText = "创建时间";
|
||||
this.colAddTime.Name = "colAddTime";
|
||||
this.colAddTime.ReadOnly = true;
|
||||
this.colAddTime.Width = 80;
|
||||
//
|
||||
// colIsOnSale
|
||||
//
|
||||
this.colIsOnSale.HeaderText = "在售/下架";
|
||||
this.colIsOnSale.Name = "colIsOnSale";
|
||||
this.colIsOnSale.ReadOnly = true;
|
||||
this.colIsOnSale.Width = 80;
|
||||
//
|
||||
// colStatus
|
||||
//
|
||||
this.colStatus.HeaderText = "审核状态";
|
||||
this.colStatus.Name = "colStatus";
|
||||
this.colStatus.ReadOnly = true;
|
||||
this.colStatus.Width = 90;
|
||||
//
|
||||
// colOpResult
|
||||
//
|
||||
this.colOpResult.HeaderText = "操作结果";
|
||||
this.colOpResult.Name = "colOpResult";
|
||||
this.colOpResult.ReadOnly = true;
|
||||
this.colOpResult.Width = 200;
|
||||
//
|
||||
// PDDProductUpDownForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
@@ -1281,6 +1312,16 @@ namespace TemuKJD.PDDForms.ProductForms
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colRemaining;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colMessage;
|
||||
private DevComponents.DotNetBar.PanelEx btnSelectNotActivity;
|
||||
private System.Windows.Forms.Label label10;
|
||||
private System.Windows.Forms.TextBox txtLowStock;
|
||||
private DevComponents.DotNetBar.PanelEx btnSelectLowStock;
|
||||
private DevComponents.DotNetBar.PanelEx btnClearShopFilter;
|
||||
private DevComponents.DotNetBar.PanelEx btnFilter;
|
||||
private System.Windows.Forms.TextBox txtShopGroupFilter;
|
||||
private System.Windows.Forms.TextBox txtShopNameFilter;
|
||||
private System.Windows.Forms.Label label23;
|
||||
private System.Windows.Forms.Label label22;
|
||||
private DevComponents.DotNetBar.PanelEx btnSelectNeedCutPrice;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn colCheck;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colSupplierId;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colSupplierName;
|
||||
@@ -1299,14 +1340,5 @@ namespace TemuKJD.PDDForms.ProductForms
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colIsOnSale;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colStatus;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOpResult;
|
||||
private System.Windows.Forms.Label label10;
|
||||
private System.Windows.Forms.TextBox txtLowStock;
|
||||
private DevComponents.DotNetBar.PanelEx btnSelectLowStock;
|
||||
private DevComponents.DotNetBar.PanelEx btnClearShopFilter;
|
||||
private DevComponents.DotNetBar.PanelEx btnFilter;
|
||||
private System.Windows.Forms.TextBox txtShopGroupFilter;
|
||||
private System.Windows.Forms.TextBox txtShopNameFilter;
|
||||
private System.Windows.Forms.Label label23;
|
||||
private System.Windows.Forms.Label label22;
|
||||
}
|
||||
}
|
||||
@@ -371,6 +371,8 @@ namespace TemuKJD.PDDForms.ProductForms
|
||||
string activityPriceStr = "";
|
||||
if (pInfo.sku_group_price.FirstOrDefault() != pInfo.origin_sku_group_price.FirstOrDefault())
|
||||
activityPriceStr = "\r\n活动价:\r\n" + string.Join("~", pInfo.sku_group_price.Select(s => s / 100m));
|
||||
if (pInfo.wait_cut_price == true)
|
||||
activityPriceStr = "\r\n活动权益失效\r\n活动价:" + string.Join("~", pInfo.sku_group_price.Select(s => s / 100m));
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
int rowId = this.dgvProduct.Rows.Add(
|
||||
@@ -398,6 +400,8 @@ namespace TemuKJD.PDDForms.ProductForms
|
||||
if (!string.IsNullOrEmpty(activityPriceStr))
|
||||
{
|
||||
dgvProduct.Rows[rowId].Cells["colPrice"].Style.ForeColor = Color.DarkOrange;
|
||||
if (activityPriceStr.Contains("活动权益失效"))
|
||||
dgvProduct.Rows[rowId].Cells["colPrice"].Style.ForeColor = Color.Red;
|
||||
}
|
||||
}));
|
||||
}
|
||||
@@ -1088,5 +1092,17 @@ namespace TemuKJD.PDDForms.ProductForms
|
||||
txtShopGroupFilter.Text = "";
|
||||
txtShopNameFilter.Text = "";
|
||||
}
|
||||
|
||||
private void btnSelectNeedCutPrice_Click(object sender, EventArgs e)
|
||||
{
|
||||
foreach (DataGridViewRow r in dgvProduct.Rows)
|
||||
{
|
||||
if (r.Cells["colPrice"].Value.ParseToString().Contains("活动权益失效"))
|
||||
r.Cells["colCheck"].Value = true;
|
||||
else
|
||||
|
||||
r.Cells["colCheck"].Value = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user