商品上传 增加 店铺勾选记录,保持上次上货时选中店铺

This commit is contained in:
chfei committed 2026-10-23 09:25:09 +08:00
1 parent 628e2d3786
commit 14a26b7509
1 file changed
+15
@@ -669,6 +669,13 @@ namespace TemuKJD.WXForms.ProductForms
if (!isInit) if (!isInit)
{ {
InitWaitingProductConfigBinding(); InitWaitingProductConfigBinding();
foreach (var item in dgvShop.Rows.Cast<DataGridViewRow>())
{
var shopId = item.Cells["colShopId"]?.Value.ToString();
item.Cells["colSelect"].Value = wxUploadRule.SelectedShopIds.Contains(shopId);
}
} }
isInit = true; isInit = true;
} }
@@ -1025,6 +1032,10 @@ namespace TemuKJD.WXForms.ProductForms
return; return;
} }
wxUploadRule.SelectedShopIds = shopIdLst;
NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_upload_rule", wxUploadRule);
if (lstTemuDBProductSelect.Count() > 0) if (lstTemuDBProductSelect.Count() > 0)
{ {
if (WXShopLoginForm.shopLoginInstance != null && WXShopLoginForm.shopLoginInstance.IsDisposed != true) if (WXShopLoginForm.shopLoginInstance != null && WXShopLoginForm.shopLoginInstance.IsDisposed != true)
@@ -8092,6 +8103,10 @@ Content-Type: application/octet-stream
public bool IsNotUploadShopProdMoreThan { get; set; } = false; public bool IsNotUploadShopProdMoreThan { get; set; } = false;
public int NotUploadShopProdMoreThan { get; set; } = 500; public int NotUploadShopProdMoreThan { get; set; } = 500;
/// <summary>
/// 选中上传的商铺
/// </summary>
public List<string> SelectedShopIds { get; set; } = [];
} }