优化了微店商品上传 优化pdd买手读单

This commit is contained in:
wule committed 2026-04-15 21:04:37 +08:00
1 parent 6c4f16b897
commit f360688c43
62 files changed
+5620 -1432

No files matched your search

@@ -143,7 +143,7 @@ namespace TemuKJD.WXForms.AdminForms
}
var authInfo = lstShopAuthInfo.FirstOrDefault(sa => sa.ShopId == shop.ShopId);
if (idRefreshTodayHasGet || authInfo == null || authInfo?.AddTime.Date != DateTime.Now.Date)
if (idRefreshTodayHasGet || authInfo == null || authInfo?.UpdateTime.Date != DateTime.Now.Date)
{
lstShopAuthInfo.RemoveAll(sa => sa.ShopId == shop.ShopId);
var rst = WXUpload.GetApiServiceList(shop);
@@ -156,7 +156,7 @@ namespace TemuKJD.WXForms.AdminForms
return;
}
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, AddTime = DateTime.Now, ExpiresTime = DateTime.Now });
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, UpdateTime = DateTime.Now, ExpiresTime = DateTime.Now });
Invoke(new Action(() => { BindShop(shop, selectIds, "授权查询失败"); }));
return;
}
@@ -167,13 +167,13 @@ namespace TemuKJD.WXForms.AdminForms
if (itemObj["serviceName"].ParseToString() == "店统领供应链-商品管理")
{
var expiresTick = itemObj["expireTime"].ParseToLong();
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, AddTime = DateTime.Now, ExpiresTime = BaseClass.StampToDateTime(expiresTick.ParseToInt()) });
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, UpdateTime = DateTime.Now, ExpiresTime = BaseClass.StampToDateTime(expiresTick.ParseToInt()) });
Invoke(new Action(() => { BindShop(shop, selectIds, "已查询"); }));
return;
}
}
// 没找到指定服务
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, AddTime = DateTime.Now, ExpiresTime = DateTime.Now });
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, UpdateTime = DateTime.Now, ExpiresTime = DateTime.Now });
Invoke(new Action(() => { BindShop(shop, selectIds, "已查询"); }));
}
}
@@ -346,7 +346,7 @@ namespace TemuKJD.WXForms.ProductForms
}
var authInfo = lstShopAuthInfo.FirstOrDefault(sa => sa.ShopId == shop.ShopId);
if (idRefreshTodayHasGet || authInfo == null || authInfo?.AddTime.Date != DateTime.Now.Date)
if (idRefreshTodayHasGet || authInfo == null || authInfo?.UpdateTime.Date != DateTime.Now.Date)
{
lstShopAuthInfo.RemoveAll(sa => sa.ShopId == shop.ShopId);
var rst = WXUpload.GetApiServiceList(shop);
@@ -359,7 +359,7 @@ namespace TemuKJD.WXForms.ProductForms
return;
}
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, AddTime = DateTime.Now, ExpiresTime = DateTime.Now });
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, UpdateTime = DateTime.Now, ExpiresTime = DateTime.Now });
Invoke(new Action(() => { BindShop(shop, selectIds, "授权查询失败"); }));
return;
}
@@ -370,13 +370,13 @@ namespace TemuKJD.WXForms.ProductForms
if (itemObj["serviceName"].ParseToString() == "店统领供应链-商品管理")
{
var expiresTick = itemObj["expireTime"].ParseToLong();
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, AddTime = DateTime.Now, ExpiresTime = BaseClass.StampToDateTime(expiresTick.ParseToInt()) });
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, UpdateTime = DateTime.Now, ExpiresTime = BaseClass.StampToDateTime(expiresTick.ParseToInt()) });
Invoke(new Action(() => { BindShop(shop, selectIds, "已查询"); }));
return;
}
}
// 没找到指定服务
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, AddTime = DateTime.Now, ExpiresTime = DateTime.Now });
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, UpdateTime = DateTime.Now, ExpiresTime = DateTime.Now });
Invoke(new Action(() => { BindShop(shop, selectIds, "已查询"); }));
}
}
@@ -1002,7 +1002,7 @@ namespace TemuKJD.WXForms.ProductForms
KJDDBProduct kjdDbProd = selectProd.kjdDbProduct;
string errStr = "";
if (kjdDbProd == null)
kjdDbProd = GetProductDetail(selectProd.out_product_Id.ToString(), out errStr);
kjdDbProd = GetProductDetail(selectProd.out_product_Id.ToString(), out errStr, true);
if (kjdDbProd == null || kjdDbProd.id == 0)
{
if (kjdDbProd?.id == 0)
@@ -4028,9 +4028,9 @@ namespace TemuKJD.WXForms.ProductForms
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(url, data);
}
//add_secret_spu_id_shop_id_map //测试id "2017522348787531778" FC4C8B7F3C6E4B029AD2A12D4D323B41
if (!string.IsNullOrEmpty(dbProd.secret_spu_id))
{
//add_secret_spu_id_shop_id_map //测试id "2017522348787531778" FC4C8B7F3C6E4B029AD2A12D4D323B41 // 老函数已作废
var url = BaseClass.BuildObjString("product/wx_add_secret_id_up_map");
var data = "";
Invoke(new Action(() =>
@@ -231,7 +231,7 @@ namespace TemuKJD.WXForms.ProductForms
}
var authInfo = lstShopAuthInfo.FirstOrDefault(sa => sa.ShopId == shop.ShopId);
if (idRefreshTodayHasGet || authInfo == null || authInfo?.AddTime.Date != DateTime.Now.Date)
if (idRefreshTodayHasGet || authInfo == null || authInfo?.UpdateTime.Date != DateTime.Now.Date)
{
lstShopAuthInfo.RemoveAll(sa => sa.ShopId == shop.ShopId);
var rst = WXUpload.GetApiServiceList(shop);
@@ -244,7 +244,7 @@ namespace TemuKJD.WXForms.ProductForms
return;
}
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, AddTime = DateTime.Now, ExpiresTime = DateTime.Now });
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, UpdateTime = DateTime.Now, ExpiresTime = DateTime.Now });
Invoke(new Action(() => { BindShop(shop, selectIds, "授权查询失败"); }));
return;
}
@@ -255,13 +255,13 @@ namespace TemuKJD.WXForms.ProductForms
if (itemObj["serviceName"].ParseToString() == "店统领供应链-商品管理")
{
var expiresTick = itemObj["expireTime"].ParseToLong();
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, AddTime = DateTime.Now, ExpiresTime = BaseClass.StampToDateTime(expiresTick.ParseToInt()) });
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, UpdateTime = DateTime.Now, ExpiresTime = BaseClass.StampToDateTime(expiresTick.ParseToInt()) });
Invoke(new Action(() => { BindShop(shop, selectIds, "已查询"); }));
return;
}
}
// 没找到指定服务
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, AddTime = DateTime.Now, ExpiresTime = DateTime.Now });
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, UpdateTime = DateTime.Now, ExpiresTime = DateTime.Now });
Invoke(new Action(() => { BindShop(shop, selectIds, "已查询"); }));
}
}
@@ -154,7 +154,7 @@ namespace TemuKJD.WXForms.ProductForms
}
var authInfo = lstShopAuthInfo.FirstOrDefault(sa => sa.ShopId == shop.ShopId);
if (idRefreshTodayHasGet || authInfo == null || authInfo?.AddTime.Date != DateTime.Now.Date)
if (idRefreshTodayHasGet || authInfo == null || authInfo?.UpdateTime.Date != DateTime.Now.Date)
{
lstShopAuthInfo.RemoveAll(sa => sa.ShopId == shop.ShopId);
var rst = WXUpload.GetApiServiceList(shop);
@@ -167,7 +167,7 @@ namespace TemuKJD.WXForms.ProductForms
return;
}
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, AddTime = DateTime.Now, ExpiresTime = DateTime.Now });
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, UpdateTime = DateTime.Now, ExpiresTime = DateTime.Now });
Invoke(new Action(() => { BindShop(shop, selectIds, "授权查询失败"); }));
return;
}
@@ -178,13 +178,13 @@ namespace TemuKJD.WXForms.ProductForms
if (itemObj["serviceName"].ParseToString() == "店统领供应链-商品管理")
{
var expiresTick = itemObj["expireTime"].ParseToLong();
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, AddTime = DateTime.Now, ExpiresTime = BaseClass.StampToDateTime(expiresTick.ParseToInt()) });
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, UpdateTime = DateTime.Now, ExpiresTime = BaseClass.StampToDateTime(expiresTick.ParseToInt()) });
Invoke(new Action(() => { BindShop(shop, selectIds, "已查询"); }));
return;
}
}
// 没找到指定服务
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, AddTime = DateTime.Now, ExpiresTime = DateTime.Now });
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, UpdateTime = DateTime.Now, ExpiresTime = DateTime.Now });
Invoke(new Action(() => { BindShop(shop, selectIds, "已查询"); }));
}
}
@@ -213,7 +213,7 @@ namespace TemuKJD.WXForms.ProductForms
}
var authInfo = lstShopAuthInfo.FirstOrDefault(sa => sa.ShopId == shop.ShopId);
if (idRefreshTodayHasGet || authInfo == null || authInfo?.AddTime.Date != DateTime.Now.Date)
if (idRefreshTodayHasGet || authInfo == null || authInfo?.UpdateTime.Date != DateTime.Now.Date)
{
lstShopAuthInfo.RemoveAll(sa => sa.ShopId == shop.ShopId);
var rst = WXUpload.GetApiServiceList(shop);
@@ -226,7 +226,7 @@ namespace TemuKJD.WXForms.ProductForms
return;
}
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, AddTime = DateTime.Now, ExpiresTime = DateTime.Now });
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, UpdateTime = DateTime.Now, ExpiresTime = DateTime.Now });
Invoke(new Action(() => { BindShop(shop, selectIds, "授权查询失败"); }));
return;
}
@@ -237,13 +237,13 @@ namespace TemuKJD.WXForms.ProductForms
if (itemObj["serviceName"].ParseToString() == "店统领供应链-商品管理")
{
var expiresTick = itemObj["expireTime"].ParseToLong();
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, AddTime = DateTime.Now, ExpiresTime = BaseClass.StampToDateTime(expiresTick.ParseToInt()) });
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, UpdateTime = DateTime.Now, ExpiresTime = BaseClass.StampToDateTime(expiresTick.ParseToInt()) });
Invoke(new Action(() => { BindShop(shop, selectIds, "已查询"); }));
return;
}
}
// 没找到指定服务
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, AddTime = DateTime.Now, ExpiresTime = DateTime.Now });
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, UpdateTime = DateTime.Now, ExpiresTime = DateTime.Now });
Invoke(new Action(() => { BindShop(shop, selectIds, "已查询"); }));
}
}
@@ -152,7 +152,7 @@ namespace TemuKJD.WXForms.ProductForms
}
var authInfo = lstShopAuthInfo.FirstOrDefault(sa => sa.ShopId == shop.ShopId);
if (idRefreshTodayHasGet || authInfo == null || authInfo?.AddTime.Date != DateTime.Now.Date)
if (idRefreshTodayHasGet || authInfo == null || authInfo?.UpdateTime.Date != DateTime.Now.Date)
{
lstShopAuthInfo.RemoveAll(sa => sa.ShopId == shop.ShopId);
var rst = WXUpload.GetApiServiceList(shop);
@@ -165,7 +165,7 @@ namespace TemuKJD.WXForms.ProductForms
return;
}
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, AddTime = DateTime.Now, ExpiresTime = DateTime.Now });
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, UpdateTime = DateTime.Now, ExpiresTime = DateTime.Now });
Invoke(new Action(() => { BindShop(shop, selectIds, "授权查询失败"); }));
return;
}
@@ -176,13 +176,13 @@ namespace TemuKJD.WXForms.ProductForms
if (itemObj["serviceName"].ParseToString() == "店统领供应链-商品管理")
{
var expiresTick = itemObj["expireTime"].ParseToLong();
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, AddTime = DateTime.Now, ExpiresTime = BaseClass.StampToDateTime(expiresTick.ParseToInt()) });
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, UpdateTime = DateTime.Now, ExpiresTime = BaseClass.StampToDateTime(expiresTick.ParseToInt()) });
Invoke(new Action(() => { BindShop(shop, selectIds, "已查询"); }));
return;
}
}
// 没找到指定服务
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, AddTime = DateTime.Now, ExpiresTime = DateTime.Now });
lstShopAuthInfo.Add(new AuthInfo() { ShopId = shop.ShopId, UpdateTime = DateTime.Now, ExpiresTime = DateTime.Now });
Invoke(new Action(() => { BindShop(shop, selectIds, "已查询"); }));
}
}
+60 -27
View File
@@ -55,6 +55,7 @@ namespace TemuKJD.WXForms.ProductForms
this.btnSetShop = new DevComponents.DotNetBar.PanelEx();
this.btnSelect = new DevComponents.DotNetBar.PanelEx();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.lblRelation = new System.Windows.Forms.Label();
this.txtCatBoundLessThan = new System.Windows.Forms.TextBox();
this.txtCatBoundMoreThan = new System.Windows.Forms.TextBox();
this.chkCatBoundLessThan = new TemuKJD.UserComponent.UcCheckBox(this.components);
@@ -75,6 +76,7 @@ namespace TemuKJD.WXForms.ProductForms
this.cmbGroupFilter = new System.Windows.Forms.ComboBox();
this.cmbSourceType = new System.Windows.Forms.ComboBox();
this.lblSourceType = new System.Windows.Forms.Label();
this.cmbRelation = new System.Windows.Forms.ComboBox();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.btnStopStop = new DevComponents.DotNetBar.PanelEx();
this.pnlSetShop = new System.Windows.Forms.Panel();
@@ -196,10 +198,10 @@ namespace TemuKJD.WXForms.ProductForms
this.lblSetShop.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.lblSetShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblSetShop.ForeColor = System.Drawing.Color.DarkOrange;
this.lblSetShop.Location = new System.Drawing.Point(1094, 45);
this.lblSetShop.Location = new System.Drawing.Point(1206, 45);
this.lblSetShop.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.lblSetShop.Name = "lblSetShop";
this.lblSetShop.Size = new System.Drawing.Size(326, 17);
this.lblSetShop.Size = new System.Drawing.Size(214, 17);
this.lblSetShop.TabIndex = 718;
this.lblSetShop.Text = "指定店铺:";
this.lblSetShop.TextAlign = System.Drawing.ContentAlignment.TopRight;
@@ -271,6 +273,7 @@ namespace TemuKJD.WXForms.ProductForms
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.Controls.Add(this.lblRelation, 8, 1);
this.tableLayoutPanel1.Controls.Add(this.txtCatBoundLessThan, 5, 1);
this.tableLayoutPanel1.Controls.Add(this.txtCatBoundMoreThan, 3, 1);
this.tableLayoutPanel1.Controls.Add(this.chkCatBoundLessThan, 4, 1);
@@ -291,6 +294,7 @@ namespace TemuKJD.WXForms.ProductForms
this.tableLayoutPanel1.Controls.Add(this.cmbGroupFilter, 9, 0);
this.tableLayoutPanel1.Controls.Add(this.cmbSourceType, 7, 1);
this.tableLayoutPanel1.Controls.Add(this.lblSourceType, 6, 1);
this.tableLayoutPanel1.Controls.Add(this.cmbRelation, 9, 1);
this.tableLayoutPanel1.Location = new System.Drawing.Point(4, 4);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 3;
@@ -300,13 +304,25 @@ namespace TemuKJD.WXForms.ProductForms
this.tableLayoutPanel1.Size = new System.Drawing.Size(1193, 105);
this.tableLayoutPanel1.TabIndex = 679;
//
// lblRelation
//
this.lblRelation.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.lblRelation.AutoSize = true;
this.lblRelation.Location = new System.Drawing.Point(870, 44);
this.lblRelation.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.lblRelation.Name = "lblRelation";
this.lblRelation.Size = new System.Drawing.Size(68, 17);
this.lblRelation.TabIndex = 884;
this.lblRelation.Text = "数据转换:";
this.lblRelation.Visible = false;
//
// txtCatBoundLessThan
//
this.txtCatBoundLessThan.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.txtCatBoundLessThan.Location = new System.Drawing.Point(525, 41);
this.txtCatBoundLessThan.Location = new System.Drawing.Point(515, 41);
this.txtCatBoundLessThan.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtCatBoundLessThan.Name = "txtCatBoundLessThan";
this.txtCatBoundLessThan.Size = new System.Drawing.Size(151, 23);
this.txtCatBoundLessThan.Size = new System.Drawing.Size(146, 23);
this.txtCatBoundLessThan.TabIndex = 883;
this.txtCatBoundLessThan.Text = "100000";
this.txtCatBoundLessThan.Visible = false;
@@ -314,10 +330,10 @@ namespace TemuKJD.WXForms.ProductForms
// txtCatBoundMoreThan
//
this.txtCatBoundMoreThan.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.txtCatBoundMoreThan.Location = new System.Drawing.Point(298, 41);
this.txtCatBoundMoreThan.Location = new System.Drawing.Point(293, 41);
this.txtCatBoundMoreThan.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtCatBoundMoreThan.Name = "txtCatBoundMoreThan";
this.txtCatBoundMoreThan.Size = new System.Drawing.Size(151, 23);
this.txtCatBoundMoreThan.Size = new System.Drawing.Size(146, 23);
this.txtCatBoundMoreThan.TabIndex = 882;
this.txtCatBoundMoreThan.Text = "1000";
this.txtCatBoundMoreThan.Visible = false;
@@ -325,7 +341,7 @@ namespace TemuKJD.WXForms.ProductForms
// chkCatBoundLessThan
//
this.chkCatBoundLessThan.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.chkCatBoundLessThan.Location = new System.Drawing.Point(458, 42);
this.chkCatBoundLessThan.Location = new System.Drawing.Point(448, 42);
this.chkCatBoundLessThan.Margin = new System.Windows.Forms.Padding(6, 3, 3, 3);
this.chkCatBoundLessThan.Name = "chkCatBoundLessThan";
this.chkCatBoundLessThan.Size = new System.Drawing.Size(64, 21);
@@ -337,7 +353,7 @@ namespace TemuKJD.WXForms.ProductForms
// chkCatBoundMoreThan
//
this.chkCatBoundMoreThan.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.chkCatBoundMoreThan.Location = new System.Drawing.Point(231, 42);
this.chkCatBoundMoreThan.Location = new System.Drawing.Point(226, 42);
this.chkCatBoundMoreThan.Margin = new System.Windows.Forms.Padding(6, 3, 3, 3);
this.chkCatBoundMoreThan.Name = "chkCatBoundMoreThan";
this.chkCatBoundMoreThan.Size = new System.Drawing.Size(64, 21);
@@ -353,7 +369,7 @@ namespace TemuKJD.WXForms.ProductForms
this.btnSearch.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnSearch.DisabledBackColor = System.Drawing.Color.Empty;
this.btnSearch.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSearch.Location = new System.Drawing.Point(1091, 5);
this.btnSearch.Location = new System.Drawing.Point(1090, 5);
this.btnSearch.Name = "btnSearch";
this.btnSearch.Size = new System.Drawing.Size(46, 25);
this.btnSearch.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -377,7 +393,7 @@ namespace TemuKJD.WXForms.ProductForms
this.pnlEmpty.CanvasColor = System.Drawing.SystemColors.Control;
this.pnlEmpty.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.pnlEmpty.DisabledBackColor = System.Drawing.Color.Empty;
this.pnlEmpty.Location = new System.Drawing.Point(1143, 5);
this.pnlEmpty.Location = new System.Drawing.Point(1142, 5);
this.pnlEmpty.Name = "pnlEmpty";
this.pnlEmpty.Size = new System.Drawing.Size(46, 25);
this.pnlEmpty.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -404,10 +420,10 @@ namespace TemuKJD.WXForms.ProductForms
this.cmbCat3.DropDownWidth = 1;
this.cmbCat3.FormattingEnabled = true;
this.cmbCat3.IntegralHeight = false;
this.cmbCat3.Location = new System.Drawing.Point(733, 7);
this.cmbCat3.Location = new System.Drawing.Point(718, 5);
this.cmbCat3.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCat3.Name = "cmbCat3";
this.cmbCat3.Size = new System.Drawing.Size(151, 25);
this.cmbCat3.Size = new System.Drawing.Size(146, 25);
this.cmbCat3.TabIndex = 811;
this.cmbCat3.Text = "全部";
this.cmbCat3.SelectedIndexChanged += new System.EventHandler(this.cmbCat3_SelectedIndexChanged);
@@ -417,7 +433,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.label17.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label17.AutoSize = true;
this.label17.Location = new System.Drawing.Point(682, 9);
this.label17.Location = new System.Drawing.Point(667, 9);
this.label17.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(51, 17);
@@ -432,10 +448,10 @@ namespace TemuKJD.WXForms.ProductForms
this.cmbCat2.DropDownWidth = 1;
this.cmbCat2.FormattingEnabled = true;
this.cmbCat2.IntegralHeight = false;
this.cmbCat2.Location = new System.Drawing.Point(525, 7);
this.cmbCat2.Location = new System.Drawing.Point(515, 5);
this.cmbCat2.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCat2.Name = "cmbCat2";
this.cmbCat2.Size = new System.Drawing.Size(151, 25);
this.cmbCat2.Size = new System.Drawing.Size(146, 25);
this.cmbCat2.TabIndex = 804;
this.cmbCat2.Text = "全部";
this.cmbCat2.SelectedIndexChanged += new System.EventHandler(this.cmbCat2_SelectedIndexChanged);
@@ -445,7 +461,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.label14.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label14.AutoSize = true;
this.label14.Location = new System.Drawing.Point(474, 9);
this.label14.Location = new System.Drawing.Point(464, 9);
this.label14.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(51, 17);
@@ -460,10 +476,10 @@ namespace TemuKJD.WXForms.ProductForms
this.cmbCat1.DropDownWidth = 1;
this.cmbCat1.FormattingEnabled = true;
this.cmbCat1.IntegralHeight = false;
this.cmbCat1.Location = new System.Drawing.Point(298, 7);
this.cmbCat1.Location = new System.Drawing.Point(293, 7);
this.cmbCat1.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCat1.Name = "cmbCat1";
this.cmbCat1.Size = new System.Drawing.Size(151, 25);
this.cmbCat1.Size = new System.Drawing.Size(146, 25);
this.cmbCat1.TabIndex = 805;
this.cmbCat1.Text = "全部";
this.cmbCat1.SelectedIndexChanged += new System.EventHandler(this.cmbCat1_SelectedIndexChanged);
@@ -473,7 +489,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.label2.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(247, 9);
this.label2.Location = new System.Drawing.Point(242, 9);
this.label2.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(51, 17);
@@ -486,7 +502,7 @@ namespace TemuKJD.WXForms.ProductForms
this.txtProdName.Location = new System.Drawing.Point(71, 6);
this.txtProdName.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.txtProdName.Name = "txtProdName";
this.txtProdName.Size = new System.Drawing.Size(151, 23);
this.txtProdName.Size = new System.Drawing.Size(146, 23);
this.txtProdName.TabIndex = 427;
//
// label3
@@ -523,7 +539,7 @@ namespace TemuKJD.WXForms.ProductForms
this.cmbWxSafe.Location = new System.Drawing.Point(71, 42);
this.cmbWxSafe.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbWxSafe.Name = "cmbWxSafe";
this.cmbWxSafe.Size = new System.Drawing.Size(151, 25);
this.cmbWxSafe.Size = new System.Drawing.Size(146, 25);
this.cmbWxSafe.TabIndex = 676;
this.cmbWxSafe.Text = "安全+未校验";
//
@@ -531,7 +547,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.lblGroup.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.lblGroup.AutoSize = true;
this.lblGroup.Location = new System.Drawing.Point(890, 9);
this.lblGroup.Location = new System.Drawing.Point(894, 9);
this.lblGroup.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.lblGroup.Name = "lblGroup";
this.lblGroup.Size = new System.Drawing.Size(44, 17);
@@ -543,10 +559,10 @@ namespace TemuKJD.WXForms.ProductForms
//
this.cmbGroupFilter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.cmbGroupFilter.FormattingEnabled = true;
this.cmbGroupFilter.Location = new System.Drawing.Point(934, 5);
this.cmbGroupFilter.Location = new System.Drawing.Point(938, 5);
this.cmbGroupFilter.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbGroupFilter.Name = "cmbGroupFilter";
this.cmbGroupFilter.Size = new System.Drawing.Size(151, 25);
this.cmbGroupFilter.Size = new System.Drawing.Size(146, 25);
this.cmbGroupFilter.TabIndex = 653;
this.cmbGroupFilter.Visible = false;
//
@@ -564,10 +580,10 @@ namespace TemuKJD.WXForms.ProductForms
"机会商品",
"以图搜品",
"外部数据"});
this.cmbSourceType.Location = new System.Drawing.Point(733, 42);
this.cmbSourceType.Location = new System.Drawing.Point(718, 40);
this.cmbSourceType.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbSourceType.Name = "cmbSourceType";
this.cmbSourceType.Size = new System.Drawing.Size(151, 25);
this.cmbSourceType.Size = new System.Drawing.Size(146, 25);
this.cmbSourceType.TabIndex = 654;
this.cmbSourceType.Text = "厂商直采";
this.cmbSourceType.Visible = false;
@@ -578,7 +594,7 @@ namespace TemuKJD.WXForms.ProductForms
//
this.lblSourceType.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.lblSourceType.AutoSize = true;
this.lblSourceType.Location = new System.Drawing.Point(689, 44);
this.lblSourceType.Location = new System.Drawing.Point(674, 44);
this.lblSourceType.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
this.lblSourceType.Name = "lblSourceType";
this.lblSourceType.Size = new System.Drawing.Size(44, 17);
@@ -586,6 +602,21 @@ namespace TemuKJD.WXForms.ProductForms
this.lblSourceType.Text = "来源:";
this.lblSourceType.Visible = false;
//
// cmbRelation
//
this.cmbRelation.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.cmbRelation.FormattingEnabled = true;
this.cmbRelation.Items.AddRange(new object[] {
"",
"是",
"否"});
this.cmbRelation.Location = new System.Drawing.Point(938, 40);
this.cmbRelation.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbRelation.Name = "cmbRelation";
this.cmbRelation.Size = new System.Drawing.Size(146, 25);
this.cmbRelation.TabIndex = 882;
this.cmbRelation.Visible = false;
//
// splitContainer2
//
this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
@@ -1681,5 +1712,7 @@ namespace TemuKJD.WXForms.ProductForms
private System.Windows.Forms.TextBox txtCatBoundMoreThan;
private UserComponent.UcCheckBox chkCatBoundLessThan;
public System.Windows.Forms.ComboBox cmbSourceType;
public System.Windows.Forms.ComboBox cmbRelation;
public System.Windows.Forms.Label lblRelation;
}
}
@@ -341,6 +341,10 @@ namespace TemuKJD.WXForms.ProductForms
"&search_group=" + cmbGroupFilter.Text.Trim() +
"&search_prod_name=" + txtProdName.Text.Trim() +
"&wx_safe_status=" + cmbWxSafe.Text.Trim().Replace("安全+未校验", "安全商品,未校验").Replace("违规商品", "");
if (cmbRelation.Text == "否")
data += "&is_relation=0";
else if (cmbRelation.Text == "是")
data += "&is_relation=1";
//if (chkEditTime.Checked)
//{
@@ -1018,5 +1022,10 @@ namespace TemuKJD.WXForms.ProductForms
this.Hide();
e.Cancel = true;
}
private void chkNotRelation_CheckedChanged(object sender, EventArgs e)
{
}
}
}
+4 -4
View File
@@ -56,7 +56,7 @@ namespace TemuKJD.WXForms.ShopForms
localShop.ApiAuthInfoList = new List<AuthInfo>();
localShop.ApiAuthInfoList.AddRange(serverShop.ApiAuthInfoList);
localShop.BuyApiAuth.AccessToken = serverShop.BuyApiAuth.AccessToken;
localShop.BuyApiAuth.AddTime = serverShop.BuyApiAuth.AddTime;
localShop.BuyApiAuth.UpdateTime = serverShop.BuyApiAuth.UpdateTime;
localShop.BuyApiAuth.AppKey = serverShop.BuyApiAuth.AppKey;
localShop.BuyApiAuth.ExpiresTime = serverShop.BuyApiAuth.ExpiresTime;
localShop.BuyApiAuth.RefreshToken = serverShop.BuyApiAuth.RefreshToken;
@@ -142,7 +142,7 @@ namespace TemuKJD.WXForms.ShopForms
AppKey = appkey,
AccessToken = BaseRegex.GetStringJson(ref shopStr, "access_token"),
RefreshToken = BaseRegex.GetStringJson(ref shopStr, "refresh_token"),
AddTime = BaseRegex.GetStringJson(ref shopStr, "add_time").ParseToDateTime(),
UpdateTime = BaseRegex.GetStringJson(ref shopStr, "add_time").ParseToDateTime(),
ExpiresTime = BaseRegex.GetStringJson(ref shopStr, "expires_in").ParseToDateTime(),
});
}
@@ -155,7 +155,7 @@ namespace TemuKJD.WXForms.ShopForms
AppKey = appkey,
AccessToken = BaseRegex.GetStringJson(ref shopStr, "access_token"),
RefreshToken = BaseRegex.GetStringJson(ref shopStr, "refresh_token"),
AddTime = BaseRegex.GetStringJson(ref shopStr, "add_time").ParseToDateTime(),
UpdateTime = BaseRegex.GetStringJson(ref shopStr, "add_time").ParseToDateTime(),
ExpiresTime = BaseRegex.GetStringJson(ref shopStr, "expires_in").ParseToDateTime(),
});
}
@@ -164,7 +164,7 @@ namespace TemuKJD.WXForms.ShopForms
shop.BuyApiAuth.AppKey = appkey;
shop.BuyApiAuth.AccessToken = BaseRegex.GetStringJson(ref shopStr, "access_token");
shop.BuyApiAuth.RefreshToken = BaseRegex.GetStringJson(ref shopStr, "refresh_token");
shop.BuyApiAuth.AddTime = BaseRegex.GetStringJson(ref shopStr, "add_time").ParseToDateTime();
shop.BuyApiAuth.UpdateTime = BaseRegex.GetStringJson(ref shopStr, "add_time").ParseToDateTime();
shop.BuyApiAuth.ExpiresTime = BaseRegex.GetStringJson(ref shopStr, "expires_in").ParseToDateTime();
}
}
+113 -30
View File
@@ -44,6 +44,7 @@ namespace TemuKJD.WXForms.TalkForms
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(BuyerOrderListForm));
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.chkPause = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.btnCheck = new DevComponents.DotNetBar.PanelEx();
this.btnRefresh = new DevComponents.DotNetBar.PanelEx();
this.btnStopStop = new DevComponents.DotNetBar.PanelEx();
@@ -78,6 +79,10 @@ namespace TemuKJD.WXForms.TalkForms
this.panelEx3 = new DevComponents.DotNetBar.PanelEx();
this.panelEx2 = new DevComponents.DotNetBar.PanelEx();
this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
this.panel2 = new System.Windows.Forms.Panel();
this.btnRestore = new DevComponents.DotNetBar.PanelEx();
this.txtOrderSnFilter = new System.Windows.Forms.TextBox();
this.btnFilterOrder = new DevComponents.DotNetBar.PanelEx();
this.dgvPddBuyerOrder = new TemuKJD.UserComponent.DataGridViewEx();
this.dataGridViewCheckBoxColumn1 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.colOBuyerId = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -104,10 +109,9 @@ namespace TemuKJD.WXForms.TalkForms
this.dtpStartTime = new System.Windows.Forms.DateTimePicker();
this.label14 = new System.Windows.Forms.Label();
this.dtpEndTime = new System.Windows.Forms.DateTimePicker();
this.lblCurrentShop = new System.Windows.Forms.Label();
this.chkOnlyShowCurrentShop = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.lblCurrentShop = new System.Windows.Forms.Label();
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
this.chkPause = new TemuKJD.UserComponent.UcCheckBox(this.components);
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
@@ -123,6 +127,7 @@ namespace TemuKJD.WXForms.TalkForms
this.splitContainer3.Panel1.SuspendLayout();
this.splitContainer3.Panel2.SuspendLayout();
this.splitContainer3.SuspendLayout();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvPddBuyerOrder)).BeginInit();
this.tableLayoutPanel1.SuspendLayout();
this.SuspendLayout();
@@ -155,6 +160,17 @@ namespace TemuKJD.WXForms.TalkForms
this.splitContainer1.SplitterDistance = 78;
this.splitContainer1.TabIndex = 1;
//
// chkPause
//
this.chkPause.AutoSize = true;
this.chkPause.Location = new System.Drawing.Point(246, 41);
this.chkPause.Name = "chkPause";
this.chkPause.Size = new System.Drawing.Size(51, 21);
this.chkPause.TabIndex = 937;
this.chkPause.Text = "暂停";
this.chkPause.UseVisualStyleBackColor = true;
this.chkPause.CheckedChanged += new System.EventHandler(this.chkPause_CheckedChanged);
//
// btnCheck
//
this.btnCheck.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
@@ -586,10 +602,10 @@ namespace TemuKJD.WXForms.TalkForms
this.splitContainer3.Panel2.Controls.Add(this.panelEx3);
this.splitContainer3.Panel2.Controls.Add(this.panelEx2);
this.splitContainer3.Panel2.Controls.Add(this.panelEx1);
this.splitContainer3.Panel2.Controls.Add(this.dgvPddBuyerOrder);
this.splitContainer3.Panel2.Controls.Add(this.panel2);
this.splitContainer3.Panel2.Controls.Add(this.tableLayoutPanel1);
this.splitContainer3.Panel2.Controls.Add(this.lblCurrentShop);
this.splitContainer3.Panel2.Controls.Add(this.chkOnlyShowCurrentShop);
this.splitContainer3.Panel2.Controls.Add(this.lblCurrentShop);
this.splitContainer3.Size = new System.Drawing.Size(1430, 657);
this.splitContainer3.SplitterDistance = 372;
this.splitContainer3.TabIndex = 8;
@@ -671,12 +687,85 @@ namespace TemuKJD.WXForms.TalkForms
this.panelEx1.Visible = false;
this.panelEx1.Click += new System.EventHandler(this.panelEx1_Click);
//
// panel2
//
this.panel2.Controls.Add(this.btnRestore);
this.panel2.Controls.Add(this.txtOrderSnFilter);
this.panel2.Controls.Add(this.btnFilterOrder);
this.panel2.Controls.Add(this.dgvPddBuyerOrder);
this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel2.Location = new System.Drawing.Point(0, 312);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1054, 345);
this.panel2.TabIndex = 908;
//
// btnRestore
//
this.btnRestore.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnRestore.CanvasColor = System.Drawing.SystemColors.Control;
this.btnRestore.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnRestore.DisabledBackColor = System.Drawing.Color.Empty;
this.btnRestore.Location = new System.Drawing.Point(318, 312);
this.btnRestore.Name = "btnRestore";
this.btnRestore.Size = new System.Drawing.Size(61, 23);
this.btnRestore.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnRestore.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnRestore.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnRestore.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.btnRestore.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnRestore.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.btnRestore.Style.GradientAngle = 90;
this.btnRestore.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
this.btnRestore.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnRestore.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnRestore.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnRestore.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
this.btnRestore.TabIndex = 907;
this.btnRestore.Text = "还原";
this.btnRestore.Click += new System.EventHandler(this.btnRestore_Click);
//
// txtOrderSnFilter
//
this.txtOrderSnFilter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.txtOrderSnFilter.Location = new System.Drawing.Point(3, 312);
this.txtOrderSnFilter.Name = "txtOrderSnFilter";
this.txtOrderSnFilter.Size = new System.Drawing.Size(242, 23);
this.txtOrderSnFilter.TabIndex = 903;
//
// btnFilterOrder
//
this.btnFilterOrder.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnFilterOrder.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnFilterOrder.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnFilterOrder.DisabledBackColor = System.Drawing.Color.Empty;
this.btnFilterOrder.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnFilterOrder.Location = new System.Drawing.Point(251, 312);
this.btnFilterOrder.Name = "btnFilterOrder";
this.btnFilterOrder.Size = new System.Drawing.Size(61, 23);
this.btnFilterOrder.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnFilterOrder.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnFilterOrder.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnFilterOrder.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnFilterOrder.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnFilterOrder.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnFilterOrder.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnFilterOrder.Style.GradientAngle = 90;
this.btnFilterOrder.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnFilterOrder.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnFilterOrder.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnFilterOrder.TabIndex = 902;
this.btnFilterOrder.Text = "筛选";
this.btnFilterOrder.Click += new System.EventHandler(this.btnFilterOrder_Click);
//
// dgvPddBuyerOrder
//
this.dgvPddBuyerOrder.AllowUserToAddRows = false;
this.dgvPddBuyerOrder.AllowUserToDeleteRows = false;
dataGridViewCellStyle9.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvPddBuyerOrder.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle9;
this.dgvPddBuyerOrder.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.dgvPddBuyerOrder.AutoRowNumber = true;
this.dgvPddBuyerOrder.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.dgvPddBuyerOrder.BackgroundColor = System.Drawing.Color.White;
@@ -705,13 +794,12 @@ namespace TemuKJD.WXForms.TalkForms
this.colOExpressId,
this.colOMsg,
this.colSend});
this.dgvPddBuyerOrder.Dock = System.Windows.Forms.DockStyle.Bottom;
this.dgvPddBuyerOrder.Location = new System.Drawing.Point(0, 357);
this.dgvPddBuyerOrder.Location = new System.Drawing.Point(2, 3);
this.dgvPddBuyerOrder.MultiSelectCheckBox = true;
this.dgvPddBuyerOrder.Name = "dgvPddBuyerOrder";
this.dgvPddBuyerOrder.ReadOnly = true;
this.dgvPddBuyerOrder.RowTemplate.Height = 23;
this.dgvPddBuyerOrder.Size = new System.Drawing.Size(1054, 300);
this.dgvPddBuyerOrder.Size = new System.Drawing.Size(1049, 300);
this.dgvPddBuyerOrder.TabIndex = 886;
this.dgvPddBuyerOrder.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvPddBuyerOrder_CellContentClick);
//
@@ -996,6 +1084,18 @@ namespace TemuKJD.WXForms.TalkForms
this.dtpEndTime.TabIndex = 813;
this.dtpEndTime.Visible = false;
//
// chkOnlyShowCurrentShop
//
this.chkOnlyShowCurrentShop.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.chkOnlyShowCurrentShop.AutoSize = true;
this.chkOnlyShowCurrentShop.Location = new System.Drawing.Point(30, 498);
this.chkOnlyShowCurrentShop.Name = "chkOnlyShowCurrentShop";
this.chkOnlyShowCurrentShop.Size = new System.Drawing.Size(135, 21);
this.chkOnlyShowCurrentShop.TabIndex = 885;
this.chkOnlyShowCurrentShop.Text = "仅显示当前店铺订单";
this.chkOnlyShowCurrentShop.UseVisualStyleBackColor = true;
this.chkOnlyShowCurrentShop.Visible = false;
//
// lblCurrentShop
//
this.lblCurrentShop.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@@ -1010,18 +1110,6 @@ namespace TemuKJD.WXForms.TalkForms
this.lblCurrentShop.TextAlign = System.Drawing.ContentAlignment.TopRight;
this.lblCurrentShop.Visible = false;
//
// chkOnlyShowCurrentShop
//
this.chkOnlyShowCurrentShop.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.chkOnlyShowCurrentShop.AutoSize = true;
this.chkOnlyShowCurrentShop.Location = new System.Drawing.Point(30, 498);
this.chkOnlyShowCurrentShop.Name = "chkOnlyShowCurrentShop";
this.chkOnlyShowCurrentShop.Size = new System.Drawing.Size(135, 21);
this.chkOnlyShowCurrentShop.TabIndex = 885;
this.chkOnlyShowCurrentShop.Text = "仅显示当前店铺订单";
this.chkOnlyShowCurrentShop.UseVisualStyleBackColor = true;
this.chkOnlyShowCurrentShop.Visible = false;
//
// statusBar
//
this.statusBar.BackColor = System.Drawing.Color.White;
@@ -1033,17 +1121,6 @@ namespace TemuKJD.WXForms.TalkForms
this.statusBar.Size = new System.Drawing.Size(1438, 25);
this.statusBar.TabIndex = 5;
//
// chkPause
//
this.chkPause.AutoSize = true;
this.chkPause.Location = new System.Drawing.Point(246, 41);
this.chkPause.Name = "chkPause";
this.chkPause.Size = new System.Drawing.Size(51, 21);
this.chkPause.TabIndex = 937;
this.chkPause.Text = "暂停";
this.chkPause.UseVisualStyleBackColor = true;
this.chkPause.CheckedChanged += new System.EventHandler(this.chkPause_CheckedChanged);
//
// BuyerOrderListForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
@@ -1078,6 +1155,8 @@ namespace TemuKJD.WXForms.TalkForms
this.splitContainer3.Panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).EndInit();
this.splitContainer3.ResumeLayout(false);
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvPddBuyerOrder)).EndInit();
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout();
@@ -1152,5 +1231,9 @@ namespace TemuKJD.WXForms.TalkForms
private System.Windows.Forms.DataGridViewTextBoxColumn colOMsg;
private System.Windows.Forms.DataGridViewLinkColumn colSend;
private UserComponent.UcCheckBox chkPause;
private System.Windows.Forms.Panel panel2;
private DevComponents.DotNetBar.PanelEx btnRestore;
private System.Windows.Forms.TextBox txtOrderSnFilter;
private DevComponents.DotNetBar.PanelEx btnFilterOrder;
}
}
+41 -11
View File
@@ -168,11 +168,16 @@ namespace TemuKJD.WXForms.TalkForms
private void RequestHandler_ResourceLoadComplete(object sender, string url, string postData, string responseData, IRequest request)
{
if (url.StartsWith("https://mobile.yangkeduo.com/orders.html?type=3&order_index=0"))
{
var url1 = url;
//if (responseData.Contains("260415-279781076570828"))
//{
}
if (url.StartsWith("https://mobile.yangkeduo.com/orders.html?type=3"))
//}
//if (url1.StartsWith("https://mobile.yangkeduo.com/orders.html?type=3&order_index=0"))
//{
//}
if (url1.StartsWith("https://mobile.yangkeduo.com/orders.html?type=3")) //https://mobile.yangkeduo.com/orders.html?type=3
{
Task.Run(() =>
{
@@ -181,8 +186,11 @@ namespace TemuKJD.WXForms.TalkForms
{
var jsonData = BaseRegex.GetJsonObjStrJson(ref data, "ordersStore")?.FirstOrDefault();
var nickName = BaseRegex.GetStringJson(ref data, "nickName");
var buyerId = GlobalConfig.BuyerLoginList.FirstOrDefault(b => b.buyer_nick == nickName)?.buyer_id;
if (!string.IsNullOrEmpty(jsonData) && !string.IsNullOrEmpty(nickName) && !string.IsNullOrEmpty(buyerId))
var uid = BaseRegex.GetStringJson(ref data, "uid");
var buyerId = GlobalConfig.BuyerLoginList.FirstOrDefault(b => b.buyer_id == uid)?.buyer_id;
if (buyerId.IsNullOrEmpty())
buyerId = GlobalConfig.BuyerLoginList.FirstOrDefault(b => b.buyer_nick == nickName)?.buyer_id;
if (!string.IsNullOrEmpty(jsonData) && !string.IsNullOrEmpty(buyerId))
{
var ordersStr = BaseRegex.GetJsonObjStrJson(ref jsonData, "initOdersList")?.FirstOrDefault();
if (ordersStr != null && ordersStr.StartsWith("{\"3\":"))
@@ -194,7 +202,7 @@ namespace TemuKJD.WXForms.TalkForms
}
});
}
if (url.StartsWith("https://mobile.yangkeduo.com/orders.html?type=2"))
if (url1.StartsWith("https://mobile.yangkeduo.com/orders.html?type=2"))
{
Task.Run(() =>
{
@@ -216,11 +224,11 @@ namespace TemuKJD.WXForms.TalkForms
}
});
}
if (url.StartsWith("https://mobile.yangkeduo.com/proxy/api/api/aristotle/order_list_v3"))
if (url1.StartsWith("https://mobile.yangkeduo.com/proxy/api/api/aristotle/order_list_v3"))
{
Task.Run(() =>
{
CefReadBuyerOrder(url, responseData);
CefReadBuyerOrder(url1, responseData);
});
}
}
@@ -895,6 +903,11 @@ namespace TemuKJD.WXForms.TalkForms
if (resetSendStatus)
order.sendStatus = "";
if (order.order_sn.Contains("-465578"))
{
}
if (order.sendStatus == "已发送")
{
return;
@@ -950,8 +963,8 @@ namespace TemuKJD.WXForms.TalkForms
private void panelEx3_Click(object sender, EventArgs e)
{
dgvPddBuyerOrder.Visible = !dgvPddBuyerOrder.Visible;
if (dgvPddBuyerOrder.Visible == false)
panel2.Visible = !panel2.Visible;
if (panel2.Visible == false)
panelEx3.Text = "打开";
else
panelEx3.Text = "折叠";
@@ -982,6 +995,23 @@ namespace TemuKJD.WXForms.TalkForms
PauseTick = nextGetOrderTime - DateTime.Now;
}
private void btnFilterOrder_Click(object sender, EventArgs e)
{
foreach(DataGridViewRow row in dgvPddBuyerOrder.Rows)
{
if (row.Cells["colOPddOrderSn"].Value.ParseToString().Contains(txtOrderSnFilter.Text.Trim()))
row.Visible = true;
else
row.Visible = false;
}
}
private void btnRestore_Click(object sender, EventArgs e)
{
txtOrderSnFilter.Text = "";
btnFilterOrder_Click(null, null);
}
}
public class YkdBuyerOrder