1店铺登录逻辑优化 2备货单查询显示
This commit is contained in:
1 parent
89eb9ce9d4
commit
862ad088f5
216 files changed
+3481
-1543
No files matched your search
@@ -1,6 +1,6 @@
|
||||
using AllBase;
|
||||
using AllBase.Model.Param.FissionManage;
|
||||
using LittleRabbit.LittleRabbitForms.BaseForms;
|
||||
using TemuKJD.KJDForms.BaseForms;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
@@ -13,7 +13,7 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
public partial class CatForm : LRBaseForm
|
||||
{
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
partial class CatForm
|
||||
{
|
||||
@@ -36,7 +36,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
this.lbxSearch = new System.Windows.Forms.ListBox();
|
||||
this.txtCateSearch = new System.Windows.Forms.TextBox();
|
||||
this.lbSelectCatName = new System.Windows.Forms.Label();
|
||||
this.btnChangeCatId = new LittleRabbit.UserComponent.ButtonLc();
|
||||
this.btnChangeCatId = new TemuKJD.UserComponent.ButtonLc();
|
||||
this.lv3rdCategory = new System.Windows.Forms.ListView();
|
||||
this.lv2rdCategory = new System.Windows.Forms.ListView();
|
||||
this.lvRootCategory = new System.Windows.Forms.ListView();
|
||||
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
partial class CleanDataForm
|
||||
{
|
||||
@@ -38,7 +38,7 @@
|
||||
this.pbPaste = new System.Windows.Forms.PictureBox();
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.btnSearch = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.btnSearch = new TemuKJD.UserControls.ButtonEx();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pbPaste)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
@@ -145,7 +145,7 @@
|
||||
this.pbPaste.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.pbPaste.BackColor = System.Drawing.Color.White;
|
||||
this.pbPaste.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.pbPaste.Image = global::LittleRabbit.Properties.Resources.FullPaste;
|
||||
this.pbPaste.Image = global::TemuKJD.Properties.Resources.FullPaste;
|
||||
this.pbPaste.Location = new System.Drawing.Point(879, 129);
|
||||
this.pbPaste.Name = "pbPaste";
|
||||
this.pbPaste.Size = new System.Drawing.Size(33, 29);
|
||||
|
||||
@@ -3,7 +3,7 @@ using AllBase.Helper;
|
||||
using AllBase.Model.Param.FissionManage;
|
||||
using AllBase.Model.Param.ProductManage;
|
||||
using AllBase.Model.Result;
|
||||
using LittleRabbit.LittleRabbitForms.BaseForms;
|
||||
using TemuKJD.KJDForms.BaseForms;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
@@ -20,7 +20,7 @@ using Work.Api;
|
||||
using Work.BLL.Upload;
|
||||
using Work.CollectClass;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
public partial class CleanDataForm : Form
|
||||
{
|
||||
|
||||
+9
-9
@@ -1,4 +1,4 @@
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
partial class CommissionForm
|
||||
{
|
||||
@@ -36,7 +36,7 @@
|
||||
this.btnStart = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnEditSampleRule = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnStop = new DevComponents.DotNetBar.PanelEx();
|
||||
this.ucGroupBoxEx2 = new LittleRabbit.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.rbFreeSample = new System.Windows.Forms.RadioButton();
|
||||
this.rbNoSample = new System.Windows.Forms.RadioButton();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
@@ -44,14 +44,14 @@
|
||||
this.txtTotalPage = new System.Windows.Forms.TextBox();
|
||||
this.label26 = new System.Windows.Forms.Label();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.ucGroupBoxEx1 = new LittleRabbit.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.btnRefresh = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.btnRefresh = new TemuKJD.UserControls.ButtonEx();
|
||||
this.splitContainer3 = new System.Windows.Forms.SplitContainer();
|
||||
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
|
||||
this.rbNew = new System.Windows.Forms.RadioButton();
|
||||
this.rbAll = new System.Windows.Forms.RadioButton();
|
||||
this.btnPause = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.dgvShop = new LittleRabbit.UserComponent.DataGridViewEx();
|
||||
this.btnPause = new TemuKJD.UserControls.ButtonEx();
|
||||
this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -60,7 +60,7 @@
|
||||
this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
|
||||
this.pnlShowError = new DevComponents.DotNetBar.PanelEx();
|
||||
this.splitContainer4 = new System.Windows.Forms.SplitContainer();
|
||||
this.statusBar = new LittleRabbit.UserControls.StatusBarUserControl();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
@@ -185,7 +185,7 @@
|
||||
this.ucGroupBoxEx2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.ucGroupBoxEx2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.ucGroupBoxEx2.BorderStyle = LittleRabbit.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx2.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx2.Controls.Add(this.rbFreeSample);
|
||||
this.ucGroupBoxEx2.Controls.Add(this.rbNoSample);
|
||||
this.ucGroupBoxEx2.Controls.Add(this.label10);
|
||||
@@ -283,7 +283,7 @@
|
||||
this.ucGroupBoxEx1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.ucGroupBoxEx1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.ucGroupBoxEx1.BorderStyle = LittleRabbit.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx1.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx1.Controls.Add(this.btnRefresh);
|
||||
this.ucGroupBoxEx1.Location = new System.Drawing.Point(2, 2);
|
||||
this.ucGroupBoxEx1.Name = "ucGroupBoxEx1";
|
||||
|
||||
@@ -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;
|
||||
}));
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
partial class FilterForm
|
||||
{
|
||||
@@ -31,7 +31,7 @@
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FilterForm));
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.labelX1 = new DevComponents.DotNetBar.LabelX();
|
||||
this.btnSave = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.btnSave = new TemuKJD.UserControls.ButtonEx();
|
||||
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using AllBase;
|
||||
using LittleRabbit.LittleRabbitForms.BaseForms;
|
||||
using TemuKJD.KJDForms.BaseForms;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
@@ -12,7 +12,7 @@ using System.Windows.Forms;
|
||||
using Work;
|
||||
using Work.BLL.Upload;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
public partial class FilterForm : LRBaseForm
|
||||
{
|
||||
|
||||
@@ -17,24 +17,24 @@ using System.Text;
|
||||
using AllBase.Helper;
|
||||
using NaiBa.Util.Extension;
|
||||
using Work.CollectClass;
|
||||
using LittleRabbit.LittleRabbitForms.BaseForms;
|
||||
using TemuKJD.KJDForms.BaseForms;
|
||||
using AllBase.Model.Param.FissionManage;
|
||||
using Work;
|
||||
using Work.Api;
|
||||
using System.Threading;
|
||||
using LittleRabbit.LittleRabbitForms.ToolForms;
|
||||
using LittleRabbit.LittleRabbitForms.ToolForms.JDVerify;
|
||||
using TemuKJD.KJDForms.ToolForms;
|
||||
using TemuKJD.KJDForms.ToolForms.JDVerify;
|
||||
using NaiBa.Util;
|
||||
using Work.DouyinApiClass;
|
||||
using Work.BLL.Upload;
|
||||
using NaiBa.CefHelper;
|
||||
using AllBase.Model.Param.ProductManage;
|
||||
using LittleRabbit.LittleRabbitForms.UploadForms.FissionUserControl;
|
||||
using TemuKJD.KJDForms.UploadForms.FissionUserControl;
|
||||
using AllBase.Model.Result;
|
||||
using NaiBa.CefHelper.Handler;
|
||||
using LittleRabbit.LittleRabbitForms.ToolForms.KeywordsForms;
|
||||
using TemuKJD.KJDForms.ToolForms.KeywordsForms;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
public partial class Fission : LRBaseForm
|
||||
{
|
||||
@@ -664,7 +664,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
var item = this.cmbGetCatShop.SelectedItem as ComboBoxItem;
|
||||
if (item != null && item.Name != "随机选择")
|
||||
{
|
||||
dyShop = GlobalConfig.DouShopLoginList.FirstOrDefault(s => s.ShopAccountId == item.Name);
|
||||
dyShop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == item.Name);
|
||||
if (dyShop != null)
|
||||
{
|
||||
catid = (int)UploadProductBLL.GetCat(data.name, out errMsg, out fullCatStrings, dyShop);
|
||||
@@ -679,7 +679,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
}
|
||||
else
|
||||
{
|
||||
dyShop = GlobalConfig.DouShopLoginList.FirstOrDefault(s => s.LoginStatus == "登录成功");
|
||||
dyShop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.LoginStatus == "登录成功");
|
||||
if (dyShop == null)
|
||||
lblCategory.Text = "请登录店铺!";
|
||||
while (dyShop != null && catid == 0)
|
||||
@@ -690,7 +690,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
if (dyShop.LoginStatus == "未登录")
|
||||
{
|
||||
StartUp.SaveLocalShopLoginInfo();
|
||||
dyShop = GlobalConfig.DouShopLoginList.FirstOrDefault(s => s.LoginStatus == "登录成功");
|
||||
dyShop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.LoginStatus == "登录成功");
|
||||
Thread.Sleep(100);
|
||||
}
|
||||
}
|
||||
@@ -1767,7 +1767,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
{
|
||||
cboxShop.Items.Clear();
|
||||
|
||||
foreach (var shop in GlobalConfig.DouShopLoginList)
|
||||
foreach (var shop in GlobalConfig.ShopLoginList)
|
||||
{
|
||||
cboxShop.Items.Add(shop.ShopAccount);
|
||||
}
|
||||
@@ -1782,7 +1782,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
cboxCat3.Items.Clear();//有的店铺没有一级、二级、三级类目,所以,更改店铺前要把一二三级类目全部清空 by ttzhao 2020.10.13
|
||||
dicNameCate.Clear();
|
||||
string shopname = cboxShop.Text;
|
||||
var shop = GlobalConfig.DouShopLoginList.FirstOrDefault(x => x.ShopAccount == shopname);
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(x => x.ShopAccount == shopname);
|
||||
if (shop == null || shop.LstShopCategory == null)
|
||||
{
|
||||
return;
|
||||
@@ -2060,10 +2060,10 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
List<GoodsCategoryModel> list = NaiBa.Util.Helper.ConfigHelper.LoadConfig<List<GoodsCategoryModel>>("cat_dy");
|
||||
if (list == null)
|
||||
list = new List<GoodsCategoryModel>();
|
||||
if (list.Count == 0 || GlobalConfig.DouShopLoginList.Any(s => s.ApiAuthStatus == "授权成功" && (s.LstShopCategory == null || s.LstShopCategory.Count == 0)))
|
||||
if (list.Count == 0 || GlobalConfig.ShopLoginList.Any(s => s.ApiAuthStatus == "授权成功" && (s.LstShopCategory == null || s.LstShopCategory.Count == 0)))
|
||||
{
|
||||
//list.Clear();
|
||||
foreach (var shop in GlobalConfig.DouShopLoginList)
|
||||
foreach (var shop in GlobalConfig.ShopLoginList)
|
||||
{
|
||||
if (shop.ApiAuthStatus == "授权成功")
|
||||
{
|
||||
@@ -2562,7 +2562,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
if (!foodCate1Names.Any(f => categoryText.StartsWith(f)))
|
||||
return;
|
||||
|
||||
var dyShop = GlobalConfig.DouShopLoginList.FirstOrDefault(s => s.ApiAuthStatus == "授权成功");
|
||||
var dyShop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ApiAuthStatus == "授权成功");
|
||||
if (dyShop == null)
|
||||
{
|
||||
BaseMsgForm.ShowError("请确保至少有一个店铺授权成功!");
|
||||
@@ -2577,7 +2577,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
{
|
||||
dyShop.ApiAuthStatus = "未授权";
|
||||
StartUp.SaveLocalShopLoginInfo();
|
||||
dyShop = GlobalConfig.DouShopLoginList.FirstOrDefault(s => s.ApiAuthStatus == "授权成功");
|
||||
dyShop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ApiAuthStatus == "授权成功");
|
||||
if (dyShop == null)
|
||||
{
|
||||
BaseMsgForm.ShowError("请确保至少有一个店铺授权成功!");
|
||||
@@ -2729,7 +2729,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
var textQuery = "";
|
||||
while (result == "" || result.Contains("已过期"))
|
||||
{
|
||||
var dyShop = GlobalConfig.DouShopLoginList.FirstOrDefault(s => s.ApiAuthStatus == "授权成功");
|
||||
var dyShop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ApiAuthStatus == "授权成功");
|
||||
if (dyShop == null)
|
||||
{
|
||||
BaseMsgForm.ShowError("请确保至少有一个店铺授权成功!");
|
||||
@@ -2923,9 +2923,9 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
this.cmbGetCatShop.Items.Clear();
|
||||
|
||||
this.cmbGetCatShop.Items.Add(new ComboBoxItem() { Name = "随机选择", Text = "随机选择" });
|
||||
foreach (var shop in GlobalConfig.DouShopLoginList)
|
||||
foreach (var shop in GlobalConfig.ShopLoginList)
|
||||
{
|
||||
cmbGetCatShop.Items.Add(new ComboBoxItem() { Name = shop.ShopAccountId, Text = shop.ShopAccount + (shop.LoginStatus == "登录成功" ? "" : " 未登录") });
|
||||
cmbGetCatShop.Items.Add(new ComboBoxItem() { Name = shop.ShopId, Text = shop.ShopAccount + (shop.LoginStatus == "登录成功" ? "" : " 未登录") });
|
||||
}
|
||||
this.cmbGetCatShop.SelectedIndex = 0;
|
||||
}
|
||||
|
||||
+15
-15
@@ -1,9 +1,9 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using DevComponents.DotNetBar.Controls;
|
||||
using LittleRabbit.UserComponent;
|
||||
using TemuKJD.UserComponent;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
partial class Fission
|
||||
{
|
||||
@@ -75,7 +75,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
this.flpProp = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.flpQualification = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.splitContainer3 = new System.Windows.Forms.SplitContainer();
|
||||
this.dataGridView1 = new LittleRabbit.UserComponent.DataGridViewEx();
|
||||
this.dataGridView1 = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.id = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colDbId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colProductId = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
@@ -83,30 +83,30 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
this.status = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colRemove = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colDelete = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.btnCatchWords = new LittleRabbit.UserComponent.ButtonLc();
|
||||
this.lklbResetShop = new LittleRabbit.UserComponent.LinkLabelLc();
|
||||
this.btnCatchWords = new TemuKJD.UserComponent.ButtonLc();
|
||||
this.lklbResetShop = new TemuKJD.UserComponent.LinkLabelLc();
|
||||
this.cmbGetCatShop = new DevComponents.DotNetBar.Controls.ComboBoxEx();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.pnlShowOriginal = new System.Windows.Forms.Panel();
|
||||
this.btnShowOriginal = new LittleRabbit.UserComponent.ButtonLc();
|
||||
this.btnShowOriginal = new TemuKJD.UserComponent.ButtonLc();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.pnlShowCategoryList = new DevComponents.DotNetBar.PanelEx();
|
||||
this.buttonMeituPath = new LittleRabbit.UserComponent.ButtonLc();
|
||||
this.addToDBBtn = new LittleRabbit.UserComponent.ButtonLc();
|
||||
this.updateBtn = new LittleRabbit.UserComponent.ButtonLc();
|
||||
this.buttonMeituPath = new TemuKJD.UserComponent.ButtonLc();
|
||||
this.addToDBBtn = new TemuKJD.UserComponent.ButtonLc();
|
||||
this.updateBtn = new TemuKJD.UserComponent.ButtonLc();
|
||||
this.pbPaste = new System.Windows.Forms.PictureBox();
|
||||
this.lklbChangeCatId = new LittleRabbit.UserComponent.LinkLabelLc();
|
||||
this.lklbChangeCatId = new TemuKJD.UserComponent.LinkLabelLc();
|
||||
this.SourceTitlelabel = new System.Windows.Forms.LinkLabel();
|
||||
this.lblFromUrl = new System.Windows.Forms.Label();
|
||||
this.lblCategory = new System.Windows.Forms.Label();
|
||||
this.label9 = new System.Windows.Forms.Label();
|
||||
this.importFileBtn = new LittleRabbit.UserComponent.ButtonLc();
|
||||
this.importFileBtn = new TemuKJD.UserComponent.ButtonLc();
|
||||
this.freePostLabel = new System.Windows.Forms.Label();
|
||||
this.importURLtextBox = new System.Windows.Forms.TextBox();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.LastURLBtn = new LittleRabbit.UserComponent.ButtonLc();
|
||||
this.LastURLBtn = new TemuKJD.UserComponent.ButtonLc();
|
||||
this.sourceLabel = new System.Windows.Forms.Label();
|
||||
this.NextURLBtn = new LittleRabbit.UserComponent.ButtonLc();
|
||||
this.NextURLBtn = new TemuKJD.UserComponent.ButtonLc();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.priceLabel = new System.Windows.Forms.Label();
|
||||
this.priceLabel1 = new System.Windows.Forms.Label();
|
||||
@@ -190,7 +190,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
//
|
||||
this.pbLoading.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.pbLoading.Image = global::LittleRabbit.Properties.Resources.loading_blue;
|
||||
this.pbLoading.Image = global::TemuKJD.Properties.Resources.loading_blue;
|
||||
this.pbLoading.Location = new System.Drawing.Point(27, 214);
|
||||
this.pbLoading.Name = "pbLoading";
|
||||
this.pbLoading.Size = new System.Drawing.Size(1088, 64);
|
||||
@@ -976,7 +976,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
this.pbPaste.BackColor = System.Drawing.Color.White;
|
||||
this.pbPaste.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.pbPaste.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.pbPaste.Image = global::LittleRabbit.Properties.Resources.FullPaste;
|
||||
this.pbPaste.Image = global::TemuKJD.Properties.Resources.FullPaste;
|
||||
this.pbPaste.Location = new System.Drawing.Point(811, 6);
|
||||
this.pbPaste.Name = "pbPaste";
|
||||
this.pbPaste.Size = new System.Drawing.Size(22, 22);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using AllBase;
|
||||
using AllBase.Model.Param.FissionManage;
|
||||
using LittleRabbit.LittleRabbitForms.BaseForms;
|
||||
using LittleRabbit.LittleRabbitForms.ToolForms;
|
||||
using TemuKJD.KJDForms.BaseForms;
|
||||
using TemuKJD.KJDForms.ToolForms;
|
||||
using NaiBa.Util;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -12,7 +12,7 @@ using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using Work;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
class FissionBrowserObject
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
partial class FissionDataBaseForm
|
||||
{
|
||||
@@ -105,7 +105,7 @@
|
||||
this.buttonX5 = new DevComponents.DotNetBar.ButtonX();
|
||||
this.superTabItem2 = new DevComponents.DotNetBar.SuperTabItem();
|
||||
this.chkIsProxyIp = new System.Windows.Forms.CheckBox();
|
||||
this.dgvFissionProduct = new LittleRabbit.UserComponent.DataGridViewEx();
|
||||
this.dgvFissionProduct = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.labelX48 = new DevComponents.DotNetBar.LabelX();
|
||||
this.chkAutoTurnPage = new System.Windows.Forms.CheckBox();
|
||||
this.progressBarX1 = new DevComponents.DotNetBar.Controls.ProgressBarX();
|
||||
@@ -1035,7 +1035,7 @@
|
||||
// pbLoading
|
||||
//
|
||||
this.pbLoading.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
||||
this.pbLoading.Image = global::LittleRabbit.Properties.Resources.loading_blue;
|
||||
this.pbLoading.Image = global::TemuKJD.Properties.Resources.loading_blue;
|
||||
this.pbLoading.Location = new System.Drawing.Point(596, 107);
|
||||
this.pbLoading.Name = "pbLoading";
|
||||
this.pbLoading.Size = new System.Drawing.Size(72, 64);
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
using AllBase.Helper;
|
||||
using AllBase.Model.Param.FissionManage;
|
||||
using AllBase.Model.Result;
|
||||
using LittleRabbit.Extension;
|
||||
using LittleRabbit.LittleRabbitForms.BaseForms;
|
||||
using TemuKJD.Extension;
|
||||
using TemuKJD.KJDForms.BaseForms;
|
||||
using NaiBa.Util.Extension;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
@@ -24,7 +24,7 @@ using Work.BLL.Upload;
|
||||
using Work.CollectClass;
|
||||
using Work.DouyinApiClass;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
public partial class FissionDataBaseForm : Form
|
||||
{
|
||||
@@ -208,7 +208,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
{
|
||||
cmbShop.Items.Clear();
|
||||
cmbShop.Items.Add("不限");
|
||||
foreach (var shop in GlobalConfig.DouShopLoginList)
|
||||
foreach (var shop in GlobalConfig.ShopLoginList)
|
||||
{
|
||||
cmbShop.Items.Add(shop.ShopAccount);
|
||||
}
|
||||
@@ -228,7 +228,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
catList1.Insert(0, new GoodsCategoryModel() { name = "不限", parent_id = 0, level = 0, enable = true, is_leaf = false, id = -1, main_cat_id = 0 });
|
||||
|
||||
string shopname = cmbShop.Text;
|
||||
var shop = GlobalConfig.DouShopLoginList.FirstOrDefault(x => x.ShopAccount == shopname);
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(x => x.ShopAccount == shopname);
|
||||
if (shop != null)
|
||||
{
|
||||
catList1.AddRange(GetCategoryList(0, shop));
|
||||
@@ -258,7 +258,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
cmbShopCat3.Items.Clear(); // 防止有的店铺没有一级、二级、三级类目,所以,更改店铺前要把一级类目清空
|
||||
List<GoodsCategoryModel> catList2 = new List<GoodsCategoryModel>();
|
||||
string shopname = cmbShop.Text;
|
||||
var shop = GlobalConfig.DouShopLoginList.FirstOrDefault(x => x.ShopAccount == shopname);
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(x => x.ShopAccount == shopname);
|
||||
if (shop != null)
|
||||
{
|
||||
if (cmbShopCat1.SelectedItem is GoodsCategoryModel)
|
||||
@@ -277,7 +277,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
cmbShopCat3.Items.Clear(); // 防止有的店铺没有一级、二级、三级类目,所以,更改店铺前要把三级类目清空
|
||||
List<GoodsCategoryModel> catList3 = new List<GoodsCategoryModel>();
|
||||
string shopname = cmbShop.Text;
|
||||
var shop = GlobalConfig.DouShopLoginList.FirstOrDefault(x => x.ShopAccount == shopname);
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(x => x.ShopAccount == shopname);
|
||||
if (shop != null)
|
||||
{
|
||||
if (cmbShopCat2.SelectedItem is GoodsCategoryModel)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using CefSharp;
|
||||
using LittleRabbit.LittleRabbitForms.BaseForms;
|
||||
using TemuKJD.KJDForms.BaseForms;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
@@ -12,7 +12,7 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
public partial class FissionShowBigImgForm : LRBaseForm
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
partial class FissionShowBigImgForm
|
||||
{
|
||||
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms.FissionUserControl
|
||||
namespace TemuKJD.KJDForms.UploadForms.FissionUserControl
|
||||
{
|
||||
partial class UcCategoryProp
|
||||
{
|
||||
@@ -29,7 +29,7 @@
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.ucGroupBoxEx1 = new LittleRabbit.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.txtPropValue = new DevComponents.DotNetBar.Controls.TextBoxX();
|
||||
this.ucGroupBoxEx1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
@@ -37,7 +37,7 @@
|
||||
// ucGroupBoxEx1
|
||||
//
|
||||
this.ucGroupBoxEx1.BorderColor = System.Drawing.Color.DodgerBlue;
|
||||
this.ucGroupBoxEx1.BorderStyle = LittleRabbit.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.SQUARE;
|
||||
this.ucGroupBoxEx1.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.SQUARE;
|
||||
this.ucGroupBoxEx1.Controls.Add(this.txtPropValue);
|
||||
this.ucGroupBoxEx1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.ucGroupBoxEx1.Location = new System.Drawing.Point(0, 0);
|
||||
|
||||
@@ -8,9 +8,9 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using AllBase.Helper;
|
||||
using LittleRabbit.LittleRabbitForms.BaseForms;
|
||||
using TemuKJD.KJDForms.BaseForms;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms.FissionUserControl
|
||||
namespace TemuKJD.KJDForms.UploadForms.FissionUserControl
|
||||
{
|
||||
public partial class UcCategoryProp : UserControl
|
||||
{
|
||||
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms.FissionUserControl
|
||||
namespace TemuKJD.KJDForms.UploadForms.FissionUserControl
|
||||
{
|
||||
partial class UcQualifiaction
|
||||
{
|
||||
@@ -31,7 +31,7 @@
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.txtQualificationNumber = new DevComponents.DotNetBar.Controls.TextBoxX();
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
this.ucGroupBoxEx1 = new LittleRabbit.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.btnUploadImg = new DevComponents.DotNetBar.PanelEx();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
@@ -76,7 +76,7 @@
|
||||
// ucGroupBoxEx1
|
||||
//
|
||||
this.ucGroupBoxEx1.BorderColor = System.Drawing.Color.DodgerBlue;
|
||||
this.ucGroupBoxEx1.BorderStyle = LittleRabbit.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.SQUARE;
|
||||
this.ucGroupBoxEx1.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.SQUARE;
|
||||
this.ucGroupBoxEx1.Controls.Add(this.splitContainer1);
|
||||
this.ucGroupBoxEx1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.ucGroupBoxEx1.Location = new System.Drawing.Point(0, 0);
|
||||
|
||||
@@ -9,10 +9,10 @@ using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using AllBase.Model.Param.ProductManage;
|
||||
using AllBase;
|
||||
using LittleRabbit.LittleRabbitForms.BaseForms;
|
||||
using LittleRabbit.LittleRabbitForms.UploadForms;
|
||||
using TemuKJD.KJDForms.BaseForms;
|
||||
using TemuKJD.KJDForms.UploadForms;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms.FissionUserControl
|
||||
namespace TemuKJD.KJDForms.UploadForms.FissionUserControl
|
||||
{
|
||||
public partial class UcQualifiaction : UserControl
|
||||
{
|
||||
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
partial class GetUpProductForm
|
||||
{
|
||||
@@ -37,7 +37,7 @@
|
||||
this.labelX10 = new DevComponents.DotNetBar.LabelX();
|
||||
this.btnSearch = new DevComponents.DotNetBar.ButtonX();
|
||||
this.buttonX1 = new DevComponents.DotNetBar.ButtonX();
|
||||
this.dgvProduct = new LittleRabbit.UserComponent.DataGridViewEx();
|
||||
this.dgvProduct = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.colProductId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colFrom = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -61,7 +61,7 @@
|
||||
this.pbPaste.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.pbPaste.BackColor = System.Drawing.Color.White;
|
||||
this.pbPaste.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.pbPaste.Image = global::LittleRabbit.Properties.Resources.FullPaste;
|
||||
this.pbPaste.Image = global::TemuKJD.Properties.Resources.FullPaste;
|
||||
this.pbPaste.Location = new System.Drawing.Point(860, 75);
|
||||
this.pbPaste.Name = "pbPaste";
|
||||
this.pbPaste.Size = new System.Drawing.Size(33, 29);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using AllBase;
|
||||
using LittleRabbit.LittleRabbitForms.BaseForms;
|
||||
using TemuKJD.KJDForms.BaseForms;
|
||||
using NaiBa.Util;
|
||||
using NaiBa.Util.Extension;
|
||||
using NaiBa.Util.Helper;
|
||||
@@ -15,7 +15,7 @@ using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using Work;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
public partial class GetUpProductForm : Form
|
||||
{
|
||||
|
||||
@@ -14,9 +14,9 @@ using Work;
|
||||
using System.Threading;
|
||||
using Work.CollectClass;
|
||||
using Work.Api;
|
||||
using LittleRabbit.LittleRabbitForms.BaseForms;
|
||||
using TemuKJD.KJDForms.BaseForms;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms
|
||||
namespace TemuKJD.KJDForms
|
||||
{
|
||||
public partial class IeForm : LRBaseForm
|
||||
{
|
||||
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
namespace LittleRabbit.LittleRabbitForms
|
||||
namespace TemuKJD.KJDForms
|
||||
{
|
||||
partial class IeForm
|
||||
{
|
||||
@@ -32,12 +32,12 @@
|
||||
this.pnlBody = new System.Windows.Forms.Panel();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.buttonEx1 = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.buttonEx1 = new TemuKJD.UserControls.ButtonEx();
|
||||
this.panelSettleSlide = new DevComponents.DotNetBar.PanelEx();
|
||||
this.userComboBox = new System.Windows.Forms.ComboBox();
|
||||
this.label25 = new System.Windows.Forms.Label();
|
||||
this.delCookiesButtonX = new DevComponents.DotNetBar.PanelEx();
|
||||
this.buttonEx4 = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.buttonEx4 = new TemuKJD.UserControls.ButtonEx();
|
||||
this.checkBox1 = new System.Windows.Forms.CheckBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.pnlBody.SuspendLayout();
|
||||
|
||||
+18
-18
@@ -1,4 +1,4 @@
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
partial class ShopProductForm
|
||||
{
|
||||
@@ -33,17 +33,17 @@
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.buttonEx1 = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.ucGroupBoxEx3 = new LittleRabbit.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.btnStop = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.btnDelOffSale = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.btnDelOnSale = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.btnOffline = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.btnOnline = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.ucGroupBoxEx1 = new LittleRabbit.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.btnGetProductCount = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.btnRefreshShop = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.ucGroupBoxEx2 = new LittleRabbit.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.buttonEx1 = new TemuKJD.UserControls.ButtonEx();
|
||||
this.ucGroupBoxEx3 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.btnStop = new TemuKJD.UserControls.ButtonEx();
|
||||
this.btnDelOffSale = new TemuKJD.UserControls.ButtonEx();
|
||||
this.btnDelOnSale = new TemuKJD.UserControls.ButtonEx();
|
||||
this.btnOffline = new TemuKJD.UserControls.ButtonEx();
|
||||
this.btnOnline = new TemuKJD.UserControls.ButtonEx();
|
||||
this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.btnGetProductCount = new TemuKJD.UserControls.ButtonEx();
|
||||
this.btnRefreshShop = new TemuKJD.UserControls.ButtonEx();
|
||||
this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.txtKeywords = new DevComponents.DotNetBar.Controls.TextBoxX();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.chkNotOperateChangeDays = new System.Windows.Forms.CheckBox();
|
||||
@@ -53,7 +53,7 @@
|
||||
this.txtOperateCount = new System.Windows.Forms.TextBox();
|
||||
this.label12 = new System.Windows.Forms.Label();
|
||||
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
|
||||
this.dgvShop = new LittleRabbit.UserComponent.DataGridViewEx();
|
||||
this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -65,8 +65,8 @@
|
||||
this.colOffSaleCount = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colOperationCount = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.btnFailedDetail = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.statusBar = new LittleRabbit.UserControls.StatusBarUserControl();
|
||||
this.btnFailedDetail = new TemuKJD.UserControls.ButtonEx();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
@@ -123,7 +123,7 @@
|
||||
// ucGroupBoxEx3
|
||||
//
|
||||
this.ucGroupBoxEx3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.ucGroupBoxEx3.BorderStyle = LittleRabbit.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx3.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx3.Controls.Add(this.btnStop);
|
||||
this.ucGroupBoxEx3.Controls.Add(this.btnDelOffSale);
|
||||
this.ucGroupBoxEx3.Controls.Add(this.btnDelOnSale);
|
||||
@@ -219,7 +219,7 @@
|
||||
// ucGroupBoxEx1
|
||||
//
|
||||
this.ucGroupBoxEx1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.ucGroupBoxEx1.BorderStyle = LittleRabbit.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx1.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx1.Controls.Add(this.btnGetProductCount);
|
||||
this.ucGroupBoxEx1.Controls.Add(this.btnRefreshShop);
|
||||
this.ucGroupBoxEx1.Location = new System.Drawing.Point(2, 2);
|
||||
@@ -264,7 +264,7 @@
|
||||
// ucGroupBoxEx2
|
||||
//
|
||||
this.ucGroupBoxEx2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.ucGroupBoxEx2.BorderStyle = LittleRabbit.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx2.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx2.Controls.Add(this.txtKeywords);
|
||||
this.ucGroupBoxEx2.Controls.Add(this.label1);
|
||||
this.ucGroupBoxEx2.Controls.Add(this.chkNotOperateChangeDays);
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
using AllBase.Helper;
|
||||
using AllBase.Model.Result;
|
||||
using CefSharp.WinForms;
|
||||
using LittleRabbit.Extension;
|
||||
using LittleRabbit.LittleRabbitForms.BaseForms;
|
||||
using TemuKJD.Extension;
|
||||
using TemuKJD.KJDForms.BaseForms;
|
||||
using NaiBa.CefHelper;
|
||||
using NaiBa.CefHelper.Handler;
|
||||
using NaiBa.Util.Extension;
|
||||
@@ -22,7 +22,7 @@ using System.Windows.Forms;
|
||||
using Work.BLL.Product;
|
||||
using Work.DouyinApiClass;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
public partial class ShopProductForm : Form
|
||||
{
|
||||
@@ -77,7 +77,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
void GetShopProduct(bool isShowProgress = true)
|
||||
{
|
||||
int i = 0;
|
||||
var shopList = GlobalConfig.DouShopLoginList.Where(s => s.ApiAuthStatus == "授权成功" && lstShopId.Contains(s.ShopAccountId));
|
||||
var shopList = GlobalConfig.ShopLoginList.Where(s => s.ApiAuthStatus == "授权成功" && lstShopId.Contains(s.ShopId));
|
||||
foreach (var shop in shopList)
|
||||
{
|
||||
this.Invoke(new Action(() =>
|
||||
@@ -111,7 +111,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
DataGridViewRow row = null;
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null)
|
||||
{
|
||||
if (isShowResult)
|
||||
@@ -199,17 +199,17 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
private void RefreshShop()
|
||||
{
|
||||
// 更新选中的上货店铺Id
|
||||
lstShopId = lstShopId.Where(id => GlobalConfig.DouShopLoginList.Any(s => s.ShopAccountId == id && s.LoginStatus == "已授权")).ToList();
|
||||
lstShopId = lstShopId.Where(id => GlobalConfig.ShopLoginList.Any(s => s.ShopId == id && s.LoginStatus == "已授权")).ToList();
|
||||
// 获取被删除的店铺
|
||||
List<DataGridViewRow> dgvRowList = dgvShop.Rows.Cast<DataGridViewRow>().Where(row
|
||||
=> !GlobalConfig.DouShopLoginList.Any(s => s.ShopAccountId == row.Cells["colShopId"]?.Value?.ToString())).ToList();
|
||||
=> !GlobalConfig.ShopLoginList.Any(s => s.ShopId == row.Cells["colShopId"]?.Value?.ToString())).ToList();
|
||||
// 更新被删除的店铺列表
|
||||
foreach (var row in dgvRowList)
|
||||
{
|
||||
dgvShop.Rows.Remove(row);
|
||||
}
|
||||
// 绑定其他店铺(含新导入的店铺)
|
||||
foreach (DouShopLoginInfo shopEntity in GlobalConfig.DouShopLoginList)
|
||||
foreach (DouShopLoginInfo shopEntity in GlobalConfig.ShopLoginList)
|
||||
{
|
||||
BindShop(shopEntity);
|
||||
}
|
||||
@@ -217,12 +217,12 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
|
||||
private void BindShop(DouShopLoginInfo shopEntity)
|
||||
{
|
||||
var row = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(p => p.Cells.GetCellValueFromColumnName("colShopId").ParseToString() == shopEntity.ShopAccountId);
|
||||
var row = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(p => p.Cells.GetCellValueFromColumnName("colShopId").ParseToString() == shopEntity.ShopId);
|
||||
if (row == null)
|
||||
{
|
||||
this.dgvShop.Rows.Add(
|
||||
false,
|
||||
shopEntity.ShopAccountId,
|
||||
shopEntity.ShopId,
|
||||
shopEntity.ShopAccount,
|
||||
shopEntity.ApiAuthStatus,
|
||||
shopEntity.LoginStatus,
|
||||
@@ -236,7 +236,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
}
|
||||
else
|
||||
{
|
||||
row.Cells["colSelect"].Value = lstShopId.Contains(shopEntity.ShopAccountId);
|
||||
row.Cells["colSelect"].Value = lstShopId.Contains(shopEntity.ShopId);
|
||||
row.Cells["colShopName"].Value = shopEntity.ShopAccount;
|
||||
row.Cells["colAuthStatus"].Value = shopEntity.ApiAuthStatus;
|
||||
row.Cells["colLoginStatus"].Value = shopEntity.LoginStatus;
|
||||
@@ -259,7 +259,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
else
|
||||
{
|
||||
lstShopId.Clear();
|
||||
var list = GlobalConfig.DouShopLoginList.Where(s => s.ApiAuthStatus == "授权成功" && s.LoginStatus == "登录成功").Select(ss => ss.ShopAccountId);
|
||||
var list = GlobalConfig.ShopLoginList.Where(s => s.ApiAuthStatus == "授权成功" && s.LoginStatus == "登录成功").Select(ss => ss.ShopId);
|
||||
lstShopId.AddRange(list);
|
||||
foreach (DataGridViewRow row in dgvShop.Rows)
|
||||
{
|
||||
@@ -281,7 +281,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
string headerText = dgvShop.Columns[e.ColumnIndex].HeaderText;
|
||||
long shopId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToLong();
|
||||
string shopName = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ToString();
|
||||
var shop = GlobalConfig.DouShopLoginList.FirstOrDefault(s => s.ShopAccountId == shopId.ToString());
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId.ToString());
|
||||
switch (headerText)
|
||||
{
|
||||
case "操作":
|
||||
@@ -358,14 +358,14 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
this.statusBar.pgbTaskProgress.Maximum = total;
|
||||
}));
|
||||
|
||||
var shop = GlobalConfig.DouShopLoginList.FirstOrDefault(s => s.ShopAccountId == shopId);
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
|
||||
if (shop == null)
|
||||
continue;
|
||||
|
||||
DataGridViewRow row = null;
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = "正在上架商品"; }
|
||||
}));
|
||||
|
||||
@@ -391,7 +391,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
currentNum += pageSize;
|
||||
if (cancellationTokenSource.IsCancellationRequested)
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { Invoke(new Action(() => { row.Cells["colStatus"].Value = "上架中断"; })); }
|
||||
break;
|
||||
}
|
||||
@@ -412,7 +412,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null)
|
||||
{
|
||||
row.Cells["colOffSaleCount"].Value = totalNumBase;
|
||||
@@ -423,7 +423,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
onSaleMessage = "上架结束,店铺没有未上架的商品";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = onSaleMessage; }
|
||||
}));
|
||||
break;
|
||||
@@ -446,7 +446,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
onSaleMessage = "正在获取商品,第 " + currentNum + " 件商品,共 " + shopOperatecount + " 件商品";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = onSaleMessage; }
|
||||
}));
|
||||
}
|
||||
@@ -463,7 +463,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
onSaleMessage = ("上架失败," + failMessage).TrimEnd(',');
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = onSaleMessage; }
|
||||
}));
|
||||
Thread.Sleep(1000);
|
||||
@@ -483,7 +483,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
{
|
||||
if (cancellationTokenSource.IsCancellationRequested)
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { Invoke(new Action(() => { row.Cells["colStatus"].Value = "上架中断"; })); }
|
||||
break;
|
||||
}
|
||||
@@ -492,7 +492,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = "当前为试用版,请购买专业版"; }
|
||||
}));
|
||||
break;
|
||||
@@ -501,7 +501,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
onSaleMessage = "正在上架,第 " + (i + 1) + " 件商品,共 " + shopOperatecount + " 件商品";
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = onSaleMessage; }
|
||||
}));
|
||||
Thread.Sleep(50);
|
||||
@@ -550,7 +550,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
list = "";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = onSaleMessage; }
|
||||
}));
|
||||
if (onSaleMessage.Contains("失败"))
|
||||
@@ -565,7 +565,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
onSaleMessage = "上架完成";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = onSaleMessage; }
|
||||
}));
|
||||
}
|
||||
@@ -678,7 +678,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
this.statusBar.pgbTaskProgress.Maximum = total;
|
||||
}));
|
||||
|
||||
var shop = GlobalConfig.DouShopLoginList.FirstOrDefault(s => s.ShopAccountId == shopId);
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
|
||||
if (shop == null)
|
||||
continue;
|
||||
|
||||
@@ -686,13 +686,13 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = "正在初始化下架商品"; }
|
||||
}));
|
||||
|
||||
if (cancellationTokenSource.IsCancellationRequested)
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { Invoke(new Action(() => { row.Cells["colStatus"].Value = "下架中断"; })); }
|
||||
break;
|
||||
}
|
||||
@@ -700,15 +700,15 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
// 过滤有销量的商品
|
||||
if (isNotOperateHasSales)
|
||||
{
|
||||
if (LittleRabbitForms.ShopForms.ShopListForm.Instance == null)
|
||||
LittleRabbitForms.ShopForms.ShopListForm.Instance = new LittleRabbitForms.ShopForms.ShopListForm();
|
||||
LittleRabbitForms.ShopForms.ShopListForm.Instance.CheckShopLogin(new string[] { shop.ShopAccount }, false);
|
||||
if (KJDForms.ShopForms.ShopListForm.Instance == null)
|
||||
KJDForms.ShopForms.ShopListForm.Instance = new KJDForms.ShopForms.ShopListForm();
|
||||
KJDForms.ShopForms.ShopListForm.Instance.CheckShopLogin(new string[] { shop.ShopAccount }, false);
|
||||
|
||||
if (shop.LoginStatus != "登录成功")
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = "未登录店铺无法获取商品销量。"; }
|
||||
}));
|
||||
continue;
|
||||
@@ -726,7 +726,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
this.btnOnline.Enabled = this.btnOffline.Enabled = this.btnDelOffSale.Enabled = this.btnDelOnSale.Enabled = true;
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = "店铺获取商品销量失败。"; }
|
||||
}));
|
||||
continue;
|
||||
@@ -756,7 +756,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
currentNum += pageSize;
|
||||
if (cancellationTokenSource.IsCancellationRequested)
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { Invoke(new Action(() => { row.Cells["colStatus"].Value = "下架中断"; })); }
|
||||
break;
|
||||
}
|
||||
@@ -777,7 +777,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null)
|
||||
{
|
||||
row.Cells["colOnSaleCount"].Value = totalNumBase;
|
||||
@@ -788,7 +788,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
offSaleMessage = "下架结束,店铺没有未下架的商品";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = offSaleMessage; }
|
||||
}));
|
||||
break;
|
||||
@@ -816,7 +816,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
offSaleMessage = "已获取:" + currentNum + ",符合条件:" + productList.Count + ",在售商品获取中...";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = offSaleMessage; }
|
||||
}));
|
||||
}
|
||||
@@ -833,7 +833,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
offSaleMessage = ("下架失败," + failMessage).TrimEnd(',');
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = offSaleMessage; }
|
||||
}));
|
||||
Thread.Sleep(1000);
|
||||
@@ -849,7 +849,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
offSaleMessage = "下架完成";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = offSaleMessage; }
|
||||
}));
|
||||
}
|
||||
@@ -859,7 +859,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
{
|
||||
if (cancellationTokenSource.IsCancellationRequested)
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { Invoke(new Action(() => { row.Cells["colStatus"].Value = "下架中断"; })); }
|
||||
break;
|
||||
}
|
||||
@@ -868,7 +868,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = "当前为试用版,请购买专业版"; }
|
||||
}));
|
||||
break;
|
||||
@@ -877,7 +877,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
offSaleMessage = "正在下架,第 " + (i + 1) + " 件商品,共 " + shopOperateCount + " 件商品";
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = offSaleMessage; }
|
||||
}));
|
||||
Thread.Sleep(50);
|
||||
@@ -918,7 +918,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
list = "";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = offSaleMessage; }
|
||||
}));
|
||||
Thread.Sleep(Randomx.GetId(100, 200));
|
||||
@@ -931,7 +931,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
offSaleMessage = "下架完成";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = offSaleMessage; }
|
||||
}));
|
||||
}
|
||||
@@ -1046,7 +1046,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
this.statusBar.pgbTaskProgress.Maximum = total;
|
||||
}));
|
||||
|
||||
var shop = GlobalConfig.DouShopLoginList.FirstOrDefault(s => s.ShopAccountId == shopId);
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
|
||||
if (shop == null)
|
||||
continue;
|
||||
|
||||
@@ -1054,7 +1054,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null)
|
||||
{
|
||||
if (isDelOnline)
|
||||
@@ -1075,7 +1075,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = "未登录店铺无法获取商品销量。"; }
|
||||
}));
|
||||
continue;
|
||||
@@ -1093,7 +1093,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
this.btnOnline.Enabled = this.btnOffline.Enabled = this.btnDelOffSale.Enabled = this.btnDelOnSale.Enabled = true;
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = "店铺获取商品销量失败。"; }
|
||||
}));
|
||||
continue;
|
||||
@@ -1128,7 +1128,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
currentNum += pageSize;
|
||||
if (cancellationTokenSource.IsCancellationRequested)
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { Invoke(new Action(() => { row.Cells["colStatus"].Value = "删除中断"; })); }
|
||||
break;
|
||||
}
|
||||
@@ -1155,7 +1155,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null)
|
||||
{
|
||||
if (isDelOnline)
|
||||
@@ -1171,7 +1171,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
deleteProductMessage = "删除结束,店铺没有仓库商品";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = deleteProductMessage; }
|
||||
}));
|
||||
break;
|
||||
@@ -1201,7 +1201,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
deleteProductMessage = "已获取:" + currentNum + ",符合条件:" + productList.Count + ",仓库商品获取中...";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = deleteProductMessage; }
|
||||
}));
|
||||
}
|
||||
@@ -1218,7 +1218,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
deleteProductMessage = ("删除失败," + failMessage).TrimEnd(',');
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = deleteProductMessage; }
|
||||
}));
|
||||
Thread.Sleep(1000);
|
||||
@@ -1234,7 +1234,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
deleteProductMessage = "删除完成";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = deleteProductMessage; }
|
||||
}));
|
||||
}
|
||||
@@ -1244,7 +1244,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
deleteProductMessage = "删除完成";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = deleteProductMessage; }
|
||||
}));
|
||||
}
|
||||
@@ -1254,7 +1254,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
{
|
||||
if (cancellationTokenSource.IsCancellationRequested)
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { Invoke(new Action(() => { row.Cells["colStatus"].Value = "删除中断"; })); }
|
||||
break;
|
||||
}
|
||||
@@ -1263,7 +1263,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = "当前为试用版,请购买专业版"; }
|
||||
}));
|
||||
break;
|
||||
@@ -1274,7 +1274,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
deleteProductMessage = "正在删除在售商品,第 " + (i + 1) + " 件商品,共 " + shopOperatecount + " 件商品";
|
||||
if (!isDelOnline)
|
||||
deleteProductMessage = "正在删除仓库商品,第 " + (i + 1) + " 件商品,共 " + shopOperatecount + " 件商品";
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = deleteProductMessage; }
|
||||
}));
|
||||
Thread.Sleep(50);
|
||||
@@ -1314,7 +1314,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
list = "";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = deleteProductMessage; }
|
||||
}));
|
||||
Thread.Sleep(Randomx.GetId(100, 200));
|
||||
@@ -1327,7 +1327,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
deleteProductMessage = "删除完成";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = deleteProductMessage; }
|
||||
}));
|
||||
}
|
||||
|
||||
+10
-10
@@ -1,4 +1,4 @@
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
partial class SpecialDelaySendForm
|
||||
{
|
||||
@@ -33,19 +33,19 @@
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.ucGroupBoxEx2 = new LittleRabbit.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.txtNotOperateDays = new System.Windows.Forms.TextBox();
|
||||
this.txtTotalCount = new System.Windows.Forms.TextBox();
|
||||
this.label26 = new System.Windows.Forms.Label();
|
||||
this.chkIsNotOperateDays = new System.Windows.Forms.CheckBox();
|
||||
this.ucGroupBoxEx1 = new LittleRabbit.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.btnRefresh = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.btnStop = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.btnStart = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.btnRefresh = new TemuKJD.UserControls.ButtonEx();
|
||||
this.btnStop = new TemuKJD.UserControls.ButtonEx();
|
||||
this.btnStart = new TemuKJD.UserControls.ButtonEx();
|
||||
this.splitContainer3 = new System.Windows.Forms.SplitContainer();
|
||||
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
|
||||
this.dgvShop = new LittleRabbit.UserComponent.DataGridViewEx();
|
||||
this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -54,7 +54,7 @@
|
||||
this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
|
||||
this.pnlShowError = new DevComponents.DotNetBar.PanelEx();
|
||||
this.splitContainer4 = new System.Windows.Forms.SplitContainer();
|
||||
this.statusBar = new LittleRabbit.UserControls.StatusBarUserControl();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
@@ -103,7 +103,7 @@
|
||||
this.ucGroupBoxEx2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.ucGroupBoxEx2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.ucGroupBoxEx2.BorderStyle = LittleRabbit.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.SQUARE;
|
||||
this.ucGroupBoxEx2.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.SQUARE;
|
||||
this.ucGroupBoxEx2.Controls.Add(this.label1);
|
||||
this.ucGroupBoxEx2.Controls.Add(this.txtNotOperateDays);
|
||||
this.ucGroupBoxEx2.Controls.Add(this.txtTotalCount);
|
||||
@@ -172,7 +172,7 @@
|
||||
this.ucGroupBoxEx1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.ucGroupBoxEx1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.ucGroupBoxEx1.BorderStyle = LittleRabbit.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.SQUARE;
|
||||
this.ucGroupBoxEx1.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.SQUARE;
|
||||
this.ucGroupBoxEx1.Controls.Add(this.btnRefresh);
|
||||
this.ucGroupBoxEx1.Location = new System.Drawing.Point(2, 2);
|
||||
this.ucGroupBoxEx1.Name = "ucGroupBoxEx1";
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
using AllBase.Helper;
|
||||
using AllBase.Model.Result;
|
||||
using CefSharp.WinForms;
|
||||
using LittleRabbit.Extension;
|
||||
using LittleRabbit.LittleRabbitForms.BaseForms;
|
||||
using TemuKJD.Extension;
|
||||
using TemuKJD.KJDForms.BaseForms;
|
||||
using NaiBa.CefHelper;
|
||||
using NaiBa.CefHelper.Handler;
|
||||
using NaiBa.Util.Extension;
|
||||
@@ -20,7 +20,7 @@ using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using Work.DouyinApiClass;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
public partial class SpecialDelaySendForm : Form
|
||||
{
|
||||
@@ -56,12 +56,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 == "登录成功" && shop.ApiAuthStatus == "授权成功" ? "可用" : "");
|
||||
dgvShop.Rows.Add(false, shop.ShopId, shop.ShopAccount, shop.LoginStatus == "登录成功" && shop.ApiAuthStatus == "授权成功" ? "可用" : "");
|
||||
else
|
||||
{
|
||||
row.Cells["colLoginStatus"].Value = shop.LoginStatus;
|
||||
@@ -88,7 +88,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
DataGridViewRow row = null;
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null)
|
||||
{
|
||||
if (isShowResult)
|
||||
@@ -165,7 +165,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
this.operateCount = this.txtTotalCount.Text.ParseToInt();
|
||||
var shopIds = this.dgvShop.Rows.Cast<DataGridViewRow>().Where(r => r.Cells["colSelect"].Value.ParseToBool() == true)
|
||||
.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();
|
||||
if (shops.Count == 0)
|
||||
{
|
||||
BaseMsgForm.ShowError("请选择要操作的店铺");
|
||||
@@ -208,7 +208,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 = "设置中断";
|
||||
}));
|
||||
@@ -242,7 +242,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
currentNum += pageSize;
|
||||
if (cancellationTokenSource != null && cancellationTokenSource.IsCancellationRequested)
|
||||
{
|
||||
var row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
var row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { Invoke(new Action(() => { row.Cells["colMessage"].Value = "下架中断"; })); }
|
||||
break;
|
||||
}
|
||||
@@ -263,7 +263,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
var row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
var row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null)
|
||||
{
|
||||
//row.Cells["colOnSaleCount"].Value = totalNumBase;
|
||||
@@ -274,7 +274,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
offSaleMessage = "设置结束,店铺没有在售的商品";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
var row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
var row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colMessage"].Value = offSaleMessage; }
|
||||
}));
|
||||
break;
|
||||
@@ -293,7 +293,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
offSaleMessage = "正在获取商品,第" + currentNum + "件商品,共" + operateCount + "件商品";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
var row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
var row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colMessage"].Value = offSaleMessage; }
|
||||
}));
|
||||
}
|
||||
@@ -310,7 +310,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
offSaleMessage = ("设置发货延迟失败," + failMessage).TrimEnd(',');
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
var row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
var row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colMessage"].Value = offSaleMessage; }
|
||||
}));
|
||||
}
|
||||
@@ -332,7 +332,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
{
|
||||
if (cancellationTokenSource != null && cancellationTokenSource.IsCancellationRequested)
|
||||
{
|
||||
var row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
var row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { Invoke(new Action(() => { row.Cells["colMessage"].Value = "设置发货延迟中断"; })); }
|
||||
break;
|
||||
}
|
||||
@@ -340,7 +340,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
offSaleMessage = "正在设置发货延迟,第 " + (i + 1) + " 件商品,共 " + operateCount + " 件商品";
|
||||
var row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
var row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colMessage"].Value = offSaleMessage; }
|
||||
this.statusBar.lblTaskStatus.Text = offSaleMessage;
|
||||
}));
|
||||
@@ -425,7 +425,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
offSaleMessage = "设置特殊发货时间完成";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
var row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
var row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colMessage"].Value = offSaleMessage; }
|
||||
}));
|
||||
}
|
||||
@@ -485,7 +485,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
string headerText = dgvShop.Columns[e.ColumnIndex].HeaderText;
|
||||
long shopId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToLong();
|
||||
string shopName = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ToString();
|
||||
var shop = GlobalConfig.DouShopLoginList.FirstOrDefault(s => s.ShopAccountId == shopId.ToString());
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId.ToString());
|
||||
switch (headerText)
|
||||
{
|
||||
case "操作":
|
||||
@@ -521,7 +521,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
}
|
||||
else
|
||||
{
|
||||
var list = GlobalConfig.DouShopLoginList.Where(s => s.ApiAuthStatus == "授权成功" && s.LoginStatus == "登录成功").Select(ss => ss.ShopAccountId);
|
||||
var list = GlobalConfig.ShopLoginList.Where(s => s.ApiAuthStatus == "授权成功" && s.LoginStatus == "登录成功").Select(ss => ss.ShopId);
|
||||
foreach (DataGridViewRow row in dgvShop.Rows)
|
||||
{
|
||||
if (list.Any(l => l == row.Cells["colShopId"]?.Value?.ToString()))
|
||||
|
||||
+14
-14
@@ -1,4 +1,4 @@
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
partial class StockSyncForm
|
||||
{
|
||||
@@ -34,19 +34,19 @@
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.txtKeywords = new System.Windows.Forms.TextBox();
|
||||
this.ucGroupBoxEx3 = new LittleRabbit.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.btnStop = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.btnSetStock = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.ucGroupBoxEx1 = new LittleRabbit.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.btnGetProductCount = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.btnRefreshShop = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.ucGroupBoxEx2 = new LittleRabbit.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.ucGroupBoxEx3 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.btnStop = new TemuKJD.UserControls.ButtonEx();
|
||||
this.btnSetStock = new TemuKJD.UserControls.ButtonEx();
|
||||
this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.btnGetProductCount = new TemuKJD.UserControls.ButtonEx();
|
||||
this.btnRefreshShop = new TemuKJD.UserControls.ButtonEx();
|
||||
this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.txtStockCount = new System.Windows.Forms.TextBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.txtOperateCount = new System.Windows.Forms.TextBox();
|
||||
this.label12 = new System.Windows.Forms.Label();
|
||||
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
|
||||
this.dgvShop = new LittleRabbit.UserComponent.DataGridViewEx();
|
||||
this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -56,8 +56,8 @@
|
||||
this.colOffSaleCount = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colOperationCount = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.btnFailedDetail = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.statusBar = new LittleRabbit.UserControls.StatusBarUserControl();
|
||||
this.btnFailedDetail = new TemuKJD.UserControls.ButtonEx();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
@@ -105,7 +105,7 @@
|
||||
// ucGroupBoxEx3
|
||||
//
|
||||
this.ucGroupBoxEx3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.ucGroupBoxEx3.BorderStyle = LittleRabbit.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx3.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx3.Controls.Add(this.btnStop);
|
||||
this.ucGroupBoxEx3.Controls.Add(this.btnSetStock);
|
||||
this.ucGroupBoxEx3.Location = new System.Drawing.Point(312, 2);
|
||||
@@ -150,7 +150,7 @@
|
||||
// ucGroupBoxEx1
|
||||
//
|
||||
this.ucGroupBoxEx1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.ucGroupBoxEx1.BorderStyle = LittleRabbit.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx1.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx1.Controls.Add(this.btnGetProductCount);
|
||||
this.ucGroupBoxEx1.Controls.Add(this.btnRefreshShop);
|
||||
this.ucGroupBoxEx1.Location = new System.Drawing.Point(2, 2);
|
||||
@@ -195,7 +195,7 @@
|
||||
// ucGroupBoxEx2
|
||||
//
|
||||
this.ucGroupBoxEx2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.ucGroupBoxEx2.BorderStyle = LittleRabbit.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx2.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx2.Controls.Add(this.txtStockCount);
|
||||
this.ucGroupBoxEx2.Controls.Add(this.label2);
|
||||
this.ucGroupBoxEx2.Controls.Add(this.txtOperateCount);
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using AllBase;
|
||||
using AllBase.Helper;
|
||||
using AllBase.Model.Result;
|
||||
using LittleRabbit.Extension;
|
||||
using LittleRabbit.LittleRabbitForms.BaseForms;
|
||||
using TemuKJD.Extension;
|
||||
using TemuKJD.KJDForms.BaseForms;
|
||||
using NaiBa.Util.Extension;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
@@ -17,7 +17,7 @@ using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using Work.DouyinApiClass;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
public partial class StockSyncForm : Form
|
||||
{
|
||||
@@ -49,17 +49,17 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
private void RefreshShop()
|
||||
{
|
||||
// 更新选中的上货店铺Id
|
||||
lstShopId = lstShopId.Where(id => GlobalConfig.DouShopLoginList.Any(s => s.ShopAccountId == id && s.LoginStatus == "已授权")).ToList();
|
||||
lstShopId = lstShopId.Where(id => GlobalConfig.ShopLoginList.Any(s => s.ShopId == id && s.LoginStatus == "已授权")).ToList();
|
||||
// 获取被删除的店铺
|
||||
List<DataGridViewRow> dgvRowList = dgvShop.Rows.Cast<DataGridViewRow>().Where(row
|
||||
=> !GlobalConfig.DouShopLoginList.Any(s => s.ShopAccountId == row.Cells["colShopId"]?.Value?.ToString())).ToList();
|
||||
=> !GlobalConfig.ShopLoginList.Any(s => s.ShopId == row.Cells["colShopId"]?.Value?.ToString())).ToList();
|
||||
// 更新被删除的店铺列表
|
||||
foreach (var row in dgvRowList)
|
||||
{
|
||||
dgvShop.Rows.Remove(row);
|
||||
}
|
||||
// 绑定其他店铺(含新导入的店铺)
|
||||
foreach (DouShopLoginInfo shopEntity in GlobalConfig.DouShopLoginList)
|
||||
foreach (DouShopLoginInfo shopEntity in GlobalConfig.ShopLoginList)
|
||||
{
|
||||
BindShop(shopEntity);
|
||||
}
|
||||
@@ -67,12 +67,12 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
|
||||
private void BindShop(DouShopLoginInfo shopEntity)
|
||||
{
|
||||
var row = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(p => p.Cells.GetCellValueFromColumnName("colShopId").ParseToString() == shopEntity.ShopAccountId);
|
||||
var row = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(p => p.Cells.GetCellValueFromColumnName("colShopId").ParseToString() == shopEntity.ShopId);
|
||||
if (row == null)
|
||||
{
|
||||
this.dgvShop.Rows.Add(
|
||||
false,
|
||||
shopEntity.ShopAccountId,
|
||||
shopEntity.ShopId,
|
||||
shopEntity.ShopAccount,
|
||||
shopEntity.ApiAuthStatus == "授权成功" ? true : false,
|
||||
"查看详情",
|
||||
@@ -84,7 +84,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
}
|
||||
else
|
||||
{
|
||||
row.Cells["colSelect"].Value = lstShopId.Contains(shopEntity.ShopAccountId);
|
||||
row.Cells["colSelect"].Value = lstShopId.Contains(shopEntity.ShopId);
|
||||
row.Cells["colShopName"].Value = shopEntity.ShopAccount;
|
||||
row.Cells["colCanUse"].Value = shopEntity.ApiAuthStatus == "授权成功" ? true : false;
|
||||
row.Cells["colOnSaleCount"].Value = shopEntity.OnlineProductCount >= 0 ? shopEntity.OnlineProductCount.ToString() : "";
|
||||
@@ -105,7 +105,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
else
|
||||
{
|
||||
lstShopId.Clear();
|
||||
var list = GlobalConfig.DouShopLoginList.Where(s => s.ApiAuthStatus == "授权成功").Select(ss => ss.ShopAccountId);
|
||||
var list = GlobalConfig.ShopLoginList.Where(s => s.ApiAuthStatus == "授权成功").Select(ss => ss.ShopId);
|
||||
lstShopId.AddRange(list);
|
||||
foreach (DataGridViewRow row in dgvShop.Rows)
|
||||
{
|
||||
@@ -148,7 +148,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
void GetShopProduct(bool isShowProgress = true)
|
||||
{
|
||||
int i = 0;
|
||||
var shopList = GlobalConfig.DouShopLoginList.Where(s => s.ApiAuthStatus == "授权成功" && lstShopId.Contains(s.ShopAccountId));
|
||||
var shopList = GlobalConfig.ShopLoginList.Where(s => s.ApiAuthStatus == "授权成功" && lstShopId.Contains(s.ShopId));
|
||||
foreach (var shop in shopList)
|
||||
{
|
||||
this.Invoke(new Action(() =>
|
||||
@@ -180,7 +180,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
DataGridViewRow row = null;
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null)
|
||||
{
|
||||
if (isShowResult)
|
||||
@@ -319,14 +319,14 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
this.statusBar.pgbTaskProgress.Maximum = total;
|
||||
}));
|
||||
|
||||
var shop = GlobalConfig.DouShopLoginList.FirstOrDefault(s => s.ShopAccountId == shopId);
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
|
||||
if (shop == null)
|
||||
continue;
|
||||
|
||||
DataGridViewRow row = null;
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = "正在设置库存"; }
|
||||
}));
|
||||
|
||||
@@ -350,7 +350,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
currentNum += pageSize;
|
||||
if (cancellationTokenSource.IsCancellationRequested)
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { Invoke(new Action(() => { row.Cells["colStatus"].Value = "下架中断"; })); }
|
||||
break;
|
||||
}
|
||||
@@ -371,7 +371,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null)
|
||||
{
|
||||
row.Cells["colOnSaleCount"].Value = totalNumBase;
|
||||
@@ -382,7 +382,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
offSaleMessage = "设置结束,店铺没有在售的商品";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = offSaleMessage; }
|
||||
}));
|
||||
break;
|
||||
@@ -401,7 +401,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
offSaleMessage = "正在获取商品,第" + currentNum + "件商品,共" + operateCount + "件商品";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = offSaleMessage; }
|
||||
}));
|
||||
}
|
||||
@@ -418,7 +418,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
offSaleMessage = ("设置库存失败," + failMessage).TrimEnd(',');
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = offSaleMessage; }
|
||||
}));
|
||||
}
|
||||
@@ -439,7 +439,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
{
|
||||
if (cancellationTokenSource.IsCancellationRequested)
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { Invoke(new Action(() => { row.Cells["colStatus"].Value = "设置库存中断"; })); }
|
||||
break;
|
||||
}
|
||||
@@ -447,7 +447,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
offSaleMessage = "正在设置库存,第 " + (i + 1) + " 件商品,共" + operateCount + "件商品";
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = offSaleMessage; }
|
||||
}));
|
||||
Thread.Sleep(50);
|
||||
@@ -499,7 +499,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
}
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = offSaleMessage; }
|
||||
}));
|
||||
Thread.Sleep(Randomx.GetId(100, 200));
|
||||
@@ -514,7 +514,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
offSaleMessage = "设置库存完成";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colStatus"].Value = offSaleMessage; }
|
||||
}));
|
||||
}
|
||||
@@ -580,7 +580,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
string headerText = dgvShop.Columns[e.ColumnIndex].HeaderText;
|
||||
long shopId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToLong();
|
||||
string shopName = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ToString();
|
||||
var shop = GlobalConfig.DouShopLoginList.FirstOrDefault(s => s.ShopAccountId == shopId.ToString());
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId.ToString());
|
||||
switch (headerText)
|
||||
{
|
||||
case "操作":
|
||||
|
||||
+1277
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,347 @@
|
||||
using AllBase;
|
||||
using AllBase.Helper;
|
||||
using AllBase.Model.Result;
|
||||
using NaiBa.Util.Extension;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using TemuKJD.Extension;
|
||||
using TemuKJD.KJDForms.BaseForms;
|
||||
using TemuKJD.KJDForms.ShopForms;
|
||||
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
public partial class StockUpForm : Form
|
||||
{
|
||||
private CheckBox chkSelectAll = null;
|
||||
public CancellationTokenSource cancellationTokenSource { get; set; } = null;
|
||||
|
||||
/// <summary>
|
||||
/// 备货单列表
|
||||
/// </summary>
|
||||
List<StockInfo> lstStockInfo = new List<StockInfo>();
|
||||
|
||||
public StockUpForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void StockUpForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
pnlSamePostage.Location = pnlStepPostage.Location;
|
||||
|
||||
chkSelectAll = dgvShop.Columns["colSelect"].AddHeaderCheckBox(HorizontalAlignment.Center, 0, 0, null, null, false);
|
||||
dgvShop.Columns["colSelect"].HeaderText = "";
|
||||
chkSelectAll.Width = chkSelectAll.Height = 13;
|
||||
chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged;
|
||||
}
|
||||
|
||||
private void chkSelectAll_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (!chkSelectAll.Checked)
|
||||
{
|
||||
foreach (DataGridViewRow row in dgvShop.Rows)
|
||||
{
|
||||
row.Cells["colSelect"].Value = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
var list = GlobalConfig.ShopLoginList.Where(s => s.LoginStatus == "登录成功").Select(ss => ss.ShopId);
|
||||
foreach (DataGridViewRow row in dgvShop.Rows)
|
||||
{
|
||||
if (list.Any(l => l == row.Cells["colShopId"]?.Value?.ToString()))
|
||||
row.Cells["colSelect"].Value = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void StockUpForm_VisibleChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (Visible == true)
|
||||
RefreshShop();
|
||||
}
|
||||
|
||||
private void btnRefreshShop_Click(object sender, EventArgs e)
|
||||
{
|
||||
RefreshShop();
|
||||
}
|
||||
|
||||
private void RefreshShop()
|
||||
{
|
||||
// 店铺Id
|
||||
var selectIds = dgvShop.Rows.Cast<DataGridViewRow>().Where(row
|
||||
=> 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();
|
||||
// 更新被删除的店铺列表
|
||||
foreach (var row in dgvRowList)
|
||||
{
|
||||
dgvShop.Rows.Remove(row);
|
||||
}
|
||||
// 绑定其他店铺(含新导入的店铺)
|
||||
foreach (DouShopLoginInfo shopEntity in GlobalConfig.ShopLoginList)
|
||||
{
|
||||
if(!string.IsNullOrEmpty(shopEntity.ShopId))
|
||||
BindShop(shopEntity, selectIds);
|
||||
}
|
||||
}
|
||||
|
||||
private void BindShop(DouShopLoginInfo shopEntity, List<string> selectShopId = null)
|
||||
{
|
||||
if (shopEntity == null)
|
||||
return;
|
||||
if (selectShopId == null)
|
||||
selectShopId = new List<string>();
|
||||
|
||||
bool canUse = shopEntity.LoginStatus == "登录成功";
|
||||
var row = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(p => p.Cells.GetCellValueFromColumnName("colShopId").ParseToString() == shopEntity.ShopId);
|
||||
if (row == null)
|
||||
{
|
||||
this.dgvShop.Rows.Add(
|
||||
selectShopId.Contains(shopEntity.ShopId) && canUse,
|
||||
shopEntity.LoginName,
|
||||
shopEntity.ShopId,
|
||||
shopEntity.ShopAccount,
|
||||
shopEntity.LoginStatus,
|
||||
canUse,
|
||||
string.Empty
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
row.Cells["colSelect"].Value = selectShopId.Contains(shopEntity.ShopId) && canUse;
|
||||
row.Cells["colShopLoginName"].Value = shopEntity.LoginName;
|
||||
row.Cells["colShopName"].Value = shopEntity.ShopAccount;
|
||||
row.Cells["colLoginStatus"].Value = shopEntity.LoginStatus;
|
||||
row.Cells["colCanUse"].Value = canUse;
|
||||
}
|
||||
}
|
||||
|
||||
private void btnSearch_Click(object sender, EventArgs e)
|
||||
{
|
||||
var lstShopId = dgvShop.Rows.Cast<DataGridViewRow>().Where(row
|
||||
=> row.Cells["colSelect"]?.Value.ParseToBool() == true).Select(r => r.Cells["colShopId"]?.Value.ToString()).ToList();
|
||||
if (lstShopId.Count == 0)
|
||||
{
|
||||
BaseMsgForm.ShowInfo("请选择店铺!");
|
||||
return;
|
||||
}
|
||||
|
||||
lstStockInfo.Clear();
|
||||
dgvStock.Rows.Clear();
|
||||
|
||||
string searchText = txtStockid.Text.Trim();
|
||||
btnSearch.Enabled = false;
|
||||
|
||||
cancellationTokenSource = new CancellationTokenSource();
|
||||
Task.Run(() =>
|
||||
{
|
||||
var lstShopIdTemp = new List<string>();
|
||||
lstShopIdTemp.AddRange(lstShopId);
|
||||
|
||||
foreach (var shopId in lstShopIdTemp)
|
||||
{
|
||||
if (cancellationTokenSource.IsCancellationRequested)
|
||||
break;
|
||||
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
|
||||
if (shop == null)
|
||||
continue;
|
||||
|
||||
#region 检测登录
|
||||
if (shop.LoginStatus != "登录成功")
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (ShopListForm.Instance == null)
|
||||
ShopListForm.Instance = new ShopListForm();
|
||||
ShopListForm.Instance.CheckShopLogin(new string[] { shop.LoginName }, false);
|
||||
if (shop.LoginStatus != "登录成功")
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
var rows = this.dgvShop.Rows.Cast<DataGridViewRow>().Where(r => r.Cells["colShopLoginName"].Value.ToString() == shop.LoginName);
|
||||
foreach(var row in rows)
|
||||
{
|
||||
row.Cells["colLoginStatus"].Value = "未登录";
|
||||
row.Cells["colCanUse"].Value = false;
|
||||
}
|
||||
}));
|
||||
continue;
|
||||
}
|
||||
#endregion
|
||||
|
||||
int page = 1;
|
||||
int totalPage = 1;
|
||||
while (page <= totalPage)
|
||||
{
|
||||
Thread.Sleep(50 + Randomx.GetId(100));
|
||||
string jsonStr = GetStock(shop, page);
|
||||
if (jsonStr.Contains("指定的值含有无效的控制字符"))
|
||||
{
|
||||
BaseMsgForm.ShowError("店铺" + shop.LoginName + " " + shop.ShopId + "已掉线");
|
||||
break;
|
||||
}
|
||||
if (!jsonStr.Contains("\"success\":true"))
|
||||
jsonStr = GetStock(shop, page);
|
||||
|
||||
if (jsonStr.Contains("\"success\":true"))
|
||||
{
|
||||
var jObj = JObject.Parse(jsonStr);
|
||||
var jArr = jObj["result"]?["subOrderForSupplierList"] as JArray;
|
||||
if (jArr == null)
|
||||
jArr = new JArray();
|
||||
foreach(var item in jArr)
|
||||
{
|
||||
string sItem = item.ToString();
|
||||
StockInfo sInfo = JsonHelper.DeserializeJsonToObject<StockInfo>(sItem); // 反序列化得到类
|
||||
if (sInfo != null)
|
||||
{
|
||||
lstStockInfo.Add(sInfo);
|
||||
|
||||
//string url = "https://i0.wp.com/tvax1.sinaimg.cn/large/005DW9w3ly1h7dc70ghc5j32yo1o0773.jpg";
|
||||
//pictureBox1.Image = Image.FromStream(System.Net.WebRequest.Create(url).GetResponse().GetResponseStream());
|
||||
//var httpClient = new HttpClient();
|
||||
//var stream = httpClient.GetStreamAsync("https://i0.wp.com/tvax1.sinaimg.cn/large/005DW9w3ly1h7dc70ghc5j32yo1o0773.jpg").Result; // 异步下载图片流
|
||||
//Image image = Image.FromStream(stream);
|
||||
|
||||
string url = sInfo.productSkcPicture.Replace("https", "http");
|
||||
var image = Image.FromStream(WebRequest.Create(url).GetResponse().GetResponseStream());
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
this.dgvStock.Rows.Add(
|
||||
"",
|
||||
sInfo.supplierId,
|
||||
sInfo.supplierName,
|
||||
sInfo.subPurchaseOrderSn,
|
||||
sInfo.originalPurchaseOrderSn,
|
||||
image,
|
||||
sInfo.productId,
|
||||
sInfo.productSkcId,
|
||||
sInfo.productName,
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
);
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int total = BaseRegex.GetStringJson(ref jsonStr, "total").ParseToInt();
|
||||
totalPage = Math.Ceiling(total / 20.0).ParseToInt();
|
||||
page++;
|
||||
}
|
||||
}
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
btnSearch.Enabled = true;
|
||||
}));
|
||||
}, cancellationTokenSource.Token);
|
||||
}
|
||||
|
||||
|
||||
private string GetStock(DouShopLoginInfo shop, int page=1)
|
||||
{
|
||||
HttpWebResponse response = null;
|
||||
string result;
|
||||
try
|
||||
{
|
||||
page = Math.Max(page, 1);
|
||||
string url = "https://seller.kuajingmaihuo.com/oms/bg/venom/api/supplier/purchase/manager/querySubOrderList";
|
||||
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
|
||||
|
||||
request.KeepAlive = true;
|
||||
request.Headers.Set(HttpRequestHeader.CacheControl, "max-age=0");
|
||||
request.Headers.Add("Anti-Content", @"0aqAfqFyXcGvBgd9Q0HiJJ7kvWcKK7muUHnJ6oMAdmem0tmm_enmX1DBr-nJNxmoki33dqHTkZU18BU2p8P72Cg2uEZ_acOOBCxGmIs-Gym4EtKpTdZ6kWRCSClS9L6maLm0imx0GIjodHtLnwpx4ayHnhzNnCXEFecZSC8lBRHb9WCAoyY79kMLIWxBMZZSZrR2_LYUJ5UXzf-82ob455f7OvJa6s895N4wiMGR4vbVH8gFN2VuCxS27RpXDa2WCQQQd6XsJPw7amSUaob6oZ2MXuYb9K3ZqoCX5-nJimNZDR0rNCLB13sYgWq9jy0Q3gjnsFY2dJQDh3ewXS2vvf2DN9IAEzInwWTY31Fn0B6-s8DqwIm61OlXsfYt1AYOOyNMLzkw5llaDaqK21f7vspAuXwnJdAdKXJXSyyEimvTyF_AYLp1gkNqBqN1_ik_jc6cKTDJtGUgFjRojR4g4zM7Ww3wfW63WQrJftYhiTIJiS1tZcsceZht3Zu3MsvyxpAbx4bxFrvL0A6OFx752XsVi04Tm6HDhgt7MmpsrTO5WD_KjgjxNX8VNoGndD0OmriAYVn6kwmZXE6Y_khGedxumIGy4sOQI36__CeiuiPIvB8itfOqd7eyqyeCIaEODrh9dSLBQz8AxQ2xt60OTn4HSiPmlwo1J0TFtjUw2DUZB68tdrINb7ugulMsaIwMKr8S0bilSKW6JuYw3oAsmK3daQfJWy3mzVowY1UwPQfTB4Ibz6uRQxHkvhsRTXkrAygGeZIc9S");
|
||||
request.Headers.Add("sec-ch-ua-platform", @"""Windows""");
|
||||
request.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36";
|
||||
request.Headers.Add("mallid", shop.ShopId);
|
||||
request.Headers.Add("sec-ch-ua", @"""Google Chrome"";v=""137"", ""Chromium"";v=""137"", ""Not/A)Brand"";v=""24""");
|
||||
request.ContentType = "application/json";
|
||||
request.Headers.Add("sec-ch-ua-mobile", @"?0");
|
||||
request.Accept = "*/*";
|
||||
request.Headers.Add("Origin", @"https://seller.kuajingmaihuo.com");
|
||||
request.Headers.Add("Sec-Fetch-Site", @"same-origin");
|
||||
request.Headers.Add("Sec-Fetch-Mode", @"cors");
|
||||
request.Headers.Add("Sec-Fetch-Dest", @"empty");
|
||||
request.Referer = "https://seller.kuajingmaihuo.com/main/order-manage";
|
||||
request.Headers.Set(HttpRequestHeader.AcceptEncoding, "gzip, deflate, br, zstd");
|
||||
request.Headers.Set(HttpRequestHeader.AcceptLanguage, "zh-CN,zh;q=0.9");
|
||||
request.Headers.Set(HttpRequestHeader.Cookie, shop.Cookies);
|
||||
|
||||
request.Method = "POST";
|
||||
request.ServicePoint.Expect100Continue = false;
|
||||
|
||||
string body = @"{""pageNo"":" + page + @",""pageSize"":20,""urgencyType"":0,""isCustomGoods"":false,""statusList"":[2],""oneDimensionSort"":{""firstOrderByParam"":""realDeliverTime"",""firstOrderByDesc"":1}}";
|
||||
byte[] postBytes = System.Text.Encoding.UTF8.GetBytes(body);
|
||||
request.ContentLength = postBytes.Length;
|
||||
Stream stream = request.GetRequestStream();
|
||||
stream.Write(postBytes, 0, postBytes.Length);
|
||||
stream.Close();
|
||||
|
||||
response = (HttpWebResponse)request.GetResponse();
|
||||
}
|
||||
catch (WebException ex)
|
||||
{
|
||||
if (ex.Status == WebExceptionStatus.ProtocolError)
|
||||
{
|
||||
response = (HttpWebResponse)ex.Response;
|
||||
result = GetProxyHtml.ReadResponse(response);
|
||||
return result;
|
||||
}
|
||||
else return ex.Message;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
if (response != null) response.Close();
|
||||
return e.Message;
|
||||
}
|
||||
result = GetProxyHtml.ReadResponse(response);
|
||||
return result;
|
||||
}
|
||||
|
||||
private void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
if (e.ColumnIndex < 0 || e.RowIndex < 0)
|
||||
return;
|
||||
string headerText = dgvShop.Columns[e.ColumnIndex].HeaderText;
|
||||
string columnName = dgvShop.Columns[e.ColumnIndex].Name;
|
||||
long shopId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToLong();
|
||||
string shopAccount = dgvShop.Rows[e.RowIndex].Cells["colShopName"].Value.ToString();
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId.ToString());
|
||||
var row = dgvShop.Rows[e.RowIndex];
|
||||
switch (columnName)
|
||||
{
|
||||
case "colSelect":
|
||||
if (row.Cells["colCanUse"].Value.ParseToBool())
|
||||
{
|
||||
row.Cells["colSelect"].Value = !row.Cells["colSelect"].Value.ParseToBool();
|
||||
if (dgvShop.Rows.Cast<DataGridViewRow>().All(r => r.Cells["colSelect"].Value.ParseToBool()))
|
||||
chkSelectAll.Checked = true;
|
||||
else
|
||||
chkSelectAll.Checked = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
BaseMsgForm.ShowInfo("店铺未登录!");
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,174 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="colSelect.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colShopLoginName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colShopId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colLoginStatus.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colCanUse.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colMessage.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colUpId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colSupplierId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colSupplierName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colStockId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colParentStockId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colProductSkcPic.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colProductId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colProdName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colPrcie.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colFrom.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colFromFake.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colMsg.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
@@ -1,5 +1,5 @@
|
||||
using AllBase;
|
||||
using LittleRabbit.LittleRabbitForms.BaseForms;
|
||||
using TemuKJD.KJDForms.BaseForms;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
@@ -11,7 +11,7 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms
|
||||
namespace TemuKJD.KJDForms
|
||||
{
|
||||
public partial class TbSettleSlideForm : LRBaseForm
|
||||
{
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
namespace LittleRabbit.LittleRabbitForms
|
||||
namespace TemuKJD.KJDForms
|
||||
{
|
||||
partial class TbSettleSlideForm
|
||||
{
|
||||
|
||||
+45
-41
@@ -1,4 +1,4 @@
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
partial class UploadForm
|
||||
{
|
||||
@@ -28,18 +28,19 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("商品发布");
|
||||
System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("佣金设置");
|
||||
System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("净化数据");
|
||||
System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("产品数据库");
|
||||
System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("商品上下架");
|
||||
System.Windows.Forms.TreeNode treeNode6 = new System.Windows.Forms.TreeNode("清理无流量");
|
||||
System.Windows.Forms.TreeNode treeNode7 = new System.Windows.Forms.TreeNode("库存管理");
|
||||
System.Windows.Forms.TreeNode treeNode8 = new System.Windows.Forms.TreeNode("特殊延迟发货");
|
||||
System.Windows.Forms.TreeNode treeNode9 = new System.Windows.Forms.TreeNode("云违规排查");
|
||||
System.Windows.Forms.TreeNode treeNode10 = new System.Windows.Forms.TreeNode("跳转上家");
|
||||
System.Windows.Forms.TreeNode treeNode11 = new System.Windows.Forms.TreeNode("上传错误列表");
|
||||
System.Windows.Forms.TreeNode treeNode12 = new System.Windows.Forms.TreeNode("商品管理", new System.Windows.Forms.TreeNode[] {
|
||||
System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("备货管理");
|
||||
System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("商品发布");
|
||||
System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("佣金设置");
|
||||
System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("净化数据");
|
||||
System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("产品数据库");
|
||||
System.Windows.Forms.TreeNode treeNode6 = new System.Windows.Forms.TreeNode("商品上下架");
|
||||
System.Windows.Forms.TreeNode treeNode7 = new System.Windows.Forms.TreeNode("清理无流量");
|
||||
System.Windows.Forms.TreeNode treeNode8 = new System.Windows.Forms.TreeNode("库存管理");
|
||||
System.Windows.Forms.TreeNode treeNode9 = new System.Windows.Forms.TreeNode("特殊延迟发货");
|
||||
System.Windows.Forms.TreeNode treeNode10 = new System.Windows.Forms.TreeNode("云违规排查");
|
||||
System.Windows.Forms.TreeNode treeNode11 = new System.Windows.Forms.TreeNode("跳转上家");
|
||||
System.Windows.Forms.TreeNode treeNode12 = new System.Windows.Forms.TreeNode("上传错误列表");
|
||||
System.Windows.Forms.TreeNode treeNode13 = new System.Windows.Forms.TreeNode("商品管理", new System.Windows.Forms.TreeNode[] {
|
||||
treeNode1,
|
||||
treeNode2,
|
||||
treeNode3,
|
||||
@@ -50,13 +51,14 @@
|
||||
treeNode8,
|
||||
treeNode9,
|
||||
treeNode10,
|
||||
treeNode11});
|
||||
treeNode11,
|
||||
treeNode12});
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.lblName = new System.Windows.Forms.Label();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.tv = new LittleRabbit.UserComponent.UcTreeView();
|
||||
this.tv = new TemuKJD.UserComponent.UcTreeView();
|
||||
this.panel1.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
@@ -141,33 +143,35 @@
|
||||
this.tv.Location = new System.Drawing.Point(0, 0);
|
||||
this.tv.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.tv.Name = "tv";
|
||||
treeNode1.Name = "商品发布";
|
||||
treeNode1.Text = "商品发布";
|
||||
treeNode2.Name = "佣金设置";
|
||||
treeNode2.Text = "佣金设置";
|
||||
treeNode3.Name = "净化数据";
|
||||
treeNode3.Text = "净化数据";
|
||||
treeNode4.Name = "产品数据库";
|
||||
treeNode4.Text = "产品数据库";
|
||||
treeNode5.Name = "商品上下架";
|
||||
treeNode5.Text = "商品上下架";
|
||||
treeNode6.Name = "清理无流量";
|
||||
treeNode6.Text = "清理无流量";
|
||||
treeNode7.Name = "库存管理";
|
||||
treeNode7.Text = "库存管理";
|
||||
treeNode8.Name = "特殊延迟发货";
|
||||
treeNode8.Text = "特殊延迟发货";
|
||||
treeNode9.Name = "云违规排查";
|
||||
treeNode9.Text = "云违规排查";
|
||||
treeNode10.Name = "跳转上家";
|
||||
treeNode10.Tag = "bottom";
|
||||
treeNode10.Text = "跳转上家";
|
||||
treeNode11.Name = "上传错误列表";
|
||||
treeNode11.Text = "上传错误列表";
|
||||
treeNode12.Name = "商品管理";
|
||||
treeNode12.Text = "商品管理";
|
||||
treeNode1.Name = "备货管理";
|
||||
treeNode1.Text = "备货管理";
|
||||
treeNode2.Name = "商品发布";
|
||||
treeNode2.Text = "商品发布";
|
||||
treeNode3.Name = "佣金设置";
|
||||
treeNode3.Text = "佣金设置";
|
||||
treeNode4.Name = "净化数据";
|
||||
treeNode4.Text = "净化数据";
|
||||
treeNode5.Name = "产品数据库";
|
||||
treeNode5.Text = "产品数据库";
|
||||
treeNode6.Name = "商品上下架";
|
||||
treeNode6.Text = "商品上下架";
|
||||
treeNode7.Name = "清理无流量";
|
||||
treeNode7.Text = "清理无流量";
|
||||
treeNode8.Name = "库存管理";
|
||||
treeNode8.Text = "库存管理";
|
||||
treeNode9.Name = "特殊延迟发货";
|
||||
treeNode9.Text = "特殊延迟发货";
|
||||
treeNode10.Name = "云违规排查";
|
||||
treeNode10.Text = "云违规排查";
|
||||
treeNode11.Name = "跳转上家";
|
||||
treeNode11.Tag = "bottom";
|
||||
treeNode11.Text = "跳转上家";
|
||||
treeNode12.Name = "上传错误列表";
|
||||
treeNode12.Text = "上传错误列表";
|
||||
treeNode13.Name = "商品管理";
|
||||
treeNode13.Text = "商品管理";
|
||||
this.tv.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
|
||||
treeNode12});
|
||||
treeNode13});
|
||||
this.tv.OverForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
|
||||
this.tv.Size = new System.Drawing.Size(140, 521);
|
||||
this.tv.TabIndex = 1;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using LittleRabbit.LittleRabbitForms.SalesCenterForms;
|
||||
using LittleRabbit.LittleRabbitForms.ShopOptimizeForms;
|
||||
using TemuKJD.KJDForms.UploadForms;
|
||||
using TemuKJD.KJDForms.SalesCenterForms;
|
||||
using TemuKJD.KJDForms.ShopOptimizeForms;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
@@ -11,11 +12,12 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
public partial class UploadForm : Form
|
||||
{
|
||||
public static UploadForm instance;
|
||||
public Lazy<StockUpForm> stockUpForm = new Lazy<StockUpForm>();
|
||||
public Lazy<UploadProductForm> uploadProductForm = new Lazy<UploadProductForm>();
|
||||
public Lazy<CommissionForm> commissionForm = new Lazy<CommissionForm>();
|
||||
public Lazy<CleanDataForm> cleanDataForm = new Lazy<CleanDataForm>();
|
||||
@@ -49,6 +51,9 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
{
|
||||
switch (e.Node.Name)
|
||||
{
|
||||
case "备货管理":
|
||||
SetForm(stockUpForm.Value);
|
||||
break;
|
||||
case "商品发布":
|
||||
SetForm(uploadProductForm.Value);
|
||||
break;
|
||||
@@ -153,7 +158,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
//if (AllBase.BaseClass.UserName != "18888888888")
|
||||
// hideName.Add("上传错误列表");
|
||||
|
||||
List<string> hideName = new List<string>() { "佣金设置",
|
||||
List<string> hideName = new List<string>() { "佣金设置", "商品发布",
|
||||
"净化数据","产品数据库","商品上下架","清理无流量","库存管理","特殊延迟发货","云违规排查","上传错误列表","跳转上家" };
|
||||
|
||||
foreach (var item in hideName)
|
||||
|
||||
@@ -11,7 +11,7 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
/// <summary>
|
||||
/// 主要用来设置上货佣金逻辑
|
||||
@@ -84,7 +84,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
Thread.Sleep(10);
|
||||
var commission = lstCommissionAddResult[0];
|
||||
var commissions = lstCommissionAddResult.Where(c => c.ShopName == commission.ShopName && c.Rate == commission.Rate).ToList();
|
||||
var shop = AllBase.Helper.GlobalConfig.DouShopLoginList.FirstOrDefault(s => s.ShopAccount == commission.ShopName);
|
||||
var shop = AllBase.Helper.GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopAccount == commission.ShopName);
|
||||
if (shop == null)
|
||||
{
|
||||
lstCommissionAddResult.RemoveAll(s => s.ShopName == commission.ShopName);
|
||||
|
||||
+10
-10
@@ -1,4 +1,4 @@
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
partial class UploadProductErrorForm
|
||||
{
|
||||
@@ -32,12 +32,12 @@
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.btnCancel = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.btnSave = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.btnCancel = new TemuKJD.UserControls.ButtonEx();
|
||||
this.btnSave = new TemuKJD.UserControls.ButtonEx();
|
||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||
this.buttonExportCsv = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.btnAddToUpload = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.dgvError = new LittleRabbit.UserComponent.DataGridViewEx();
|
||||
this.buttonExportCsv = new TemuKJD.UserControls.ButtonEx();
|
||||
this.btnAddToUpload = new TemuKJD.UserControls.ButtonEx();
|
||||
this.dgvError = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -48,11 +48,11 @@
|
||||
this.ColError = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.ColRemark = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Column3 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.btnImport = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.btnOnlineSearch = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.btnImport = new TemuKJD.UserControls.ButtonEx();
|
||||
this.btnOnlineSearch = new TemuKJD.UserControls.ButtonEx();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.btnGetProp材质 = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.btnGetDetail = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.btnGetProp材质 = new TemuKJD.UserControls.ButtonEx();
|
||||
this.btnGetDetail = new TemuKJD.UserControls.ButtonEx();
|
||||
this.panel1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvError)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
|
||||
@@ -4,7 +4,7 @@ using AllBase.Model.Param.FissionManage;
|
||||
using AllBase.Model.Param.ProductManage;
|
||||
using AllBase.Model.Param.UploadManage;
|
||||
using AllBase.Model.Result;
|
||||
using LittleRabbit.LittleRabbitForms.BaseForms;
|
||||
using TemuKJD.KJDForms.BaseForms;
|
||||
using NaiBa.Util;
|
||||
using NaiBa.Util.Extension;
|
||||
using Newtonsoft.Json.Linq;
|
||||
@@ -22,7 +22,7 @@ using System.Windows.Forms;
|
||||
using Work.BLL.Upload;
|
||||
using Work.DouyinApiClass;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
public partial class UploadProductErrorForm : Form
|
||||
{
|
||||
@@ -369,7 +369,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
{
|
||||
if (Fission.goodsCategoryList.Count == 0)
|
||||
Fission.goodsCategoryList = JsonHelper.DeserializeJsonToList<GoodsCategoryModelEx>(DyCategoryParam.DyCategorys);
|
||||
var shop = GlobalConfig.DouShopLoginList.FirstOrDefault(s => s.ApiAuthStatus == "授权成功");
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ApiAuthStatus == "授权成功");
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append(FileBase.ReadAllText("抖音类目包含材质必填项的属性.txt"));
|
||||
string errStr = "";
|
||||
@@ -432,7 +432,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
|
||||
private void btnGetDetail_Click(object sender, EventArgs e)
|
||||
{
|
||||
var shop = GlobalConfig.DouShopLoginList.FirstOrDefault(s => s.ShopAccount == "开箱小店");
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopAccount == "开箱小店");
|
||||
if (shop != null)
|
||||
{
|
||||
DouyinApi api = new DouyinApi(shop);
|
||||
|
||||
+127
-127
@@ -1,4 +1,4 @@
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
partial class UploadProductForm
|
||||
{
|
||||
@@ -92,7 +92,7 @@
|
||||
this.chkFuzzyMatching = new System.Windows.Forms.CheckBox();
|
||||
this.cmbNewPreTime = new System.Windows.Forms.ComboBox();
|
||||
this.cmbSendDayAfterPre = new System.Windows.Forms.ComboBox();
|
||||
this.buttonEx2 = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.buttonEx2 = new TemuKJD.UserControls.ButtonEx();
|
||||
this.cmbSendType = new System.Windows.Forms.ComboBox();
|
||||
this.txtremark = new System.Windows.Forms.TextBox();
|
||||
this.label13 = new System.Windows.Forms.Label();
|
||||
@@ -147,17 +147,17 @@
|
||||
this.checkBox2 = new System.Windows.Forms.CheckBox();
|
||||
this.chkCustomCategory = new System.Windows.Forms.CheckBox();
|
||||
this.shopthreadCountTextBox = new System.Windows.Forms.ComboBox();
|
||||
this.btnUpload = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.buttonEx1 = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.btnUploadGood = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.btnUpload = new TemuKJD.UserControls.ButtonEx();
|
||||
this.buttonEx1 = new TemuKJD.UserControls.ButtonEx();
|
||||
this.btnUploadGood = new TemuKJD.UserControls.ButtonEx();
|
||||
this.countLabel = new System.Windows.Forms.Label();
|
||||
this.label29 = new System.Windows.Forms.Label();
|
||||
this.lblWaitUpload = new System.Windows.Forms.Label();
|
||||
this.splitContainer3 = new System.Windows.Forms.SplitContainer();
|
||||
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
|
||||
this.cboHour = new System.Windows.Forms.ComboBox();
|
||||
this.btnTest = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.buttonEx4 = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.btnTest = new TemuKJD.UserControls.ButtonEx();
|
||||
this.buttonEx4 = new TemuKJD.UserControls.ButtonEx();
|
||||
this.chklogistime = new System.Windows.Forms.CheckBox();
|
||||
this.label48 = new System.Windows.Forms.Label();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
@@ -165,26 +165,17 @@
|
||||
this.txtRatio = new System.Windows.Forms.TextBox();
|
||||
this.chkSaveToOffLine = new System.Windows.Forms.CheckBox();
|
||||
this.chkIsSetCommission = new System.Windows.Forms.CheckBox();
|
||||
this.btnGetUpId = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.btnGetUpId = new TemuKJD.UserControls.ButtonEx();
|
||||
this.txtUpProduct = new System.Windows.Forms.TextBox();
|
||||
this.dgvShop = new LittleRabbit.UserComponent.DataGridViewEx();
|
||||
this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colUploadCount = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.pnlShowError = new DevComponents.DotNetBar.PanelEx();
|
||||
this.dgvProduct = new LittleRabbit.UserComponent.DataGridViewEx();
|
||||
this.idColumn = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.productIdColumn = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.shopNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.titleColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.prcieColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.fromColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colFromFake = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.messageColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.splitContainer4 = new System.Windows.Forms.SplitContainer();
|
||||
this.statusBar = new LittleRabbit.UserControls.StatusBarUserControl();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.btnGo = new System.Windows.Forms.Button();
|
||||
this.label27 = new System.Windows.Forms.Label();
|
||||
@@ -224,6 +215,15 @@
|
||||
this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.messageColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colFromFake = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.fromColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.prcieColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.titleColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.shopNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.productIdColumn = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.idColumn = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.dgvProduct = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
@@ -247,12 +247,12 @@
|
||||
this.splitContainer2.Panel2.SuspendLayout();
|
||||
this.splitContainer2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvShop)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvProduct)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).BeginInit();
|
||||
this.splitContainer4.Panel1.SuspendLayout();
|
||||
this.splitContainer4.Panel2.SuspendLayout();
|
||||
this.splitContainer4.SuspendLayout();
|
||||
this.flowLayoutPanel1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvProduct)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// splitContainer1
|
||||
@@ -2493,103 +2493,6 @@
|
||||
this.pnlShowError.Text = "panelEx3";
|
||||
this.pnlShowError.Visible = false;
|
||||
//
|
||||
// dgvProduct
|
||||
//
|
||||
this.dgvProduct.AllowUserToAddRows = false;
|
||||
this.dgvProduct.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle4.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4;
|
||||
this.dgvProduct.BackgroundColor = System.Drawing.Color.White;
|
||||
this.dgvProduct.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
|
||||
this.dgvProduct.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dgvProduct.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.idColumn,
|
||||
this.productIdColumn,
|
||||
this.shopNameColumn,
|
||||
this.titleColumn,
|
||||
this.prcieColumn,
|
||||
this.fromColumn,
|
||||
this.colFromFake,
|
||||
this.messageColumn});
|
||||
this.dgvProduct.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dgvProduct.Location = new System.Drawing.Point(0, 0);
|
||||
this.dgvProduct.Name = "dgvProduct";
|
||||
this.dgvProduct.ReadOnly = true;
|
||||
dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.dgvProduct.RowsDefaultCellStyle = dataGridViewCellStyle6;
|
||||
this.dgvProduct.RowTemplate.Height = 23;
|
||||
this.dgvProduct.Size = new System.Drawing.Size(755, 433);
|
||||
this.dgvProduct.TabIndex = 7;
|
||||
this.dgvProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvProduct_CellContentClick);
|
||||
this.dgvProduct.RowsAdded += new System.Windows.Forms.DataGridViewRowsAddedEventHandler(this.dgvProduct_RowsAdded);
|
||||
//
|
||||
// idColumn
|
||||
//
|
||||
this.idColumn.HeaderText = "上家Id";
|
||||
this.idColumn.Name = "idColumn";
|
||||
this.idColumn.ReadOnly = true;
|
||||
this.idColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.idColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.idColumn.Width = 95;
|
||||
//
|
||||
// productIdColumn
|
||||
//
|
||||
this.productIdColumn.FillWeight = 150F;
|
||||
this.productIdColumn.HeaderText = "商品Id";
|
||||
this.productIdColumn.Name = "productIdColumn";
|
||||
this.productIdColumn.ReadOnly = true;
|
||||
this.productIdColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.productIdColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.productIdColumn.Width = 120;
|
||||
//
|
||||
// shopNameColumn
|
||||
//
|
||||
this.shopNameColumn.HeaderText = "店铺名";
|
||||
this.shopNameColumn.Name = "shopNameColumn";
|
||||
this.shopNameColumn.ReadOnly = true;
|
||||
this.shopNameColumn.Width = 60;
|
||||
//
|
||||
// titleColumn
|
||||
//
|
||||
this.titleColumn.HeaderText = "标题";
|
||||
this.titleColumn.Name = "titleColumn";
|
||||
this.titleColumn.ReadOnly = true;
|
||||
this.titleColumn.Width = 120;
|
||||
//
|
||||
// prcieColumn
|
||||
//
|
||||
this.prcieColumn.HeaderText = "价格";
|
||||
this.prcieColumn.Name = "prcieColumn";
|
||||
this.prcieColumn.ReadOnly = true;
|
||||
//
|
||||
// fromColumn
|
||||
//
|
||||
this.fromColumn.HeaderText = "来源";
|
||||
this.fromColumn.Name = "fromColumn";
|
||||
this.fromColumn.ReadOnly = true;
|
||||
this.fromColumn.Visible = false;
|
||||
//
|
||||
// colFromFake
|
||||
//
|
||||
this.colFromFake.HeaderText = "来源";
|
||||
this.colFromFake.Name = "colFromFake";
|
||||
this.colFromFake.ReadOnly = true;
|
||||
//
|
||||
// messageColumn
|
||||
//
|
||||
this.messageColumn.HeaderText = "状态";
|
||||
this.messageColumn.Name = "messageColumn";
|
||||
this.messageColumn.ReadOnly = true;
|
||||
this.messageColumn.Width = 400;
|
||||
//
|
||||
// splitContainer4
|
||||
//
|
||||
this.splitContainer4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
@@ -3002,6 +2905,103 @@
|
||||
this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10";
|
||||
this.dataGridViewTextBoxColumn10.ReadOnly = true;
|
||||
//
|
||||
// messageColumn
|
||||
//
|
||||
this.messageColumn.HeaderText = "状态";
|
||||
this.messageColumn.Name = "messageColumn";
|
||||
this.messageColumn.ReadOnly = true;
|
||||
this.messageColumn.Width = 400;
|
||||
//
|
||||
// colFromFake
|
||||
//
|
||||
this.colFromFake.HeaderText = "来源";
|
||||
this.colFromFake.Name = "colFromFake";
|
||||
this.colFromFake.ReadOnly = true;
|
||||
//
|
||||
// fromColumn
|
||||
//
|
||||
this.fromColumn.HeaderText = "来源";
|
||||
this.fromColumn.Name = "fromColumn";
|
||||
this.fromColumn.ReadOnly = true;
|
||||
this.fromColumn.Visible = false;
|
||||
//
|
||||
// prcieColumn
|
||||
//
|
||||
this.prcieColumn.HeaderText = "价格";
|
||||
this.prcieColumn.Name = "prcieColumn";
|
||||
this.prcieColumn.ReadOnly = true;
|
||||
//
|
||||
// titleColumn
|
||||
//
|
||||
this.titleColumn.HeaderText = "标题";
|
||||
this.titleColumn.Name = "titleColumn";
|
||||
this.titleColumn.ReadOnly = true;
|
||||
this.titleColumn.Width = 120;
|
||||
//
|
||||
// shopNameColumn
|
||||
//
|
||||
this.shopNameColumn.HeaderText = "店铺名";
|
||||
this.shopNameColumn.Name = "shopNameColumn";
|
||||
this.shopNameColumn.ReadOnly = true;
|
||||
this.shopNameColumn.Width = 60;
|
||||
//
|
||||
// productIdColumn
|
||||
//
|
||||
this.productIdColumn.FillWeight = 150F;
|
||||
this.productIdColumn.HeaderText = "商品Id";
|
||||
this.productIdColumn.Name = "productIdColumn";
|
||||
this.productIdColumn.ReadOnly = true;
|
||||
this.productIdColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.productIdColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.productIdColumn.Width = 120;
|
||||
//
|
||||
// idColumn
|
||||
//
|
||||
this.idColumn.HeaderText = "上家Id";
|
||||
this.idColumn.Name = "idColumn";
|
||||
this.idColumn.ReadOnly = true;
|
||||
this.idColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.idColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.idColumn.Width = 95;
|
||||
//
|
||||
// dgvProduct
|
||||
//
|
||||
this.dgvProduct.AllowUserToAddRows = false;
|
||||
this.dgvProduct.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle4.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4;
|
||||
this.dgvProduct.BackgroundColor = System.Drawing.Color.White;
|
||||
this.dgvProduct.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
|
||||
this.dgvProduct.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dgvProduct.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.idColumn,
|
||||
this.productIdColumn,
|
||||
this.shopNameColumn,
|
||||
this.titleColumn,
|
||||
this.prcieColumn,
|
||||
this.fromColumn,
|
||||
this.colFromFake,
|
||||
this.messageColumn});
|
||||
this.dgvProduct.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dgvProduct.Location = new System.Drawing.Point(0, 0);
|
||||
this.dgvProduct.Name = "dgvProduct";
|
||||
this.dgvProduct.ReadOnly = true;
|
||||
dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.dgvProduct.RowsDefaultCellStyle = dataGridViewCellStyle6;
|
||||
this.dgvProduct.RowTemplate.Height = 23;
|
||||
this.dgvProduct.Size = new System.Drawing.Size(755, 433);
|
||||
this.dgvProduct.TabIndex = 7;
|
||||
this.dgvProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvProduct_CellContentClick);
|
||||
this.dgvProduct.RowsAdded += new System.Windows.Forms.DataGridViewRowsAddedEventHandler(this.dgvProduct_RowsAdded);
|
||||
//
|
||||
// UploadProductForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
|
||||
@@ -3045,13 +3045,13 @@
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
|
||||
this.splitContainer2.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvShop)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvProduct)).EndInit();
|
||||
this.splitContainer4.Panel1.ResumeLayout(false);
|
||||
this.splitContainer4.Panel2.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).EndInit();
|
||||
this.splitContainer4.ResumeLayout(false);
|
||||
this.flowLayoutPanel1.ResumeLayout(false);
|
||||
this.flowLayoutPanel1.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvProduct)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
@@ -3091,7 +3091,6 @@
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn9;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn10;
|
||||
private UserComponent.DataGridViewEx dgvShop;
|
||||
private UserComponent.DataGridViewEx dgvProduct;
|
||||
private System.Windows.Forms.Label lblWaitUpload;
|
||||
private System.Windows.Forms.Label countLabel;
|
||||
private System.Windows.Forms.SplitContainer splitContainer3;
|
||||
@@ -3222,14 +3221,6 @@
|
||||
private System.Windows.Forms.CheckBox chkFilterBrand;
|
||||
private DevComponents.DotNetBar.PanelEx btnSetSkuFilter;
|
||||
private System.Windows.Forms.CheckBox chkFilterSku;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn idColumn;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn productIdColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn shopNameColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn titleColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn prcieColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn fromColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colFromFake;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn messageColumn;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colShopId;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colShopName;
|
||||
@@ -3247,5 +3238,14 @@
|
||||
private System.Windows.Forms.CheckBox checkBox1;
|
||||
private System.Windows.Forms.CheckBox chkShopFissionUpload;
|
||||
private System.Windows.Forms.TabPage tabPage5;
|
||||
private UserComponent.DataGridViewEx dgvProduct;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn idColumn;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn productIdColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn shopNameColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn titleColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn prcieColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn fromColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colFromFake;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn messageColumn;
|
||||
}
|
||||
}
|
||||
@@ -3,9 +3,9 @@ using AllBase.Helper;
|
||||
using AllBase.Model.Param.UploadManage;
|
||||
using AllBase.Model.Result;
|
||||
using DevComponents.DotNetBar;
|
||||
using LittleRabbit.Extension;
|
||||
using LittleRabbit.LittleRabbitForms.BaseForms;
|
||||
using LittleRabbit.LittleRabbitForms.ToolForms;
|
||||
using TemuKJD.Extension;
|
||||
using TemuKJD.KJDForms.BaseForms;
|
||||
using TemuKJD.KJDForms.ToolForms;
|
||||
using NaiBa.Util;
|
||||
using NaiBa.Util.Extension;
|
||||
using Newtonsoft.Json;
|
||||
@@ -29,7 +29,7 @@ using Work.CollectClass;
|
||||
using Work.DouyinApiClass;
|
||||
using Work.GoodDetail;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
public partial class UploadProductForm : Form
|
||||
{
|
||||
@@ -137,10 +137,10 @@ 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];
|
||||
dgvShop.Rows.Add(false, shop.ShopAccountId, shop.ShopAccount, 0, shop.LoginStatus);
|
||||
var shop = GlobalConfig.ShopLoginList[i];
|
||||
dgvShop.Rows.Add(false, shop.ShopId, shop.ShopAccount, 0, shop.LoginStatus);
|
||||
}
|
||||
}
|
||||
public void RefreshIeForm()
|
||||
@@ -284,7 +284,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
|
||||
UploadProductBLL.phone = txtPhone.Text;
|
||||
|
||||
foreach (var shop in GlobalConfig.DouShopLoginList)
|
||||
foreach (var shop in GlobalConfig.ShopLoginList)
|
||||
{
|
||||
shop.CanUpload = shop.LoginStatus == "登录成功" && shop.ApiAuthStatus == "授权成功";
|
||||
}
|
||||
@@ -311,10 +311,10 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
}
|
||||
}
|
||||
List<Thread> ts = new List<Thread>();
|
||||
for (int i = 0; i < GlobalConfig.DouShopLoginList.Count; i++)
|
||||
for (int i = 0; i < GlobalConfig.ShopLoginList.Count; i++)
|
||||
{
|
||||
var shop = GlobalConfig.DouShopLoginList[i];
|
||||
if (!UploadProductBLL.ids.Any(id => id == shop.ShopAccountId) || shop.ApiAuthStatus != "授权成功")
|
||||
var shop = GlobalConfig.ShopLoginList[i];
|
||||
if (!UploadProductBLL.ids.Any(id => id == shop.ShopId) || shop.ApiAuthStatus != "授权成功")
|
||||
continue;
|
||||
if (UploadProductBLL.isMultiUpload)
|
||||
Threadx.ThreadListWait(ref ts, new Thread(GetMulti), UploadProductBLL.ShopThreadCount, shop);
|
||||
@@ -418,7 +418,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
if (p?.Message == "提交成功")
|
||||
{
|
||||
var row = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopName"]?.Value?.ToString() == p.ShopName);
|
||||
var shop = GlobalConfig.DouShopLoginList.FirstOrDefault(s => s.ShopAccount == p.ShopName);
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopAccount == p.ShopName);
|
||||
if (shop != null && row != null)
|
||||
{
|
||||
row.Cells["colUploadCount"].Value = shop.UploadCount;
|
||||
@@ -585,7 +585,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
//string name = dgvShop.Columns[e.ColumnIndex].HeaderText;
|
||||
string colId = dgvShop.Columns[e.ColumnIndex].Name;
|
||||
long shopId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToLong();
|
||||
var shop = GlobalConfig.DouShopLoginList.FirstOrDefault(s => s.ShopAccountId == shopId.ToString());
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId.ToString());
|
||||
if (colId == "colSelect")
|
||||
{
|
||||
bool canUse = shop?.ApiAuthStatus == "授权成功" && shop?.LoginStatus == "登录成功";
|
||||
@@ -1185,7 +1185,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
/// </summary>
|
||||
public long GetBrandList()
|
||||
{
|
||||
var shop = GlobalConfig.DouShopLoginList.FirstOrDefault(s => s.ShopAccount == "开箱小店");
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopAccount == "开箱小店");
|
||||
DouyinApi api = new DouyinApi(shop);
|
||||
api.JsonData = new Dictionary<string, string>();
|
||||
api.JsonData.Add("product_id", "3522394014194236398");
|
||||
@@ -1409,7 +1409,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
//修改库存
|
||||
private void button7_Click(object sender, EventArgs e)
|
||||
{
|
||||
var shop = GlobalConfig.DouShopLoginList[0];
|
||||
var shop = GlobalConfig.ShopLoginList[0];
|
||||
DouyinApi api = new DouyinApi(shop);
|
||||
api.JsonData = new Dictionary<string, string>();
|
||||
api.JsonData.Add("product_id", "3492731930347180135");
|
||||
@@ -1445,7 +1445,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
//修改价格
|
||||
private void button8_Click(object sender, EventArgs e)
|
||||
{
|
||||
var shop = GlobalConfig.DouShopLoginList[0];
|
||||
var shop = GlobalConfig.ShopLoginList[0];
|
||||
DouyinApi api = new DouyinApi(shop);
|
||||
api.JsonData = new Dictionary<string, string>();
|
||||
api.JsonData.Add("product_id", "3492731930347180135");
|
||||
@@ -1820,7 +1820,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
{
|
||||
var url = "https://fxg.jinritemai.com/ffa/g/size-chart/manage";
|
||||
var shopName = dgvProduct.Rows[e.RowIndex].Cells["shopNameColumn"].Value.ToString();
|
||||
var shop = GlobalConfig.DouShopLoginList.FirstOrDefault(s => s.ShopAccount == shopName);
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopAccount == shopName);
|
||||
if (shop != null)
|
||||
{
|
||||
var cookieStrArr = shop.Cookies.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries);
|
||||
@@ -1939,7 +1939,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
}
|
||||
private static string HttpPostDataImage(string url, string referer, byte[] file)
|
||||
{
|
||||
var shop = GlobalConfig.DouShopLoginList.Where(s => s.LoginStatus == "登录成功").FirstOrDefault();
|
||||
var shop = GlobalConfig.ShopLoginList.Where(s => s.LoginStatus == "登录成功").FirstOrDefault();
|
||||
if (shop == null)
|
||||
return "";
|
||||
string responseContent = "";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
partial class UploadProductViolateSelectForm
|
||||
{
|
||||
|
||||
@@ -8,9 +8,9 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
public partial class UploadProductViolateSelectForm : LittleRabbit.LittleRabbitForms.BaseForms.LRBaseForm
|
||||
public partial class UploadProductViolateSelectForm : TemuKJD.KJDForms.BaseForms.LRBaseForm
|
||||
{
|
||||
public UploadProductViolateSelectForm()
|
||||
{
|
||||
|
||||
+16
-16
@@ -1,4 +1,4 @@
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
partial class ViolateManageForm
|
||||
{
|
||||
@@ -41,36 +41,36 @@
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.panelEx2 = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnImport = new DevComponents.DotNetBar.PanelEx();
|
||||
this.ucGroupBoxEx3 = new LittleRabbit.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.ucGroupBoxEx3 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.chkOperateOffSale = new System.Windows.Forms.CheckBox();
|
||||
this.chkOperateDataBase = new System.Windows.Forms.CheckBox();
|
||||
this.chkOperateOnSale = new System.Windows.Forms.CheckBox();
|
||||
this.btnStartTroubleShooting = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnStop = new DevComponents.DotNetBar.PanelEx();
|
||||
this.ucGroupBoxEx2 = new LittleRabbit.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.llClear = new LittleRabbit.UserComponent.LinkLabelLc();
|
||||
this.llSelectSerious = new LittleRabbit.UserComponent.LinkLabelLc();
|
||||
this.llSelectAllRule = new LittleRabbit.UserComponent.LinkLabelLc();
|
||||
this.llClear = new TemuKJD.UserComponent.LinkLabelLc();
|
||||
this.llSelectSerious = new TemuKJD.UserComponent.LinkLabelLc();
|
||||
this.llSelectAllRule = new TemuKJD.UserComponent.LinkLabelLc();
|
||||
this.flpViolate = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.ucGroupBoxEx1 = new LittleRabbit.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.btnRefreshShop = new LittleRabbit.UserControls.ButtonEx();
|
||||
this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.btnRefreshShop = new TemuKJD.UserControls.ButtonEx();
|
||||
this.splitContainer3 = new System.Windows.Forms.SplitContainer();
|
||||
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
|
||||
this.dgvShop = new LittleRabbit.UserComponent.DataGridViewEx();
|
||||
this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colAuthStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
|
||||
this.ucTabControl1 = new LittleRabbit.UserComponent.UcTabControl();
|
||||
this.ucTabControl1 = new TemuKJD.UserComponent.UcTabControl();
|
||||
this.tabPageCheckResult = new System.Windows.Forms.TabPage();
|
||||
this.dgvCheck = new LittleRabbit.UserComponent.DataGridViewEx();
|
||||
this.dgvCheck = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.tabPageViolateFileList = new System.Windows.Forms.TabPage();
|
||||
this.dgvViolateFileData = new LittleRabbit.UserComponent.DataGridViewEx();
|
||||
this.dgvViolateFileData = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.splitContainer4 = new System.Windows.Forms.SplitContainer();
|
||||
this.statusBar = new LittleRabbit.UserControls.StatusBarUserControl();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
this.btnClear = new DevComponents.DotNetBar.PanelEx();
|
||||
this.dataGridViewCheckBoxColumn1 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.col_dir = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -204,7 +204,7 @@
|
||||
this.ucGroupBoxEx3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.ucGroupBoxEx3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.ucGroupBoxEx3.BorderStyle = LittleRabbit.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx3.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx3.Controls.Add(this.chkOperateOffSale);
|
||||
this.ucGroupBoxEx3.Controls.Add(this.chkOperateDataBase);
|
||||
this.ucGroupBoxEx3.Controls.Add(this.chkOperateOnSale);
|
||||
@@ -307,7 +307,7 @@
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.ucGroupBoxEx2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.ucGroupBoxEx2.BorderStyle = LittleRabbit.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx2.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx2.Controls.Add(this.panel1);
|
||||
this.ucGroupBoxEx2.Controls.Add(this.flpViolate);
|
||||
this.ucGroupBoxEx2.Location = new System.Drawing.Point(338, 2);
|
||||
@@ -375,7 +375,7 @@
|
||||
this.ucGroupBoxEx1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.ucGroupBoxEx1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.ucGroupBoxEx1.BorderStyle = LittleRabbit.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx1.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx1.Controls.Add(this.btnRefreshShop);
|
||||
this.ucGroupBoxEx1.Location = new System.Drawing.Point(3, 2);
|
||||
this.ucGroupBoxEx1.Name = "ucGroupBoxEx1";
|
||||
|
||||
@@ -3,8 +3,8 @@ using AllBase.Helper;
|
||||
using AllBase.Model.Param.FissionManage;
|
||||
using AllBase.Model.Param.ProductManage;
|
||||
using AllBase.Model.Result;
|
||||
using LittleRabbit.Extension;
|
||||
using LittleRabbit.LittleRabbitForms.BaseForms;
|
||||
using TemuKJD.Extension;
|
||||
using TemuKJD.KJDForms.BaseForms;
|
||||
using NaiBa.Util;
|
||||
using NaiBa.Util.Extension;
|
||||
using Newtonsoft.Json;
|
||||
@@ -25,7 +25,7 @@ using Work.BLL.Product;
|
||||
using Work.BLL.Upload;
|
||||
using Work.DouyinApiClass;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
namespace TemuKJD.KJDForms.UploadForms
|
||||
{
|
||||
public partial class ViolateManageForm : Form
|
||||
{
|
||||
@@ -92,7 +92,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
{
|
||||
string dataFromDescribe = GetDataFromDescribe(violateParam.DataFrom);
|
||||
|
||||
var shop = GlobalConfig.DouShopLoginList.FirstOrDefault(s => s.ShopAccountId == violateParam.DouShopId);
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == violateParam.DouShopId);
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
this.dgvCheck.Rows.Add(true, dataFromDescribe, violateParam.DouShopId, shop?.ShopAccount, violateParam.DouProductId,
|
||||
@@ -116,7 +116,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
}
|
||||
else
|
||||
{
|
||||
var list = GlobalConfig.DouShopLoginList.Where(s => s.ApiAuthStatus == "授权成功").Select(ss => ss.ShopAccountId).ToList();
|
||||
var list = GlobalConfig.ShopLoginList.Where(s => s.ApiAuthStatus == "授权成功").Select(ss => ss.ShopId).ToList();
|
||||
foreach (DataGridViewRow row in dgvShop.Rows)
|
||||
{
|
||||
if (list.Any(l => l == row.Cells["colShopId"]?.Value?.ToString()))
|
||||
@@ -203,19 +203,19 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
{
|
||||
// 获取被删除的店铺
|
||||
List<DataGridViewRow> dgvRowList = dgvShop.Rows.Cast<DataGridViewRow>().Where(row
|
||||
=> !GlobalConfig.DouShopLoginList.Any(s => s.ShopAccountId == row.Cells["colShopId"]?.Value?.ToString())).ToList();
|
||||
=> !GlobalConfig.ShopLoginList.Any(s => s.ShopId == row.Cells["colShopId"]?.Value?.ToString())).ToList();
|
||||
// 更新被删除的店铺列表
|
||||
foreach (var row in dgvRowList)
|
||||
{
|
||||
dgvShop.Rows.Remove(row);
|
||||
}
|
||||
|
||||
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["colAuthStatus"].Value = shop.ApiAuthStatus;
|
||||
@@ -470,7 +470,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
var lstShopId = dgvShop.Rows.Cast<DataGridViewRow>()
|
||||
.Where(r => r.Cells["colSelect"].Value.ParseToBool())
|
||||
.Select(r => r.Cells["colShopId"].Value?.ToString()).ToList();
|
||||
var shopList = GlobalConfig.DouShopLoginList.Where(s => lstShopId.Contains(s.ShopAccountId) && s.ApiAuthStatus == "授权成功").ToList();
|
||||
var shopList = GlobalConfig.ShopLoginList.Where(s => lstShopId.Contains(s.ShopId) && s.ApiAuthStatus == "授权成功").ToList();
|
||||
if (shopList.Count == 0 && (chkOperateOffSale.Checked || chkOperateOnSale.Checked))
|
||||
{
|
||||
BaseMsgForm.ShowInfo("请选择要清理素材的店铺");
|
||||
@@ -554,7 +554,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null)
|
||||
{
|
||||
if (shop.PayStatus != 1)
|
||||
@@ -597,7 +597,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
currentNum += pageSize;
|
||||
if (cancellationTokenSource != null && cancellationTokenSource.IsCancellationRequested)
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { Invoke(new Action(() => { row.Cells["colMessage"].Value = "排查中断"; })); }
|
||||
break;
|
||||
}
|
||||
@@ -633,7 +633,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
deleteProductMessage = "排查结束,店铺没有仓库商品";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colMessage"].Value = deleteProductMessage; }
|
||||
}));
|
||||
break;
|
||||
@@ -656,7 +656,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
deleteProductMessage = "已获取:" + currentNum + ",仓库商品获取中...";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colMessage"].Value = deleteProductMessage; }
|
||||
}));
|
||||
}
|
||||
@@ -673,7 +673,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
deleteProductMessage = ("排查遇到错误," + failMessage).TrimEnd(',');
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colMessage"].Value = deleteProductMessage; }
|
||||
}));
|
||||
}
|
||||
@@ -688,7 +688,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
deleteProductMessage = "店铺商品排查完成";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colMessage"].Value = deleteProductMessage; }
|
||||
}));
|
||||
}
|
||||
@@ -698,7 +698,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
deleteProductMessage = "店铺商品排查完成";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colMessage"].Value = deleteProductMessage; }
|
||||
}));
|
||||
}
|
||||
@@ -709,7 +709,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
{
|
||||
if (cancellationTokenSource != null && cancellationTokenSource.IsCancellationRequested)
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { Invoke(new Action(() => { row.Cells["colMessage"].Value = "排查中断"; })); }
|
||||
break;
|
||||
}
|
||||
@@ -724,7 +724,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
deleteProductMessage = "正在排查在售商品,第 " + (i + 1) + " 件商品,共 " + operateCount + " 件商品";
|
||||
if (!isOperateOnline)
|
||||
deleteProductMessage = "正在排查仓库商品,第 " + (i + 1) + " 件商品,共 " + operateCount + " 件商品";
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null) { row.Cells["colMessage"].Value = deleteProductMessage; }
|
||||
}));
|
||||
Thread.Sleep(Randomx.GetId(50, 150));
|
||||
@@ -736,7 +736,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
{
|
||||
DataFrom = isOperateOnline ? 2 : 3,
|
||||
DouProductId = product.product_id.ToString(),
|
||||
DouShopId = shop.ShopAccountId,
|
||||
DouShopId = shop.ShopId,
|
||||
};
|
||||
violateParamList.Add(violateParam);
|
||||
|
||||
@@ -1220,7 +1220,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
DataGridViewRow row = null;
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopAccountId);
|
||||
row = this.dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
if (row != null)
|
||||
{
|
||||
if (isShowResult)
|
||||
@@ -1367,7 +1367,7 @@ namespace LittleRabbit.LittleRabbitForms.UploadForms
|
||||
}
|
||||
else
|
||||
{
|
||||
var shop = GlobalConfig.DouShopLoginList.FirstOrDefault(s => s.ShopAccountId == shopId);
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
|
||||
if (shop != null)
|
||||
{
|
||||
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
||||
|
||||
Reference in new issue
Block a user