动态随机换图,上传后还原图片和标题功能
This commit is contained in:
1 parent
2a4a3ef744
commit
8135f50686
17 files changed
+2034
-50
No files matched your search
@@ -32,7 +32,7 @@ namespace TemuKJD.KJDForms.ShopForms
|
||||
tv.SelectedNode = tv.Nodes[0].Nodes[0];
|
||||
tv.ExpandGroup(tv.Nodes[0].Name);
|
||||
|
||||
List<string> hideName = new List<string>() { "子账号管理", "高级运费模板", "运费模板", "素材库管理", "订单销售统计" };
|
||||
List<string> hideName = new List<string>() { "子账号管理", "高级运费模板", "运费模板", "素材库管理", /*"订单销售统计"*/ };
|
||||
|
||||
if (BaseClass.GroupId == 3)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user