上货商品不存在不提示且上传停止问题修复
This commit is contained in:
1 parent
1ab0fc96ac
commit
652fcd1336
3 files changed
+14
-4
No files matched your search
@@ -9,6 +9,7 @@ using System.Data;
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using TemuKJD.BaseForms;
|
using TemuKJD.BaseForms;
|
||||||
@@ -27,7 +28,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
|||||||
lstTemuDBProductSelect = _lstTemuDBProductSelect;
|
lstTemuDBProductSelect = _lstTemuDBProductSelect;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void PDDDBProdUserSelectCacheForm_Load(object sender, EventArgs e)
|
private async void PDDDBProdUserSelectCacheForm_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (BaseClass.UserName == "15288888888")
|
if (BaseClass.UserName == "15288888888")
|
||||||
{
|
{
|
||||||
@@ -43,10 +44,17 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
|||||||
dgvSelectProduct.AddImgColumn("colProductSkcPic", "colImgUrl");
|
dgvSelectProduct.AddImgColumn("colProductSkcPic", "colImgUrl");
|
||||||
|
|
||||||
if (lstTemuDBProductSelect != null && lstTemuDBProductSelect.Count > 0)
|
if (lstTemuDBProductSelect != null && lstTemuDBProductSelect.Count > 0)
|
||||||
|
{
|
||||||
|
await Task.Run(() =>
|
||||||
{
|
{
|
||||||
foreach (var prodSelect in lstTemuDBProductSelect)
|
foreach (var prodSelect in lstTemuDBProductSelect)
|
||||||
{
|
{
|
||||||
|
if (lstTemuDBProductSelect.IndexOf(prodSelect) % 1000 == 0)
|
||||||
|
Thread.Sleep(1);
|
||||||
|
|
||||||
var catBound = GlobalConfig.WxCatBoundList.FirstOrDefault(b => b.leaf_id.ParseToString() == prodSelect.wx_cat_leaf);
|
var catBound = GlobalConfig.WxCatBoundList.FirstOrDefault(b => b.leaf_id.ParseToString() == prodSelect.wx_cat_leaf);
|
||||||
|
Invoke(new Action(() =>
|
||||||
|
{
|
||||||
int rowIndex = this.dgvSelectProduct.Rows.Add(
|
int rowIndex = this.dgvSelectProduct.Rows.Add(
|
||||||
false,
|
false,
|
||||||
prodSelect.id,
|
prodSelect.id,
|
||||||
@@ -62,9 +70,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
|||||||
prodSelect.notes,
|
prodSelect.notes,
|
||||||
"删除"
|
"删除"
|
||||||
);
|
);
|
||||||
|
|
||||||
dgvSelectProduct.Rows[rowIndex].Height = 60;
|
dgvSelectProduct.Rows[rowIndex].Height = 60;
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1144,7 +1144,7 @@ namespace TemuKJD.WXForms.ProductForms
|
|||||||
Invoke(new Action(() =>
|
Invoke(new Action(() =>
|
||||||
{
|
{
|
||||||
this.pbLoading.Visible = true;
|
this.pbLoading.Visible = true;
|
||||||
this.statusBar.lblTaskStatus.Text = "正在报名活动" + "...".Substring(0, DateTime.Now.Second % 4);
|
this.statusBar.lblTaskStatus.Text = "正在取消报名活动" + "...".Substring(0, DateTime.Now.Second % 4);
|
||||||
this.statusBar.pgbTaskProgress.Maximum = rowLst.Count;
|
this.statusBar.pgbTaskProgress.Maximum = rowLst.Count;
|
||||||
this.statusBar.UpdateProgressBar(0);
|
this.statusBar.UpdateProgressBar(0);
|
||||||
}));
|
}));
|
||||||
|
|||||||
@@ -1300,7 +1300,8 @@ namespace TemuKJD.WXForms.ProductForms
|
|||||||
kjdDbProd = GetCloudProductDetail(selectProd, out errStr, true, true);
|
kjdDbProd = GetCloudProductDetail(selectProd, out errStr, true, true);
|
||||||
else
|
else
|
||||||
kjdDbProd = GetProductDetail(selectProd.out_product_Id.ToString(), out errStr, true, true);
|
kjdDbProd = GetProductDetail(selectProd.out_product_Id.ToString(), out errStr, true, true);
|
||||||
kjdDbProd.db_type = selectProd.db_type;
|
if (kjdDbProd != null)
|
||||||
|
kjdDbProd.db_type = selectProd?.db_type;
|
||||||
}
|
}
|
||||||
if (kjdDbProd == null || kjdDbProd.id == 0)
|
if (kjdDbProd == null || kjdDbProd.id == 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user