1拼多多买手读单优化 2商品类目查询优化
This commit is contained in:
1 parent
7601f5b2f3
commit
4ae8e4f1b2
40 files changed
+4743
-745
No files matched your search
@@ -100,11 +100,11 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
// 直到店铺加载完后再加载客服内容
|
||||
while (!StartUp.IsShopInit)
|
||||
Thread.Sleep(100);
|
||||
currentShop = GlobalConfig.ShopLoginList.FirstOrDefault();
|
||||
currentShop = GlobalConfig.ValidShopLoginList.FirstOrDefault();
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
this.textBox1.Text = currentShop?.ShopAccount;
|
||||
this.textBox1.Tag = currentShop?.ShopId;
|
||||
this.txtCurrentShop.Text = currentShop?.ShopAccount;
|
||||
this.txtCurrentShop.Tag = currentShop?.ShopId;
|
||||
}));
|
||||
if (currentShop != null)
|
||||
SetMainBrowserUrl(currentShop);
|
||||
@@ -185,7 +185,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
}
|
||||
else
|
||||
{
|
||||
//var list = GlobalConfig.ShopLoginList.Where(s => s.LoginStatus == "登录成功").Select(ss => ss.ShopId);
|
||||
//var list = GlobalConfig.ValidShopLoginList.Where(s => s.LoginStatus == "登录成功").Select(ss => ss.ShopId);
|
||||
foreach (DataGridViewRow row in dgvShop.Rows)
|
||||
{
|
||||
//if (list.Any(l => l == row.Cells["colShopId"]?.Value?.ToString()))
|
||||
@@ -222,25 +222,25 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
=> row.Cells["colSelect"]?.Value.ParseToBool() == true).Select(r => r.Cells["colShopId"]?.Value.ToString()).ToList();
|
||||
// 获取被删除的店铺
|
||||
List<DataGridViewRow> dgvRowList = dgvShop.Rows.Cast<DataGridViewRow>().Where(row
|
||||
=> !GlobalConfig.ShopLoginList.Any(s => s.ShopId == row.Cells["colShopId"]?.Value?.ToString())).ToList();
|
||||
=> !GlobalConfig.ValidShopLoginList.Any(s => s.ShopId == row.Cells["colShopId"]?.Value?.ToString())).ToList();
|
||||
// 更新被删除的店铺列表
|
||||
foreach (var row in dgvRowList)
|
||||
{
|
||||
dgvShop.Rows.Remove(row);
|
||||
}
|
||||
// 绑定其他店铺(含新导入的店铺)
|
||||
foreach (ShopLoginInfo shopEntity in GlobalConfig.ShopLoginList)
|
||||
foreach (ShopLoginInfo shopEntity in GlobalConfig.ValidShopLoginList)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(shopEntity.ShopId))
|
||||
BindShop(shopEntity, selectIds);
|
||||
}
|
||||
cmbFilterShopNotes.Items.Clear();
|
||||
foreach (var note in GlobalConfig.ShopLoginList.Select(s => s.Notes).Where(s => !s.IsNullOrEmpty()).Distinct())
|
||||
foreach (var note in GlobalConfig.ValidShopLoginList.Select(s => s.Notes).Where(s => !s.IsNullOrEmpty()).Distinct())
|
||||
{
|
||||
cmbFilterShopNotes.Items.Add(note);
|
||||
}
|
||||
cmbFilterShopGroup.Items.Clear();
|
||||
foreach (var group in GlobalConfig.ShopLoginList.Select(s => s.GroupName).Where(s => !s.IsNullOrEmpty()).Distinct())
|
||||
foreach (var group in GlobalConfig.ValidShopLoginList.Select(s => s.GroupName).Where(s => !s.IsNullOrEmpty()).Distinct())
|
||||
{
|
||||
cmbFilterShopGroup.Items.Add(group);
|
||||
}
|
||||
@@ -325,7 +325,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
string columnName = dgvShop.Columns[e.ColumnIndex].Name;
|
||||
string shopId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToString();
|
||||
string shopAccount = dgvShop.Rows[e.RowIndex].Cells["colShopName"].Value.ToString();
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId.ToString());
|
||||
var shop = GlobalConfig.ValidShopLoginList.FirstOrDefault(s => s.ShopId == shopId.ToString());
|
||||
var row = dgvShop.Rows[e.RowIndex];
|
||||
foreach(DataGridViewRow r in dgvShop.Rows)
|
||||
{
|
||||
@@ -338,8 +338,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
|
||||
if (currentShop != shop)
|
||||
{
|
||||
this.textBox1.Text = shopAccount;
|
||||
this.textBox1.Tag = shopId;
|
||||
this.txtCurrentShop.Text = shopAccount;
|
||||
this.txtCurrentShop.Tag = shopId;
|
||||
currentShop = shop;
|
||||
|
||||
Task.Run(() =>
|
||||
@@ -356,11 +356,11 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
string columnName = dgvShop.Columns[e.ColumnIndex].Name;
|
||||
string shopId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToString();
|
||||
string shopAccount = dgvShop.Rows[e.RowIndex].Cells["colShopName"].Value.ToString();
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId.ToString());
|
||||
var shop = GlobalConfig.ValidShopLoginList.FirstOrDefault(s => s.ShopId == shopId.ToString());
|
||||
var row = dgvShop.Rows[e.RowIndex];
|
||||
|
||||
this.textBox1.Text = shopAccount;
|
||||
this.textBox1.Tag = shopId;
|
||||
this.txtCurrentShop.Text = shopAccount;
|
||||
this.txtCurrentShop.Tag = shopId;
|
||||
currentShop = shop;
|
||||
|
||||
switch (columnName)
|
||||
@@ -424,7 +424,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
return;
|
||||
string headerText = dgvTalent.Columns[e.ColumnIndex].HeaderText;
|
||||
var shopId = dgvTalent.Rows[e.RowIndex].Cells["colSupplierId"].Value.ParseToString();
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
|
||||
var shop = GlobalConfig.ValidShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
|
||||
var talentAppid = dgvTalent.Rows[e.RowIndex].Cells["colTalentAppid"].Value.ParseToString();
|
||||
var talent = this.lstWXFinderTalentInfo.FirstOrDefault(t => t.talentAppid == talentAppid);
|
||||
|
||||
@@ -906,7 +906,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
if (string.IsNullOrEmpty(prodIds))
|
||||
{
|
||||
var shopId = selectRows.FirstOrDefault().Cells["colSupplierId"].Value.ParseToString();
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
|
||||
var shop = GlobalConfig.ValidShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
|
||||
if(chkReUse.Visible && chkReUse.Checked)
|
||||
shop = currentShop;
|
||||
var talentAppid = selectRows.FirstOrDefault().Cells["colTalentAppid"].Value.ParseToString();
|
||||
@@ -949,7 +949,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
break;
|
||||
|
||||
var shopId = row.Cells["colSupplierId"].Value.ParseToString();
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
|
||||
var shop = GlobalConfig.ValidShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
|
||||
if (chkReUse.Visible && chkReUse.Checked)
|
||||
shop = currentShop;
|
||||
var talentAppid = row.Cells["colTalentAppid"].Value.ParseToString();
|
||||
|
||||
Reference in new issue
Block a user