From ccde645d9890c8aaff0b00f580792bf32e936ad1 Mon Sep 17 00:00:00 2001 From: wule Date: Tue, 10 Mar 2026 13:52:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=9A=E6=B0=B4=E6=BD=ADsku=E5=85=A5?= =?UTF-8?q?=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AllBase/AllBase.csproj | 1 + AllBase/BaseClass.cs | 2 +- .../Model/Result/JST/JSTListProductSkuInfo.cs | 48 + .../BLL/BXX/BXXProductManage.cs | 302 +++- .../KJD_WebService/BXXProductService.asmx.cs | 35 + .../KJD_WebService/KJD_WebService.csproj | 1 + .../Model/ShopModel/JSTListProductSkuInfo.cs | 47 + TEMUKJD/BLL/PDDProdFormConverter.cs | 5 +- TEMUKJD/KJD.csproj | 9 + .../PDDDBProdListForm.Designer.cs | 53 +- .../ProductSelectForms/PDDDBProdListForm.cs | 234 ++- .../GetJuShuitanProdForm.Designer.cs | 94 +- ...GetJuShuitanProductSKUListForm.Designer.cs | 1346 +++++++++++++++++ .../GetJuShuitanProductSKUListForm.cs | 892 +++++++++++ .../GetJuShuitanProductSKUListForm.resx | 204 +++ .../AdminForms/WXAdminForm.Designer.cs | 20 +- TEMUKJD/WXForms/AdminForms/WXAdminForm.cs | 6 +- 17 files changed, 3090 insertions(+), 209 deletions(-) create mode 100644 AllBase/Model/Result/JST/JSTListProductSkuInfo.cs create mode 100644 KJDService/KJD_WebService/Model/ShopModel/JSTListProductSkuInfo.cs create mode 100644 TEMUKJD/ToolForms/GetJuShuitanProductSKUListForm.Designer.cs create mode 100644 TEMUKJD/ToolForms/GetJuShuitanProductSKUListForm.cs create mode 100644 TEMUKJD/ToolForms/GetJuShuitanProductSKUListForm.resx diff --git a/AllBase/AllBase.csproj b/AllBase/AllBase.csproj index a5466b2..5c16dd9 100644 --- a/AllBase/AllBase.csproj +++ b/AllBase/AllBase.csproj @@ -198,6 +198,7 @@ + diff --git a/AllBase/BaseClass.cs b/AllBase/BaseClass.cs index 19ed909..4df0df1 100644 --- a/AllBase/BaseClass.cs +++ b/AllBase/BaseClass.cs @@ -27,7 +27,7 @@ namespace AllBase /// /// 版本ID /// - public static int VersionCount = 896; + public static int VersionCount = 900; //public static int VersionCount = 613; /// diff --git a/AllBase/Model/Result/JST/JSTListProductSkuInfo.cs b/AllBase/Model/Result/JST/JSTListProductSkuInfo.cs new file mode 100644 index 0000000..bfd273e --- /dev/null +++ b/AllBase/Model/Result/JST/JSTListProductSkuInfo.cs @@ -0,0 +1,48 @@ +using NaiBa.Util.Extension; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AllBase.Model.Result.JST +{ + public class JSTListProductSkuInfo + { + public string skuId { get; set; } // "F51114C9251A4AC1A03D91256FB48EF5", + public string itemSpuId { get; set; } // "16306F9EA78643A6B8389036BFC6131B", + public string pic { get; set; } // "https://images.sursung.com/prod/item/11625838/20260213/7D4666188669485C95B31A53CE621EAB_s392918_h800_w800.jpg", + public string itemName { get; set; } // "汉服发带唐风发饰古风国风头饰女马面裙配饰", + /// + /// spu货号 + /// + public string styleCode { get; set; } // "633881130581", + /// + /// sku货号 + /// + public string itemCode { get; set; } // "sp01351C", + public string color { get; set; } // "葡萄花鸟复原蓝", + public string spec { get; set; } // "无规格", + public decimal? salePrice { get; set; } // 7, + //public object weight { get; set; } // null, + //public object stockLastTime { get; set; } // null, + //public object regulatePriceMin { get; set; } // null, + //public object regulatePriceMax { get; set; } // null + + + public decimal? supplyPrice { get; set; } + public int? stock { get; set; } + public decimal? weight { get; set; } + public DateTime stockTime { get; set; } + + + public string coid { get; set; } + public string supplierId { get; set; } + public string supplierName { get; set; } + public string status { get; set; } + + + public int? skuPrice { get { if (supplyPrice == null) return null; return (supplyPrice * 100).ParseToInt(); } private set { supplyPrice = value * 0.01m; } } + public string Msg { get; set; } + } +} diff --git a/KJDService/KJD_WebService/BLL/BXX/BXXProductManage.cs b/KJDService/KJD_WebService/BLL/BXX/BXXProductManage.cs index fd92d75..463f715 100644 --- a/KJDService/KJD_WebService/BLL/BXX/BXXProductManage.cs +++ b/KJDService/KJD_WebService/BLL/BXX/BXXProductManage.cs @@ -369,6 +369,8 @@ namespace KJD_Web.BLL.BXX var real_coid = RegexUtils.GetStringQuery(ref inputData, "real_coid")?.Replace("'", "\\'"); var has_wx_format = RegexUtils.GetStringQuery(ref inputData, "has_wx_format")?.Replace("'", "\\'"); var standby3 = RegexUtils.GetStringQuery(ref inputData, "standby3")?.Replace("'", "\\'"); + var start_time = RegexUtils.GetStringQuery(ref inputData, "start_time")?.Replace("'", "\\'"); + var end_time = RegexUtils.GetStringQuery(ref inputData, "end_time")?.Replace("'", "\\'"); int page = RegexUtils.GetStringQuery(ref inputData, "page").ParseToInt(); int page_size= RegexUtils.GetStringQuery(ref inputData, "page_size").ParseToInt(50); @@ -471,9 +473,13 @@ namespace KJD_Web.BLL.BXX if (!string.IsNullOrEmpty(standby3)) { if (standby3.ToLower().Contains("is null")) - where += " and standby3 " + standby3; + where += " and p.standby3 " + standby3; else - where += " and standby3='" + standby3 + "'"; + where += " and p.standby3='" + standby3 + "'"; + } + if (start_time != null && end_time != null) + { + where += " and p.mdy_time between '" + start_time + "' and '" + end_time + "'"; } sql += where; @@ -2466,6 +2472,298 @@ namespace KJD_Web.BLL.BXX } return "{\"code\":19999,\"msg\":\"输入为空\"}"; } + + + + public string AddJSTSku(string inputData) + { + if (!string.IsNullOrEmpty(inputData)) + { + var time = 0; + int.TryParse(RegexUtils.GetStringQuery(ref inputData, "time"), out time); + string time1 = RegexUtils.GetStringQuery(ref inputData, "code"); + if (time1 != EncrypUtil.Encryption(time)) + return "{\"code\":50000,\"msg\":\"校验失败\"}"; + + string user_name = RegexUtils.GetStringQuery(ref inputData, "user_name")?.Replace("'", "\\'"); + if (string.IsNullOrEmpty(user_name)) + return "{\"code\":50000,\"msg\":\"用户不存在\"}"; + + string coid = RegexUtils.GetStringQuery(ref inputData, "coid")?.Replace("'", "\\'"); + string supplierId = RegexUtils.GetStringQuery(ref inputData, "supplierId")?.Replace("'", "\\'"); + string supplierName = RegexUtils.GetStringQuery(ref inputData, "supplierName"); + string skuId = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "skuId"))?.Replace("'", "\\'"); + string itemSpuId = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "itemSpuId"))?.Replace("'", "\\'"); + string pic = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "pic"))?.Replace("'", "\\'"); + string itemName = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "itemName")); + string styleCode = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "styleCode")); + string itemCode = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "itemCode"))?.Replace("'", "\\'"); + string color = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "color"))?.Replace("'", "\\'"); + string spec = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "spec"))?.Replace("'", "\\'"); + string salePrice = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "salePrice"))?.Replace("'", "\\'"); + string supplyPrice = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "supplyPrice"))?.Replace("'", "\\'"); + string stock = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "stock"))?.Replace("'", "\\'"); + string stockTime = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "stockTime"))?.Replace("'", "\\'"); + string weight = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "weight"))?.Replace("'", "\\'"); + string status = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "status"))?.Replace("'", "\\'"); + if (string.IsNullOrEmpty(user_name)) + { + return "{\"code\":500,\"msg\":\"没有用户名\"}"; + } + + string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString; + MysqlUtils mySql = new MysqlUtils(conn); + string sql = ""; + sql = "insert into "; + sql += "bxx.product_sku_restore "; + sql += "(coid,supplierId,supplierName,skuId,itemSpuId,pic,itemName,styleCode,itemCode,color,spec,stockTime," + + "salePrice,supplyPrice,stock,weight) " + + "values ('" + coid + "','" + supplierId + "','" + supplierName + "','" + skuId + "','" + itemSpuId + "','" + + pic + "','" + itemName + "','" + styleCode + "','" + itemCode + "','" + color + "','" + spec + "','" + stockTime + "'," + + (salePrice.IsNullOrEmpty() ? "null" : salePrice) + "," + supplyPrice + "," + stock + "," + weight + ");"; + + List paramLst = new List(); + //paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "product_json", Value = product_json, }); + //paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "size_json", Value = size_json, }); + var rst = mySql.ExecuteNonQuery(sql, paramLst.ToArray()); + mySql.Close(); + if (rst) + { + return "{\"code\":200,\"msg\":\"success\"}"; + } + else + { + return "{\"code\":500,\"msg\":\"" + mySql.Message + "\"}"; + } + } + return "{\"code\":19999,\"msg\":\"输入为空\"}"; + } + + public string MdyJSTSku(string inputData) + { + if (!string.IsNullOrEmpty(inputData)) + { + var time = 0; + int.TryParse(RegexUtils.GetStringQuery(ref inputData, "time"), out time); + string time1 = RegexUtils.GetStringQuery(ref inputData, "code"); + if (time1 != EncrypUtil.Encryption(time)) + return "{\"code\":50000,\"msg\":\"校验失败\"}"; + + string user_name = RegexUtils.GetStringQuery(ref inputData, "user_name")?.Replace("'", "\\'"); + if (string.IsNullOrEmpty(user_name)) + return "{\"code\":50000,\"msg\":\"用户不存在\"}"; + + string coid = RegexUtils.GetStringQuery(ref inputData, "coid")?.Replace("'", "\\'"); + string supplierId = RegexUtils.GetStringQuery(ref inputData, "supplierId")?.Replace("'", "\\'"); + string supplierName = RegexUtils.GetStringQuery(ref inputData, "supplierName"); + string skuId = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "skuId"))?.Replace("'", "\\'"); + string itemSpuId = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "itemSpuId"))?.Replace("'", "\\'"); + string pic = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "pic"))?.Replace("'", "\\'"); + string itemName = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "itemName")); + string styleCode = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "styleCode")); + string itemCode = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "itemCode"))?.Replace("'", "\\'"); + string color = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "color"))?.Replace("'", "\\'"); + string spec = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "spec"))?.Replace("'", "\\'"); + string salePrice = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "salePrice"))?.Replace("'", "\\'"); + string supplyPrice = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "supplyPrice"))?.Replace("'", "\\'"); + string stock = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "stock"))?.Replace("'", "\\'"); + string stockTime = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "stockTime"))?.Replace("'", "\\'"); + string weight = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "weight"))?.Replace("'", "\\'"); + string status = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "status"))?.Replace("'", "\\'"); + if (string.IsNullOrEmpty(user_name)) + { + return "{\"code\":500,\"msg\":\"没有用户名\"}"; + } + + string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString; + MysqlUtils mySql = new MysqlUtils(conn); + string sql = ""; + sql = "update "; + sql += "bxx.product_sku_restore p set "; + if (coid != null) + sql += " p.coid='" + coid + "',"; + if (supplierId != null) + sql += " p.supplierId='" + supplierId + "',"; + if (supplierName != null) + sql += " p.supplierName='" + supplierName + "',"; + if (pic != null) + sql += " p.pic='" + pic + "',"; + if (itemName != null) + sql += " p.itemName='" + itemName + "',"; + if (styleCode != null) + sql += " p.styleCode='" + styleCode + "',"; + if (itemCode != null) + sql += " p.itemCode='" + itemCode + "',"; + if (color != null) + sql += " p.color='" + color + "',"; + if (spec != null) + sql += " p.spec='" + spec + "',"; + if (salePrice != null) + sql += " p.salePrice=" + salePrice + ","; + if (supplyPrice != null) + sql += " p.supplyPrice=" + supplyPrice + ","; + if (stock != null) + sql += " p.stock=" + stock + ","; + if (stockTime != null) + sql += " p.stockTime='" + stockTime + "',"; + if (salePrice != null) + sql += " p.salePrice=" + salePrice + ","; + if (weight != null) + sql += " p.weight='" + weight + "',"; + sql = sql.TrimEnd(','); + sql += " where skuId='" + skuId + "' and itemSpuId='" + itemSpuId + "';"; + + List paramLst = new List(); + //paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "product_json", Value = product_json, }); + //paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "size_json", Value = size_json, }); + var rst = mySql.ExecuteNonQuery(sql, paramLst.ToArray()); + mySql.Close(); + if (rst) + { + return "{\"code\":200,\"msg\":\"success\"}"; + } + else + { + return "{\"code\":500,\"msg\":\"" + mySql.Message + "\"}"; + } + } + return "{\"code\":19999,\"msg\":\"输入为空\"}"; + } + + public string GetJSTSkuList(string inputData) + { + var timeCalc = DateTime.Now; + if (!string.IsNullOrEmpty(inputData)) + { + var time = RegexUtils.GetStringQuery(ref inputData, "time").ParseToInt(); + string time1 = RegexUtils.GetStringQuery(ref inputData, "code"); + if (time1 != EncrypUtil.Encryption(time)) + return "{\"code\":50000,\"msg\":\"校验失败\"}"; + + var version = RegexUtils.GetStringQuery(ref inputData, "version").ParseToInt(); + if (version < (System.Configuration.ConfigurationManager.ConnectionStrings["LimitVersion"]?.ConnectionString).ParseToInt()) + return "{\"code\":1,\"msg\":\"当前版本过于陈旧,请立即升级新版\"}"; + + var user_name = RegexUtils.GetStringQuery(ref inputData, "user_name")?.Replace("'", "\\'"); + if (string.IsNullOrEmpty(user_name)) + return "{\"code\":50000,\"msg\":\"用户不存在\"}"; + + var search_coid = RegexUtils.GetStringQuery(ref inputData, "search_coid")?.Replace("'", "\\'"); + var search_supplierId = RegexUtils.GetStringQuery(ref inputData, "search_supplierId")?.Replace("'", "\\'"); + var search_supplierName = RegexUtils.GetStringQuery(ref inputData, "search_supplierName")?.Replace("'", "\\'"); + var search_skuId = RegexUtils.GetStringQuery(ref inputData, "search_skuId")?.Replace("'", "\\'"); + var search_itemSpuId = RegexUtils.GetStringQuery(ref inputData, "search_itemSpuId")?.Replace("'", "\\'"); + var search_itemName = RegexUtils.GetStringQuery(ref inputData, "search_itemName")?.Replace("'", "\\'"); + var search_styleCode = RegexUtils.GetStringQuery(ref inputData, "search_styleCode")?.Replace("'", "\\'"); + var search_itemCode = RegexUtils.GetStringQuery(ref inputData, "search_itemCode")?.Replace("'", "\\'"); + var search_color = RegexUtils.GetStringQuery(ref inputData, "search_color")?.Replace("'", "\\'"); + var search_spec = RegexUtils.GetStringQuery(ref inputData, "search_spec")?.Replace("'", "\\'"); + var search_status = RegexUtils.GetStringQuery(ref inputData, "search_status")?.Replace("'", "\\'"); + + int page = RegexUtils.GetStringQuery(ref inputData, "page").ParseToInt(); + int page_size = RegexUtils.GetStringQuery(ref inputData, "page_size").ParseToInt(50); + + string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString; + MysqlUtils mySql = new MysqlUtils(conn); + + string sql = "select count(*) from bxx.product_sku_restore p where 1=1"; + + string where = ""; + if (!string.IsNullOrEmpty(search_coid)) + where += " and p.coid ='" + search_coid + "'"; + if (!string.IsNullOrEmpty(search_supplierId)) + where += " and p.supplierId ='" + search_supplierId + "'"; + if (!string.IsNullOrEmpty(search_supplierName)) + where += " and p.supplierName ='" + search_supplierName + "'"; + if (!string.IsNullOrEmpty(search_skuId)) + where += " and p.skuId ='" + search_skuId + "'"; + if (!string.IsNullOrEmpty(search_itemSpuId)) + where += " and p.itemSpuId ='" + search_itemSpuId + "'"; + if (!string.IsNullOrEmpty(search_itemName)) + where += " and p.itemName like '%" + search_itemName + "%'"; + if (!string.IsNullOrEmpty(search_styleCode)) + where += " and p.styleCode ='" + search_styleCode + "'"; + if (!string.IsNullOrEmpty(search_itemCode)) + where += " and p.itemCode ='" + search_itemCode + "'"; + if (!string.IsNullOrEmpty(search_color)) + where += " and p.color ='" + search_color + "'"; + if (!string.IsNullOrEmpty(search_spec)) + where += " and p.spec ='" + search_spec + "'"; + if (!string.IsNullOrEmpty(search_status)) + where += " and p.status ='" + search_status + "'"; + + sql += where; + + var count = 0; + count = mySql.ExecuteRowCount(sql); + + DataTable dt; + if (count == 0) + { + dt = new DataTable(); + } + else + { + sql = "select p.* from bxx.product_sku_restore p" + + " where 1=1"; + + //where子句 + sql += where; + sql += " order by p.id desc"; + sql += " limit " + Math.Max(page - 1, 0) * page_size + "," + page_size; + dt = mySql.ExecuteDataTable(sql); + } + + mySql.Close(); + if (dt != null) + { + try + { + List productLst = new List(); + foreach (DataRow row in dt.Rows) + { + JSTListProductSkuInfo prod = new JSTListProductSkuInfo + { + id = Convert.ToInt32(row["id"]), + coid = row["coid"].ToString(), + color = row["color"].ToString(), + itemCode = row["itemCode"].ToString(), + itemName = row["itemName"].ToString(), + itemSpuId = row["itemSpuId"].ToString(), + pic = row["pic"].ToString(), + salePrice = row["salePrice"].ParseToDecimal(), + skuId = row["skuId"].ToString(), + spec = row["spec"].ToString(), + status = row["status"].ToString(), + stock = row["stock"].ParseToInt(), + styleCode = row["styleCode"].ParseToString(), + supplierId = row["supplierId"].ToString(), + supplierName = row["supplierName"].ToString(), + supplyPrice = row["supplyPrice"].ParseToDecimal(), + add_time = Convert.ToDateTime(row["add_time"]), + mdy_time = Convert.ToDateTime(row["mdy_time"]), + stockTime = row["stockTime"].ParseToString().ParseToDateTime(), + weight = row["weight"].ParseToDecimal(), + }; + productLst.Add(prod); + } + JsonSerializerSettings jsonSetting = new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore }; + var data = JsonUtils.SerializerObjectToString(productLst, jsonSetting); + var seconds = (DateTime.Now - timeCalc).TotalSeconds.ToString("0.000"); + return "{\"code\":200,\"msg\":\"success\",\"data\":" + data + ",\"count\":" + count + ",\"seconds\":" + seconds + "}"; + } + catch (Exception ex) + { + return "{\"code\":500,\"msg\":\"" + ex.Message + "\",\"data\":[],\"count\":" + 0 + "}"; + } + } + else + { + return "{\"code\":500,\"msg\":\"" + mySql.Message + "\",\"data\":[],\"count\":" + 0 + "}"; + } + } + return "{\"code\":19999,\"msg\":\"输入为空\"}"; + } } } diff --git a/KJDService/KJD_WebService/BXXProductService.asmx.cs b/KJDService/KJD_WebService/BXXProductService.asmx.cs index a92bfc8..0c990c0 100644 --- a/KJDService/KJD_WebService/BXXProductService.asmx.cs +++ b/KJDService/KJD_WebService/BXXProductService.asmx.cs @@ -458,5 +458,40 @@ namespace KJD_Web Context.Response.Write(result); Context.Response.End(); } + + //AddJSTSku + [WebMethod] + public void add_jst_sku() + { + string jsontext = GetRequestJsonString(); + + var result = jsontext; + result = new BXXProductManage().AddJSTSku(jsontext); + + Context.Response.Write(result); + Context.Response.End(); + } + [WebMethod] + public void mdy_jst_sku() + { + string jsontext = GetRequestJsonString(); + + var result = jsontext; + result = new BXXProductManage().MdyJSTSku(jsontext); + + Context.Response.Write(result); + Context.Response.End(); + } + [WebMethod] + public void get_jst_sku_list() + { + string jsontext = GetRequestJsonString(); + + var result = jsontext; + result = new BXXProductManage().GetJSTSkuList(jsontext); + + Context.Response.Write(result); + Context.Response.End(); + } } } diff --git a/KJDService/KJD_WebService/KJD_WebService.csproj b/KJDService/KJD_WebService/KJD_WebService.csproj index 0579ef0..3611451 100644 --- a/KJDService/KJD_WebService/KJD_WebService.csproj +++ b/KJDService/KJD_WebService/KJD_WebService.csproj @@ -116,6 +116,7 @@ + diff --git a/KJDService/KJD_WebService/Model/ShopModel/JSTListProductSkuInfo.cs b/KJDService/KJD_WebService/Model/ShopModel/JSTListProductSkuInfo.cs new file mode 100644 index 0000000..2b5366c --- /dev/null +++ b/KJDService/KJD_WebService/Model/ShopModel/JSTListProductSkuInfo.cs @@ -0,0 +1,47 @@ +using NaiBa.Util.Extension; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; + +namespace KJD_Web.Model.ShopModel +{ + public class JSTListProductSkuInfo + { + public long id { get; set; } + + public string skuId { get; set; } // "F51114C9251A4AC1A03D91256FB48EF5", + public string itemSpuId { get; set; } // "16306F9EA78643A6B8389036BFC6131B", + public string pic { get; set; } // "https://images.sursung.com/prod/item/11625838/20260213/7D4666188669485C95B31A53CE621EAB_s392918_h800_w800.jpg", + public string itemName { get; set; } // "汉服发带唐风发饰古风国风头饰女马面裙配饰", + /// + /// spu货号 + /// + public string styleCode { get; set; } // "633881130581", + /// + /// sku货号 + /// + public string itemCode { get; set; } // "sp01351C", + public string color { get; set; } // "葡萄花鸟复原蓝", + public string spec { get; set; } // "无规格", + public decimal? salePrice { get; set; } // 7, + //public object weight { get; set; } // null, + //public object stockLastTime { get; set; } // null, + //public object regulatePriceMin { get; set; } // null, + //public object regulatePriceMax { get; set; } // null + + + public decimal? supplyPrice { get; set; } + public int? stock { get; set; } + public decimal? weight { get; set; } + public DateTime stockTime { get; set; } + + + public string coid { get; set; } + public string supplierId { get; set; } + public string supplierName { get; set; } + public string status { get; set; } + public DateTime add_time { get; set; } + public DateTime mdy_time { get; set; } + } +} \ No newline at end of file diff --git a/TEMUKJD/BLL/PDDProdFormConverter.cs b/TEMUKJD/BLL/PDDProdFormConverter.cs index 7bd1dd5..6043b67 100644 --- a/TEMUKJD/BLL/PDDProdFormConverter.cs +++ b/TEMUKJD/BLL/PDDProdFormConverter.cs @@ -668,13 +668,16 @@ namespace TemuKJD.BLL }); } var itemNo = jSku["itemNo"].ParseToString(); + var baseSkuId = jSku["baseSkuId"].ParseToString(); var skuId = jstSecretCodeLst["skus"].FirstOrDefault(s => s["skuCode"].ParseToString() == itemNo)?["skuId"].ParseToString(); - skuInfo.out_sku_sn = skuId; + // skuCode可能不唯一 + skuId = jstSecretCodeLst["skus"].FirstOrDefault(s => s["warehouseSkuId"].ParseToString() == baseSkuId)?["skuId"].ParseToString(); if (skuId.IsNullOrEmpty()) { convertRst = "SKU货号不存在"; return null; } + skuInfo.out_sku_sn = skuId; prodInfo.detail.sku.Add(skuInfo); } prodInfo.detail.sku_type = null; diff --git a/TEMUKJD/KJD.csproj b/TEMUKJD/KJD.csproj index d3cef0a..619ba17 100644 --- a/TEMUKJD/KJD.csproj +++ b/TEMUKJD/KJD.csproj @@ -149,6 +149,12 @@ GetJuShuitanAuthForm.cs + + Form + + + GetJuShuitanProductSKUListForm.cs + Form @@ -1096,6 +1102,9 @@ GetJuShuitanAuthForm.cs + + GetJuShuitanProductSKUListForm.cs + GetJuShuitanProdForm.cs diff --git a/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdListForm.Designer.cs b/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdListForm.Designer.cs index 4fe1b3e..ab4c691 100644 --- a/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdListForm.Designer.cs +++ b/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdListForm.Designer.cs @@ -49,6 +49,9 @@ namespace TemuKJD.PDDForms.ProductSelectForms System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PDDDBProdListForm)); this.splitContainer1 = new System.Windows.Forms.SplitContainer(); + this.dtpEnd = new System.Windows.Forms.DateTimePicker(); + this.dtpStart = new System.Windows.Forms.DateTimePicker(); + this.ucCheckBox1 = new TemuKJD.UserComponent.UcCheckBox(this.components); this.btnUpdateReturnServerData = new DevComponents.DotNetBar.PanelEx(); this.btnReturnSecretData = new DevComponents.DotNetBar.PanelEx(); this.btnStopStop = new DevComponents.DotNetBar.PanelEx(); @@ -184,6 +187,9 @@ namespace TemuKJD.PDDForms.ProductSelectForms // // splitContainer1.Panel1 // + this.splitContainer1.Panel1.Controls.Add(this.dtpEnd); + this.splitContainer1.Panel1.Controls.Add(this.dtpStart); + this.splitContainer1.Panel1.Controls.Add(this.ucCheckBox1); this.splitContainer1.Panel1.Controls.Add(this.btnUpdateReturnServerData); this.splitContainer1.Panel1.Controls.Add(this.btnReturnSecretData); this.splitContainer1.Panel1.Controls.Add(this.btnStopStop); @@ -214,6 +220,36 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.splitContainer1.SplitterDistance = 110; this.splitContainer1.TabIndex = 1; // + // dtpEnd + // + this.dtpEnd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.dtpEnd.Location = new System.Drawing.Point(1042, 80); + this.dtpEnd.Name = "dtpEnd"; + this.dtpEnd.Size = new System.Drawing.Size(110, 23); + this.dtpEnd.TabIndex = 979; + this.dtpEnd.Visible = false; + // + // dtpStart + // + this.dtpStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.dtpStart.Location = new System.Drawing.Point(926, 80); + this.dtpStart.Name = "dtpStart"; + this.dtpStart.Size = new System.Drawing.Size(110, 23); + this.dtpStart.TabIndex = 978; + this.dtpStart.Visible = false; + // + // ucCheckBox1 + // + this.ucCheckBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.ucCheckBox1.AutoSize = true; + this.ucCheckBox1.Location = new System.Drawing.Point(856, 82); + this.ucCheckBox1.Name = "ucCheckBox1"; + this.ucCheckBox1.Size = new System.Drawing.Size(75, 21); + this.ucCheckBox1.TabIndex = 977; + this.ucCheckBox1.Text = "时间范围"; + this.ucCheckBox1.UseVisualStyleBackColor = true; + this.ucCheckBox1.Visible = false; + // // btnUpdateReturnServerData // this.btnUpdateReturnServerData.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); @@ -237,6 +273,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.btnUpdateReturnServerData.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); this.btnUpdateReturnServerData.TabIndex = 943; this.btnUpdateReturnServerData.Text = "数据拉回"; + this.btnUpdateReturnServerData.Visible = false; this.btnUpdateReturnServerData.Click += new System.EventHandler(this.updateReturnServerData_Click); // // btnReturnSecretData @@ -262,6 +299,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.btnReturnSecretData.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); this.btnReturnSecretData.TabIndex = 909; this.btnReturnSecretData.Text = "加密数据回传"; + this.btnReturnSecretData.Visible = false; this.btnReturnSecretData.Click += new System.EventHandler(this.btnReturnSecretData_Click); // // btnStopStop @@ -373,7 +411,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms "安全商品", "违规商品", "未校验"}); - this.cmbSetWxSafe.Location = new System.Drawing.Point(865, 57); + this.cmbSetWxSafe.Location = new System.Drawing.Point(865, 41); this.cmbSetWxSafe.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbSetWxSafe.Name = "cmbSetWxSafe"; this.cmbSetWxSafe.Size = new System.Drawing.Size(85, 25); @@ -386,7 +424,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.btnSetWxSafe.Cursor = System.Windows.Forms.Cursors.Hand; this.btnSetWxSafe.DisabledBackColor = System.Drawing.Color.Empty; this.btnSetWxSafe.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSetWxSafe.Location = new System.Drawing.Point(952, 57); + this.btnSetWxSafe.Location = new System.Drawing.Point(952, 41); this.btnSetWxSafe.Name = "btnSetWxSafe"; this.btnSetWxSafe.Size = new System.Drawing.Size(84, 25); this.btnSetWxSafe.Style.Alignment = System.Drawing.StringAlignment.Center; @@ -411,7 +449,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.btnImport.Cursor = System.Windows.Forms.Cursors.Hand; this.btnImport.DisabledBackColor = System.Drawing.Color.Empty; this.btnImport.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnImport.Location = new System.Drawing.Point(1058, 57); + this.btnImport.Location = new System.Drawing.Point(1058, 41); this.btnImport.Name = "btnImport"; this.btnImport.Size = new System.Drawing.Size(84, 25); this.btnImport.Style.Alignment = System.Drawing.StringAlignment.Center; @@ -1042,7 +1080,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.btnDelSelect.Cursor = System.Windows.Forms.Cursors.Hand; this.btnDelSelect.DisabledBackColor = System.Drawing.Color.Empty; this.btnDelSelect.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnDelSelect.Location = new System.Drawing.Point(1058, 23); + this.btnDelSelect.Location = new System.Drawing.Point(1058, 7); this.btnDelSelect.Name = "btnDelSelect"; this.btnDelSelect.Size = new System.Drawing.Size(84, 25); this.btnDelSelect.Style.Alignment = System.Drawing.StringAlignment.Center; @@ -1064,7 +1102,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms // this.cmbGroup.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.cmbGroup.FormattingEnabled = true; - this.cmbGroup.Location = new System.Drawing.Point(865, 23); + this.cmbGroup.Location = new System.Drawing.Point(865, 7); this.cmbGroup.Name = "cmbGroup"; this.cmbGroup.Size = new System.Drawing.Size(85, 25); this.cmbGroup.TabIndex = 640; @@ -1076,7 +1114,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.btnSetGroup.Cursor = System.Windows.Forms.Cursors.Hand; this.btnSetGroup.DisabledBackColor = System.Drawing.Color.Empty; this.btnSetGroup.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSetGroup.Location = new System.Drawing.Point(952, 23); + this.btnSetGroup.Location = new System.Drawing.Point(952, 7); this.btnSetGroup.Name = "btnSetGroup"; this.btnSetGroup.Size = new System.Drawing.Size(84, 25); this.btnSetGroup.Style.Alignment = System.Drawing.StringAlignment.Center; @@ -1851,5 +1889,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms private System.Windows.Forms.ComboBox cmbHasReturn; private System.Windows.Forms.Label label18; private DevComponents.DotNetBar.PanelEx btnUpdateReturnServerData; + private UserComponent.UcCheckBox ucCheckBox1; + private System.Windows.Forms.DateTimePicker dtpEnd; + private System.Windows.Forms.DateTimePicker dtpStart; } } \ No newline at end of file diff --git a/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdListForm.cs b/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdListForm.cs index 295cfe6..121e7cf 100644 --- a/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdListForm.cs +++ b/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdListForm.cs @@ -1,5 +1,6 @@ using AllBase; using AllBase.Helper; +using AllBase.Model.Param; using AllBase.Model.Result; using AllBase.Model.Result.PDDResult; using AllBase.Model.Result.WXResult; @@ -96,6 +97,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms if (BaseClass.MainPath != "binxixi") { //this.dgvDbProduct.Columns["col_edit"].Visible = false; + this.dgvDbProduct.Columns["colExtCodePrice"].Visible = false; + this.dgvDbProduct.Columns["colEdit"].Visible = false; } btnSelect.Visible = false; @@ -116,6 +119,9 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.dgvDbProduct.AddMergeColumnHeader(new List() { "colExtCodePrice", "colEdit" }, "货号价格"); this.dgvDbProduct.AddMergeColumn(new List() { "colExtCodePrice", "colEdit" }); + + this.dtpStart.Value = new DateTime(2026, 3, 6, 16, 0, 0); + this.dtpEnd.Value = new DateTime(2026, 3, 7, 18, 0, 0); } private void btnSearch_Click(object sender, EventArgs e) @@ -323,6 +329,12 @@ namespace TemuKJD.PDDForms.ProductSelectForms "&wx_safe_status=" + cmbWxSafe.Text.Trim().Replace("安全+未校验", "安全商品,未校验") + "&special_prod_type=" + cmbSpProdType.Text.Trim(); + if (ucCheckBox1.Checked) + { + data += "&start_time=" + dtpStart.Value.ToString("yyyy-MM-dd HH:mm:ss"); + data += "&end_time=" + dtpEnd.Value.ToString("yyyy-MM-dd HH:mm:ss"); + } + if (cmbSourceType.Text != "厂商直采") { data += "&search_cat1=" + cmbCat1.Text.Trim(); @@ -1558,11 +1570,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms { } //Thread.Sleep(500); - - // 查询微信接口token - //url = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/shop/list?userName=阿杰账户"; - //exportRst = WXHttpResponseBLL.e57PostResponse(url, "&warehouseNum=123456&shopId=46568955", ""); - //exportRst = WXHttpResponseBLL.e57GetResponse(url, ""); } } @@ -1607,26 +1614,37 @@ namespace TemuKJD.PDDForms.ProductSelectForms dbProdTmpLst.AddRange(dbProdLst); while (dbProdTmpLst.Count > 0) { + if (cancellationTokenSource.IsCancellationRequested) + break; + var takeCount = 20; List dbProdTmp20Lst = dbProdTmpLst.Take(takeCount).ToList(); dbProdTmpLst.RemoveRange(0, dbProdTmp20Lst.Count); - if (cancellationTokenSource.IsCancellationRequested) - break; - Invoke(new Action(() => { this.statusBar.UpdateProgressBar(this.statusBar.pgbTaskProgress.Value + dbProdTmp20Lst.Count); this.statusBar.lblTaskStatus.Text = "正在拉回 " + this.statusBar.pgbTaskProgress.Value + "/" + dbProdLst.Count; })); + // 旧的批量拉取 var spuCodes = string.Join("\",\"", dbProdTmp20Lst.Select(p => p.ext_code)); var spu_id = string.Join("\",\"", dbProdTmp20Lst.Select(p => p.spu_id)); // 原批量拉取,已废弃 "https://po.e57.cn/prod-api/api/sys-api/system/open/api/goods/list/get?page_size=10"; // 按spuCode(ext_code)拉取 string url = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/goods/list/get?" + Randomx.GetId(100, 999); string body = "{\"spuCodes\":[\"" + spuCodes + "\"]}"; - //string body = "{\"warehouseGoodsIds\":[\"" + spu_id + "\"]}"; + + // 使用新的批量拉取 + body = "{\"goodsApiNewItems\":["; + url = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/goods/list/getNew"; + foreach (var dbProd in dbProdTmp20Lst) + { + body += "{\"warehouseGoodsId\":\"" + dbProd.spu_id + "\",\"spuCode\":\"" + dbProd.ext_code + "\"},"; + } + body = body.TrimEnd(','); + body += "]}"; + var getRst = WXHttpResponseBLL.e57PostResponse(url, body, ""); Thread.Sleep(500); if (getRst.Contains("\"code\":0")) @@ -1676,71 +1694,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms } } - - - - //foreach (var prod in dbProdLst) - //{ - - // spuCodes - // if (dbProd.sku_secret_json.IsNullOrEmpty() || dbProd.sku_secret_json.Length < 10) - // { - - // } - //} - - - //var dbProd = prod; - - // // 导出成功,拉回然后提交导本地服务端标记导出成功 - // if (dbProd.sku_secret_json.IsNullOrEmpty() || dbProd.sku_secret_json.Length < 10) - // { - // // 原批量拉取,已废弃 "https://po.e57.cn/prod-api/api/sys-api/system/open/api/goods/list/get?page_size=10"; - // // 按spuCode(ext_code)拉取 - // string url = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/goods/list/get"; - // string body = "{\"spuCodes\":[\"" + dbProd.ext_code + "\"]}"; - // var getRst = WXHttpResponseBLL.e57PostResponse(url, body, ""); - // Thread.Sleep(500); - // string skuSecretJson = JsonHelper.SerializeObject(JsonHelper.JObjectParse(getRst)["data"]); - // if (getRst.Contains("\"code\":0")) - // { - // try - // { - // var url2 = BaseClass.BuildPDDObjString("product/mdy_product"); - // string skuSecretJson = JsonHelper.SerializeObject(JsonHelper.JObjectParse(getRst)["data"]); - // if (skuSecretJson.Contains("warehouseGoodsId") && skuSecretJson.Contains("goodsId") && - // skuSecretJson.Contains("warehouseSkuId") && skuSecretJson.Contains("skuId")) - // { - // var data = Work.UserLogin.GetSignaturex() + - // "&spu_id=" + dbProd.spu_id + - // "&send_to_out_server=" + 1 + - // "&sku_secret_json=" + GetHtml.UrlEncodeUtf8(skuSecretJson); - // var html = GetHtml.PostUtf8(url2, data); - // if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200")) - // html = GetHtml.PostUtf8(url2, data); - // if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200")) - // { - - // } - // else - // { - // prod.send_to_out_server = 1; - // } - // } - // else - // { - // } - // } - // catch - // { - // } - // } - // else - // { - // } - // } - //Thread.Sleep(500); - // 获取售后地址 //https://po.e57.cn/prod-api/api/sys-api/system/open/api/afterSale/info?warehouseNum=10361546&shopId=46568955 //var url2 = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/afterSale/info?warehouseNum=" + dbProd.skc_id; //+ "&userName=阿杰账户"; @@ -1751,6 +1704,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms //var url3 = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/freightTemplate/list?warehouseNum=" + dbProd.skc_id; //var exportRst3 = WXHttpResponseBLL.e57GetResponse(url3, ""); + // 获取微信店铺接口token列表 //url = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/shop/list?userName=阿杰账户"; //exportRst = WXHttpResponseBLL.e57PostResponse(url, "&warehouseNum=123456&shopId=46568955", ""); //exportRst = WXHttpResponseBLL.e57GetResponse(url, ""); @@ -1967,60 +1921,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms } } Thread.Sleep(100); - - //// 导出成功,回写数据 - //if (exportRst.Contains("\"code\":200")) - //{ - // if (chkPullAfterPush.Checked) - // { - // url = "https://po.e57.cn/prod-api/api/oms-api/updateGoodsId"; - // string body = dbProd.sku_secret_json.TrimStart('[').TrimEnd(']'); - // var getRst = WXHttpResponseBLL.e57PostResponse(url, body, ""); - // if (getRst.Contains("\"code\":0") || getRst.Contains("200")) - // { - // try - // { - // { - // //url = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/goods/list/get"; - // //string bodyx = "{\"spuCodes\":[\"" + dbProd.ext_code + "\"]}"; - // //string bodyx = "{\"warehouseGoodsIds\":[\"" + dbProd.spu_id + "\"]}"; - // //var getRstx = WXHttpResponseBLL.e57PostResponse(url, bodyx, ""); - // } - - // var url3 = BaseClass.BuildPDDObjString("product/mdy_product"); - // var data3 = Work.UserLogin.GetSignaturex() + - // "&spu_id=" + dbProd.spu_id + - // "&standby3=" + 1; - // var html = GetHtml.PostUtf8(url3, data3); - // if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200")) - // html = GetHtml.PostUtf8(url3, data3); - // if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200")) - // { - // } - // else - // { - // prod.standby3 = "1"; - // dbProd.standby3 = "1"; - // } - // } - // catch - // { - // } - // } - // else - // { - // } - // } - //} - //else - //{ - //} - Thread.Sleep(100); - - // 查询微信接口token - //url = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/shop/list?userName=阿杰账户"; - //exportRst = WXHttpResponseBLL.e57PostResponse(url, "&warehouseNum=123456&shopId=46568955", ""); - //exportRst = WXHttpResponseBLL.e57GetResponse(url, ""); } } @@ -2072,6 +1972,11 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.statusBar.lblTaskStatus.Text = "正在拉回回传 " + this.statusBar.pgbTaskProgress.Value + "/" + dbProdLst.Count + " 成功:" + dbProdLst.Where(p => p.standby3 == "1").Count(); })); var dbProd = PDDDBProdEditForm.GetPddProductDetail(prod.id.ParseToString()); + var rst = new WxProdFormConverter().JstPddConvertToWxOutServer(dbProd); + if (!rst.Contains("\"success\":true")) + { + continue; + } // 如果加密数据为空数据就跳过 if (string.IsNullOrEmpty(dbProd?.sku_secret_json) && dbProd.sku_secret_json.Length > 10) @@ -2084,7 +1989,16 @@ namespace TemuKJD.PDDForms.ProductSelectForms //continue; } - var rst = new WxProdFormConverter().JstPddConvertToWxOutServer(dbProd); + var outServerGoodsParamStr = new WxProdFormConverter().JstPddConvertToWxOutServer(dbProd); + OutServerGoodsParam outServerGoodsParam = null; + try + { + outServerGoodsParam = JsonHelper.DeserializeJsonToObject(JsonHelper.JObjectParse(outServerGoodsParamStr)["data"].ParseToString()); + } + catch + { + continue; + } if (!rst.Contains("\"success\":true")) { continue; @@ -2118,10 +2032,13 @@ namespace TemuKJD.PDDForms.ProductSelectForms try { { - url = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/goods/list/get"; - string bodyx = "{\"spuCodes\":[\"" + dbProd.ext_code + "\"]}"; - //string bodyx = "{\"warehouseGoodsIds\":[\"" + dbProd.spu_id + "\"]}"; - var getRstx = WXHttpResponseBLL.e57PostResponse(url, bodyx, ""); + //url = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/goods/list/get"; + //string dataX = "{\"spuCodes\":[\"" + dbProd.ext_code + "\"]}"; + //string dataX = "{\"warehouseGoodsIds\":[\"" + dbProd.spu_id + "\"]}"; + + url = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/goods/list/getNew"; + string dataX = "{\"goodsApiNewItems\":[{\"warehouseGoodsId\":\"" + dbProd.spu_id + "\",\"spuCode\":\"" + dbProd.ext_code + "\"}]}"; + var getRstx = WXHttpResponseBLL.e57PostResponse(url, dataX, ""); if (!getRstx.Contains("\"code\":0")) continue; @@ -2142,16 +2059,48 @@ namespace TemuKJD.PDDForms.ProductSelectForms if (bodyObj["warehouseGoodsId"].ParseToString() != bodyRstObj["warehouseGoodsId"].ParseToString() && bodyObj["spuCode"].ParseToString() != bodyRstObj["spuCode"].ParseToString()) success = false; - if (bodyObj["skus"].Any(b => !bodyRstObj["skus"].Any(br => br.ParseToString() == b.ParseToString()))) + + // 从商品采集数据里获取warehouseSkuId不为空的商品,作为比对数据 + //var warehouseSkuIdTmpList = outServerGoodsParam.skus.Select(s => s.warehouseSkuId).ToList(); + var warehouseSkuIdList = outServerGoodsParam.skus.Select(s => s.warehouseSkuId).Where(s => !s.IsNullOrEmpty()).Distinct().ToList(); + var realSkus = bodyObj["skus"].Where(b => outServerGoodsParam.skus.Any(s => s.warehouseSkuId == b["warehouseSkuId"].ParseToString())); + + var realSkuLst = realSkus.ToList(); + if (realSkuLst.Any(rs => !warehouseSkuIdList.Any(s => s == rs["warehouseSkuId"].ParseToString()))) // 如果sku有对应不上的也要跳过 success = false; + var bodyRstLst = bodyRstObj["skus"].ToList(); + var missCount = realSkuLst.Where(b => !bodyRstLst.Any(br => br.ParseToString() == b.ParseToString())).Count(); + if (missCount > 0) + success = false; + + //var missCount = bodyObj["skus"].Where(b => !bodyRstObj["skus"].Any(br => br.ParseToString() == b.ParseToString())).Count(); + //var skuCount = bodyObj["skus"].Count(); + //if (missCount > 0) + //{ + // success = false; + + // if ((missCount == 1 || missCount == 2) && skuCount - missCount > 3 && !bodyRstObj["skus"].Any(br => br["skuId"].ParseToString().StartsWith("2030"))) + // { + // var urlFail = BaseClass.BuildPDDObjString("product/mdy_product"); + // var dataFail = Work.UserLogin.GetSignaturex() + + // "&spu_id=" + dbProd.spu_id + + // "&standby3=" + 3; + // var htmlFail = GetHtml.PostUtf8(urlFail, dataFail); + + // prod.standby3 = "1"; + // dbProd.standby3 = "1"; + // continue; + // } + //} + if (!success) { - continue; + //continue; var urlFail = BaseClass.BuildPDDObjString("product/mdy_product"); var dataFail = Work.UserLogin.GetSignaturex() + "&spu_id=" + dbProd.spu_id + - "&standby3=" + 3; + "&standby3=" + 5; var htmlFail = GetHtml.PostUtf8(urlFail, dataFail); continue; } @@ -2160,8 +2109,12 @@ namespace TemuKJD.PDDForms.ProductSelectForms var url3 = BaseClass.BuildPDDObjString("product/mdy_product"); var data3 = Work.UserLogin.GetSignaturex() + - "&spu_id=" + dbProd.spu_id + - "&standby3=" + 1; + "&spu_id=" + dbProd.spu_id; + //if (dbProd.standby3 == "5" || dbProd.standby3 == "6") + // data3 += "&standby3=" + 6; + //else + // data3 += "&standby3=" + 1; + data3 += "&standby3=" + 6; var html = GetHtml.PostUtf8(url3, data3); if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200")) html = GetHtml.PostUtf8(url3, data3); @@ -2186,11 +2139,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms { } Thread.Sleep(100); - - // 查询微信接口token - //url = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/shop/list?userName=阿杰账户"; - //exportRst = WXHttpResponseBLL.e57PostResponse(url, "&warehouseNum=123456&shopId=46568955", ""); - //exportRst = WXHttpResponseBLL.e57GetResponse(url, ""); } } } diff --git a/TEMUKJD/ToolForms/GetJuShuitanProdForm.Designer.cs b/TEMUKJD/ToolForms/GetJuShuitanProdForm.Designer.cs index a1ecf5d..d2a6132 100644 --- a/TEMUKJD/ToolForms/GetJuShuitanProdForm.Designer.cs +++ b/TEMUKJD/ToolForms/GetJuShuitanProdForm.Designer.cs @@ -98,6 +98,7 @@ namespace TemuKJD.ToolForms this.cmbMultiCookieName = new DevComponents.DotNetBar.Controls.ComboBoxEx(); this.btnMultiLogin = new DevComponents.DotNetBar.PanelEx(); this.btnDel = new DevComponents.DotNetBar.PanelEx(); + this.btnExportCookie = new DevComponents.DotNetBar.PanelEx(); this.label7 = new System.Windows.Forms.Label(); this.txtWaitSeconds = new System.Windows.Forms.TextBox(); this.label8 = new System.Windows.Forms.Label(); @@ -119,7 +120,6 @@ namespace TemuKJD.ToolForms this.txtPageStart = new System.Windows.Forms.TextBox(); this.label3 = new System.Windows.Forms.Label(); this.btnCollectSupplier = new DevComponents.DotNetBar.PanelEx(); - this.line1 = new DevComponents.DotNetBar.Controls.Line(); this.txtSupplierName = new System.Windows.Forms.TextBox(); this.txtFilterSaleCount = new System.Windows.Forms.TextBox(); this.btnRefreshCookie = new DevComponents.DotNetBar.PanelEx(); @@ -127,7 +127,7 @@ namespace TemuKJD.ToolForms this.btnSaveCookie = new DevComponents.DotNetBar.PanelEx(); this.btnImportCookie = new DevComponents.DotNetBar.PanelEx(); this.label2 = new System.Windows.Forms.Label(); - this.btnExportCookie = new DevComponents.DotNetBar.PanelEx(); + this.line1 = new DevComponents.DotNetBar.Controls.Line(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); this.splitContainer2.Panel1.SuspendLayout(); this.splitContainer2.SuspendLayout(); @@ -164,7 +164,7 @@ namespace TemuKJD.ToolForms this.splitContainer2.Panel1.Controls.Add(this.btnNext); this.splitContainer2.Panel1.Controls.Add(this.btnPrev); this.splitContainer2.Panel1.Controls.Add(this.txtAddress); - this.splitContainer2.Size = new System.Drawing.Size(1390, 435); + this.splitContainer2.Size = new System.Drawing.Size(1390, 437); this.splitContainer2.SplitterDistance = 26; this.splitContainer2.TabIndex = 6; // @@ -203,7 +203,7 @@ namespace TemuKJD.ToolForms // this.pbLoading.Anchor = System.Windows.Forms.AnchorStyles.None; this.pbLoading.Image = global::TemuKJD.Properties.Resources.loading_blue; - this.pbLoading.Location = new System.Drawing.Point(673, 194); + this.pbLoading.Location = new System.Drawing.Point(673, 195); this.pbLoading.Name = "pbLoading"; this.pbLoading.Size = new System.Drawing.Size(50, 50); this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; @@ -249,7 +249,7 @@ namespace TemuKJD.ToolForms this.dgvProduct.Name = "dgvProduct"; this.dgvProduct.ReadOnly = true; this.dgvProduct.RowTemplate.Height = 23; - this.dgvProduct.Size = new System.Drawing.Size(1390, 434); + this.dgvProduct.Size = new System.Drawing.Size(1390, 436); this.dgvProduct.TabIndex = 7; this.dgvProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvProduct_CellContentClick); // @@ -406,7 +406,7 @@ namespace TemuKJD.ToolForms this.splitContainer1.Panel2.Controls.Add(this.label2); this.splitContainer1.Panel2.Controls.Add(this.line1); this.splitContainer1.Size = new System.Drawing.Size(1404, 561); - this.splitContainer1.SplitterDistance = 471; + this.splitContainer1.SplitterDistance = 473; this.splitContainer1.SplitterWidth = 3; this.splitContainer1.TabIndex = 4; // @@ -422,7 +422,7 @@ namespace TemuKJD.ToolForms this.ucTabControlMetro1.Name = "ucTabControlMetro1"; this.ucTabControlMetro1.SelectedIndex = 0; this.ucTabControlMetro1.ShowCloseButton = false; - this.ucTabControlMetro1.Size = new System.Drawing.Size(1404, 471); + this.ucTabControlMetro1.Size = new System.Drawing.Size(1404, 473); this.ucTabControlMetro1.TabIndex = 462; this.ucTabControlMetro1.TabSelectColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.ucTabControlMetro1.TabSelectTextColor = System.Drawing.Color.Gray; @@ -434,7 +434,7 @@ namespace TemuKJD.ToolForms this.tabPage1.Location = new System.Drawing.Point(4, 26); this.tabPage1.Name = "tabPage1"; this.tabPage1.Padding = new System.Windows.Forms.Padding(3); - this.tabPage1.Size = new System.Drawing.Size(1396, 441); + this.tabPage1.Size = new System.Drawing.Size(1396, 443); this.tabPage1.TabIndex = 0; this.tabPage1.Text = "商品页面"; this.tabPage1.UseVisualStyleBackColor = true; @@ -446,7 +446,7 @@ namespace TemuKJD.ToolForms this.tabPage2.Location = new System.Drawing.Point(4, 26); this.tabPage2.Name = "tabPage2"; this.tabPage2.Padding = new System.Windows.Forms.Padding(3); - this.tabPage2.Size = new System.Drawing.Size(1396, 440); + this.tabPage2.Size = new System.Drawing.Size(1396, 442); this.tabPage2.TabIndex = 1; this.tabPage2.Text = "采集列表"; this.tabPage2.UseVisualStyleBackColor = true; @@ -456,7 +456,7 @@ namespace TemuKJD.ToolForms this.tabPage3.Controls.Add(this.splitContainer3); this.tabPage3.Location = new System.Drawing.Point(4, 26); this.tabPage3.Name = "tabPage3"; - this.tabPage3.Size = new System.Drawing.Size(1396, 440); + this.tabPage3.Size = new System.Drawing.Size(1396, 443); this.tabPage3.TabIndex = 2; this.tabPage3.Text = "下架SKU查询"; this.tabPage3.UseVisualStyleBackColor = true; @@ -488,7 +488,7 @@ namespace TemuKJD.ToolForms // this.splitContainer3.Panel2.Controls.Add(this.pictureBox1); this.splitContainer3.Panel2.Controls.Add(this.dgvDownSku); - this.splitContainer3.Size = new System.Drawing.Size(1396, 440); + this.splitContainer3.Size = new System.Drawing.Size(1396, 443); this.splitContainer3.SplitterDistance = 82; this.splitContainer3.TabIndex = 0; // @@ -646,7 +646,7 @@ namespace TemuKJD.ToolForms // this.pictureBox1.Anchor = System.Windows.Forms.AnchorStyles.None; this.pictureBox1.Image = global::TemuKJD.Properties.Resources.loading_blue; - this.pictureBox1.Location = new System.Drawing.Point(673, 152); + this.pictureBox1.Location = new System.Drawing.Point(673, 153); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(50, 50); this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; @@ -694,7 +694,7 @@ namespace TemuKJD.ToolForms this.dgvDownSku.Name = "dgvDownSku"; this.dgvDownSku.ReadOnly = true; this.dgvDownSku.RowTemplate.Height = 23; - this.dgvDownSku.Size = new System.Drawing.Size(1396, 354); + this.dgvDownSku.Size = new System.Drawing.Size(1396, 357); this.dgvDownSku.TabIndex = 8; // // colDownSelect @@ -885,6 +885,31 @@ namespace TemuKJD.ToolForms this.btnDel.TabIndex = 409; this.btnDel.Text = "删"; // + // btnExportCookie + // + this.btnExportCookie.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnExportCookie.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnExportCookie.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnExportCookie.DisabledBackColor = System.Drawing.Color.Empty; + this.btnExportCookie.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnExportCookie.Location = new System.Drawing.Point(227, 57); + this.btnExportCookie.Name = "btnExportCookie"; + this.btnExportCookie.Size = new System.Drawing.Size(72, 25); + this.btnExportCookie.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnExportCookie.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnExportCookie.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnExportCookie.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnExportCookie.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnExportCookie.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnExportCookie.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnExportCookie.Style.GradientAngle = 90; + this.btnExportCookie.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnExportCookie.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnExportCookie.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnExportCookie.TabIndex = 1063; + this.btnExportCookie.Text = "导出cookie"; + this.btnExportCookie.Click += new System.EventHandler(this.btnExportCookie_Click); + // // label7 // this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); @@ -1219,17 +1244,6 @@ namespace TemuKJD.ToolForms this.btnCollectSupplier.Text = "采集供应商"; this.btnCollectSupplier.Click += new System.EventHandler(this.btnCollectSupplier_Click); // - // line1 - // - this.line1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.line1.ForeColor = System.Drawing.SystemColors.AppWorkspace; - this.line1.Location = new System.Drawing.Point(298, 7); - this.line1.Name = "line1"; - this.line1.Size = new System.Drawing.Size(20, 74); - this.line1.TabIndex = 790; - this.line1.Text = "line1"; - this.line1.VerticalLine = true; - // // txtSupplierName // this.txtSupplierName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); @@ -1346,30 +1360,16 @@ namespace TemuKJD.ToolForms this.label2.TabIndex = 789; this.label2.Text = "供应商"; // - // btnExportCookie + // line1 // - this.btnExportCookie.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnExportCookie.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnExportCookie.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnExportCookie.DisabledBackColor = System.Drawing.Color.Empty; - this.btnExportCookie.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnExportCookie.Location = new System.Drawing.Point(227, 57); - this.btnExportCookie.Name = "btnExportCookie"; - this.btnExportCookie.Size = new System.Drawing.Size(72, 25); - this.btnExportCookie.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnExportCookie.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnExportCookie.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnExportCookie.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnExportCookie.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnExportCookie.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnExportCookie.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnExportCookie.Style.GradientAngle = 90; - this.btnExportCookie.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnExportCookie.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnExportCookie.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnExportCookie.TabIndex = 1063; - this.btnExportCookie.Text = "导出cookie"; - this.btnExportCookie.Click += new System.EventHandler(this.btnExportCookie_Click); + this.line1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.line1.ForeColor = System.Drawing.SystemColors.AppWorkspace; + this.line1.Location = new System.Drawing.Point(298, 7); + this.line1.Name = "line1"; + this.line1.Size = new System.Drawing.Size(20, 74); + this.line1.TabIndex = 790; + this.line1.Text = "line1"; + this.line1.VerticalLine = true; // // GetJuShuitanProdForm // diff --git a/TEMUKJD/ToolForms/GetJuShuitanProductSKUListForm.Designer.cs b/TEMUKJD/ToolForms/GetJuShuitanProductSKUListForm.Designer.cs new file mode 100644 index 0000000..2867c0f --- /dev/null +++ b/TEMUKJD/ToolForms/GetJuShuitanProductSKUListForm.Designer.cs @@ -0,0 +1,1346 @@ + +namespace TemuKJD.ToolForms +{ + partial class GetJuShuitanProductSKUListForm + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); + this.line1 = new DevComponents.DotNetBar.Controls.Line(); + this.label2 = new System.Windows.Forms.Label(); + this.btnImportCookie = new DevComponents.DotNetBar.PanelEx(); + this.btnSaveCookie = new DevComponents.DotNetBar.PanelEx(); + this.txtCookie = new System.Windows.Forms.TextBox(); + this.btnRefreshCookie = new DevComponents.DotNetBar.PanelEx(); + this.txtSupplierName = new System.Windows.Forms.TextBox(); + this.label3 = new System.Windows.Forms.Label(); + this.txtPageStart = new System.Windows.Forms.TextBox(); + this.txtPageEnd = new System.Windows.Forms.TextBox(); + this.label4 = new System.Windows.Forms.Label(); + this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); + this.btnSaveDb = new DevComponents.DotNetBar.PanelEx(); + this.btnStopStop = new DevComponents.DotNetBar.PanelEx(); + this.chkOverride = new TemuKJD.UserComponent.UcCheckBox(this.components); + this.btnSearchTitle = new DevComponents.DotNetBar.PanelEx(); + this.txtTitle = new System.Windows.Forms.TextBox(); + this.btnCancelSelect = new DevComponents.DotNetBar.PanelEx(); + this.btnGetGoodsSku = new DevComponents.DotNetBar.PanelEx(); + this.label8 = new System.Windows.Forms.Label(); + this.txtWaitSeconds = new System.Windows.Forms.TextBox(); + this.label7 = new System.Windows.Forms.Label(); + this.btnExportCookie = new DevComponents.DotNetBar.PanelEx(); + this.pnlMultiLogin = new System.Windows.Forms.Panel(); + this.cmbMultiCookieName = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.btnMultiLogin = new DevComponents.DotNetBar.PanelEx(); + this.btnDel = new DevComponents.DotNetBar.PanelEx(); + this.splitContainer1 = new System.Windows.Forms.SplitContainer(); + this.ucTabControlMetro1 = new PinBaoBao.UserControls.UcTabControlMetro(); + this.tabPage1 = new System.Windows.Forms.TabPage(); + this.splitContainer2 = new System.Windows.Forms.SplitContainer(); + this.btnNext = new System.Windows.Forms.Button(); + this.btnPrev = new System.Windows.Forms.Button(); + this.txtAddress = new System.Windows.Forms.TextBox(); + this.tabPage2 = new System.Windows.Forms.TabPage(); + this.pbLoading = new System.Windows.Forms.PictureBox(); + this.dgvProduct = new TemuKJD.UserComponent.DataGridViewEx(); + this.tabPage3 = new System.Windows.Forms.TabPage(); + this.splitContainer3 = new System.Windows.Forms.SplitContainer(); + this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage(); + this.btnStop = new DevComponents.DotNetBar.PanelEx(); + this.label6 = new System.Windows.Forms.Label(); + this.txtBeforeDay = new System.Windows.Forms.TextBox(); + this.chkSkipDownSearch = new TemuKJD.UserComponent.UcCheckBox(this.components); + this.label5 = new System.Windows.Forms.Label(); + this.txtBeforeHour = new System.Windows.Forms.TextBox(); + this.statusBarUserControl1 = new TemuKJD.UserControls.StatusBarUserControl(); + this.dtpEndTime = new System.Windows.Forms.DateTimePicker(); + this.dtpStartTime = new System.Windows.Forms.DateTimePicker(); + this.btnReturnSku = new DevComponents.DotNetBar.PanelEx(); + this.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.dgvDownSku = new TemuKJD.UserComponent.DataGridViewEx(); + this.colDownSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.colDownSpuId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDownStyleCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDownImgUrl = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDownImg = new System.Windows.Forms.DataGridViewImageColumn(); + this.colDownItemName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.skuDownItemCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDownColourSpec = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDownSupplierName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDownSupplyPrice = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDownShelvesTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDownLastOperator = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDownDrpItemStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewLinkColumn1 = new System.Windows.Forms.DataGridViewLinkColumn(); + this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.colCoId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colSupplierName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colProductId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colGoodsName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colImgUrl = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colImg = new System.Windows.Forms.DataGridViewImageColumn(); + this.colSkuId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colSkuName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colPrice = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colStock = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDel = new System.Windows.Forms.DataGridViewLinkColumn(); + this.colMsg = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pnlMultiLogin.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); + this.splitContainer1.Panel1.SuspendLayout(); + this.splitContainer1.Panel2.SuspendLayout(); + this.splitContainer1.SuspendLayout(); + this.ucTabControlMetro1.SuspendLayout(); + this.tabPage1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); + this.splitContainer2.Panel1.SuspendLayout(); + this.splitContainer2.SuspendLayout(); + this.tabPage2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pbLoading)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dgvProduct)).BeginInit(); + this.tabPage3.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).BeginInit(); + this.splitContainer3.Panel1.SuspendLayout(); + this.splitContainer3.Panel2.SuspendLayout(); + this.splitContainer3.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dgvDownSku)).BeginInit(); + this.SuspendLayout(); + // + // line1 + // + this.line1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.line1.ForeColor = System.Drawing.SystemColors.AppWorkspace; + this.line1.Location = new System.Drawing.Point(298, 7); + this.line1.Name = "line1"; + this.line1.Size = new System.Drawing.Size(20, 74); + this.line1.TabIndex = 790; + this.line1.Text = "line1"; + this.line1.VerticalLine = true; + // + // label2 + // + this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(748, 8); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(44, 17); + this.label2.TabIndex = 789; + this.label2.Text = "供应商"; + // + // btnImportCookie + // + this.btnImportCookie.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnImportCookie.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnImportCookie.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnImportCookie.DisabledBackColor = System.Drawing.Color.Empty; + this.btnImportCookie.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnImportCookie.Location = new System.Drawing.Point(153, 3); + this.btnImportCookie.Name = "btnImportCookie"; + this.btnImportCookie.Size = new System.Drawing.Size(146, 25); + this.btnImportCookie.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnImportCookie.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnImportCookie.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnImportCookie.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnImportCookie.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnImportCookie.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnImportCookie.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnImportCookie.Style.GradientAngle = 90; + this.btnImportCookie.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnImportCookie.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnImportCookie.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnImportCookie.TabIndex = 761; + this.btnImportCookie.Text = "导入cookie并刷新"; + this.btnImportCookie.Click += new System.EventHandler(this.btnImportCookie_Click); + // + // btnSaveCookie + // + this.btnSaveCookie.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnSaveCookie.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnSaveCookie.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnSaveCookie.DisabledBackColor = System.Drawing.Color.Empty; + this.btnSaveCookie.Font = new System.Drawing.Font("微软雅黑", 8F); + this.btnSaveCookie.Location = new System.Drawing.Point(153, 30); + this.btnSaveCookie.Name = "btnSaveCookie"; + this.btnSaveCookie.Size = new System.Drawing.Size(146, 25); + this.btnSaveCookie.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnSaveCookie.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnSaveCookie.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnSaveCookie.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnSaveCookie.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnSaveCookie.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnSaveCookie.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnSaveCookie.Style.GradientAngle = 90; + this.btnSaveCookie.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnSaveCookie.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnSaveCookie.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnSaveCookie.TabIndex = 765; + this.btnSaveCookie.Text = "保存网页cookie到服务"; + this.btnSaveCookie.Click += new System.EventHandler(this.btnSaveCookie_Click); + // + // txtCookie + // + this.txtCookie.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.txtCookie.Location = new System.Drawing.Point(4, 4); + this.txtCookie.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.txtCookie.Multiline = true; + this.txtCookie.Name = "txtCookie"; + this.txtCookie.Size = new System.Drawing.Size(145, 78); + this.txtCookie.TabIndex = 766; + this.txtCookie.Text = "填写cookie后点击导入cookie并刷新"; + // + // btnRefreshCookie + // + this.btnRefreshCookie.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnRefreshCookie.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnRefreshCookie.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnRefreshCookie.DisabledBackColor = System.Drawing.Color.Empty; + this.btnRefreshCookie.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnRefreshCookie.Location = new System.Drawing.Point(153, 57); + this.btnRefreshCookie.Name = "btnRefreshCookie"; + this.btnRefreshCookie.Size = new System.Drawing.Size(72, 25); + this.btnRefreshCookie.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnRefreshCookie.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnRefreshCookie.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnRefreshCookie.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnRefreshCookie.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnRefreshCookie.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnRefreshCookie.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnRefreshCookie.Style.GradientAngle = 90; + this.btnRefreshCookie.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnRefreshCookie.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnRefreshCookie.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnRefreshCookie.TabIndex = 776; + this.btnRefreshCookie.Text = "刷新cookie"; + this.btnRefreshCookie.Click += new System.EventHandler(this.btnRefreshCookie_Click); + // + // txtSupplierName + // + this.txtSupplierName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.txtSupplierName.Location = new System.Drawing.Point(792, 5); + this.txtSupplierName.Name = "txtSupplierName"; + this.txtSupplierName.ReadOnly = true; + this.txtSupplierName.Size = new System.Drawing.Size(605, 23); + this.txtSupplierName.TabIndex = 788; + // + // label3 + // + this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(324, 8); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(44, 17); + this.label3.TabIndex = 807; + this.label3.Text = "起始页"; + // + // txtPageStart + // + this.txtPageStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.txtPageStart.Location = new System.Drawing.Point(368, 5); + this.txtPageStart.Name = "txtPageStart"; + this.txtPageStart.Size = new System.Drawing.Size(43, 23); + this.txtPageStart.TabIndex = 808; + this.txtPageStart.Text = "1"; + this.txtPageStart.TextChanged += new System.EventHandler(this.txtPageStart_TextChanged); + // + // txtPageEnd + // + this.txtPageEnd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.txtPageEnd.Location = new System.Drawing.Point(461, 5); + this.txtPageEnd.Name = "txtPageEnd"; + this.txtPageEnd.Size = new System.Drawing.Size(43, 23); + this.txtPageEnd.TabIndex = 809; + this.txtPageEnd.Text = "9999"; + this.txtPageEnd.TextChanged += new System.EventHandler(this.txtPageEnd_TextChanged); + // + // label4 + // + this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(417, 8); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(44, 17); + this.label4.TabIndex = 810; + this.label4.Text = "结束页"; + // + // statusBar + // + this.statusBar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.statusBar.BackColor = System.Drawing.Color.White; + this.statusBar.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.statusBar.Location = new System.Drawing.Point(315, 60); + this.statusBar.Margin = new System.Windows.Forms.Padding(0); + this.statusBar.Name = "statusBar"; + this.statusBar.Size = new System.Drawing.Size(689, 25); + this.statusBar.TabIndex = 823; + // + // btnSaveDb + // + this.btnSaveDb.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnSaveDb.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnSaveDb.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnSaveDb.DisabledBackColor = System.Drawing.Color.Empty; + this.btnSaveDb.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnSaveDb.Location = new System.Drawing.Point(1321, 58); + this.btnSaveDb.Name = "btnSaveDb"; + this.btnSaveDb.Size = new System.Drawing.Size(76, 23); + this.btnSaveDb.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnSaveDb.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnSaveDb.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnSaveDb.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnSaveDb.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnSaveDb.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnSaveDb.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnSaveDb.Style.GradientAngle = 90; + this.btnSaveDb.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnSaveDb.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnSaveDb.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnSaveDb.TabIndex = 831; + this.btnSaveDb.Text = "Sku入库"; + this.btnSaveDb.Click += new System.EventHandler(this.btnSaveDb_Click); + // + // btnStopStop + // + this.btnStopStop.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnStopStop.CanvasColor = System.Drawing.SystemColors.Control; + this.btnStopStop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnStopStop.DisabledBackColor = System.Drawing.Color.Empty; + this.btnStopStop.Location = new System.Drawing.Point(1165, 58); + this.btnStopStop.Name = "btnStopStop"; + this.btnStopStop.Size = new System.Drawing.Size(76, 23); + this.btnStopStop.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnStopStop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnStopStop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnStopStop.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.btnStopStop.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnStopStop.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.btnStopStop.Style.GradientAngle = 90; + this.btnStopStop.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; + this.btnStopStop.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnStopStop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnStopStop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnStopStop.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; + this.btnStopStop.TabIndex = 853; + this.btnStopStop.Text = "停止查询"; + this.btnStopStop.Click += new System.EventHandler(this.btnStopStop_Click); + // + // chkOverride + // + this.chkOverride.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.chkOverride.AutoSize = true; + this.chkOverride.Location = new System.Drawing.Point(1233, 33); + this.chkOverride.Name = "chkOverride"; + this.chkOverride.Size = new System.Drawing.Size(168, 21); + this.chkOverride.TabIndex = 920; + this.chkOverride.Text = "入库时覆盖库中已存在Sku"; + this.chkOverride.UseVisualStyleBackColor = true; + // + // btnSearchTitle + // + this.btnSearchTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnSearchTitle.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnSearchTitle.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnSearchTitle.DisabledBackColor = System.Drawing.Color.Empty; + this.btnSearchTitle.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnSearchTitle.Location = new System.Drawing.Point(523, 33); + this.btnSearchTitle.Name = "btnSearchTitle"; + this.btnSearchTitle.Size = new System.Drawing.Size(56, 23); + this.btnSearchTitle.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnSearchTitle.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnSearchTitle.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnSearchTitle.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnSearchTitle.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnSearchTitle.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnSearchTitle.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnSearchTitle.Style.GradientAngle = 90; + this.btnSearchTitle.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnSearchTitle.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnSearchTitle.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnSearchTitle.TabIndex = 967; + this.btnSearchTitle.Text = "搜索标题"; + this.btnSearchTitle.Click += new System.EventHandler(this.btnSearchTitle_Click); + // + // txtTitle + // + this.txtTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.txtTitle.Location = new System.Drawing.Point(319, 33); + this.txtTitle.Name = "txtTitle"; + this.txtTitle.Size = new System.Drawing.Size(202, 23); + this.txtTitle.TabIndex = 968; + // + // btnCancelSelect + // + this.btnCancelSelect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnCancelSelect.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnCancelSelect.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnCancelSelect.DisabledBackColor = System.Drawing.Color.Empty; + this.btnCancelSelect.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnCancelSelect.Location = new System.Drawing.Point(581, 33); + this.btnCancelSelect.Name = "btnCancelSelect"; + this.btnCancelSelect.Size = new System.Drawing.Size(115, 23); + this.btnCancelSelect.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnCancelSelect.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnCancelSelect.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnCancelSelect.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnCancelSelect.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnCancelSelect.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnCancelSelect.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnCancelSelect.Style.GradientAngle = 90; + this.btnCancelSelect.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnCancelSelect.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnCancelSelect.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnCancelSelect.TabIndex = 999; + this.btnCancelSelect.Text = "取消选中已入库"; + this.btnCancelSelect.Click += new System.EventHandler(this.btnCancelSelect_Click); + // + // btnGetGoodsSku + // + this.btnGetGoodsSku.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnGetGoodsSku.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnGetGoodsSku.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnGetGoodsSku.DisabledBackColor = System.Drawing.Color.Empty; + this.btnGetGoodsSku.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnGetGoodsSku.Location = new System.Drawing.Point(1243, 58); + this.btnGetGoodsSku.Name = "btnGetGoodsSku"; + this.btnGetGoodsSku.Size = new System.Drawing.Size(76, 23); + this.btnGetGoodsSku.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnGetGoodsSku.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnGetGoodsSku.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnGetGoodsSku.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnGetGoodsSku.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnGetGoodsSku.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnGetGoodsSku.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnGetGoodsSku.Style.GradientAngle = 90; + this.btnGetGoodsSku.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnGetGoodsSku.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnGetGoodsSku.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnGetGoodsSku.TabIndex = 798; + this.btnGetGoodsSku.Text = "采集Sku"; + this.btnGetGoodsSku.Click += new System.EventHandler(this.btnCollectSupplier_Click); + // + // label8 + // + this.label8.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(1203, 35); + this.label8.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(20, 17); + this.label8.TabIndex = 1029; + this.label8.Text = "秒"; + // + // txtWaitSeconds + // + this.txtWaitSeconds.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.txtWaitSeconds.Location = new System.Drawing.Point(1179, 32); + this.txtWaitSeconds.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2); + this.txtWaitSeconds.Name = "txtWaitSeconds"; + this.txtWaitSeconds.Size = new System.Drawing.Size(24, 23); + this.txtWaitSeconds.TabIndex = 1028; + this.txtWaitSeconds.Text = "1"; + this.txtWaitSeconds.TextChanged += new System.EventHandler(this.txtWaitSeconds_TextChanged); + // + // label7 + // + this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(1123, 35); + this.label7.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(56, 17); + this.label7.TabIndex = 1027; + this.label7.Text = "额外等待"; + // + // btnExportCookie + // + this.btnExportCookie.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnExportCookie.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnExportCookie.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnExportCookie.DisabledBackColor = System.Drawing.Color.Empty; + this.btnExportCookie.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnExportCookie.Location = new System.Drawing.Point(227, 57); + this.btnExportCookie.Name = "btnExportCookie"; + this.btnExportCookie.Size = new System.Drawing.Size(72, 25); + this.btnExportCookie.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnExportCookie.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnExportCookie.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnExportCookie.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnExportCookie.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnExportCookie.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnExportCookie.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnExportCookie.Style.GradientAngle = 90; + this.btnExportCookie.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnExportCookie.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnExportCookie.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnExportCookie.TabIndex = 1063; + this.btnExportCookie.Text = "导出cookie"; + this.btnExportCookie.Click += new System.EventHandler(this.btnExportCookie_Click); + // + // pnlMultiLogin + // + this.pnlMultiLogin.Controls.Add(this.cmbMultiCookieName); + this.pnlMultiLogin.Controls.Add(this.btnMultiLogin); + this.pnlMultiLogin.Controls.Add(this.btnDel); + this.pnlMultiLogin.Location = new System.Drawing.Point(5, 634); + this.pnlMultiLogin.Name = "pnlMultiLogin"; + this.pnlMultiLogin.Size = new System.Drawing.Size(251, 31); + this.pnlMultiLogin.TabIndex = 461; + this.pnlMultiLogin.Visible = false; + // + // cmbMultiCookieName + // + this.cmbMultiCookieName.DisplayMember = "Text"; + this.cmbMultiCookieName.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.cmbMultiCookieName.FormattingEnabled = true; + this.cmbMultiCookieName.ItemHeight = 18; + this.cmbMultiCookieName.Location = new System.Drawing.Point(3, 3); + this.cmbMultiCookieName.Name = "cmbMultiCookieName"; + this.cmbMultiCookieName.Size = new System.Drawing.Size(158, 24); + this.cmbMultiCookieName.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.cmbMultiCookieName.TabIndex = 379; + this.cmbMultiCookieName.Text = "cookie1"; + // + // btnMultiLogin + // + this.btnMultiLogin.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnMultiLogin.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnMultiLogin.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnMultiLogin.DisabledBackColor = System.Drawing.Color.Empty; + this.btnMultiLogin.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnMultiLogin.Location = new System.Drawing.Point(185, 3); + this.btnMultiLogin.Name = "btnMultiLogin"; + this.btnMultiLogin.Size = new System.Drawing.Size(60, 24); + this.btnMultiLogin.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnMultiLogin.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnMultiLogin.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnMultiLogin.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnMultiLogin.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnMultiLogin.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnMultiLogin.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnMultiLogin.Style.GradientAngle = 90; + this.btnMultiLogin.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnMultiLogin.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnMultiLogin.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnMultiLogin.TabIndex = 460; + this.btnMultiLogin.Text = "多重登录"; + // + // btnDel + // + this.btnDel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnDel.CanvasColor = System.Drawing.SystemColors.Control; + this.btnDel.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnDel.DisabledBackColor = System.Drawing.Color.Empty; + this.btnDel.Location = new System.Drawing.Point(163, 3); + this.btnDel.Name = "btnDel"; + this.btnDel.Size = new System.Drawing.Size(20, 24); + this.btnDel.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnDel.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnDel.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnDel.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.btnDel.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnDel.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.btnDel.Style.GradientAngle = 90; + this.btnDel.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; + this.btnDel.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnDel.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnDel.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnDel.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; + this.btnDel.TabIndex = 409; + this.btnDel.Text = "删"; + // + // splitContainer1 + // + this.splitContainer1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; + this.splitContainer1.Location = new System.Drawing.Point(0, 0); + this.splitContainer1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.splitContainer1.Name = "splitContainer1"; + this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal; + // + // splitContainer1.Panel1 + // + this.splitContainer1.Panel1.Controls.Add(this.ucTabControlMetro1); + this.splitContainer1.Panel1.Controls.Add(this.pnlMultiLogin); + // + // splitContainer1.Panel2 + // + this.splitContainer1.Panel2.BackColor = System.Drawing.Color.White; + this.splitContainer1.Panel2.Controls.Add(this.btnExportCookie); + this.splitContainer1.Panel2.Controls.Add(this.label7); + this.splitContainer1.Panel2.Controls.Add(this.txtWaitSeconds); + this.splitContainer1.Panel2.Controls.Add(this.label8); + this.splitContainer1.Panel2.Controls.Add(this.btnGetGoodsSku); + this.splitContainer1.Panel2.Controls.Add(this.btnCancelSelect); + this.splitContainer1.Panel2.Controls.Add(this.txtTitle); + this.splitContainer1.Panel2.Controls.Add(this.btnSearchTitle); + this.splitContainer1.Panel2.Controls.Add(this.chkOverride); + this.splitContainer1.Panel2.Controls.Add(this.btnStopStop); + this.splitContainer1.Panel2.Controls.Add(this.btnSaveDb); + this.splitContainer1.Panel2.Controls.Add(this.statusBar); + this.splitContainer1.Panel2.Controls.Add(this.label4); + this.splitContainer1.Panel2.Controls.Add(this.txtPageEnd); + this.splitContainer1.Panel2.Controls.Add(this.txtPageStart); + this.splitContainer1.Panel2.Controls.Add(this.label3); + this.splitContainer1.Panel2.Controls.Add(this.txtSupplierName); + this.splitContainer1.Panel2.Controls.Add(this.btnRefreshCookie); + this.splitContainer1.Panel2.Controls.Add(this.txtCookie); + this.splitContainer1.Panel2.Controls.Add(this.btnSaveCookie); + this.splitContainer1.Panel2.Controls.Add(this.btnImportCookie); + this.splitContainer1.Panel2.Controls.Add(this.label2); + this.splitContainer1.Panel2.Controls.Add(this.line1); + this.splitContainer1.Size = new System.Drawing.Size(1404, 561); + this.splitContainer1.SplitterDistance = 470; + this.splitContainer1.SplitterWidth = 3; + this.splitContainer1.TabIndex = 4; + // + // ucTabControlMetro1 + // + this.ucTabControlMetro1.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(251)))), ((int)(((byte)(251)))), ((int)(((byte)(251))))); + this.ucTabControlMetro1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(157))))); + this.ucTabControlMetro1.Controls.Add(this.tabPage1); + this.ucTabControlMetro1.Controls.Add(this.tabPage2); + this.ucTabControlMetro1.Controls.Add(this.tabPage3); + this.ucTabControlMetro1.Dock = System.Windows.Forms.DockStyle.Fill; + this.ucTabControlMetro1.Location = new System.Drawing.Point(0, 0); + this.ucTabControlMetro1.Name = "ucTabControlMetro1"; + this.ucTabControlMetro1.SelectedIndex = 0; + this.ucTabControlMetro1.ShowCloseButton = false; + this.ucTabControlMetro1.Size = new System.Drawing.Size(1404, 470); + this.ucTabControlMetro1.TabIndex = 462; + this.ucTabControlMetro1.TabSelectColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.ucTabControlMetro1.TabSelectTextColor = System.Drawing.Color.Gray; + this.ucTabControlMetro1.TabUnSelectTextColor = System.Drawing.Color.White; + // + // tabPage1 + // + this.tabPage1.Controls.Add(this.splitContainer2); + this.tabPage1.Location = new System.Drawing.Point(4, 26); + this.tabPage1.Name = "tabPage1"; + this.tabPage1.Padding = new System.Windows.Forms.Padding(3); + this.tabPage1.Size = new System.Drawing.Size(1396, 440); + this.tabPage1.TabIndex = 0; + this.tabPage1.Text = "商品页面"; + this.tabPage1.UseVisualStyleBackColor = true; + // + // splitContainer2 + // + this.splitContainer2.BackColor = System.Drawing.Color.White; + this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; + this.splitContainer2.Location = new System.Drawing.Point(3, 3); + this.splitContainer2.Name = "splitContainer2"; + this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; + // + // splitContainer2.Panel1 + // + this.splitContainer2.Panel1.Controls.Add(this.btnNext); + this.splitContainer2.Panel1.Controls.Add(this.btnPrev); + this.splitContainer2.Panel1.Controls.Add(this.txtAddress); + this.splitContainer2.Size = new System.Drawing.Size(1390, 434); + this.splitContainer2.SplitterDistance = 26; + this.splitContainer2.TabIndex = 6; + // + // btnNext + // + this.btnNext.Location = new System.Drawing.Point(31, 3); + this.btnNext.Name = "btnNext"; + this.btnNext.Size = new System.Drawing.Size(32, 23); + this.btnNext.TabIndex = 9; + this.btnNext.Text = "→"; + this.btnNext.UseVisualStyleBackColor = true; + this.btnNext.Click += new System.EventHandler(this.btnNext_Click); + // + // btnPrev + // + this.btnPrev.Location = new System.Drawing.Point(-1, 3); + this.btnPrev.Name = "btnPrev"; + this.btnPrev.Size = new System.Drawing.Size(32, 23); + this.btnPrev.TabIndex = 8; + this.btnPrev.Text = "←"; + this.btnPrev.UseVisualStyleBackColor = true; + this.btnPrev.Click += new System.EventHandler(this.btnPrev_Click); + // + // txtAddress + // + this.txtAddress.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.txtAddress.Location = new System.Drawing.Point(64, 3); + this.txtAddress.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.txtAddress.Name = "txtAddress"; + this.txtAddress.Size = new System.Drawing.Size(1326, 23); + this.txtAddress.TabIndex = 7; + this.txtAddress.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtAddress_KeyDown); + // + // tabPage2 + // + this.tabPage2.Controls.Add(this.pbLoading); + this.tabPage2.Controls.Add(this.dgvProduct); + this.tabPage2.Location = new System.Drawing.Point(4, 26); + this.tabPage2.Name = "tabPage2"; + this.tabPage2.Padding = new System.Windows.Forms.Padding(3); + this.tabPage2.Size = new System.Drawing.Size(1396, 440); + this.tabPage2.TabIndex = 1; + this.tabPage2.Text = "采集Sku列表"; + this.tabPage2.UseVisualStyleBackColor = true; + // + // pbLoading + // + this.pbLoading.Anchor = System.Windows.Forms.AnchorStyles.None; + this.pbLoading.Image = global::TemuKJD.Properties.Resources.loading_blue; + this.pbLoading.Location = new System.Drawing.Point(673, 193); + this.pbLoading.Name = "pbLoading"; + this.pbLoading.Size = new System.Drawing.Size(50, 50); + this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pbLoading.TabIndex = 8; + this.pbLoading.TabStop = false; + this.pbLoading.Visible = false; + // + // dgvProduct + // + this.dgvProduct.AllowUserToAddRows = false; + this.dgvProduct.AllowUserToDeleteRows = false; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; + this.dgvProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + this.dgvProduct.AutoRowNumber = true; + this.dgvProduct.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dgvProduct.BackgroundColor = System.Drawing.Color.White; + this.dgvProduct.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgvProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; + this.dgvProduct.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dgvProduct.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.colCheck, + this.colCoId, + this.colSupplierName, + this.colProductId, + this.colGoodsName, + this.colImgUrl, + this.colImg, + this.colSkuId, + this.colSkuName, + this.colPrice, + this.colStock, + this.colDel, + this.colMsg}); + this.dgvProduct.Dock = System.Windows.Forms.DockStyle.Fill; + this.dgvProduct.Location = new System.Drawing.Point(3, 3); + this.dgvProduct.Name = "dgvProduct"; + this.dgvProduct.ReadOnly = true; + this.dgvProduct.RowTemplate.Height = 23; + this.dgvProduct.Size = new System.Drawing.Size(1390, 434); + this.dgvProduct.TabIndex = 7; + this.dgvProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvProduct_CellContentClick); + // + // tabPage3 + // + this.tabPage3.Controls.Add(this.splitContainer3); + this.tabPage3.Location = new System.Drawing.Point(4, 26); + this.tabPage3.Name = "tabPage3"; + this.tabPage3.Padding = new System.Windows.Forms.Padding(3); + this.tabPage3.Size = new System.Drawing.Size(1396, 439); + this.tabPage3.TabIndex = 2; + this.tabPage3.Text = "聚水潭Sku回传"; + this.tabPage3.UseVisualStyleBackColor = true; + // + // splitContainer3 + // + this.splitContainer3.BackColor = System.Drawing.Color.White; + this.splitContainer3.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer3.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; + this.splitContainer3.Location = new System.Drawing.Point(3, 3); + this.splitContainer3.Name = "splitContainer3"; + this.splitContainer3.Orientation = System.Windows.Forms.Orientation.Horizontal; + // + // splitContainer3.Panel1 + // + this.splitContainer3.Panel1.Controls.Add(this.ucSplitPage1); + this.splitContainer3.Panel1.Controls.Add(this.btnStop); + this.splitContainer3.Panel1.Controls.Add(this.label6); + this.splitContainer3.Panel1.Controls.Add(this.txtBeforeDay); + this.splitContainer3.Panel1.Controls.Add(this.chkSkipDownSearch); + this.splitContainer3.Panel1.Controls.Add(this.label5); + this.splitContainer3.Panel1.Controls.Add(this.txtBeforeHour); + this.splitContainer3.Panel1.Controls.Add(this.statusBarUserControl1); + this.splitContainer3.Panel1.Controls.Add(this.dtpEndTime); + this.splitContainer3.Panel1.Controls.Add(this.dtpStartTime); + this.splitContainer3.Panel1.Controls.Add(this.btnReturnSku); + // + // splitContainer3.Panel2 + // + this.splitContainer3.Panel2.Controls.Add(this.pictureBox1); + this.splitContainer3.Panel2.Controls.Add(this.dgvDownSku); + this.splitContainer3.Size = new System.Drawing.Size(1390, 433); + this.splitContainer3.SplitterDistance = 82; + this.splitContainer3.TabIndex = 1; + // + // ucSplitPage1 + // + this.ucSplitPage1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.ucSplitPage1.CurrentPage = 1; + this.ucSplitPage1.IsShowPageSize = false; + this.ucSplitPage1.Location = new System.Drawing.Point(935, 54); + this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0); + this.ucSplitPage1.Name = "ucSplitPage1"; + this.ucSplitPage1.Padding = new System.Windows.Forms.Padding(0, 0, 1, 0); + this.ucSplitPage1.PageSize = 100; + this.ucSplitPage1.Size = new System.Drawing.Size(453, 25); + this.ucSplitPage1.TabIndex = 974; + this.ucSplitPage1.TotalPage = 1; + // + // btnStop + // + this.btnStop.CanvasColor = System.Drawing.SystemColors.Control; + this.btnStop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnStop.DisabledBackColor = System.Drawing.Color.Empty; + this.btnStop.Location = new System.Drawing.Point(1306, 14); + this.btnStop.Name = "btnStop"; + this.btnStop.Size = new System.Drawing.Size(72, 23); + this.btnStop.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnStop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnStop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnStop.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.btnStop.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnStop.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.btnStop.Style.GradientAngle = 90; + this.btnStop.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; + this.btnStop.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnStop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnStop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnStop.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; + this.btnStop.TabIndex = 964; + this.btnStop.Text = "停止回传"; + this.btnStop.Click += new System.EventHandler(this.btnStop_Click); + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(883, 17); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(128, 17); + this.label6.TabIndex = 944; + this.label6.Text = "小时之前时,结束采集"; + // + // txtBeforeDay + // + this.txtBeforeDay.Location = new System.Drawing.Point(776, 14); + this.txtBeforeDay.Name = "txtBeforeDay"; + this.txtBeforeDay.Size = new System.Drawing.Size(43, 23); + this.txtBeforeDay.TabIndex = 829; + this.txtBeforeDay.Text = "1"; + // + // chkSkipDownSearch + // + this.chkSkipDownSearch.AutoSize = true; + this.chkSkipDownSearch.Checked = true; + this.chkSkipDownSearch.CheckState = System.Windows.Forms.CheckState.Checked; + this.chkSkipDownSearch.Location = new System.Drawing.Point(540, 15); + this.chkSkipDownSearch.Name = "chkSkipDownSearch"; + this.chkSkipDownSearch.Size = new System.Drawing.Size(243, 21); + this.chkSkipDownSearch.TabIndex = 943; + this.chkSkipDownSearch.Text = "SKU下架库中存在当前采集且采集时间在"; + this.chkSkipDownSearch.UseVisualStyleBackColor = true; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(820, 17); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(20, 17); + this.label5.TabIndex = 831; + this.label5.Text = "天"; + // + // txtBeforeHour + // + this.txtBeforeHour.Location = new System.Drawing.Point(840, 14); + this.txtBeforeHour.Name = "txtBeforeHour"; + this.txtBeforeHour.Size = new System.Drawing.Size(43, 23); + this.txtBeforeHour.TabIndex = 830; + this.txtBeforeHour.Text = "0"; + // + // statusBarUserControl1 + // + this.statusBarUserControl1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.statusBarUserControl1.BackColor = System.Drawing.Color.White; + this.statusBarUserControl1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.statusBarUserControl1.Location = new System.Drawing.Point(5, 54); + this.statusBarUserControl1.Margin = new System.Windows.Forms.Padding(0); + this.statusBarUserControl1.Name = "statusBarUserControl1"; + this.statusBarUserControl1.Size = new System.Drawing.Size(1035, 25); + this.statusBarUserControl1.TabIndex = 824; + // + // dtpEndTime + // + this.dtpEndTime.Location = new System.Drawing.Point(165, 14); + this.dtpEndTime.Name = "dtpEndTime"; + this.dtpEndTime.Size = new System.Drawing.Size(149, 23); + this.dtpEndTime.TabIndex = 800; + this.dtpEndTime.Value = new System.DateTime(2026, 1, 28, 0, 0, 0, 0); + // + // dtpStartTime + // + this.dtpStartTime.Location = new System.Drawing.Point(10, 14); + this.dtpStartTime.Name = "dtpStartTime"; + this.dtpStartTime.Size = new System.Drawing.Size(149, 23); + this.dtpStartTime.TabIndex = 799; + this.dtpStartTime.Value = new System.DateTime(2026, 1, 28, 0, 0, 0, 0); + // + // btnReturnSku + // + this.btnReturnSku.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnReturnSku.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnReturnSku.DisabledBackColor = System.Drawing.Color.Empty; + this.btnReturnSku.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnReturnSku.Location = new System.Drawing.Point(1226, 14); + this.btnReturnSku.Name = "btnReturnSku"; + this.btnReturnSku.Size = new System.Drawing.Size(74, 23); + this.btnReturnSku.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnReturnSku.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnReturnSku.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnReturnSku.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnReturnSku.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnReturnSku.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnReturnSku.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnReturnSku.Style.GradientAngle = 90; + this.btnReturnSku.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnReturnSku.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnReturnSku.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnReturnSku.TabIndex = 798; + this.btnReturnSku.Text = "回传Sku"; + // + // pictureBox1 + // + this.pictureBox1.Anchor = System.Windows.Forms.AnchorStyles.None; + this.pictureBox1.Image = global::TemuKJD.Properties.Resources.loading_blue; + this.pictureBox1.Location = new System.Drawing.Point(670, 148); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(50, 50); + this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pictureBox1.TabIndex = 9; + this.pictureBox1.TabStop = false; + this.pictureBox1.Visible = false; + // + // dgvDownSku + // + this.dgvDownSku.AllowUserToAddRows = false; + this.dgvDownSku.AllowUserToDeleteRows = false; + dataGridViewCellStyle6.BackColor = System.Drawing.Color.WhiteSmoke; + this.dgvDownSku.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6; + this.dgvDownSku.AutoRowNumber = true; + this.dgvDownSku.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dgvDownSku.BackgroundColor = System.Drawing.Color.White; + this.dgvDownSku.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle7.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgvDownSku.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7; + this.dgvDownSku.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dgvDownSku.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.colDownSelect, + this.colDownSpuId, + this.colDownStyleCode, + this.colDownImgUrl, + this.colDownImg, + this.colDownItemName, + this.skuDownItemCode, + this.colDownColourSpec, + this.colDownSupplierName, + this.colDownSupplyPrice, + this.colDownShelvesTime, + this.colDownLastOperator, + this.colDownDrpItemStatus, + this.dataGridViewLinkColumn1, + this.dataGridViewTextBoxColumn8}); + this.dgvDownSku.Dock = System.Windows.Forms.DockStyle.Fill; + this.dgvDownSku.Location = new System.Drawing.Point(0, 0); + this.dgvDownSku.Name = "dgvDownSku"; + this.dgvDownSku.ReadOnly = true; + this.dgvDownSku.RowTemplate.Height = 23; + this.dgvDownSku.Size = new System.Drawing.Size(1390, 347); + this.dgvDownSku.TabIndex = 8; + // + // colDownSelect + // + this.colDownSelect.FillWeight = 26F; + this.colDownSelect.HeaderText = "选"; + this.colDownSelect.Name = "colDownSelect"; + this.colDownSelect.ReadOnly = true; + this.colDownSelect.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colDownSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + // + // colDownSpuId + // + this.colDownSpuId.FillWeight = 50F; + this.colDownSpuId.HeaderText = "商品Id"; + this.colDownSpuId.Name = "colDownSpuId"; + this.colDownSpuId.ReadOnly = true; + // + // colDownStyleCode + // + this.colDownStyleCode.FillWeight = 50F; + this.colDownStyleCode.HeaderText = "资料编码"; + this.colDownStyleCode.Name = "colDownStyleCode"; + this.colDownStyleCode.ReadOnly = true; + // + // colDownImgUrl + // + this.colDownImgUrl.FillWeight = 300F; + this.colDownImgUrl.HeaderText = "图片路径"; + this.colDownImgUrl.Name = "colDownImgUrl"; + this.colDownImgUrl.ReadOnly = true; + this.colDownImgUrl.Visible = false; + // + // colDownImg + // + this.colDownImg.FillWeight = 40F; + this.colDownImg.HeaderText = "图片"; + this.colDownImg.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Zoom; + this.colDownImg.Name = "colDownImg"; + this.colDownImg.ReadOnly = true; + this.colDownImg.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colDownImg.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + // + // colDownItemName + // + dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.colDownItemName.DefaultCellStyle = dataGridViewCellStyle8; + this.colDownItemName.FillWeight = 120F; + this.colDownItemName.HeaderText = "商品名称"; + this.colDownItemName.Name = "colDownItemName"; + this.colDownItemName.ReadOnly = true; + // + // skuDownItemCode + // + this.skuDownItemCode.FillWeight = 60F; + this.skuDownItemCode.HeaderText = "Sku编码"; + this.skuDownItemCode.Name = "skuDownItemCode"; + this.skuDownItemCode.ReadOnly = true; + // + // colDownColourSpec + // + this.colDownColourSpec.FillWeight = 60F; + this.colDownColourSpec.HeaderText = "Sku规格"; + this.colDownColourSpec.Name = "colDownColourSpec"; + this.colDownColourSpec.ReadOnly = true; + // + // colDownSupplierName + // + this.colDownSupplierName.HeaderText = "供应商名称"; + this.colDownSupplierName.Name = "colDownSupplierName"; + this.colDownSupplierName.ReadOnly = true; + // + // colDownSupplyPrice + // + dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.colDownSupplyPrice.DefaultCellStyle = dataGridViewCellStyle9; + this.colDownSupplyPrice.FillWeight = 70F; + this.colDownSupplyPrice.HeaderText = "供货价"; + this.colDownSupplyPrice.Name = "colDownSupplyPrice"; + this.colDownSupplyPrice.ReadOnly = true; + // + // colDownShelvesTime + // + this.colDownShelvesTime.FillWeight = 80F; + this.colDownShelvesTime.HeaderText = "供应商加入时间"; + this.colDownShelvesTime.Name = "colDownShelvesTime"; + this.colDownShelvesTime.ReadOnly = true; + // + // colDownLastOperator + // + this.colDownLastOperator.FillWeight = 50F; + this.colDownLastOperator.HeaderText = "操作人"; + this.colDownLastOperator.Name = "colDownLastOperator"; + this.colDownLastOperator.ReadOnly = true; + // + // colDownDrpItemStatus + // + this.colDownDrpItemStatus.FillWeight = 50F; + this.colDownDrpItemStatus.HeaderText = "状态"; + this.colDownDrpItemStatus.Name = "colDownDrpItemStatus"; + this.colDownDrpItemStatus.ReadOnly = true; + // + // dataGridViewLinkColumn1 + // + this.dataGridViewLinkColumn1.FillWeight = 35F; + this.dataGridViewLinkColumn1.HeaderText = "删除"; + this.dataGridViewLinkColumn1.Name = "dataGridViewLinkColumn1"; + this.dataGridViewLinkColumn1.ReadOnly = true; + // + // dataGridViewTextBoxColumn8 + // + dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewTextBoxColumn8.DefaultCellStyle = dataGridViewCellStyle10; + this.dataGridViewTextBoxColumn8.FillWeight = 160F; + this.dataGridViewTextBoxColumn8.HeaderText = "操作结果"; + this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8"; + this.dataGridViewTextBoxColumn8.ReadOnly = true; + // + // colCheck + // + this.colCheck.FillWeight = 26F; + this.colCheck.HeaderText = "选"; + this.colCheck.Name = "colCheck"; + this.colCheck.ReadOnly = true; + this.colCheck.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colCheck.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + // + // colCoId + // + this.colCoId.FillWeight = 50F; + this.colCoId.HeaderText = "供应商Id"; + this.colCoId.Name = "colCoId"; + this.colCoId.ReadOnly = true; + // + // colSupplierName + // + this.colSupplierName.FillWeight = 90F; + this.colSupplierName.HeaderText = "供应商名称"; + this.colSupplierName.Name = "colSupplierName"; + this.colSupplierName.ReadOnly = true; + // + // colProductId + // + this.colProductId.FillWeight = 50F; + this.colProductId.HeaderText = "商品Id"; + this.colProductId.Name = "colProductId"; + this.colProductId.ReadOnly = true; + // + // colGoodsName + // + dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.colGoodsName.DefaultCellStyle = dataGridViewCellStyle3; + this.colGoodsName.HeaderText = "商品名称"; + this.colGoodsName.Name = "colGoodsName"; + this.colGoodsName.ReadOnly = true; + // + // colImgUrl + // + this.colImgUrl.FillWeight = 300F; + this.colImgUrl.HeaderText = "图片路径"; + this.colImgUrl.Name = "colImgUrl"; + this.colImgUrl.ReadOnly = true; + this.colImgUrl.Visible = false; + // + // colImg + // + this.colImg.FillWeight = 40F; + this.colImg.HeaderText = "图片"; + this.colImg.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Zoom; + this.colImg.Name = "colImg"; + this.colImg.ReadOnly = true; + this.colImg.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colImg.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + // + // colSkuId + // + this.colSkuId.FillWeight = 50F; + this.colSkuId.HeaderText = "SkuId"; + this.colSkuId.Name = "colSkuId"; + this.colSkuId.ReadOnly = true; + // + // colSkuName + // + this.colSkuName.FillWeight = 50F; + this.colSkuName.HeaderText = "Sku名称"; + this.colSkuName.Name = "colSkuName"; + this.colSkuName.ReadOnly = true; + // + // colPrice + // + dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.colPrice.DefaultCellStyle = dataGridViewCellStyle4; + this.colPrice.FillWeight = 70F; + this.colPrice.HeaderText = "供货价"; + this.colPrice.Name = "colPrice"; + this.colPrice.ReadOnly = true; + // + // colStock + // + this.colStock.FillWeight = 50F; + this.colStock.HeaderText = "库存"; + this.colStock.Name = "colStock"; + this.colStock.ReadOnly = true; + // + // colDel + // + this.colDel.FillWeight = 35F; + this.colDel.HeaderText = "删除"; + this.colDel.Name = "colDel"; + this.colDel.ReadOnly = true; + // + // colMsg + // + dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.colMsg.DefaultCellStyle = dataGridViewCellStyle5; + this.colMsg.FillWeight = 190F; + this.colMsg.HeaderText = "操作结果"; + this.colMsg.Name = "colMsg"; + this.colMsg.ReadOnly = true; + // + // GetJuShuitanProductSKUListForm + // + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; + this.ClientSize = new System.Drawing.Size(1404, 561); + this.Controls.Add(this.splitContainer1); + this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.Name = "GetJuShuitanProductSKUListForm"; + this.Text = "获取厂商Sku列表"; + this.Load += new System.EventHandler(this.GetJuShuitanProdForm_Load); + this.pnlMultiLogin.ResumeLayout(false); + this.splitContainer1.Panel1.ResumeLayout(false); + this.splitContainer1.Panel2.ResumeLayout(false); + this.splitContainer1.Panel2.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); + this.splitContainer1.ResumeLayout(false); + this.ucTabControlMetro1.ResumeLayout(false); + this.tabPage1.ResumeLayout(false); + this.splitContainer2.Panel1.ResumeLayout(false); + this.splitContainer2.Panel1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); + this.splitContainer2.ResumeLayout(false); + this.tabPage2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.pbLoading)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dgvProduct)).EndInit(); + this.tabPage3.ResumeLayout(false); + this.splitContainer3.Panel1.ResumeLayout(false); + this.splitContainer3.Panel1.PerformLayout(); + this.splitContainer3.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).EndInit(); + this.splitContainer3.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dgvDownSku)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.Line line1; + private System.Windows.Forms.Label label2; + private DevComponents.DotNetBar.PanelEx btnImportCookie; + private DevComponents.DotNetBar.PanelEx btnSaveCookie; + private System.Windows.Forms.TextBox txtCookie; + private DevComponents.DotNetBar.PanelEx btnRefreshCookie; + private System.Windows.Forms.TextBox txtSupplierName; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox txtPageStart; + private System.Windows.Forms.TextBox txtPageEnd; + private System.Windows.Forms.Label label4; + private UserControls.StatusBarUserControl statusBar; + private DevComponents.DotNetBar.PanelEx btnSaveDb; + private DevComponents.DotNetBar.PanelEx btnStopStop; + private UserComponent.UcCheckBox chkOverride; + private DevComponents.DotNetBar.PanelEx btnSearchTitle; + private System.Windows.Forms.TextBox txtTitle; + private DevComponents.DotNetBar.PanelEx btnCancelSelect; + private DevComponents.DotNetBar.PanelEx btnGetGoodsSku; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.TextBox txtWaitSeconds; + private System.Windows.Forms.Label label7; + private DevComponents.DotNetBar.PanelEx btnExportCookie; + private System.Windows.Forms.Panel pnlMultiLogin; + private DevComponents.DotNetBar.Controls.ComboBoxEx cmbMultiCookieName; + private DevComponents.DotNetBar.PanelEx btnMultiLogin; + private DevComponents.DotNetBar.PanelEx btnDel; + private System.Windows.Forms.SplitContainer splitContainer1; + private PinBaoBao.UserControls.UcTabControlMetro ucTabControlMetro1; + private System.Windows.Forms.TabPage tabPage1; + private System.Windows.Forms.SplitContainer splitContainer2; + private System.Windows.Forms.Button btnNext; + private System.Windows.Forms.Button btnPrev; + private System.Windows.Forms.TextBox txtAddress; + private System.Windows.Forms.TabPage tabPage2; + private System.Windows.Forms.PictureBox pbLoading; + private UserComponent.DataGridViewEx dgvProduct; + private System.Windows.Forms.TabPage tabPage3; + private System.Windows.Forms.SplitContainer splitContainer3; + private DevComponents.DotNetBar.PanelEx btnStop; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.TextBox txtBeforeDay; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox txtBeforeHour; + private UserControls.StatusBarUserControl statusBarUserControl1; + private System.Windows.Forms.DateTimePicker dtpEndTime; + private System.Windows.Forms.DateTimePicker dtpStartTime; + private DevComponents.DotNetBar.PanelEx btnReturnSku; + private System.Windows.Forms.PictureBox pictureBox1; + private UserComponent.DataGridViewEx dgvDownSku; + private System.Windows.Forms.DataGridViewCheckBoxColumn colDownSelect; + private System.Windows.Forms.DataGridViewTextBoxColumn colDownSpuId; + private System.Windows.Forms.DataGridViewTextBoxColumn colDownStyleCode; + private System.Windows.Forms.DataGridViewTextBoxColumn colDownImgUrl; + private System.Windows.Forms.DataGridViewImageColumn colDownImg; + private System.Windows.Forms.DataGridViewTextBoxColumn colDownItemName; + private System.Windows.Forms.DataGridViewTextBoxColumn skuDownItemCode; + private System.Windows.Forms.DataGridViewTextBoxColumn colDownColourSpec; + private System.Windows.Forms.DataGridViewTextBoxColumn colDownSupplierName; + private System.Windows.Forms.DataGridViewTextBoxColumn colDownSupplyPrice; + private System.Windows.Forms.DataGridViewTextBoxColumn colDownShelvesTime; + private System.Windows.Forms.DataGridViewTextBoxColumn colDownLastOperator; + private System.Windows.Forms.DataGridViewTextBoxColumn colDownDrpItemStatus; + private System.Windows.Forms.DataGridViewLinkColumn dataGridViewLinkColumn1; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn8; + private UserControls.UcSplitPage ucSplitPage1; + private UserComponent.UcCheckBox chkSkipDownSearch; + private System.Windows.Forms.DataGridViewCheckBoxColumn colCheck; + private System.Windows.Forms.DataGridViewTextBoxColumn colCoId; + private System.Windows.Forms.DataGridViewTextBoxColumn colSupplierName; + private System.Windows.Forms.DataGridViewTextBoxColumn colProductId; + private System.Windows.Forms.DataGridViewTextBoxColumn colGoodsName; + private System.Windows.Forms.DataGridViewTextBoxColumn colImgUrl; + private System.Windows.Forms.DataGridViewImageColumn colImg; + private System.Windows.Forms.DataGridViewTextBoxColumn colSkuId; + private System.Windows.Forms.DataGridViewTextBoxColumn colSkuName; + private System.Windows.Forms.DataGridViewTextBoxColumn colPrice; + private System.Windows.Forms.DataGridViewTextBoxColumn colStock; + private System.Windows.Forms.DataGridViewLinkColumn colDel; + private System.Windows.Forms.DataGridViewTextBoxColumn colMsg; + } +} \ No newline at end of file diff --git a/TEMUKJD/ToolForms/GetJuShuitanProductSKUListForm.cs b/TEMUKJD/ToolForms/GetJuShuitanProductSKUListForm.cs new file mode 100644 index 0000000..0f65ad2 --- /dev/null +++ b/TEMUKJD/ToolForms/GetJuShuitanProductSKUListForm.cs @@ -0,0 +1,892 @@ +using AllBase; +using AllBase.Model.Result; +using AllBase.Model.Result.JST; +using AllBase.Model.Result.PDDResult; +using CefSharp; +using CefSharp.WinForms; +using NaiBa.CefHelper; +using NaiBa.CefHelper.Handler; +using NaiBa.Util; +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.Globalization; +using System.Linq; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using System.Windows.Forms; +using TemuKJD.BaseForms; +using TemuKJD.BLL; +using TemuKJD.Extension; +using TemuKJD.Helper; +using TemuKJD.PDDForms.ProductSelectForms; +using TemuKJD.WXForms.ProductForms; +using Work; + +namespace TemuKJD.ToolForms +{ + public partial class GetJuShuitanProductSKUListForm : BaseForms.BaseForm + { + Dictionary dicAfterSale = new Dictionary(); + public CancellationTokenSource cancellationTokenSource { get; set; } = null; + public CancellationTokenSource CancelReturn { get; set; } = null; + string InitUrl = "https://sc.scm121.com/suppliersManage/suppliersList/onlineSuppliers"; + public ChromiumWebBrowser cefWebBrowser = null; + private string currentUrl = ""; + private string currentGetSupplierListParamData = ""; + private string currentSupplierName = ""; + private string appVersion = ""; + private string currentSupplierId = ""; + int getDetailWait = 1; + int pageStart = 1; + int pageEnd = 9999; + int filterSaleCountDays = 7; + int filterSaleCount = 100; + string platformType = "Pinduoduo"; + string jstPddShopId = ""; + ConcurrentList lstJSTListProductSkuInfo = new ConcurrentList(); + + public GetJuShuitanProductSKUListForm() + { + InitializeComponent(); + } + + private void GetJuShuitanProdForm_Load(object sender, EventArgs e) + { + //this.ucTabControlMetro1.TabPages.Remove(tabPage3); + + this.splitContainer1.SplitterDistance = 472; + this.dgvProduct.AddSelectorColumn("colCheck"); + this.dgvProduct.AddImgColumn("colImg", "colImgUrl"); + + lstJSTListProductSkuInfo = NaiBa.Util.Helper.ConfigHelper.LoadConfig>("supplier_product_sku_list_" + MainForm.ProcessCount); + if (lstJSTListProductSkuInfo == null) + lstJSTListProductSkuInfo = new ConcurrentList(); + + pbLoading.Visible = true; + Task.Run(() => + { + int id = 0; + foreach (var prod in lstJSTListProductSkuInfo) + { + id++; + if (id % 50 == 0) + Thread.Sleep(1); + Invoke(new Action(() => + { + var rowId = this.dgvProduct.Rows.Add( + true, + prod.coid, + prod.supplierName, + prod.itemSpuId, + prod.itemName, + prod.pic.ParseToString().Replace("https://", "http://"), + DataGridViewExtension.defaultBitmap, + prod.skuId, + prod.color + ";" + prod.spec, + prod.supplyPrice, + prod.stock, + "删除", + prod.Msg + ); + dgvProduct.Rows[rowId].Height = 60; + + //if (chanceProductResult.dbProduct != null) + //{ + // var dbProd = chanceProductResult.dbProduct; + // var row = dgvChanceProduct.Rows[rowId]; + // row.Cells["colGoodsName"].Value = dbProd.product_name; + // row.Cells["colCate"].Value = dbProd.cat_name; + // row.Cells["colPrice"].Value = dbProd.price_text; + //} + })); + } + Invoke(new Action(() => + { + pbLoading.Visible = false; + })); + }); + + InitCef(); + } + + void InitCef() + { + if (cefWebBrowser == null) + { + cefWebBrowser = CEFBrowser.CreateChromiumWebBrowser(InitUrl, false); + + CustomResourceRequestHandlerLocal resourceRequestHandler = new CustomResourceRequestHandlerLocal(); + resourceRequestHandler.ResourceLoadCompleteEvent += RequestHandler_ResourceLoadComplete; + resourceRequestHandler.BeforeResourceLoadEvent += RequestHandler_BeforeResourceLoad; + cefWebBrowser.RequestHandler = new CustomRequestHandler(resourceRequestHandler); + var lifeSapnHandler = new LifeSpanHandlerLocal(PopWindowType.SelfWindow); + cefWebBrowser.LifeSpanHandler = lifeSapnHandler; + cefWebBrowser.KeyboardHandler = new KeyboardHandler(); + cefWebBrowser.FrameLoadEnd += CefWebBrowser_FrameLoadEnd; + cefWebBrowser.AddressChanged += CefWebBrowser_AddressChanged; + cefWebBrowser.LoadError += CefWebBrowser_LoadError; + cefWebBrowser.Dock = DockStyle.Fill; + + + Invoke(new Action(() => + { + splitContainer2.Panel2.Controls.Add(cefWebBrowser); + //cefWebBrowser.Load(shopMainUrl); + })); + } + + Task.Run(() => + { + string serverCookie = ""; + var url = BaseClass.BuildPDDObjString("user/get_scm121_cookie"); + var data = UserLogin.GetSignaturex(); + var result = GetHtml.PostUtf8(url, data); + if (!result.Contains("\"code\":200")) + result = GetHtml.PostUtf8(url, data); + + List cookieLst = new List(); + try + { + serverCookie = JsonHelper.SerializeObject(JsonHelper.JObjectParse(result)["cookie"]); + cookieLst = JsonHelper.DeserializeJsonToList(serverCookie); + if (cookieLst == null) + cookieLst = new List(); + } + catch + { + } + + + // cef138必须init后方可设置或删除cookie + while (!cefWebBrowser.IsBrowserInitialized || !cefWebBrowser.GetBrowser().MainFrame.IsValid) + Thread.Sleep(20); + CEFBrowser.DeleteCookie(cefWebBrowser.GetCookieManager(null)); + + //cef 138 如果没有设置RequestContext 可能为空,直接getCookieManager + //if (this.openType != EnumOpenType.login) + { + //var t = CEFBrowser.SetCookieAsync(JsonHelper.SerializeObject(cookieLst), cefWebBrowser.GetCookieManager(null)); + foreach (var cook in cookieLst) + { + var t = CEFBrowser.SetCookieAsync(cook.Domain.Trim('.'), cook.Name + "=" + cook.Value + ";", cefWebBrowser.GetCookieManager(null)); + t.Wait(5000); + } + } + cefWebBrowser.Load(InitUrl); + }); + } + private void CefWebBrowser_FrameLoadEnd(object sender, CefSharp.FrameLoadEndEventArgs e) + { + } + + private void RequestHandler_ResourceLoadComplete(object sender, string url, string postData, string responseData, IRequest request) + { + if (url.Contains("api/goods/buyer/supplier/goods/list")) + { + if (request.Headers.AllKeys.Contains("App-Version")) + appVersion = request.Headers["App-Version"]; + Task.Run(() => { GetCurrentSupplierSearchData(postData, responseData, request); }); + } + if (url.Contains("https://sc.scm121.com/api/goods/buyer/supplier/goods/skuList")) + { + if (request.Headers.AllKeys.Contains("App-Version")) + appVersion = request.Headers["App-Version"]; + Task.Run(() => { GetCurrentSupplierSearchSkuData(postData, responseData, request); }); + } + } + + + void GetCurrentSupplierSearchData(string postData, string responseData, IRequest request) + { + currentSupplierId = BaseRegex.GetStringJson(ref postData, "supplierId"); + currentSupplierName = BaseRegex.GetStringJson(ref responseData, "supplierName"); + Invoke(new Action(() => + { + txtSupplierName.Text = currentSupplierName; + })); + } + void GetCurrentSupplierSearchSkuData(string postData, string responseData, IRequest request) + { + currentGetSupplierListParamData = postData; + //currentSupplierId = BaseRegex.GetStringJson(ref postData, "supplierId"); + //currentSupplierName = BaseRegex.GetStringJson(ref responseData, "supplierName"); + Invoke(new Action(() => + { + //txtSupplierName.Text = currentSupplierName; + })); + } + + private bool RequestHandler_BeforeResourceLoad(object sender, string url, string postData, IRequest request) + { + return false; + } + private void CefWebBrowser_AddressChanged(object sender, CefSharp.AddressChangedEventArgs e) + { + if (this.Created && !this.Disposing && !this.IsDisposed) + { + Task.Run(() => + { + Invoke(new Action(() => + { + currentUrl = e.Address; + txtAddress.Text = e.Address; + })); + }); + } + } + private void CefWebBrowser_LoadError(object sender, CefSharp.LoadErrorEventArgs e) + { + } + + private void btnImportCookie_Click(object sender, EventArgs e) + { + if (!txtCookie.Text.Contains("DISTRYBUTION_TOKEN")) + { + BaseMsgForm.ShowError("导入的cookie无效,请重新输入"); + return; + } + + Task.Run(() => + { + var t = CEFBrowser.SetCookieAsync("scm121.com", txtCookie.Text, cefWebBrowser.GetCookieManager(null)); + t.Wait(5000); + cefWebBrowser.Load(InitUrl); + }); + } + + private void btnSaveCookie_Click(object sender, EventArgs e) + { + List cookieList = CEFBrowser.GetCookieList(".scm121.com", cefWebBrowser.GetCookieManager(null)); + + var url = BaseClass.BuildPDDObjString("user/update_scm121_cookie"); + var data = UserLogin.GetSignaturex(); + data += "&cookie=" + GetHtml.UrlEncodeUtf8(JsonHelper.SerializeObject(cookieList)); + var result = GetHtml.PostUtf8(url, data); + if (!result.Contains("\"code\":200")) + result = GetHtml.PostUtf8(url, data); + + if (result.Contains("\"code\":200")) + BaseMsgForm.ShowInfo("保存成功"); + else + BaseMsgForm.ShowInfo("保存失败,请重试"); + } + + private void btnRefreshCookie_Click(object sender, EventArgs e) + { + //var result = GetHtml.PostUtf8("https://api.weixin.qq.com/shop/ec/basics/img/upload?access_token=100_Kn3u6mev0uip-WUPSgxXWHrHldjOP0Ewjw8n18LmGcq2pWbjn4BJukPkGZt0gzgJ1Hd6bRM2TXUDTEhwM7VULSl_P-pVHSVPHlE6ZvdXfD6djB1f2WEibY7jWaZLaD24cBUxLM-mSGxjR7i7IBBeAHDOHH&upload_type=http://img.alicdn.com/imgextra/i2/2215107627344/O1CN01eM6hZu247bV94MWKH_!!2215107627344.jpg&resp_type=1", ""); + InitCef(); + } + + private void btnPrev_Click(object sender, EventArgs e) + { + cefWebBrowser.Back(); + } + + private void btnNext_Click(object sender, EventArgs e) + { + cefWebBrowser.Forward(); + } + + private void txtAddress_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.Enter) + { + if (cefWebBrowser != null) + { + cefWebBrowser.Load(txtAddress.Text); + } + } + } + + private void dgvProduct_CellContentClick(object sender, DataGridViewCellEventArgs e) + { + if (e.ColumnIndex < 0 || e.RowIndex < 0) + return; + string headerText = dgvProduct.Columns[e.ColumnIndex].HeaderText; + var skuId = dgvProduct.Rows[e.RowIndex].Cells["colSkuId"].Value.ParseToString(); + var prodSku = lstJSTListProductSkuInfo.FirstOrDefault(p => p.skuId == skuId); + var row = dgvProduct.Rows[e.RowIndex]; + + switch (headerText) + { + case "删除": + //if (BaseMsgForm.ShowConfirm("确定删除商品吗?删除后不可恢复!").DialogResult == DialogResult.Cancel) + // return; + //DeleteProduct(dbId); + dgvProduct.Rows.Remove(row); + lstJSTListProductSkuInfo.Remove(prodSku); + NaiBa.Util.Helper.ConfigHelper.SaveConfig("supplier_product_sku_list_" + MainForm.ProcessCount, lstJSTListProductSkuInfo); + break; + case "图片": + var imgUrl = dgvProduct.Rows[e.RowIndex].Cells["colImgUrl"].Value.ParseToString().Replace("?imageView2/2/w/90/h/90", ""); + Dictionary dic = new Dictionary(); + dic[imgUrl] = imgUrl; + ShowImgForm imgFrom = new ShowImgForm(imgUrl, dic); + imgFrom.ShowDialog(); + break; + case "": + dgvProduct.Rows[e.RowIndex].Cells["colCheck"].Value = !(bool)dgvProduct.Rows[e.RowIndex].Cells["colCheck"].Value; + break; + default: + break; + } + } + + private void btnCollectSupplier_Click(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(currentGetSupplierListParamData)) + { + BaseMsgForm.ShowError("请在网页上选择要搜索的供应商商品列表页面"); + return; + } + if (dgvProduct.Rows.Count > 0) + { + if (BaseMsgForm.ShowConfirm("当前列表已有采集数据,是否重新采集?").DialogResult == DialogResult.Cancel) + { + return; + } + } + + this.pbLoading.Visible = true; + dgvProduct.Rows.Clear(); + lstJSTListProductSkuInfo.Clear(); + if (cancellationTokenSource != null && cancellationTokenSource.IsCancellationRequested) + cancellationTokenSource.Cancel(); + cancellationTokenSource = new CancellationTokenSource(); + Task.Run(() => + { + try + { + GetSupplierGoodsSkuList(); + } + catch (Exception ex) + { + BaseMsgForm.ShowError(ex.Message); + } + Invoke(new Action(() => + { + this.pbLoading.Visible = false; + //this.statusBar.lblTaskStatus.Text = "正在删除..."; + })); + }, cancellationTokenSource.Token); + } + + void GetSupplierGoodsSkuList() + { + List cookieList = CEFBrowser.GetCookieList(".scm121.com", cefWebBrowser.GetCookieManager(null)); + var shop = new ShopLoginInfo(); + shop.Cookies = JsonHelper.SerializeObject(cookieList); + + var Jobj = JsonHelper.JObjectParse(currentGetSupplierListParamData); + Jobj["pageSize"] = 300; + int page = pageStart; + while (page <= pageEnd) + { + if (cancellationTokenSource.IsCancellationRequested) + break; + + if (page % 20 == 19) + NaiBa.Util.Helper.ConfigHelper.SaveConfig("supplier_product_sku_list_" + MainForm.ProcessCount, lstJSTListProductSkuInfo); + + Jobj["pageNum"] = page; + Jobj["searchType"] = 1; + Invoke(new Action(() => + { + this.statusBar.lblTaskStatus.Text = "正在采集第 " + page + " 页"; + })); + Thread.Sleep(Randomx.GetId(1000, 2000)); + page++; + + var lstRst = GetSkuLst(shop, Jobj, currentSupplierId); + if (!lstRst.Contains("\"success\":true")) + { + var errMsg = BaseRegex.GetStringJson(ref lstRst, "message"); + if (string.IsNullOrEmpty(errMsg)) + errMsg = lstRst; + BaseMsgForm.ShowError("查询错误:" + errMsg); + return; + } + + List jstLst = new List(); + try + { + foreach (var jItem in JsonHelper.JObjectParse(lstRst)["data"]) + { + JSTListProductSkuInfo jstProd = JsonHelper.DeserializeJsonToObject(JsonHelper.SerializeObject(jItem)); + jstLst.Add(jstProd); + } + if (jstLst.Count <= 0) + break; + + lstJSTListProductSkuInfo.AddRange(jstLst); + } + catch (Exception ex) + { + Invoke(new Action(() => + { + this.statusBar.lblTaskStatus.Text = "发生错误 " + ex.Message; + })); + Thread.Sleep(2000); + } + + JObject JObjGetSupplierPrice = new JObject(); + JObjGetSupplierPrice["supplierCoId"] = Jobj["supplierCoId"].ParseToString(); + JObjGetSupplierPrice["idAndItemCodeVos"] = new JArray(); + foreach (var prodSku in jstLst) + { + var JObjSku = new JObject(); + JObjSku["itemCode"] = prodSku.itemCode; + JObjSku["skuId"] = prodSku.skuId; + (JObjGetSupplierPrice["idAndItemCodeVos"] as JArray).Add(JObjSku); + } + var lstRst2 = GetSkuPriceLst(shop, JObjGetSupplierPrice, currentSupplierId); + if (!lstRst2.Contains("\"success\":true")) + { + var errMsg = BaseRegex.GetStringJson(ref lstRst2, "message"); + if (string.IsNullOrEmpty(errMsg)) + errMsg = lstRst2; + BaseMsgForm.ShowError("查询错误:" + errMsg); + return; + } + try + { + JArray skuArr = JsonHelper.JObjectParse(lstRst2)["data"] as JArray; + foreach (var skuObj in skuArr) + { + var sku = jstLst.FirstOrDefault(s => s.skuId == skuObj["skuId"].ParseToString()); + if (sku != null) + { + sku.supplyPrice = skuObj["supplyPrice"].ParseToDecimal(); + sku.stock = skuObj["stock"].ParseToInt(); + sku.weight = skuObj["weight"].ParseToDecimal(); + sku.stockTime = skuObj["stockTime"].ParseToString().ParseToDateTime(); + } + } + } + catch (Exception ex) + { + Invoke(new Action(() => + { + this.statusBar.lblTaskStatus.Text = "发生错误 " + ex.Message; + })); + Thread.Sleep(2000); + } + + Invoke(new Action(() => + { + foreach (var prodSku in jstLst) + { + prodSku.coid = Jobj["supplierCoId"].ParseToString(); + prodSku.supplierName = currentSupplierName; + prodSku.supplierId = currentSupplierId; + var id = dgvProduct.Rows.Add( + true, + prodSku.coid, + prodSku.supplierName, + prodSku.itemSpuId, + prodSku.itemName, + prodSku.pic.ParseToString().Replace("https://", "http://"), + DataGridViewExtension.defaultBitmap, + prodSku.skuId, + prodSku.color + ";" + prodSku.spec, + prodSku.supplyPrice, + prodSku.stock, + "删除", + prodSku.Msg + ); + dgvProduct.Rows[id].Height = 60; + + } + })); + } + NaiBa.Util.Helper.ConfigHelper.SaveConfig("supplier_product_sku_list_" + MainForm.ProcessCount, lstJSTListProductSkuInfo); + Invoke(new Action(() => + { + BaseMsgForm.ShowInfo("采集完成"); + })); + } + + private void txtPageStart_TextChanged(object sender, EventArgs e) + { + pageStart = txtPageStart.Text.Trim().ParseToInt(); + } + + private void txtPageEnd_TextChanged(object sender, EventArgs e) + { + pageEnd = txtPageEnd.Text.Trim().ParseToInt(); + } + + private void btnStopStop_Click(object sender, EventArgs e) + { + if (cancellationTokenSource != null) + cancellationTokenSource.Cancel(); + Task.Run(() => + { + Thread.Sleep(3000); + Invoke(new Action(() => + { + if (cancellationTokenSource == null || cancellationTokenSource.IsCancellationRequested) + pbLoading.Visible = false; + })); + }); + } + + private void btnSaveDb_Click(object sender, EventArgs e) + { + //"&product_get_type=" + HttpUtility.UrlEncode("厂商直采", Encoding.UTF8); + List cookieList = CEFBrowser.GetCookieList(".scm121.com", cefWebBrowser.GetCookieManager(null)); + var shop = new ShopLoginInfo(); + shop.Cookies = JsonHelper.SerializeObject(cookieList); + + List rowLst = new List(); + rowLst.AddRange(dgvProduct.Rows.Cast().Where(r => r.Cells["colCheck"].Value.ParseToBool() == true)); + + if (cancellationTokenSource != null && cancellationTokenSource.IsCancellationRequested) + cancellationTokenSource.Cancel(); + cancellationTokenSource = new CancellationTokenSource(); + + this.pbLoading.Visible = true; + var t = Task.Run(() => + { + int success = 0; + int total = rowLst.Count; + foreach (var row in rowLst) + { + if (cancellationTokenSource.IsCancellationRequested) + break; + + Invoke(new Action(() => + { + row.Cells["colMsg"].Value = ""; + })); + + Invoke(new Action(() => + { + this.statusBar.lblTaskStatus.Text = "正在入库表格第 " + (row.Index + 1) + " 行数据 成功 " + success + " 条"; + })); + + var skuId = row.Cells["colSkuId"].Value.ParseToString(); + var prodSku = lstJSTListProductSkuInfo.FirstOrDefault(c => c.skuId == skuId); + if (prodSku == null) + continue; + + if (!chkOverride.Checked && !prodSku.Msg.IsNullOrEmpty()) + { + if (prodSku.Msg.Contains("已存在相同SkuId,跳过") || prodSku.Msg.Contains("商品Sku覆盖成功") || prodSku.Msg.Contains("商品Sku入库成功")) + { + //已存在相同SkuId,跳过 + //商品Sku覆盖成功! + //商品Sku入库成功! + prodSku.Msg = "已存在相同SkuId,跳过"; + Invoke(new Action(() => + { + row.Cells["colMsg"].Value = prodSku.Msg; + })); + success++; + continue; + } + } + + Thread.Sleep(25); + if (row.Index % 20 == 0) + NaiBa.Util.Helper.ConfigHelper.SaveConfig("supplier_product_sku_list_" + MainForm.ProcessCount, lstJSTListProductSkuInfo); + + bool isExist = false; + var existUrl = BaseClass.BuildPDDObjString("product/get_jst_sku_list"); + string existData = UserLogin.GetSignaturex() + "&search_skuId=" + prodSku.skuId; + string html = GetHtml.PostUtf8(existUrl, existData); + if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200")) + html = GetHtml.PostUtf8(existUrl, existData); + if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200")) + { + Invoke(new Action(() => + { + row.Cells["colMsg"].Value = "入库失败,产品数据库连接失败"; + })); + continue; + } + else + { + if (html.Contains("\"data\":[") && !html.Contains("\"data\":[]")) + isExist = true; + } + + //var SetPartnerSpuRst = ""; + var url = BaseClass.BuildPDDObjString("product/add_jst_sku"); + if (isExist) + { + if (chkOverride.Checked) + { + url = BaseClass.BuildPDDObjString("product/mdy_jst_sku"); + } + else + { + //入库成功 已存在相同id商品 + prodSku.Msg = "已存在相同SkuId,跳过"; + Invoke(new Action(() => + { + row.Cells["colMsg"].Value = prodSku.Msg; + })); + success++; + continue; + } + } + + var data = Work.UserLogin.GetSignaturex() + + "&coid=" + prodSku.coid + + "&supplierId=" + prodSku.supplierId + + "&supplierName=" + prodSku.supplierName + + "&skuId=" + prodSku.skuId + + "&itemSpuId=" + prodSku.itemSpuId + + "&pic=" + prodSku.pic + + "&itemName=" + HttpUtility.UrlEncode(prodSku.itemName, Encoding.UTF8) + + "&styleCode=" + prodSku.styleCode + + "&itemCode=" + prodSku.itemCode + + "&color=" + HttpUtility.UrlEncode(prodSku.color, Encoding.UTF8) + + "&spec=" + HttpUtility.UrlEncode(prodSku.spec, Encoding.UTF8) + + "&salePrice=" + prodSku.salePrice + + "&supplyPrice=" + prodSku.supplyPrice + + "&stock=" + prodSku.stock + + "&stockTime=" + prodSku.stockTime.ToString("yyyy-MM-dd HH:mm:ss") + + "&weight=" + prodSku.weight; + + html = GetHtml.PostUtf8(url, data); + if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200")) + html = GetHtml.PostUtf8(url, data); + if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200")) + { + string msg = "商品Sku入库失败!请检查网络连接:" + BaseRegex.GetStringJson(ref html, "msg"); + Invoke(new Action(() => + { + row.Cells["colMsg"].Value = msg; + })); + } + else + { + success++; + prodSku.Msg = "商品Sku入库成功!"; + if (url == BaseClass.BuildPDDObjString("product/mdy_jst_sku")) + prodSku.Msg = "商品Sku覆盖成功!"; + Invoke(new Action(() => + { + row.Cells["colMsg"].Value = prodSku.Msg; + })); + } + } + NaiBa.Util.Helper.ConfigHelper.SaveConfig("supplier_product_sku_list_" + MainForm.ProcessCount, lstJSTListProductSkuInfo); + + Invoke(new Action(() => + { + this.pbLoading.Visible = false; + BaseMsgForm.ShowInfo("商品入库完毕!"); + })); + }, cancellationTokenSource.Token); + } + + + public string GetGoodsLst(ShopLoginInfo shop, JObject searchDataObj) + { + string url = "https://sc.scm121.com/api/goods/buyer/supplier/goods/list"; + string referer = "https://sc.scm121.com/manage/goods/qualitySupplier/detail/" + searchDataObj["supplierId"] + "?showErpList=1"; + var lstRst = JSTHttpResponseBLL.JSTPostResponse(shop, url, JsonHelper.SerializeObject(searchDataObj), referer, appVersion); + for (int i = 0; i < 3 && !lstRst.Contains("\"success\":true"); i++) + { + Thread.Sleep(Randomx.GetId(1000, 2000)); + lstRst = JSTHttpResponseBLL.JSTPostResponse(shop, url, JsonHelper.SerializeObject(searchDataObj), referer, appVersion); + } + return lstRst; + } + + public string GetSkuLst(ShopLoginInfo shop, JObject searchDataObj, string supplierId) + { + string url = "https://sc.scm121.com/api/goods/buyer/supplier/goods/skuList"; + string referer = "https://sc.scm121.com/manage/goods/qualitySupplier/detail/" + supplierId + "?showErpList=1"; + var lstRst = JSTHttpResponseBLL.JSTPostResponse(shop, url, JsonHelper.SerializeObject(searchDataObj), referer, appVersion); + for (int i = 0; i < 3 && !lstRst.Contains("\"success\":true"); i++) + { + Thread.Sleep(Randomx.GetId(1000, 2000)); + lstRst = JSTHttpResponseBLL.JSTPostResponse(shop, url, JsonHelper.SerializeObject(searchDataObj), referer, appVersion); + } + return lstRst; + } + + public string GetSkuPriceLst(ShopLoginInfo shop, JObject searchDataObj, string supplierId) + { + string url = "https://sc.scm121.com/api/goods/buyer/supplier/asyncQuerySkuAdditional"; + string referer = "https://sc.scm121.com/manage/goods/qualitySupplier/detail/" + supplierId + "?showErpList=1"; + var lstRst = JSTHttpResponseBLL.JSTPostResponse(shop, url, JsonHelper.SerializeObject(searchDataObj), referer, appVersion); + for (int i = 0; i < 3 && !lstRst.Contains("\"success\":true"); i++) + { + Thread.Sleep(Randomx.GetId(1000, 2000)); + lstRst = JSTHttpResponseBLL.JSTPostResponse(shop, url, JsonHelper.SerializeObject(searchDataObj), referer, appVersion); + } + return lstRst; + } + + public string GetHotLst(ShopLoginInfo shop, JObject searchDataObj) + { + string url = "https://sc.ttdahuo.com/api/goods/freshman/mall/goods/list"; + string referer = "https://sc.ttdahuo.com/findCooperation/newlywedZone"; + var lstRst = JSTHttpResponseBLL.JSTPostResponse(shop, url, JsonHelper.SerializeObject(searchDataObj), referer, appVersion); + for (int i = 0; i < 3 && !lstRst.Contains("\"success\":true"); i++) + { + Thread.Sleep(Randomx.GetId(1000, 2000)); + lstRst = JSTHttpResponseBLL.JSTPostResponse(shop, url, JsonHelper.SerializeObject(searchDataObj), referer, appVersion); + } + return lstRst; + } + + public string GetPddBaseData(ShopLoginInfo shop, JSTListProductInfo jstLstProd) + { + string url = "https://sc.scm121.com/api/goods/goods/goGoodsPdd/queryBaseData?itemSpuId=" + jstLstProd.itemSpuId + "&shelvesType=DISTRIBUTION&originator=SUPPLIER&itemCoId=" + jstLstProd.itemCoId; + string referer = "https://sc.scm121.com/manage/goods/qualitySupplier/detail/" + jstLstProd.supplierId + "?showErpList=1"; + var getDetailRst = JSTHttpResponseBLL.JSTGetResponse(shop, url, referer, appVersion); + for (int i = 0; i< 3 && !getDetailRst.Contains("\"success\":true"); i++) + { + Thread.Sleep(Randomx.GetId(1000, 2000)); + getDetailRst = JSTHttpResponseBLL.JSTGetResponse(shop, url, referer, appVersion); + } + return getDetailRst; + } + + public string GetGoodsDetail(ShopLoginInfo shop, JSTListProductInfo jstLstProd) + { + string url = "https://sc.scm121.com/api/goods/goods/queryGoodsDetail"; + string referer = "https://sc.scm121.com/manage/goods/qualitySupplier/goodsDetail/" + jstLstProd.itemSpuId + "?itemCoId=" + jstLstProd.itemCoId + "&noBack=true"; + //data = @"{""itemSpuId"":""0A3A5CC4F524430A9F3D7640BD0D3029"",""itemCoId"":""11596521""}"; + string data = @"{""itemSpuId"":""" + jstLstProd.itemSpuId + @""",""itemCoId"":""" + jstLstProd.itemCoId + @"""}"; + + var detailRst = ""; + for (int i = 0; i < 3 && !detailRst.Contains("\"success\":true"); i++) + { + Thread.Sleep(Randomx.GetId(1000, 2000)); + detailRst = JSTHttpResponseBLL.JSTPostResponse(shop, url, data, referer, appVersion); + } + return detailRst; + } + + public string GetItemSpuInfo(ShopLoginInfo shop, JSTListProductInfo jstLstProd) + { + string url = "https://sc.scm121.com/api/goods/shelves/itemSpuShelves/getItemSpuInfo"; + string referer = "https://sc.scm121.com/manage/goods/qualitySupplier/goodsDetail/" + jstLstProd.itemSpuId + "?itemCoId=" + jstLstProd.itemCoId + "&noBack=true"; + string data = @"{""itemSpuId"":""" + jstLstProd.itemSpuId + @""",""itemCoId"":""" + jstLstProd.itemCoId + @"""}"; + data = @"{""id"":""" + jstLstProd.itemSpuId + @""",""platformType"":""Pinduoduo"",""shelvesType"":""DISTRIBUTION"",""companyType"":""SUPPLIER"",""itemCoId"":""" + + jstLstProd.itemCoId + @"""}"; + + var detailRst = ""; + for (int i = 0; i < 3 && !detailRst.Contains("\"success\":true"); i++) + { + Thread.Sleep(Randomx.GetId(1000, 2000)); + detailRst = JSTHttpResponseBLL.JSTPostResponse(shop, url, data, referer, appVersion); + } + return detailRst; + } + + public string categoryForecastWithPlatform(ShopLoginInfo shop, JSTListProductInfo jstLstProd, string shopId) + { + string url = "https://sc.scm121.com/api/goods/platform/category/categoryForecastWithPlatform"; + string referer = "https://sc.scm121.com/manage/goods/qualitySupplier/goodsDetail/" + jstLstProd.itemSpuId + "?itemCoId=" + jstLstProd.itemCoId + "&noBack=true"; + string data = @"{""itemCoId"":""" + jstLstProd.coId + @""",""itemSpuId"":""" + jstLstProd.itemSpuId + + @""",""shopId"":""" + shopId + @""",""shopType"":""Pinduoduo"",""itemName"":""" + jstLstProd.itemName + @"""}"; + + var detailRst = ""; + for (int i = 0; i < 3 && !detailRst.Contains("\"success\":true"); i++) + { + Thread.Sleep(Randomx.GetId(1000, 2000)); + detailRst = JSTHttpResponseBLL.JSTPostResponse(shop, url, data, referer, appVersion); + } + return detailRst; + } + + private void btnSearchTitle_Click(object sender, EventArgs e) + { + pbLoading.Visible = true; + Task.Run(() => + { + foreach (DataGridViewRow row in dgvProduct.Rows) + { + Invoke(new Action(() => + { + + row.Visible = (row.Cells["colGoodsName"].Value.ParseToString().Contains(txtTitle.Text.Trim()) || txtTitle.Text.Trim() == ""); + if (row.Visible == false) + row.Cells["colCheck"].Value = false; + + })); + } + Invoke(new Action(() => + { + pbLoading.Visible = false; + })); + }); + } + + private void btnCancelSelect_Click(object sender, EventArgs e) + { + Task.Run(() => { + + foreach(DataGridViewRow row in dgvProduct.Rows) + { + if (row.Cells["colMsg"].Value.ParseToString().Contains("入库成功") || row.Cells["colMsg"].Value.ParseToString().Contains("已存在相同id商品")) + { + Invoke(new Action(() => + { + row.Cells["colcheck"].Value = false; + })); + } + } + }); + } + + private void txtWaitSeconds_TextChanged(object sender, EventArgs e) + { + getDetailWait = txtWaitSeconds.Text.ParseToInt(); + } + + private void btnExportCookie_Click(object sender, EventArgs e) + { + List cookieList = CEFBrowser.GetCookieList(".scm121.com", cefWebBrowser.GetCookieManager(null)); + var shop = new ShopLoginInfo(); + shop.Cookies = JsonHelper.SerializeObject(cookieList); + + List cooks = null; + try { cooks = JsonHelper.DeserializeJsonToList(shop.Cookies); } catch (Exception ex) { } + if (cooks == null) + cooks = new List(); + + string cookJs = ""; + var keys = new string[] { "acw_tc", "DISTRYBUTION_TOKEN" }; + foreach (var shopCook in cooks) + { + var cookie = shopCook.Name + "=" + shopCook.Value; + if (!keys.Any(k => cookie.StartsWith(k))) + continue; + cookJs += "\r\ndocument.cookie='" + cookie.Substring(0, Math.Max(0, cookie.IndexOf("="))) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';"; + } + foreach (var shopCook in cooks) + { + var cookie = shopCook.Name + "=" + shopCook.Value; + if (!keys.Any(k => cookie.StartsWith(k))) + continue; + cookJs += "\r\ndocument.cookie='" + cookie + "; domain=.scm121.com; expires=" + + DateTime.Now.AddMonths(1).ToUniversalTime().ToString("ddd, dd MMM yyyy HH:mm:ss 'UTC'", new DateTimeFormatInfo()) + "; path=/';"; + } + cookJs += "\r\nsetTimeout(() => { window.location.href='https://sc.scm121.com/suppliersManage/suppliersList/onlineSuppliers'; }, 200)"; + Clipboard.SetDataObject(cookJs); + BaseMsgForm.ShowInfo("复制成功"); + } + + + private void btnStop_Click(object sender, EventArgs e) + { + if (CancelReturn != null) + CancelReturn.Cancel(); + } + } +} diff --git a/TEMUKJD/ToolForms/GetJuShuitanProductSKUListForm.resx b/TEMUKJD/ToolForms/GetJuShuitanProductSKUListForm.resx new file mode 100644 index 0000000..9762245 --- /dev/null +++ b/TEMUKJD/ToolForms/GetJuShuitanProductSKUListForm.resx @@ -0,0 +1,204 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + \ No newline at end of file diff --git a/TEMUKJD/WXForms/AdminForms/WXAdminForm.Designer.cs b/TEMUKJD/WXForms/AdminForms/WXAdminForm.Designer.cs index 6999616..414b79c 100644 --- a/TEMUKJD/WXForms/AdminForms/WXAdminForm.Designer.cs +++ b/TEMUKJD/WXForms/AdminForms/WXAdminForm.Designer.cs @@ -32,13 +32,15 @@ System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("超级用户管理"); System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("PDD产品库"); 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("超级权限管理", new System.Windows.Forms.TreeNode[] { + System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("Sku采集回传"); + System.Windows.Forms.TreeNode treeNode6 = new System.Windows.Forms.TreeNode("图片工具"); + System.Windows.Forms.TreeNode treeNode7 = new System.Windows.Forms.TreeNode("超级权限管理", new System.Windows.Forms.TreeNode[] { treeNode1, treeNode2, treeNode3, treeNode4, - treeNode5}); + treeNode5, + treeNode6}); this.panel1 = new System.Windows.Forms.Panel(); this.panel3 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel(); @@ -137,12 +139,14 @@ treeNode3.Text = "PDD产品库"; treeNode4.Name = "厂家商品采集"; treeNode4.Text = "厂家商品采集"; - treeNode5.Name = "图片工具"; - treeNode5.Text = "图片工具"; - treeNode6.Name = "超级权限管理"; - treeNode6.Text = "超级权限管理"; + treeNode5.Name = "Sku采集回传"; + treeNode5.Text = "Sku采集回传"; + treeNode6.Name = "图片工具"; + treeNode6.Text = "图片工具"; + treeNode7.Name = "超级权限管理"; + treeNode7.Text = "超级权限管理"; this.tv.Nodes.AddRange(new System.Windows.Forms.TreeNode[] { - treeNode6}); + treeNode7}); this.tv.OverForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); this.tv.Size = new System.Drawing.Size(140, 446); this.tv.TabIndex = 1; diff --git a/TEMUKJD/WXForms/AdminForms/WXAdminForm.cs b/TEMUKJD/WXForms/AdminForms/WXAdminForm.cs index c70ca19..9ff6151 100644 --- a/TEMUKJD/WXForms/AdminForms/WXAdminForm.cs +++ b/TEMUKJD/WXForms/AdminForms/WXAdminForm.cs @@ -21,6 +21,7 @@ namespace TemuKJD.WXForms.AdminForms public Lazy adminShopForm = new Lazy(); public Lazy pddDbProdListForm = new Lazy(); public Lazy getJuShuitanProdForm = new Lazy(); + public Lazy getJuShuitanProductSKUListForm = new Lazy(); public Lazy imgToolForm = new Lazy(); public WXAdminForm() @@ -32,7 +33,7 @@ namespace TemuKJD.WXForms.AdminForms tv.SelectedNode = tv.Nodes[0].Nodes[0]; tv.ExpandGroup(tv.Nodes[0].Name); - List hideName = new List() { "图片工具1", "超级用户管理", "超级店铺管理", "PDD产品库", "SKU替换图", "选品加价管理", "认领待上传", "库存上传", "商品核价" }; + List hideName = new List() { "图片工具", "Sku采集回传1", "超级用户管理", "超级店铺管理", "PDD产品库", "SKU替换图", "选品加价管理", "认领待上传", "库存上传", "商品核价" }; if (BaseClass.GroupId == 3) { @@ -85,6 +86,9 @@ namespace TemuKJD.WXForms.AdminForms case "厂家商品采集": SetForm(getJuShuitanProdForm.Value); break; + case "Sku采集回传": + SetForm(getJuShuitanProductSKUListForm.Value); + break; case "图片工具": SetForm(imgToolForm.Value); break;