动态随机换图,上传后还原图片和标题功能

This commit is contained in:
wule committed 2025-08-22 19:48:33 +08:00
1 parent 2a4a3ef744
commit 8135f50686
17 files changed
+2034 -50

No files matched your search

@@ -483,7 +483,7 @@ namespace TemuKJD.KJDForms.ShopForms
IsOperate = true;
{
ShopLoginForm shopLoginForm = new ShopLoginForm(shop);
shopLoginForm.chkCloseAfterLogin.Checked = false;
//shopLoginForm.chkCloseAfterLogin.Checked = false;
shopLoginForm.openType = EnumOpenType.login;
shopLoginForm.ShowDialog();
var rows = this.dgvShop.Rows.Cast<DataGridViewRow>().Where(r => r.Cells["colShopLoginName"].Value.ToString() == loginName);
@@ -496,6 +496,7 @@ namespace TemuKJD.KJDForms.ShopForms
(row.Cells["colLoginStatus"] as DataGridViewLinkCell).ActiveLinkColor = canUse ? Color.LightGreen : Color.OrangeRed;
(row.Cells["colLoginStatus"] as DataGridViewLinkCell).VisitedLinkColor = canUse ? Color.DarkGreen : Color.DarkRed;
}
ReGetStatistics(rows.Select(s => s.Cells["colShopId"].Value.ParseToString()).ToList());
}
IsOperate = false;
break;
@@ -514,7 +515,13 @@ namespace TemuKJD.KJDForms.ShopForms
{
var selectIds = dgvShop.Rows.Cast<DataGridViewRow>().Where(row
=> row.Cells["colSelect"]?.Value.ParseToBool() == true).Select(r => r.Cells["colShopId"]?.Value.ToString()).ToList();
var shopList = GlobalConfig.ShopLoginList.Where(s => selectIds.Contains(s.ShopId)).ToList();
ReGetStatistics(selectIds);
}
void ReGetStatistics(List<string> reGetShopIds)
{
var shopList = GlobalConfig.ShopLoginList.Where(s => reGetShopIds.Contains(s.ShopId)).ToList();
foreach (var shop in shopList)
{
ShopStatisticsInfo statistics = lstShopStatisticsInfo.FirstOrDefault(s => s.shop_id.ToString() == shop.ShopId);
@@ -523,7 +530,7 @@ namespace TemuKJD.KJDForms.ShopForms
}
this.pbLoading.Visible = true;
GetShopStatistics(shopList, selectIds);
GetShopStatistics(shopList, reGetShopIds);
}
}
}