店铺备注批量编辑

This commit is contained in:
wule_5900x committed 2026-03-15 14:35:04 +08:00
1 parent 679bae7c42
commit 79ff7217d4
7 files changed
+447 -154

No files matched your search

@@ -295,7 +295,7 @@ namespace TemuKJD.WXForms.AdminForms
SearchShop(this.ucSplitPage1.CurrentPage);
break;
case "编辑":
WXShopAddEditForm editForm = new WXShopAddEditForm(shop);
WXShopAddEditForm editForm = new WXShopAddEditForm(new List<ShopLoginInfo> { shop });
editForm.SaveCompleteWithDescribe += EditForm_SaveCompleteWithDescribe;
editForm.ShowDialog();
break;
@@ -344,25 +344,43 @@ namespace TemuKJD.WXForms.AdminForms
private void EditForm_SaveCompleteWithDescribe(object obj, object isAdd)
{
var shopInfo = obj as ShopLoginInfo;
if (shopInfo != null)
var shopInfoLst = obj as List<ShopLoginInfo>;
if (shopInfoLst != null)
{
if ((isAdd as bool?) == true)
this.pbLoading.Visible = true;
Task.Run(() =>
{
var shop = lstAdminShopInfo.FirstOrDefault(v => v.LoginName == shopInfo.LoginName);
if (shop != null)
int i = 1;
foreach (var shopInfo in shopInfoLst)
{
BaseMsgForm.ShowError("店铺" + shopInfo.LoginName + "已存在!");
Invoke(new Action(() =>{
this.statusBar.pgbTaskProgress.Value = i;
this.statusBar.pgbTaskProgress.Text = i + "/" + shopInfoLst.Count;
i++;
}));
if ((isAdd as bool?) == true)
{
var shop = lstAdminShopInfo.FirstOrDefault(v => v.LoginName == shopInfo.LoginName);
if (shop != null)
{
BaseMsgForm.ShowError("店铺" + shopInfo.LoginName + "已存在!");
}
else
{
ShopBLL.AdminAddServerShop(shopInfo);
}
}
else
{
ShopBLL.AdminMdyServerShop(shopInfo);
}
}
else
Invoke(new Action(() =>
{
ShopBLL.AdminAddServerShop(shopInfo);
}
}
else
{
ShopBLL.AdminMdyServerShop(shopInfo);
}
this.pbLoading.Visible = false;
this.statusBar.pgbTaskProgress.Text = "准备就绪";
}));
});
SearchShop(this.ucSplitPage1.CurrentPage);
}
}