优惠券,大人推广相关内容
This commit is contained in:
1 parent
4038b0390a
commit
7b06707a40
15 files changed
+4426
-379
No files matched your search
@@ -371,7 +371,7 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
this.btnImport.Enabled = true;
|
||||
}
|
||||
|
||||
private void RefreshDataGridView(bool updateStatus=true)
|
||||
private void RefreshDataGridView(bool updateStatus=true, List<ShopLoginInfo> shopUpdateLst = null)
|
||||
{
|
||||
if (isLoading)
|
||||
{
|
||||
@@ -404,8 +404,8 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
}));
|
||||
|
||||
var shopList = GlobalConfig.ShopLoginList.Where(s => !string.IsNullOrEmpty(s.ShopId)
|
||||
|| GlobalConfig.ShopLoginList.Where(ss=>ss.LoginName == s.LoginName).Count() == 1)
|
||||
/*.OrderBy(s=>s.LoginName)*/.ToList();
|
||||
|| GlobalConfig.ShopLoginList.Where(ss=>ss.LoginName == s.LoginName).Count() == 1)
|
||||
/*.OrderBy(s=>s.LoginName)*/.ToList();
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
@@ -440,7 +440,11 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
List<string> shopIdList = GetCheckedShopIdList();
|
||||
this.Invoke(new Action(() =>
|
||||
{
|
||||
this.dgvShop.Rows.Clear();
|
||||
foreach(DataGridViewRow row in dgvShop.Rows.Cast<DataGridViewRow>())
|
||||
{
|
||||
if (!shopList.Any(s => s.ShopId == row.Cells["colShopId"].Value.ParseToString()))
|
||||
this.dgvShop.Rows.Remove(row);
|
||||
}
|
||||
if (updateStatus)
|
||||
this.statusBar.pgbTaskProgress.Maximum = shopList.Count; // 显示总数
|
||||
}));
|
||||
@@ -456,6 +460,10 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
this.statusBar.pgbTaskProgress.Text = (i + 1) + "/" + shopList.Count;
|
||||
}));
|
||||
}
|
||||
|
||||
if (shopUpdateLst != null && !shopUpdateLst.Contains(shopList[i]))
|
||||
continue;
|
||||
|
||||
AddDataGridViewRow(shopList[i], true, shopIdList.Contains(shopList[i].ShopId));
|
||||
}
|
||||
if (this.Created)
|
||||
@@ -545,7 +553,7 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 检测店铺授权状态
|
||||
/// 检测店铺登录状态
|
||||
/// </summary>
|
||||
/// <param name="shopNames"></param>
|
||||
/// <param name="isShowProgress"></param>
|
||||
@@ -627,6 +635,7 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
UpdateServerShopCookies(shop); // 店铺cookie写入服务端,多店共用一个登录账号一组cookie
|
||||
StartUp.SaveLocalShopLoginInfo();
|
||||
}
|
||||
|
||||
if (this.Created && isShowProgress)
|
||||
{
|
||||
this.Invoke(new Action(() =>
|
||||
@@ -784,7 +793,8 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
shopLoginForm.openType = EnumOpenType.login;
|
||||
shopLoginForm.SaveComplete += shopLoginForm_SaveComplete;
|
||||
shopLoginForm.ShowDialog();
|
||||
btnRefreshCookie_Click(null, null);
|
||||
//btnRefreshCookie_Click(null, null);
|
||||
RefreshDataGridView(true, new List<ShopLoginInfo>() { shop });
|
||||
}
|
||||
IsOperate = false;
|
||||
break;
|
||||
@@ -846,7 +856,7 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
this.btnCheck.Enabled = false;
|
||||
var t = Task.Run(() =>
|
||||
{
|
||||
UpdateShop();
|
||||
//UpdateShop();
|
||||
CheckShopListLogin(shopNameList.Distinct().ToArray());
|
||||
RefreshDataGridView(false);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user