产品数据库标题可修改,货号加价删除提供进度条
This commit is contained in:
1 parent
157f7e9f3e
commit
14ac8986c8
11 files changed
+68
-31
No files matched your search
@@ -153,7 +153,6 @@
|
||||
this.txtProductName.Location = new System.Drawing.Point(90, 205);
|
||||
this.txtProductName.Multiline = true;
|
||||
this.txtProductName.Name = "txtProductName";
|
||||
this.txtProductName.ReadOnly = true;
|
||||
this.txtProductName.Size = new System.Drawing.Size(337, 46);
|
||||
this.txtProductName.TabIndex = 397;
|
||||
//
|
||||
|
||||
@@ -48,6 +48,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
var url = BaseClass.BuildObjString("product/mdy_db_product");
|
||||
var data = UserLogin.GetSignaturex() +
|
||||
"&db_id=" + dbProd.id + "¬es=" + this.txtNotes.Text.Trim();
|
||||
data += "&product_name=" + this.txtProductName.Text.Trim();
|
||||
data += "&ext_code=" + this.txtExtCode.Text.Trim();
|
||||
data += "&fission_words=" + this.txtFissionWords.Text.Trim();
|
||||
data += "&head_words=" + this.txtHeadWords.Text.Trim();
|
||||
@@ -68,6 +69,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
dbProd.head_words = this.txtHeadWords.Text.Trim();
|
||||
dbProd.end_words = this.txtEndWords.Text.Trim();
|
||||
dbProd.fission_words = this.txtFissionWords.Text.Trim();
|
||||
dbProd.product_name = this.txtProductName.Text.Trim();
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -313,6 +313,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
dgvDbProduct.Rows[e.RowIndex].Cells["colHeadWords"].Value = dbProduct.head_words;
|
||||
dgvDbProduct.Rows[e.RowIndex].Cells["colEndWords"].Value = dbProduct.end_words;
|
||||
dgvDbProduct.Rows[e.RowIndex].Cells["colFissionWords"].Value = dbProduct.fission_words;
|
||||
dgvDbProduct.Rows[e.RowIndex].Cells["col_product_name"].Value = dbProduct.product_name;
|
||||
break;
|
||||
case "主图":
|
||||
ShowImgForm imgFrom = new ShowImgForm(dgvDbProduct.Rows[e.RowIndex].Cells["colImgUrl"].Value.ParseToString());
|
||||
|
||||
@@ -967,7 +967,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
vid = propInfo.vid,
|
||||
});
|
||||
}
|
||||
if (prodParam.productPropertyReqs.Any(p => p.propValue == "织物") && !prodParam.productPropertyReqs.Any(p => p.propName == "织物材质成分"))
|
||||
if (prodParam.productPropertyReqs.Any(p => p.propValue == "织物" && p.propName == "鞋面材料") &&
|
||||
!prodParam.productPropertyReqs.Any(p => p.propName == "织物材质成分"))
|
||||
{
|
||||
prodParam.productPropertyReqs.Add(new ProductPropertyReqsItem
|
||||
{
|
||||
@@ -1271,7 +1272,6 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
}
|
||||
|
||||
#region 草稿箱编辑后立即上传商品
|
||||
|
||||
if (cell != null)
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
@@ -1292,7 +1292,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
var error = BaseRegex.GetStringJson(ref html, "errorMsg");
|
||||
if (string.IsNullOrWhiteSpace(error))
|
||||
error = BaseRegex.GetStringJson(ref html, "error_msg");
|
||||
return "{\"success\":false,\"status\":\"草稿箱\"," +
|
||||
// 这里上传草稿一定成功了,所以返回true,但是有错误信息
|
||||
return "{\"success\":true,\"status\":\"草稿箱\"," +
|
||||
"\"productDraftId\":\"" + prodParam.productDraftId.ParseToString() + "\"," +
|
||||
"\"errMsg\":\"上传失败 " + error + " " + sizeError + "\"}";
|
||||
}
|
||||
|
||||
@@ -394,8 +394,15 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
|
||||
Task.Run(() =>
|
||||
{
|
||||
int i = 0;
|
||||
foreach (var dbId in dbIds)
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
this.statusBar.lblTaskStatus.Text = "正在删除...";
|
||||
this.statusBar.pgbTaskProgress.Maximum = dbIds.Count();
|
||||
this.statusBar.UpdateProgressBar(i + 1);
|
||||
}));
|
||||
Thread.Sleep(50);
|
||||
var rst = DeleteServerPrice(dbId, false);
|
||||
if (rst == false)
|
||||
@@ -407,6 +414,11 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
break;
|
||||
}
|
||||
};
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
this.statusBar.lblTaskStatus.Text = "已完成删除";
|
||||
this.statusBar.UpdateProgressBar(dbIds.Count());
|
||||
}));
|
||||
SearchPrice(this.ucSplitPage1.CurrentPage);
|
||||
});
|
||||
}
|
||||
|
||||
+3
-3
@@ -264,7 +264,7 @@
|
||||
"全部",
|
||||
"重上",
|
||||
"已买"});
|
||||
this.cmbUserNotes.Location = new System.Drawing.Point(1044, 5);
|
||||
this.cmbUserNotes.Location = new System.Drawing.Point(1044, 8);
|
||||
this.cmbUserNotes.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.cmbUserNotes.Name = "cmbUserNotes";
|
||||
this.cmbUserNotes.Size = new System.Drawing.Size(65, 25);
|
||||
@@ -281,7 +281,7 @@
|
||||
"核价成功",
|
||||
"核价成功(重复)",
|
||||
"重复"});
|
||||
this.cmbNotes.Location = new System.Drawing.Point(917, 5);
|
||||
this.cmbNotes.Location = new System.Drawing.Point(917, 8);
|
||||
this.cmbNotes.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.cmbNotes.Name = "cmbNotes";
|
||||
this.cmbNotes.Size = new System.Drawing.Size(65, 25);
|
||||
@@ -308,7 +308,7 @@
|
||||
"已上传",
|
||||
"草稿箱",
|
||||
"全部"});
|
||||
this.cmbStatus.Location = new System.Drawing.Point(814, 5);
|
||||
this.cmbStatus.Location = new System.Drawing.Point(814, 8);
|
||||
this.cmbStatus.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.cmbStatus.Name = "cmbStatus";
|
||||
this.cmbStatus.Size = new System.Drawing.Size(65, 25);
|
||||
|
||||
@@ -1263,7 +1263,6 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
}
|
||||
|
||||
#region 草稿箱编辑后立即上传商品
|
||||
|
||||
if (cell != null)
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
@@ -1284,7 +1283,8 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
var error = BaseRegex.GetStringJson(ref html, "errorMsg");
|
||||
if (string.IsNullOrWhiteSpace(error))
|
||||
error = BaseRegex.GetStringJson(ref html, "error_msg");
|
||||
return "{\"success\":false,\"status\":\"草稿箱\"," +
|
||||
// 这里上传草稿一定成功了,所以返回true,但是有错误信息
|
||||
return "{\"success\":true,\"status\":\"草稿箱\"," +
|
||||
"\"productDraftId\":\"" + prodParam.productDraftId.ParseToString() + "\"," +
|
||||
"\"errMsg\":\"上传失败 " + error + " " + sizeError + "\"}";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user