1店铺登录逻辑优化 2备货单查询显示
This commit is contained in:
1 parent
89eb9ce9d4
commit
862ad088f5
216 files changed
+3481
-1543
No files matched your search
@@ -2,9 +2,9 @@
|
||||
using AllBase.Model.Result;
|
||||
using CefSharp;
|
||||
using CefSharp.WinForms;
|
||||
using LittleRabbit.Extension;
|
||||
using LittleRabbit.Helper;
|
||||
using LittleRabbit.LittleRabbitForms.BaseForms;
|
||||
using TemuKJD.Extension;
|
||||
using TemuKJD.Helper;
|
||||
using TemuKJD.KJDForms.BaseForms;
|
||||
using NaiBa.CefHelper;
|
||||
using NaiBa.CefHelper.Handler;
|
||||
using NaiBa.Util.Extension;
|
||||
@@ -19,7 +19,7 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
public partial class CommissionForm : Form
|
||||
{
|
||||
@@ -49,12 +49,12 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
|
||||
public void LoadShops()
|
||||
{
|
||||
for (int i = 0; i < GlobalConfig.DouShopLoginList.Count; i++)
|
||||
for (int i = 0; i < GlobalConfig.ShopLoginList.Count; i++)
|
||||
{
|
||||
var shop = GlobalConfig.DouShopLoginList[i];
|
||||
var row = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopAccountId);
|
||||
var shop = GlobalConfig.ShopLoginList[i];
|
||||
var row = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopId);
|
||||
if (row == null)
|
||||
dgvShop.Rows.Add(false, shop.ShopAccountId, shop.ShopAccount, shop.LoginStatus);
|
||||
dgvShop.Rows.Add(false, shop.ShopId, shop.ShopAccount, shop.LoginStatus);
|
||||
else
|
||||
{
|
||||
row.Cells["colLoginStatus"].Value = shop.LoginStatus;
|
||||
@@ -83,7 +83,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
this.sampleRule = rbNoSample.Checked ? "不支持申样" : "免费申样";
|
||||
var shopIds = this.dgvShop.Rows.Cast<DataGridViewRow>().Where(r => r.Cells["colSelect"].Value.ParseToBool() == true && r.Cells["colLoginStatus"].Value?.ToString() == "登录成功")
|
||||
.Select(r => r.Cells["colShopId"].Value?.ToString()).ToList();
|
||||
var shops = GlobalConfig.DouShopLoginList.Where(s => shopIds.Contains(s.ShopAccountId)).ToList();
|
||||
var shops = GlobalConfig.ShopLoginList.Where(s => shopIds.Contains(s.ShopId)).ToList();
|
||||
|
||||
isRun = true;
|
||||
btnStart.Enabled = false;
|
||||
@@ -110,7 +110,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
this.sampleRule = rbNoSample.Checked ? "不支持申样" : "免费申样";
|
||||
var shopIds = this.dgvShop.Rows.Cast<DataGridViewRow>().Where(r => r.Cells["colSelect"].Value.ParseToBool() == true && r.Cells["colLoginStatus"].Value?.ToString() == "登录成功")
|
||||
.Select(r => r.Cells["colShopId"].Value?.ToString()).ToList();
|
||||
var shops = GlobalConfig.DouShopLoginList.Where(s => shopIds.Contains(s.ShopAccountId)).ToList();
|
||||
var shops = GlobalConfig.ShopLoginList.Where(s => shopIds.Contains(s.ShopId)).ToList();
|
||||
|
||||
isRun = true;
|
||||
btnStart.Enabled = false;
|
||||
@@ -166,7 +166,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
var row1 = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopAccountId);
|
||||
var row1 = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopId);
|
||||
if (row1 != null)
|
||||
row1.Cells["colMessage"].Value = "设置中断";
|
||||
}));
|
||||
@@ -187,7 +187,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
shop.Message = loadResult;
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
var row1 = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopAccountId);
|
||||
var row1 = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopId);
|
||||
if (row1 != null)
|
||||
row1.Cells["colMessage"].Value = shop.Message;
|
||||
}));
|
||||
@@ -270,7 +270,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
var row1 = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopAccountId);
|
||||
var row1 = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopId);
|
||||
if (row1 != null)
|
||||
row1.Cells["colMessage"].Value = "编辑申样中断";
|
||||
}));
|
||||
@@ -389,7 +389,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
shop.Message = "设置完成";
|
||||
var row = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopAccountId);
|
||||
var row = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopId);
|
||||
if (row != null)
|
||||
row.Cells["colMessage"].Value = "设置完成";
|
||||
}));
|
||||
@@ -423,7 +423,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
}
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
var row1 = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopAccountId);
|
||||
var row1 = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopId);
|
||||
if (row1 != null)
|
||||
row1.Cells["colMessage"].Value = shop.Message;
|
||||
}));
|
||||
@@ -463,7 +463,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
var row1 = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopAccountId);
|
||||
var row1 = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopId);
|
||||
if (row1 != null)
|
||||
row1.Cells["colMessage"].Value = "设置中断";
|
||||
}));
|
||||
@@ -484,7 +484,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
shop.Message = loadResult;
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
var row1 = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopAccountId);
|
||||
var row1 = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopId);
|
||||
if (row1 != null)
|
||||
row1.Cells["colMessage"].Value = shop.Message;
|
||||
}));
|
||||
@@ -647,7 +647,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
var row1 = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopAccountId);
|
||||
var row1 = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopId);
|
||||
if (row1 != null)
|
||||
row1.Cells["colMessage"].Value = "设置中断";
|
||||
}));
|
||||
@@ -992,7 +992,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
shop.Message = "设置完成";
|
||||
var row = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopAccountId);
|
||||
var row = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopId);
|
||||
if (row != null)
|
||||
row.Cells["colMessage"].Value = "设置完成";
|
||||
}));
|
||||
@@ -1026,7 +1026,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
}
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
var row1 = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopAccountId);
|
||||
var row1 = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopId);
|
||||
if (row1 != null)
|
||||
row1.Cells["colMessage"].Value = shop.Message;
|
||||
}));
|
||||
|
||||
Reference in new issue
Block a user