diff --git a/AllBase/AllBase.csproj b/AllBase/AllBase.csproj index 7dd276b..00adec7 100644 --- a/AllBase/AllBase.csproj +++ b/AllBase/AllBase.csproj @@ -218,8 +218,11 @@ + + + @@ -289,6 +292,7 @@ + diff --git a/AllBase/BaseClass.cs b/AllBase/BaseClass.cs index b19bc64..6eccd85 100644 --- a/AllBase/BaseClass.cs +++ b/AllBase/BaseClass.cs @@ -27,7 +27,7 @@ namespace AllBase /// /// 版本ID /// - public static int VersionCount = 1075; + public static int VersionCount = 1086; //public static int VersionCount = 613; /// diff --git a/AllBase/Model/Config/WxShopMainStatistics.cs b/AllBase/Model/Config/WxShopMainStatistics.cs index c4641fc..d1b2fb5 100644 --- a/AllBase/Model/Config/WxShopMainStatistics.cs +++ b/AllBase/Model/Config/WxShopMainStatistics.cs @@ -1,4 +1,5 @@ -using System; +using AllBase.Model.Result.WXResult; +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -75,6 +76,7 @@ namespace AllBase.Model.Config public int? ProdCount { get; set; } public decimal? curScoreValue {get;set;} + public DSRShopScoreRetInfo scoreRetInfo { get; set; } = new DSRShopScoreRetInfo(); public DateTime lastRefreshDate { get; set; } = DateTime.MinValue; /// diff --git a/AllBase/Model/Result/PDDResult/PddBuyerOrderInfoLite.cs b/AllBase/Model/Result/PDDResult/PddBuyerOrderInfoLite.cs index 75ee3bf..2e026ba 100644 --- a/AllBase/Model/Result/PDDResult/PddBuyerOrderInfoLite.cs +++ b/AllBase/Model/Result/PDDResult/PddBuyerOrderInfoLite.cs @@ -38,6 +38,7 @@ namespace AllBase.Model.Result.PDDResult if (expressCompanyName.Contains("京东快递")) return "JD"; if (expressCompanyName.Contains("京东快运")) return "JDKY"; if (expressCompanyName.Contains("京东大件物流")) return "JD"; + if (expressCompanyName.Contains("其他快递")) return "OTHER"; return ""; } diff --git a/AllBase/Model/Result/WXResult/DSRShopScoreInfo.cs b/AllBase/Model/Result/WXResult/DSRShopScoreInfo.cs new file mode 100644 index 0000000..eb818d9 --- /dev/null +++ b/AllBase/Model/Result/WXResult/DSRShopScoreInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AllBase.Model.Result.WXResult +{ + public class DSRShopScoreRetInfo + { + public int? code { get; set; } // 0 + public DSRShopScoreInfo dsrScore { get; set; } + public extInfo ext { get; set; } + } + + public class extInfo + { + public int? version { get; set; } // 1 + + } + + public class DSRShopScoreInfo + { + public decimal? curValue { get; set; } // 4.87, // 综合得分 + public decimal? rankRatio { get; set; } // 0.9107, //优于91.07%同行 + public int? level { get; set; } // 3, // 3好 2中 1差 + public List valueList { get; set; } + public string curDate { get; set; } // "20260518" + } + + public class ScoreValueInfo + { + public string date { get; set; } // "20260518", + public decimal? value { get; set; } // 4.87, + public decimal? grossAvgValue { get; set; } // 4.633553482240027, + public decimal? scoreMedian { get; set; } // 0.0472, + public int? level { get; set; } // 3 + + } +} diff --git a/AllBase/Model/Result/WXResult/WxActivityData.cs b/AllBase/Model/Result/WXResult/WxActivityData.cs new file mode 100644 index 0000000..60a44bf --- /dev/null +++ b/AllBase/Model/Result/WXResult/WxActivityData.cs @@ -0,0 +1,61 @@ +using AllBase.Model.Param.WXParam; +using NaiBa.Util; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AllBase.Model.Result.WXResult +{ + public class WxActivityData + { + public requestProductInfoList requestProductInfoList { get; set; } = new requestProductInfoList(); + public ConcurrentList productList { get; set; } = new ConcurrentList(); + //public int? totalNum { get; set; } // "1648" + //public int? totalPage { get; set; } // "165" + } + + public class requestProductInfoList + { + public int? code { get; set; } // 0 + public ConcurrentList resultList { get; set; } = new ConcurrentList(); + } + + public class requestProductInfoResult + { + public string shopId { get; set; } + + + public requestProductInfo product { get; set; } + + /// + /// 是否已报名活动 + /// + public bool? isAdded { get; set; } // true + public int? activityStockNum { get; set; } // 0 + public int? activityPrice { get; set; } // 557 + public int? dailyStock { get; set; } // 0, + public int? stockMode { get; set; } // 1, + + public string invalidString { get; set; } // "", + public string invalidStringPrecheck { get; set; } // "", + public int? canSetLowestPrice { get; set; } // 0, + public int? minActivityPrice { get; set; } // 567, + public int? minStockNum { get; set; } // 0, + public int? defaultStockMode { get; set; } // 1, + public string maxPlatform_618Discount { get; set; } // "28", + public string maxPlatform_618DiscountMerchant { get; set; } // "42", + public string maxPlatformSubsidy { get; set; } // "28", + public string maxMerchantSubsidy { get; set; } // "42", + public string validPrice { get; set; } // "567", + public string salePrice { get; set; } // "567" + } + + public class requestProductInfo + { + public string productId { get; set; } // "10000848702293", + public string skuId { get; set; } // "14973867421" + + } +} diff --git a/AllBase/Model/Result/WXResult/WxConsignmentOrderInfo.cs b/AllBase/Model/Result/WXResult/WxConsignmentOrderInfo.cs new file mode 100644 index 0000000..0195b46 --- /dev/null +++ b/AllBase/Model/Result/WXResult/WxConsignmentOrderInfo.cs @@ -0,0 +1,109 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AllBase.Model.Result.WXResult +{ + public class WxConsignmentOrderInfo + { + public WxConsignmentOrderCommonInfo commonInfo { get; set; } + public List productsList { get; set; } + public WxConsignmentOrderEditAddrInfo editAddrInfo { get; set; } + public WxConsignmentOrderBuyerInfo buyerInfo { get; set; } + public WxConsignmentOrderNotesInfo notesInfo { get; set; } + public WxConsignmentOrderPresentInfo presentInfo { get; set; } + public object expressData { get; set; } + public WxConsignmentOrderInspectInfo inspectInfo { get; set; } + public WxConsignmentOrderCustomInfo customInfo { get; set; } + public WxConsignmentOrderBackUpInfo backUpInfo { get; set; } + } + + public class WxConsignmentOrderBackUpInfo + { + public int? type { get; set; } // 0, + public string title { get; set; } // "", + public string taskId { get; set; } // "", + public object delayDeliveryInfo { get; set; } // { } + } + + public class WxConsignmentOrderCustomInfo + { + public string content { get; set; } // "", + public int? type { get; set; } // 0, + public string previewImgUrl { get; set; } // "" + } + + public class WxConsignmentOrderInspectInfo + { + public string inspectOrgName { get; set; } // "", + public string warehouseName { get; set; } // "" + + } + + public class WxConsignmentOrderPresentInfo + { + public string presentOrderId { get; set; } // "", + public string greetingMessage { get; set; } // "" + + } + + public class WxConsignmentOrderNotesInfo + { + public bool? hasNotes { get; set; } // true, + public string customerNotes { get; set; } // "", + public string merchantNotes { get; set; } // "260517-004110435981905", + public string presentNotes { get; set; } // "" + } + + public class WxConsignmentOrderBuyerInfo + { + public string nickName { get; set; } // "" + } + + public class WxConsignmentOrderEditAddrInfo + { + public int? applyEditAddrStatus { get; set; } // 0, + public string applyEditAddrAuditStaff { get; set; } // "", + public string applyEditAddrAuditTimeText { get; set; } // "" + + } + + public class WxConsignmentOrderProductInfo + { + public string productId { get; set; } // "10000845960754", + public string thumbImg { get; set; } // "https://wst.wxapp.tc.qq.com/161/20304/snscosdownload/SH/reserved/69de113c00028665206560e2d33f0315000000a100004f50", + public string title { get; set; } // "应急灯家用超长续航充电停电太阳能户外备用照明手提马灯露营挂灯", + public string skuId { get; set; } // "14913157803", + public List saleParam { get; set; } // [ "一拉既亮【金黄色】充手机+一灯四用", "尊享版-太阳能O电费【900N】超长续航36" ], + public int? productCnt { get; set; } // 1, + public string deliveryTimeStr { get; set; } // "", + public List icons { get; set; } // [ ], + public string perExchangeScore { get; set; } // "", + public List warning { get; set; } // [ ], + public string salePrice { get; set; } // "4590", + public string spuCode { get; set; } // "EC110000617310104A", + public string skuCode { get; set; } // "BSHY-923-SKYH-YS", + public bool? isPreSale { get; set; } // false, + public bool? isFreeGift { get; set; } // false, + public string afterSaleStatusStr { get; set; } // "", + public int? realPrice { get; set; } // 4590, + public int? perRealPrice { get; set; } // 4590 + + } + + public class WxConsignmentOrderCommonInfo + { + public string cosignmentOrderId { get; set; } // "4436453689109278464", + public string orderId { get; set; } // "3736453673788794624", + public int? status { get; set; } // 100, + public string statusStr { get; set; } // "待发货", + public string createTimeStr { get; set; } // "5/18 04:31", + public string createTimeStrForB { get; set; } // "2026/05/18 04:31", + public string orderCreateTimeStrForB { get; set; } // "2026/05/18 04:30", + public string supplierName { get; set; } // "一组专用", + public bool? isGiftOrder { get; set; } // false + + } +} diff --git a/AllBase/Model/Result/WXResult/WxOptimizeFeedbackOrderInfo.cs b/AllBase/Model/Result/WXResult/WxOptimizeFeedbackOrderInfo.cs new file mode 100644 index 0000000..72445ae --- /dev/null +++ b/AllBase/Model/Result/WXResult/WxOptimizeFeedbackOrderInfo.cs @@ -0,0 +1,59 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AllBase.Model.Result.WXResult +{ + public class WxOptimizeFeedbackOrderInfo + { + public string shopId { get; set; } + public string shopName { get; set; } + public string remark { get; set; } + public string optimizeWaybillId { get; set; } + public string optimizeTime { get; set; } + public int? orderTime { get; set; } + /// + /// 收货 省 + /// + public string province { get; set; } + /// + /// 收货 市 + /// + public string city { get; set; } + /// + /// 收货 区 + /// + public string district‌ { get; set; } + + + public FeedbackOrderInfo orderInfo { get; set; } + public string negativeReviewReason { get; set; } // "", + public string complainReason { get; set; } // "投诉-物流停滞问题-长时间未更新物流信息", + public string payTime { get; set; } // "1776581954", + public FeedbackDeliveryInfo delivery { get; set; } + public string waybillId { get; set; } // "777402213446534" + } + + public class FeedbackDeliveryInfo + { + public string deliveryId { get; set; } // "STO", + public string deliveryName { get; set; } // "申通快递", + public string imgUrl { get; set; } // "https://res.wx.qq.com/shop/public/2023-07-11/691c3b97-4120-48aa-9d9e-8349ec367cd6.png" + } + + public class FeedbackOrderInfo + { + public string name { get; set; } // "【带透气网】中年妈妈装春夏短款马甲女休闲洋气坎肩外穿背心马夹", + public string skuName { get; set; } // "白色-2XL推荐120-135斤", + public string spuId { get; set; } // "10000714592956", + public string orderId { get; set; } // "3735806733643560704", + public string price { get; set; } // "5388", + public int? productCnt { get; set; } // 1, + public string imgUrl { get; set; } // "https://wst.wxapp.tc.qq.com/161/20304/snscosdownload/SH/reserved/69ddbc1e0009f7e724a46d3bc461b01e000000a100004f50", + public string skuCode { get; set; } // "", + public string skuThumbUrl { get; set; } // "https://wst.wxapp.tc.qq.com/161/20304/snscosdownload/SH/reserved/69ddbc1e0009f7e724a46d3bc461b01e000000a100004f50" + + } +} diff --git a/KJDService/KJD_WebService/BLL/BXX/BXXProductManage.cs b/KJDService/KJD_WebService/BLL/BXX/BXXProductManage.cs index 647e109..f802dd3 100644 --- a/KJDService/KJD_WebService/BLL/BXX/BXXProductManage.cs +++ b/KJDService/KJD_WebService/BLL/BXX/BXXProductManage.cs @@ -55,7 +55,7 @@ namespace KJD_Web.BLL.BXX string group = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "group"))?.Replace("'", "\\'"); string notes = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "notes"))?.Replace("'", "\\'"); string product_get_type = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "product_get_type"))?.Replace("'", "\\'"); - string sale_count = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "sale_count"))?.Replace("'", "\\'"); + int? sale_count = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "sale_count"))?.ParseToNullableInt(); string sale_count_text = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "sale_count_text"))?.Replace("'", "\\'"); string distribution_set = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "distribution_set"))?.Replace("'", "\\'"); string add_user_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "add_user_name"))?.Replace("'", "\\'"); @@ -180,7 +180,7 @@ namespace KJD_Web.BLL.BXX string main_img = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "main_img"))?.Replace("'", "\\'"); string group = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "group"))?.Replace("'", "\\'"); string notes = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "notes"))?.Replace("'", "\\'"); - string sale_count = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "sale_count"))?.Replace("'", "\\'"); + int? sale_count = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "sale_count"))?.ParseToNullableInt(); string sale_count_text = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "sale_count_text"))?.Replace("'", "\\'"); string wx_safe_status = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "wx_safe_status"))?.Replace("'", "\\'"); string special_prod_type = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "special_prod_type"))?.Replace("'", "\\'"); @@ -400,6 +400,58 @@ namespace KJD_Web.BLL.BXX return "{\"code\":19999,\"msg\":\"输入为空\"}"; } + + /// + /// 更新爆款数据商品 + /// + /// + /// + public string MdyBestSaleProd(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\":500,\"msg\":\"没有用户名\"}"; + } + + string spu_id = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "spu_id"))?.Replace("'", "\\'"); + int? view_uv = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "view_uv"))?.ParseToNullableInt(); + if (view_uv == null || string.IsNullOrWhiteSpace(spu_id)) + return "{\"code\":500,\"msg\":\"缺少商品曝光率或编号信息\"}"; + + string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString; + MysqlUtils mySql = new MysqlUtils(conn); + string sql = ""; + + sql = "update bxx.product p set"; + if (view_uv != null) + sql += " p.view_uv=" + view_uv + ","; + sql += " p.mdy_time='" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "',"; + sql = sql.TrimEnd(','); + sql += " where p.spu_id='" + spu_id + "' and p.special_prod_type='爆款数据'"; + + var rst = mySql.ExecuteNonQuery(sql); + mySql.Close(); + if (rst) + { + return "{\"code\":200,\"msg\":\"success\"}"; + } + else + { + return "{\"code\":500,\"msg\":\"" + mySql.Message + "\"}"; + } + } + return "{\"code\":19999,\"msg\":\"输入为空\"}"; + } + /// /// 获取商品SpuId(快速查询) /// @@ -541,6 +593,7 @@ namespace KJD_Web.BLL.BXX var ban_wx = RegexUtils.GetStringQuery(ref inputData, "ban_wx")?.Replace("'", "\\'"); var ban_pdd = RegexUtils.GetStringQuery(ref inputData, "ban_pdd")?.Replace("'", "\\'"); var add_user_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "add_user_name"))?.Replace("'", "\\'"); + var min_view_uv = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "min_view_uv"))?.ParseToNullableInt(); var is_not_count = RegexUtils.GetStringQuery(ref inputData, "is_not_count").ParseToBool(); // 不计数 int page = RegexUtils.GetStringQuery(ref inputData, "page").ParseToInt(); @@ -702,6 +755,10 @@ namespace KJD_Web.BLL.BXX { where += " and p.ban_pdd=" + ban_pdd; } + if (min_view_uv != null) + { + where += " and p.view_uv>=" + min_view_uv; + } if (!string.IsNullOrEmpty(add_user_name)) { add_user_name = "'" + string.Join("','", add_user_name.Split(new string[] { ",", ",", " " }, StringSplitOptions.RemoveEmptyEntries)) + "'"; diff --git a/KJDService/KJD_WebService/BLL/WXXD/WXProductManage.cs b/KJDService/KJD_WebService/BLL/WXXD/WXProductManage.cs index 2d991df..65f3dcc 100644 --- a/KJDService/KJD_WebService/BLL/WXXD/WXProductManage.cs +++ b/KJDService/KJD_WebService/BLL/WXXD/WXProductManage.cs @@ -367,10 +367,15 @@ namespace KJD_Web.BLL.WXXD */ } - public String WXMdyPDDProduct(string inputData) + public string WXMdyPDDProduct(string inputData) { return new BXX.BXXProductManage().MdyProduct(inputData); } + + public string MdyBestSaleProd(string inputData) + { + return new BXX.BXXProductManage().MdyBestSaleProd(inputData); + } public string WXAddSecretSpuIdShopIdMap(string inputData) { diff --git a/KJDService/KJD_WebService/BXXProductService.asmx.cs b/KJDService/KJD_WebService/BXXProductService.asmx.cs index bf771e5..960828c 100644 --- a/KJDService/KJD_WebService/BXXProductService.asmx.cs +++ b/KJDService/KJD_WebService/BXXProductService.asmx.cs @@ -194,6 +194,18 @@ namespace KJD_Web Context.Response.End(); } + [WebMethod] + public void mdy_best_sale_prod() + { + string jsontext = GetRequestJsonString(); + + var result = jsontext; + result = new BXXProductManage().MdyBestSaleProd(jsontext); + + Context.Response.Write(result); + Context.Response.End(); + } + [WebMethod] public void del_db_product() { diff --git a/KJDService/KJD_WebService/WXProductService.asmx.cs b/KJDService/KJD_WebService/WXProductService.asmx.cs index cec5741..624f10f 100644 --- a/KJDService/KJD_WebService/WXProductService.asmx.cs +++ b/KJDService/KJD_WebService/WXProductService.asmx.cs @@ -134,6 +134,18 @@ namespace KJD_Web Context.Response.End(); } + [WebMethod] + public void mdy_best_sale_prod() + { + string jsontext = GetRequestJsonString(); + + var result = jsontext; + result = new WXProductManage().MdyBestSaleProd(jsontext); + + Context.Response.Write(result); + Context.Response.End(); + } + [WebMethod] public void set_random_company_product_config() { diff --git a/TEMUKJD/BLL/Wx/WxPlatformRecommendProdManage.cs b/TEMUKJD/BLL/Wx/WxPlatformRecommendProdManage.cs index 7dc832f..23bcc7d 100644 --- a/TEMUKJD/BLL/Wx/WxPlatformRecommendProdManage.cs +++ b/TEMUKJD/BLL/Wx/WxPlatformRecommendProdManage.cs @@ -129,8 +129,18 @@ namespace TemuKJD.BLL.Wx List dbProdLst = JsonHelper.DeserializeJsonToList(JsonHelper.SerializeObject(prodObjs)); var dbProdHotLst = dbProdLst.Where(p => p.special_prod_type == "爆款数据").ToList(); var existHotProd = dbProdHotLst.FirstOrDefault(); - if (existHotProd != null) // 爆款数据商品已存在,继续 + if (existHotProd != null) // 爆款数据商品已存在,更新下曝光量view_uv后继续 + { + if(existHotProd.view_uv.ParseToInt() < recommendProd.product_view_uv.ParseToInt()) + { + url = BaseClass.BuildObjString("product/mdy_best_sale_prod"); + data = UserLogin.GetSignaturex() + + "&spu_id=" + existHotProd.spu_id + + "&view_uv=" + recommendProd.product_view_uv; + html = GetHtml.PostUtf8(url, data); + } continue; + } #endregion WXGetEditProductInfoLite wxProdInfoLite = null; diff --git a/TEMUKJD/KJD.csproj b/TEMUKJD/KJD.csproj index 9ac64bf..9ab39f8 100644 --- a/TEMUKJD/KJD.csproj +++ b/TEMUKJD/KJD.csproj @@ -288,6 +288,18 @@ WXWaybillManageForm.cs + + Form + + + WXActivity618Form.cs + + + Form + + + WXOrderConsignmentForm.cs + Form @@ -1357,6 +1369,12 @@ WXWaybillManageForm.cs + + WXActivity618Form.cs + + + WXOrderConsignmentForm.cs + WXProdClearNoVisitForm.cs diff --git a/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdListForm.Designer.cs b/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdListForm.Designer.cs index 74d4735..fd6bb13 100644 --- a/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdListForm.Designer.cs +++ b/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdListForm.Designer.cs @@ -78,15 +78,16 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.btnPushToOutServer = new DevComponents.DotNetBar.PanelEx(); this.btnGetProdWxCate = new DevComponents.DotNetBar.PanelEx(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); + this.txtViewUvMin = new System.Windows.Forms.TextBox(); + this.chkViewUvMin = new TemuKJD.UserComponent.UcCheckBox(this.components); this.cmbPddRelation = new System.Windows.Forms.ComboBox(); this.label19 = new System.Windows.Forms.Label(); this.dtpEnd = new System.Windows.Forms.DateTimePicker(); this.dtpStart = new System.Windows.Forms.DateTimePicker(); - this.ucCheckBox1 = new TemuKJD.UserComponent.UcCheckBox(this.components); + this.chkTime = new TemuKJD.UserComponent.UcCheckBox(this.components); this.cmbCat2 = new System.Windows.Forms.ComboBox(); this.label16 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); - this.cmbSpProdType = new System.Windows.Forms.ComboBox(); this.txtSecretStyleCode = new System.Windows.Forms.TextBox(); this.label14 = new System.Windows.Forms.Label(); this.label15 = new System.Windows.Forms.Label(); @@ -94,14 +95,12 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.cmbSourceType = new System.Windows.Forms.ComboBox(); this.label10 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); this.txtSPU = new System.Windows.Forms.TextBox(); this.cmbWxCat = new System.Windows.Forms.ComboBox(); this.txtSKC = new System.Windows.Forms.TextBox(); this.cmbSort = new System.Windows.Forms.ComboBox(); this.label6 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); - this.chkWXComplateProd = new TemuKJD.UserComponent.UcCheckBox(this.components); this.label12 = new System.Windows.Forms.Label(); this.txtExtCode = new System.Windows.Forms.TextBox(); this.lblGroup = new System.Windows.Forms.Label(); @@ -120,6 +119,9 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.txtRealCoid = new System.Windows.Forms.TextBox(); this.btnEmpty = new DevComponents.DotNetBar.PanelEx(); this.btnSearch = new DevComponents.DotNetBar.PanelEx(); + this.label11 = new System.Windows.Forms.Label(); + this.cmbSpProdType = new System.Windows.Forms.ComboBox(); + this.chkWXComplateProd = new TemuKJD.UserComponent.UcCheckBox(this.components); this.chkPullAfterPush = new TemuKJD.UserComponent.UcCheckBox(this.components); this.splitContainer2 = new System.Windows.Forms.SplitContainer(); this.panelEx1 = new DevComponents.DotNetBar.PanelEx(); @@ -443,7 +445,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms // // txtReplaceText // - this.txtReplaceText.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.txtReplaceText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.txtReplaceText.Location = new System.Drawing.Point(99, 12); this.txtReplaceText.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.txtReplaceText.Name = "txtReplaceText"; @@ -453,7 +456,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms // // 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(2, 15); this.label7.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); @@ -627,7 +629,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms 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(913, 81); + this.btnStopStop.Location = new System.Drawing.Point(919, 81); this.btnStopStop.Name = "btnStopStop"; this.btnStopStop.Size = new System.Drawing.Size(90, 25); this.btnStopStop.Style.Alignment = System.Drawing.StringAlignment.Center; @@ -653,7 +655,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.btnPull.Cursor = System.Windows.Forms.Cursors.Hand; this.btnPull.DisabledBackColor = System.Drawing.Color.Empty; this.btnPull.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnPull.Location = new System.Drawing.Point(971, 33); + this.btnPull.Location = new System.Drawing.Point(977, 33); this.btnPull.Name = "btnPull"; this.btnPull.Size = new System.Drawing.Size(32, 25); this.btnPull.Style.Alignment = System.Drawing.StringAlignment.Center; @@ -678,7 +680,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.btnPushToOutServer.Cursor = System.Windows.Forms.Cursors.Hand; this.btnPushToOutServer.DisabledBackColor = System.Drawing.Color.Empty; this.btnPushToOutServer.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnPushToOutServer.Location = new System.Drawing.Point(913, 33); + this.btnPushToOutServer.Location = new System.Drawing.Point(919, 33); this.btnPushToOutServer.Name = "btnPushToOutServer"; this.btnPushToOutServer.Size = new System.Drawing.Size(56, 25); this.btnPushToOutServer.Style.Alignment = System.Drawing.StringAlignment.Center; @@ -703,7 +705,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.btnGetProdWxCate.Cursor = System.Windows.Forms.Cursors.Hand; this.btnGetProdWxCate.DisabledBackColor = System.Drawing.Color.Empty; this.btnGetProdWxCate.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnGetProdWxCate.Location = new System.Drawing.Point(913, 5); + this.btnGetProdWxCate.Location = new System.Drawing.Point(919, 5); this.btnGetProdWxCate.Name = "btnGetProdWxCate"; this.btnGetProdWxCate.Size = new System.Drawing.Size(90, 25); this.btnGetProdWxCate.Style.Alignment = System.Drawing.StringAlignment.Center; @@ -726,31 +728,34 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.tableLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tableLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.tableLayoutPanel1.ColumnCount = 15; + this.tableLayoutPanel1.ColumnCount = 17; this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 14.28486F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.49878F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 14.28486F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.49878F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 14.28486F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.49878F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 14.28486F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.49878F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 14.28686F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.50053F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 14.28686F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.50053F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 14.28686F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.50053F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.50328F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + this.tableLayoutPanel1.Controls.Add(this.txtViewUvMin, 13, 1); + this.tableLayoutPanel1.Controls.Add(this.chkViewUvMin, 12, 1); this.tableLayoutPanel1.Controls.Add(this.cmbPddRelation, 13, 0); this.tableLayoutPanel1.Controls.Add(this.label19, 12, 0); this.tableLayoutPanel1.Controls.Add(this.dtpEnd, 11, 2); this.tableLayoutPanel1.Controls.Add(this.dtpStart, 9, 2); - this.tableLayoutPanel1.Controls.Add(this.ucCheckBox1, 8, 2); + this.tableLayoutPanel1.Controls.Add(this.chkTime, 8, 2); this.tableLayoutPanel1.Controls.Add(this.cmbCat2, 5, 2); this.tableLayoutPanel1.Controls.Add(this.label16, 0, 1); this.tableLayoutPanel1.Controls.Add(this.label1, 0, 2); - this.tableLayoutPanel1.Controls.Add(this.cmbSpProdType, 13, 1); this.tableLayoutPanel1.Controls.Add(this.txtSecretStyleCode, 5, 0); this.tableLayoutPanel1.Controls.Add(this.label14, 4, 2); this.tableLayoutPanel1.Controls.Add(this.label15, 4, 0); @@ -758,14 +763,12 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.tableLayoutPanel1.Controls.Add(this.cmbSourceType, 5, 1); this.tableLayoutPanel1.Controls.Add(this.label10, 4, 1); this.tableLayoutPanel1.Controls.Add(this.label5, 0, 0); - this.tableLayoutPanel1.Controls.Add(this.label11, 12, 1); this.tableLayoutPanel1.Controls.Add(this.txtSPU, 1, 0); this.tableLayoutPanel1.Controls.Add(this.cmbWxCat, 11, 0); this.tableLayoutPanel1.Controls.Add(this.txtSKC, 1, 1); this.tableLayoutPanel1.Controls.Add(this.cmbSort, 7, 1); this.tableLayoutPanel1.Controls.Add(this.label6, 6, 1); this.tableLayoutPanel1.Controls.Add(this.label4, 6, 0); - this.tableLayoutPanel1.Controls.Add(this.chkWXComplateProd, 13, 2); this.tableLayoutPanel1.Controls.Add(this.label12, 10, 0); this.tableLayoutPanel1.Controls.Add(this.txtExtCode, 7, 0); this.tableLayoutPanel1.Controls.Add(this.lblGroup, 2, 1); @@ -782,8 +785,11 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.tableLayoutPanel1.Controls.Add(this.cmbCat3, 7, 2); this.tableLayoutPanel1.Controls.Add(this.label17, 6, 2); this.tableLayoutPanel1.Controls.Add(this.txtRealCoid, 1, 2); - this.tableLayoutPanel1.Controls.Add(this.btnEmpty, 14, 1); - this.tableLayoutPanel1.Controls.Add(this.btnSearch, 14, 0); + this.tableLayoutPanel1.Controls.Add(this.btnEmpty, 16, 1); + this.tableLayoutPanel1.Controls.Add(this.btnSearch, 16, 0); + this.tableLayoutPanel1.Controls.Add(this.label11, 14, 0); + this.tableLayoutPanel1.Controls.Add(this.cmbSpProdType, 15, 0); + this.tableLayoutPanel1.Controls.Add(this.chkWXComplateProd, 13, 2); this.tableLayoutPanel1.Location = new System.Drawing.Point(4, 4); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.RowCount = 3; @@ -791,9 +797,28 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33445F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33112F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); - this.tableLayoutPanel1.Size = new System.Drawing.Size(885, 105); + this.tableLayoutPanel1.Size = new System.Drawing.Size(900, 105); this.tableLayoutPanel1.TabIndex = 679; // + // txtViewUvMin + // + this.txtViewUvMin.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); + this.txtViewUvMin.Location = new System.Drawing.Point(693, 41); + this.txtViewUvMin.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); + this.txtViewUvMin.Name = "txtViewUvMin"; + this.txtViewUvMin.Size = new System.Drawing.Size(38, 23); + this.txtViewUvMin.TabIndex = 980; + // + // chkViewUvMin + // + this.chkViewUvMin.Anchor = System.Windows.Forms.AnchorStyles.Right; + this.chkViewUvMin.Location = new System.Drawing.Point(634, 42); + this.chkViewUvMin.Name = "chkViewUvMin"; + this.chkViewUvMin.Size = new System.Drawing.Size(56, 21); + this.chkViewUvMin.TabIndex = 978; + this.chkViewUvMin.Text = "曝光≥"; + this.chkViewUvMin.UseVisualStyleBackColor = true; + // // cmbPddRelation // this.cmbPddRelation.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); @@ -802,17 +827,17 @@ namespace TemuKJD.PDDForms.ProductSelectForms "", "是", "否"}); - this.cmbPddRelation.Location = new System.Drawing.Point(777, 7); + this.cmbPddRelation.Location = new System.Drawing.Point(693, 5); this.cmbPddRelation.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbPddRelation.Name = "cmbPddRelation"; - this.cmbPddRelation.Size = new System.Drawing.Size(52, 25); + this.cmbPddRelation.Size = new System.Drawing.Size(38, 25); this.cmbPddRelation.TabIndex = 805; // // label19 // this.label19.Anchor = System.Windows.Forms.AnchorStyles.Right; this.label19.AutoSize = true; - this.label19.Location = new System.Drawing.Point(709, 9); + this.label19.Location = new System.Drawing.Point(625, 9); this.label19.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.label19.Name = "label19"; this.label19.Size = new System.Drawing.Size(68, 17); @@ -825,10 +850,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.tableLayoutPanel1.SetColumnSpan(this.dtpEnd, 2); this.dtpEnd.CustomFormat = "yyyy-MM-dd HH:mm"; this.dtpEnd.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dtpEnd.Location = new System.Drawing.Point(651, 76); + this.dtpEnd.Location = new System.Drawing.Point(581, 76); this.dtpEnd.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.dtpEnd.Name = "dtpEnd"; - this.dtpEnd.Size = new System.Drawing.Size(123, 23); + this.dtpEnd.Size = new System.Drawing.Size(109, 23); this.dtpEnd.TabIndex = 979; // // dtpStart @@ -837,30 +862,30 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.tableLayoutPanel1.SetColumnSpan(this.dtpStart, 2); this.dtpStart.CustomFormat = "yyyy-MM-dd HH:mm"; this.dtpStart.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dtpStart.Location = new System.Drawing.Point(525, 76); + this.dtpStart.Location = new System.Drawing.Point(469, 76); this.dtpStart.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.dtpStart.Name = "dtpStart"; - this.dtpStart.Size = new System.Drawing.Size(123, 23); + this.dtpStart.Size = new System.Drawing.Size(109, 23); this.dtpStart.TabIndex = 978; // - // ucCheckBox1 + // chkTime // - this.ucCheckBox1.Anchor = System.Windows.Forms.AnchorStyles.None; - this.ucCheckBox1.Location = new System.Drawing.Point(457, 77); - this.ucCheckBox1.Name = "ucCheckBox1"; - this.ucCheckBox1.Size = new System.Drawing.Size(65, 21); - this.ucCheckBox1.TabIndex = 977; - this.ucCheckBox1.Text = "时间范围"; - this.ucCheckBox1.UseVisualStyleBackColor = true; + this.chkTime.Anchor = System.Windows.Forms.AnchorStyles.None; + this.chkTime.Location = new System.Drawing.Point(401, 77); + this.chkTime.Name = "chkTime"; + this.chkTime.Size = new System.Drawing.Size(65, 21); + this.chkTime.TabIndex = 977; + this.chkTime.Text = "时间范围"; + this.chkTime.UseVisualStyleBackColor = true; // // cmbCat2 // this.cmbCat2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.cmbCat2.FormattingEnabled = true; - this.cmbCat2.Location = new System.Drawing.Point(290, 75); + this.cmbCat2.Location = new System.Drawing.Point(262, 75); this.cmbCat2.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbCat2.Name = "cmbCat2"; - this.cmbCat2.Size = new System.Drawing.Size(52, 25); + this.cmbCat2.Size = new System.Drawing.Size(38, 25); this.cmbCat2.TabIndex = 804; this.cmbCat2.SelectedIndexChanged += new System.EventHandler(this.cmbCateFilter2_SelectedIndexChanged); // @@ -886,34 +911,20 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.label1.TabIndex = 813; this.label1.Text = "真实coid:"; // - // cmbSpProdType - // - this.cmbSpProdType.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); - this.cmbSpProdType.FormattingEnabled = true; - this.cmbSpProdType.Items.AddRange(new object[] { - "", - "普通商品", - "爆款数据"}); - this.cmbSpProdType.Location = new System.Drawing.Point(777, 42); - this.cmbSpProdType.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); - this.cmbSpProdType.Name = "cmbSpProdType"; - this.cmbSpProdType.Size = new System.Drawing.Size(52, 25); - this.cmbSpProdType.TabIndex = 677; - // // txtSecretStyleCode // this.txtSecretStyleCode.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); - this.txtSecretStyleCode.Location = new System.Drawing.Point(290, 6); + this.txtSecretStyleCode.Location = new System.Drawing.Point(262, 6); this.txtSecretStyleCode.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.txtSecretStyleCode.Name = "txtSecretStyleCode"; - this.txtSecretStyleCode.Size = new System.Drawing.Size(52, 23); + this.txtSecretStyleCode.Size = new System.Drawing.Size(38, 23); this.txtSecretStyleCode.TabIndex = 812; // // label14 // this.label14.Anchor = System.Windows.Forms.AnchorStyles.Right; this.label14.AutoSize = true; - this.label14.Location = new System.Drawing.Point(239, 79); + this.label14.Location = new System.Drawing.Point(211, 79); this.label14.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.label14.Name = "label14"; this.label14.Size = new System.Drawing.Size(51, 17); @@ -924,7 +935,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms // this.label15.Anchor = System.Windows.Forms.AnchorStyles.Right; this.label15.AutoSize = true; - this.label15.Location = new System.Drawing.Point(246, 9); + this.label15.Location = new System.Drawing.Point(218, 9); this.label15.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.label15.Name = "label15"; this.label15.Size = new System.Drawing.Size(44, 17); @@ -935,7 +946,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms // this.label13.Anchor = System.Windows.Forms.AnchorStyles.Right; this.label13.AutoSize = true; - this.label13.Location = new System.Drawing.Point(583, 44); + this.label13.Location = new System.Drawing.Point(513, 44); this.label13.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.label13.Name = "label13"; this.label13.Size = new System.Drawing.Size(68, 17); @@ -956,10 +967,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms "机会商品", "以图搜品", "外部数据"}); - this.cmbSourceType.Location = new System.Drawing.Point(290, 40); + this.cmbSourceType.Location = new System.Drawing.Point(262, 40); this.cmbSourceType.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbSourceType.Name = "cmbSourceType"; - this.cmbSourceType.Size = new System.Drawing.Size(52, 25); + this.cmbSourceType.Size = new System.Drawing.Size(38, 25); this.cmbSourceType.TabIndex = 654; this.cmbSourceType.SelectedIndexChanged += new System.EventHandler(this.cmbSourceType_SelectedIndexChanged); // @@ -967,7 +978,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms // this.label10.Anchor = System.Windows.Forms.AnchorStyles.Right; this.label10.AutoSize = true; - this.label10.Location = new System.Drawing.Point(246, 44); + this.label10.Location = new System.Drawing.Point(218, 44); this.label10.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(44, 17); @@ -985,24 +996,13 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.label5.TabIndex = 435; this.label5.Text = "商品ID:"; // - // label11 - // - this.label11.Anchor = System.Windows.Forms.AnchorStyles.Right; - this.label11.AutoSize = true; - this.label11.Location = new System.Drawing.Point(709, 44); - this.label11.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(68, 17); - this.label11.TabIndex = 651; - this.label11.Text = "商品类型:"; - // // txtSPU // this.txtSPU.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.txtSPU.Location = new System.Drawing.Point(72, 6); this.txtSPU.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.txtSPU.Name = "txtSPU"; - this.txtSPU.Size = new System.Drawing.Size(52, 23); + this.txtSPU.Size = new System.Drawing.Size(38, 23); this.txtSPU.TabIndex = 434; // // cmbWxCat @@ -1013,10 +1013,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms "", "是", "否"}); - this.cmbWxCat.Location = new System.Drawing.Point(651, 5); + this.cmbWxCat.Location = new System.Drawing.Point(581, 5); this.cmbWxCat.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbWxCat.Name = "cmbWxCat"; - this.cmbWxCat.Size = new System.Drawing.Size(52, 25); + this.cmbWxCat.Size = new System.Drawing.Size(38, 25); this.cmbWxCat.TabIndex = 802; // // txtSKC @@ -1025,7 +1025,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.txtSKC.Location = new System.Drawing.Point(72, 41); this.txtSKC.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.txtSKC.Name = "txtSKC"; - this.txtSKC.Size = new System.Drawing.Size(52, 23); + this.txtSKC.Size = new System.Drawing.Size(38, 23); this.txtSKC.TabIndex = 432; // // cmbSort @@ -1035,10 +1035,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.cmbSort.Items.AddRange(new object[] { "入库时间", "曝光量"}); - this.cmbSort.Location = new System.Drawing.Point(399, 40); + this.cmbSort.Location = new System.Drawing.Point(357, 40); this.cmbSort.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbSort.Name = "cmbSort"; - this.cmbSort.Size = new System.Drawing.Size(52, 25); + this.cmbSort.Size = new System.Drawing.Size(38, 25); this.cmbSort.TabIndex = 448; this.cmbSort.Text = "入库时间"; // @@ -1046,7 +1046,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms // this.label6.Anchor = System.Windows.Forms.AnchorStyles.Right; this.label6.AutoSize = true; - this.label6.Location = new System.Drawing.Point(355, 44); + this.label6.Location = new System.Drawing.Point(313, 44); this.label6.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(44, 17); @@ -1057,30 +1057,18 @@ namespace TemuKJD.PDDForms.ProductSelectForms // this.label4.Anchor = System.Windows.Forms.AnchorStyles.Right; this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(355, 9); + this.label4.Location = new System.Drawing.Point(313, 9); this.label4.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(44, 17); this.label4.TabIndex = 430; this.label4.Text = "货号:"; // - // chkWXComplateProd - // - this.chkWXComplateProd.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.tableLayoutPanel1.SetColumnSpan(this.chkWXComplateProd, 2); - this.chkWXComplateProd.Location = new System.Drawing.Point(783, 77); - this.chkWXComplateProd.Margin = new System.Windows.Forms.Padding(6, 3, 3, 3); - this.chkWXComplateProd.Name = "chkWXComplateProd"; - this.chkWXComplateProd.Size = new System.Drawing.Size(87, 21); - this.chkWXComplateProd.TabIndex = 808; - this.chkWXComplateProd.Text = "微信回采商品"; - this.chkWXComplateProd.UseVisualStyleBackColor = true; - // // label12 // this.label12.Anchor = System.Windows.Forms.AnchorStyles.Right; this.label12.AutoSize = true; - this.label12.Location = new System.Drawing.Point(583, 9); + this.label12.Location = new System.Drawing.Point(513, 9); this.label12.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.label12.Name = "label12"; this.label12.Size = new System.Drawing.Size(68, 17); @@ -1090,17 +1078,17 @@ namespace TemuKJD.PDDForms.ProductSelectForms // txtExtCode // this.txtExtCode.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); - this.txtExtCode.Location = new System.Drawing.Point(399, 6); + this.txtExtCode.Location = new System.Drawing.Point(357, 6); this.txtExtCode.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.txtExtCode.Name = "txtExtCode"; - this.txtExtCode.Size = new System.Drawing.Size(52, 23); + this.txtExtCode.Size = new System.Drawing.Size(38, 23); this.txtExtCode.TabIndex = 429; // // lblGroup // this.lblGroup.Anchor = System.Windows.Forms.AnchorStyles.Right; this.lblGroup.AutoSize = true; - this.lblGroup.Location = new System.Drawing.Point(137, 44); + this.lblGroup.Location = new System.Drawing.Point(123, 44); this.lblGroup.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.lblGroup.Name = "lblGroup"; this.lblGroup.Size = new System.Drawing.Size(44, 17); @@ -1111,10 +1099,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms // this.cmbGroupFilter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.cmbGroupFilter.FormattingEnabled = true; - this.cmbGroupFilter.Location = new System.Drawing.Point(181, 40); + this.cmbGroupFilter.Location = new System.Drawing.Point(167, 40); this.cmbGroupFilter.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbGroupFilter.Name = "cmbGroupFilter"; - this.cmbGroupFilter.Size = new System.Drawing.Size(52, 25); + this.cmbGroupFilter.Size = new System.Drawing.Size(38, 25); this.cmbGroupFilter.TabIndex = 653; // // cmbExportToOutServer @@ -1126,17 +1114,17 @@ namespace TemuKJD.PDDForms.ProductSelectForms "是", "否", "导出未拉回"}); - this.cmbExportToOutServer.Location = new System.Drawing.Point(651, 40); + this.cmbExportToOutServer.Location = new System.Drawing.Point(581, 40); this.cmbExportToOutServer.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbExportToOutServer.Name = "cmbExportToOutServer"; - this.cmbExportToOutServer.Size = new System.Drawing.Size(52, 25); + this.cmbExportToOutServer.Size = new System.Drawing.Size(38, 25); this.cmbExportToOutServer.TabIndex = 803; // // label3 // this.label3.Anchor = System.Windows.Forms.AnchorStyles.Left; this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(457, 9); + this.label3.Location = new System.Drawing.Point(401, 9); this.label3.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(68, 17); @@ -1146,10 +1134,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms // txtProdName // this.txtProdName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); - this.txtProdName.Location = new System.Drawing.Point(525, 6); + this.txtProdName.Location = new System.Drawing.Point(469, 6); this.txtProdName.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.txtProdName.Name = "txtProdName"; - this.txtProdName.Size = new System.Drawing.Size(52, 23); + this.txtProdName.Size = new System.Drawing.Size(38, 23); this.txtProdName.TabIndex = 427; // // cmbWxSafe @@ -1162,10 +1150,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms "安全商品", "违规商品", "未校验"}); - this.cmbWxSafe.Location = new System.Drawing.Point(525, 40); + this.cmbWxSafe.Location = new System.Drawing.Point(469, 40); this.cmbWxSafe.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbWxSafe.Name = "cmbWxSafe"; - this.cmbWxSafe.Size = new System.Drawing.Size(52, 25); + this.cmbWxSafe.Size = new System.Drawing.Size(38, 25); this.cmbWxSafe.TabIndex = 676; this.cmbWxSafe.Text = "安全+未校验"; // @@ -1173,7 +1161,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms // this.lblWxSafe.Anchor = System.Windows.Forms.AnchorStyles.Left; this.lblWxSafe.AutoSize = true; - this.lblWxSafe.Location = new System.Drawing.Point(457, 44); + this.lblWxSafe.Location = new System.Drawing.Point(401, 44); this.lblWxSafe.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.lblWxSafe.Name = "lblWxSafe"; this.lblWxSafe.Size = new System.Drawing.Size(68, 17); @@ -1184,7 +1172,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms // this.lblNotes.Anchor = System.Windows.Forms.AnchorStyles.Right; this.lblNotes.AutoSize = true; - this.lblNotes.Location = new System.Drawing.Point(137, 9); + this.lblNotes.Location = new System.Drawing.Point(123, 9); this.lblNotes.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.lblNotes.Name = "lblNotes"; this.lblNotes.Size = new System.Drawing.Size(44, 17); @@ -1194,20 +1182,20 @@ namespace TemuKJD.PDDForms.ProductSelectForms // txtNotes // this.txtNotes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); - this.txtNotes.Location = new System.Drawing.Point(181, 6); + this.txtNotes.Location = new System.Drawing.Point(167, 6); this.txtNotes.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.txtNotes.Name = "txtNotes"; - this.txtNotes.Size = new System.Drawing.Size(52, 23); + this.txtNotes.Size = new System.Drawing.Size(38, 23); this.txtNotes.TabIndex = 439; // // cmbCat1 // this.cmbCat1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.cmbCat1.FormattingEnabled = true; - this.cmbCat1.Location = new System.Drawing.Point(181, 75); + this.cmbCat1.Location = new System.Drawing.Point(167, 75); this.cmbCat1.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbCat1.Name = "cmbCat1"; - this.cmbCat1.Size = new System.Drawing.Size(52, 25); + this.cmbCat1.Size = new System.Drawing.Size(38, 25); this.cmbCat1.TabIndex = 805; this.cmbCat1.SelectedIndexChanged += new System.EventHandler(this.cmbCateFilter1_SelectedIndexChanged); // @@ -1215,7 +1203,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms // this.label2.Anchor = System.Windows.Forms.AnchorStyles.Right; this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(130, 79); + this.label2.Location = new System.Drawing.Point(116, 79); this.label2.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(51, 17); @@ -1226,10 +1214,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms // this.cmbCat3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.cmbCat3.FormattingEnabled = true; - this.cmbCat3.Location = new System.Drawing.Point(399, 75); + this.cmbCat3.Location = new System.Drawing.Point(357, 75); this.cmbCat3.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbCat3.Name = "cmbCat3"; - this.cmbCat3.Size = new System.Drawing.Size(52, 25); + this.cmbCat3.Size = new System.Drawing.Size(38, 25); this.cmbCat3.TabIndex = 811; this.cmbCat3.SelectedIndexChanged += new System.EventHandler(this.cmbCateFilter3_SelectedIndexChanged); // @@ -1237,7 +1225,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms // this.label17.Anchor = System.Windows.Forms.AnchorStyles.Right; this.label17.AutoSize = true; - this.label17.Location = new System.Drawing.Point(348, 79); + this.label17.Location = new System.Drawing.Point(306, 79); this.label17.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.label17.Name = "label17"; this.label17.Size = new System.Drawing.Size(51, 17); @@ -1250,7 +1238,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.txtRealCoid.Location = new System.Drawing.Point(72, 76); this.txtRealCoid.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.txtRealCoid.Name = "txtRealCoid"; - this.txtRealCoid.Size = new System.Drawing.Size(52, 23); + this.txtRealCoid.Size = new System.Drawing.Size(38, 23); this.txtRealCoid.TabIndex = 814; // // btnEmpty @@ -1259,7 +1247,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.btnEmpty.CanvasColor = System.Drawing.SystemColors.Control; this.btnEmpty.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.btnEmpty.DisabledBackColor = System.Drawing.Color.Empty; - this.btnEmpty.Location = new System.Drawing.Point(835, 40); + this.btnEmpty.Location = new System.Drawing.Point(849, 40); this.btnEmpty.Name = "btnEmpty"; this.btnEmpty.Size = new System.Drawing.Size(46, 25); this.btnEmpty.Style.Alignment = System.Drawing.StringAlignment.Center; @@ -1285,7 +1273,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.btnSearch.Cursor = System.Windows.Forms.Cursors.Hand; this.btnSearch.DisabledBackColor = System.Drawing.Color.Empty; this.btnSearch.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSearch.Location = new System.Drawing.Point(835, 5); + this.btnSearch.Location = new System.Drawing.Point(849, 5); this.btnSearch.Name = "btnSearch"; this.btnSearch.Size = new System.Drawing.Size(46, 25); this.btnSearch.Style.Alignment = System.Drawing.StringAlignment.Center; @@ -1303,13 +1291,50 @@ namespace TemuKJD.PDDForms.ProductSelectForms this.btnSearch.Text = "搜索"; this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click); // + // label11 + // + this.label11.Anchor = System.Windows.Forms.AnchorStyles.Right; + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(737, 9); + this.label11.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(68, 17); + this.label11.TabIndex = 651; + this.label11.Text = "商品类型:"; + // + // cmbSpProdType + // + this.cmbSpProdType.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); + this.cmbSpProdType.FormattingEnabled = true; + this.cmbSpProdType.Items.AddRange(new object[] { + "", + "普通商品", + "爆款数据"}); + this.cmbSpProdType.Location = new System.Drawing.Point(805, 5); + this.cmbSpProdType.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); + this.cmbSpProdType.Name = "cmbSpProdType"; + this.cmbSpProdType.Size = new System.Drawing.Size(38, 25); + this.cmbSpProdType.TabIndex = 677; + // + // chkWXComplateProd + // + this.chkWXComplateProd.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.tableLayoutPanel1.SetColumnSpan(this.chkWXComplateProd, 2); + this.chkWXComplateProd.Location = new System.Drawing.Point(699, 77); + this.chkWXComplateProd.Margin = new System.Windows.Forms.Padding(6, 3, 3, 3); + this.chkWXComplateProd.Name = "chkWXComplateProd"; + this.chkWXComplateProd.Size = new System.Drawing.Size(87, 21); + this.chkWXComplateProd.TabIndex = 808; + this.chkWXComplateProd.Text = "微信回采商品"; + this.chkWXComplateProd.UseVisualStyleBackColor = true; + // // chkPullAfterPush // this.chkPullAfterPush.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.chkPullAfterPush.AutoSize = true; this.chkPullAfterPush.Checked = true; this.chkPullAfterPush.CheckState = System.Windows.Forms.CheckState.Checked; - this.chkPullAfterPush.Location = new System.Drawing.Point(914, 59); + this.chkPullAfterPush.Location = new System.Drawing.Point(920, 59); this.chkPullAfterPush.Name = "chkPullAfterPush"; this.chkPullAfterPush.Size = new System.Drawing.Size(99, 21); this.chkPullAfterPush.TabIndex = 874; @@ -2027,7 +2052,7 @@ 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 UserComponent.UcCheckBox chkTime; private System.Windows.Forms.DateTimePicker dtpEnd; private System.Windows.Forms.DateTimePicker dtpStart; private DevComponents.DotNetBar.PanelEx panelEx1; @@ -2074,5 +2099,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms private System.Windows.Forms.DataGridViewLinkColumn col_edit; private System.Windows.Forms.DataGridViewLinkColumn col_delete; private System.Windows.Forms.DataGridViewLinkColumn col_select_product; + private System.Windows.Forms.TextBox txtViewUvMin; + private UserComponent.UcCheckBox chkViewUvMin; } } \ No newline at end of file diff --git a/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdListForm.cs b/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdListForm.cs index 69c14d1..b43c650 100644 --- a/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdListForm.cs +++ b/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdListForm.cs @@ -347,7 +347,12 @@ namespace TemuKJD.PDDForms.ProductSelectForms "&wx_safe_status=" + cmbWxSafe.Text.Trim().Replace("安全+未校验", "安全商品,未校验") + "&special_prod_type=" + (cmbSpProdType.Text.Trim().IsNullOrEmpty() ? "普通商品,书籍,爆款数据" : cmbSpProdType.Text.Trim().Replace("普通商品", "普通商品,书籍")); - if (ucCheckBox1.Checked) + if (chkViewUvMin.Checked) + { + data += "&min_view_uv=" + txtViewUvMin.Text.ParseToInt(); + } + + if (chkTime.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"); diff --git a/TEMUKJD/WXForms/ProductForms/ActivityForms/WXActivity618Form.Designer.cs b/TEMUKJD/WXForms/ProductForms/ActivityForms/WXActivity618Form.Designer.cs new file mode 100644 index 0000000..4ef89da --- /dev/null +++ b/TEMUKJD/WXForms/ProductForms/ActivityForms/WXActivity618Form.Designer.cs @@ -0,0 +1,1319 @@ + +using TemuKJD.PDDForms.ProductSelectForms; + +namespace TemuKJD.WXForms.ProductForms +{ + partial class WXActivity618Form + { + /// + /// 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 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(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); + this.splitContainer1 = new System.Windows.Forms.SplitContainer(); + this.ucGroupBoxEx3 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); + this.label1 = new System.Windows.Forms.Label(); + this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); + this.label4 = new System.Windows.Forms.Label(); + this.txtPrice = new System.Windows.Forms.TextBox(); + this.lblPrice = new System.Windows.Forms.Label(); + this.txtPercent = new System.Windows.Forms.TextBox(); + this.lblPercent = new System.Windows.Forms.Label(); + this.cmbType = new System.Windows.Forms.ComboBox(); + this.btnStopOp = new DevComponents.DotNetBar.PanelEx(); + this.btnSetActivity = new DevComponents.DotNetBar.PanelEx(); + this.ucGroupBoxEx4 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); + this.btnEmpty = new DevComponents.DotNetBar.PanelEx(); + this.txtPage = new System.Windows.Forms.TextBox(); + this.label5 = new System.Windows.Forms.Label(); + this.btnStopSearch = new DevComponents.DotNetBar.PanelEx(); + this.btnSearchOrder = new DevComponents.DotNetBar.PanelEx(); + this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); + this.btnSelectOffline = new DevComponents.DotNetBar.PanelEx(); + this.btnSelectOnline = new DevComponents.DotNetBar.PanelEx(); + this.cmbFilterShopGroup = new TemuKJD.UserComponent.UcComboBoxMutiSelect(); + this.btnEmptyShop = new DevComponents.DotNetBar.PanelEx(); + this.btnFilterShop = new DevComponents.DotNetBar.PanelEx(); + this.btnRefreshShop = new DevComponents.DotNetBar.PanelEx(); + this.btnReverse = new DevComponents.DotNetBar.PanelEx(); + this.btnAddUnSelect = new DevComponents.DotNetBar.PanelEx(); + this.cmbFilterShopNotes = new TemuKJD.UserComponent.UcComboBoxMutiSelect(); + this.btnAddSelect = new DevComponents.DotNetBar.PanelEx(); + this.label16 = new System.Windows.Forms.Label(); + this.txtFilterShopName = new System.Windows.Forms.TextBox(); + this.label17 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.splitContainer3 = new System.Windows.Forms.SplitContainer(); + this.splitContainer2 = new System.Windows.Forms.SplitContainer(); + this.pbLoadingShop = new System.Windows.Forms.PictureBox(); + this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx(); + this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.colShopLoginName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colShopNotes = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colGroup = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colSelectProduct = new System.Windows.Forms.DataGridViewLinkColumn(); + this.colLoginStatus = new System.Windows.Forms.DataGridViewLinkColumn(); + this.colApi = new System.Windows.Forms.DataGridViewLinkColumn(); + this.colCanUse = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.colUploadCount = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colOnSaleNum = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colRemaining = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pbLoading = new System.Windows.Forms.PictureBox(); + this.dgvSelectProduct = new TemuKJD.UserComponent.DataGridViewEx(); + this.colCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.colSupplierId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colSupplierName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colLogin = new System.Windows.Forms.DataGridViewLinkColumn(); + this.colInShop = new System.Windows.Forms.DataGridViewLinkColumn(); + this.colDraftId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colSkuId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colImgUrl = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colProductSkcPic = new System.Windows.Forms.DataGridViewImageColumn(); + this.colProductName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colSpec = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colPrice = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colValidPrice = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colStock = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colOpResult = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.splitContainer4 = new System.Windows.Forms.SplitContainer(); + this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); + this.btnClear = new DevComponents.DotNetBar.PanelEx(); + this.panelEx1 = new DevComponents.DotNetBar.PanelEx(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); + this.splitContainer1.Panel1.SuspendLayout(); + this.splitContainer1.Panel2.SuspendLayout(); + this.splitContainer1.SuspendLayout(); + this.ucGroupBoxEx3.SuspendLayout(); + this.flowLayoutPanel1.SuspendLayout(); + this.ucGroupBoxEx4.SuspendLayout(); + this.ucGroupBoxEx1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).BeginInit(); + this.splitContainer3.Panel1.SuspendLayout(); + this.splitContainer3.Panel2.SuspendLayout(); + this.splitContainer3.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); + this.splitContainer2.Panel1.SuspendLayout(); + this.splitContainer2.Panel2.SuspendLayout(); + this.splitContainer2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pbLoadingShop)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dgvShop)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pbLoading)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dgvSelectProduct)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).BeginInit(); + this.splitContainer4.Panel1.SuspendLayout(); + this.splitContainer4.Panel2.SuspendLayout(); + this.splitContainer4.SuspendLayout(); + this.SuspendLayout(); + // + // splitContainer1 + // + this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; + this.splitContainer1.Location = new System.Drawing.Point(0, 0); + this.splitContainer1.Name = "splitContainer1"; + this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal; + // + // splitContainer1.Panel1 + // + this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx3); + this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx4); + this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx1); + // + // splitContainer1.Panel2 + // + this.splitContainer1.Panel2.Controls.Add(this.splitContainer3); + this.splitContainer1.Size = new System.Drawing.Size(1491, 641); + this.splitContainer1.SplitterDistance = 165; + this.splitContainer1.TabIndex = 11; + // + // ucGroupBoxEx3 + // + this.ucGroupBoxEx3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.ucGroupBoxEx3.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.ucGroupBoxEx3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.ucGroupBoxEx3.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND; + this.ucGroupBoxEx3.Controls.Add(this.label1); + this.ucGroupBoxEx3.Controls.Add(this.flowLayoutPanel1); + this.ucGroupBoxEx3.Controls.Add(this.cmbType); + this.ucGroupBoxEx3.Controls.Add(this.btnStopOp); + this.ucGroupBoxEx3.Controls.Add(this.btnSetActivity); + this.ucGroupBoxEx3.Location = new System.Drawing.Point(450, 2); + this.ucGroupBoxEx3.Name = "ucGroupBoxEx3"; + this.ucGroupBoxEx3.Size = new System.Drawing.Size(1039, 165); + this.ucGroupBoxEx3.TabIndex = 668; + this.ucGroupBoxEx3.TabStop = false; + this.ucGroupBoxEx3.Text = "活动设置"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(22, 35); + this.label1.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(56, 17); + this.label1.TabIndex = 846; + this.label1.Text = "优惠形式"; + // + // flowLayoutPanel1 + // + this.flowLayoutPanel1.Controls.Add(this.label4); + this.flowLayoutPanel1.Controls.Add(this.txtPrice); + this.flowLayoutPanel1.Controls.Add(this.lblPrice); + this.flowLayoutPanel1.Controls.Add(this.txtPercent); + this.flowLayoutPanel1.Controls.Add(this.lblPercent); + this.flowLayoutPanel1.Location = new System.Drawing.Point(180, 31); + this.flowLayoutPanel1.Name = "flowLayoutPanel1"; + this.flowLayoutPanel1.Size = new System.Drawing.Size(333, 25); + this.flowLayoutPanel1.TabIndex = 845; + // + // label4 + // + this.label4.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(0, 4); + this.label4.Margin = new System.Windows.Forms.Padding(0); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(32, 17); + this.label4.TabIndex = 847; + this.label4.Text = "优惠"; + // + // txtPrice + // + this.txtPrice.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.txtPrice.Font = new System.Drawing.Font("微软雅黑", 10F); + this.txtPrice.Location = new System.Drawing.Point(32, 0); + this.txtPrice.Margin = new System.Windows.Forms.Padding(0); + this.txtPrice.Name = "txtPrice"; + this.txtPrice.Size = new System.Drawing.Size(41, 25); + this.txtPrice.TabIndex = 833; + this.txtPrice.Text = "0.1"; + this.txtPrice.TextChanged += new System.EventHandler(this.txtPrice_TextChanged); + // + // lblPrice + // + this.lblPrice.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.lblPrice.AutoSize = true; + this.lblPrice.Location = new System.Drawing.Point(73, 4); + this.lblPrice.Margin = new System.Windows.Forms.Padding(0); + this.lblPrice.Name = "lblPrice"; + this.lblPrice.Size = new System.Drawing.Size(20, 17); + this.lblPrice.TabIndex = 844; + this.lblPrice.Text = "元"; + // + // txtPercent + // + this.txtPercent.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.txtPercent.Font = new System.Drawing.Font("微软雅黑", 10F); + this.txtPercent.Location = new System.Drawing.Point(93, 0); + this.txtPercent.Margin = new System.Windows.Forms.Padding(0); + this.txtPercent.Name = "txtPercent"; + this.txtPercent.Size = new System.Drawing.Size(41, 25); + this.txtPercent.TabIndex = 845; + this.txtPercent.Text = "1"; + this.txtPercent.Visible = false; + this.txtPercent.TextChanged += new System.EventHandler(this.txtPercent_TextChanged); + // + // lblPercent + // + this.lblPercent.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.lblPercent.AutoSize = true; + this.lblPercent.Location = new System.Drawing.Point(134, 4); + this.lblPercent.Margin = new System.Windows.Forms.Padding(0); + this.lblPercent.Name = "lblPercent"; + this.lblPercent.Size = new System.Drawing.Size(19, 17); + this.lblPercent.TabIndex = 846; + this.lblPercent.Text = "%"; + this.lblPercent.Visible = false; + // + // cmbType + // + this.cmbType.FormattingEnabled = true; + this.cmbType.Items.AddRange(new object[] { + "固定金额", + "价格比例"}); + this.cmbType.Location = new System.Drawing.Point(81, 31); + this.cmbType.Name = "cmbType"; + this.cmbType.Size = new System.Drawing.Size(94, 25); + this.cmbType.TabIndex = 834; + this.cmbType.Text = "固定金额"; + this.cmbType.TextChanged += new System.EventHandler(this.cmbType_TextChanged); + // + // btnStopOp + // + this.btnStopOp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnStopOp.CanvasColor = System.Drawing.SystemColors.Control; + this.btnStopOp.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnStopOp.DisabledBackColor = System.Drawing.Color.Empty; + this.btnStopOp.Location = new System.Drawing.Point(933, 121); + this.btnStopOp.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2); + this.btnStopOp.Name = "btnStopOp"; + this.btnStopOp.Size = new System.Drawing.Size(84, 23); + this.btnStopOp.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnStopOp.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnStopOp.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnStopOp.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.btnStopOp.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnStopOp.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.btnStopOp.Style.GradientAngle = 90; + this.btnStopOp.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; + this.btnStopOp.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnStopOp.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnStopOp.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnStopOp.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; + this.btnStopOp.TabIndex = 546; + this.btnStopOp.Text = "停止操作"; + this.btnStopOp.Click += new System.EventHandler(this.btnStop_Click); + // + // btnSetActivity + // + this.btnSetActivity.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnSetActivity.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnSetActivity.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnSetActivity.DisabledBackColor = System.Drawing.Color.Empty; + this.btnSetActivity.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnSetActivity.Location = new System.Drawing.Point(933, 31); + this.btnSetActivity.Name = "btnSetActivity"; + this.btnSetActivity.Size = new System.Drawing.Size(84, 23); + this.btnSetActivity.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnSetActivity.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnSetActivity.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnSetActivity.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnSetActivity.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnSetActivity.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnSetActivity.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnSetActivity.Style.GradientAngle = 90; + this.btnSetActivity.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnSetActivity.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnSetActivity.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnSetActivity.TabIndex = 517; + this.btnSetActivity.Text = "批量设置"; + this.btnSetActivity.Click += new System.EventHandler(this.btnSetActivity_Click); + // + // ucGroupBoxEx4 + // + this.ucGroupBoxEx4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left))); + this.ucGroupBoxEx4.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.ucGroupBoxEx4.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND; + this.ucGroupBoxEx4.Controls.Add(this.btnEmpty); + this.ucGroupBoxEx4.Controls.Add(this.txtPage); + this.ucGroupBoxEx4.Controls.Add(this.label5); + this.ucGroupBoxEx4.Controls.Add(this.btnStopSearch); + this.ucGroupBoxEx4.Controls.Add(this.btnSearchOrder); + this.ucGroupBoxEx4.Location = new System.Drawing.Point(186, 2); + this.ucGroupBoxEx4.Name = "ucGroupBoxEx4"; + this.ucGroupBoxEx4.Size = new System.Drawing.Size(265, 165); + this.ucGroupBoxEx4.TabIndex = 666; + this.ucGroupBoxEx4.TabStop = false; + this.ucGroupBoxEx4.Text = "活动商品查询"; + // + // btnEmpty + // + this.btnEmpty.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnEmpty.CanvasColor = System.Drawing.SystemColors.Control; + this.btnEmpty.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnEmpty.DisabledBackColor = System.Drawing.Color.Empty; + this.btnEmpty.Location = new System.Drawing.Point(193, 35); + this.btnEmpty.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2); + this.btnEmpty.Name = "btnEmpty"; + this.btnEmpty.Size = new System.Drawing.Size(58, 25); + this.btnEmpty.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnEmpty.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnEmpty.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnEmpty.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.btnEmpty.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnEmpty.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.btnEmpty.Style.GradientAngle = 90; + this.btnEmpty.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; + this.btnEmpty.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnEmpty.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnEmpty.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnEmpty.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; + this.btnEmpty.TabIndex = 817; + this.btnEmpty.Text = "还原"; + this.btnEmpty.Click += new System.EventHandler(this.btnEmpty_Click); + // + // txtPage + // + this.txtPage.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.txtPage.Font = new System.Drawing.Font("微软雅黑", 10F); + this.txtPage.Location = new System.Drawing.Point(70, 34); + this.txtPage.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2); + this.txtPage.Name = "txtPage"; + this.txtPage.Size = new System.Drawing.Size(120, 25); + this.txtPage.TabIndex = 812; + this.txtPage.Text = "9999"; + this.txtPage.TextChanged += new System.EventHandler(this.txtPage_TextChanged); + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(14, 38); + this.label5.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(56, 17); + this.label5.TabIndex = 813; + this.label5.Text = "报名页数"; + // + // btnStopSearch + // + this.btnStopSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnStopSearch.CanvasColor = System.Drawing.SystemColors.Control; + this.btnStopSearch.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnStopSearch.DisabledBackColor = System.Drawing.Color.Empty; + this.btnStopSearch.Location = new System.Drawing.Point(193, 120); + this.btnStopSearch.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2); + this.btnStopSearch.Name = "btnStopSearch"; + this.btnStopSearch.Size = new System.Drawing.Size(58, 25); + this.btnStopSearch.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnStopSearch.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnStopSearch.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnStopSearch.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.btnStopSearch.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnStopSearch.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.btnStopSearch.Style.GradientAngle = 90; + this.btnStopSearch.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; + this.btnStopSearch.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnStopSearch.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnStopSearch.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnStopSearch.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; + this.btnStopSearch.TabIndex = 805; + this.btnStopSearch.Text = "停止查询"; + this.btnStopSearch.Click += new System.EventHandler(this.btnStop_Click); + // + // btnSearchOrder + // + this.btnSearchOrder.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnSearchOrder.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnSearchOrder.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnSearchOrder.DisabledBackColor = System.Drawing.Color.Empty; + this.btnSearchOrder.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnSearchOrder.Location = new System.Drawing.Point(108, 120); + this.btnSearchOrder.Name = "btnSearchOrder"; + this.btnSearchOrder.Size = new System.Drawing.Size(82, 25); + this.btnSearchOrder.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnSearchOrder.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnSearchOrder.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnSearchOrder.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnSearchOrder.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnSearchOrder.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnSearchOrder.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnSearchOrder.Style.GradientAngle = 90; + this.btnSearchOrder.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnSearchOrder.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnSearchOrder.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnSearchOrder.TabIndex = 431; + this.btnSearchOrder.Text = "查询商品"; + this.btnSearchOrder.Click += new System.EventHandler(this.btnSearchProd_Click); + // + // ucGroupBoxEx1 + // + this.ucGroupBoxEx1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left))); + this.ucGroupBoxEx1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.ucGroupBoxEx1.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND; + this.ucGroupBoxEx1.Controls.Add(this.btnSelectOffline); + this.ucGroupBoxEx1.Controls.Add(this.btnSelectOnline); + this.ucGroupBoxEx1.Controls.Add(this.cmbFilterShopGroup); + this.ucGroupBoxEx1.Controls.Add(this.btnEmptyShop); + this.ucGroupBoxEx1.Controls.Add(this.btnFilterShop); + this.ucGroupBoxEx1.Controls.Add(this.btnRefreshShop); + this.ucGroupBoxEx1.Controls.Add(this.btnReverse); + this.ucGroupBoxEx1.Controls.Add(this.btnAddUnSelect); + this.ucGroupBoxEx1.Controls.Add(this.cmbFilterShopNotes); + this.ucGroupBoxEx1.Controls.Add(this.btnAddSelect); + this.ucGroupBoxEx1.Controls.Add(this.label16); + this.ucGroupBoxEx1.Controls.Add(this.txtFilterShopName); + this.ucGroupBoxEx1.Controls.Add(this.label17); + this.ucGroupBoxEx1.Controls.Add(this.label3); + this.ucGroupBoxEx1.Location = new System.Drawing.Point(2, 2); + this.ucGroupBoxEx1.Name = "ucGroupBoxEx1"; + this.ucGroupBoxEx1.Size = new System.Drawing.Size(185, 165); + this.ucGroupBoxEx1.TabIndex = 399; + this.ucGroupBoxEx1.TabStop = false; + this.ucGroupBoxEx1.Text = "店铺筛选"; + // + // btnSelectOffline + // + this.btnSelectOffline.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnSelectOffline.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnSelectOffline.DisabledBackColor = System.Drawing.Color.Empty; + this.btnSelectOffline.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnSelectOffline.Location = new System.Drawing.Point(59, 139); + this.btnSelectOffline.Name = "btnSelectOffline"; + this.btnSelectOffline.Size = new System.Drawing.Size(48, 18); + this.btnSelectOffline.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnSelectOffline.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnSelectOffline.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnSelectOffline.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnSelectOffline.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnSelectOffline.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnSelectOffline.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnSelectOffline.Style.GradientAngle = 90; + this.btnSelectOffline.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnSelectOffline.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnSelectOffline.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnSelectOffline.TabIndex = 772; + this.btnSelectOffline.Text = "选掉线"; + this.btnSelectOffline.Click += new System.EventHandler(this.btnSelectOffline_Click); + // + // btnSelectOnline + // + this.btnSelectOnline.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnSelectOnline.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnSelectOnline.DisabledBackColor = System.Drawing.Color.Empty; + this.btnSelectOnline.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnSelectOnline.Location = new System.Drawing.Point(9, 139); + this.btnSelectOnline.Name = "btnSelectOnline"; + this.btnSelectOnline.Size = new System.Drawing.Size(48, 18); + this.btnSelectOnline.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnSelectOnline.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnSelectOnline.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnSelectOnline.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnSelectOnline.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnSelectOnline.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnSelectOnline.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnSelectOnline.Style.GradientAngle = 90; + this.btnSelectOnline.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnSelectOnline.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnSelectOnline.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnSelectOnline.TabIndex = 768; + this.btnSelectOnline.Text = "选在线"; + this.btnSelectOnline.Click += new System.EventHandler(this.btnSelectOnline_Click); + // + // cmbFilterShopGroup + // + this.cmbFilterShopGroup.DefaultText = "全部"; + this.cmbFilterShopGroup.DropDownHeight = 1; + this.cmbFilterShopGroup.DropDownWidth = 1; + this.cmbFilterShopGroup.FormattingEnabled = true; + this.cmbFilterShopGroup.IntegralHeight = false; + this.cmbFilterShopGroup.Location = new System.Drawing.Point(38, 92); + this.cmbFilterShopGroup.Name = "cmbFilterShopGroup"; + this.cmbFilterShopGroup.Size = new System.Drawing.Size(137, 25); + this.cmbFilterShopGroup.TabIndex = 829; + this.cmbFilterShopGroup.Text = "全部"; + // + // btnEmptyShop + // + this.btnEmptyShop.CanvasColor = System.Drawing.SystemColors.Control; + this.btnEmptyShop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnEmptyShop.DisabledBackColor = System.Drawing.Color.Empty; + this.btnEmptyShop.Location = new System.Drawing.Point(143, 139); + this.btnEmptyShop.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2); + this.btnEmptyShop.Name = "btnEmptyShop"; + this.btnEmptyShop.Size = new System.Drawing.Size(32, 18); + this.btnEmptyShop.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnEmptyShop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnEmptyShop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnEmptyShop.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.btnEmptyShop.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnEmptyShop.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.btnEmptyShop.Style.GradientAngle = 90; + this.btnEmptyShop.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; + this.btnEmptyShop.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnEmptyShop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnEmptyShop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnEmptyShop.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; + this.btnEmptyShop.TabIndex = 713; + this.btnEmptyShop.Text = "清空"; + this.btnEmptyShop.Click += new System.EventHandler(this.btnEmptyShop_Click); + // + // btnFilterShop + // + this.btnFilterShop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnFilterShop.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnFilterShop.DisabledBackColor = System.Drawing.Color.Empty; + this.btnFilterShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnFilterShop.Location = new System.Drawing.Point(143, 119); + this.btnFilterShop.Name = "btnFilterShop"; + this.btnFilterShop.Size = new System.Drawing.Size(32, 18); + this.btnFilterShop.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnFilterShop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnFilterShop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnFilterShop.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnFilterShop.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnFilterShop.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnFilterShop.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnFilterShop.Style.GradientAngle = 90; + this.btnFilterShop.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnFilterShop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnFilterShop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnFilterShop.TabIndex = 703; + this.btnFilterShop.Text = "过滤"; + this.btnFilterShop.Click += new System.EventHandler(this.btnFilterShop_Click); + // + // btnRefreshShop + // + this.btnRefreshShop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnRefreshShop.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnRefreshShop.DisabledBackColor = System.Drawing.Color.Empty; + this.btnRefreshShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnRefreshShop.Location = new System.Drawing.Point(9, 18); + this.btnRefreshShop.Name = "btnRefreshShop"; + this.btnRefreshShop.Size = new System.Drawing.Size(166, 18); + this.btnRefreshShop.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnRefreshShop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnRefreshShop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnRefreshShop.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnRefreshShop.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnRefreshShop.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnRefreshShop.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnRefreshShop.Style.GradientAngle = 90; + this.btnRefreshShop.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnRefreshShop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnRefreshShop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnRefreshShop.TabIndex = 431; + this.btnRefreshShop.Text = "刷新店铺"; + this.btnRefreshShop.Click += new System.EventHandler(this.btnRefreshShop_Click); + // + // btnReverse + // + this.btnReverse.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnReverse.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnReverse.DisabledBackColor = System.Drawing.Color.Empty; + this.btnReverse.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnReverse.Location = new System.Drawing.Point(109, 139); + this.btnReverse.Name = "btnReverse"; + this.btnReverse.Size = new System.Drawing.Size(32, 18); + this.btnReverse.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnReverse.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnReverse.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnReverse.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnReverse.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnReverse.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnReverse.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnReverse.Style.GradientAngle = 90; + this.btnReverse.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnReverse.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnReverse.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnReverse.TabIndex = 726; + this.btnReverse.Text = "反选"; + this.btnReverse.Click += new System.EventHandler(this.btnReverse_Click); + // + // btnAddUnSelect + // + this.btnAddUnSelect.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnAddUnSelect.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnAddUnSelect.DisabledBackColor = System.Drawing.Color.Empty; + this.btnAddUnSelect.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnAddUnSelect.Location = new System.Drawing.Point(76, 119); + this.btnAddUnSelect.Name = "btnAddUnSelect"; + this.btnAddUnSelect.Size = new System.Drawing.Size(65, 18); + this.btnAddUnSelect.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnAddUnSelect.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnAddUnSelect.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnAddUnSelect.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnAddUnSelect.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnAddUnSelect.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnAddUnSelect.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnAddUnSelect.Style.GradientAngle = 90; + this.btnAddUnSelect.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnAddUnSelect.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnAddUnSelect.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnAddUnSelect.TabIndex = 746; + this.btnAddUnSelect.Text = "弃选条件"; + this.btnAddUnSelect.Click += new System.EventHandler(this.btnAddUnSelect_Click); + // + // cmbFilterShopNotes + // + this.cmbFilterShopNotes.DefaultText = "全部"; + this.cmbFilterShopNotes.DropDownHeight = 1; + this.cmbFilterShopNotes.DropDownWidth = 1; + this.cmbFilterShopNotes.FormattingEnabled = true; + this.cmbFilterShopNotes.IntegralHeight = false; + this.cmbFilterShopNotes.Location = new System.Drawing.Point(38, 65); + this.cmbFilterShopNotes.Name = "cmbFilterShopNotes"; + this.cmbFilterShopNotes.Size = new System.Drawing.Size(137, 25); + this.cmbFilterShopNotes.TabIndex = 442; + this.cmbFilterShopNotes.Text = "全部"; + // + // btnAddSelect + // + this.btnAddSelect.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnAddSelect.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnAddSelect.DisabledBackColor = System.Drawing.Color.Empty; + this.btnAddSelect.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnAddSelect.Location = new System.Drawing.Point(9, 119); + this.btnAddSelect.Name = "btnAddSelect"; + this.btnAddSelect.Size = new System.Drawing.Size(65, 18); + this.btnAddSelect.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnAddSelect.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnAddSelect.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnAddSelect.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnAddSelect.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnAddSelect.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnAddSelect.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnAddSelect.Style.GradientAngle = 90; + this.btnAddSelect.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnAddSelect.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnAddSelect.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnAddSelect.TabIndex = 742; + this.btnAddSelect.Text = "加选条件"; + this.btnAddSelect.Click += new System.EventHandler(this.btnAddSelect_Click); + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(7, 69); + this.label16.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(32, 17); + this.label16.TabIndex = 697; + this.label16.Text = "备注"; + // + // txtFilterShopName + // + this.txtFilterShopName.Font = new System.Drawing.Font("微软雅黑", 10F); + this.txtFilterShopName.Location = new System.Drawing.Point(38, 38); + this.txtFilterShopName.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2); + this.txtFilterShopName.Name = "txtFilterShopName"; + this.txtFilterShopName.Size = new System.Drawing.Size(137, 25); + this.txtFilterShopName.TabIndex = 653; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(7, 42); + this.label17.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(32, 17); + this.label17.TabIndex = 699; + this.label17.Text = "名称"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(7, 96); + this.label3.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(32, 17); + this.label3.TabIndex = 831; + this.label3.Text = "分组"; + // + // splitContainer3 + // + this.splitContainer3.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer3.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; + this.splitContainer3.Location = new System.Drawing.Point(0, 0); + this.splitContainer3.Name = "splitContainer3"; + this.splitContainer3.Orientation = System.Windows.Forms.Orientation.Horizontal; + // + // splitContainer3.Panel1 + // + this.splitContainer3.Panel1.Controls.Add(this.splitContainer2); + // + // splitContainer3.Panel2 + // + this.splitContainer3.Panel2.Controls.Add(this.splitContainer4); + this.splitContainer3.Size = new System.Drawing.Size(1491, 472); + this.splitContainer3.SplitterDistance = 442; + this.splitContainer3.TabIndex = 1; + // + // splitContainer2 + // + this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; + this.splitContainer2.Location = new System.Drawing.Point(0, 0); + this.splitContainer2.Name = "splitContainer2"; + // + // splitContainer2.Panel1 + // + this.splitContainer2.Panel1.Controls.Add(this.pbLoadingShop); + this.splitContainer2.Panel1.Controls.Add(this.dgvShop); + this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 0, 0); + // + // splitContainer2.Panel2 + // + this.splitContainer2.Panel2.Controls.Add(this.pbLoading); + this.splitContainer2.Panel2.Controls.Add(this.dgvSelectProduct); + this.splitContainer2.Panel2.Padding = new System.Windows.Forms.Padding(0, 0, 4, 0); + this.splitContainer2.Size = new System.Drawing.Size(1491, 442); + this.splitContainer2.SplitterDistance = 350; + this.splitContainer2.TabIndex = 0; + // + // pbLoadingShop + // + this.pbLoadingShop.Anchor = System.Windows.Forms.AnchorStyles.None; + this.pbLoadingShop.Image = global::TemuKJD.Properties.Resources.loading_blue; + this.pbLoadingShop.Location = new System.Drawing.Point(150, 196); + this.pbLoadingShop.Name = "pbLoadingShop"; + this.pbLoadingShop.Size = new System.Drawing.Size(50, 50); + this.pbLoadingShop.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pbLoadingShop.TabIndex = 189; + this.pbLoadingShop.TabStop = false; + this.pbLoadingShop.Visible = false; + // + // dgvShop + // + this.dgvShop.AllowUserToAddRows = false; + this.dgvShop.AllowUserToDeleteRows = false; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; + this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + this.dgvShop.AutoRowNumber = true; + this.dgvShop.BackgroundColor = System.Drawing.Color.White; + this.dgvShop.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.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; + this.dgvShop.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dgvShop.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.colSelect, + this.colShopLoginName, + this.colShopId, + this.colShopName, + this.colShopNotes, + this.colGroup, + this.colSelectProduct, + this.colLoginStatus, + this.colApi, + this.colCanUse, + this.colUploadCount, + this.colOnSaleNum, + this.colRemaining, + this.colMessage}); + this.dgvShop.Dock = System.Windows.Forms.DockStyle.Fill; + this.dgvShop.Location = new System.Drawing.Point(4, 0); + this.dgvShop.MultiSelectCheckBox = true; + this.dgvShop.Name = "dgvShop"; + this.dgvShop.ReadOnly = true; + this.dgvShop.RowHeadersWidth = 25; + this.dgvShop.RowTemplate.Height = 23; + this.dgvShop.Size = new System.Drawing.Size(346, 442); + this.dgvShop.TabIndex = 6; + this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick); + // + // colSelect + // + this.colSelect.Frozen = true; + this.colSelect.HeaderText = "全选"; + this.colSelect.Name = "colSelect"; + this.colSelect.ReadOnly = true; + this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.colSelect.Width = 28; + // + // colShopLoginName + // + this.colShopLoginName.Frozen = true; + this.colShopLoginName.HeaderText = "店铺登录名"; + this.colShopLoginName.Name = "colShopLoginName"; + this.colShopLoginName.ReadOnly = true; + this.colShopLoginName.Visible = false; + // + // colShopId + // + this.colShopId.Frozen = true; + this.colShopId.HeaderText = "店铺Id"; + this.colShopId.Name = "colShopId"; + this.colShopId.ReadOnly = true; + this.colShopId.Visible = false; + this.colShopId.Width = 55; + // + // colShopName + // + this.colShopName.FillWeight = 150F; + this.colShopName.Frozen = true; + this.colShopName.HeaderText = "店铺名称"; + this.colShopName.Name = "colShopName"; + this.colShopName.ReadOnly = true; + this.colShopName.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colShopName.Width = 75; + // + // colShopNotes + // + this.colShopNotes.HeaderText = "备注"; + this.colShopNotes.Name = "colShopNotes"; + this.colShopNotes.ReadOnly = true; + this.colShopNotes.Width = 66; + // + // colGroup + // + this.colGroup.HeaderText = "分组"; + this.colGroup.Name = "colGroup"; + this.colGroup.ReadOnly = true; + this.colGroup.Width = 66; + // + // colSelectProduct + // + this.colSelectProduct.HeaderText = "选择商品"; + this.colSelectProduct.Name = "colSelectProduct"; + this.colSelectProduct.ReadOnly = true; + this.colSelectProduct.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colSelectProduct.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.colSelectProduct.Visible = false; + this.colSelectProduct.Width = 62; + // + // colLoginStatus + // + this.colLoginStatus.HeaderText = "状态"; + this.colLoginStatus.Name = "colLoginStatus"; + this.colLoginStatus.ReadOnly = true; + this.colLoginStatus.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colLoginStatus.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.colLoginStatus.Width = 38; + // + // colApi + // + this.colApi.HeaderText = "Api"; + this.colApi.Name = "colApi"; + this.colApi.ReadOnly = true; + this.colApi.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.colApi.Visible = false; + this.colApi.Width = 38; + // + // colCanUse + // + this.colCanUse.HeaderText = "可用"; + this.colCanUse.Name = "colCanUse"; + this.colCanUse.ReadOnly = true; + this.colCanUse.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colCanUse.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.colCanUse.Visible = false; + this.colCanUse.Width = 28; + // + // colUploadCount + // + this.colUploadCount.HeaderText = "已传"; + this.colUploadCount.Name = "colUploadCount"; + this.colUploadCount.ReadOnly = true; + this.colUploadCount.Visible = false; + this.colUploadCount.Width = 38; + // + // colOnSaleNum + // + this.colOnSaleNum.HeaderText = "在售"; + this.colOnSaleNum.Name = "colOnSaleNum"; + this.colOnSaleNum.ReadOnly = true; + this.colOnSaleNum.Visible = false; + this.colOnSaleNum.Width = 38; + // + // colRemaining + // + this.colRemaining.HeaderText = "月限额"; + this.colRemaining.Name = "colRemaining"; + this.colRemaining.ReadOnly = true; + this.colRemaining.Visible = false; + // + // colMessage + // + this.colMessage.HeaderText = "消息"; + this.colMessage.Name = "colMessage"; + this.colMessage.ReadOnly = 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(543, 196); + this.pbLoading.Name = "pbLoading"; + this.pbLoading.Size = new System.Drawing.Size(50, 50); + this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pbLoading.TabIndex = 780; + this.pbLoading.TabStop = false; + this.pbLoading.Visible = false; + // + // dgvSelectProduct + // + this.dgvSelectProduct.AllowUserToAddRows = false; + this.dgvSelectProduct.AllowUserToDeleteRows = false; + dataGridViewCellStyle3.BackColor = System.Drawing.Color.WhiteSmoke; + this.dgvSelectProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3; + this.dgvSelectProduct.AutoRowNumber = true; + this.dgvSelectProduct.BackgroundColor = System.Drawing.Color.White; + this.dgvSelectProduct.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgvSelectProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4; + this.dgvSelectProduct.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dgvSelectProduct.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.colCheck, + this.colSupplierId, + this.colSupplierName, + this.colLogin, + this.colInShop, + this.colDraftId, + this.colSkuId, + this.colImgUrl, + this.colProductSkcPic, + this.colProductName, + this.colSpec, + this.colPrice, + this.colValidPrice, + this.colStock, + this.colOpResult}); + this.dgvSelectProduct.Dock = System.Windows.Forms.DockStyle.Fill; + this.dgvSelectProduct.Location = new System.Drawing.Point(0, 0); + this.dgvSelectProduct.MultiSelectCheckBox = true; + this.dgvSelectProduct.Name = "dgvSelectProduct"; + this.dgvSelectProduct.ReadOnly = true; + this.dgvSelectProduct.RowTemplate.Height = 23; + this.dgvSelectProduct.Size = new System.Drawing.Size(1133, 442); + this.dgvSelectProduct.TabIndex = 187; + this.dgvSelectProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvSelectProduct_CellContentClick); + // + // colCheck + // + this.colCheck.Frozen = true; + 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; + this.colCheck.Width = 30; + // + // colSupplierId + // + this.colSupplierId.Frozen = true; + this.colSupplierId.HeaderText = "店铺Id"; + this.colSupplierId.Name = "colSupplierId"; + this.colSupplierId.ReadOnly = true; + this.colSupplierId.Visible = false; + // + // colSupplierName + // + dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.colSupplierName.DefaultCellStyle = dataGridViewCellStyle5; + this.colSupplierName.HeaderText = "店铺名称"; + this.colSupplierName.Name = "colSupplierName"; + this.colSupplierName.ReadOnly = true; + // + // colLogin + // + this.colLogin.HeaderText = "登录"; + this.colLogin.Name = "colLogin"; + this.colLogin.ReadOnly = true; + this.colLogin.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colLogin.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.colLogin.Visible = false; + this.colLogin.Width = 38; + // + // colInShop + // + this.colInShop.HeaderText = "进店"; + this.colInShop.Name = "colInShop"; + this.colInShop.ReadOnly = true; + this.colInShop.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colInShop.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.colInShop.Width = 38; + // + // colDraftId + // + this.colDraftId.HeaderText = "商品Id"; + this.colDraftId.Name = "colDraftId"; + this.colDraftId.ReadOnly = true; + this.colDraftId.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colDraftId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.colDraftId.Width = 125; + // + // colSkuId + // + this.colSkuId.HeaderText = "skuId"; + this.colSkuId.Name = "colSkuId"; + this.colSkuId.ReadOnly = true; + this.colSkuId.Visible = false; + // + // colImgUrl + // + this.colImgUrl.HeaderText = "图片地址"; + this.colImgUrl.Name = "colImgUrl"; + this.colImgUrl.ReadOnly = true; + this.colImgUrl.Visible = false; + // + // colProductSkcPic + // + this.colProductSkcPic.HeaderText = "图片"; + this.colProductSkcPic.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Zoom; + this.colProductSkcPic.Name = "colProductSkcPic"; + this.colProductSkcPic.ReadOnly = true; + this.colProductSkcPic.Width = 60; + // + // colProductName + // + dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.colProductName.DefaultCellStyle = dataGridViewCellStyle6; + this.colProductName.HeaderText = "商品名称"; + this.colProductName.Name = "colProductName"; + this.colProductName.ReadOnly = true; + this.colProductName.Width = 220; + // + // colSpec + // + this.colSpec.HeaderText = "商品规格"; + this.colSpec.Name = "colSpec"; + this.colSpec.ReadOnly = true; + this.colSpec.Width = 220; + // + // colPrice + // + this.colPrice.HeaderText = "原价"; + this.colPrice.Name = "colPrice"; + this.colPrice.ReadOnly = true; + // + // colValidPrice + // + this.colValidPrice.HeaderText = "实价"; + this.colValidPrice.Name = "colValidPrice"; + this.colValidPrice.ReadOnly = true; + // + // colStock + // + dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.colStock.DefaultCellStyle = dataGridViewCellStyle7; + this.colStock.HeaderText = "库存"; + this.colStock.Name = "colStock"; + this.colStock.ReadOnly = true; + this.colStock.Width = 60; + // + // colOpResult + // + this.colOpResult.HeaderText = "操作结果"; + this.colOpResult.Name = "colOpResult"; + this.colOpResult.ReadOnly = true; + this.colOpResult.Width = 240; + // + // splitContainer4 + // + this.splitContainer4.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer4.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; + this.splitContainer4.Location = new System.Drawing.Point(0, 0); + this.splitContainer4.Name = "splitContainer4"; + // + // splitContainer4.Panel1 + // + this.splitContainer4.Panel1.Controls.Add(this.statusBar); + // + // splitContainer4.Panel2 + // + this.splitContainer4.Panel2.Controls.Add(this.btnClear); + this.splitContainer4.Panel2.Controls.Add(this.panelEx1); + this.splitContainer4.Size = new System.Drawing.Size(1491, 26); + this.splitContainer4.SplitterDistance = 800; + this.splitContainer4.TabIndex = 3; + // + // statusBar + // + this.statusBar.BackColor = System.Drawing.Color.White; + this.statusBar.Dock = System.Windows.Forms.DockStyle.Fill; + 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(0, 0); + this.statusBar.Margin = new System.Windows.Forms.Padding(0); + this.statusBar.Name = "statusBar"; + this.statusBar.Size = new System.Drawing.Size(800, 26); + this.statusBar.TabIndex = 2; + // + // btnClear + // + this.btnClear.Anchor = System.Windows.Forms.AnchorStyles.Right; + this.btnClear.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnClear.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnClear.DisabledBackColor = System.Drawing.Color.Empty; + this.btnClear.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnClear.Location = new System.Drawing.Point(475, 2); + this.btnClear.Name = "btnClear"; + this.btnClear.Size = new System.Drawing.Size(90, 21); + this.btnClear.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnClear.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnClear.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnClear.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnClear.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnClear.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnClear.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnClear.Style.GradientAngle = 90; + this.btnClear.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnClear.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnClear.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnClear.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; + this.btnClear.TabIndex = 440; + this.btnClear.Text = "清空结果"; + this.btnClear.Visible = false; + // + // panelEx1 + // + this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control; + this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty; + this.panelEx1.Location = new System.Drawing.Point(568, 2); + this.panelEx1.Name = "panelEx1"; + this.panelEx1.Size = new System.Drawing.Size(115, 21); + this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center; + this.panelEx1.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.panelEx1.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.panelEx1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.panelEx1.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.panelEx1.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.panelEx1.Style.GradientAngle = 90; + this.panelEx1.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; + this.panelEx1.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.panelEx1.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.panelEx1.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.panelEx1.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; + this.panelEx1.TabIndex = 668; + this.panelEx1.Text = "停止当前操作"; + this.panelEx1.Visible = false; + // + // WXActivity618Form + // + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; + this.BackColor = System.Drawing.Color.White; + this.ClientSize = new System.Drawing.Size(1491, 641); + this.Controls.Add(this.splitContainer1); + this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.KeyPreview = true; + this.Name = "WXActivity618Form"; + this.Text = "微信小店 - 代发管理"; + this.Load += new System.EventHandler(this.UserSelectDbProductForm_Load); + this.VisibleChanged += new System.EventHandler(this.UserSelectDbProductForm_VisibleChanged); + this.splitContainer1.Panel1.ResumeLayout(false); + this.splitContainer1.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); + this.splitContainer1.ResumeLayout(false); + this.ucGroupBoxEx3.ResumeLayout(false); + this.ucGroupBoxEx3.PerformLayout(); + this.flowLayoutPanel1.ResumeLayout(false); + this.flowLayoutPanel1.PerformLayout(); + this.ucGroupBoxEx4.ResumeLayout(false); + this.ucGroupBoxEx4.PerformLayout(); + this.ucGroupBoxEx1.ResumeLayout(false); + this.ucGroupBoxEx1.PerformLayout(); + this.splitContainer3.Panel1.ResumeLayout(false); + this.splitContainer3.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).EndInit(); + this.splitContainer3.ResumeLayout(false); + this.splitContainer2.Panel1.ResumeLayout(false); + this.splitContainer2.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); + this.splitContainer2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.pbLoadingShop)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dgvShop)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pbLoading)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dgvSelectProduct)).EndInit(); + this.splitContainer4.Panel1.ResumeLayout(false); + this.splitContainer4.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).EndInit(); + this.splitContainer4.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.SplitContainer splitContainer1; + private UserComponent.UcGroupBoxEx ucGroupBoxEx4; + private UserComponent.UcGroupBoxEx ucGroupBoxEx1; + private DevComponents.DotNetBar.PanelEx btnRefreshShop; + private System.Windows.Forms.SplitContainer splitContainer3; + private System.Windows.Forms.SplitContainer splitContainer2; + private UserComponent.DataGridViewEx dgvShop; + private UserComponent.DataGridViewEx dgvSelectProduct; + private System.Windows.Forms.SplitContainer splitContainer4; + private UserControls.StatusBarUserControl statusBar; + private DevComponents.DotNetBar.PanelEx btnSearchOrder; + private DevComponents.DotNetBar.PanelEx btnClear; + private DevComponents.DotNetBar.PanelEx panelEx1; + private System.Windows.Forms.PictureBox pbLoadingShop; + private System.Windows.Forms.PictureBox pbLoading; + private System.Windows.Forms.TextBox txtFilterShopName; + private DevComponents.DotNetBar.PanelEx btnFilterShop; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label16; + private DevComponents.DotNetBar.PanelEx btnEmptyShop; + private UserComponent.UcComboBoxMutiSelect cmbFilterShopNotes; + private DevComponents.DotNetBar.PanelEx btnReverse; + private DevComponents.DotNetBar.PanelEx btnAddUnSelect; + private DevComponents.DotNetBar.PanelEx btnAddSelect; + private DevComponents.DotNetBar.PanelEx btnSelectOffline; + private DevComponents.DotNetBar.PanelEx btnSelectOnline; + private DevComponents.DotNetBar.PanelEx btnStopSearch; + private UserComponent.UcGroupBoxEx ucGroupBoxEx3; + private DevComponents.DotNetBar.PanelEx btnStopOp; + private DevComponents.DotNetBar.PanelEx btnSetActivity; + private UserComponent.UcComboBoxMutiSelect cmbFilterShopGroup; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; + private System.Windows.Forms.DataGridViewTextBoxColumn colShopLoginName; + private System.Windows.Forms.DataGridViewTextBoxColumn colShopId; + private System.Windows.Forms.DataGridViewTextBoxColumn colShopName; + private System.Windows.Forms.DataGridViewTextBoxColumn colShopNotes; + private System.Windows.Forms.DataGridViewTextBoxColumn colGroup; + private System.Windows.Forms.DataGridViewLinkColumn colSelectProduct; + private System.Windows.Forms.DataGridViewLinkColumn colLoginStatus; + private System.Windows.Forms.DataGridViewLinkColumn colApi; + private System.Windows.Forms.DataGridViewCheckBoxColumn colCanUse; + private System.Windows.Forms.DataGridViewTextBoxColumn colUploadCount; + private System.Windows.Forms.DataGridViewTextBoxColumn colOnSaleNum; + private System.Windows.Forms.DataGridViewTextBoxColumn colRemaining; + private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; + private System.Windows.Forms.TextBox txtPrice; + private System.Windows.Forms.ComboBox cmbType; + private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; + private System.Windows.Forms.Label lblPrice; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.TextBox txtPercent; + private System.Windows.Forms.Label lblPercent; + private DevComponents.DotNetBar.PanelEx btnEmpty; + private System.Windows.Forms.TextBox txtPage; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.DataGridViewCheckBoxColumn colCheck; + private System.Windows.Forms.DataGridViewTextBoxColumn colSupplierId; + private System.Windows.Forms.DataGridViewTextBoxColumn colSupplierName; + private System.Windows.Forms.DataGridViewLinkColumn colLogin; + private System.Windows.Forms.DataGridViewLinkColumn colInShop; + private System.Windows.Forms.DataGridViewTextBoxColumn colDraftId; + private System.Windows.Forms.DataGridViewTextBoxColumn colSkuId; + private System.Windows.Forms.DataGridViewTextBoxColumn colImgUrl; + private System.Windows.Forms.DataGridViewImageColumn colProductSkcPic; + private System.Windows.Forms.DataGridViewTextBoxColumn colProductName; + private System.Windows.Forms.DataGridViewTextBoxColumn colSpec; + private System.Windows.Forms.DataGridViewTextBoxColumn colPrice; + private System.Windows.Forms.DataGridViewTextBoxColumn colValidPrice; + private System.Windows.Forms.DataGridViewTextBoxColumn colStock; + private System.Windows.Forms.DataGridViewTextBoxColumn colOpResult; + } +} \ No newline at end of file diff --git a/TEMUKJD/WXForms/ProductForms/ActivityForms/WXActivity618Form.cs b/TEMUKJD/WXForms/ProductForms/ActivityForms/WXActivity618Form.cs new file mode 100644 index 0000000..a8c082a --- /dev/null +++ b/TEMUKJD/WXForms/ProductForms/ActivityForms/WXActivity618Form.cs @@ -0,0 +1,1053 @@ +using AllBase; +using AllBase.Helper; +using AllBase.Model.Result; +using NaiBa.Util.Extension; +using Newtonsoft.Json.Linq; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.IO; +using System.Linq; +using System.Net.Http; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using System.Windows.Forms; +using TemuKJD.Extension; +using TemuKJD.BaseForms; +using TemuKJD.ToolForms; +using Work; +using TemuKJD.BLL; +using System.Text.RegularExpressions; +using TemuKJD.PDDForms.ProductSelectForms; +using TemuKJD.WXForms.ShopForms; +using AllBase.Model.Result.PDDResult; +using AllBase.Model.Param.WXParam; +using AllBase.Model.Result.WXResult; +using Newtonsoft.Json; +using NaiBa.Util; +using AllBase.Model.Config; +using TemuKJD.BLL.Wx; + +namespace TemuKJD.WXForms.ProductForms +{ + public partial class WXActivity618Form : BaseForm + { + int PageBegin = 1; + int PageEnd = 9999; + int discountPrice = 10; + int discountPercent = 1; + + public CancellationTokenSource cancellationTokenSource { get; set; } = null; + public bool IsLoadComplate { get; set; } = false; + + bool isInit = false; + CheckBox chkSelectAll = null; + public WxActivityData wxActivityData = new WxActivityData(); + public Dictionary dicCheckedShopId = new Dictionary(); + public WXActivity618Form() + { + InitializeComponent(); + } + + private void UserSelectDbProductForm_Load(object sender, EventArgs e) + { + PageEnd = txtPage.Text.ParseToInt(); + + dicCheckedShopId = NaiBa.Util.Helper.ConfigHelper.LoadConfig>("wx_checked_shop_dic"); + if (dicCheckedShopId == null) + dicCheckedShopId = new Dictionary(); + + chkSelectAll = dgvShop.Columns["colSelect"].AddHeaderCheckBox(HorizontalAlignment.Center, 0, 0, null, null, false); + dgvShop.Columns["colSelect"].HeaderText = ""; + chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged; + + this.dgvSelectProduct.AddSelectorColumn("colCheck"); + + dgvSelectProduct.AddImgColumn("colProductSkcPic", "colImgUrl"); + + IsLoadComplate = true; + } + + private void chkSelectAll_CheckedChanged(object sender, EventArgs e) + { + if (!chkSelectAll.Checked) + { + foreach (DataGridViewRow row in dgvShop.Rows) + { + row.Cells["colSelect"].Value = false; + } + } + else + { + //var list = GlobalConfig.ShopLoginList.Where(s => s.LoginStatus == "登录成功").Select(ss => ss.ShopId); + foreach (DataGridViewRow row in dgvShop.Rows) + { + //if (list.Any(l => l == row.Cells["colShopId"]?.Value?.ToString())) + if (row.Visible == true) + row.Cells["colSelect"].Value = true; + } + } + + foreach (var r in dgvShop.Rows.Cast()) + { + dicCheckedShopId[r.Cells["colShopId"].Value.ParseToString()] = r.Cells["colSelect"].Value.ParseToBool(); + } + NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_checked_shop_dic", dicCheckedShopId); + } + + private void btnRefreshShop_Click(object sender, EventArgs e) + { + pbLoadingShop.Visible = true; + RefreshShopLogin(); + pbLoadingShop.Visible = false; + } + + private void UserSelectDbProductForm_VisibleChanged(object sender, EventArgs e) + { + if (Visible == true) + { + RefreshShopLogin(); + //updateAuthor(); + + if (!isInit) + { + } + + isInit = true; + } + } + + private void RefreshShopLogin() + { + // 店铺Id + var selectIds = dgvShop.Rows.Cast().Where(row + => row.Cells["colSelect"]?.Value.ParseToBool() == true).Select(r => r.Cells["colShopId"]?.Value.ToString()).ToList(); + // 获取被删除的店铺 + List dgvRowList = dgvShop.Rows.Cast().Where(row + => !GlobalConfig.ShopLoginList.Any(s => s.ShopId == row.Cells["colShopId"]?.Value?.ToString())).ToList(); + // 更新被删除的店铺列表 + foreach (var row in dgvRowList) + { + dgvShop.Rows.Remove(row); + } + // 绑定其他店铺(含新导入的店铺) + foreach (ShopLoginInfo shopEntity in GlobalConfig.ShopLoginList) + { + if (!string.IsNullOrEmpty(shopEntity.ShopId)) + BindShop(shopEntity, selectIds); + } + cmbFilterShopNotes.Items.Clear(); + foreach (var note in GlobalConfig.ShopLoginList.Select(s => s.Notes).Where(s => !s.IsNullOrEmpty()).Distinct()) + { + cmbFilterShopNotes.Items.Add(note); + } + cmbFilterShopGroup.Items.Clear(); + foreach (var note in GlobalConfig.ShopLoginList.Select(s => s.GroupName).Where(s => !s.IsNullOrEmpty()).Distinct()) + { + cmbFilterShopGroup.Items.Add(note); + } + } + + private void BindShop(ShopLoginInfo shopEntity, List selectShopId = null, string msg = "") + { + if (shopEntity == null) + return; + if (shopEntity.is_shop_expire) + return; + if (selectShopId == null) + selectShopId = new List(); + + bool canUse = shopEntity.LoginStatus == "登录成功"; + //canUse = true; // 内部库不需要校验登录状态 + var rows = dgvShop.Rows.Cast().Where(p => p.Cells.GetCellValueFromColumnName("colShopId").ParseToString() == shopEntity.ShopId).ToList(); + var day = DateTime.Now.ToString("yyyyMMdd").ParseToInt(); + if (rows.Count == 0) + { + this.dgvShop.Rows.Add( + //!isInit || (selectShopId.Contains(shopEntity.ShopId) && canUse), + dicCheckedShopId.Keys.Contains(shopEntity.ShopId) && dicCheckedShopId[shopEntity.ShopId] == true, + shopEntity.LoginName, + shopEntity.ShopId, + shopEntity.ShopAccount, + shopEntity.Notes, + shopEntity.GroupName, + "选择商品", + canUse ? "在线" : "掉线", + GlobalConfig.lstWxShopAuthInfo.FirstOrDefault(sa => sa.ShopId == shopEntity.ShopId)?.ExpiresTime > DateTime.Now.AddMinutes(5) ? "可用" : "过期", + canUse, + GlobalConfig.dicWxShopUploadInfo.ContainsKey(shopEntity.ShopId) ? GlobalConfig.dicWxShopUploadInfo[shopEntity.ShopId].DicDayUploadCount[day] : 0, + GlobalConfig.dicWxShopUploadInfo.ContainsKey(shopEntity.ShopId) ? GlobalConfig.dicWxShopUploadInfo[shopEntity.ShopId].OnSaleCount : 0, + shopEntity.AddProductRemaining, + msg + ); + } + else + { + foreach (var row in rows) + { + row.Cells["colSelect"].Value = !isInit || (selectShopId.Contains(shopEntity.ShopId) && canUse); + row.Cells["colShopLoginName"].Value = shopEntity.LoginName; + row.Cells["colShopName"].Value = shopEntity.ShopAccount; + row.Cells["colShopNotes"].Value = shopEntity.Notes; + row.Cells["colGroup"].Value = shopEntity.GroupName; + row.Cells["colLoginStatus"].Value = canUse ? "在线" : "掉线"; + row.Cells["colLoginStatus"].Style.ForeColor = canUse ? Color.Green : Color.Red; + row.Cells["colCanUse"].Value = canUse; + row.Cells["colApi"].Value = GlobalConfig.lstWxShopAuthInfo.FirstOrDefault(sa => sa.ShopId == shopEntity.ShopId)?.ExpiresTime > DateTime.Now.AddMinutes(5) ? "可用" : "过期"; + row.Cells["colRemaining"].Value = shopEntity.AddProductRemaining; + row.Cells["colUploadCount"].Value = GlobalConfig.dicWxShopUploadInfo.ContainsKey(shopEntity.ShopId) ? GlobalConfig.dicWxShopUploadInfo[shopEntity.ShopId].DicDayUploadCount[day] : 0; + row.Cells["colOnSaleNum"].Value = GlobalConfig.dicWxShopUploadInfo.ContainsKey(shopEntity.ShopId) ? GlobalConfig.dicWxShopUploadInfo[shopEntity.ShopId].OnSaleCount : 0; + row.Cells["colMessage"].Value = msg; + } + } + + displayAuthStatus(shopEntity); + } + + void displayAuthStatus(ShopLoginInfo shop) + { + var rows = this.dgvShop.Rows.Cast().Where(r => r.Cells["colShopId"].Value.ParseToString() == shop?.ShopId); + foreach (var row in rows) + { + bool canUse = row.Cells["colLoginStatus"].Value.ParseToString() == "在线"; + (row.Cells["colLoginStatus"] as DataGridViewLinkCell).Style.ForeColor = canUse ? Color.Blue : Color.Red; + (row.Cells["colLoginStatus"] as DataGridViewLinkCell).LinkColor = canUse ? Color.Blue : Color.Red; + (row.Cells["colLoginStatus"] as DataGridViewLinkCell).ActiveLinkColor = canUse ? Color.LightBlue : Color.OrangeRed; + (row.Cells["colLoginStatus"] as DataGridViewLinkCell).VisitedLinkColor = canUse ? Color.DarkBlue : Color.DarkRed; + canUse = row.Cells["colApi"].Value.ParseToString() == "可用"; + (row.Cells["colApi"] as DataGridViewLinkCell).Style.ForeColor = canUse ? Color.Blue : Color.Red; + (row.Cells["colApi"] as DataGridViewLinkCell).LinkColor = canUse ? Color.Blue : Color.Red; + (row.Cells["colApi"] as DataGridViewLinkCell).ActiveLinkColor = canUse ? Color.LightBlue : Color.OrangeRed; + (row.Cells["colApi"] as DataGridViewLinkCell).VisitedLinkColor = canUse ? Color.DarkBlue : Color.DarkRed; + } + } + + private void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e) + { + if (e.ColumnIndex < 0 || e.RowIndex < 0) + return; + string headerText = dgvShop.Columns[e.ColumnIndex].HeaderText; + string columnName = dgvShop.Columns[e.ColumnIndex].Name; + string shopId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToString(); + string shopAccount = dgvShop.Rows[e.RowIndex].Cells["colShopName"].Value.ToString(); + var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId.ToString()); + var row = dgvShop.Rows[e.RowIndex]; + switch (columnName) + { + case "colSelect": + //if (row.Cells["colCanUse"].Value.ParseToBool()) + { + row.Cells["colSelect"].Value = !row.Cells["colSelect"].Value.ParseToBool(); + + chkSelectAll.CheckedChanged -= chkSelectAll_CheckedChanged; + if (dgvShop.Rows.Cast().All(r => r.Cells["colSelect"].Value.ParseToBool())) + chkSelectAll.Checked = true; + else + chkSelectAll.Checked = false; + chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged; + } + //else + { + //BaseMsgForm.ShowInfo("店铺未登录!"); + } + + dicCheckedShopId[row.Cells["colShopId"].Value.ParseToString()] = row.Cells["colSelect"].Value.ParseToBool(); + NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_checked_shop_dic", dicCheckedShopId); + break; + case "colLoginStatus": + { + if (WXShopListForm.Instance == null) + WXShopListForm.Instance = new WXShopListForm(); + WXShopListForm.Instance.CheckShopLogin(new string[] { shop.LoginName }, false); + WXShopLoginForm shopLoginForm = new WXShopLoginForm(shop); + //shopLoginForm.prodUserSelectForm = this; + if (shop.LoginStatus != "登录成功") + { + shopLoginForm.openType = EnumOpenType.login; + shopLoginForm.ShowDialog(); + RefreshShopLogin(); + } + else + { + shopLoginForm.openType = EnumOpenType.manage; + shopLoginForm.WindowState = FormWindowState.Maximized; + shopLoginForm.Show(); + } + } + break; + case "colApi": + { + WXShopLoginForm shopLoginForm = new WXShopLoginForm(shop); + shopLoginForm.openType = EnumOpenType.manage; + shopLoginForm.WindowState = FormWindowState.Maximized; + shopLoginForm.InitUrl = "https://store.weixin.qq.com/shop/servicemarket/detail?serviceId=3984039898079707139"; + shopLoginForm.Show(); + } + break; + } + } + + private void btnSearch_Click(object sender, EventArgs e) + { + var lstShopId = dgvShop.Rows.Cast().Where(row + => row.Cells["colSelect"]?.Value.ParseToBool() == true).Select(r => r.Cells["colShopId"]?.Value.ToString()).ToList(); + if (lstShopId.Count == 0) + { + BaseMsgForm.ShowInfo("请选择店铺!"); + return; + } + } + + private void dgvSelectProduct_CellContentClick(object sender, DataGridViewCellEventArgs e) + { + if (e.ColumnIndex < 0 || e.RowIndex < 0) + return; + string headerText = dgvSelectProduct.Columns[e.ColumnIndex].HeaderText; + var shopId = dgvSelectProduct.Rows[e.RowIndex].Cells["colSupplierId"].Value.ParseToString(); + var draftId = dgvSelectProduct.Rows[e.RowIndex].Cells["colDraftId"].Value.ParseToString(); + var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId); + + switch (headerText) + { + case "删除": + break; + case "登录": + { + WXShopLoginForm shopLoginForm = new WXShopLoginForm(shop); + shopLoginForm.openType = EnumOpenType.login; + shopLoginForm.ShowDialog(); + RefreshShopLogin(); + } + break; + case "进店": + { + WXShopLoginForm shopLoginForm = new WXShopLoginForm(shop); + WXShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false); + if (shop.LoginStatus == "登录成功") + { + shopLoginForm.openType = EnumOpenType.manage; + shopLoginForm.WindowState = FormWindowState.Maximized; + shopLoginForm.InitUrl = "https://store.weixin.qq.com/shop/home"; + //shopLoginForm.InitUrl = "https://store.weixin.qq.com/shop/order/consignment"; + shopLoginForm.Show(); + } + else + { + shopLoginForm.openType = EnumOpenType.login; + shopLoginForm.ShowDialog(); + RefreshShopLogin(); + } + } + break; + case "图片": + { + ShowImgForm imgFrom = new ShowImgForm(dgvSelectProduct.Rows[e.RowIndex].Cells["colImgUrl"].Value.ParseToString()); + imgFrom.ShowDialog(); + break; + } + case "操作": + { + if (BaseMsgForm.ShowConfirm("确认要取消分配吗?取消分配后,订单将回到待分配状态").DialogResult != DialogResult.OK) + return; + this.pbLoading.Visible = true; + Task.Run(() => + { + signActivity(new List() { dgvSelectProduct.Rows[e.RowIndex] }); + Invoke(new Action(() => + { + this.pbLoading.Visible = false; + })); + }, cancellationTokenSource.Token); + break; + } + case "": + dgvSelectProduct.Rows[e.RowIndex].Cells["colCheck"].Value = !(bool)dgvSelectProduct.Rows[e.RowIndex].Cells["colCheck"].Value; + break; + default: + break; + } + } + + private void btnStop_Click(object sender, EventArgs e) + { + if (this.cancellationTokenSource != null) + this.cancellationTokenSource.Cancel(); + } + + private void btnSearchProd_Click(object sender, EventArgs e) + { + var shopIdLst = dgvShop.Rows.Cast().Where(row + => row.Cells["colSelect"]?.Value.ParseToBool() == true).Select(r => r.Cells["colShopId"]?.Value.ToString()).ToList(); + if (shopIdLst.Count <= 0) + { + BaseMsgForm.ShowError("未勾选查询店铺!"); + return; + } + btnSearchOrder.Enabled = false; + pbLoading.Visible = true; + if (cancellationTokenSource != null) + cancellationTokenSource.Cancel(); + cancellationTokenSource = new CancellationTokenSource(); + dgvSelectProduct.Rows.Clear(); + Task.Run(() => + { + GetActivityProductLst(shopIdLst); + Invoke(new Action(() => + { + if (cancellationTokenSource.IsCancellationRequested) + { + this.statusBar.lblTaskStatus.Text = "活动商品查询停止"; + BaseMsgForm.ShowInfo("活动商品查询停止"); + } + else + { + this.statusBar.lblTaskStatus.Text = "活动商品查询完毕"; + BaseMsgForm.ShowInfo("活动商品查询完毕"); + } + pbLoading.Visible = false; + btnSearchOrder.Enabled = true; + })); + }, cancellationTokenSource.Token); + } + + void GetActivityProductLst(List shopIdLst) + { + List shopLst = GlobalConfig.ShopLoginList.Where(s => shopIdLst.Contains(s.ShopId)).ToList(); + this.wxActivityData = new WxActivityData(); + + Invoke(new Action(() => + { + this.pbLoading.Visible = true; + this.statusBar.lblTaskStatus.Text = "正在查询店铺"; + this.statusBar.pgbTaskProgress.Maximum = shopIdLst.Count; + this.statusBar.UpdateProgressBar(0); + })); + + foreach (var shop in shopLst) + { + if (cancellationTokenSource.IsCancellationRequested) + break; + + Invoke(new Action(() => + { + this.statusBar.UpdateProgressBar(this.statusBar.pgbTaskProgress.Value + 1); + })); + + if (shop.LoginStatus != "登录成功") + { + continue; + } + + // 查找报名活动权限 + var result = WXActivity.getShopCanActivity(shop); + if (!result.Contains("\"code\":0")) + { + ShowShopError(shop, result); + continue; + } + Thread.Sleep(Randomx.GetId(200, 1000)); + if (result.Contains("\"conditionState\":3")) + { + Invoke(new Action(() => { BindShop(shop, new List { shop.ShopId }, "店铺不符合报名条件"); })); + continue; + } + if (result.Contains("\"requestState\":3")) + { + result = WXActivity.applyShopActivity(shop); + if (!result.Contains("\"code\":0")) + { + ShowShopError(shop, result); + break; + } + } + + int page = PageBegin - 1; + int totalPage = 1; + int pageSize = 10; + while (page < totalPage && page < PageEnd) + { + page++; + + if (cancellationTokenSource.IsCancellationRequested) + break; + + // 查找报名商品 + var getActivityProdRst = WXActivity.getActivityProdList(shop, page, pageSize); + Thread.Sleep(Randomx.GetId(150, 300)); + if (!getActivityProdRst.Contains("\"code\":0")) + { + ShowShopError(shop, getActivityProdRst); + break; + } + totalPage = BaseRegex.GetIntJson(ref getActivityProdRst, "totalPage"); + + try + { + Invoke(new Action(() => + { + this.pbLoading.Visible = true; + this.statusBar.lblTaskStatus.Text = "正在查询店铺:" + shop.ShopAccount + " " + page + "/" + Math.Min(PageEnd, totalPage); + })); + var prodObjs = JsonHelper.JObjectParse(getActivityProdRst)["data"]; + WxActivityData dataTmp = JsonHelper.DeserializeJsonToObject(JsonHelper.SerializeObject(prodObjs)); + foreach (var prodRequest in dataTmp.requestProductInfoList.resultList) + { + if (this.wxActivityData.requestProductInfoList.resultList.Any(r => r.product.productId == prodRequest.product.productId && r.product.skuId == prodRequest.product.skuId)) + continue; + + prodRequest.shopId = shop.ShopId; + wxActivityData.requestProductInfoList.resultList.Add(prodRequest); + } + foreach (var prod in dataTmp.productList) + { + if (this.wxActivityData.productList.Any(p => p.productKey.productId == prod.productKey.productId)) + continue; + wxActivityData.productList.Add(prod); + var signCnt = wxActivityData.requestProductInfoList.resultList + .Where(r => r.product.productId == prod.productKey.productId && r.isAdded == true).ToList().Count; + var signCntStr = signCnt > 0 ? "," + signCnt + "个已报名" : ""; + Invoke(new Action(() => + { + var rowIndex = this.dgvSelectProduct.Rows.Add( + false, + shop.ShopId, + shop.ShopAccount, + "登录", + "进店", + prod.productKey.productId, + "", + prod.info.headImg.FirstOrDefault(), + DataGridViewExtension.defaultBitmap, + prod.info.title, + "sku数量:" + prod.productSkus.Count + "个" + signCntStr, + prod.productSkus.Min(s => s.productSkuInfo.salePrice) * 0.01m + " - " + prod.productSkus.Max(s => s.productSkuInfo.salePrice) * 0.01m, + prod.productSkus.Min(s => s.productSkuInfo.salePrice) * 0.01m + " - " + prod.productSkus.Max(s => s.productSkuInfo.salePrice) * 0.01m, + prod.info.totalStockNum, + "" + ); + + if (prod.productKey.productId == "10000852942152") + { + var x = JsonHelper.SerializeObject(prod); + } + + dgvSelectProduct.Rows[rowIndex].Height = 60; + //Color color = Color.Red; + //if (dgvSelectProduct.Rows[rowIndex].Cells["colMsg"].Value.ParseToString() == "在售") + // color = Color.Blue; + //if (dgvSelectProduct.Rows[rowIndex].Cells["colMsg"].Value.ParseToString() == "下架") + // color = Color.Purple; + //if (dgvSelectProduct.Rows[rowIndex].Cells["colMsg"].Value.ParseToString() == "草稿箱") + // color = Color.DarkOrange; + //if (dgvSelectProduct.Rows[rowIndex].Cells["colMsg"].Value.ParseToString() == "回收站") + // color = Color.Gray; + //dgvSelectProduct.Rows[rowIndex].Cells["colMsg"].Style.ForeColor = color; + })); + } + } + catch (Exception ex) + { + + } + } + } + } + + private void btnClearDgv_Click(object sender, EventArgs e) + { + var rows = this.dgvSelectProduct.Rows.Cast().ToList(); //Cast后Rows做foreach循环时仍会夹花跳过,所以要ToList转一个新的数组。 + foreach (var row in rows) + { + if (row.Cells["colCheck"].Value.ParseToBool() == true) + { + //var draft_id = row.Cells["colDraftId"].Value.ParseToString(); + //upload_draft_product_lst.RemoveAll(p => p.draft_id == draft_id); + + this.dgvSelectProduct.Rows.Remove(row); + } + } + //NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_select_upload_draft_products", upload_draft_product_lst); + } + + private void btnClearFilter_Click(object sender, EventArgs e) + { + } + + private void btnFilterShop_Click(object sender, EventArgs e) + { + string notes = cmbFilterShopNotes.Text.Trim().Trim(';'); + if (notes == "全部") + notes = ""; + List notesLst = notes.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); + + string group = cmbFilterShopGroup.Text.Trim().Trim(';'); + if (group == "全部") + group = ""; + List groupLst = group.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); + + foreach (DataGridViewRow row in dgvShop.Rows) + { + if (!row.Cells["colShopName"].Value.ParseToString().Contains(txtFilterShopName.Text.Trim())) + { + row.Visible = false; + row.Cells["colSelect"].Value = false; + continue; + } + if (!string.IsNullOrWhiteSpace(notes) && !notesLst.Contains(row.Cells["colShopNotes"].Value.ParseToString())) + { + row.Visible = false; + row.Cells["colSelect"].Value = false; + continue; + } + if (!string.IsNullOrWhiteSpace(group) && !groupLst.Contains(row.Cells["colGroup"].Value.ParseToString())) + { + row.Visible = false; + row.Cells["colSelect"].Value = false; + continue; + } + row.Visible = true; + } + } + + private void btnEmptyShop_Click(object sender, EventArgs e) + { + txtFilterShopName.Text = ""; + cmbFilterShopNotes.Text = "全部"; + cmbFilterShopGroup.Text = "全部"; + btnFilterShop_Click(null, null); + } + + private void btnReverse_Click(object sender, EventArgs e) + { + foreach (DataGridViewRow row in dgvShop.Rows) + { + if (row.Visible == true) + row.Cells["colSelect"].Value = !row.Cells["colSelect"].Value.ParseToBool(); + } + } + + private void btnAddSelect_Click(object sender, EventArgs e) + { + string notes = cmbFilterShopNotes.Text.Trim().Trim(';'); + if (notes == "全部") + notes = ""; + List notesLst = notes.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); + + string group = cmbFilterShopGroup.Text.Trim().Trim(';'); + if (group == "全部") + group = ""; + List groupLst = group.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); + + foreach (DataGridViewRow row in dgvShop.Rows) + { + if (row.Visible == false) + continue; + + if (!row.Cells["colShopName"].Value.ParseToString().Contains(txtFilterShopName.Text.Trim())) + continue; + if (!string.IsNullOrWhiteSpace(notes) && !notesLst.Contains(row.Cells["colShopNotes"].Value.ParseToString())) + continue; + if (!string.IsNullOrWhiteSpace(group) && !groupLst.Contains(row.Cells["colGroup"].Value.ParseToString())) + continue; + + row.Cells["colSelect"].Value = true; + } + } + + private void btnAddUnSelect_Click(object sender, EventArgs e) + { + string notes = cmbFilterShopNotes.Text.Trim().Trim(';'); + if (notes == "全部") + notes = ""; + List notesLst = notes.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); + + string group = cmbFilterShopGroup.Text.Trim().Trim(';'); + if (group == "全部") + group = ""; + List groupLst = group.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); + + foreach (DataGridViewRow row in dgvShop.Rows) + { + if (row.Visible == false) + continue; + + if (!row.Cells["colShopName"].Value.ParseToString().Contains(txtFilterShopName.Text.Trim())) + continue; + if (!string.IsNullOrWhiteSpace(notes) && !notesLst.Contains(row.Cells["colShopNotes"].Value.ParseToString())) + continue; + if (!string.IsNullOrWhiteSpace(group) && !groupLst.Contains(row.Cells["colGroup"].Value.ParseToString())) + continue; + + row.Cells["colSelect"].Value = false; + } + } + + private void btnSelectOnline_Click(object sender, EventArgs e) + { + foreach (DataGridViewRow row in dgvShop.Rows) + { + if (row.Visible == true) + { + if (row.Cells["colLoginStatus"].Value.ParseToString() == "在线") + { + row.Cells["colSelect"].Value = true; + } + else + { + row.Cells["colSelect"].Value = false; + } + } + } + } + + private void btnSelectOffline_Click(object sender, EventArgs e) + { + foreach (DataGridViewRow row in dgvShop.Rows) + { + if (row.Visible == true) + { + if (row.Cells["colLoginStatus"].Value.ParseToString() != "在线") + { + row.Cells["colSelect"].Value = true; + } + else + { + row.Cells["colSelect"].Value = false; + } + } + } + } + + private void btnSetActivity_Click(object sender, EventArgs e) + { + var rowLst = dgvSelectProduct.Rows.Cast().Where(r => r.Cells["colCheck"].Value.ParseToBool() == true).ToList(); + if (rowLst.Count <= 0) + { + BaseMsgForm.ShowError("请勾选需要报名的商品!"); + return; + } + + this.pbLoading.Visible = true; + if (cancellationTokenSource != null && !cancellationTokenSource.IsCancellationRequested) + cancellationTokenSource.Cancel(); + cancellationTokenSource = new CancellationTokenSource(); + Task.Run(() => + { + signActivity(rowLst); + Invoke(new Action(() => + { + if (cancellationTokenSource.IsCancellationRequested) + { + this.statusBar.lblTaskStatus.Text = "设置活动中断"; + BaseMsgForm.ShowInfo("设置活动中断"); + } + else + { + this.statusBar.lblTaskStatus.Text = "设置活动完毕"; + BaseMsgForm.ShowInfo("设置活动完毕"); + } + + this.pbLoading.Visible = false; + })); + }, cancellationTokenSource.Token); + } + + void signActivity(List rowLst) + { + Invoke(new Action(() => + { + this.pbLoading.Visible = true; + this.statusBar.lblTaskStatus.Text = "正在设置活动" + "...".Substring(0, DateTime.Now.Second % 4); + this.statusBar.pgbTaskProgress.Maximum = rowLst.Count; + this.statusBar.UpdateProgressBar(0); + })); + + while (rowLst.Count > 0) + { + if (cancellationTokenSource.IsCancellationRequested) + break; + + var r0 = rowLst.FirstOrDefault(); + var shopId = r0.Cells["colSupplierId"].Value.ParseToString(); + var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId); + var rowLstTmp = rowLst.Where(r => r.Cells["colSupplierId"].Value.ParseToString() == shopId).Take(50).ToList(); + + foreach (var r in rowLstTmp) + { + rowLst.RemoveAll(rw => rw.Cells["colDraftId"].Value == r.Cells["colDraftId"].Value); + + Invoke(new Action(() => + { + this.statusBar.lblTaskStatus.Text = "正在设置活动" + "...".Substring(0, DateTime.Now.Second % 4); + this.statusBar.UpdateProgressBar(this.statusBar.pgbTaskProgress.Value + 1); + r.Cells["colOpResult"].Value = ""; + })); + } + if (shop == null) + { + Invoke(new Action(() => + { + foreach (var r in rowLstTmp) + { + r.Cells["colOpResult"].Value = "店铺不存在"; + } + })); + continue; + } + if (shop.LoginStatus != "登录成功") + { + Invoke(new Action(() => + { + foreach (var r in rowLstTmp) + { + r.Cells["colOpResult"].Value = "店铺掉线"; + } + })); + continue; + } + + //{"cosignmentOrderId":"4436464658179189760","cosignmentProductList":[{"spuId":"10000826730228","skuId":"14511204738","cancelScene":2}],"orderId":"3736464645960385280"} + JObject signActivityObj = new JObject(); + signActivityObj["platformActivityId"] = "1016"; + var jArr = new JArray(); + bool hasProdForActivity = false; + foreach (var row in rowLstTmp) + { + Thread.Sleep(Randomx.GetId(10, 20)); + var prodId = row.Cells["colDraftId"].Value.ParseToString(); + var skus = this.wxActivityData.requestProductInfoList.resultList.Where(p => p.product.productId == prodId).ToList(); + if (skus.All(s => s.isAdded == true)) + { + Invoke(new Action(() => { row.Cells["colOpResult"].Value = "已报名"; })); + } + else + { + hasProdForActivity = true; + Invoke(new Action(() => { row.Cells["colOpResult"].Value = "正在报名"; })); + } + skus = skus.Where(s => s.isAdded != true).ToList(); + foreach (var sku in skus) + { + JObject prodObj = new JObject(); + prodObj["productId"] = prodId; + prodObj["skuId"] = sku.product.skuId; + prodObj["activityStockNum"] = 0; + Invoke(new Action(() => + { + if (cmbType.Text == "价格比例") + prodObj["activityPrice"] = (sku.salePrice.ParseToInt() * (100 - discountPercent) * 0.01m).ParseToInt(); + else + prodObj["activityPrice"] = sku.salePrice.ParseToInt() - discountPrice; + })); + prodObj["stockMode"] = sku.defaultStockMode; + jArr.Add(prodObj); + } + } + signActivityObj["productList"] = jArr; + signActivityObj["actionType"] = 2; + + if (!hasProdForActivity) + continue; + + var signRst = WXActivity.signWxActivity(shop, signActivityObj); + Thread.Sleep(Randomx.GetId(500, 1000)); + if (!signRst.Contains("\"code\":0")) + { + if (signRst.Contains("biz magic invalid")) + { + WXShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false); + if (shop.LoginStatus != "登录成功") + { + Invoke(new Action(() => + { + foreach (var row in rowLstTmp) + { + row.Cells["colOpResult"].Value = "店铺掉线"; + } + })); + continue; + } + } + + var errmsg = BaseRegex.GetStringJson(ref signRst, "msg"); + if (string.IsNullOrWhiteSpace(errmsg)) + errmsg = signRst; + + Invoke(new Action(() => + { + foreach (var row in rowLstTmp) + { + row.Cells["colOpResult"].Value = errmsg; + } + })); + } + + JArray rstArr = new JArray(); + try + { + rstArr = JsonHelper.JObjectParse(signRst)["checkResultList"] as JArray; + if (rstArr == null) + rstArr = new JArray(); + } + catch + { } + + if (signRst.Contains("\"code\":0")) + { + foreach (var row in rowLstTmp) + { + if (row.Cells["colOpResult"].Value.ParseToString() == "已报名") + continue; + + var errStr = ""; + var prodId = row.Cells["colDraftId"].Value.ParseToString(); + var jObjs = rstArr.Where(a => a["product"]["productId"].ParseToString() == prodId).ToList(); + foreach (var jObj in jObjs) + { + if (!string.IsNullOrWhiteSpace(jObj["invalidString"].ParseToString())) + errStr += jObj["product"]["skuId"] + ":" + jObj["invalidString"] + ";"; + } + errStr = errStr.Trim(';'); + + Invoke(new Action(() => + { + row.Cells["colOpResult"].Value = "报名活动成功 " + errStr; + })); + } + } + } + } + + private void btnFiltSelect_Click(object sender, EventArgs e) + { + foreach (DataGridViewRow row in dgvSelectProduct.Rows) + { + // 2,3拼多多 6抖音 + if (!row.Cells["colNotes"].Value.ParseToString().StartsWith("2") && !row.Cells["colNotes"].Value.ParseToString().StartsWith("3") && + !row.Cells["colNotes"].Value.ParseToString().StartsWith("6")) + { + row.Cells["colCheck"].Value = false; + continue; + } + // ^\d{6}.*$ + string pattern1 = @"^\d{6}-\d{15}.*$"; // 定义正则表达式模式 + string pattern2 = @"^\d{19}.*$"; // 定义正则表达式模式 + Regex regex1 = new Regex(pattern1); + Regex regex2 = new Regex(pattern2); + if (!regex1.IsMatch(row.Cells["colNotes"].Value.ParseToString()) && !regex2.IsMatch(row.Cells["colNotes"].Value.ParseToString())) + { + row.Cells["colCheck"].Value = false; + continue; + } + row.Cells["colCheck"].Value = true; + } + } + + void ShowShopError(ShopLoginInfo shop, string operateResult) + { + var error = BaseRegex.GetStringJson(ref operateResult, "msg"); + if (string.IsNullOrEmpty(error)) + error = BaseRegex.GetStringJson(ref operateResult, "errMsg"); + if (string.IsNullOrEmpty(error)) + error = BaseRegex.GetStringJson(ref operateResult, "errorMsg"); + if (string.IsNullOrEmpty(error)) + error = operateResult; + + WXShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false); + + if (shop.LoginStatus != "登录成功") + { + Invoke(new Action(() => { BindShop(shop, new List { shop.ShopId }, "店铺掉线"); })); + } + else + { + Invoke(new Action(() => { BindShop(shop, new List { shop.ShopId }, error); })); + } + } + + private void btnEmpty_Click(object sender, EventArgs e) + { + txtPage.Text = "9999"; + } + + private void txtPage_TextChanged(object sender, EventArgs e) + { + PageEnd = txtPage.Text.ParseToInt(); + } + + private void cmbType_TextChanged(object sender, EventArgs e) + { + txtPrice.Visible = false; + lblPrice.Visible = false; + txtPercent.Visible = false; + lblPercent.Visible = false; + if (cmbType.Text == "固定金额") + { + txtPrice.Visible = true; + lblPrice.Visible = true; + } + else if (cmbType.Text == "价格比例") + { + txtPercent.Visible = true; + lblPercent.Visible = true; + } + } + + private void txtPrice_TextChanged(object sender, EventArgs e) + { + discountPrice = (txtPrice.Text.ParseToDecimal() * 100).ParseToInt(); + } + + private void txtPercent_TextChanged(object sender, EventArgs e) + { + discountPercent = txtPercent.Text.ParseToInt(); + } + } + + public class WXActivity + { + public static string getShopCanActivity(ShopLoginInfo shop, string activityId = "1016") + { + string url = "https://store.weixin.qq.com/shop-faas/mmeckolmarketingnode/activity/cgi/queryShopPlatformActivity?token=&lang=zh_CN&platformActivityId=" + activityId; + string refere = "https://store.weixin.qq.com/shop/marketingkol/activity/detail?id=" + activityId + "&curTab=2"; + var result = WXHttpResponseBLL.WeiXinGetResponse(shop, url, refere); + // "requestState": 1 // 1为已报名 3为未报名 + return result; + } + + public static string applyShopActivity(ShopLoginInfo shop, string activityId = "1016") + { + string url = "https://store.weixin.qq.com/shop-faas/mmeckolmarketingnode/activity/cgi/applyShopPlatformActivity?token=&lang=zh_CN"; + string refere = "https://store.weixin.qq.com/shop/marketingkol/activity/detail?id=" + activityId + "&curTab=2"; + string data = @"{""platformActivityId"":""" + activityId + @""",""finderCommunicationInfo"":{}}"; + var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, data, refere); + return result; + } + + public static string getActivityProdList(ShopLoginInfo shop, int page, int pageSize = 10, string activityId = "1016") + { + //{"keyword":"","pageNum":1,"pageSize":10,"platformActivityId":"1016"} + + string url = "https://store.weixin.qq.com/shop-faas/mmeckolmarketingnode/activity/cgi/scanProductForPlatformInvestment?token=&lang=zh_CN"; + string refere = "https://store.weixin.qq.com/shop/marketingkol/activity/detail?id=" + activityId + "&goToUploadProduct=1"; + string data = @"{""keyword"":"""",""pageNum"":" + page + @",""pageSize"":" + pageSize + @",""platformActivityId"":""" + activityId + @"""}"; + var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, data, refere); + return result; + } + + public static string signWxActivity(ShopLoginInfo shop, JObject prodData, string activityId = "1016") + { + //{"keyword":"","pageNum":1,"pageSize":10,"platformActivityId":"1016"} + + string url = "https://store.weixin.qq.com/shop-faas/mmeckolmarketingnode/activity/cgi/updateRequestProductList?token=&lang=zh_CN"; + string refere = "https://store.weixin.qq.com/shop/marketingkol/activity/detail?id=" + activityId + "&goToUploadProduct=1"; + string data = JsonHelper.SerializeObject(prodData); + var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, data, refere); + return result; + } + } + +} diff --git a/TEMUKJD/WXForms/ProductForms/ActivityForms/WXActivity618Form.resx b/TEMUKJD/WXForms/ProductForms/ActivityForms/WXActivity618Form.resx new file mode 100644 index 0000000..acbb923 --- /dev/null +++ b/TEMUKJD/WXForms/ProductForms/ActivityForms/WXActivity618Form.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/ProductForms/WXFinderSquareForm.Designer.cs b/TEMUKJD/WXForms/ProductForms/WXFinderSquareForm.Designer.cs index b397bb5..eff7c04 100644 --- a/TEMUKJD/WXForms/ProductForms/WXFinderSquareForm.Designer.cs +++ b/TEMUKJD/WXForms/ProductForms/WXFinderSquareForm.Designer.cs @@ -51,6 +51,8 @@ namespace TemuKJD.WXForms.ProductForms this.btnClearFilter = new DevComponents.DotNetBar.PanelEx(); this.btnSearchTalent = new DevComponents.DotNetBar.PanelEx(); this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); + this.cmbFilterShopGroup = new TemuKJD.UserComponent.UcComboBoxMutiSelect(); + this.label24 = new System.Windows.Forms.Label(); this.btnSelectOffline = new DevComponents.DotNetBar.PanelEx(); this.btnSelectOnline = new DevComponents.DotNetBar.PanelEx(); this.btnAddUnSelect = new DevComponents.DotNetBar.PanelEx(); @@ -70,6 +72,7 @@ namespace TemuKJD.WXForms.ProductForms this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colShopNotes = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colGroup = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colSelectProduct = new System.Windows.Forms.DataGridViewLinkColumn(); this.colLoginStatus = new System.Windows.Forms.DataGridViewLinkColumn(); this.colApi = new System.Windows.Forms.DataGridViewLinkColumn(); @@ -170,7 +173,7 @@ namespace TemuKJD.WXForms.ProductForms this.splitContainer1.Panel2.Controls.Add(this.pbLoadingShop); this.splitContainer1.Panel2.Controls.Add(this.dgvShop); this.splitContainer1.Panel2.Padding = new System.Windows.Forms.Padding(4, 0, 0, 4); - this.splitContainer1.Size = new System.Drawing.Size(350, 611); + this.splitContainer1.Size = new System.Drawing.Size(365, 611); this.splitContainer1.SplitterDistance = 165; this.splitContainer1.TabIndex = 11; // @@ -189,9 +192,9 @@ namespace TemuKJD.WXForms.ProductForms this.ucGroupBoxEx4.Controls.Add(this.label2); this.ucGroupBoxEx4.Controls.Add(this.btnClearFilter); this.ucGroupBoxEx4.Controls.Add(this.btnSearchTalent); - this.ucGroupBoxEx4.Location = new System.Drawing.Point(162, 2); + this.ucGroupBoxEx4.Location = new System.Drawing.Point(186, 2); this.ucGroupBoxEx4.Name = "ucGroupBoxEx4"; - this.ucGroupBoxEx4.Size = new System.Drawing.Size(190, 165); + this.ucGroupBoxEx4.Size = new System.Drawing.Size(181, 165); this.ucGroupBoxEx4.TabIndex = 666; this.ucGroupBoxEx4.TabStop = false; this.ucGroupBoxEx4.Text = "达人查询"; @@ -200,18 +203,18 @@ namespace TemuKJD.WXForms.ProductForms // this.label5.AutoSize = true; this.label5.ForeColor = System.Drawing.SystemColors.ControlDarkDark; - this.label5.Location = new System.Drawing.Point(44, 22); + this.label5.Location = new System.Drawing.Point(36, 22); this.label5.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(140, 34); this.label5.TabIndex = 818; - this.label5.Text = "达人广场页面上选好查询\r\n条件后点击达人查询按钮"; + this.label5.Text = "达人广场页面上选好查询\r\n条件后点击达人搜索按钮"; // // textBox1 // this.textBox1.Font = new System.Drawing.Font("微软雅黑", 10F); this.textBox1.ForeColor = System.Drawing.Color.Red; - this.textBox1.Location = new System.Drawing.Point(65, 64); + this.textBox1.Location = new System.Drawing.Point(59, 64); this.textBox1.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2); this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(114, 25); @@ -220,7 +223,7 @@ namespace TemuKJD.WXForms.ProductForms // label3 // this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(9, 68); + this.label3.Location = new System.Drawing.Point(4, 68); this.label3.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0); this.label3.Name = "label3"; this.label3.RightToLeft = System.Windows.Forms.RightToLeft.Yes; @@ -231,7 +234,7 @@ namespace TemuKJD.WXForms.ProductForms // txtPageEnd // this.txtPageEnd.Font = new System.Drawing.Font("微软雅黑", 10F); - this.txtPageEnd.Location = new System.Drawing.Point(65, 94); + this.txtPageEnd.Location = new System.Drawing.Point(59, 94); this.txtPageEnd.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2); this.txtPageEnd.Name = "txtPageEnd"; this.txtPageEnd.Size = new System.Drawing.Size(114, 25); @@ -242,7 +245,7 @@ namespace TemuKJD.WXForms.ProductForms // label1 // this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(9, 98); + this.label1.Location = new System.Drawing.Point(4, 98); this.label1.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0); this.label1.Name = "label1"; this.label1.RightToLeft = System.Windows.Forms.RightToLeft.Yes; @@ -256,7 +259,7 @@ namespace TemuKJD.WXForms.ProductForms 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(123, 127); + this.btnStop.Location = new System.Drawing.Point(118, 127); this.btnStop.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2); this.btnStop.Name = "btnStop"; this.btnStop.Size = new System.Drawing.Size(56, 25); @@ -279,7 +282,7 @@ namespace TemuKJD.WXForms.ProductForms // label2 // this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(9, 22); + this.label2.Location = new System.Drawing.Point(3, 22); this.label2.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(44, 17); @@ -292,7 +295,7 @@ namespace TemuKJD.WXForms.ProductForms this.btnClearFilter.CanvasColor = System.Drawing.SystemColors.Control; this.btnClearFilter.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.btnClearFilter.DisabledBackColor = System.Drawing.Color.Empty; - this.btnClearFilter.Location = new System.Drawing.Point(12, 127); + this.btnClearFilter.Location = new System.Drawing.Point(7, 127); this.btnClearFilter.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2); this.btnClearFilter.Name = "btnClearFilter"; this.btnClearFilter.Size = new System.Drawing.Size(41, 25); @@ -320,7 +323,7 @@ namespace TemuKJD.WXForms.ProductForms this.btnSearchTalent.Cursor = System.Windows.Forms.Cursors.Hand; this.btnSearchTalent.DisabledBackColor = System.Drawing.Color.Empty; this.btnSearchTalent.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSearchTalent.Location = new System.Drawing.Point(65, 127); + this.btnSearchTalent.Location = new System.Drawing.Point(60, 127); this.btnSearchTalent.Name = "btnSearchTalent"; this.btnSearchTalent.Size = new System.Drawing.Size(56, 25); this.btnSearchTalent.Style.Alignment = System.Drawing.StringAlignment.Center; @@ -344,6 +347,8 @@ namespace TemuKJD.WXForms.ProductForms | System.Windows.Forms.AnchorStyles.Left))); this.ucGroupBoxEx1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.ucGroupBoxEx1.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND; + this.ucGroupBoxEx1.Controls.Add(this.cmbFilterShopGroup); + this.ucGroupBoxEx1.Controls.Add(this.label24); this.ucGroupBoxEx1.Controls.Add(this.btnSelectOffline); this.ucGroupBoxEx1.Controls.Add(this.btnSelectOnline); this.ucGroupBoxEx1.Controls.Add(this.btnAddUnSelect); @@ -358,10 +363,33 @@ namespace TemuKJD.WXForms.ProductForms this.ucGroupBoxEx1.Controls.Add(this.label17); this.ucGroupBoxEx1.Location = new System.Drawing.Point(2, 2); this.ucGroupBoxEx1.Name = "ucGroupBoxEx1"; - this.ucGroupBoxEx1.Size = new System.Drawing.Size(160, 165); + this.ucGroupBoxEx1.Size = new System.Drawing.Size(185, 165); this.ucGroupBoxEx1.TabIndex = 399; this.ucGroupBoxEx1.TabStop = false; - this.ucGroupBoxEx1.Text = "基础"; + this.ucGroupBoxEx1.Text = "店铺筛选"; + // + // cmbFilterShopGroup + // + this.cmbFilterShopGroup.DefaultText = "全部"; + this.cmbFilterShopGroup.DropDownHeight = 1; + this.cmbFilterShopGroup.DropDownWidth = 1; + this.cmbFilterShopGroup.FormattingEnabled = true; + this.cmbFilterShopGroup.IntegralHeight = false; + this.cmbFilterShopGroup.Location = new System.Drawing.Point(38, 92); + this.cmbFilterShopGroup.Name = "cmbFilterShopGroup"; + this.cmbFilterShopGroup.Size = new System.Drawing.Size(137, 25); + this.cmbFilterShopGroup.TabIndex = 836; + this.cmbFilterShopGroup.Text = "全部"; + // + // label24 + // + this.label24.AutoSize = true; + this.label24.Location = new System.Drawing.Point(7, 96); + this.label24.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0); + this.label24.Name = "label24"; + this.label24.Size = new System.Drawing.Size(32, 17); + this.label24.TabIndex = 837; + this.label24.Text = "分组"; // // btnSelectOffline // @@ -369,9 +397,9 @@ namespace TemuKJD.WXForms.ProductForms this.btnSelectOffline.Cursor = System.Windows.Forms.Cursors.Hand; this.btnSelectOffline.DisabledBackColor = System.Drawing.Color.Empty; this.btnSelectOffline.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSelectOffline.Location = new System.Drawing.Point(61, 137); + this.btnSelectOffline.Location = new System.Drawing.Point(59, 139); this.btnSelectOffline.Name = "btnSelectOffline"; - this.btnSelectOffline.Size = new System.Drawing.Size(50, 20); + this.btnSelectOffline.Size = new System.Drawing.Size(48, 18); this.btnSelectOffline.Style.Alignment = System.Drawing.StringAlignment.Center; this.btnSelectOffline.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.btnSelectOffline.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); @@ -393,9 +421,9 @@ namespace TemuKJD.WXForms.ProductForms this.btnSelectOnline.Cursor = System.Windows.Forms.Cursors.Hand; this.btnSelectOnline.DisabledBackColor = System.Drawing.Color.Empty; this.btnSelectOnline.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSelectOnline.Location = new System.Drawing.Point(9, 137); + this.btnSelectOnline.Location = new System.Drawing.Point(9, 139); this.btnSelectOnline.Name = "btnSelectOnline"; - this.btnSelectOnline.Size = new System.Drawing.Size(50, 20); + this.btnSelectOnline.Size = new System.Drawing.Size(48, 18); this.btnSelectOnline.Style.Alignment = System.Drawing.StringAlignment.Center; this.btnSelectOnline.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.btnSelectOnline.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); @@ -417,9 +445,9 @@ namespace TemuKJD.WXForms.ProductForms this.btnAddUnSelect.Cursor = System.Windows.Forms.Cursors.Hand; this.btnAddUnSelect.DisabledBackColor = System.Drawing.Color.Empty; this.btnAddUnSelect.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnAddUnSelect.Location = new System.Drawing.Point(81, 115); + this.btnAddUnSelect.Location = new System.Drawing.Point(76, 119); this.btnAddUnSelect.Name = "btnAddUnSelect"; - this.btnAddUnSelect.Size = new System.Drawing.Size(70, 20); + this.btnAddUnSelect.Size = new System.Drawing.Size(65, 18); this.btnAddUnSelect.Style.Alignment = System.Drawing.StringAlignment.Center; this.btnAddUnSelect.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.btnAddUnSelect.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); @@ -441,9 +469,9 @@ namespace TemuKJD.WXForms.ProductForms this.btnReverse.Cursor = System.Windows.Forms.Cursors.Hand; this.btnReverse.DisabledBackColor = System.Drawing.Color.Empty; this.btnReverse.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnReverse.Location = new System.Drawing.Point(113, 137); + this.btnReverse.Location = new System.Drawing.Point(109, 139); this.btnReverse.Name = "btnReverse"; - this.btnReverse.Size = new System.Drawing.Size(38, 20); + this.btnReverse.Size = new System.Drawing.Size(32, 18); this.btnReverse.Style.Alignment = System.Drawing.StringAlignment.Center; this.btnReverse.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.btnReverse.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); @@ -466,9 +494,9 @@ namespace TemuKJD.WXForms.ProductForms this.cmbFilterShopNotes.DropDownWidth = 1; this.cmbFilterShopNotes.FormattingEnabled = true; this.cmbFilterShopNotes.IntegralHeight = false; - this.cmbFilterShopNotes.Location = new System.Drawing.Point(38, 66); + this.cmbFilterShopNotes.Location = new System.Drawing.Point(38, 65); this.cmbFilterShopNotes.Name = "cmbFilterShopNotes"; - this.cmbFilterShopNotes.Size = new System.Drawing.Size(113, 25); + this.cmbFilterShopNotes.Size = new System.Drawing.Size(137, 25); this.cmbFilterShopNotes.TabIndex = 442; this.cmbFilterShopNotes.Text = "全部"; // @@ -478,9 +506,9 @@ namespace TemuKJD.WXForms.ProductForms this.btnAddSelect.Cursor = System.Windows.Forms.Cursors.Hand; this.btnAddSelect.DisabledBackColor = System.Drawing.Color.Empty; this.btnAddSelect.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnAddSelect.Location = new System.Drawing.Point(9, 115); + this.btnAddSelect.Location = new System.Drawing.Point(9, 119); this.btnAddSelect.Name = "btnAddSelect"; - this.btnAddSelect.Size = new System.Drawing.Size(70, 20); + this.btnAddSelect.Size = new System.Drawing.Size(65, 18); this.btnAddSelect.Style.Alignment = System.Drawing.StringAlignment.Center; this.btnAddSelect.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.btnAddSelect.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); @@ -501,10 +529,10 @@ namespace TemuKJD.WXForms.ProductForms this.btnEmptyShop.CanvasColor = System.Drawing.SystemColors.Control; this.btnEmptyShop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.btnEmptyShop.DisabledBackColor = System.Drawing.Color.Empty; - this.btnEmptyShop.Location = new System.Drawing.Point(113, 93); + this.btnEmptyShop.Location = new System.Drawing.Point(143, 139); this.btnEmptyShop.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2); this.btnEmptyShop.Name = "btnEmptyShop"; - this.btnEmptyShop.Size = new System.Drawing.Size(38, 20); + this.btnEmptyShop.Size = new System.Drawing.Size(32, 18); this.btnEmptyShop.Style.Alignment = System.Drawing.StringAlignment.Center; this.btnEmptyShop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); this.btnEmptyShop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); @@ -527,9 +555,9 @@ namespace TemuKJD.WXForms.ProductForms this.btnFilterShop.Cursor = System.Windows.Forms.Cursors.Hand; this.btnFilterShop.DisabledBackColor = System.Drawing.Color.Empty; this.btnFilterShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnFilterShop.Location = new System.Drawing.Point(9, 93); + this.btnFilterShop.Location = new System.Drawing.Point(143, 119); this.btnFilterShop.Name = "btnFilterShop"; - this.btnFilterShop.Size = new System.Drawing.Size(102, 20); + this.btnFilterShop.Size = new System.Drawing.Size(32, 18); this.btnFilterShop.Style.Alignment = System.Drawing.StringAlignment.Center; this.btnFilterShop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.btnFilterShop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); @@ -542,13 +570,13 @@ namespace TemuKJD.WXForms.ProductForms this.btnFilterShop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); this.btnFilterShop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); this.btnFilterShop.TabIndex = 703; - this.btnFilterShop.Text = "过滤店铺"; + this.btnFilterShop.Text = "过滤"; this.btnFilterShop.Click += new System.EventHandler(this.btnFilterShop_Click); // // label16 // this.label16.AutoSize = true; - this.label16.Location = new System.Drawing.Point(7, 70); + this.label16.Location = new System.Drawing.Point(7, 69); this.label16.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0); this.label16.Name = "label16"; this.label16.Size = new System.Drawing.Size(32, 17); @@ -558,10 +586,10 @@ namespace TemuKJD.WXForms.ProductForms // txtFilterShopName // this.txtFilterShopName.Font = new System.Drawing.Font("微软雅黑", 10F); - this.txtFilterShopName.Location = new System.Drawing.Point(38, 39); + this.txtFilterShopName.Location = new System.Drawing.Point(38, 38); this.txtFilterShopName.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2); this.txtFilterShopName.Name = "txtFilterShopName"; - this.txtFilterShopName.Size = new System.Drawing.Size(113, 25); + this.txtFilterShopName.Size = new System.Drawing.Size(137, 25); this.txtFilterShopName.TabIndex = 653; // // btnRefreshShop @@ -570,9 +598,9 @@ namespace TemuKJD.WXForms.ProductForms this.btnRefreshShop.Cursor = System.Windows.Forms.Cursors.Hand; this.btnRefreshShop.DisabledBackColor = System.Drawing.Color.Empty; this.btnRefreshShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnRefreshShop.Location = new System.Drawing.Point(9, 17); + this.btnRefreshShop.Location = new System.Drawing.Point(9, 18); this.btnRefreshShop.Name = "btnRefreshShop"; - this.btnRefreshShop.Size = new System.Drawing.Size(142, 20); + this.btnRefreshShop.Size = new System.Drawing.Size(166, 18); this.btnRefreshShop.Style.Alignment = System.Drawing.StringAlignment.Center; this.btnRefreshShop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.btnRefreshShop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); @@ -591,7 +619,7 @@ namespace TemuKJD.WXForms.ProductForms // label17 // this.label17.AutoSize = true; - this.label17.Location = new System.Drawing.Point(7, 43); + this.label17.Location = new System.Drawing.Point(7, 42); this.label17.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0); this.label17.Name = "label17"; this.label17.Size = new System.Drawing.Size(32, 17); @@ -602,7 +630,7 @@ namespace TemuKJD.WXForms.ProductForms // this.pbLoadingShop.Anchor = System.Windows.Forms.AnchorStyles.None; this.pbLoadingShop.Image = global::TemuKJD.Properties.Resources.loading_blue; - this.pbLoadingShop.Location = new System.Drawing.Point(152, 194); + this.pbLoadingShop.Location = new System.Drawing.Point(159, 194); this.pbLoadingShop.Name = "pbLoadingShop"; this.pbLoadingShop.Size = new System.Drawing.Size(50, 50); this.pbLoadingShop.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; @@ -634,6 +662,7 @@ namespace TemuKJD.WXForms.ProductForms this.colShopId, this.colShopName, this.colShopNotes, + this.colGroup, this.colSelectProduct, this.colLoginStatus, this.colApi, @@ -649,7 +678,7 @@ namespace TemuKJD.WXForms.ProductForms this.dgvShop.ReadOnly = true; this.dgvShop.RowHeadersWidth = 25; this.dgvShop.RowTemplate.Height = 23; - this.dgvShop.Size = new System.Drawing.Size(346, 438); + this.dgvShop.Size = new System.Drawing.Size(361, 438); this.dgvShop.TabIndex = 6; this.dgvShop.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellClick); this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick); @@ -692,7 +721,14 @@ namespace TemuKJD.WXForms.ProductForms this.colShopNotes.HeaderText = "备注"; this.colShopNotes.Name = "colShopNotes"; this.colShopNotes.ReadOnly = true; - this.colShopNotes.Width = 75; + this.colShopNotes.Width = 66; + // + // colGroup + // + this.colGroup.HeaderText = "分组"; + this.colGroup.Name = "colGroup"; + this.colGroup.ReadOnly = true; + this.colGroup.Width = 66; // // colSelectProduct // @@ -804,7 +840,7 @@ namespace TemuKJD.WXForms.ProductForms this.dgvTalent.Name = "dgvTalent"; this.dgvTalent.ReadOnly = true; this.dgvTalent.RowTemplate.Height = 23; - this.dgvTalent.Size = new System.Drawing.Size(986, 438); + this.dgvTalent.Size = new System.Drawing.Size(971, 438); this.dgvTalent.TabIndex = 187; this.dgvTalent.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvTalent_CellContentClick); // @@ -982,7 +1018,7 @@ namespace TemuKJD.WXForms.ProductForms this.splitContainer2.Panel2.Controls.Add(this.ucTabControl1); this.splitContainer2.Panel2.Controls.Add(this.chkTestNoAuditUpload); this.splitContainer2.Size = new System.Drawing.Size(1346, 611); - this.splitContainer2.SplitterDistance = 350; + this.splitContainer2.SplitterDistance = 365; this.splitContainer2.TabIndex = 0; // // ucTabControl1 @@ -996,7 +1032,7 @@ namespace TemuKJD.WXForms.ProductForms this.ucTabControl1.Name = "ucTabControl1"; this.ucTabControl1.SelectedIndex = 0; this.ucTabControl1.ShowCloseButton = false; - this.ucTabControl1.Size = new System.Drawing.Size(992, 611); + this.ucTabControl1.Size = new System.Drawing.Size(977, 611); this.ucTabControl1.TabIndex = 780; this.ucTabControl1.TabSelectColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.ucTabControl1.TabSelectTextColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); @@ -1007,7 +1043,7 @@ namespace TemuKJD.WXForms.ProductForms this.tabPage1.Controls.Add(this.mainPanel); this.tabPage1.Location = new System.Drawing.Point(2, 32); this.tabPage1.Name = "tabPage1"; - this.tabPage1.Size = new System.Drawing.Size(986, 575); + this.tabPage1.Size = new System.Drawing.Size(971, 575); this.tabPage1.TabIndex = 1; this.tabPage1.Text = "达人广场"; this.tabPage1.UseVisualStyleBackColor = true; @@ -1017,7 +1053,7 @@ namespace TemuKJD.WXForms.ProductForms this.mainPanel.Dock = System.Windows.Forms.DockStyle.Fill; this.mainPanel.Location = new System.Drawing.Point(0, 0); this.mainPanel.Name = "mainPanel"; - this.mainPanel.Size = new System.Drawing.Size(986, 575); + this.mainPanel.Size = new System.Drawing.Size(971, 575); this.mainPanel.TabIndex = 1; // // tabPage2 @@ -1025,7 +1061,7 @@ namespace TemuKJD.WXForms.ProductForms this.tabPage2.Controls.Add(this.splitContainer5); this.tabPage2.Location = new System.Drawing.Point(2, 32); this.tabPage2.Name = "tabPage2"; - this.tabPage2.Size = new System.Drawing.Size(986, 575); + this.tabPage2.Size = new System.Drawing.Size(971, 575); this.tabPage2.TabIndex = 2; this.tabPage2.Text = "操作列表"; this.tabPage2.UseVisualStyleBackColor = true; @@ -1060,7 +1096,7 @@ namespace TemuKJD.WXForms.ProductForms // this.splitContainer5.Panel2.Controls.Add(this.pbLoading); this.splitContainer5.Panel2.Controls.Add(this.dgvTalent); - this.splitContainer5.Size = new System.Drawing.Size(986, 575); + this.splitContainer5.Size = new System.Drawing.Size(971, 575); this.splitContainer5.SplitterDistance = 133; this.splitContainer5.TabIndex = 0; // @@ -1083,7 +1119,7 @@ namespace TemuKJD.WXForms.ProductForms this.btnStop2.CanvasColor = System.Drawing.SystemColors.Control; this.btnStop2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.btnStop2.DisabledBackColor = System.Drawing.Color.Empty; - this.btnStop2.Location = new System.Drawing.Point(913, 97); + this.btnStop2.Location = new System.Drawing.Point(898, 97); this.btnStop2.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2); this.btnStop2.Name = "btnStop2"; this.btnStop2.Size = new System.Drawing.Size(56, 25); @@ -1110,7 +1146,7 @@ namespace TemuKJD.WXForms.ProductForms this.btnAddFinder.Cursor = System.Windows.Forms.Cursors.Hand; this.btnAddFinder.DisabledBackColor = System.Drawing.Color.Empty; this.btnAddFinder.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnAddFinder.Location = new System.Drawing.Point(827, 97); + this.btnAddFinder.Location = new System.Drawing.Point(812, 97); this.btnAddFinder.Name = "btnAddFinder"; this.btnAddFinder.Size = new System.Drawing.Size(84, 25); this.btnAddFinder.Style.Alignment = System.Drawing.StringAlignment.Center; @@ -1147,7 +1183,7 @@ namespace TemuKJD.WXForms.ProductForms this.txtProductIds.Location = new System.Drawing.Point(630, 9); this.txtProductIds.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2); this.txtProductIds.Name = "txtProductIds"; - this.txtProductIds.Size = new System.Drawing.Size(341, 25); + this.txtProductIds.Size = new System.Drawing.Size(326, 25); this.txtProductIds.TabIndex = 849; // // label9 @@ -1250,7 +1286,7 @@ namespace TemuKJD.WXForms.ProductForms // this.pbLoading.Anchor = System.Windows.Forms.AnchorStyles.None; this.pbLoading.Image = global::TemuKJD.Properties.Resources.loading_blue; - this.pbLoading.Location = new System.Drawing.Point(468, 194); + this.pbLoading.Location = new System.Drawing.Point(460, 194); this.pbLoading.Name = "pbLoading"; this.pbLoading.Size = new System.Drawing.Size(50, 50); this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; @@ -1368,19 +1404,6 @@ namespace TemuKJD.WXForms.ProductForms private DevComponents.DotNetBar.PanelEx btnAddSelect; private DevComponents.DotNetBar.PanelEx btnSelectOffline; private DevComponents.DotNetBar.PanelEx btnSelectOnline; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopLoginName; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopId; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopName; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopNotes; - private System.Windows.Forms.DataGridViewLinkColumn colSelectProduct; - private System.Windows.Forms.DataGridViewLinkColumn colLoginStatus; - private System.Windows.Forms.DataGridViewLinkColumn colApi; - private System.Windows.Forms.DataGridViewCheckBoxColumn colCanUse; - private System.Windows.Forms.DataGridViewTextBoxColumn colUploadCount; - private System.Windows.Forms.DataGridViewTextBoxColumn colOnSaleNum; - private System.Windows.Forms.DataGridViewTextBoxColumn colRemaining; - private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; private System.Windows.Forms.Label label2; private DevComponents.DotNetBar.PanelEx btnStop; private System.Windows.Forms.Label label5; @@ -1427,5 +1450,21 @@ namespace TemuKJD.WXForms.ProductForms private System.Windows.Forms.DataGridViewLinkColumn ColDelete; private System.Windows.Forms.DataGridViewTextBoxColumn colOpResult; private UserComponent.UcCheckBox chkReUse; + private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; + private System.Windows.Forms.DataGridViewTextBoxColumn colShopLoginName; + private System.Windows.Forms.DataGridViewTextBoxColumn colShopId; + private System.Windows.Forms.DataGridViewTextBoxColumn colShopName; + private System.Windows.Forms.DataGridViewTextBoxColumn colShopNotes; + private System.Windows.Forms.DataGridViewTextBoxColumn colGroup; + private System.Windows.Forms.DataGridViewLinkColumn colSelectProduct; + private System.Windows.Forms.DataGridViewLinkColumn colLoginStatus; + private System.Windows.Forms.DataGridViewLinkColumn colApi; + private System.Windows.Forms.DataGridViewCheckBoxColumn colCanUse; + private System.Windows.Forms.DataGridViewTextBoxColumn colUploadCount; + private System.Windows.Forms.DataGridViewTextBoxColumn colOnSaleNum; + private System.Windows.Forms.DataGridViewTextBoxColumn colRemaining; + private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; + private UserComponent.UcComboBoxMutiSelect cmbFilterShopGroup; + private System.Windows.Forms.Label label24; } } \ No newline at end of file diff --git a/TEMUKJD/WXForms/ProductForms/WXFinderSquareForm.cs b/TEMUKJD/WXForms/ProductForms/WXFinderSquareForm.cs index 8033d54..8859e18 100644 --- a/TEMUKJD/WXForms/ProductForms/WXFinderSquareForm.cs +++ b/TEMUKJD/WXForms/ProductForms/WXFinderSquareForm.cs @@ -42,9 +42,6 @@ namespace TemuKJD.WXForms.ProductForms public CancellationTokenSource cancellationTokenSource { get; set; } = null; public bool IsLoadComplate { get; set; } = false; - public ConcurrentList lstWXShopTokenInfo = new ConcurrentList(); - public Dictionary dicShopUpload = new Dictionary(); - WXAddFinderParam wxAddFinderParam = new WXAddFinderParam(); ChromiumWebBrowser mainWebBrowser = null; @@ -65,11 +62,6 @@ namespace TemuKJD.WXForms.ProductForms { this.splitContainer1.Dock = DockStyle.Fill; - // 授权Token - lstWXShopTokenInfo = NaiBa.Util.Helper.ConfigHelper.LoadConfig>("wx_shop_token_list"); - if (lstWXShopTokenInfo == null) - lstWXShopTokenInfo = new ConcurrentList(); - // 选中信息 //dicCheckedShopId = NaiBa.Util.Helper.ConfigHelper.LoadConfig>("wx_checked_shop_dic"); //if (dicCheckedShopId == null) @@ -246,6 +238,11 @@ namespace TemuKJD.WXForms.ProductForms { cmbFilterShopNotes.Items.Add(note); } + cmbFilterShopGroup.Items.Clear(); + foreach (var group in GlobalConfig.ShopLoginList.Select(s => s.GroupName).Where(s => !s.IsNullOrEmpty()).Distinct()) + { + cmbFilterShopGroup.Items.Add(group); + } pbLoadingShop.Visible = false; } @@ -270,14 +267,13 @@ namespace TemuKJD.WXForms.ProductForms shopEntity.ShopId, shopEntity.ShopAccount, shopEntity.Notes, + shopEntity.GroupName, "选择商品", canUse ? "在线" : "掉线", GlobalConfig.lstWxShopAuthInfo.FirstOrDefault(sa => sa.ShopId == shopEntity.ShopId)?.ExpiresTime > DateTime.Now.AddMinutes(5) ? "可用" : "过期", canUse, - dicShopUpload.ContainsKey(shopEntity.ShopId) && dicShopUpload[shopEntity.ShopId].DicDayUploadCount.ContainsKey(day) ? - dicShopUpload[shopEntity.ShopId].DicDayUploadCount[day] : 0, - dicShopUpload.ContainsKey(shopEntity.ShopId) && dicShopUpload[shopEntity.ShopId].OnSaleRefreshDay == DateTime.Now.ToString("yyyyMMdd").ParseToInt() ? - dicShopUpload[shopEntity.ShopId].OnSaleCount : 0, + GlobalConfig.dicWxShopUploadInfo.ContainsKey(shopEntity.ShopId) ? GlobalConfig.dicWxShopUploadInfo[shopEntity.ShopId].DicDayUploadCount[day] : 0, + GlobalConfig.dicWxShopUploadInfo.ContainsKey(shopEntity.ShopId) ? GlobalConfig.dicWxShopUploadInfo[shopEntity.ShopId].OnSaleCount : 0, shopEntity.AddProductRemaining, msg ); @@ -293,10 +289,8 @@ namespace TemuKJD.WXForms.ProductForms row.Cells["colCanUse"].Value = canUse; row.Cells["colApi"].Value = GlobalConfig.lstWxShopAuthInfo.FirstOrDefault(sa => sa.ShopId == shopEntity.ShopId)?.ExpiresTime > DateTime.Now.AddMinutes(5) ? "可用" : "过期"; row.Cells["colRemaining"].Value = shopEntity.AddProductRemaining; - row.Cells["colUploadCount"].Value = dicShopUpload.ContainsKey(shopEntity.ShopId) && dicShopUpload[shopEntity.ShopId].DicDayUploadCount.ContainsKey(day) ? - dicShopUpload[shopEntity.ShopId].DicDayUploadCount[day] : 0; - row.Cells["colOnSaleNum"].Value = dicShopUpload.ContainsKey(shopEntity.ShopId) && dicShopUpload[shopEntity.ShopId].OnSaleRefreshDay == DateTime.Now.ToString("yyyyMMdd").ParseToInt() ? - dicShopUpload[shopEntity.ShopId].OnSaleCount : 0; + row.Cells["colUploadCount"].Value = GlobalConfig.dicWxShopUploadInfo.ContainsKey(shopEntity.ShopId) ? GlobalConfig.dicWxShopUploadInfo[shopEntity.ShopId].DicDayUploadCount[day] : 0; + row.Cells["colOnSaleNum"].Value = GlobalConfig.dicWxShopUploadInfo.ContainsKey(shopEntity.ShopId) ? GlobalConfig.dicWxShopUploadInfo[shopEntity.ShopId].OnSaleCount : 0; row.Cells["colMessage"].Value = msg; } @@ -665,13 +659,18 @@ namespace TemuKJD.WXForms.ProductForms private void btnFilterShop_Click(object sender, EventArgs e) { + string notes = cmbFilterShopNotes.Text.Trim().Trim(';'); + if (notes == "全部") + notes = ""; + List notesLst = notes.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); + + string group = cmbFilterShopGroup.Text.Trim().Trim(';'); + if (group == "全部") + group = ""; + List groupLst = group.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); + foreach (DataGridViewRow row in dgvShop.Rows) { - string notes = cmbFilterShopNotes.Text.Trim().Trim(';'); - if (notes == "全部") - notes = ""; - List notesLst = notes.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); - if (!row.Cells["colShopName"].Value.ParseToString().Contains(txtFilterShopName.Text.Trim())) { row.Visible = false; @@ -684,6 +683,12 @@ namespace TemuKJD.WXForms.ProductForms row.Cells["colSelect"].Value = false; continue; } + if (!string.IsNullOrWhiteSpace(group) && !groupLst.Contains(row.Cells["colGroup"].Value.ParseToString())) + { + row.Visible = false; + row.Cells["colSelect"].Value = false; + continue; + } row.Visible = true; } } @@ -692,6 +697,7 @@ namespace TemuKJD.WXForms.ProductForms { txtFilterShopName.Text = ""; cmbFilterShopNotes.Text = "全部"; + cmbFilterShopGroup.Text = "全部"; btnFilterShop_Click(null, null); } @@ -711,16 +717,24 @@ namespace TemuKJD.WXForms.ProductForms notes = ""; List notesLst = notes.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); + string group = cmbFilterShopGroup.Text.Trim().Trim(';'); + if (group == "全部") + group = ""; + List groupLst = group.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); + foreach (DataGridViewRow row in dgvShop.Rows) { - if (row.Visible == true) - { - if (row.Cells["colShopName"].Value.ParseToString().Contains(txtFilterShopName.Text.Trim()) && - (string.IsNullOrWhiteSpace(notes) || notesLst.Contains(row.Cells["colShopNotes"].Value.ParseToString()))) - { - row.Cells["colSelect"].Value = true; - } - } + if (row.Visible == false) + continue; + + if (!row.Cells["colShopName"].Value.ParseToString().Contains(txtFilterShopName.Text.Trim())) + continue; + if (!string.IsNullOrWhiteSpace(notes) && !notesLst.Contains(row.Cells["colShopNotes"].Value.ParseToString())) + continue; + if (!string.IsNullOrWhiteSpace(group) && !groupLst.Contains(row.Cells["colGroup"].Value.ParseToString())) + continue; + + row.Cells["colSelect"].Value = true; } } @@ -731,16 +745,24 @@ namespace TemuKJD.WXForms.ProductForms notes = ""; List notesLst = notes.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); + string group = cmbFilterShopGroup.Text.Trim().Trim(';'); + if (group == "全部") + group = ""; + List groupLst = group.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); + foreach (DataGridViewRow row in dgvShop.Rows) { - if (row.Visible == true) - { - if (row.Cells["colShopName"].Value.ParseToString().Contains(txtFilterShopName.Text.Trim()) && - (string.IsNullOrWhiteSpace(notes) || notesLst.Contains(row.Cells["colShopNotes"].Value.ParseToString()))) - { - row.Cells["colSelect"].Value = false; - } - } + if (row.Visible == false) + continue; + + if (!row.Cells["colShopName"].Value.ParseToString().Contains(txtFilterShopName.Text.Trim())) + continue; + if (!string.IsNullOrWhiteSpace(notes) && !notesLst.Contains(row.Cells["colShopNotes"].Value.ParseToString())) + continue; + if (!string.IsNullOrWhiteSpace(group) && !groupLst.Contains(row.Cells["colGroup"].Value.ParseToString())) + continue; + + row.Cells["colSelect"].Value = false; } } diff --git a/TEMUKJD/WXForms/ProductForms/WXFinderSquareForm.resx b/TEMUKJD/WXForms/ProductForms/WXFinderSquareForm.resx index 09f5795..13f36fc 100644 --- a/TEMUKJD/WXForms/ProductForms/WXFinderSquareForm.resx +++ b/TEMUKJD/WXForms/ProductForms/WXFinderSquareForm.resx @@ -129,6 +129,9 @@ True + + True + True diff --git a/TEMUKJD/WXForms/ProductForms/WXOrderConsignmentForm.Designer.cs b/TEMUKJD/WXForms/ProductForms/WXOrderConsignmentForm.Designer.cs new file mode 100644 index 0000000..020c353 --- /dev/null +++ b/TEMUKJD/WXForms/ProductForms/WXOrderConsignmentForm.Designer.cs @@ -0,0 +1,1393 @@ + +using TemuKJD.PDDForms.ProductSelectForms; + +namespace TemuKJD.WXForms.ProductForms +{ + partial class WXOrderConsignmentForm + { + /// + /// 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 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(); + 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 dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); + this.splitContainer1 = new System.Windows.Forms.SplitContainer(); + this.ucGroupBoxEx3 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); + this.btnBatchDel = new DevComponents.DotNetBar.PanelEx(); + this.label4 = new System.Windows.Forms.Label(); + this.btnFiltSelect = new DevComponents.DotNetBar.PanelEx(); + this.btnStopOp = new DevComponents.DotNetBar.PanelEx(); + this.btnClearList = new DevComponents.DotNetBar.PanelEx(); + this.btnCancel = new DevComponents.DotNetBar.PanelEx(); + this.ucGroupBoxEx4 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); + this.label1 = new System.Windows.Forms.Label(); + this.rbWaitSend = new System.Windows.Forms.RadioButton(); + this.rbWaitDivide = new System.Windows.Forms.RadioButton(); + this.btnStopSearch = new DevComponents.DotNetBar.PanelEx(); + this.btnClearFilter = new DevComponents.DotNetBar.PanelEx(); + this.btnSearchOrder = new DevComponents.DotNetBar.PanelEx(); + this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); + this.btnSelectOffline = new DevComponents.DotNetBar.PanelEx(); + this.btnSelectOnline = new DevComponents.DotNetBar.PanelEx(); + this.cmbFilterShopGroup = new TemuKJD.UserComponent.UcComboBoxMutiSelect(); + this.btnEmptyShop = new DevComponents.DotNetBar.PanelEx(); + this.btnFilterShop = new DevComponents.DotNetBar.PanelEx(); + this.btnRefreshShop = new DevComponents.DotNetBar.PanelEx(); + this.btnReverse = new DevComponents.DotNetBar.PanelEx(); + this.btnAddUnSelect = new DevComponents.DotNetBar.PanelEx(); + this.cmbFilterShopNotes = new TemuKJD.UserComponent.UcComboBoxMutiSelect(); + this.btnAddSelect = new DevComponents.DotNetBar.PanelEx(); + this.label16 = new System.Windows.Forms.Label(); + this.txtFilterShopName = new System.Windows.Forms.TextBox(); + this.label17 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.splitContainer3 = new System.Windows.Forms.SplitContainer(); + this.splitContainer2 = new System.Windows.Forms.SplitContainer(); + this.pbLoadingShop = new System.Windows.Forms.PictureBox(); + this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx(); + this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.colShopLoginName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colShopNotes = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colGroup = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colSelectProduct = new System.Windows.Forms.DataGridViewLinkColumn(); + this.colLoginStatus = new System.Windows.Forms.DataGridViewLinkColumn(); + this.colApi = new System.Windows.Forms.DataGridViewLinkColumn(); + this.colCanUse = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.colUploadCount = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colOnSaleNum = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colRemaining = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pbLoading = new System.Windows.Forms.PictureBox(); + this.dgvSelectProduct = new TemuKJD.UserComponent.DataGridViewEx(); + this.colCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.colSupplierId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colSupplierName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colLogin = new System.Windows.Forms.DataGridViewLinkColumn(); + this.colInShop = new System.Windows.Forms.DataGridViewLinkColumn(); + this.colConsignmentOrderId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colConsignmentSupplier = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colConsignmentTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colOrderId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colOrderTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDraftId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colSkuId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colImgUrl = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colProductSkcPic = new System.Windows.Forms.DataGridViewImageColumn(); + this.colProduct = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colExtCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colCnt = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colMsg = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colNotes = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colOperate = new System.Windows.Forms.DataGridViewLinkColumn(); + this.colOpResult = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.splitContainer4 = new System.Windows.Forms.SplitContainer(); + this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); + this.btnClear = new DevComponents.DotNetBar.PanelEx(); + this.panelEx1 = new DevComponents.DotNetBar.PanelEx(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); + this.splitContainer1.Panel1.SuspendLayout(); + this.splitContainer1.Panel2.SuspendLayout(); + this.splitContainer1.SuspendLayout(); + this.ucGroupBoxEx3.SuspendLayout(); + this.ucGroupBoxEx4.SuspendLayout(); + this.ucGroupBoxEx1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).BeginInit(); + this.splitContainer3.Panel1.SuspendLayout(); + this.splitContainer3.Panel2.SuspendLayout(); + this.splitContainer3.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); + this.splitContainer2.Panel1.SuspendLayout(); + this.splitContainer2.Panel2.SuspendLayout(); + this.splitContainer2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pbLoadingShop)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dgvShop)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pbLoading)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dgvSelectProduct)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).BeginInit(); + this.splitContainer4.Panel1.SuspendLayout(); + this.splitContainer4.Panel2.SuspendLayout(); + this.splitContainer4.SuspendLayout(); + this.SuspendLayout(); + // + // splitContainer1 + // + this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; + this.splitContainer1.Location = new System.Drawing.Point(0, 0); + this.splitContainer1.Name = "splitContainer1"; + this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal; + // + // splitContainer1.Panel1 + // + this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx3); + this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx4); + this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx1); + // + // splitContainer1.Panel2 + // + this.splitContainer1.Panel2.Controls.Add(this.splitContainer3); + this.splitContainer1.Size = new System.Drawing.Size(1591, 641); + this.splitContainer1.SplitterDistance = 165; + this.splitContainer1.TabIndex = 11; + // + // ucGroupBoxEx3 + // + this.ucGroupBoxEx3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.ucGroupBoxEx3.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.ucGroupBoxEx3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.ucGroupBoxEx3.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND; + this.ucGroupBoxEx3.Controls.Add(this.btnBatchDel); + this.ucGroupBoxEx3.Controls.Add(this.label4); + this.ucGroupBoxEx3.Controls.Add(this.btnFiltSelect); + this.ucGroupBoxEx3.Controls.Add(this.btnStopOp); + this.ucGroupBoxEx3.Controls.Add(this.btnClearList); + this.ucGroupBoxEx3.Controls.Add(this.btnCancel); + this.ucGroupBoxEx3.Location = new System.Drawing.Point(595, 2); + this.ucGroupBoxEx3.Name = "ucGroupBoxEx3"; + this.ucGroupBoxEx3.Size = new System.Drawing.Size(994, 165); + this.ucGroupBoxEx3.TabIndex = 668; + this.ucGroupBoxEx3.TabStop = false; + this.ucGroupBoxEx3.Text = "设置取消代发"; + // + // btnBatchDel + // + this.btnBatchDel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnBatchDel.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnBatchDel.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnBatchDel.DisabledBackColor = System.Drawing.Color.Empty; + this.btnBatchDel.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnBatchDel.Location = new System.Drawing.Point(888, 61); + this.btnBatchDel.Name = "btnBatchDel"; + this.btnBatchDel.Size = new System.Drawing.Size(84, 23); + this.btnBatchDel.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnBatchDel.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnBatchDel.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnBatchDel.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnBatchDel.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnBatchDel.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnBatchDel.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnBatchDel.Style.GradientAngle = 90; + this.btnBatchDel.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnBatchDel.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnBatchDel.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnBatchDel.TabIndex = 817; + this.btnBatchDel.Text = "批量代发"; + this.btnBatchDel.Visible = false; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(118, 34); + this.label4.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(116, 17); + this.label4.TabIndex = 801; + this.label4.Text = "含有外采备注的订单"; + // + // btnFiltSelect + // + this.btnFiltSelect.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnFiltSelect.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnFiltSelect.DisabledBackColor = System.Drawing.Color.Empty; + this.btnFiltSelect.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnFiltSelect.Location = new System.Drawing.Point(32, 31); + this.btnFiltSelect.Name = "btnFiltSelect"; + this.btnFiltSelect.Size = new System.Drawing.Size(84, 23); + this.btnFiltSelect.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnFiltSelect.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnFiltSelect.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnFiltSelect.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnFiltSelect.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnFiltSelect.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnFiltSelect.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnFiltSelect.Style.GradientAngle = 90; + this.btnFiltSelect.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnFiltSelect.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnFiltSelect.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnFiltSelect.TabIndex = 794; + this.btnFiltSelect.Text = "批量选择"; + this.btnFiltSelect.Click += new System.EventHandler(this.btnFiltSelect_Click); + // + // btnStopOp + // + this.btnStopOp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnStopOp.CanvasColor = System.Drawing.SystemColors.Control; + this.btnStopOp.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnStopOp.DisabledBackColor = System.Drawing.Color.Empty; + this.btnStopOp.Location = new System.Drawing.Point(888, 121); + this.btnStopOp.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2); + this.btnStopOp.Name = "btnStopOp"; + this.btnStopOp.Size = new System.Drawing.Size(84, 23); + this.btnStopOp.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnStopOp.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnStopOp.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnStopOp.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.btnStopOp.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnStopOp.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.btnStopOp.Style.GradientAngle = 90; + this.btnStopOp.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; + this.btnStopOp.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnStopOp.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnStopOp.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnStopOp.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; + this.btnStopOp.TabIndex = 546; + this.btnStopOp.Text = "停止操作"; + this.btnStopOp.Click += new System.EventHandler(this.btnStop_Click); + // + // btnClearList + // + this.btnClearList.CanvasColor = System.Drawing.SystemColors.Control; + this.btnClearList.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnClearList.DisabledBackColor = System.Drawing.Color.Empty; + this.btnClearList.Location = new System.Drawing.Point(32, 68); + this.btnClearList.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2); + this.btnClearList.Name = "btnClearList"; + this.btnClearList.Size = new System.Drawing.Size(84, 23); + this.btnClearList.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnClearList.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnClearList.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnClearList.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.btnClearList.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnClearList.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.btnClearList.Style.GradientAngle = 90; + this.btnClearList.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; + this.btnClearList.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnClearList.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnClearList.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnClearList.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; + this.btnClearList.TabIndex = 612; + this.btnClearList.Text = "清空列表选中"; + this.btnClearList.Click += new System.EventHandler(this.btnClearDgv_Click); + // + // btnCancel + // + this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnCancel.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnCancel.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnCancel.DisabledBackColor = System.Drawing.Color.Empty; + this.btnCancel.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnCancel.Location = new System.Drawing.Point(888, 31); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(84, 23); + this.btnCancel.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnCancel.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnCancel.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnCancel.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnCancel.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnCancel.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnCancel.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnCancel.Style.GradientAngle = 90; + this.btnCancel.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnCancel.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnCancel.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnCancel.TabIndex = 517; + this.btnCancel.Text = "批量取消"; + this.btnCancel.Click += new System.EventHandler(this.btnCancelConsignment_Click); + // + // ucGroupBoxEx4 + // + this.ucGroupBoxEx4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left))); + this.ucGroupBoxEx4.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.ucGroupBoxEx4.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND; + this.ucGroupBoxEx4.Controls.Add(this.label1); + this.ucGroupBoxEx4.Controls.Add(this.rbWaitSend); + this.ucGroupBoxEx4.Controls.Add(this.rbWaitDivide); + this.ucGroupBoxEx4.Controls.Add(this.btnStopSearch); + this.ucGroupBoxEx4.Controls.Add(this.btnClearFilter); + this.ucGroupBoxEx4.Controls.Add(this.btnSearchOrder); + this.ucGroupBoxEx4.Location = new System.Drawing.Point(186, 2); + this.ucGroupBoxEx4.Name = "ucGroupBoxEx4"; + this.ucGroupBoxEx4.Size = new System.Drawing.Size(410, 165); + this.ucGroupBoxEx4.TabIndex = 666; + this.ucGroupBoxEx4.TabStop = false; + this.ucGroupBoxEx4.Text = "商品流量查询"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(13, 29); + this.label1.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(56, 17); + this.label1.TabIndex = 829; + this.label1.Text = "分配订单"; + // + // rbWaitSend + // + this.rbWaitSend.AutoSize = true; + this.rbWaitSend.Checked = true; + this.rbWaitSend.Location = new System.Drawing.Point(72, 27); + this.rbWaitSend.Name = "rbWaitSend"; + this.rbWaitSend.Size = new System.Drawing.Size(62, 21); + this.rbWaitSend.TabIndex = 828; + this.rbWaitSend.TabStop = true; + this.rbWaitSend.Text = "待发货"; + this.rbWaitSend.UseVisualStyleBackColor = true; + // + // rbWaitDivide + // + this.rbWaitDivide.AutoSize = true; + this.rbWaitDivide.Location = new System.Drawing.Point(16, 49); + this.rbWaitDivide.Name = "rbWaitDivide"; + this.rbWaitDivide.Size = new System.Drawing.Size(62, 21); + this.rbWaitDivide.TabIndex = 827; + this.rbWaitDivide.Text = "待分配"; + this.rbWaitDivide.UseVisualStyleBackColor = true; + this.rbWaitDivide.Visible = false; + // + // btnStopSearch + // + this.btnStopSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnStopSearch.CanvasColor = System.Drawing.SystemColors.Control; + this.btnStopSearch.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnStopSearch.DisabledBackColor = System.Drawing.Color.Empty; + this.btnStopSearch.Location = new System.Drawing.Point(338, 127); + this.btnStopSearch.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2); + this.btnStopSearch.Name = "btnStopSearch"; + this.btnStopSearch.Size = new System.Drawing.Size(58, 25); + this.btnStopSearch.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnStopSearch.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnStopSearch.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnStopSearch.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.btnStopSearch.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnStopSearch.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.btnStopSearch.Style.GradientAngle = 90; + this.btnStopSearch.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; + this.btnStopSearch.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnStopSearch.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnStopSearch.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnStopSearch.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; + this.btnStopSearch.TabIndex = 805; + this.btnStopSearch.Text = "停止查询"; + this.btnStopSearch.Click += new System.EventHandler(this.btnStop_Click); + // + // btnClearFilter + // + this.btnClearFilter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnClearFilter.CanvasColor = System.Drawing.SystemColors.Control; + this.btnClearFilter.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnClearFilter.DisabledBackColor = System.Drawing.Color.Empty; + this.btnClearFilter.Location = new System.Drawing.Point(16, 127); + this.btnClearFilter.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2); + this.btnClearFilter.Name = "btnClearFilter"; + this.btnClearFilter.Size = new System.Drawing.Size(58, 25); + this.btnClearFilter.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnClearFilter.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnClearFilter.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnClearFilter.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.btnClearFilter.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnClearFilter.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.btnClearFilter.Style.GradientAngle = 90; + this.btnClearFilter.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; + this.btnClearFilter.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnClearFilter.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnClearFilter.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnClearFilter.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; + this.btnClearFilter.TabIndex = 548; + this.btnClearFilter.Text = "清空条件"; + this.btnClearFilter.Visible = false; + this.btnClearFilter.Click += new System.EventHandler(this.btnClearFilter_Click); + // + // btnSearchOrder + // + this.btnSearchOrder.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnSearchOrder.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnSearchOrder.DisabledBackColor = System.Drawing.Color.Empty; + this.btnSearchOrder.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnSearchOrder.Location = new System.Drawing.Point(239, 127); + this.btnSearchOrder.Name = "btnSearchOrder"; + this.btnSearchOrder.Size = new System.Drawing.Size(96, 25); + this.btnSearchOrder.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnSearchOrder.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnSearchOrder.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnSearchOrder.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnSearchOrder.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnSearchOrder.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnSearchOrder.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnSearchOrder.Style.GradientAngle = 90; + this.btnSearchOrder.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnSearchOrder.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnSearchOrder.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnSearchOrder.TabIndex = 431; + this.btnSearchOrder.Text = "代发订单查询"; + this.btnSearchOrder.Click += new System.EventHandler(this.btnSearchProd_Click); + // + // ucGroupBoxEx1 + // + this.ucGroupBoxEx1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left))); + this.ucGroupBoxEx1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.ucGroupBoxEx1.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND; + this.ucGroupBoxEx1.Controls.Add(this.btnSelectOffline); + this.ucGroupBoxEx1.Controls.Add(this.btnSelectOnline); + this.ucGroupBoxEx1.Controls.Add(this.cmbFilterShopGroup); + this.ucGroupBoxEx1.Controls.Add(this.btnEmptyShop); + this.ucGroupBoxEx1.Controls.Add(this.btnFilterShop); + this.ucGroupBoxEx1.Controls.Add(this.btnRefreshShop); + this.ucGroupBoxEx1.Controls.Add(this.btnReverse); + this.ucGroupBoxEx1.Controls.Add(this.btnAddUnSelect); + this.ucGroupBoxEx1.Controls.Add(this.cmbFilterShopNotes); + this.ucGroupBoxEx1.Controls.Add(this.btnAddSelect); + this.ucGroupBoxEx1.Controls.Add(this.label16); + this.ucGroupBoxEx1.Controls.Add(this.txtFilterShopName); + this.ucGroupBoxEx1.Controls.Add(this.label17); + this.ucGroupBoxEx1.Controls.Add(this.label3); + this.ucGroupBoxEx1.Location = new System.Drawing.Point(2, 2); + this.ucGroupBoxEx1.Name = "ucGroupBoxEx1"; + this.ucGroupBoxEx1.Size = new System.Drawing.Size(185, 165); + this.ucGroupBoxEx1.TabIndex = 399; + this.ucGroupBoxEx1.TabStop = false; + this.ucGroupBoxEx1.Text = "店铺筛选"; + // + // btnSelectOffline + // + this.btnSelectOffline.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnSelectOffline.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnSelectOffline.DisabledBackColor = System.Drawing.Color.Empty; + this.btnSelectOffline.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnSelectOffline.Location = new System.Drawing.Point(59, 139); + this.btnSelectOffline.Name = "btnSelectOffline"; + this.btnSelectOffline.Size = new System.Drawing.Size(48, 18); + this.btnSelectOffline.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnSelectOffline.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnSelectOffline.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnSelectOffline.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnSelectOffline.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnSelectOffline.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnSelectOffline.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnSelectOffline.Style.GradientAngle = 90; + this.btnSelectOffline.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnSelectOffline.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnSelectOffline.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnSelectOffline.TabIndex = 772; + this.btnSelectOffline.Text = "选掉线"; + this.btnSelectOffline.Click += new System.EventHandler(this.btnSelectOffline_Click); + // + // btnSelectOnline + // + this.btnSelectOnline.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnSelectOnline.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnSelectOnline.DisabledBackColor = System.Drawing.Color.Empty; + this.btnSelectOnline.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnSelectOnline.Location = new System.Drawing.Point(9, 139); + this.btnSelectOnline.Name = "btnSelectOnline"; + this.btnSelectOnline.Size = new System.Drawing.Size(48, 18); + this.btnSelectOnline.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnSelectOnline.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnSelectOnline.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnSelectOnline.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnSelectOnline.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnSelectOnline.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnSelectOnline.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnSelectOnline.Style.GradientAngle = 90; + this.btnSelectOnline.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnSelectOnline.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnSelectOnline.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnSelectOnline.TabIndex = 768; + this.btnSelectOnline.Text = "选在线"; + this.btnSelectOnline.Click += new System.EventHandler(this.btnSelectOnline_Click); + // + // cmbFilterShopGroup + // + this.cmbFilterShopGroup.DefaultText = "全部"; + this.cmbFilterShopGroup.DropDownHeight = 1; + this.cmbFilterShopGroup.DropDownWidth = 1; + this.cmbFilterShopGroup.FormattingEnabled = true; + this.cmbFilterShopGroup.IntegralHeight = false; + this.cmbFilterShopGroup.Location = new System.Drawing.Point(38, 92); + this.cmbFilterShopGroup.Name = "cmbFilterShopGroup"; + this.cmbFilterShopGroup.Size = new System.Drawing.Size(137, 25); + this.cmbFilterShopGroup.TabIndex = 829; + this.cmbFilterShopGroup.Text = "全部"; + // + // btnEmptyShop + // + this.btnEmptyShop.CanvasColor = System.Drawing.SystemColors.Control; + this.btnEmptyShop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnEmptyShop.DisabledBackColor = System.Drawing.Color.Empty; + this.btnEmptyShop.Location = new System.Drawing.Point(143, 139); + this.btnEmptyShop.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2); + this.btnEmptyShop.Name = "btnEmptyShop"; + this.btnEmptyShop.Size = new System.Drawing.Size(32, 18); + this.btnEmptyShop.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnEmptyShop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnEmptyShop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnEmptyShop.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.btnEmptyShop.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnEmptyShop.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.btnEmptyShop.Style.GradientAngle = 90; + this.btnEmptyShop.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; + this.btnEmptyShop.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnEmptyShop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnEmptyShop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnEmptyShop.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; + this.btnEmptyShop.TabIndex = 713; + this.btnEmptyShop.Text = "清空"; + this.btnEmptyShop.Click += new System.EventHandler(this.btnEmptyShop_Click); + // + // btnFilterShop + // + this.btnFilterShop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnFilterShop.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnFilterShop.DisabledBackColor = System.Drawing.Color.Empty; + this.btnFilterShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnFilterShop.Location = new System.Drawing.Point(143, 119); + this.btnFilterShop.Name = "btnFilterShop"; + this.btnFilterShop.Size = new System.Drawing.Size(32, 18); + this.btnFilterShop.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnFilterShop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnFilterShop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnFilterShop.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnFilterShop.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnFilterShop.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnFilterShop.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnFilterShop.Style.GradientAngle = 90; + this.btnFilterShop.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnFilterShop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnFilterShop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnFilterShop.TabIndex = 703; + this.btnFilterShop.Text = "过滤"; + this.btnFilterShop.Click += new System.EventHandler(this.btnFilterShop_Click); + // + // btnRefreshShop + // + this.btnRefreshShop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnRefreshShop.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnRefreshShop.DisabledBackColor = System.Drawing.Color.Empty; + this.btnRefreshShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnRefreshShop.Location = new System.Drawing.Point(9, 18); + this.btnRefreshShop.Name = "btnRefreshShop"; + this.btnRefreshShop.Size = new System.Drawing.Size(166, 18); + this.btnRefreshShop.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnRefreshShop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnRefreshShop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnRefreshShop.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnRefreshShop.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnRefreshShop.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnRefreshShop.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnRefreshShop.Style.GradientAngle = 90; + this.btnRefreshShop.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnRefreshShop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnRefreshShop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnRefreshShop.TabIndex = 431; + this.btnRefreshShop.Text = "刷新店铺"; + this.btnRefreshShop.Click += new System.EventHandler(this.btnRefreshShop_Click); + // + // btnReverse + // + this.btnReverse.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnReverse.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnReverse.DisabledBackColor = System.Drawing.Color.Empty; + this.btnReverse.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnReverse.Location = new System.Drawing.Point(109, 139); + this.btnReverse.Name = "btnReverse"; + this.btnReverse.Size = new System.Drawing.Size(32, 18); + this.btnReverse.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnReverse.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnReverse.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnReverse.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnReverse.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnReverse.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnReverse.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnReverse.Style.GradientAngle = 90; + this.btnReverse.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnReverse.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnReverse.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnReverse.TabIndex = 726; + this.btnReverse.Text = "反选"; + this.btnReverse.Click += new System.EventHandler(this.btnReverse_Click); + // + // btnAddUnSelect + // + this.btnAddUnSelect.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnAddUnSelect.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnAddUnSelect.DisabledBackColor = System.Drawing.Color.Empty; + this.btnAddUnSelect.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnAddUnSelect.Location = new System.Drawing.Point(76, 119); + this.btnAddUnSelect.Name = "btnAddUnSelect"; + this.btnAddUnSelect.Size = new System.Drawing.Size(65, 18); + this.btnAddUnSelect.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnAddUnSelect.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnAddUnSelect.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnAddUnSelect.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnAddUnSelect.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnAddUnSelect.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnAddUnSelect.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnAddUnSelect.Style.GradientAngle = 90; + this.btnAddUnSelect.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnAddUnSelect.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnAddUnSelect.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnAddUnSelect.TabIndex = 746; + this.btnAddUnSelect.Text = "弃选条件"; + this.btnAddUnSelect.Click += new System.EventHandler(this.btnAddUnSelect_Click); + // + // cmbFilterShopNotes + // + this.cmbFilterShopNotes.DefaultText = "全部"; + this.cmbFilterShopNotes.DropDownHeight = 1; + this.cmbFilterShopNotes.DropDownWidth = 1; + this.cmbFilterShopNotes.FormattingEnabled = true; + this.cmbFilterShopNotes.IntegralHeight = false; + this.cmbFilterShopNotes.Location = new System.Drawing.Point(38, 65); + this.cmbFilterShopNotes.Name = "cmbFilterShopNotes"; + this.cmbFilterShopNotes.Size = new System.Drawing.Size(137, 25); + this.cmbFilterShopNotes.TabIndex = 442; + this.cmbFilterShopNotes.Text = "全部"; + // + // btnAddSelect + // + this.btnAddSelect.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnAddSelect.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnAddSelect.DisabledBackColor = System.Drawing.Color.Empty; + this.btnAddSelect.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnAddSelect.Location = new System.Drawing.Point(9, 119); + this.btnAddSelect.Name = "btnAddSelect"; + this.btnAddSelect.Size = new System.Drawing.Size(65, 18); + this.btnAddSelect.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnAddSelect.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnAddSelect.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnAddSelect.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnAddSelect.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnAddSelect.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnAddSelect.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnAddSelect.Style.GradientAngle = 90; + this.btnAddSelect.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnAddSelect.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnAddSelect.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnAddSelect.TabIndex = 742; + this.btnAddSelect.Text = "加选条件"; + this.btnAddSelect.Click += new System.EventHandler(this.btnAddSelect_Click); + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(7, 69); + this.label16.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(32, 17); + this.label16.TabIndex = 697; + this.label16.Text = "备注"; + // + // txtFilterShopName + // + this.txtFilterShopName.Font = new System.Drawing.Font("微软雅黑", 10F); + this.txtFilterShopName.Location = new System.Drawing.Point(38, 38); + this.txtFilterShopName.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2); + this.txtFilterShopName.Name = "txtFilterShopName"; + this.txtFilterShopName.Size = new System.Drawing.Size(137, 25); + this.txtFilterShopName.TabIndex = 653; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(7, 42); + this.label17.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(32, 17); + this.label17.TabIndex = 699; + this.label17.Text = "名称"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(7, 96); + this.label3.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(32, 17); + this.label3.TabIndex = 831; + this.label3.Text = "分组"; + // + // splitContainer3 + // + this.splitContainer3.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer3.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; + this.splitContainer3.Location = new System.Drawing.Point(0, 0); + this.splitContainer3.Name = "splitContainer3"; + this.splitContainer3.Orientation = System.Windows.Forms.Orientation.Horizontal; + // + // splitContainer3.Panel1 + // + this.splitContainer3.Panel1.Controls.Add(this.splitContainer2); + // + // splitContainer3.Panel2 + // + this.splitContainer3.Panel2.Controls.Add(this.splitContainer4); + this.splitContainer3.Size = new System.Drawing.Size(1591, 472); + this.splitContainer3.SplitterDistance = 442; + this.splitContainer3.TabIndex = 1; + // + // splitContainer2 + // + this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; + this.splitContainer2.Location = new System.Drawing.Point(0, 0); + this.splitContainer2.Name = "splitContainer2"; + // + // splitContainer2.Panel1 + // + this.splitContainer2.Panel1.Controls.Add(this.pbLoadingShop); + this.splitContainer2.Panel1.Controls.Add(this.dgvShop); + this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 0, 0); + // + // splitContainer2.Panel2 + // + this.splitContainer2.Panel2.Controls.Add(this.pbLoading); + this.splitContainer2.Panel2.Controls.Add(this.dgvSelectProduct); + this.splitContainer2.Panel2.Padding = new System.Windows.Forms.Padding(0, 0, 4, 0); + this.splitContainer2.Size = new System.Drawing.Size(1591, 442); + this.splitContainer2.SplitterDistance = 350; + this.splitContainer2.TabIndex = 0; + // + // pbLoadingShop + // + this.pbLoadingShop.Anchor = System.Windows.Forms.AnchorStyles.None; + this.pbLoadingShop.Image = global::TemuKJD.Properties.Resources.loading_blue; + this.pbLoadingShop.Location = new System.Drawing.Point(150, 196); + this.pbLoadingShop.Name = "pbLoadingShop"; + this.pbLoadingShop.Size = new System.Drawing.Size(50, 50); + this.pbLoadingShop.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pbLoadingShop.TabIndex = 189; + this.pbLoadingShop.TabStop = false; + this.pbLoadingShop.Visible = false; + // + // dgvShop + // + this.dgvShop.AllowUserToAddRows = false; + this.dgvShop.AllowUserToDeleteRows = false; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; + this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + this.dgvShop.AutoRowNumber = true; + this.dgvShop.BackgroundColor = System.Drawing.Color.White; + this.dgvShop.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.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; + this.dgvShop.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dgvShop.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.colSelect, + this.colShopLoginName, + this.colShopId, + this.colShopName, + this.colShopNotes, + this.colGroup, + this.colSelectProduct, + this.colLoginStatus, + this.colApi, + this.colCanUse, + this.colUploadCount, + this.colOnSaleNum, + this.colRemaining, + this.colMessage}); + this.dgvShop.Dock = System.Windows.Forms.DockStyle.Fill; + this.dgvShop.Location = new System.Drawing.Point(4, 0); + this.dgvShop.MultiSelectCheckBox = true; + this.dgvShop.Name = "dgvShop"; + this.dgvShop.ReadOnly = true; + this.dgvShop.RowHeadersWidth = 25; + this.dgvShop.RowTemplate.Height = 23; + this.dgvShop.Size = new System.Drawing.Size(346, 442); + this.dgvShop.TabIndex = 6; + this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick); + // + // colSelect + // + this.colSelect.Frozen = true; + this.colSelect.HeaderText = "全选"; + this.colSelect.Name = "colSelect"; + this.colSelect.ReadOnly = true; + this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.colSelect.Width = 28; + // + // colShopLoginName + // + this.colShopLoginName.Frozen = true; + this.colShopLoginName.HeaderText = "店铺登录名"; + this.colShopLoginName.Name = "colShopLoginName"; + this.colShopLoginName.ReadOnly = true; + this.colShopLoginName.Visible = false; + // + // colShopId + // + this.colShopId.Frozen = true; + this.colShopId.HeaderText = "店铺Id"; + this.colShopId.Name = "colShopId"; + this.colShopId.ReadOnly = true; + this.colShopId.Visible = false; + this.colShopId.Width = 55; + // + // colShopName + // + this.colShopName.FillWeight = 150F; + this.colShopName.Frozen = true; + this.colShopName.HeaderText = "店铺名称"; + this.colShopName.Name = "colShopName"; + this.colShopName.ReadOnly = true; + this.colShopName.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colShopName.Width = 75; + // + // colShopNotes + // + this.colShopNotes.HeaderText = "备注"; + this.colShopNotes.Name = "colShopNotes"; + this.colShopNotes.ReadOnly = true; + this.colShopNotes.Width = 66; + // + // colGroup + // + this.colGroup.HeaderText = "分组"; + this.colGroup.Name = "colGroup"; + this.colGroup.ReadOnly = true; + this.colGroup.Width = 66; + // + // colSelectProduct + // + this.colSelectProduct.HeaderText = "选择商品"; + this.colSelectProduct.Name = "colSelectProduct"; + this.colSelectProduct.ReadOnly = true; + this.colSelectProduct.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colSelectProduct.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.colSelectProduct.Visible = false; + this.colSelectProduct.Width = 62; + // + // colLoginStatus + // + this.colLoginStatus.HeaderText = "状态"; + this.colLoginStatus.Name = "colLoginStatus"; + this.colLoginStatus.ReadOnly = true; + this.colLoginStatus.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colLoginStatus.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.colLoginStatus.Width = 38; + // + // colApi + // + this.colApi.HeaderText = "Api"; + this.colApi.Name = "colApi"; + this.colApi.ReadOnly = true; + this.colApi.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.colApi.Visible = false; + this.colApi.Width = 38; + // + // colCanUse + // + this.colCanUse.HeaderText = "可用"; + this.colCanUse.Name = "colCanUse"; + this.colCanUse.ReadOnly = true; + this.colCanUse.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colCanUse.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.colCanUse.Visible = false; + this.colCanUse.Width = 28; + // + // colUploadCount + // + this.colUploadCount.HeaderText = "已传"; + this.colUploadCount.Name = "colUploadCount"; + this.colUploadCount.ReadOnly = true; + this.colUploadCount.Visible = false; + this.colUploadCount.Width = 38; + // + // colOnSaleNum + // + this.colOnSaleNum.HeaderText = "在售"; + this.colOnSaleNum.Name = "colOnSaleNum"; + this.colOnSaleNum.ReadOnly = true; + this.colOnSaleNum.Visible = false; + this.colOnSaleNum.Width = 38; + // + // colRemaining + // + this.colRemaining.HeaderText = "月限额"; + this.colRemaining.Name = "colRemaining"; + this.colRemaining.ReadOnly = true; + this.colRemaining.Visible = false; + // + // colMessage + // + this.colMessage.HeaderText = "消息"; + this.colMessage.Name = "colMessage"; + this.colMessage.ReadOnly = 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(593, 196); + this.pbLoading.Name = "pbLoading"; + this.pbLoading.Size = new System.Drawing.Size(50, 50); + this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pbLoading.TabIndex = 780; + this.pbLoading.TabStop = false; + this.pbLoading.Visible = false; + // + // dgvSelectProduct + // + this.dgvSelectProduct.AllowUserToAddRows = false; + this.dgvSelectProduct.AllowUserToDeleteRows = false; + dataGridViewCellStyle3.BackColor = System.Drawing.Color.WhiteSmoke; + this.dgvSelectProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3; + this.dgvSelectProduct.AutoRowNumber = true; + this.dgvSelectProduct.BackgroundColor = System.Drawing.Color.White; + this.dgvSelectProduct.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgvSelectProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4; + this.dgvSelectProduct.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dgvSelectProduct.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.colCheck, + this.colSupplierId, + this.colSupplierName, + this.colLogin, + this.colInShop, + this.colConsignmentOrderId, + this.colConsignmentSupplier, + this.colConsignmentTime, + this.colOrderId, + this.colOrderTime, + this.colDraftId, + this.colSkuId, + this.colImgUrl, + this.colProductSkcPic, + this.colProduct, + this.colExtCode, + this.colCnt, + this.colMsg, + this.colNotes, + this.colOperate, + this.colOpResult}); + this.dgvSelectProduct.Dock = System.Windows.Forms.DockStyle.Fill; + this.dgvSelectProduct.Location = new System.Drawing.Point(0, 0); + this.dgvSelectProduct.MultiSelectCheckBox = true; + this.dgvSelectProduct.Name = "dgvSelectProduct"; + this.dgvSelectProduct.ReadOnly = true; + this.dgvSelectProduct.RowTemplate.Height = 23; + this.dgvSelectProduct.Size = new System.Drawing.Size(1233, 442); + this.dgvSelectProduct.TabIndex = 187; + this.dgvSelectProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvSelectProduct_CellContentClick); + // + // colCheck + // + this.colCheck.Frozen = true; + 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; + this.colCheck.Width = 30; + // + // colSupplierId + // + this.colSupplierId.Frozen = true; + this.colSupplierId.HeaderText = "店铺Id"; + this.colSupplierId.Name = "colSupplierId"; + this.colSupplierId.ReadOnly = true; + this.colSupplierId.Visible = false; + // + // colSupplierName + // + dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.colSupplierName.DefaultCellStyle = dataGridViewCellStyle5; + this.colSupplierName.HeaderText = "店铺名称"; + this.colSupplierName.Name = "colSupplierName"; + this.colSupplierName.ReadOnly = true; + this.colSupplierName.Width = 70; + // + // colLogin + // + this.colLogin.HeaderText = "登录"; + this.colLogin.Name = "colLogin"; + this.colLogin.ReadOnly = true; + this.colLogin.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colLogin.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.colLogin.Visible = false; + this.colLogin.Width = 38; + // + // colInShop + // + this.colInShop.HeaderText = "进店"; + this.colInShop.Name = "colInShop"; + this.colInShop.ReadOnly = true; + this.colInShop.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colInShop.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.colInShop.Width = 38; + // + // colConsignmentOrderId + // + this.colConsignmentOrderId.HeaderText = "代发单号"; + this.colConsignmentOrderId.Name = "colConsignmentOrderId"; + this.colConsignmentOrderId.ReadOnly = true; + this.colConsignmentOrderId.Width = 120; + // + // colConsignmentSupplier + // + dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.colConsignmentSupplier.DefaultCellStyle = dataGridViewCellStyle6; + this.colConsignmentSupplier.HeaderText = "分配供货商"; + this.colConsignmentSupplier.Name = "colConsignmentSupplier"; + this.colConsignmentSupplier.ReadOnly = true; + this.colConsignmentSupplier.Width = 75; + // + // colConsignmentTime + // + dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.colConsignmentTime.DefaultCellStyle = dataGridViewCellStyle7; + this.colConsignmentTime.HeaderText = "分配时间"; + this.colConsignmentTime.Name = "colConsignmentTime"; + this.colConsignmentTime.ReadOnly = true; + this.colConsignmentTime.Width = 62; + // + // colOrderId + // + this.colOrderId.HeaderText = "订单号"; + this.colOrderId.Name = "colOrderId"; + this.colOrderId.ReadOnly = true; + this.colOrderId.Width = 120; + // + // colOrderTime + // + dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.colOrderTime.DefaultCellStyle = dataGridViewCellStyle8; + this.colOrderTime.HeaderText = "下单时间"; + this.colOrderTime.Name = "colOrderTime"; + this.colOrderTime.ReadOnly = true; + this.colOrderTime.Width = 62; + // + // colDraftId + // + this.colDraftId.HeaderText = "商品Id"; + this.colDraftId.Name = "colDraftId"; + this.colDraftId.ReadOnly = true; + this.colDraftId.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colDraftId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.colDraftId.Width = 115; + // + // colSkuId + // + this.colSkuId.HeaderText = "skuId"; + this.colSkuId.Name = "colSkuId"; + this.colSkuId.ReadOnly = true; + this.colSkuId.Visible = false; + // + // colImgUrl + // + this.colImgUrl.HeaderText = "图片地址"; + this.colImgUrl.Name = "colImgUrl"; + this.colImgUrl.ReadOnly = true; + this.colImgUrl.Visible = false; + // + // colProductSkcPic + // + this.colProductSkcPic.HeaderText = "图片"; + this.colProductSkcPic.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Zoom; + this.colProductSkcPic.Name = "colProductSkcPic"; + this.colProductSkcPic.ReadOnly = true; + this.colProductSkcPic.Width = 60; + // + // colProduct + // + dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.colProduct.DefaultCellStyle = dataGridViewCellStyle9; + this.colProduct.HeaderText = "商品"; + this.colProduct.Name = "colProduct"; + this.colProduct.ReadOnly = true; + this.colProduct.Width = 120; + // + // colExtCode + // + this.colExtCode.HeaderText = "商品货号"; + this.colExtCode.Name = "colExtCode"; + this.colExtCode.ReadOnly = true; + this.colExtCode.Width = 140; + // + // colCnt + // + dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.colCnt.DefaultCellStyle = dataGridViewCellStyle10; + this.colCnt.HeaderText = "数量"; + this.colCnt.Name = "colCnt"; + this.colCnt.ReadOnly = true; + this.colCnt.Width = 50; + // + // colMsg + // + dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.colMsg.DefaultCellStyle = dataGridViewCellStyle11; + this.colMsg.HeaderText = "发货状态"; + this.colMsg.Name = "colMsg"; + this.colMsg.ReadOnly = true; + this.colMsg.Visible = false; + this.colMsg.Width = 65; + // + // colNotes + // + dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.colNotes.DefaultCellStyle = dataGridViewCellStyle12; + this.colNotes.HeaderText = "备注"; + this.colNotes.Name = "colNotes"; + this.colNotes.ReadOnly = true; + // + // colOperate + // + dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.colOperate.DefaultCellStyle = dataGridViewCellStyle13; + this.colOperate.HeaderText = "操作"; + this.colOperate.Name = "colOperate"; + this.colOperate.ReadOnly = true; + this.colOperate.Width = 38; + // + // colOpResult + // + this.colOpResult.HeaderText = "操作结果"; + this.colOpResult.Name = "colOpResult"; + this.colOpResult.ReadOnly = true; + this.colOpResult.Width = 240; + // + // splitContainer4 + // + this.splitContainer4.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer4.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; + this.splitContainer4.Location = new System.Drawing.Point(0, 0); + this.splitContainer4.Name = "splitContainer4"; + // + // splitContainer4.Panel1 + // + this.splitContainer4.Panel1.Controls.Add(this.statusBar); + // + // splitContainer4.Panel2 + // + this.splitContainer4.Panel2.Controls.Add(this.btnClear); + this.splitContainer4.Panel2.Controls.Add(this.panelEx1); + this.splitContainer4.Size = new System.Drawing.Size(1591, 26); + this.splitContainer4.SplitterDistance = 900; + this.splitContainer4.TabIndex = 3; + // + // statusBar + // + this.statusBar.BackColor = System.Drawing.Color.White; + this.statusBar.Dock = System.Windows.Forms.DockStyle.Fill; + 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(0, 0); + this.statusBar.Margin = new System.Windows.Forms.Padding(0); + this.statusBar.Name = "statusBar"; + this.statusBar.Size = new System.Drawing.Size(900, 26); + this.statusBar.TabIndex = 2; + // + // btnClear + // + this.btnClear.Anchor = System.Windows.Forms.AnchorStyles.Right; + this.btnClear.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnClear.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnClear.DisabledBackColor = System.Drawing.Color.Empty; + this.btnClear.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnClear.Location = new System.Drawing.Point(475, 2); + this.btnClear.Name = "btnClear"; + this.btnClear.Size = new System.Drawing.Size(90, 21); + this.btnClear.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnClear.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnClear.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnClear.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnClear.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnClear.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnClear.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnClear.Style.GradientAngle = 90; + this.btnClear.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnClear.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnClear.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnClear.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; + this.btnClear.TabIndex = 440; + this.btnClear.Text = "清空结果"; + this.btnClear.Visible = false; + // + // panelEx1 + // + this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control; + this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty; + this.panelEx1.Location = new System.Drawing.Point(568, 2); + this.panelEx1.Name = "panelEx1"; + this.panelEx1.Size = new System.Drawing.Size(115, 21); + this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center; + this.panelEx1.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.panelEx1.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.panelEx1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.panelEx1.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.panelEx1.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.panelEx1.Style.GradientAngle = 90; + this.panelEx1.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; + this.panelEx1.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.panelEx1.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.panelEx1.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.panelEx1.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; + this.panelEx1.TabIndex = 668; + this.panelEx1.Text = "停止当前操作"; + this.panelEx1.Visible = false; + // + // WXOrderConsignmentForm + // + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; + this.BackColor = System.Drawing.Color.White; + this.ClientSize = new System.Drawing.Size(1591, 641); + this.Controls.Add(this.splitContainer1); + this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.KeyPreview = true; + this.Name = "WXOrderConsignmentForm"; + this.Text = "微信小店 - 代发管理"; + this.Load += new System.EventHandler(this.UserSelectDbProductForm_Load); + this.VisibleChanged += new System.EventHandler(this.UserSelectDbProductForm_VisibleChanged); + this.splitContainer1.Panel1.ResumeLayout(false); + this.splitContainer1.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); + this.splitContainer1.ResumeLayout(false); + this.ucGroupBoxEx3.ResumeLayout(false); + this.ucGroupBoxEx3.PerformLayout(); + this.ucGroupBoxEx4.ResumeLayout(false); + this.ucGroupBoxEx4.PerformLayout(); + this.ucGroupBoxEx1.ResumeLayout(false); + this.ucGroupBoxEx1.PerformLayout(); + this.splitContainer3.Panel1.ResumeLayout(false); + this.splitContainer3.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).EndInit(); + this.splitContainer3.ResumeLayout(false); + this.splitContainer2.Panel1.ResumeLayout(false); + this.splitContainer2.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); + this.splitContainer2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.pbLoadingShop)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dgvShop)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pbLoading)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dgvSelectProduct)).EndInit(); + this.splitContainer4.Panel1.ResumeLayout(false); + this.splitContainer4.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).EndInit(); + this.splitContainer4.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.SplitContainer splitContainer1; + private UserComponent.UcGroupBoxEx ucGroupBoxEx4; + private UserComponent.UcGroupBoxEx ucGroupBoxEx1; + private DevComponents.DotNetBar.PanelEx btnRefreshShop; + private System.Windows.Forms.SplitContainer splitContainer3; + private System.Windows.Forms.SplitContainer splitContainer2; + private UserComponent.DataGridViewEx dgvShop; + private UserComponent.DataGridViewEx dgvSelectProduct; + private System.Windows.Forms.SplitContainer splitContainer4; + private UserControls.StatusBarUserControl statusBar; + private DevComponents.DotNetBar.PanelEx btnSearchOrder; + private DevComponents.DotNetBar.PanelEx btnClear; + private DevComponents.DotNetBar.PanelEx panelEx1; + private System.Windows.Forms.PictureBox pbLoadingShop; + private System.Windows.Forms.PictureBox pbLoading; + private System.Windows.Forms.TextBox txtFilterShopName; + private DevComponents.DotNetBar.PanelEx btnFilterShop; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label16; + private DevComponents.DotNetBar.PanelEx btnEmptyShop; + private UserComponent.UcComboBoxMutiSelect cmbFilterShopNotes; + private DevComponents.DotNetBar.PanelEx btnReverse; + private DevComponents.DotNetBar.PanelEx btnAddUnSelect; + private DevComponents.DotNetBar.PanelEx btnAddSelect; + private DevComponents.DotNetBar.PanelEx btnSelectOffline; + private DevComponents.DotNetBar.PanelEx btnSelectOnline; + private DevComponents.DotNetBar.PanelEx btnStopSearch; + private UserComponent.UcGroupBoxEx ucGroupBoxEx3; + private DevComponents.DotNetBar.PanelEx btnStopOp; + private DevComponents.DotNetBar.PanelEx btnClearList; + private DevComponents.DotNetBar.PanelEx btnCancel; + private System.Windows.Forms.Label label4; + private DevComponents.DotNetBar.PanelEx btnFiltSelect; + private DevComponents.DotNetBar.PanelEx btnBatchDel; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.RadioButton rbWaitSend; + private System.Windows.Forms.RadioButton rbWaitDivide; + private UserComponent.UcComboBoxMutiSelect cmbFilterShopGroup; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; + private System.Windows.Forms.DataGridViewTextBoxColumn colShopLoginName; + private System.Windows.Forms.DataGridViewTextBoxColumn colShopId; + private System.Windows.Forms.DataGridViewTextBoxColumn colShopName; + private System.Windows.Forms.DataGridViewTextBoxColumn colShopNotes; + private System.Windows.Forms.DataGridViewTextBoxColumn colGroup; + private System.Windows.Forms.DataGridViewLinkColumn colSelectProduct; + private System.Windows.Forms.DataGridViewLinkColumn colLoginStatus; + private System.Windows.Forms.DataGridViewLinkColumn colApi; + private System.Windows.Forms.DataGridViewCheckBoxColumn colCanUse; + private System.Windows.Forms.DataGridViewTextBoxColumn colUploadCount; + private System.Windows.Forms.DataGridViewTextBoxColumn colOnSaleNum; + private System.Windows.Forms.DataGridViewTextBoxColumn colRemaining; + private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; + private DevComponents.DotNetBar.PanelEx btnClearFilter; + private System.Windows.Forms.DataGridViewCheckBoxColumn colCheck; + private System.Windows.Forms.DataGridViewTextBoxColumn colSupplierId; + private System.Windows.Forms.DataGridViewTextBoxColumn colSupplierName; + private System.Windows.Forms.DataGridViewLinkColumn colLogin; + private System.Windows.Forms.DataGridViewLinkColumn colInShop; + private System.Windows.Forms.DataGridViewTextBoxColumn colConsignmentOrderId; + private System.Windows.Forms.DataGridViewTextBoxColumn colConsignmentSupplier; + private System.Windows.Forms.DataGridViewTextBoxColumn colConsignmentTime; + private System.Windows.Forms.DataGridViewTextBoxColumn colOrderId; + private System.Windows.Forms.DataGridViewTextBoxColumn colOrderTime; + private System.Windows.Forms.DataGridViewTextBoxColumn colDraftId; + private System.Windows.Forms.DataGridViewTextBoxColumn colSkuId; + private System.Windows.Forms.DataGridViewTextBoxColumn colImgUrl; + private System.Windows.Forms.DataGridViewImageColumn colProductSkcPic; + private System.Windows.Forms.DataGridViewTextBoxColumn colProduct; + private System.Windows.Forms.DataGridViewTextBoxColumn colExtCode; + private System.Windows.Forms.DataGridViewTextBoxColumn colCnt; + private System.Windows.Forms.DataGridViewTextBoxColumn colMsg; + private System.Windows.Forms.DataGridViewTextBoxColumn colNotes; + private System.Windows.Forms.DataGridViewLinkColumn colOperate; + private System.Windows.Forms.DataGridViewTextBoxColumn colOpResult; + } +} \ No newline at end of file diff --git a/TEMUKJD/WXForms/ProductForms/WXOrderConsignmentForm.cs b/TEMUKJD/WXForms/ProductForms/WXOrderConsignmentForm.cs new file mode 100644 index 0000000..9ea33d2 --- /dev/null +++ b/TEMUKJD/WXForms/ProductForms/WXOrderConsignmentForm.cs @@ -0,0 +1,993 @@ +using AllBase; +using AllBase.Helper; +using AllBase.Model.Result; +using NaiBa.Util.Extension; +using Newtonsoft.Json.Linq; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.IO; +using System.Linq; +using System.Net.Http; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using System.Windows.Forms; +using TemuKJD.Extension; +using TemuKJD.BaseForms; +using TemuKJD.ToolForms; +using Work; +using TemuKJD.BLL; +using System.Text.RegularExpressions; +using TemuKJD.PDDForms.ProductSelectForms; +using TemuKJD.WXForms.ShopForms; +using AllBase.Model.Result.PDDResult; +using AllBase.Model.Param.WXParam; +using AllBase.Model.Result.WXResult; +using Newtonsoft.Json; +using NaiBa.Util; +using AllBase.Model.Config; +using TemuKJD.BLL.Wx; + +namespace TemuKJD.WXForms.ProductForms +{ + public partial class WXOrderConsignmentForm : BaseForm + { + int PageBegin = 1; + int PageEnd = 1000; + string OnSaleStatus = "在售"; + + public CancellationTokenSource cancellationTokenSource { get; set; } = null; + public bool IsLoadComplate { get; set; } = false; + + bool isInit = false; + CheckBox chkSelectAll = null; + ConcurrentList lstWXConsignmentOrderInfo = new ConcurrentList(); + public Dictionary dicCheckedShopId = new Dictionary(); + public WXOrderConsignmentForm() + { + InitializeComponent(); + } + + private void UserSelectDbProductForm_Load(object sender, EventArgs e) + { + this.splitContainer1.Dock = DockStyle.Fill; + + dicCheckedShopId = NaiBa.Util.Helper.ConfigHelper.LoadConfig>("wx_checked_shop_dic"); + if (dicCheckedShopId == null) + dicCheckedShopId = new Dictionary(); + + chkSelectAll = dgvShop.Columns["colSelect"].AddHeaderCheckBox(HorizontalAlignment.Center, 0, 0, null, null, false); + dgvShop.Columns["colSelect"].HeaderText = ""; + chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged; + + this.dgvSelectProduct.AddSelectorColumn("colCheck"); + + dgvSelectProduct.AddImgColumn("colProductSkcPic", "colImgUrl"); + + IsLoadComplate = true; + } + + private void chkSelectAll_CheckedChanged(object sender, EventArgs e) + { + if (!chkSelectAll.Checked) + { + foreach (DataGridViewRow row in dgvShop.Rows) + { + row.Cells["colSelect"].Value = false; + } + } + else + { + //var list = GlobalConfig.ShopLoginList.Where(s => s.LoginStatus == "登录成功").Select(ss => ss.ShopId); + foreach (DataGridViewRow row in dgvShop.Rows) + { + //if (list.Any(l => l == row.Cells["colShopId"]?.Value?.ToString())) + if (row.Visible == true) + row.Cells["colSelect"].Value = true; + } + } + + foreach (var r in dgvShop.Rows.Cast()) + { + dicCheckedShopId[r.Cells["colShopId"].Value.ParseToString()] = r.Cells["colSelect"].Value.ParseToBool(); + } + NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_checked_shop_dic", dicCheckedShopId); + } + + private void btnRefreshShop_Click(object sender, EventArgs e) + { + pbLoadingShop.Visible = true; + RefreshShopLogin(); + pbLoadingShop.Visible = false; + } + + private void UserSelectDbProductForm_VisibleChanged(object sender, EventArgs e) + { + if (Visible == true) + { + RefreshShopLogin(); + //updateAuthor(); + + if (!isInit) + { + } + + isInit = true; + } + } + + private void RefreshShopLogin() + { + // 店铺Id + var selectIds = dgvShop.Rows.Cast().Where(row + => row.Cells["colSelect"]?.Value.ParseToBool() == true).Select(r => r.Cells["colShopId"]?.Value.ToString()).ToList(); + // 获取被删除的店铺 + List dgvRowList = dgvShop.Rows.Cast().Where(row + => !GlobalConfig.ShopLoginList.Any(s => s.ShopId == row.Cells["colShopId"]?.Value?.ToString())).ToList(); + // 更新被删除的店铺列表 + foreach (var row in dgvRowList) + { + dgvShop.Rows.Remove(row); + } + // 绑定其他店铺(含新导入的店铺) + foreach (ShopLoginInfo shopEntity in GlobalConfig.ShopLoginList) + { + if (!string.IsNullOrEmpty(shopEntity.ShopId)) + BindShop(shopEntity, selectIds); + } + cmbFilterShopNotes.Items.Clear(); + foreach (var note in GlobalConfig.ShopLoginList.Select(s => s.Notes).Where(s => !s.IsNullOrEmpty()).Distinct()) + { + cmbFilterShopNotes.Items.Add(note); + } + cmbFilterShopGroup.Items.Clear(); + foreach (var note in GlobalConfig.ShopLoginList.Select(s => s.GroupName).Where(s => !s.IsNullOrEmpty()).Distinct()) + { + cmbFilterShopGroup.Items.Add(note); + } + } + + private void BindShop(ShopLoginInfo shopEntity, List selectShopId = null, string msg = "") + { + if (shopEntity == null) + return; + if (shopEntity.is_shop_expire) + return; + if (selectShopId == null) + selectShopId = new List(); + + bool canUse = shopEntity.LoginStatus == "登录成功"; + var rows = dgvShop.Rows.Cast().Where(p => p.Cells.GetCellValueFromColumnName("colShopId").ParseToString() == shopEntity.ShopId).ToList(); + var day = DateTime.Now.ToString("yyyyMMdd").ParseToInt(); + if (rows.Count == 0) + { + this.dgvShop.Rows.Add( + dicCheckedShopId.Keys.Contains(shopEntity.ShopId) && dicCheckedShopId[shopEntity.ShopId] == true, + shopEntity.LoginName, + shopEntity.ShopId, + shopEntity.ShopAccount, + shopEntity.Notes, + shopEntity.GroupName, + "选择商品", + canUse ? "在线" : "掉线", + GlobalConfig.lstWxShopAuthInfo.FirstOrDefault(sa => sa.ShopId == shopEntity.ShopId)?.ExpiresTime > DateTime.Now.AddMinutes(5) ? "可用" : "过期", + canUse, + GlobalConfig.dicWxShopUploadInfo.ContainsKey(shopEntity.ShopId) ? GlobalConfig.dicWxShopUploadInfo[shopEntity.ShopId].DicDayUploadCount[day] : 0, + GlobalConfig.dicWxShopUploadInfo.ContainsKey(shopEntity.ShopId) ? GlobalConfig.dicWxShopUploadInfo[shopEntity.ShopId].OnSaleCount : 0, + shopEntity.AddProductRemaining, + msg + ); + } + else + { + foreach (var row in rows) + { + row.Cells["colSelect"].Value = !isInit || (selectShopId.Contains(shopEntity.ShopId) && canUse); + row.Cells["colShopLoginName"].Value = shopEntity.LoginName; + row.Cells["colShopName"].Value = shopEntity.ShopAccount; + row.Cells["colShopNotes"].Value = shopEntity.Notes; + row.Cells["colGroup"].Value = shopEntity.GroupName; + row.Cells["colLoginStatus"].Value = canUse ? "在线" : "掉线"; + row.Cells["colLoginStatus"].Style.ForeColor = canUse ? Color.Green : Color.Red; + row.Cells["colCanUse"].Value = canUse; + row.Cells["colApi"].Value = GlobalConfig.lstWxShopAuthInfo.FirstOrDefault(sa => sa.ShopId == shopEntity.ShopId)?.ExpiresTime > DateTime.Now.AddMinutes(5) ? "可用" : "过期"; + row.Cells["colRemaining"].Value = shopEntity.AddProductRemaining; + row.Cells["colUploadCount"].Value = GlobalConfig.dicWxShopUploadInfo.ContainsKey(shopEntity.ShopId) ? GlobalConfig.dicWxShopUploadInfo[shopEntity.ShopId].DicDayUploadCount[day] : 0; + row.Cells["colOnSaleNum"].Value = GlobalConfig.dicWxShopUploadInfo.ContainsKey(shopEntity.ShopId) ? GlobalConfig.dicWxShopUploadInfo[shopEntity.ShopId].OnSaleCount : 0; + row.Cells["colMessage"].Value = msg; + } + } + + displayAuthStatus(shopEntity); + } + + void displayAuthStatus(ShopLoginInfo shop) + { + var rows = this.dgvShop.Rows.Cast().Where(r => r.Cells["colShopId"].Value.ParseToString() == shop?.ShopId); + foreach (var row in rows) + { + bool canUse = row.Cells["colLoginStatus"].Value.ParseToString() == "在线"; + (row.Cells["colLoginStatus"] as DataGridViewLinkCell).Style.ForeColor = canUse ? Color.Blue : Color.Red; + (row.Cells["colLoginStatus"] as DataGridViewLinkCell).LinkColor = canUse ? Color.Blue : Color.Red; + (row.Cells["colLoginStatus"] as DataGridViewLinkCell).ActiveLinkColor = canUse ? Color.LightBlue : Color.OrangeRed; + (row.Cells["colLoginStatus"] as DataGridViewLinkCell).VisitedLinkColor = canUse ? Color.DarkBlue : Color.DarkRed; + canUse = row.Cells["colApi"].Value.ParseToString() == "可用"; + (row.Cells["colApi"] as DataGridViewLinkCell).Style.ForeColor = canUse ? Color.Blue : Color.Red; + (row.Cells["colApi"] as DataGridViewLinkCell).LinkColor = canUse ? Color.Blue : Color.Red; + (row.Cells["colApi"] as DataGridViewLinkCell).ActiveLinkColor = canUse ? Color.LightBlue : Color.OrangeRed; + (row.Cells["colApi"] as DataGridViewLinkCell).VisitedLinkColor = canUse ? Color.DarkBlue : Color.DarkRed; + } + } + + private void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e) + { + if (e.ColumnIndex < 0 || e.RowIndex < 0) + return; + string headerText = dgvShop.Columns[e.ColumnIndex].HeaderText; + string columnName = dgvShop.Columns[e.ColumnIndex].Name; + string shopId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToString(); + string shopAccount = dgvShop.Rows[e.RowIndex].Cells["colShopName"].Value.ToString(); + var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId.ToString()); + var row = dgvShop.Rows[e.RowIndex]; + switch (columnName) + { + case "colSelect": + //if (row.Cells["colCanUse"].Value.ParseToBool()) + { + row.Cells["colSelect"].Value = !row.Cells["colSelect"].Value.ParseToBool(); + + chkSelectAll.CheckedChanged -= chkSelectAll_CheckedChanged; + if (dgvShop.Rows.Cast().All(r => r.Cells["colSelect"].Value.ParseToBool())) + chkSelectAll.Checked = true; + else + chkSelectAll.Checked = false; + chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged; + } + //else + { + //BaseMsgForm.ShowInfo("店铺未登录!"); + } + + dicCheckedShopId[row.Cells["colShopId"].Value.ParseToString()] = row.Cells["colSelect"].Value.ParseToBool(); + NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_checked_shop_dic", dicCheckedShopId); + break; + case "colLoginStatus": + { + if (WXShopListForm.Instance == null) + WXShopListForm.Instance = new WXShopListForm(); + WXShopListForm.Instance.CheckShopLogin(new string[] { shop.LoginName }, false); + WXShopLoginForm shopLoginForm = new WXShopLoginForm(shop); + //shopLoginForm.prodUserSelectForm = this; + if (shop.LoginStatus != "登录成功") + { + shopLoginForm.openType = EnumOpenType.login; + shopLoginForm.ShowDialog(); + RefreshShopLogin(); + } + else + { + shopLoginForm.openType = EnumOpenType.manage; + shopLoginForm.WindowState = FormWindowState.Maximized; + shopLoginForm.Show(); + } + } + break; + case "colApi": + { + WXShopLoginForm shopLoginForm = new WXShopLoginForm(shop); + shopLoginForm.openType = EnumOpenType.manage; + shopLoginForm.WindowState = FormWindowState.Maximized; + shopLoginForm.InitUrl = "https://store.weixin.qq.com/shop/servicemarket/detail?serviceId=3984039898079707139"; + shopLoginForm.Show(); + } + break; + } + } + + private void btnSearch_Click(object sender, EventArgs e) + { + var lstShopId = dgvShop.Rows.Cast().Where(row + => row.Cells["colSelect"]?.Value.ParseToBool() == true).Select(r => r.Cells["colShopId"]?.Value.ToString()).ToList(); + if (lstShopId.Count == 0) + { + BaseMsgForm.ShowInfo("请选择店铺!"); + return; + } + } + + private void dgvSelectProduct_CellContentClick(object sender, DataGridViewCellEventArgs e) + { + if (e.ColumnIndex < 0 || e.RowIndex < 0) + return; + string headerText = dgvSelectProduct.Columns[e.ColumnIndex].HeaderText; + var shopId = dgvSelectProduct.Rows[e.RowIndex].Cells["colSupplierId"].Value.ParseToString(); + var draftId = dgvSelectProduct.Rows[e.RowIndex].Cells["colDraftId"].Value.ParseToString(); + var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId); + + switch (headerText) + { + case "删除": + break; + case "登录": + { + WXShopLoginForm shopLoginForm = new WXShopLoginForm(shop); + shopLoginForm.openType = EnumOpenType.login; + shopLoginForm.ShowDialog(); + RefreshShopLogin(); + } + break; + case "进店": + { + WXShopLoginForm shopLoginForm = new WXShopLoginForm(shop); + WXShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false); + if (shop.LoginStatus == "登录成功") + { + shopLoginForm.openType = EnumOpenType.manage; + shopLoginForm.WindowState = FormWindowState.Maximized; + //shopLoginForm.InitUrl = "https://store.weixin.qq.com/shop/home"; + shopLoginForm.InitUrl = "https://store.weixin.qq.com/shop/order/consignment"; + shopLoginForm.Show(); + } + else + { + shopLoginForm.openType = EnumOpenType.login; + shopLoginForm.ShowDialog(); + RefreshShopLogin(); + } + } + break; + case "图片": + { + ShowImgForm imgFrom = new ShowImgForm(dgvSelectProduct.Rows[e.RowIndex].Cells["colImgUrl"].Value.ParseToString()); + imgFrom.ShowDialog(); + break; + } + case "操作": + { + if (BaseMsgForm.ShowConfirm("确认要取消分配吗?取消分配后,订单将回到待分配状态").DialogResult != DialogResult.OK) + return; + this.pbLoading.Visible = true; + Task.Run(() => + { + CancelConsignment(new List() { dgvSelectProduct.Rows[e.RowIndex] }); + Invoke(new Action(() => + { + this.pbLoading.Visible = false; + })); + }, cancellationTokenSource.Token); + break; + } + case "": + dgvSelectProduct.Rows[e.RowIndex].Cells["colCheck"].Value = !(bool)dgvSelectProduct.Rows[e.RowIndex].Cells["colCheck"].Value; + break; + default: + break; + } + } + + private void btnStop_Click(object sender, EventArgs e) + { + if (this.cancellationTokenSource != null) + this.cancellationTokenSource.Cancel(); + } + + private void btnSearchProd_Click(object sender, EventArgs e) + { + var shopIdLst = dgvShop.Rows.Cast().Where(row + => row.Cells["colSelect"]?.Value.ParseToBool() == true).Select(r => r.Cells["colShopId"]?.Value.ToString()).ToList(); + if (shopIdLst.Count <= 0) + { + BaseMsgForm.ShowError("未勾选查询店铺!"); + return; + } + btnSearchOrder.Enabled = false; + pbLoading.Visible = true; + if (cancellationTokenSource != null) + cancellationTokenSource.Cancel(); + cancellationTokenSource = new CancellationTokenSource(); + dgvSelectProduct.Rows.Clear(); + Task.Run(() => + { + GetConsignmentOrder(shopIdLst); + Invoke(new Action(() => + { + if (cancellationTokenSource.IsCancellationRequested) + { + this.statusBar.lblTaskStatus.Text = "订单查询停止"; + BaseMsgForm.ShowInfo("订单查询停止"); + } + else + { + this.statusBar.lblTaskStatus.Text = "订单查询完毕"; + BaseMsgForm.ShowInfo("订单查询完毕"); + } + pbLoading.Visible = false; + btnSearchOrder.Enabled = true; + })); + }, cancellationTokenSource.Token); + } + + void GetConsignmentOrder(List shopIdLst) + { + List shopLst = GlobalConfig.ShopLoginList.Where(s => shopIdLst.Contains(s.ShopId)).ToList(); + + Invoke(new Action(() => + { + this.pbLoading.Visible = true; + this.statusBar.lblTaskStatus.Text = "正在查询店铺"; + this.statusBar.pgbTaskProgress.Maximum = shopIdLst.Count; + this.statusBar.UpdateProgressBar(0); + })); + + foreach (var shop in shopLst) + { + if (cancellationTokenSource.IsCancellationRequested) + break; + + Invoke(new Action(() => + { + this.statusBar.UpdateProgressBar(this.statusBar.pgbTaskProgress.Value + 1); + })); + + if (shop.LoginStatus != "登录成功") + { + continue; + } + + var onRst = WXOrderConsignment.getConsignmentOnOffStatus(shop); + if (!onRst.Contains("\"isOpen\":true}")) + continue; + + int page = PageBegin - 1; + int totalPage = 1; + int pageSize = 30; + while (page < totalPage && page < PageEnd) + { + page++; + + if (cancellationTokenSource.IsCancellationRequested) + break; + + // 查找订单 + pageSize = 30; + var result = WXOrderConsignment.searchConsignmentOrder(shop, page, pageSize, rbWaitDivide.Checked); + if (!result.Contains("\"code\":0")) + { + ShowShopError(shop, result); + break; + } + totalPage = Math.Ceiling(BaseRegex.GetIntJson(ref result, "totalCount") * 1m / pageSize).ParseToInt(); + List consignmentOrderLst = new List(); + try + { + var jArr = JsonHelper.JObjectParse(result)["orderList"]; + consignmentOrderLst = JsonHelper.DeserializeJsonToList(JsonHelper.SerializeObject(jArr)); + } + catch (Exception ex) + { + ShowShopError(shop, ex.Message); + break; + } + Thread.Sleep(Randomx.GetId(200, 1000)); + + // 查找对应商品 + string getProdOnSaleRst = ""; + if (consignmentOrderLst.Count > 0 && consignmentOrderLst.All(c => !c.commonInfo.cosignmentOrderId.IsNullOrEmpty())) + { + int onSaleStatusCode = -1; + if (OnSaleStatus == "在售") + onSaleStatusCode = 5; + else if (OnSaleStatus == "下架") + onSaleStatusCode = 11; + else if (OnSaleStatus == "审核待处理") + onSaleStatusCode = 3; + else if (OnSaleStatus == "草稿箱") + onSaleStatusCode = 1; + else if (OnSaleStatus == "回收站") + onSaleStatusCode = 6; + pageSize = 50; + string spuIds = string.Join(",", consignmentOrderLst.Select(r => string.Join(",", r.productsList.Select(p => p.productId)))); + getProdOnSaleRst = WXClearNoVisit.searchProduct(shop, 1, pageSize, spuIds, onSaleStatusCode); + Thread.Sleep(Randomx.GetId(50, 100)); + if (!getProdOnSaleRst.Contains("\"success\":true")) + { + ShowShopError(shop, getProdOnSaleRst); + break; + } + } + + try + { + Invoke(new Action(() => + { + this.pbLoading.Visible = true; + this.statusBar.lblTaskStatus.Text = "正在查询店铺:" + shop.ShopAccount + " " + page + "/" + Math.Min(PageEnd, totalPage); + })); + var prodObjs = JsonHelper.JObjectParse(getProdOnSaleRst); + foreach (var order in consignmentOrderLst) + { + foreach (var prodLite in order.productsList) + { + Invoke(new Action(() => + { + var spuCode = prodLite.spuCode; + var prod = prodObjs["productList"].FirstOrDefault(p => p["productId"].ParseToString() == prodLite.productId); + if (prod != null) + { + var pStr = JsonHelper.SerializeObject(prod); + spuCode = prod["spuCode"].ParseToString(); + } + + var rowIndex = this.dgvSelectProduct.Rows.Add( + false, + shop.ShopId, + shop.ShopAccount, + "登录", + "进店", + order.commonInfo.cosignmentOrderId, + order.commonInfo.supplierName, + order.commonInfo.createTimeStr, + order.commonInfo.orderId, + order.commonInfo.orderCreateTimeStrForB.ParseToDateTime().ToString("M/d HH:mm"), + prodLite.productId, + prodLite.skuId, + prodLite.thumbImg, + DataGridViewExtension.defaultBitmap, + prodLite.title + string.Join(";", prodLite.saleParam), // 商品名称 + spuCode, // 商品编号 + prodLite.realPrice * 0.01m + "\r\nx" + prodLite.productCnt, // 商品单价/数量 + order.commonInfo.statusStr, + order.notesInfo.merchantNotes, + "取消分配", + "" + ); + + dgvSelectProduct.Rows[rowIndex].Height = 60; + //Color color = Color.Red; + //if (dgvSelectProduct.Rows[rowIndex].Cells["colMsg"].Value.ParseToString() == "在售") + // color = Color.Blue; + //if (dgvSelectProduct.Rows[rowIndex].Cells["colMsg"].Value.ParseToString() == "下架") + // color = Color.Purple; + //if (dgvSelectProduct.Rows[rowIndex].Cells["colMsg"].Value.ParseToString() == "草稿箱") + // color = Color.DarkOrange; + //if (dgvSelectProduct.Rows[rowIndex].Cells["colMsg"].Value.ParseToString() == "回收站") + // color = Color.Gray; + //dgvSelectProduct.Rows[rowIndex].Cells["colMsg"].Style.ForeColor = color; + })); + } + } + } + catch (Exception ex) + { + + } + } + } + } + + private void btnClearDgv_Click(object sender, EventArgs e) + { + var rows = this.dgvSelectProduct.Rows.Cast().ToList(); //Cast后Rows做foreach循环时仍会夹花跳过,所以要ToList转一个新的数组。 + foreach (var row in rows) + { + if (row.Cells["colCheck"].Value.ParseToBool() == true) + { + //var draft_id = row.Cells["colDraftId"].Value.ParseToString(); + //upload_draft_product_lst.RemoveAll(p => p.draft_id == draft_id); + + this.dgvSelectProduct.Rows.Remove(row); + } + } + //NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_select_upload_draft_products", upload_draft_product_lst); + } + + private void btnClearFilter_Click(object sender, EventArgs e) + { + } + + private void btnFilterShop_Click(object sender, EventArgs e) + { + string notes = cmbFilterShopNotes.Text.Trim().Trim(';'); + if (notes == "全部") + notes = ""; + List notesLst = notes.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); + + string group = cmbFilterShopGroup.Text.Trim().Trim(';'); + if (group == "全部") + group = ""; + List groupLst = group.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); + + foreach (DataGridViewRow row in dgvShop.Rows) + { + if (!row.Cells["colShopName"].Value.ParseToString().Contains(txtFilterShopName.Text.Trim())) + { + row.Visible = false; + row.Cells["colSelect"].Value = false; + continue; + } + if (!string.IsNullOrWhiteSpace(notes) && !notesLst.Contains(row.Cells["colShopNotes"].Value.ParseToString())) + { + row.Visible = false; + row.Cells["colSelect"].Value = false; + continue; + } + if (!string.IsNullOrWhiteSpace(group) && !groupLst.Contains(row.Cells["colGroup"].Value.ParseToString())) + { + row.Visible = false; + row.Cells["colSelect"].Value = false; + continue; + } + row.Visible = true; + } + } + + private void btnEmptyShop_Click(object sender, EventArgs e) + { + txtFilterShopName.Text = ""; + cmbFilterShopNotes.Text = "全部"; + cmbFilterShopGroup.Text = "全部"; + btnFilterShop_Click(null, null); + } + + private void btnReverse_Click(object sender, EventArgs e) + { + foreach (DataGridViewRow row in dgvShop.Rows) + { + if (row.Visible == true) + row.Cells["colSelect"].Value = !row.Cells["colSelect"].Value.ParseToBool(); + } + } + + private void btnAddSelect_Click(object sender, EventArgs e) + { + string notes = cmbFilterShopNotes.Text.Trim().Trim(';'); + if (notes == "全部") + notes = ""; + List notesLst = notes.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); + + string group = cmbFilterShopGroup.Text.Trim().Trim(';'); + if (group == "全部") + group = ""; + List groupLst = group.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); + + foreach (DataGridViewRow row in dgvShop.Rows) + { + if (row.Visible == false) + continue; + + if (!row.Cells["colShopName"].Value.ParseToString().Contains(txtFilterShopName.Text.Trim())) + continue; + if (!string.IsNullOrWhiteSpace(notes) && !notesLst.Contains(row.Cells["colShopNotes"].Value.ParseToString())) + continue; + if (!string.IsNullOrWhiteSpace(group) && !groupLst.Contains(row.Cells["colGroup"].Value.ParseToString())) + continue; + + row.Cells["colSelect"].Value = true; + } + } + + private void btnAddUnSelect_Click(object sender, EventArgs e) + { + string notes = cmbFilterShopNotes.Text.Trim().Trim(';'); + if (notes == "全部") + notes = ""; + List notesLst = notes.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); + + string group = cmbFilterShopGroup.Text.Trim().Trim(';'); + if (group == "全部") + group = ""; + List groupLst = group.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); + + foreach (DataGridViewRow row in dgvShop.Rows) + { + if (row.Visible == false) + continue; + + if (!row.Cells["colShopName"].Value.ParseToString().Contains(txtFilterShopName.Text.Trim())) + continue; + if (!string.IsNullOrWhiteSpace(notes) && !notesLst.Contains(row.Cells["colShopNotes"].Value.ParseToString())) + continue; + if (!string.IsNullOrWhiteSpace(group) && !groupLst.Contains(row.Cells["colGroup"].Value.ParseToString())) + continue; + + row.Cells["colSelect"].Value = false; + } + } + + private void btnSelectOnline_Click(object sender, EventArgs e) + { + foreach (DataGridViewRow row in dgvShop.Rows) + { + if (row.Visible == true) + { + if (row.Cells["colLoginStatus"].Value.ParseToString() == "在线") + { + row.Cells["colSelect"].Value = true; + } + else + { + row.Cells["colSelect"].Value = false; + } + } + } + } + + private void btnSelectOffline_Click(object sender, EventArgs e) + { + foreach (DataGridViewRow row in dgvShop.Rows) + { + if (row.Visible == true) + { + if (row.Cells["colLoginStatus"].Value.ParseToString() != "在线") + { + row.Cells["colSelect"].Value = true; + } + else + { + row.Cells["colSelect"].Value = false; + } + } + } + } + + private void btnCancelConsignment_Click(object sender, EventArgs e) + { + var rowLst = dgvSelectProduct.Rows.Cast().Where(r => r.Cells["colCheck"].Value.ParseToBool() == true).ToList(); + if (rowLst.Count <= 0) + { + BaseMsgForm.ShowError("请勾选需要操作的订单!"); + return; + } + + if (BaseMsgForm.ShowConfirm("确认要取消分配吗?取消分配后,订单将回到待分配状态").DialogResult != DialogResult.OK) + return; + + this.pbLoading.Visible = true; + if (cancellationTokenSource != null && !cancellationTokenSource.IsCancellationRequested) + cancellationTokenSource.Cancel(); + cancellationTokenSource = new CancellationTokenSource(); + Task.Run(() => + { + CancelConsignment(rowLst); + Invoke(new Action(() => + { + if (cancellationTokenSource.IsCancellationRequested) + { + this.statusBar.lblTaskStatus.Text = "取消分配中断"; + BaseMsgForm.ShowInfo("取消分配中断"); + } + else + { + this.statusBar.lblTaskStatus.Text = "取消分配完毕"; + BaseMsgForm.ShowInfo("取消分配完毕"); + } + + this.pbLoading.Visible = false; + })); + }, cancellationTokenSource.Token); + } + + void CancelConsignment(List rowLst) + { + Invoke(new Action(() => + { + this.pbLoading.Visible = true; + this.statusBar.lblTaskStatus.Text = "正在取消分配" + "...".Substring(0, DateTime.Now.Second % 4); + this.statusBar.pgbTaskProgress.Maximum = rowLst.Count; + this.statusBar.UpdateProgressBar(0); + })); + + while (rowLst.Count > 0) + { + if (cancellationTokenSource.IsCancellationRequested) + break; + + var r0 = rowLst.FirstOrDefault(); + var shopId = r0.Cells["colSupplierId"].Value.ParseToString(); + var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId); + var rowLstTmp = rowLst.Where(r => r.Cells["colSupplierId"].Value.ParseToString() == shopId).Take(1).ToList(); + + foreach (var r in rowLstTmp) + { + rowLst.RemoveAll(rw => rw.Cells["colConsignmentOrderId"].Value == r.Cells["colConsignmentOrderId"].Value); + + Invoke(new Action(() => + { + this.statusBar.lblTaskStatus.Text = "正在取消分配" + "...".Substring(0, DateTime.Now.Second % 4); + this.statusBar.UpdateProgressBar(this.statusBar.pgbTaskProgress.Value + 1); + r.Cells["colOpResult"].Value = ""; + })); + } + if (shop == null) + { + Invoke(new Action(() => + { + foreach (var r in rowLstTmp) + { + r.Cells["colOpResult"].Value = "店铺不存在"; + } + })); + continue; + } + if (shop.LoginStatus != "登录成功") + { + Invoke(new Action(() => + { + foreach (var r in rowLstTmp) + { + r.Cells["colOpResult"].Value = "店铺掉线"; + } + })); + continue; + } + + //{"cosignmentOrderId":"4436464658179189760","cosignmentProductList":[{"spuId":"10000826730228","skuId":"14511204738","cancelScene":2}],"orderId":"3736464645960385280"} + JObject cancelAssignOrderData = new JObject(); + foreach (var row in rowLstTmp) + { + cancelAssignOrderData["cosignmentOrderId"] = row.Cells["colConsignmentOrderId"].Value.ParseToString(); + var jArr = new JArray(); + var dgvrs = dgvSelectProduct.Rows.Cast().Where(dgvr => dgvr.Cells["colConsignmentOrderId"] == row.Cells["colConsignmentOrderId"]).ToList(); + foreach (var dgvr in dgvrs) + { + JObject jProd = new JObject(); + jProd["spuId"] = dgvr.Cells["colDraftId"].Value.ParseToString(); + jProd["skuId"] = dgvr.Cells["colSkuId"].Value.ParseToString(); + jProd["cancelScene"] = 2; + jArr.Add(jProd); + } + cancelAssignOrderData["cosignmentProductList"] = jArr; + cancelAssignOrderData["orderId"] = row.Cells["colOrderId"].Value.ParseToString(); + } + + var cancelRst = WXOrderConsignment.cancelConsignmentOrder(shop, cancelAssignOrderData); + Thread.Sleep(Randomx.GetId(500, 1000)); + if (!cancelRst.Contains("\"code\":0")) + { + if (cancelRst.Contains("biz magic invalid")) + { + WXShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false); + if (shop.LoginStatus != "登录成功") + { + Invoke(new Action(() => + { + foreach (var row in rowLstTmp) + { + row.Cells["colOpResult"].Value = "店铺掉线"; + } + })); + continue; + } + } + + var errmsg = BaseRegex.GetStringJson(ref cancelRst, "msg"); + if (string.IsNullOrWhiteSpace(errmsg)) + errmsg = cancelRst; + + Invoke(new Action(() => + { + foreach (var row in rowLstTmp) + { + var dgvrs = dgvSelectProduct.Rows.Cast().Where(dgvr => dgvr.Cells["colConsignmentOrderId"] == row.Cells["colConsignmentOrderId"]).ToList(); + foreach (var dgvr in dgvrs) + dgvr.Cells["colOpResult"].Value = errmsg; + } + })); + } + + if (cancelRst.Contains("\"code\":0")) + { + Invoke(new Action(() => + { + foreach (var row in rowLstTmp) + { + var dgvrs = dgvSelectProduct.Rows.Cast().Where(dgvr => dgvr.Cells["colConsignmentOrderId"] == row.Cells["colConsignmentOrderId"]).ToList(); + foreach (var dgvr in dgvrs) + dgvr.Cells["colOpResult"].Value = "取消分配成功"; + } + })); + } + } + } + + private void btnFiltSelect_Click(object sender, EventArgs e) + { + foreach (DataGridViewRow row in dgvSelectProduct.Rows) + { + // 2,3拼多多 6抖音 + if (!row.Cells["colNotes"].Value.ParseToString().StartsWith("2") && !row.Cells["colNotes"].Value.ParseToString().StartsWith("3") && + !row.Cells["colNotes"].Value.ParseToString().StartsWith("6")) + { + row.Cells["colCheck"].Value = false; + continue; + } + // ^\d{6}.*$ + string pattern1 = @"^\d{6}-\d{15}.*$"; // 定义正则表达式模式 + string pattern2 = @"^\d{19}.*$"; // 定义正则表达式模式 + Regex regex1 = new Regex(pattern1); + Regex regex2 = new Regex(pattern2); + if (!regex1.IsMatch(row.Cells["colNotes"].Value.ParseToString()) && !regex2.IsMatch(row.Cells["colNotes"].Value.ParseToString())) + { + row.Cells["colCheck"].Value = false; + continue; + } + row.Cells["colCheck"].Value = true; + } + } + + void ShowShopError(ShopLoginInfo shop, string operateResult) + { + var error = BaseRegex.GetStringJson(ref operateResult, "msg"); + if (string.IsNullOrEmpty(error)) + error = BaseRegex.GetStringJson(ref operateResult, "errMsg"); + if (string.IsNullOrEmpty(error)) + error = BaseRegex.GetStringJson(ref operateResult, "errorMsg"); + if (string.IsNullOrEmpty(error)) + error = operateResult; + + WXShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false); + + if (shop.LoginStatus != "登录成功") + { + Invoke(new Action(() => { BindShop(shop, new List { shop.ShopId }, "店铺掉线"); })); + } + else + { + Invoke(new Action(() => { BindShop(shop, new List { shop.ShopId }, error); })); + } + } + } + + public class WXOrderConsignment + { + public static string getConsignmentOnOffStatus(ShopLoginInfo shop) + { + string url = "https://store.weixin.qq.com/shop-faas/mmecnodesuppliercosignment/associate/cgi/getOpenStatus?token=&lang=zh_CN"; + string data = "{}"; + string refere = "https://store.weixin.qq.com/shop/order/consignment"; + var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, data, refere); + return result; + } + + public static string searchConsignmentOrder(ShopLoginInfo shop, int pageNum, int pageSize = 30, bool isWaitDevide = false) + { + string url = "https://store.weixin.qq.com/shop-faas/mmecnodesuppliercosignment/order/cgi/orderSearch?token=&lang=zh_CN"; + string data = @"{""pageSize"":" + pageSize + @",""page"":" + pageNum + @",""tab"":1}"; + if (isWaitDevide) + data = @"{""pageSize"":" + pageSize + @",""page"":" + pageNum + @",""orderStatus"":20,""availCosignment"":true}"; + + //string body = @"{""pageSize"":30,""page"":1,""startCreateTime"":"""",""endCreateTime"":"""",""orderId"":"""",""title"":"""",""productCode"":"""",""merchantNotes"":"""",""orderStatus"":20,""availCosignment"":true}"; + //string body = @"{""pageSize"":30,""page"":1,""beginTime"":"""",""endTime"":"""",""createBeginTime"":"""",""createEndTime"":"""",""orderId"":"""",""consignmentOrderId"":"""",""waybillId"":"""",""supplierName"":"""",""productCode"":"""",""spuName"":"""",""note"":"""",""tab"":1}"; + + string refere = "https://store.weixin.qq.com/shop/order/consignment"; + var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, data, refere); + return result; + } + public static string addConsignmentOrder(ShopLoginInfo shop, JObject dataObj) + { + string url = "https://store.weixin.qq.com/shop-faas/mmecnodesuppliercosignment/order/cgi/cancelAssignOrder?token=&lang=zh_CN"; + string data = JsonHelper.SerializeObject(dataObj); + + //{"appid":"wx154836518ed19b88","assignCosignmentList":[{"orderId":"3736464645960385280","cosignmentProductList":[{"spuId":"10000826730228","skuId":"14511204738"}]}]} + + string refere = "https://store.weixin.qq.com/shop/order/consignment"; + var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, data, refere); + return result; + } + public static string cancelConsignmentOrder(ShopLoginInfo shop, JObject dataObj) + { + string url = "https://store.weixin.qq.com/shop-faas/mmecnodesuppliercosignment/order/cgi/cancelAssignOrder?token=&lang=zh_CN"; + string data = JsonHelper.SerializeObject(dataObj); + + //{"cosignmentOrderId":"4436464658179189760","cosignmentProductList":[{"spuId":"10000826730228","skuId":"14511204738","cancelScene":2}],"orderId":"3736464645960385280"} + + string refere = "https://store.weixin.qq.com/shop/order/consignment"; + var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, data, refere); + return result; + } + } + +} diff --git a/TEMUKJD/WXForms/ProductForms/WXOrderConsignmentForm.resx b/TEMUKJD/WXForms/ProductForms/WXOrderConsignmentForm.resx new file mode 100644 index 0000000..0754325 --- /dev/null +++ b/TEMUKJD/WXForms/ProductForms/WXOrderConsignmentForm.resx @@ -0,0 +1,222 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + True + + + True + + + True + + + True + + + True + + + True + + \ No newline at end of file diff --git a/TEMUKJD/WXForms/ProductForms/WXProdClearNoVisitForm.Designer.cs b/TEMUKJD/WXForms/ProductForms/WXProdClearNoVisitForm.Designer.cs index cea757c..8b71c74 100644 --- a/TEMUKJD/WXForms/ProductForms/WXProdClearNoVisitForm.Designer.cs +++ b/TEMUKJD/WXForms/ProductForms/WXProdClearNoVisitForm.Designer.cs @@ -749,9 +749,9 @@ namespace TemuKJD.WXForms.ProductForms this.btnRefreshShop.Cursor = System.Windows.Forms.Cursors.Hand; this.btnRefreshShop.DisabledBackColor = System.Drawing.Color.Empty; this.btnRefreshShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnRefreshShop.Location = new System.Drawing.Point(10, 18); + this.btnRefreshShop.Location = new System.Drawing.Point(9, 18); this.btnRefreshShop.Name = "btnRefreshShop"; - this.btnRefreshShop.Size = new System.Drawing.Size(165, 18); + this.btnRefreshShop.Size = new System.Drawing.Size(166, 18); this.btnRefreshShop.Style.Alignment = System.Drawing.StringAlignment.Center; this.btnRefreshShop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.btnRefreshShop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); diff --git a/TEMUKJD/WXForms/ProductForms/WXProdClearNoVisitForm.cs b/TEMUKJD/WXForms/ProductForms/WXProdClearNoVisitForm.cs index fce239f..1e7a076 100644 --- a/TEMUKJD/WXForms/ProductForms/WXProdClearNoVisitForm.cs +++ b/TEMUKJD/WXForms/ProductForms/WXProdClearNoVisitForm.cs @@ -121,21 +121,6 @@ namespace TemuKJD.WXForms.ProductForms if (!isInit) { - Task.Run(() => - { - foreach (var shop in GlobalConfig.ShopLoginList) - { - //if (shop.LoginStatus == "登录成功") - //{ - // var rst = WXClearNoVisit.scanProductPreview(shop); - // if (!rst.Contains("\"code\":0") && !rst.Contains("\"success\":true")) - // { - // WXShopListForm.Instance.CheckShopLogin(new string[] { shop.LoginName }, false); - // } - //} - } - - }); } isInit = true; diff --git a/TEMUKJD/WXForms/ProductForms/WXProdSyncForm.Designer.cs b/TEMUKJD/WXForms/ProductForms/WXProdSyncForm.Designer.cs index 34cefb3..f4b52d3 100644 --- a/TEMUKJD/WXForms/ProductForms/WXProdSyncForm.Designer.cs +++ b/TEMUKJD/WXForms/ProductForms/WXProdSyncForm.Designer.cs @@ -63,13 +63,15 @@ namespace TemuKJD.WXForms.ProductForms this.btnPromotion = new DevComponents.DotNetBar.PanelEx(); this.btnStopOp = new DevComponents.DotNetBar.PanelEx(); this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); + this.cmbFilterShopGroup = new TemuKJD.UserComponent.UcComboBoxMutiSelect(); + this.label24 = new System.Windows.Forms.Label(); this.btnSelectOffline = new DevComponents.DotNetBar.PanelEx(); + this.btnEmptyShop = new DevComponents.DotNetBar.PanelEx(); this.btnSelectOnline = new DevComponents.DotNetBar.PanelEx(); this.btnAddUnSelect = new DevComponents.DotNetBar.PanelEx(); this.btnReverse = new DevComponents.DotNetBar.PanelEx(); this.cmbFilterShopNotes = new TemuKJD.UserComponent.UcComboBoxMutiSelect(); this.btnAddSelect = new DevComponents.DotNetBar.PanelEx(); - this.btnEmptyShop = new DevComponents.DotNetBar.PanelEx(); this.btnFilterShop = new DevComponents.DotNetBar.PanelEx(); this.label16 = new System.Windows.Forms.Label(); this.txtFilterShopName = new System.Windows.Forms.TextBox(); @@ -86,6 +88,7 @@ namespace TemuKJD.WXForms.ProductForms this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colShopNotes = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colGroup = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colSelectProduct = new System.Windows.Forms.DataGridViewLinkColumn(); this.colLoginStatus = new System.Windows.Forms.DataGridViewLinkColumn(); this.colApi = new System.Windows.Forms.DataGridViewLinkColumn(); @@ -195,7 +198,7 @@ namespace TemuKJD.WXForms.ProductForms this.ucGroupBoxEx3.Controls.Add(this.btnClearFilter); this.ucGroupBoxEx3.Controls.Add(this.label3); this.ucGroupBoxEx3.Controls.Add(this.label2); - this.ucGroupBoxEx3.Location = new System.Drawing.Point(162, 2); + this.ucGroupBoxEx3.Location = new System.Drawing.Point(186, 2); this.ucGroupBoxEx3.Name = "ucGroupBoxEx3"; this.ucGroupBoxEx3.Size = new System.Drawing.Size(357, 165); this.ucGroupBoxEx3.TabIndex = 668; @@ -476,9 +479,9 @@ namespace TemuKJD.WXForms.ProductForms this.ucGroupBoxEx4.Controls.Add(this.chkFailDownProd); this.ucGroupBoxEx4.Controls.Add(this.btnPromotion); this.ucGroupBoxEx4.Controls.Add(this.btnStopOp); - this.ucGroupBoxEx4.Location = new System.Drawing.Point(518, 2); + this.ucGroupBoxEx4.Location = new System.Drawing.Point(542, 2); this.ucGroupBoxEx4.Name = "ucGroupBoxEx4"; - this.ucGroupBoxEx4.Size = new System.Drawing.Size(904, 165); + this.ucGroupBoxEx4.Size = new System.Drawing.Size(880, 165); this.ucGroupBoxEx4.TabIndex = 666; this.ucGroupBoxEx4.TabStop = false; this.ucGroupBoxEx4.Text = "商品同步"; @@ -548,34 +551,59 @@ namespace TemuKJD.WXForms.ProductForms | System.Windows.Forms.AnchorStyles.Left))); this.ucGroupBoxEx1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.ucGroupBoxEx1.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND; + this.ucGroupBoxEx1.Controls.Add(this.cmbFilterShopGroup); + this.ucGroupBoxEx1.Controls.Add(this.label24); this.ucGroupBoxEx1.Controls.Add(this.btnSelectOffline); + this.ucGroupBoxEx1.Controls.Add(this.btnEmptyShop); this.ucGroupBoxEx1.Controls.Add(this.btnSelectOnline); this.ucGroupBoxEx1.Controls.Add(this.btnAddUnSelect); this.ucGroupBoxEx1.Controls.Add(this.btnReverse); this.ucGroupBoxEx1.Controls.Add(this.cmbFilterShopNotes); this.ucGroupBoxEx1.Controls.Add(this.btnAddSelect); - this.ucGroupBoxEx1.Controls.Add(this.btnEmptyShop); this.ucGroupBoxEx1.Controls.Add(this.btnFilterShop); this.ucGroupBoxEx1.Controls.Add(this.label16); this.ucGroupBoxEx1.Controls.Add(this.txtFilterShopName); this.ucGroupBoxEx1.Controls.Add(this.btnRefreshShop); this.ucGroupBoxEx1.Controls.Add(this.label17); - this.ucGroupBoxEx1.Location = new System.Drawing.Point(3, 2); + this.ucGroupBoxEx1.Location = new System.Drawing.Point(2, 2); this.ucGroupBoxEx1.Name = "ucGroupBoxEx1"; - this.ucGroupBoxEx1.Size = new System.Drawing.Size(160, 165); + this.ucGroupBoxEx1.Size = new System.Drawing.Size(185, 165); this.ucGroupBoxEx1.TabIndex = 399; this.ucGroupBoxEx1.TabStop = false; this.ucGroupBoxEx1.Text = "店铺筛选"; // + // cmbFilterShopGroup + // + this.cmbFilterShopGroup.DefaultText = "全部"; + this.cmbFilterShopGroup.DropDownHeight = 1; + this.cmbFilterShopGroup.DropDownWidth = 1; + this.cmbFilterShopGroup.FormattingEnabled = true; + this.cmbFilterShopGroup.IntegralHeight = false; + this.cmbFilterShopGroup.Location = new System.Drawing.Point(38, 92); + this.cmbFilterShopGroup.Name = "cmbFilterShopGroup"; + this.cmbFilterShopGroup.Size = new System.Drawing.Size(137, 25); + this.cmbFilterShopGroup.TabIndex = 836; + this.cmbFilterShopGroup.Text = "全部"; + // + // label24 + // + this.label24.AutoSize = true; + this.label24.Location = new System.Drawing.Point(7, 96); + this.label24.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0); + this.label24.Name = "label24"; + this.label24.Size = new System.Drawing.Size(32, 17); + this.label24.TabIndex = 837; + this.label24.Text = "分组"; + // // btnSelectOffline // this.btnSelectOffline.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.btnSelectOffline.Cursor = System.Windows.Forms.Cursors.Hand; this.btnSelectOffline.DisabledBackColor = System.Drawing.Color.Empty; this.btnSelectOffline.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSelectOffline.Location = new System.Drawing.Point(61, 137); + this.btnSelectOffline.Location = new System.Drawing.Point(59, 139); this.btnSelectOffline.Name = "btnSelectOffline"; - this.btnSelectOffline.Size = new System.Drawing.Size(50, 20); + this.btnSelectOffline.Size = new System.Drawing.Size(48, 18); this.btnSelectOffline.Style.Alignment = System.Drawing.StringAlignment.Center; this.btnSelectOffline.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.btnSelectOffline.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); @@ -591,15 +619,40 @@ namespace TemuKJD.WXForms.ProductForms this.btnSelectOffline.Text = "选掉线"; this.btnSelectOffline.Click += new System.EventHandler(this.btnSelectOffline_Click); // + // btnEmptyShop + // + this.btnEmptyShop.CanvasColor = System.Drawing.SystemColors.Control; + this.btnEmptyShop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnEmptyShop.DisabledBackColor = System.Drawing.Color.Empty; + this.btnEmptyShop.Location = new System.Drawing.Point(143, 139); + this.btnEmptyShop.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2); + this.btnEmptyShop.Name = "btnEmptyShop"; + this.btnEmptyShop.Size = new System.Drawing.Size(32, 18); + this.btnEmptyShop.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnEmptyShop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnEmptyShop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.btnEmptyShop.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.btnEmptyShop.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnEmptyShop.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.btnEmptyShop.Style.GradientAngle = 90; + this.btnEmptyShop.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; + this.btnEmptyShop.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnEmptyShop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnEmptyShop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnEmptyShop.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; + this.btnEmptyShop.TabIndex = 713; + this.btnEmptyShop.Text = "清空"; + this.btnEmptyShop.Click += new System.EventHandler(this.btnEmptyShop_Click); + // // btnSelectOnline // this.btnSelectOnline.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.btnSelectOnline.Cursor = System.Windows.Forms.Cursors.Hand; this.btnSelectOnline.DisabledBackColor = System.Drawing.Color.Empty; this.btnSelectOnline.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSelectOnline.Location = new System.Drawing.Point(9, 137); + this.btnSelectOnline.Location = new System.Drawing.Point(9, 139); this.btnSelectOnline.Name = "btnSelectOnline"; - this.btnSelectOnline.Size = new System.Drawing.Size(50, 20); + this.btnSelectOnline.Size = new System.Drawing.Size(48, 18); this.btnSelectOnline.Style.Alignment = System.Drawing.StringAlignment.Center; this.btnSelectOnline.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.btnSelectOnline.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); @@ -621,9 +674,9 @@ namespace TemuKJD.WXForms.ProductForms this.btnAddUnSelect.Cursor = System.Windows.Forms.Cursors.Hand; this.btnAddUnSelect.DisabledBackColor = System.Drawing.Color.Empty; this.btnAddUnSelect.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnAddUnSelect.Location = new System.Drawing.Point(81, 115); + this.btnAddUnSelect.Location = new System.Drawing.Point(76, 119); this.btnAddUnSelect.Name = "btnAddUnSelect"; - this.btnAddUnSelect.Size = new System.Drawing.Size(70, 20); + this.btnAddUnSelect.Size = new System.Drawing.Size(65, 18); this.btnAddUnSelect.Style.Alignment = System.Drawing.StringAlignment.Center; this.btnAddUnSelect.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.btnAddUnSelect.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); @@ -645,9 +698,9 @@ namespace TemuKJD.WXForms.ProductForms this.btnReverse.Cursor = System.Windows.Forms.Cursors.Hand; this.btnReverse.DisabledBackColor = System.Drawing.Color.Empty; this.btnReverse.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnReverse.Location = new System.Drawing.Point(113, 137); + this.btnReverse.Location = new System.Drawing.Point(109, 139); this.btnReverse.Name = "btnReverse"; - this.btnReverse.Size = new System.Drawing.Size(38, 20); + this.btnReverse.Size = new System.Drawing.Size(32, 18); this.btnReverse.Style.Alignment = System.Drawing.StringAlignment.Center; this.btnReverse.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.btnReverse.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); @@ -670,9 +723,9 @@ namespace TemuKJD.WXForms.ProductForms this.cmbFilterShopNotes.DropDownWidth = 1; this.cmbFilterShopNotes.FormattingEnabled = true; this.cmbFilterShopNotes.IntegralHeight = false; - this.cmbFilterShopNotes.Location = new System.Drawing.Point(38, 66); + this.cmbFilterShopNotes.Location = new System.Drawing.Point(38, 65); this.cmbFilterShopNotes.Name = "cmbFilterShopNotes"; - this.cmbFilterShopNotes.Size = new System.Drawing.Size(113, 25); + this.cmbFilterShopNotes.Size = new System.Drawing.Size(137, 25); this.cmbFilterShopNotes.TabIndex = 442; this.cmbFilterShopNotes.Text = "全部"; // @@ -682,9 +735,9 @@ namespace TemuKJD.WXForms.ProductForms this.btnAddSelect.Cursor = System.Windows.Forms.Cursors.Hand; this.btnAddSelect.DisabledBackColor = System.Drawing.Color.Empty; this.btnAddSelect.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnAddSelect.Location = new System.Drawing.Point(9, 115); + this.btnAddSelect.Location = new System.Drawing.Point(9, 119); this.btnAddSelect.Name = "btnAddSelect"; - this.btnAddSelect.Size = new System.Drawing.Size(70, 20); + this.btnAddSelect.Size = new System.Drawing.Size(65, 18); this.btnAddSelect.Style.Alignment = System.Drawing.StringAlignment.Center; this.btnAddSelect.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.btnAddSelect.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); @@ -697,43 +750,18 @@ namespace TemuKJD.WXForms.ProductForms this.btnAddSelect.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); this.btnAddSelect.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); this.btnAddSelect.TabIndex = 742; - this.btnAddSelect.Text = "选中条件"; + this.btnAddSelect.Text = "加选条件"; this.btnAddSelect.Click += new System.EventHandler(this.btnAddSelect_Click); // - // btnEmptyShop - // - this.btnEmptyShop.CanvasColor = System.Drawing.SystemColors.Control; - this.btnEmptyShop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnEmptyShop.DisabledBackColor = System.Drawing.Color.Empty; - this.btnEmptyShop.Location = new System.Drawing.Point(113, 93); - this.btnEmptyShop.Margin = new System.Windows.Forms.Padding(4, 2, 2, 2); - this.btnEmptyShop.Name = "btnEmptyShop"; - this.btnEmptyShop.Size = new System.Drawing.Size(38, 20); - this.btnEmptyShop.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnEmptyShop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnEmptyShop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnEmptyShop.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnEmptyShop.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnEmptyShop.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnEmptyShop.Style.GradientAngle = 90; - this.btnEmptyShop.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnEmptyShop.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnEmptyShop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnEmptyShop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnEmptyShop.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnEmptyShop.TabIndex = 713; - this.btnEmptyShop.Text = "清空"; - this.btnEmptyShop.Click += new System.EventHandler(this.btnEmptyShop_Click); - // // btnFilterShop // this.btnFilterShop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.btnFilterShop.Cursor = System.Windows.Forms.Cursors.Hand; this.btnFilterShop.DisabledBackColor = System.Drawing.Color.Empty; this.btnFilterShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnFilterShop.Location = new System.Drawing.Point(9, 93); + this.btnFilterShop.Location = new System.Drawing.Point(143, 119); this.btnFilterShop.Name = "btnFilterShop"; - this.btnFilterShop.Size = new System.Drawing.Size(102, 20); + this.btnFilterShop.Size = new System.Drawing.Size(32, 18); this.btnFilterShop.Style.Alignment = System.Drawing.StringAlignment.Center; this.btnFilterShop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.btnFilterShop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); @@ -746,13 +774,13 @@ namespace TemuKJD.WXForms.ProductForms this.btnFilterShop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); this.btnFilterShop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); this.btnFilterShop.TabIndex = 703; - this.btnFilterShop.Text = "过滤店铺"; + this.btnFilterShop.Text = "过滤"; this.btnFilterShop.Click += new System.EventHandler(this.btnFilterShop_Click); // // label16 // this.label16.AutoSize = true; - this.label16.Location = new System.Drawing.Point(7, 70); + this.label16.Location = new System.Drawing.Point(7, 69); this.label16.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0); this.label16.Name = "label16"; this.label16.Size = new System.Drawing.Size(32, 17); @@ -762,10 +790,10 @@ namespace TemuKJD.WXForms.ProductForms // txtFilterShopName // this.txtFilterShopName.Font = new System.Drawing.Font("微软雅黑", 10F); - this.txtFilterShopName.Location = new System.Drawing.Point(38, 39); + this.txtFilterShopName.Location = new System.Drawing.Point(38, 38); this.txtFilterShopName.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2); this.txtFilterShopName.Name = "txtFilterShopName"; - this.txtFilterShopName.Size = new System.Drawing.Size(113, 25); + this.txtFilterShopName.Size = new System.Drawing.Size(137, 25); this.txtFilterShopName.TabIndex = 653; // // btnRefreshShop @@ -774,9 +802,9 @@ namespace TemuKJD.WXForms.ProductForms this.btnRefreshShop.Cursor = System.Windows.Forms.Cursors.Hand; this.btnRefreshShop.DisabledBackColor = System.Drawing.Color.Empty; this.btnRefreshShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnRefreshShop.Location = new System.Drawing.Point(9, 17); + this.btnRefreshShop.Location = new System.Drawing.Point(9, 18); this.btnRefreshShop.Name = "btnRefreshShop"; - this.btnRefreshShop.Size = new System.Drawing.Size(142, 20); + this.btnRefreshShop.Size = new System.Drawing.Size(166, 18); this.btnRefreshShop.Style.Alignment = System.Drawing.StringAlignment.Center; this.btnRefreshShop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.btnRefreshShop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); @@ -795,7 +823,7 @@ namespace TemuKJD.WXForms.ProductForms // label17 // this.label17.AutoSize = true; - this.label17.Location = new System.Drawing.Point(7, 43); + this.label17.Location = new System.Drawing.Point(7, 42); this.label17.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0); this.label17.Name = "label17"; this.label17.Size = new System.Drawing.Size(32, 17); @@ -906,6 +934,7 @@ namespace TemuKJD.WXForms.ProductForms this.colShopId, this.colShopName, this.colShopNotes, + this.colGroup, this.colSelectProduct, this.colLoginStatus, this.colApi, @@ -963,7 +992,14 @@ namespace TemuKJD.WXForms.ProductForms this.colShopNotes.HeaderText = "备注"; this.colShopNotes.Name = "colShopNotes"; this.colShopNotes.ReadOnly = true; - this.colShopNotes.Width = 75; + this.colShopNotes.Width = 66; + // + // colGroup + // + this.colGroup.HeaderText = "分组"; + this.colGroup.Name = "colGroup"; + this.colGroup.ReadOnly = true; + this.colGroup.Width = 66; // // colSelectProduct // @@ -1469,19 +1505,6 @@ namespace TemuKJD.WXForms.ProductForms private DevComponents.DotNetBar.PanelEx btnAddSelect; private DevComponents.DotNetBar.PanelEx btnSelectOffline; private DevComponents.DotNetBar.PanelEx btnSelectOnline; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopLoginName; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopId; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopName; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopNotes; - private System.Windows.Forms.DataGridViewLinkColumn colSelectProduct; - private System.Windows.Forms.DataGridViewLinkColumn colLoginStatus; - private System.Windows.Forms.DataGridViewLinkColumn colApi; - private System.Windows.Forms.DataGridViewCheckBoxColumn colCanUse; - private System.Windows.Forms.DataGridViewTextBoxColumn colUploadCount; - private System.Windows.Forms.DataGridViewTextBoxColumn colOnSaleNum; - private System.Windows.Forms.DataGridViewTextBoxColumn colRemaining; - private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; private System.Windows.Forms.TextBox txtPageBegin; private System.Windows.Forms.TextBox txtPageEnd; private System.Windows.Forms.Label label1; @@ -1527,5 +1550,21 @@ namespace TemuKJD.WXForms.ProductForms private DevComponents.DotNetBar.PanelEx btnPromotion; private DevComponents.DotNetBar.PanelEx btnStopOp; private UserComponent.UcCheckBox chkFailDownProd; + private UserComponent.UcComboBoxMutiSelect cmbFilterShopGroup; + private System.Windows.Forms.Label label24; + private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; + private System.Windows.Forms.DataGridViewTextBoxColumn colShopLoginName; + private System.Windows.Forms.DataGridViewTextBoxColumn colShopId; + private System.Windows.Forms.DataGridViewTextBoxColumn colShopName; + private System.Windows.Forms.DataGridViewTextBoxColumn colShopNotes; + private System.Windows.Forms.DataGridViewTextBoxColumn colGroup; + private System.Windows.Forms.DataGridViewLinkColumn colSelectProduct; + private System.Windows.Forms.DataGridViewLinkColumn colLoginStatus; + private System.Windows.Forms.DataGridViewLinkColumn colApi; + private System.Windows.Forms.DataGridViewCheckBoxColumn colCanUse; + private System.Windows.Forms.DataGridViewTextBoxColumn colUploadCount; + private System.Windows.Forms.DataGridViewTextBoxColumn colOnSaleNum; + private System.Windows.Forms.DataGridViewTextBoxColumn colRemaining; + private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; } } \ No newline at end of file diff --git a/TEMUKJD/WXForms/ProductForms/WXProdSyncForm.cs b/TEMUKJD/WXForms/ProductForms/WXProdSyncForm.cs index 254f3ad..0123b17 100644 --- a/TEMUKJD/WXForms/ProductForms/WXProdSyncForm.cs +++ b/TEMUKJD/WXForms/ProductForms/WXProdSyncForm.cs @@ -42,12 +42,7 @@ namespace TemuKJD.WXForms.ProductForms bool isInit = false; CheckBox chkSelectAll = null; - ConcurrentList lstWXShopTokenInfo = new ConcurrentList(); - public NaiBa.Util.ConcurrentList lstTemuDBProductSelect = new NaiBa.Util.ConcurrentList(); - NaiBa.Util.ConcurrentList lstAddPriceRule = new NaiBa.Util.ConcurrentList(); - //public Dictionary> dicCheckedShopIdList = new Dictionary>(); public Dictionary dicCheckedShopId = new Dictionary(); - public Dictionary dicShopUpload = new Dictionary(); public string pdd_product_cates = ""; public WXProdSyncForm() { @@ -58,23 +53,6 @@ namespace TemuKJD.WXForms.ProductForms { this.splitContainer1.Dock = DockStyle.Fill; - lstWXShopTokenInfo = NaiBa.Util.Helper.ConfigHelper.LoadConfig>("wx_shop_token_list"); - if (lstWXShopTokenInfo == null) - lstWXShopTokenInfo = new ConcurrentList(); - - lstTemuDBProductSelect = NaiBa.Util.Helper.ConfigHelper.LoadConfig>("wx_db_prod_upload_list"); - if (lstTemuDBProductSelect == null) - lstTemuDBProductSelect = new NaiBa.Util.ConcurrentList(); - - lstAddPriceRule = NaiBa.Util.Helper.ConfigHelper.LoadConfig>("wx_add_price_rules"); - if (lstAddPriceRule == null) - { - lstAddPriceRule = new NaiBa.Util.ConcurrentList(); - lstAddPriceRule.Add(new AddPriceRule() { MoreThanPrice = 0, LessThanPrice = 10, AddPriceTimes = 2, AddMorePrice = 10, SinglePriceAdd = 1 }); - lstAddPriceRule.Add(new AddPriceRule() { MoreThanPrice = 10, LessThanPrice = 20, AddPriceTimes = 2, AddMorePrice = 10, SinglePriceAdd = 1 }); - lstAddPriceRule.Add(new AddPriceRule() { MoreThanPrice = 20, LessThanPrice = 999, AddPriceTimes = 2, AddMorePrice = 10, SinglePriceAdd = 1 }); - } - dicCheckedShopId = NaiBa.Util.Helper.ConfigHelper.LoadConfig>("wx_checked_shop_dic"); if (dicCheckedShopId == null) dicCheckedShopId = new Dictionary(); @@ -187,11 +165,15 @@ namespace TemuKJD.WXForms.ProductForms BindShop(shopEntity, selectIds); } cmbFilterShopNotes.Items.Clear(); - //cmbFilterShopNotes.Items.Add(""); foreach (var note in GlobalConfig.ShopLoginList.Select(s => s.Notes).Where(s => !s.IsNullOrEmpty()).Distinct()) { cmbFilterShopNotes.Items.Add(note); } + cmbFilterShopGroup.Items.Clear(); + foreach (var group in GlobalConfig.ShopLoginList.Select(s => s.GroupName).Where(s => !s.IsNullOrEmpty()).Distinct()) + { + cmbFilterShopGroup.Items.Add(group); + } } private void BindShop(ShopLoginInfo shopEntity, List selectShopId = null, string msg = "") @@ -216,14 +198,13 @@ namespace TemuKJD.WXForms.ProductForms shopEntity.ShopId, shopEntity.ShopAccount, shopEntity.Notes, + shopEntity.GroupName, "选择商品", canUse ? "在线" : "掉线", GlobalConfig.lstWxShopAuthInfo.FirstOrDefault(sa => sa.ShopId == shopEntity.ShopId)?.ExpiresTime > DateTime.Now.AddMinutes(5) ? "可用" : "过期", canUse, - dicShopUpload.ContainsKey(shopEntity.ShopId) && dicShopUpload[shopEntity.ShopId].DicDayUploadCount.ContainsKey(day) ? - dicShopUpload[shopEntity.ShopId].DicDayUploadCount[day] : 0, - dicShopUpload.ContainsKey(shopEntity.ShopId) && dicShopUpload[shopEntity.ShopId].OnSaleRefreshDay == DateTime.Now.ToString("yyyyMMdd").ParseToInt() ? - dicShopUpload[shopEntity.ShopId].OnSaleCount : 0, + GlobalConfig.dicWxShopUploadInfo.ContainsKey(shopEntity.ShopId) ? GlobalConfig.dicWxShopUploadInfo[shopEntity.ShopId].DicDayUploadCount[day] : 0, + GlobalConfig.dicWxShopUploadInfo.ContainsKey(shopEntity.ShopId) ? GlobalConfig.dicWxShopUploadInfo[shopEntity.ShopId].OnSaleCount : 0, shopEntity.AddProductRemaining, "", msg @@ -235,15 +216,14 @@ namespace TemuKJD.WXForms.ProductForms row.Cells["colShopLoginName"].Value = shopEntity.LoginName; row.Cells["colShopName"].Value = shopEntity.ShopAccount; row.Cells["colShopNotes"].Value = shopEntity.Notes; + row.Cells["colGroup"].Value = shopEntity.GroupName; row.Cells["colLoginStatus"].Value = canUse ? "在线" : "掉线"; row.Cells["colLoginStatus"].Style.ForeColor = canUse ? Color.Green : Color.Red; row.Cells["colCanUse"].Value = canUse; row.Cells["colApi"].Value = GlobalConfig.lstWxShopAuthInfo.FirstOrDefault(sa => sa.ShopId == shopEntity.ShopId)?.ExpiresTime > DateTime.Now.AddMinutes(5) ? "可用" : "过期"; row.Cells["colRemaining"].Value = shopEntity.AddProductRemaining; - row.Cells["colUploadCount"].Value = dicShopUpload.ContainsKey(shopEntity.ShopId) && dicShopUpload[shopEntity.ShopId].DicDayUploadCount.ContainsKey(day) ? - dicShopUpload[shopEntity.ShopId].DicDayUploadCount[day] : 0; - row.Cells["colOnSaleNum"].Value = dicShopUpload.ContainsKey(shopEntity.ShopId) && dicShopUpload[shopEntity.ShopId].OnSaleRefreshDay == DateTime.Now.ToString("yyyyMMdd").ParseToInt() ? - dicShopUpload[shopEntity.ShopId].OnSaleCount : 0; + row.Cells["colUploadCount"].Value = GlobalConfig.dicWxShopUploadInfo.ContainsKey(shopEntity.ShopId) ? GlobalConfig.dicWxShopUploadInfo[shopEntity.ShopId].DicDayUploadCount[day] : 0; + row.Cells["colOnSaleNum"].Value = GlobalConfig.dicWxShopUploadInfo.ContainsKey(shopEntity.ShopId) ? GlobalConfig.dicWxShopUploadInfo[shopEntity.ShopId].OnSaleCount : 0; row.Cells["colMessage"].Value = msg; } @@ -350,7 +330,6 @@ namespace TemuKJD.WXForms.ProductForms return; string headerText = dgvSelectProduct.Columns[e.ColumnIndex].HeaderText; var dbId = dgvSelectProduct.Rows[e.RowIndex].Cells["colSelectId"].Value.ParseToString(); - var dbProduct = lstTemuDBProductSelect.FirstOrDefault(p => p.id.ToString() == dbId); var shopId = dgvSelectProduct.Rows[e.RowIndex].Cells["colSupplierId"].Value.ParseToString(); var draftId = dgvSelectProduct.Rows[e.RowIndex].Cells["colDraftId"].Value.ParseToString(); var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId); @@ -598,13 +577,18 @@ namespace TemuKJD.WXForms.ProductForms private void btnFilterShop_Click(object sender, EventArgs e) { - foreach(DataGridViewRow row in dgvShop.Rows) - { - string notes = cmbFilterShopNotes.Text.Trim().Trim(';'); - if (notes == "全部") - notes = ""; - List notesLst = notes.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); + string notes = cmbFilterShopNotes.Text.Trim().Trim(';'); + if (notes == "全部") + notes = ""; + List notesLst = notes.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); + string group = cmbFilterShopGroup.Text.Trim().Trim(';'); + if (group == "全部") + group = ""; + List groupLst = group.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); + + foreach (DataGridViewRow row in dgvShop.Rows) + { if (!row.Cells["colShopName"].Value.ParseToString().Contains(txtFilterShopName.Text.Trim())) { row.Visible = false; @@ -617,6 +601,12 @@ namespace TemuKJD.WXForms.ProductForms row.Cells["colSelect"].Value = false; continue; } + if (!string.IsNullOrWhiteSpace(group) && !groupLst.Contains(row.Cells["colGroup"].Value.ParseToString())) + { + row.Visible = false; + row.Cells["colSelect"].Value = false; + continue; + } row.Visible = true; } } @@ -625,6 +615,7 @@ namespace TemuKJD.WXForms.ProductForms { txtFilterShopName.Text = ""; cmbFilterShopNotes.Text = "全部"; + cmbFilterShopGroup.Text = "全部"; btnFilterShop_Click(null, null); } @@ -644,16 +635,24 @@ namespace TemuKJD.WXForms.ProductForms notes = ""; List notesLst = notes.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); + string group = cmbFilterShopGroup.Text.Trim().Trim(';'); + if (group == "全部") + group = ""; + List groupLst = group.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); + foreach (DataGridViewRow row in dgvShop.Rows) { - if (row.Visible == true) - { - if (row.Cells["colShopName"].Value.ParseToString().Contains(txtFilterShopName.Text.Trim()) && - (string.IsNullOrWhiteSpace(notes) || notesLst.Contains(row.Cells["colShopNotes"].Value.ParseToString()))) - { - row.Cells["colSelect"].Value = true; - } - } + if (row.Visible == false) + continue; + + if (!row.Cells["colShopName"].Value.ParseToString().Contains(txtFilterShopName.Text.Trim())) + continue; + if (!string.IsNullOrWhiteSpace(notes) && !notesLst.Contains(row.Cells["colShopNotes"].Value.ParseToString())) + continue; + if (!string.IsNullOrWhiteSpace(group) && !groupLst.Contains(row.Cells["colGroup"].Value.ParseToString())) + continue; + + row.Cells["colSelect"].Value = true; } } @@ -664,16 +663,24 @@ namespace TemuKJD.WXForms.ProductForms notes = ""; List notesLst = notes.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); + string group = cmbFilterShopGroup.Text.Trim().Trim(';'); + if (group == "全部") + group = ""; + List groupLst = group.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); + foreach (DataGridViewRow row in dgvShop.Rows) { - if (row.Visible == true) - { - if (row.Cells["colShopName"].Value.ParseToString().Contains(txtFilterShopName.Text.Trim()) && - (string.IsNullOrWhiteSpace(notes) || notesLst.Contains(row.Cells["colShopNotes"].Value.ParseToString()))) - { - row.Cells["colSelect"].Value = false; - } - } + if (row.Visible == false) + continue; + + if (!row.Cells["colShopName"].Value.ParseToString().Contains(txtFilterShopName.Text.Trim())) + continue; + if (!string.IsNullOrWhiteSpace(notes) && !notesLst.Contains(row.Cells["colShopNotes"].Value.ParseToString())) + continue; + if (!string.IsNullOrWhiteSpace(group) && !groupLst.Contains(row.Cells["colGroup"].Value.ParseToString())) + continue; + + row.Cells["colSelect"].Value = false; } } diff --git a/TEMUKJD/WXForms/ProductForms/WXProdSyncForm.resx b/TEMUKJD/WXForms/ProductForms/WXProdSyncForm.resx index df46883..45a8da3 100644 --- a/TEMUKJD/WXForms/ProductForms/WXProdSyncForm.resx +++ b/TEMUKJD/WXForms/ProductForms/WXProdSyncForm.resx @@ -129,6 +129,9 @@ True + + True + True diff --git a/TEMUKJD/WXForms/ProductForms/WXProductForm.Designer.cs b/TEMUKJD/WXForms/ProductForms/WXProductForm.Designer.cs index 7c05267..7b7ee6a 100644 --- a/TEMUKJD/WXForms/ProductForms/WXProductForm.Designer.cs +++ b/TEMUKJD/WXForms/ProductForms/WXProductForm.Designer.cs @@ -32,17 +32,21 @@ System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("商品预售/下架"); System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("清理无流量"); System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("爆单神器"); - System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("达人广场"); - System.Windows.Forms.TreeNode treeNode6 = new System.Windows.Forms.TreeNode("商品同步"); - System.Windows.Forms.TreeNode treeNode7 = new System.Windows.Forms.TreeNode("机会商品采集"); - System.Windows.Forms.TreeNode treeNode8 = new System.Windows.Forms.TreeNode("商品管理", new System.Windows.Forms.TreeNode[] { + System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("活动报名"); + System.Windows.Forms.TreeNode treeNode6 = new System.Windows.Forms.TreeNode("达人广场"); + System.Windows.Forms.TreeNode treeNode7 = new System.Windows.Forms.TreeNode("商品同步"); + System.Windows.Forms.TreeNode treeNode8 = new System.Windows.Forms.TreeNode("订单代发管理"); + System.Windows.Forms.TreeNode treeNode9 = new System.Windows.Forms.TreeNode("机会商品采集"); + System.Windows.Forms.TreeNode treeNode10 = new System.Windows.Forms.TreeNode("商品管理", new System.Windows.Forms.TreeNode[] { treeNode1, treeNode2, treeNode3, treeNode4, treeNode5, treeNode6, - treeNode7}); + treeNode7, + treeNode8, + treeNode9}); this.panel1 = new System.Windows.Forms.Panel(); this.panel3 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel(); @@ -141,16 +145,20 @@ treeNode3.Text = "清理无流量"; treeNode4.Name = "爆单神器"; treeNode4.Text = "爆单神器"; - treeNode5.Name = "达人广场"; - treeNode5.Text = "达人广场"; - treeNode6.Name = "商品同步"; - treeNode6.Text = "商品同步"; - treeNode7.Name = "机会商品采集"; - treeNode7.Text = "机会商品采集"; - treeNode8.Name = "商品管理"; - treeNode8.Text = "商品管理"; + treeNode5.Name = "活动报名"; + treeNode5.Text = "活动报名"; + treeNode6.Name = "达人广场"; + treeNode6.Text = "达人广场"; + treeNode7.Name = "商品同步"; + treeNode7.Text = "商品同步"; + treeNode8.Name = "订单代发管理"; + treeNode8.Text = "订单代发管理"; + treeNode9.Name = "机会商品采集"; + treeNode9.Text = "机会商品采集"; + treeNode10.Name = "商品管理"; + treeNode10.Text = "商品管理"; this.tv.Nodes.AddRange(new System.Windows.Forms.TreeNode[] { - treeNode8}); + treeNode10}); this.tv.OverForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); this.tv.Size = new System.Drawing.Size(140, 521); this.tv.TabIndex = 1; diff --git a/TEMUKJD/WXForms/ProductForms/WXProductForm.cs b/TEMUKJD/WXForms/ProductForms/WXProductForm.cs index e876241..f068e49 100644 --- a/TEMUKJD/WXForms/ProductForms/WXProductForm.cs +++ b/TEMUKJD/WXForms/ProductForms/WXProductForm.cs @@ -23,7 +23,9 @@ namespace TemuKJD.WXForms.ProductForms public Lazy wxProdCouponForm = new Lazy(); public Lazy wxProdSyncForm = new Lazy(); public Lazy wxFinderSquareForm = new Lazy(); + public Lazy wxActivityForm = new Lazy(); public Lazy getChanceProdForm = new Lazy(); + public Lazy orderConsignmentForm = new Lazy(); public WXProductForm() { @@ -89,9 +91,15 @@ namespace TemuKJD.WXForms.ProductForms case "达人广场": SetForm(wxFinderSquareForm.Value); break; + case "活动报名": + SetForm(wxActivityForm.Value); + break; case "商品同步": SetForm(wxProdSyncForm.Value); break; + case "订单代发管理": + SetForm(orderConsignmentForm.Value); + break; case "机会商品采集": getChanceProdForm.Value.IsAuthorityUser = true; SetForm(getChanceProdForm.Value); diff --git a/TEMUKJD/WXForms/ProductForms/WXUserProdListForm.Designer.cs b/TEMUKJD/WXForms/ProductForms/WXUserProdListForm.Designer.cs index 4681899..329ba2a 100644 --- a/TEMUKJD/WXForms/ProductForms/WXUserProdListForm.Designer.cs +++ b/TEMUKJD/WXForms/ProductForms/WXUserProdListForm.Designer.cs @@ -56,6 +56,8 @@ namespace TemuKJD.WXForms.ProductForms this.btnSetShop = new DevComponents.DotNetBar.PanelEx(); this.btnSelect = new DevComponents.DotNetBar.PanelEx(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); + this.txtViewUvMin = new System.Windows.Forms.TextBox(); + this.chkViewUvMin = new TemuKJD.UserComponent.UcCheckBox(this.components); this.cmbHot = new System.Windows.Forms.ComboBox(); this.lblHot = new System.Windows.Forms.Label(); this.btnSearch = new DevComponents.DotNetBar.PanelEx(); @@ -150,6 +152,7 @@ namespace TemuKJD.WXForms.ProductForms this.colGetType = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colSpProdType = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colWxSafe = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colViewUv = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colAddTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colMdyTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.col_edit = new System.Windows.Forms.DataGridViewLinkColumn(); @@ -291,6 +294,8 @@ namespace TemuKJD.WXForms.ProductForms this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + this.tableLayoutPanel1.Controls.Add(this.txtViewUvMin, 11, 1); + this.tableLayoutPanel1.Controls.Add(this.chkViewUvMin, 10, 1); this.tableLayoutPanel1.Controls.Add(this.cmbHot, 9, 0); this.tableLayoutPanel1.Controls.Add(this.lblHot, 8, 0); this.tableLayoutPanel1.Controls.Add(this.btnSearch, 10, 0); @@ -322,6 +327,27 @@ namespace TemuKJD.WXForms.ProductForms this.tableLayoutPanel1.Size = new System.Drawing.Size(1193, 105); this.tableLayoutPanel1.TabIndex = 679; // + // txtViewUvMin + // + this.txtViewUvMin.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); + this.txtViewUvMin.Location = new System.Drawing.Point(1127, 41); + this.txtViewUvMin.Name = "txtViewUvMin"; + this.txtViewUvMin.Size = new System.Drawing.Size(63, 23); + this.txtViewUvMin.TabIndex = 882; + this.txtViewUvMin.Visible = false; + // + // chkViewUvMin + // + this.chkViewUvMin.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.chkViewUvMin.Location = new System.Drawing.Point(1073, 42); + this.chkViewUvMin.Margin = new System.Windows.Forms.Padding(6, 3, 3, 3); + this.chkViewUvMin.Name = "chkViewUvMin"; + this.chkViewUvMin.Size = new System.Drawing.Size(48, 21); + this.chkViewUvMin.TabIndex = 883; + this.chkViewUvMin.Text = "曝光≥"; + this.chkViewUvMin.UseVisualStyleBackColor = true; + this.chkViewUvMin.Visible = false; + // // cmbHot // this.cmbHot.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); @@ -330,10 +356,10 @@ namespace TemuKJD.WXForms.ProductForms "", "爆款数据", "普通商品"}); - this.cmbHot.Location = new System.Drawing.Point(934, 5); + this.cmbHot.Location = new System.Drawing.Point(917, 7); this.cmbHot.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbHot.Name = "cmbHot"; - this.cmbHot.Size = new System.Drawing.Size(151, 25); + this.cmbHot.Size = new System.Drawing.Size(147, 25); this.cmbHot.TabIndex = 882; this.cmbHot.Text = "普通商品"; this.cmbHot.Visible = false; @@ -343,7 +369,7 @@ namespace TemuKJD.WXForms.ProductForms // this.lblHot.Anchor = System.Windows.Forms.AnchorStyles.Right; this.lblHot.AutoSize = true; - this.lblHot.Location = new System.Drawing.Point(890, 9); + this.lblHot.Location = new System.Drawing.Point(873, 9); this.lblHot.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.lblHot.Name = "lblHot"; this.lblHot.Size = new System.Drawing.Size(44, 17); @@ -353,14 +379,14 @@ namespace TemuKJD.WXForms.ProductForms // // btnSearch // - this.btnSearch.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.btnSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.btnSearch.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.btnSearch.Cursor = System.Windows.Forms.Cursors.Hand; this.btnSearch.DisabledBackColor = System.Drawing.Color.Empty; this.btnSearch.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSearch.Location = new System.Drawing.Point(1091, 5); + this.btnSearch.Location = new System.Drawing.Point(1070, 5); this.btnSearch.Name = "btnSearch"; - this.btnSearch.Size = new System.Drawing.Size(46, 25); + this.btnSearch.Size = new System.Drawing.Size(51, 25); this.btnSearch.Style.Alignment = System.Drawing.StringAlignment.Center; this.btnSearch.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.btnSearch.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); @@ -378,13 +404,13 @@ namespace TemuKJD.WXForms.ProductForms // // btnEmpty // - this.btnEmpty.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.btnEmpty.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.btnEmpty.CanvasColor = System.Drawing.SystemColors.Control; this.btnEmpty.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.btnEmpty.DisabledBackColor = System.Drawing.Color.Empty; - this.btnEmpty.Location = new System.Drawing.Point(1143, 5); + this.btnEmpty.Location = new System.Drawing.Point(1127, 5); this.btnEmpty.Name = "btnEmpty"; - this.btnEmpty.Size = new System.Drawing.Size(46, 25); + this.btnEmpty.Size = new System.Drawing.Size(63, 25); this.btnEmpty.Style.Alignment = System.Drawing.StringAlignment.Center; this.btnEmpty.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); this.btnEmpty.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); @@ -409,10 +435,10 @@ namespace TemuKJD.WXForms.ProductForms this.cmbCat3.DropDownWidth = 1; this.cmbCat3.FormattingEnabled = true; this.cmbCat3.IntegralHeight = false; - this.cmbCat3.Location = new System.Drawing.Point(733, 7); + this.cmbCat3.Location = new System.Drawing.Point(720, 7); this.cmbCat3.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbCat3.Name = "cmbCat3"; - this.cmbCat3.Size = new System.Drawing.Size(151, 25); + this.cmbCat3.Size = new System.Drawing.Size(147, 25); this.cmbCat3.TabIndex = 811; this.cmbCat3.Text = "全部"; this.cmbCat3.SelectedIndexChanged += new System.EventHandler(this.cmbCat3_SelectedIndexChanged); @@ -422,7 +448,7 @@ namespace TemuKJD.WXForms.ProductForms // this.label17.Anchor = System.Windows.Forms.AnchorStyles.Right; this.label17.AutoSize = true; - this.label17.Location = new System.Drawing.Point(682, 9); + this.label17.Location = new System.Drawing.Point(669, 9); this.label17.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.label17.Name = "label17"; this.label17.Size = new System.Drawing.Size(51, 17); @@ -437,10 +463,10 @@ namespace TemuKJD.WXForms.ProductForms this.cmbCat2.DropDownWidth = 1; this.cmbCat2.FormattingEnabled = true; this.cmbCat2.IntegralHeight = false; - this.cmbCat2.Location = new System.Drawing.Point(525, 7); + this.cmbCat2.Location = new System.Drawing.Point(517, 7); this.cmbCat2.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbCat2.Name = "cmbCat2"; - this.cmbCat2.Size = new System.Drawing.Size(151, 25); + this.cmbCat2.Size = new System.Drawing.Size(146, 25); this.cmbCat2.TabIndex = 804; this.cmbCat2.Text = "全部"; this.cmbCat2.SelectedIndexChanged += new System.EventHandler(this.cmbCat2_SelectedIndexChanged); @@ -450,7 +476,7 @@ namespace TemuKJD.WXForms.ProductForms // this.label14.Anchor = System.Windows.Forms.AnchorStyles.Right; this.label14.AutoSize = true; - this.label14.Location = new System.Drawing.Point(474, 9); + this.label14.Location = new System.Drawing.Point(466, 9); this.label14.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.label14.Name = "label14"; this.label14.Size = new System.Drawing.Size(51, 17); @@ -465,10 +491,10 @@ namespace TemuKJD.WXForms.ProductForms this.cmbCat1.DropDownWidth = 1; this.cmbCat1.FormattingEnabled = true; this.cmbCat1.IntegralHeight = false; - this.cmbCat1.Location = new System.Drawing.Point(298, 5); + this.cmbCat1.Location = new System.Drawing.Point(294, 5); this.cmbCat1.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbCat1.Name = "cmbCat1"; - this.cmbCat1.Size = new System.Drawing.Size(151, 25); + this.cmbCat1.Size = new System.Drawing.Size(147, 25); this.cmbCat1.TabIndex = 805; this.cmbCat1.Text = "全部"; this.cmbCat1.SelectedIndexChanged += new System.EventHandler(this.cmbCat1_SelectedIndexChanged); @@ -478,7 +504,7 @@ namespace TemuKJD.WXForms.ProductForms // this.label2.Anchor = System.Windows.Forms.AnchorStyles.Right; this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(247, 9); + this.label2.Location = new System.Drawing.Point(243, 9); this.label2.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(51, 17); @@ -491,7 +517,7 @@ namespace TemuKJD.WXForms.ProductForms this.txtProdName.Location = new System.Drawing.Point(71, 6); this.txtProdName.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.txtProdName.Name = "txtProdName"; - this.txtProdName.Size = new System.Drawing.Size(151, 23); + this.txtProdName.Size = new System.Drawing.Size(147, 23); this.txtProdName.TabIndex = 427; // // label3 @@ -528,14 +554,14 @@ namespace TemuKJD.WXForms.ProductForms this.cmbWxSafe.Location = new System.Drawing.Point(71, 40); this.cmbWxSafe.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbWxSafe.Name = "cmbWxSafe"; - this.cmbWxSafe.Size = new System.Drawing.Size(151, 25); + this.cmbWxSafe.Size = new System.Drawing.Size(147, 25); this.cmbWxSafe.TabIndex = 676; this.cmbWxSafe.Text = "安全+未校验"; // // chkCatBoundMoreThan // this.chkCatBoundMoreThan.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.chkCatBoundMoreThan.Location = new System.Drawing.Point(231, 42); + this.chkCatBoundMoreThan.Location = new System.Drawing.Point(227, 42); this.chkCatBoundMoreThan.Margin = new System.Windows.Forms.Padding(6, 3, 3, 3); this.chkCatBoundMoreThan.Name = "chkCatBoundMoreThan"; this.chkCatBoundMoreThan.Size = new System.Drawing.Size(64, 21); @@ -547,10 +573,10 @@ namespace TemuKJD.WXForms.ProductForms // txtCatBoundMoreThan // this.txtCatBoundMoreThan.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); - this.txtCatBoundMoreThan.Location = new System.Drawing.Point(298, 41); + this.txtCatBoundMoreThan.Location = new System.Drawing.Point(294, 41); this.txtCatBoundMoreThan.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.txtCatBoundMoreThan.Name = "txtCatBoundMoreThan"; - this.txtCatBoundMoreThan.Size = new System.Drawing.Size(151, 23); + this.txtCatBoundMoreThan.Size = new System.Drawing.Size(147, 23); this.txtCatBoundMoreThan.TabIndex = 882; this.txtCatBoundMoreThan.Text = "1000"; this.txtCatBoundMoreThan.Visible = false; @@ -558,7 +584,7 @@ namespace TemuKJD.WXForms.ProductForms // chkCatBoundLessThan // this.chkCatBoundLessThan.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.chkCatBoundLessThan.Location = new System.Drawing.Point(458, 42); + this.chkCatBoundLessThan.Location = new System.Drawing.Point(450, 42); this.chkCatBoundLessThan.Margin = new System.Windows.Forms.Padding(6, 3, 3, 3); this.chkCatBoundLessThan.Name = "chkCatBoundLessThan"; this.chkCatBoundLessThan.Size = new System.Drawing.Size(64, 21); @@ -570,10 +596,10 @@ namespace TemuKJD.WXForms.ProductForms // txtCatBoundLessThan // this.txtCatBoundLessThan.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); - this.txtCatBoundLessThan.Location = new System.Drawing.Point(525, 41); + this.txtCatBoundLessThan.Location = new System.Drawing.Point(517, 41); this.txtCatBoundLessThan.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.txtCatBoundLessThan.Name = "txtCatBoundLessThan"; - this.txtCatBoundLessThan.Size = new System.Drawing.Size(151, 23); + this.txtCatBoundLessThan.Size = new System.Drawing.Size(146, 23); this.txtCatBoundLessThan.TabIndex = 883; this.txtCatBoundLessThan.Text = "100000"; this.txtCatBoundLessThan.Visible = false; @@ -582,10 +608,10 @@ namespace TemuKJD.WXForms.ProductForms // this.cmbGroupFilter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.cmbGroupFilter.FormattingEnabled = true; - this.cmbGroupFilter.Location = new System.Drawing.Point(934, 42); + this.cmbGroupFilter.Location = new System.Drawing.Point(917, 42); this.cmbGroupFilter.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbGroupFilter.Name = "cmbGroupFilter"; - this.cmbGroupFilter.Size = new System.Drawing.Size(151, 25); + this.cmbGroupFilter.Size = new System.Drawing.Size(147, 25); this.cmbGroupFilter.TabIndex = 653; this.cmbGroupFilter.Visible = false; // @@ -593,7 +619,7 @@ namespace TemuKJD.WXForms.ProductForms // this.lblSourceType.Anchor = System.Windows.Forms.AnchorStyles.Right; this.lblSourceType.AutoSize = true; - this.lblSourceType.Location = new System.Drawing.Point(689, 44); + this.lblSourceType.Location = new System.Drawing.Point(676, 44); this.lblSourceType.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.lblSourceType.Name = "lblSourceType"; this.lblSourceType.Size = new System.Drawing.Size(44, 17); @@ -605,7 +631,7 @@ namespace TemuKJD.WXForms.ProductForms // this.lblGroup.Anchor = System.Windows.Forms.AnchorStyles.Right; this.lblGroup.AutoSize = true; - this.lblGroup.Location = new System.Drawing.Point(890, 44); + this.lblGroup.Location = new System.Drawing.Point(873, 44); this.lblGroup.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.lblGroup.Name = "lblGroup"; this.lblGroup.Size = new System.Drawing.Size(44, 17); @@ -627,10 +653,10 @@ namespace TemuKJD.WXForms.ProductForms "机会商品", "以图搜品", "外部数据"}); - this.cmbSourceType.Location = new System.Drawing.Point(733, 42); + this.cmbSourceType.Location = new System.Drawing.Point(720, 42); this.cmbSourceType.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbSourceType.Name = "cmbSourceType"; - this.cmbSourceType.Size = new System.Drawing.Size(151, 25); + this.cmbSourceType.Size = new System.Drawing.Size(147, 25); this.cmbSourceType.TabIndex = 654; this.cmbSourceType.Text = "厂商直采"; this.cmbSourceType.Visible = false; @@ -1260,6 +1286,7 @@ namespace TemuKJD.WXForms.ProductForms this.colGetType, this.colSpProdType, this.colWxSafe, + this.colViewUv, this.colAddTime, this.colMdyTime, this.col_edit, @@ -1532,6 +1559,14 @@ namespace TemuKJD.WXForms.ProductForms this.colWxSafe.Name = "colWxSafe"; this.colWxSafe.ReadOnly = true; // + // colViewUv + // + this.colViewUv.FillWeight = 50F; + this.colViewUv.HeaderText = "曝光量"; + this.colViewUv.Name = "colViewUv"; + this.colViewUv.ReadOnly = true; + this.colViewUv.Visible = false; + // // colAddTime // dataGridViewCellStyle18.WrapMode = System.Windows.Forms.DataGridViewTriState.True; @@ -1707,6 +1742,16 @@ namespace TemuKJD.WXForms.ProductForms private System.Windows.Forms.DataGridViewTextBoxColumn colShopGroup; private DevComponents.DotNetBar.PanelEx btnSetShop; private System.Windows.Forms.Label lblSetShop; + private System.Windows.Forms.TextBox txtCatBoundLessThan; + private System.Windows.Forms.TextBox txtCatBoundMoreThan; + private UserComponent.UcCheckBox chkCatBoundLessThan; + public System.Windows.Forms.ComboBox cmbSourceType; + public System.Windows.Forms.ComboBox cmbRelation; + public System.Windows.Forms.Label lblRelation; + private System.Windows.Forms.Label lblHot; + private System.Windows.Forms.ComboBox cmbHot; + private UserComponent.UcCheckBox chkViewUvMin; + private System.Windows.Forms.TextBox txtViewUvMin; private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; private System.Windows.Forms.DataGridViewTextBoxColumn col_db_id; private System.Windows.Forms.DataGridViewTextBoxColumn colFromShopId; @@ -1737,18 +1782,11 @@ namespace TemuKJD.WXForms.ProductForms private System.Windows.Forms.DataGridViewTextBoxColumn colGetType; private System.Windows.Forms.DataGridViewTextBoxColumn colSpProdType; private System.Windows.Forms.DataGridViewTextBoxColumn colWxSafe; + private System.Windows.Forms.DataGridViewTextBoxColumn colViewUv; private System.Windows.Forms.DataGridViewTextBoxColumn colAddTime; private System.Windows.Forms.DataGridViewTextBoxColumn colMdyTime; private System.Windows.Forms.DataGridViewLinkColumn col_edit; private System.Windows.Forms.DataGridViewLinkColumn col_delete; private System.Windows.Forms.DataGridViewLinkColumn col_select_product; - private System.Windows.Forms.TextBox txtCatBoundLessThan; - private System.Windows.Forms.TextBox txtCatBoundMoreThan; - private UserComponent.UcCheckBox chkCatBoundLessThan; - public System.Windows.Forms.ComboBox cmbSourceType; - public System.Windows.Forms.ComboBox cmbRelation; - public System.Windows.Forms.Label lblRelation; - private System.Windows.Forms.Label lblHot; - private System.Windows.Forms.ComboBox cmbHot; } } \ No newline at end of file diff --git a/TEMUKJD/WXForms/ProductForms/WXUserProdListForm.cs b/TEMUKJD/WXForms/ProductForms/WXUserProdListForm.cs index f2ed6d2..3b09b3b 100644 --- a/TEMUKJD/WXForms/ProductForms/WXUserProdListForm.cs +++ b/TEMUKJD/WXForms/ProductForms/WXUserProdListForm.cs @@ -127,6 +127,8 @@ namespace TemuKJD.WXForms.ProductForms { lblHot.Visible = true; cmbHot.Visible = true; + chkViewUvMin.Visible = true; + txtViewUvMin.Visible = true; } var ctrls = tableLayoutPanel1.Controls.Cast().ToList(); @@ -136,7 +138,7 @@ namespace TemuKJD.WXForms.ProductForms for (int i = 0; i < 10; i++) { var ctrl = ctrls.FirstOrDefault(c => tableLayoutPanel1.GetRow(c) == j && tableLayoutPanel1.GetColumn(c) == i); - // tableLayoutPanel1.GetControlFromPosition(i, j); 取不到隐藏的商品 + // tableLayoutPanel1.GetControlFromPosition(i, j); 取不到隐藏的控件 if (ctrl != null) ctrlLst.Add(ctrl); else @@ -144,6 +146,8 @@ namespace TemuKJD.WXForms.ProductForms } } } + ctrlLst.Add(chkViewUvMin); + ctrlLst.Add(txtViewUvMin); for (int i = 0; i < ctrlLst.Count - 1; i++) { @@ -156,12 +160,12 @@ namespace TemuKJD.WXForms.ProductForms tableLayoutPanel1.SetRow(ctrlLst[i + 1], row); tableLayoutPanel1.SetColumn(ctrlLst[i + 1], column); } - else if (column < 9) + else if ((row == 0 && column < 9) || (row > 0 && column < 11)) { tableLayoutPanel1.SetRow(ctrlLst[i + 1], row); tableLayoutPanel1.SetColumn(ctrlLst[i + 1], column + 1); } - else if (column >= 9) + else if ((row == 0 && column >= 9) || (row > 0 && column >= 11)) { tableLayoutPanel1.SetRow(ctrlLst[i + 1], row + 1); tableLayoutPanel1.SetColumn(ctrlLst[i + 1], 0); @@ -170,7 +174,7 @@ namespace TemuKJD.WXForms.ProductForms for (int i = 0; i < 10; i++) { - if (tableLayoutPanel1.GetControlFromPosition(i, 0) == null && tableLayoutPanel1.GetControlFromPosition(i, 1) == null)// 取不到隐藏的商品 + if (tableLayoutPanel1.GetControlFromPosition(i, 0) == null && tableLayoutPanel1.GetControlFromPosition(i, 1) == null) // 取不到隐藏的控件 { tableLayoutPanel1.ColumnStyles[i].SizeType = SizeType.AutoSize; } @@ -296,6 +300,7 @@ namespace TemuKJD.WXForms.ProductForms prod.product_get_type_text == "厂商直采" ? (prod.product_get_type_text + " " + prod.skc_id).Trim() : prod.product_get_type_text, prod.special_prod_type, prod.wx_safe_status, + prod.view_uv, prod.add_time.ToString("yy-MM-dd HH:mm"), prod.mdy_time.ToString("yy-MM-dd HH:mm"), "编辑", @@ -306,6 +311,15 @@ namespace TemuKJD.WXForms.ProductForms })); } + if (BaseClass.SaLevel > 0 || BaseClass.UserAuthority.ParseToString().Contains("爆款数据") && lstTemuDbProduct.Any( p=> !p.view_uv.IsNullOrZero())) + { + Invoke(new Action(() => { dgvDbProduct.Columns["colViewUv"].Visible = true; })); + } + else + { + Invoke(new Action(() => { dgvDbProduct.Columns["colViewUv"].Visible = false; })); + } + Invoke(new Action(() => { ShowDgvImg(); @@ -390,6 +404,11 @@ namespace TemuKJD.WXForms.ProductForms "&search_prod_name=" + txtProdName.Text.Trim() + "&wx_safe_status=" + cmbWxSafe.Text.Trim().Replace("安全+未校验", "安全商品,未校验").Replace("违规商品", ""); + if (chkViewUvMin.Checked) + { + data += "&min_view_uv=" + txtViewUvMin.Text.ParseToInt(); + } + // 同时刷新下商品分组 string addUserName = BaseClass.UserAuthority.Contains("机会商品采集") ? ("admin," + BaseClass.UserName) : "admin"; if (BaseClass.GroupId != 3) diff --git a/TEMUKJD/WXForms/ProductForms/WXUserProdListForm.resx b/TEMUKJD/WXForms/ProductForms/WXUserProdListForm.resx index 585b372..be0775b 100644 --- a/TEMUKJD/WXForms/ProductForms/WXUserProdListForm.resx +++ b/TEMUKJD/WXForms/ProductForms/WXUserProdListForm.resx @@ -228,6 +228,9 @@ True + + True + True diff --git a/TEMUKJD/WXForms/ShopForms/WXShopOptimizeForm.Designer.cs b/TEMUKJD/WXForms/ShopForms/WXShopOptimizeForm.Designer.cs index 88f181a..1ae7b25 100644 --- a/TEMUKJD/WXForms/ShopForms/WXShopOptimizeForm.Designer.cs +++ b/TEMUKJD/WXForms/ShopForms/WXShopOptimizeForm.Designer.cs @@ -91,7 +91,6 @@ namespace TemuKJD.WXForms.ShopForms System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle57 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle58 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle59 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle60 = new System.Windows.Forms.DataGridViewCellStyle(); this.splitContainer1 = new System.Windows.Forms.SplitContainer(); this.ucGroupBoxEx3 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); this.btnWaybillManage = new DevComponents.DotNetBar.PanelEx(); @@ -120,6 +119,20 @@ namespace TemuKJD.WXForms.ShopForms this.label17 = new System.Windows.Forms.Label(); this.pbLoadingShop = new System.Windows.Forms.PictureBox(); this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx(); + this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.colShopLoginName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colShopNotes = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colGroup = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colSelectProduct = new System.Windows.Forms.DataGridViewLinkColumn(); + this.colLoginStatus = new System.Windows.Forms.DataGridViewLinkColumn(); + this.colApi = new System.Windows.Forms.DataGridViewLinkColumn(); + this.colCanUse = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.colUploadCount = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colOnSaleNum = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colRemaining = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.splitContainer2 = new System.Windows.Forms.SplitContainer(); this.txtFilterOrderId = new System.Windows.Forms.TextBox(); this.btnRestoreFilter = new DevComponents.DotNetBar.PanelEx(); @@ -149,7 +162,7 @@ namespace TemuKJD.WXForms.ShopForms this.colDgv1SpuId = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colDgv1ProductName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colDgv1Spec = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colDgv1OutSn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDgv1SkuCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colDgv1OrderId = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colDgv1Address = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colDgv1OrderTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -196,7 +209,7 @@ namespace TemuKJD.WXForms.ShopForms this.colDgv3DraftId = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colDgv3ProductName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colDgv3Spec = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colDgv3ExtCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDgv3SkuCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colDgv3OrderId = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colDgv3Address = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colDgv3OrderTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -219,14 +232,14 @@ namespace TemuKJD.WXForms.ShopForms this.colDgv4InShop = new System.Windows.Forms.DataGridViewLinkColumn(); this.colDgv4ImgUrl = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colDgv4Img = new System.Windows.Forms.DataGridViewImageColumn(); - this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDgv4SpuId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDgv4ProductName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDgv4Cnt = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDgv4SkuCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colDgv4OrderId = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colDgv4Address = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colDgv4OrderTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDgv4DeliveryName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colDgv4WaybillId = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colDgv4Addresses = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -238,44 +251,29 @@ namespace TemuKJD.WXForms.ShopForms this.panel5 = new System.Windows.Forms.Panel(); this.pictureBox5 = new System.Windows.Forms.PictureBox(); this.dgvData5 = new TemuKJD.UserComponent.DataGridViewEx(); - this.dataGridViewCheckBoxColumn1 = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewLinkColumn1 = new System.Windows.Forms.DataGridViewLinkColumn(); - this.dataGridViewLinkColumn2 = new System.Windows.Forms.DataGridViewLinkColumn(); - this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewImageColumn1 = new System.Windows.Forms.DataGridViewImageColumn(); - this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn11 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn13 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn14 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDgv5Check = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.colDgv5ShopId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDgv5ShopName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDgv5Login = new System.Windows.Forms.DataGridViewLinkColumn(); + this.colDgv5InShop = new System.Windows.Forms.DataGridViewLinkColumn(); + this.colDgv5ImgUrl = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDgv5Img = new System.Windows.Forms.DataGridViewImageColumn(); + this.colDgv5SpuId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDgv5ProductName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDgv5Cnt = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDgv5SkuCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colDgv5OrderId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn16 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn17 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn18 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDgv5Address = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDgv5OrderTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDgv5DeliveryName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colDgv5WaybillId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn20 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn21 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn22 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn23 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewLinkColumn3 = new System.Windows.Forms.DataGridViewLinkColumn(); - this.dataGridViewTextBoxColumn24 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDev5ComplaintReason = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDgv5NegativeReason = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDgv5OptimizeStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDgv5Optimize = new System.Windows.Forms.DataGridViewLinkColumn(); + this.colDgv5Remark = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); this.splitContainer3 = new System.Windows.Forms.SplitContainer(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colShopLoginName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colShopNotes = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colGroup = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colSelectProduct = new System.Windows.Forms.DataGridViewLinkColumn(); - this.colLoginStatus = new System.Windows.Forms.DataGridViewLinkColumn(); - this.colApi = new System.Windows.Forms.DataGridViewLinkColumn(); - this.colCanUse = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colUploadCount = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colOnSaleNum = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colRemaining = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); @@ -396,7 +394,6 @@ namespace TemuKJD.WXForms.ShopForms this.ucCheckBox5.TabIndex = 873; this.ucCheckBox5.Text = "物流负向反馈"; this.ucCheckBox5.UseVisualStyleBackColor = true; - this.ucCheckBox5.Visible = false; // // ucCheckBox4 // @@ -860,6 +857,124 @@ namespace TemuKJD.WXForms.ShopForms this.dgvShop.TabIndex = 6; this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick); // + // colSelect + // + this.colSelect.Frozen = true; + this.colSelect.HeaderText = "全选"; + this.colSelect.Name = "colSelect"; + this.colSelect.ReadOnly = true; + this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.colSelect.Width = 28; + // + // colShopLoginName + // + this.colShopLoginName.Frozen = true; + this.colShopLoginName.HeaderText = "店铺登录名"; + this.colShopLoginName.Name = "colShopLoginName"; + this.colShopLoginName.ReadOnly = true; + this.colShopLoginName.Visible = false; + // + // colShopId + // + this.colShopId.Frozen = true; + this.colShopId.HeaderText = "店铺Id"; + this.colShopId.Name = "colShopId"; + this.colShopId.ReadOnly = true; + this.colShopId.Visible = false; + this.colShopId.Width = 55; + // + // colShopName + // + this.colShopName.FillWeight = 150F; + this.colShopName.Frozen = true; + this.colShopName.HeaderText = "店铺名称"; + this.colShopName.Name = "colShopName"; + this.colShopName.ReadOnly = true; + this.colShopName.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colShopName.Width = 75; + // + // colShopNotes + // + this.colShopNotes.HeaderText = "备注"; + this.colShopNotes.Name = "colShopNotes"; + this.colShopNotes.ReadOnly = true; + this.colShopNotes.Width = 66; + // + // colGroup + // + this.colGroup.HeaderText = "分组"; + this.colGroup.Name = "colGroup"; + this.colGroup.ReadOnly = true; + this.colGroup.Width = 66; + // + // colSelectProduct + // + this.colSelectProduct.HeaderText = "选择商品"; + this.colSelectProduct.Name = "colSelectProduct"; + this.colSelectProduct.ReadOnly = true; + this.colSelectProduct.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colSelectProduct.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.colSelectProduct.Visible = false; + this.colSelectProduct.Width = 62; + // + // colLoginStatus + // + this.colLoginStatus.HeaderText = "状态"; + this.colLoginStatus.Name = "colLoginStatus"; + this.colLoginStatus.ReadOnly = true; + this.colLoginStatus.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colLoginStatus.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.colLoginStatus.Width = 38; + // + // colApi + // + this.colApi.HeaderText = "Api"; + this.colApi.Name = "colApi"; + this.colApi.ReadOnly = true; + this.colApi.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.colApi.Visible = false; + this.colApi.Width = 38; + // + // colCanUse + // + this.colCanUse.HeaderText = "可用"; + this.colCanUse.Name = "colCanUse"; + this.colCanUse.ReadOnly = true; + this.colCanUse.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colCanUse.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.colCanUse.Visible = false; + this.colCanUse.Width = 28; + // + // colUploadCount + // + this.colUploadCount.HeaderText = "已传"; + this.colUploadCount.Name = "colUploadCount"; + this.colUploadCount.ReadOnly = true; + this.colUploadCount.Visible = false; + this.colUploadCount.Width = 38; + // + // colOnSaleNum + // + this.colOnSaleNum.HeaderText = "在售"; + this.colOnSaleNum.Name = "colOnSaleNum"; + this.colOnSaleNum.ReadOnly = true; + this.colOnSaleNum.Visible = false; + this.colOnSaleNum.Width = 38; + // + // colRemaining + // + this.colRemaining.HeaderText = "月限额"; + this.colRemaining.Name = "colRemaining"; + this.colRemaining.ReadOnly = true; + this.colRemaining.Visible = false; + // + // colMessage + // + this.colMessage.HeaderText = "消息"; + this.colMessage.Name = "colMessage"; + this.colMessage.ReadOnly = true; + // // splitContainer2 // this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; @@ -1158,7 +1273,7 @@ namespace TemuKJD.WXForms.ShopForms this.colDgv1SpuId, this.colDgv1ProductName, this.colDgv1Spec, - this.colDgv1OutSn, + this.colDgv1SkuCode, this.colDgv1OrderId, this.colDgv1Address, this.colDgv1OrderTime, @@ -1263,13 +1378,13 @@ namespace TemuKJD.WXForms.ShopForms this.colDgv1Spec.ReadOnly = true; this.colDgv1Spec.Width = 145; // - // colDgv1OutSn + // colDgv1SkuCode // - this.colDgv1OutSn.HeaderText = "sku编码"; - this.colDgv1OutSn.Name = "colDgv1OutSn"; - this.colDgv1OutSn.ReadOnly = true; - this.colDgv1OutSn.Visible = false; - this.colDgv1OutSn.Width = 150; + this.colDgv1SkuCode.HeaderText = "sku编码"; + this.colDgv1SkuCode.Name = "colDgv1SkuCode"; + this.colDgv1SkuCode.ReadOnly = true; + this.colDgv1SkuCode.Visible = false; + this.colDgv1SkuCode.Width = 150; // // colDgv1OrderId // @@ -1648,7 +1763,7 @@ namespace TemuKJD.WXForms.ShopForms this.colDgv3DraftId, this.colDgv3ProductName, this.colDgv3Spec, - this.colDgv3ExtCode, + this.colDgv3SkuCode, this.colDgv3OrderId, this.colDgv3Address, this.colDgv3OrderTime, @@ -1759,13 +1874,13 @@ namespace TemuKJD.WXForms.ShopForms this.colDgv3Spec.ReadOnly = true; this.colDgv3Spec.Width = 130; // - // colDgv3ExtCode + // colDgv3SkuCode // - this.colDgv3ExtCode.HeaderText = "sku货号"; - this.colDgv3ExtCode.Name = "colDgv3ExtCode"; - this.colDgv3ExtCode.ReadOnly = true; - this.colDgv3ExtCode.Visible = false; - this.colDgv3ExtCode.Width = 145; + this.colDgv3SkuCode.HeaderText = "sku货号"; + this.colDgv3SkuCode.Name = "colDgv3SkuCode"; + this.colDgv3SkuCode.ReadOnly = true; + this.colDgv3SkuCode.Visible = false; + this.colDgv3SkuCode.Width = 145; // // colDgv3OrderId // @@ -1917,14 +2032,14 @@ namespace TemuKJD.WXForms.ShopForms this.colDgv4InShop, this.colDgv4ImgUrl, this.colDgv4Img, - this.dataGridViewTextBoxColumn4, - this.dataGridViewTextBoxColumn5, - this.dataGridViewTextBoxColumn6, - this.dataGridViewTextBoxColumn7, + this.colDgv4SpuId, + this.colDgv4ProductName, + this.colDgv4Cnt, + this.colDgv4SkuCode, this.colDgv4OrderId, this.colDgv4Address, this.colDgv4OrderTime, - this.dataGridViewTextBoxColumn9, + this.colDgv4DeliveryName, this.colDgv4WaybillId, this.dataGridViewTextBoxColumn10, this.colDgv4Addresses, @@ -2004,40 +2119,40 @@ namespace TemuKJD.WXForms.ShopForms this.colDgv4Img.ReadOnly = true; this.colDgv4Img.Width = 60; // - // dataGridViewTextBoxColumn4 + // colDgv4SpuId // - this.dataGridViewTextBoxColumn4.HeaderText = "商品Id"; - this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4"; - this.dataGridViewTextBoxColumn4.ReadOnly = true; - this.dataGridViewTextBoxColumn4.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; - this.dataGridViewTextBoxColumn4.Width = 110; + this.colDgv4SpuId.HeaderText = "商品Id"; + this.colDgv4SpuId.Name = "colDgv4SpuId"; + this.colDgv4SpuId.ReadOnly = true; + this.colDgv4SpuId.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colDgv4SpuId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.colDgv4SpuId.Width = 110; // - // dataGridViewTextBoxColumn5 + // colDgv4ProductName // dataGridViewCellStyle38.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn5.DefaultCellStyle = dataGridViewCellStyle38; - this.dataGridViewTextBoxColumn5.HeaderText = "商品标题"; - this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5"; - this.dataGridViewTextBoxColumn5.ReadOnly = true; - this.dataGridViewTextBoxColumn5.Width = 120; + this.colDgv4ProductName.DefaultCellStyle = dataGridViewCellStyle38; + this.colDgv4ProductName.HeaderText = "商品标题"; + this.colDgv4ProductName.Name = "colDgv4ProductName"; + this.colDgv4ProductName.ReadOnly = true; + this.colDgv4ProductName.Width = 120; // - // dataGridViewTextBoxColumn6 + // colDgv4Cnt // dataGridViewCellStyle39.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn6.DefaultCellStyle = dataGridViewCellStyle39; - this.dataGridViewTextBoxColumn6.HeaderText = "数量"; - this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6"; - this.dataGridViewTextBoxColumn6.ReadOnly = true; - this.dataGridViewTextBoxColumn6.Width = 40; + this.colDgv4Cnt.DefaultCellStyle = dataGridViewCellStyle39; + this.colDgv4Cnt.HeaderText = "数量"; + this.colDgv4Cnt.Name = "colDgv4Cnt"; + this.colDgv4Cnt.ReadOnly = true; + this.colDgv4Cnt.Width = 40; // - // dataGridViewTextBoxColumn7 + // colDgv4SkuCode // - this.dataGridViewTextBoxColumn7.HeaderText = "sku货号"; - this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7"; - this.dataGridViewTextBoxColumn7.ReadOnly = true; - this.dataGridViewTextBoxColumn7.Visible = false; - this.dataGridViewTextBoxColumn7.Width = 140; + this.colDgv4SkuCode.HeaderText = "sku货号"; + this.colDgv4SkuCode.Name = "colDgv4SkuCode"; + this.colDgv4SkuCode.ReadOnly = true; + this.colDgv4SkuCode.Visible = false; + this.colDgv4SkuCode.Width = 140; // // colDgv4OrderId // @@ -2065,14 +2180,14 @@ namespace TemuKJD.WXForms.ShopForms this.colDgv4OrderTime.ReadOnly = true; this.colDgv4OrderTime.Width = 75; // - // dataGridViewTextBoxColumn9 + // colDgv4DeliveryName // dataGridViewCellStyle43.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn9.DefaultCellStyle = dataGridViewCellStyle43; - this.dataGridViewTextBoxColumn9.HeaderText = "物流公司"; - this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9"; - this.dataGridViewTextBoxColumn9.ReadOnly = true; - this.dataGridViewTextBoxColumn9.Width = 70; + this.colDgv4DeliveryName.DefaultCellStyle = dataGridViewCellStyle43; + this.colDgv4DeliveryName.HeaderText = "物流公司"; + this.colDgv4DeliveryName.Name = "colDgv4DeliveryName"; + this.colDgv4DeliveryName.ReadOnly = true; + this.colDgv4DeliveryName.Width = 70; // // colDgv4WaybillId // @@ -2182,28 +2297,27 @@ namespace TemuKJD.WXForms.ShopForms this.dgvData5.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle49; this.dgvData5.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvData5.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.dataGridViewCheckBoxColumn1, - this.dataGridViewTextBoxColumn1, - this.dataGridViewTextBoxColumn2, - this.dataGridViewLinkColumn1, - this.dataGridViewLinkColumn2, - this.dataGridViewTextBoxColumn3, - this.dataGridViewImageColumn1, - this.dataGridViewTextBoxColumn8, - this.dataGridViewTextBoxColumn11, - this.dataGridViewTextBoxColumn13, - this.dataGridViewTextBoxColumn14, + this.colDgv5Check, + this.colDgv5ShopId, + this.colDgv5ShopName, + this.colDgv5Login, + this.colDgv5InShop, + this.colDgv5ImgUrl, + this.colDgv5Img, + this.colDgv5SpuId, + this.colDgv5ProductName, + this.colDgv5Cnt, + this.colDgv5SkuCode, this.colDgv5OrderId, - this.dataGridViewTextBoxColumn16, - this.dataGridViewTextBoxColumn17, - this.dataGridViewTextBoxColumn18, + this.colDgv5Address, + this.colDgv5OrderTime, + this.colDgv5DeliveryName, this.colDgv5WaybillId, - this.dataGridViewTextBoxColumn20, - this.dataGridViewTextBoxColumn21, - this.dataGridViewTextBoxColumn22, - this.dataGridViewTextBoxColumn23, - this.dataGridViewLinkColumn3, - this.dataGridViewTextBoxColumn24}); + this.colDev5ComplaintReason, + this.colDgv5NegativeReason, + this.colDgv5OptimizeStatus, + this.colDgv5Optimize, + this.colDgv5Remark}); this.dgvData5.Dock = System.Windows.Forms.DockStyle.Fill; this.dgvData5.Location = new System.Drawing.Point(0, 0); this.dgvData5.MultiSelectCheckBox = true; @@ -2212,103 +2326,104 @@ namespace TemuKJD.WXForms.ShopForms this.dgvData5.RowTemplate.Height = 23; this.dgvData5.Size = new System.Drawing.Size(1393, 489); this.dgvData5.TabIndex = 187; + this.dgvData5.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvData_CellContentClick); // - // dataGridViewCheckBoxColumn1 + // colDgv5Check // - this.dataGridViewCheckBoxColumn1.Frozen = true; - this.dataGridViewCheckBoxColumn1.HeaderText = "选择"; - this.dataGridViewCheckBoxColumn1.Name = "dataGridViewCheckBoxColumn1"; - this.dataGridViewCheckBoxColumn1.ReadOnly = true; - this.dataGridViewCheckBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewCheckBoxColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewCheckBoxColumn1.Width = 30; + this.colDgv5Check.Frozen = true; + this.colDgv5Check.HeaderText = "选择"; + this.colDgv5Check.Name = "colDgv5Check"; + this.colDgv5Check.ReadOnly = true; + this.colDgv5Check.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colDgv5Check.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.colDgv5Check.Width = 30; // - // dataGridViewTextBoxColumn1 + // colDgv5ShopId // - this.dataGridViewTextBoxColumn1.Frozen = true; - this.dataGridViewTextBoxColumn1.HeaderText = "店铺Id"; - this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1"; - this.dataGridViewTextBoxColumn1.ReadOnly = true; - this.dataGridViewTextBoxColumn1.Visible = false; + this.colDgv5ShopId.Frozen = true; + this.colDgv5ShopId.HeaderText = "店铺Id"; + this.colDgv5ShopId.Name = "colDgv5ShopId"; + this.colDgv5ShopId.ReadOnly = true; + this.colDgv5ShopId.Visible = false; // - // dataGridViewTextBoxColumn2 + // colDgv5ShopName // dataGridViewCellStyle50.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn2.DefaultCellStyle = dataGridViewCellStyle50; - this.dataGridViewTextBoxColumn2.Frozen = true; - this.dataGridViewTextBoxColumn2.HeaderText = "店铺名称"; - this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2"; - this.dataGridViewTextBoxColumn2.ReadOnly = true; + this.colDgv5ShopName.DefaultCellStyle = dataGridViewCellStyle50; + this.colDgv5ShopName.Frozen = true; + this.colDgv5ShopName.HeaderText = "店铺名称"; + this.colDgv5ShopName.Name = "colDgv5ShopName"; + this.colDgv5ShopName.ReadOnly = true; // - // dataGridViewLinkColumn1 + // colDgv5Login // - this.dataGridViewLinkColumn1.HeaderText = "登录"; - this.dataGridViewLinkColumn1.Name = "dataGridViewLinkColumn1"; - this.dataGridViewLinkColumn1.ReadOnly = true; - this.dataGridViewLinkColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewLinkColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewLinkColumn1.Visible = false; - this.dataGridViewLinkColumn1.Width = 40; + this.colDgv5Login.HeaderText = "登录"; + this.colDgv5Login.Name = "colDgv5Login"; + this.colDgv5Login.ReadOnly = true; + this.colDgv5Login.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colDgv5Login.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.colDgv5Login.Visible = false; + this.colDgv5Login.Width = 40; // - // dataGridViewLinkColumn2 + // colDgv5InShop // - this.dataGridViewLinkColumn2.HeaderText = "进店"; - this.dataGridViewLinkColumn2.Name = "dataGridViewLinkColumn2"; - this.dataGridViewLinkColumn2.ReadOnly = true; - this.dataGridViewLinkColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewLinkColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewLinkColumn2.Visible = false; - this.dataGridViewLinkColumn2.Width = 40; + this.colDgv5InShop.HeaderText = "进店"; + this.colDgv5InShop.Name = "colDgv5InShop"; + this.colDgv5InShop.ReadOnly = true; + this.colDgv5InShop.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colDgv5InShop.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.colDgv5InShop.Visible = false; + this.colDgv5InShop.Width = 40; // - // dataGridViewTextBoxColumn3 + // colDgv5ImgUrl // - this.dataGridViewTextBoxColumn3.HeaderText = "图片地址"; - this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3"; - this.dataGridViewTextBoxColumn3.ReadOnly = true; - this.dataGridViewTextBoxColumn3.Visible = false; + this.colDgv5ImgUrl.HeaderText = "图片地址"; + this.colDgv5ImgUrl.Name = "colDgv5ImgUrl"; + this.colDgv5ImgUrl.ReadOnly = true; + this.colDgv5ImgUrl.Visible = false; // - // dataGridViewImageColumn1 + // colDgv5Img // - this.dataGridViewImageColumn1.HeaderText = "图片"; - this.dataGridViewImageColumn1.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Zoom; - this.dataGridViewImageColumn1.Name = "dataGridViewImageColumn1"; - this.dataGridViewImageColumn1.ReadOnly = true; - this.dataGridViewImageColumn1.Width = 60; + this.colDgv5Img.HeaderText = "图片"; + this.colDgv5Img.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Zoom; + this.colDgv5Img.Name = "colDgv5Img"; + this.colDgv5Img.ReadOnly = true; + this.colDgv5Img.Width = 60; // - // dataGridViewTextBoxColumn8 + // colDgv5SpuId // - this.dataGridViewTextBoxColumn8.HeaderText = "商品Id"; - this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8"; - this.dataGridViewTextBoxColumn8.ReadOnly = true; - this.dataGridViewTextBoxColumn8.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn8.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; - this.dataGridViewTextBoxColumn8.Width = 110; + this.colDgv5SpuId.HeaderText = "商品Id"; + this.colDgv5SpuId.Name = "colDgv5SpuId"; + this.colDgv5SpuId.ReadOnly = true; + this.colDgv5SpuId.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colDgv5SpuId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.colDgv5SpuId.Width = 110; // - // dataGridViewTextBoxColumn11 + // colDgv5ProductName // dataGridViewCellStyle51.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn11.DefaultCellStyle = dataGridViewCellStyle51; - this.dataGridViewTextBoxColumn11.HeaderText = "商品标题"; - this.dataGridViewTextBoxColumn11.Name = "dataGridViewTextBoxColumn11"; - this.dataGridViewTextBoxColumn11.ReadOnly = true; - this.dataGridViewTextBoxColumn11.Width = 120; + this.colDgv5ProductName.DefaultCellStyle = dataGridViewCellStyle51; + this.colDgv5ProductName.HeaderText = "商品标题"; + this.colDgv5ProductName.Name = "colDgv5ProductName"; + this.colDgv5ProductName.ReadOnly = true; + this.colDgv5ProductName.Width = 120; // - // dataGridViewTextBoxColumn13 + // colDgv5Cnt // dataGridViewCellStyle52.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn13.DefaultCellStyle = dataGridViewCellStyle52; - this.dataGridViewTextBoxColumn13.HeaderText = "数量"; - this.dataGridViewTextBoxColumn13.Name = "dataGridViewTextBoxColumn13"; - this.dataGridViewTextBoxColumn13.ReadOnly = true; - this.dataGridViewTextBoxColumn13.Width = 40; + this.colDgv5Cnt.DefaultCellStyle = dataGridViewCellStyle52; + this.colDgv5Cnt.HeaderText = "数量"; + this.colDgv5Cnt.Name = "colDgv5Cnt"; + this.colDgv5Cnt.ReadOnly = true; + this.colDgv5Cnt.Width = 40; // - // dataGridViewTextBoxColumn14 + // colDgv5SkuCode // - this.dataGridViewTextBoxColumn14.HeaderText = "sku货号"; - this.dataGridViewTextBoxColumn14.Name = "dataGridViewTextBoxColumn14"; - this.dataGridViewTextBoxColumn14.ReadOnly = true; - this.dataGridViewTextBoxColumn14.Visible = false; - this.dataGridViewTextBoxColumn14.Width = 140; + this.colDgv5SkuCode.HeaderText = "sku货号"; + this.colDgv5SkuCode.Name = "colDgv5SkuCode"; + this.colDgv5SkuCode.ReadOnly = true; + this.colDgv5SkuCode.Visible = false; + this.colDgv5SkuCode.Width = 140; // // colDgv5OrderId // @@ -2319,31 +2434,31 @@ namespace TemuKJD.WXForms.ShopForms this.colDgv5OrderId.ReadOnly = true; this.colDgv5OrderId.Width = 145; // - // dataGridViewTextBoxColumn16 + // colDgv5Address // dataGridViewCellStyle54.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn16.DefaultCellStyle = dataGridViewCellStyle54; - this.dataGridViewTextBoxColumn16.HeaderText = "收货地址"; - this.dataGridViewTextBoxColumn16.Name = "dataGridViewTextBoxColumn16"; - this.dataGridViewTextBoxColumn16.ReadOnly = true; + this.colDgv5Address.DefaultCellStyle = dataGridViewCellStyle54; + this.colDgv5Address.HeaderText = "收货地址"; + this.colDgv5Address.Name = "colDgv5Address"; + this.colDgv5Address.ReadOnly = true; // - // dataGridViewTextBoxColumn17 + // colDgv5OrderTime // dataGridViewCellStyle55.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn17.DefaultCellStyle = dataGridViewCellStyle55; - this.dataGridViewTextBoxColumn17.HeaderText = "下单时间"; - this.dataGridViewTextBoxColumn17.Name = "dataGridViewTextBoxColumn17"; - this.dataGridViewTextBoxColumn17.ReadOnly = true; - this.dataGridViewTextBoxColumn17.Width = 75; + this.colDgv5OrderTime.DefaultCellStyle = dataGridViewCellStyle55; + this.colDgv5OrderTime.HeaderText = "下单时间"; + this.colDgv5OrderTime.Name = "colDgv5OrderTime"; + this.colDgv5OrderTime.ReadOnly = true; + this.colDgv5OrderTime.Width = 75; // - // dataGridViewTextBoxColumn18 + // colDgv5DeliveryName // dataGridViewCellStyle56.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn18.DefaultCellStyle = dataGridViewCellStyle56; - this.dataGridViewTextBoxColumn18.HeaderText = "物流公司"; - this.dataGridViewTextBoxColumn18.Name = "dataGridViewTextBoxColumn18"; - this.dataGridViewTextBoxColumn18.ReadOnly = true; - this.dataGridViewTextBoxColumn18.Width = 70; + this.colDgv5DeliveryName.DefaultCellStyle = dataGridViewCellStyle56; + this.colDgv5DeliveryName.HeaderText = "物流公司"; + this.colDgv5DeliveryName.Name = "colDgv5DeliveryName"; + this.colDgv5DeliveryName.ReadOnly = true; + this.colDgv5DeliveryName.Width = 70; // // colDgv5WaybillId // @@ -2352,54 +2467,43 @@ namespace TemuKJD.WXForms.ShopForms this.colDgv5WaybillId.ReadOnly = true; this.colDgv5WaybillId.Width = 120; // - // dataGridViewTextBoxColumn20 + // colDev5ComplaintReason // dataGridViewCellStyle57.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn20.DefaultCellStyle = dataGridViewCellStyle57; - this.dataGridViewTextBoxColumn20.HeaderText = "揽收、签收时间"; - this.dataGridViewTextBoxColumn20.Name = "dataGridViewTextBoxColumn20"; - this.dataGridViewTextBoxColumn20.ReadOnly = true; - this.dataGridViewTextBoxColumn20.Width = 120; + this.colDev5ComplaintReason.DefaultCellStyle = dataGridViewCellStyle57; + this.colDev5ComplaintReason.HeaderText = "投诉原因"; + this.colDev5ComplaintReason.Name = "colDev5ComplaintReason"; + this.colDev5ComplaintReason.ReadOnly = true; // - // dataGridViewTextBoxColumn21 + // colDgv5NegativeReason // dataGridViewCellStyle58.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn21.DefaultCellStyle = dataGridViewCellStyle58; - this.dataGridViewTextBoxColumn21.HeaderText = "发货、收货地"; - this.dataGridViewTextBoxColumn21.Name = "dataGridViewTextBoxColumn21"; - this.dataGridViewTextBoxColumn21.ReadOnly = true; - this.dataGridViewTextBoxColumn21.Width = 110; + this.colDgv5NegativeReason.DefaultCellStyle = dataGridViewCellStyle58; + this.colDgv5NegativeReason.HeaderText = "差评原因"; + this.colDgv5NegativeReason.Name = "colDgv5NegativeReason"; + this.colDgv5NegativeReason.ReadOnly = true; // - // dataGridViewTextBoxColumn22 + // colDgv5OptimizeStatus // dataGridViewCellStyle59.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn22.DefaultCellStyle = dataGridViewCellStyle59; - this.dataGridViewTextBoxColumn22.HeaderText = "配送时长"; - this.dataGridViewTextBoxColumn22.Name = "dataGridViewTextBoxColumn22"; - this.dataGridViewTextBoxColumn22.ReadOnly = true; - this.dataGridViewTextBoxColumn22.Width = 80; + this.colDgv5OptimizeStatus.DefaultCellStyle = dataGridViewCellStyle59; + this.colDgv5OptimizeStatus.HeaderText = "补发状态"; + this.colDgv5OptimizeStatus.Name = "colDgv5OptimizeStatus"; + this.colDgv5OptimizeStatus.ReadOnly = true; + this.colDgv5OptimizeStatus.Width = 80; // - // dataGridViewTextBoxColumn23 + // colDgv5Optimize // - dataGridViewCellStyle60.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn23.DefaultCellStyle = dataGridViewCellStyle60; - this.dataGridViewTextBoxColumn23.HeaderText = "补发状态"; - this.dataGridViewTextBoxColumn23.Name = "dataGridViewTextBoxColumn23"; - this.dataGridViewTextBoxColumn23.ReadOnly = true; - this.dataGridViewTextBoxColumn23.Width = 80; + this.colDgv5Optimize.HeaderText = "补发"; + this.colDgv5Optimize.Name = "colDgv5Optimize"; + this.colDgv5Optimize.ReadOnly = true; + this.colDgv5Optimize.Width = 50; // - // dataGridViewLinkColumn3 + // colDgv5Remark // - this.dataGridViewLinkColumn3.HeaderText = "补发"; - this.dataGridViewLinkColumn3.Name = "dataGridViewLinkColumn3"; - this.dataGridViewLinkColumn3.ReadOnly = true; - this.dataGridViewLinkColumn3.Width = 50; - // - // dataGridViewTextBoxColumn24 - // - this.dataGridViewTextBoxColumn24.HeaderText = "备注"; - this.dataGridViewTextBoxColumn24.Name = "dataGridViewTextBoxColumn24"; - this.dataGridViewTextBoxColumn24.ReadOnly = true; + this.colDgv5Remark.HeaderText = "备注"; + this.colDgv5Remark.Name = "colDgv5Remark"; + this.colDgv5Remark.ReadOnly = true; // // statusBar // @@ -2431,124 +2535,6 @@ namespace TemuKJD.WXForms.ShopForms this.splitContainer3.SplitterDistance = 533; this.splitContainer3.TabIndex = 3; // - // colSelect - // - this.colSelect.Frozen = true; - this.colSelect.HeaderText = "全选"; - this.colSelect.Name = "colSelect"; - this.colSelect.ReadOnly = true; - this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.colSelect.Width = 28; - // - // colShopLoginName - // - this.colShopLoginName.Frozen = true; - this.colShopLoginName.HeaderText = "店铺登录名"; - this.colShopLoginName.Name = "colShopLoginName"; - this.colShopLoginName.ReadOnly = true; - this.colShopLoginName.Visible = false; - // - // colShopId - // - this.colShopId.Frozen = true; - this.colShopId.HeaderText = "店铺Id"; - this.colShopId.Name = "colShopId"; - this.colShopId.ReadOnly = true; - this.colShopId.Visible = false; - this.colShopId.Width = 55; - // - // colShopName - // - this.colShopName.FillWeight = 150F; - this.colShopName.Frozen = true; - this.colShopName.HeaderText = "店铺名称"; - this.colShopName.Name = "colShopName"; - this.colShopName.ReadOnly = true; - this.colShopName.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colShopName.Width = 75; - // - // colShopNotes - // - this.colShopNotes.HeaderText = "备注"; - this.colShopNotes.Name = "colShopNotes"; - this.colShopNotes.ReadOnly = true; - this.colShopNotes.Width = 66; - // - // colGroup - // - this.colGroup.HeaderText = "分组"; - this.colGroup.Name = "colGroup"; - this.colGroup.ReadOnly = true; - this.colGroup.Width = 66; - // - // colSelectProduct - // - this.colSelectProduct.HeaderText = "选择商品"; - this.colSelectProduct.Name = "colSelectProduct"; - this.colSelectProduct.ReadOnly = true; - this.colSelectProduct.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colSelectProduct.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.colSelectProduct.Visible = false; - this.colSelectProduct.Width = 62; - // - // colLoginStatus - // - this.colLoginStatus.HeaderText = "状态"; - this.colLoginStatus.Name = "colLoginStatus"; - this.colLoginStatus.ReadOnly = true; - this.colLoginStatus.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colLoginStatus.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.colLoginStatus.Width = 38; - // - // colApi - // - this.colApi.HeaderText = "Api"; - this.colApi.Name = "colApi"; - this.colApi.ReadOnly = true; - this.colApi.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.colApi.Visible = false; - this.colApi.Width = 38; - // - // colCanUse - // - this.colCanUse.HeaderText = "可用"; - this.colCanUse.Name = "colCanUse"; - this.colCanUse.ReadOnly = true; - this.colCanUse.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colCanUse.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.colCanUse.Visible = false; - this.colCanUse.Width = 28; - // - // colUploadCount - // - this.colUploadCount.HeaderText = "已传"; - this.colUploadCount.Name = "colUploadCount"; - this.colUploadCount.ReadOnly = true; - this.colUploadCount.Visible = false; - this.colUploadCount.Width = 38; - // - // colOnSaleNum - // - this.colOnSaleNum.HeaderText = "在售"; - this.colOnSaleNum.Name = "colOnSaleNum"; - this.colOnSaleNum.ReadOnly = true; - this.colOnSaleNum.Visible = false; - this.colOnSaleNum.Width = 38; - // - // colRemaining - // - this.colRemaining.HeaderText = "月限额"; - this.colRemaining.Name = "colRemaining"; - this.colRemaining.ReadOnly = true; - this.colRemaining.Visible = false; - // - // colMessage - // - this.colMessage.HeaderText = "消息"; - this.colMessage.Name = "colMessage"; - this.colMessage.ReadOnly = true; - // // WXShopOptimizeForm // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; @@ -2656,24 +2642,6 @@ namespace TemuKJD.WXForms.ShopForms private System.Windows.Forms.PictureBox pictureBox4; private UserComponent.DataGridViewEx dgvData4; private DevComponents.DotNetBar.PanelEx btnWaybillManage; - private System.Windows.Forms.DataGridViewCheckBoxColumn colDgv1Check; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1ShopId; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1ShopName; - private System.Windows.Forms.DataGridViewLinkColumn colDgv1ShopLogin; - private System.Windows.Forms.DataGridViewLinkColumn colDgv1InShop; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1ImgUrl; - private System.Windows.Forms.DataGridViewImageColumn colDgv1Img; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1SpuId; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1ProductName; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1Spec; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1OutSn; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1OrderId; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1Address; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1OrderTime; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1AfterSaleReason; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1OptimizeStatus; - private System.Windows.Forms.DataGridViewLinkColumn colDgv1Optimize; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1Remark; private System.Windows.Forms.Panel pnlUpdateRemark; private System.Windows.Forms.Label lblOrderId; private System.Windows.Forms.Label lblShopName; @@ -2702,50 +2670,6 @@ namespace TemuKJD.WXForms.ShopForms private System.Windows.Forms.DataGridViewTextBoxColumn colDgv2OptimizeStatus; private System.Windows.Forms.DataGridViewLinkColumn colDgv2Optimize; private System.Windows.Forms.DataGridViewTextBoxColumn colDgv2Remark; - private System.Windows.Forms.DataGridViewCheckBoxColumn colDgv3Check; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3ShopId; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3ShopName; - private System.Windows.Forms.DataGridViewLinkColumn colDgv3Login; - private System.Windows.Forms.DataGridViewLinkColumn colDgv3InShop; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3ImgUrl; - private System.Windows.Forms.DataGridViewImageColumn colDgv3Img; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3DraftId; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3ProductName; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3Spec; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3ExtCode; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3OrderId; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3Address; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3OrderTime; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3PayTime; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3TakeTime; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3Duration; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3DeliveryName; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3WaybillId; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3OptimizeStatus; - private System.Windows.Forms.DataGridViewLinkColumn colDgv3Optimize; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3Remark; - private System.Windows.Forms.DataGridViewCheckBoxColumn colDgv4Check; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4ShopId; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4ShopName; - private System.Windows.Forms.DataGridViewLinkColumn colDgv4Login; - private System.Windows.Forms.DataGridViewLinkColumn colDgv4InShop; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4ImgUrl; - private System.Windows.Forms.DataGridViewImageColumn colDgv4Img; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4OrderId; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4Address; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4OrderTime; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn9; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4WaybillId; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn10; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4Addresses; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn12; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4OptimizeStatus; - private System.Windows.Forms.DataGridViewLinkColumn colDgv4Optimize; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4Remark; private System.Windows.Forms.Label lblShopId; private System.Windows.Forms.Label label2; private System.Windows.Forms.TextBox txtFilterOrderId; @@ -2755,28 +2679,6 @@ namespace TemuKJD.WXForms.ShopForms private System.Windows.Forms.Panel panel5; private System.Windows.Forms.PictureBox pictureBox5; private UserComponent.DataGridViewEx dgvData5; - private System.Windows.Forms.DataGridViewCheckBoxColumn dataGridViewCheckBoxColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2; - private System.Windows.Forms.DataGridViewLinkColumn dataGridViewLinkColumn1; - private System.Windows.Forms.DataGridViewLinkColumn dataGridViewLinkColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3; - private System.Windows.Forms.DataGridViewImageColumn dataGridViewImageColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn8; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn11; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn13; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn14; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv5OrderId; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn16; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn17; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn18; - private System.Windows.Forms.DataGridViewTextBoxColumn colDgv5WaybillId; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn20; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn21; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn22; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn23; - private System.Windows.Forms.DataGridViewLinkColumn dataGridViewLinkColumn3; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn24; private UserComponent.UcComboBoxMutiSelect cmbFilterShopGroup; private System.Windows.Forms.Label label24; private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; @@ -2793,5 +2695,88 @@ namespace TemuKJD.WXForms.ShopForms private System.Windows.Forms.DataGridViewTextBoxColumn colOnSaleNum; private System.Windows.Forms.DataGridViewTextBoxColumn colRemaining; private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; + private System.Windows.Forms.DataGridViewCheckBoxColumn colDgv3Check; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3ShopId; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3ShopName; + private System.Windows.Forms.DataGridViewLinkColumn colDgv3Login; + private System.Windows.Forms.DataGridViewLinkColumn colDgv3InShop; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3ImgUrl; + private System.Windows.Forms.DataGridViewImageColumn colDgv3Img; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3DraftId; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3ProductName; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3Spec; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3SkuCode; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3OrderId; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3Address; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3OrderTime; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3PayTime; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3TakeTime; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3Duration; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3DeliveryName; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3WaybillId; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3OptimizeStatus; + private System.Windows.Forms.DataGridViewLinkColumn colDgv3Optimize; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3Remark; + private System.Windows.Forms.DataGridViewCheckBoxColumn colDgv1Check; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1ShopId; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1ShopName; + private System.Windows.Forms.DataGridViewLinkColumn colDgv1ShopLogin; + private System.Windows.Forms.DataGridViewLinkColumn colDgv1InShop; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1ImgUrl; + private System.Windows.Forms.DataGridViewImageColumn colDgv1Img; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1SpuId; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1ProductName; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1Spec; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1SkuCode; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1OrderId; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1Address; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1OrderTime; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1AfterSaleReason; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1OptimizeStatus; + private System.Windows.Forms.DataGridViewLinkColumn colDgv1Optimize; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1Remark; + private System.Windows.Forms.DataGridViewCheckBoxColumn colDgv4Check; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4ShopId; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4ShopName; + private System.Windows.Forms.DataGridViewLinkColumn colDgv4Login; + private System.Windows.Forms.DataGridViewLinkColumn colDgv4InShop; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4ImgUrl; + private System.Windows.Forms.DataGridViewImageColumn colDgv4Img; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4SpuId; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4ProductName; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4Cnt; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4SkuCode; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4OrderId; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4Address; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4OrderTime; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4DeliveryName; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4WaybillId; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn10; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4Addresses; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn12; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4OptimizeStatus; + private System.Windows.Forms.DataGridViewLinkColumn colDgv4Optimize; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4Remark; + private System.Windows.Forms.DataGridViewCheckBoxColumn colDgv5Check; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv5ShopId; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv5ShopName; + private System.Windows.Forms.DataGridViewLinkColumn colDgv5Login; + private System.Windows.Forms.DataGridViewLinkColumn colDgv5InShop; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv5ImgUrl; + private System.Windows.Forms.DataGridViewImageColumn colDgv5Img; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv5SpuId; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv5ProductName; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv5Cnt; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv5SkuCode; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv5OrderId; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv5Address; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv5OrderTime; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv5DeliveryName; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv5WaybillId; + private System.Windows.Forms.DataGridViewTextBoxColumn colDev5ComplaintReason; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv5NegativeReason; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv5OptimizeStatus; + private System.Windows.Forms.DataGridViewLinkColumn colDgv5Optimize; + private System.Windows.Forms.DataGridViewTextBoxColumn colDgv5Remark; } } \ No newline at end of file diff --git a/TEMUKJD/WXForms/ShopForms/WXShopOptimizeForm.cs b/TEMUKJD/WXForms/ShopForms/WXShopOptimizeForm.cs index 945bdfb..6a28f34 100644 --- a/TEMUKJD/WXForms/ShopForms/WXShopOptimizeForm.cs +++ b/TEMUKJD/WXForms/ShopForms/WXShopOptimizeForm.cs @@ -48,6 +48,7 @@ namespace TemuKJD.WXForms.ShopForms ConcurrentList lstWxOptimizeProductEvaluationInfo = new ConcurrentList(); ConcurrentList lstWxOptimizeOrderWayBillInfo = new ConcurrentList(); // 揽收 ConcurrentList lstWxOptrimizeLinerCgiInfo = new ConcurrentList(); // 物流 + ConcurrentList lstWxOptimizeFeedbackOrderInfo = new ConcurrentList(); // 反向物流 public WXShopOptimizeForm() { @@ -56,7 +57,7 @@ namespace TemuKJD.WXForms.ShopForms private void UserSelectDbProductForm_Load(object sender, EventArgs e) { - this.ucTabControl1.TabPages.RemoveAt(4); + //this.ucTabControl1.TabPages.RemoveAt(4); dicCheckedShopId = NaiBa.Util.Helper.ConfigHelper.LoadConfig>("wx_checked_shop_dic"); if (dicCheckedShopId == null) @@ -74,6 +75,8 @@ namespace TemuKJD.WXForms.ShopForms dgvData3.AddImgColumn("colDgv3Img", "colDgv3ImgUrl"); dgvData4.AddSelectorColumn("colDgv4Check"); dgvData4.AddImgColumn("colDgv4Img", "colDgv4ImgUrl"); + dgvData5.AddSelectorColumn("colDgv5Check"); + dgvData5.AddImgColumn("colDgv5Img", "colDgv5ImgUrl"); IsLoadComplate = true; } @@ -482,6 +485,12 @@ namespace TemuKJD.WXForms.ShopForms dgvData4.Rows.Clear(); lstWxOptrimizeLinerCgiInfo.Clear(); } + if (ucCheckBox5.Checked) + { + pictureBox5.Visible = true; + dgvData5.Rows.Clear(); + lstWxOptimizeFeedbackOrderInfo.Clear(); + } Task.Run(() => { List shopLst = GlobalConfig.ShopLoginList.Where(s => lstShopId.Contains(s.ShopId)).ToList(); @@ -510,6 +519,11 @@ namespace TemuKJD.WXForms.ShopForms SearchData4(shop); Thread.Sleep(Randomx.GetId(200, 500)); } + if (ucCheckBox5.Checked) + { + SearchData5(shop); + Thread.Sleep(Randomx.GetId(200, 500)); + } } Invoke(new Action(() => { @@ -531,6 +545,7 @@ namespace TemuKJD.WXForms.ShopForms pictureBox2.Visible = false; pictureBox3.Visible = false; pictureBox4.Visible = false; + pictureBox5.Visible = false; btnSearch.Enabled = true; })); }, cancellationTokenSource.Token).ContinueWith(delegate @@ -599,9 +614,9 @@ namespace TemuKJD.WXForms.ShopForms this.statusBar.lblTaskStatus.Text = "正在查询品质退款,店铺:" + shop.ShopAccount + " " + page + "/" + totalPage; })); var orderAfterSaleInfoLst = new List(); - foreach (JObject refundOrderObj in prodObjs["data"]) + foreach (JObject badOrderObj in prodObjs["data"]) { - var oStr = JsonHelper.SerializeObject(refundOrderObj); + var oStr = JsonHelper.SerializeObject(badOrderObj); var refundOrder = JsonHelper.DeserializeJsonToObject(oStr); if (lstWxOptimizeOrderAfterSaleInfo.Any(o => o.orderInfo.orderId == refundOrder.orderInfo.orderId)) continue; @@ -912,9 +927,9 @@ namespace TemuKJD.WXForms.ShopForms break; var productEvaluationInfoLst = new List(); - foreach (JObject refundOrderObj in prodObjs["finderProductEvaluationInfoList"]) + foreach (JObject badOrderObj in prodObjs["finderProductEvaluationInfoList"]) { - var oStr = JsonHelper.SerializeObject(refundOrderObj); + var oStr = JsonHelper.SerializeObject(badOrderObj); var prodEvaluationInfo = JsonHelper.DeserializeJsonToObject(oStr); if (lstWxOptimizeProductEvaluationInfo.Any(o => o.productEvaluationId == prodEvaluationInfo.productEvaluationId)) continue; @@ -1252,9 +1267,9 @@ namespace TemuKJD.WXForms.ShopForms })); List waybillLst = new List(); - foreach (JObject refundOrderObj in wayBillObjs["data"]) + foreach (JObject badOrderObj in wayBillObjs["data"]) { - var oStr = JsonHelper.SerializeObject(refundOrderObj); + var oStr = JsonHelper.SerializeObject(badOrderObj); var orderWayBill = JsonHelper.DeserializeJsonToObject(oStr); if (lstWxOptimizeOrderWayBillInfo.Any(o => o.orderInfo.orderId == orderWayBill.orderInfo.orderId)) continue; @@ -1611,9 +1626,9 @@ namespace TemuKJD.WXForms.ShopForms this.statusBar.lblTaskStatus.Text = "正在查询配送不达标,店铺:" + shop.ShopAccount + " " + page + "/" + totalPage; })); List optrimizeLinerCgiLst = new List(); - foreach (JObject refundOrderObj in wayBillObjs["list"]) + foreach (JObject badOrderObj in wayBillObjs["list"]) { - var oStr = JsonHelper.SerializeObject(refundOrderObj); + var oStr = JsonHelper.SerializeObject(badOrderObj); var orderLinerCgiInfo = JsonHelper.DeserializeJsonToObject(oStr); if (lstWxOptrimizeLinerCgiInfo.Any(o => o.order_id == orderLinerCgiInfo.order_id)) continue; @@ -1857,6 +1872,344 @@ namespace TemuKJD.WXForms.ShopForms } } + + public void SearchData5(ShopLoginInfo shop) + { + if (shop.LoginStatus != "登录成功") + { + return; + } + + // 查询店铺是24小时时效还是48小时时效 + bool is24 = false; + var is24Rst = ShopOptimize.Get24H48HFlag(shop); // if_24hOr_48hFlag + if (!is24Rst.Contains("\"code\":0") || BaseRegex.GetStringJson(ref is24Rst, "if_24hOr_48hFlag").IsNullOrEmpty()) + { + var error = BaseRegex.GetStringJson(ref is24Rst, "msg"); + if (string.IsNullOrEmpty(error)) + error = is24Rst; + + WXShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false); + if (shop.LoginStatus != "登录成功") + { + var shopIdLst = dgvShop.Rows.Cast().Where(row + => row.Cells["colSelect"]?.Value.ParseToBool() == true).Select(r => r.Cells["colShopId"]?.Value.ToString()).ToList(); + Invoke(new Action(() => { BindShop(shop, shopIdLst, "店铺掉线"); })); + } + else + { + Invoke(new Action(() => + { + var shopRow = dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ParseToString() == shop.ShopId); + if (shopRow != null) + { + shopRow.Cells["colMessage"].Value = "查询时效失败" + error; + if (error.Contains("\"code\":2") && error.Contains("[194,62,3,176,14,1]")) + shopRow.Cells["colMessage"].Value = "店铺无时效评分"; + } + })); + } + return; + } + is24 = BaseRegex.GetStringJson(ref is24Rst, "if_24hOr_48hFlag") == "1"; + + int page = 0; + int totalPage = 1; + int pageSize = 20; + int startTime = BaseClass.DateTimeToTimestampSeconds(DateTime.Now.Date.AddDays(-30)); + int endTime = BaseClass.DateTimeToTimestampSeconds(DateTime.Now) - 1; + while (page < totalPage) + { + page++; + + if (cancellationTokenSource.IsCancellationRequested) + break; + + var getData5 = ShopOptimize.GetFeedbackOrder(shop, page, startTime, endTime, is24); + Thread.Sleep(Randomx.GetId(300, 600)); + if (!getData5.Contains("\"code\":0")) + { + var error = BaseRegex.GetStringJson(ref getData5, "msg"); + if (string.IsNullOrEmpty(error)) + error = getData5; + + WXShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false); + if (shop.LoginStatus != "登录成功") + { + var shopIdLst = dgvShop.Rows.Cast().Where(row + => row.Cells["colSelect"]?.Value.ParseToBool() == true).Select(r => r.Cells["colShopId"]?.Value.ToString()).ToList(); + Invoke(new Action(() => { BindShop(shop, shopIdLst, "店铺掉线"); })); + } + else + { + Invoke(new Action(() => + { + var shopRow = dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ParseToString() == shop.ShopId); + if (shopRow != null) + shopRow.Cells["colMessage"].Value = error; + })); + } + break; + } + + try + { + var feedbackObjs = JsonHelper.JObjectParse(getData5); + if (page == 1) + { + var totalNum = feedbackObjs["total"].ParseToInt(); + totalPage = Math.Ceiling(1m * totalNum / pageSize).ParseToInt(); + } + Invoke(new Action(() => + { + this.pictureBox5.Visible = true; + this.statusBar.lblTaskStatus.Text = "正在查询反向物流,店铺:" + shop.ShopAccount + " " + page + "/" + totalPage; + })); + List optrimizeFeedbackOrderLst = new List(); + foreach (JObject badOrderObj in feedbackObjs["data"]) + { + var oStr = JsonHelper.SerializeObject(badOrderObj); + var feedbackOrderInfo = JsonHelper.DeserializeJsonToObject(oStr); + if (lstWxOptimizeFeedbackOrderInfo.Any(o => o.orderInfo.orderId == feedbackOrderInfo.orderInfo.orderId)) + continue; + feedbackOrderInfo.shopId = shop.ShopId; + feedbackOrderInfo.shopName = shop.ShopAccount; + + optrimizeFeedbackOrderLst.Add(feedbackOrderInfo); + } + + // 获取收货地址 + if (1 == 1) + { + var orderIds = string.Join(",", optrimizeFeedbackOrderLst.Select(f => f.orderInfo.orderId)); + var getOrderRst = ShopOptimize.orderSearchByOrderId(shop, orderIds); + Thread.Sleep(Randomx.GetId(200, 350)); + if (!getOrderRst.Contains("\"code\":0")) + { + var error = BaseRegex.GetStringJson(ref getOrderRst, "msg"); + if (string.IsNullOrEmpty(error)) + error = getOrderRst; + + foreach (var linerCgi in optrimizeFeedbackOrderLst) + { + linerCgi.province = "地址获取失败"; + } + } + else + { + try + { + var orderObj = JsonHelper.JObjectParse(getOrderRst)["orderList"]; + var wxOrderLst = JsonHelper.DeserializeJsonToList(JsonHelper.SerializeObject(orderObj)); + + foreach (var feedbackOrder in optrimizeFeedbackOrderLst) + { + var wxOrder = wxOrderLst.FirstOrDefault(o => o.commonInfo.orderId == feedbackOrder.orderInfo.orderId); + if (wxOrder != null) + { + feedbackOrder.orderTime = wxOrder.commonInfo.createTime; + feedbackOrder.province = wxOrder.acceptInfo.addressInfo.provinceName; + feedbackOrder.city = wxOrder.acceptInfo.addressInfo.cityName; + feedbackOrder.district = wxOrder.acceptInfo.addressInfo.countyName; + } + } + } + catch + { + foreach (var linerCgi in optrimizeFeedbackOrderLst) + { + linerCgi.province = "地址解析失败"; + } + } + } + } + + // 查询是否被优化过 + var url = BaseClass.BuildObjString("shop/get_waybill_no_user_name"); + var data = ""; + data = UserLogin.GetSignaturex(); + data += "&status=2"; + data += "&order_ids=" + string.Join(",", optrimizeFeedbackOrderLst.Select(f => f.orderInfo.orderId)); + var 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")) + html = GetHtml.PostUtf8(url, data); + if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200")) + { + foreach (var linerCgi in optrimizeFeedbackOrderLst) + { + linerCgi.optimizeWaybillId = "查询失败"; + linerCgi.optimizeTime = ""; + } + } + else + { + try + { + var jArr = JObject.Parse(html)["data"]; + var sProd = JsonHelper.SerializeObject(jArr); + var optimizeLst = JsonHelper.DeserializeJsonToList(sProd); + foreach (var feedbackOrder in optrimizeFeedbackOrderLst) + { + var ov = optimizeLst.FirstOrDefault(o => o.order_id == feedbackOrder.orderInfo.orderId); + feedbackOrder.optimizeWaybillId = ov == null ? "" : ov.waybill_id; + feedbackOrder.optimizeTime = ov == null ? "" : ov?.use_time?.ToString("MM-dd HH:mm"); + if (!string.IsNullOrEmpty(feedbackOrder.optimizeWaybillId)) + feedbackOrder.optimizeWaybillId = "已补发" + "\r\n" + ov?.delivery_id + ":" + ov?.waybill_id; + } + } + catch (Exception ex) + { + foreach (var linerCgi in optrimizeFeedbackOrderLst) + { + linerCgi.optimizeWaybillId = "查询失败"; + linerCgi.optimizeTime = ""; + } + } + } + + // 查询是否有失败记录 + url = BaseClass.BuildObjString("shop/get_express_optimize_rst"); + data = ""; + data = UserLogin.GetSignaturex(); + data += "&order_ids=" + string.Join(",", optrimizeFeedbackOrderLst.Select(f => f.orderInfo.orderId)); + 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")) + html = GetHtml.PostUtf8(url, data); + if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200")) + { + foreach (var feedbackOrder in optrimizeFeedbackOrderLst) + { + if (feedbackOrder.optimizeWaybillId.IsNullOrEmpty()) + { + feedbackOrder.optimizeWaybillId = "查询失败"; + feedbackOrder.optimizeTime = ""; + } + } + } + else + { + try + { + var jArr = JObject.Parse(html)["data"]; + var sProd = JsonHelper.SerializeObject(jArr); + var optimizeLst = JsonHelper.DeserializeJsonToList(sProd); + foreach (var feedbackOrder in optrimizeFeedbackOrderLst) + { + if (feedbackOrder.optimizeWaybillId.IsNullOrEmpty()) + { + var ov = optimizeLst.FirstOrDefault(o => o.order_id == feedbackOrder.orderInfo.orderId); + feedbackOrder.optimizeWaybillId = ov == null ? "" : ov.optimize_rst; + feedbackOrder.optimizeTime = ov == null ? "" : ov?.mdy_time.ToString("MM-dd HH:mm"); + } + } + } + catch (Exception ex) + { + foreach (var feedbackOrder in optrimizeFeedbackOrderLst) + { + if (feedbackOrder.optimizeWaybillId.IsNullOrEmpty()) + { + feedbackOrder.optimizeWaybillId = "查询失败"; + feedbackOrder.optimizeTime = ""; + } + } + } + } + + // 查询备注记录 + url = BaseClass.BuildObjString("shop/get_express_optimize_remark"); + data = ""; + data = UserLogin.GetSignaturex(); + data += "&order_ids=" + string.Join(",", optrimizeFeedbackOrderLst.Select(f => f.orderInfo.orderId)); + 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")) + { + foreach (var linerCgi in optrimizeFeedbackOrderLst) + { + linerCgi.remark = "备注查询失败"; + } + } + else + { + try + { + var jArr = JObject.Parse(html)["data"]; + var sProd = JsonHelper.SerializeObject(jArr); + var optimizeLst = JsonHelper.DeserializeJsonToList(sProd); + foreach (var feedbackOrder in optrimizeFeedbackOrderLst) + { + var ov = optimizeLst.FirstOrDefault(o => o.order_id == feedbackOrder.orderInfo.orderId); + feedbackOrder.remark = ov == null ? "" : ov.remark; + } + } + catch (Exception ex) + { + foreach (var linerCgi in optrimizeFeedbackOrderLst) + { + linerCgi.remark = "备注查询失败 " + ex.Message; + } + } + } + + foreach (var feedbackOrder in optrimizeFeedbackOrderLst) + { + if (CheckOrderExist(feedbackOrder.orderInfo.orderId)) + continue; + + lstWxOptimizeFeedbackOrderInfo.Add(feedbackOrder); + Invoke(new Action(() => + { + var rowIndex = this.dgvData5.Rows.Add( + false, + shop.ShopId, + shop.ShopAccount, + "登录", + "进店", + feedbackOrder.orderInfo.imgUrl, + DataGridViewExtension.defaultBitmap, + feedbackOrder.orderInfo.spuId, + feedbackOrder.orderInfo.name, + feedbackOrder.orderInfo.productCnt, + feedbackOrder.orderInfo.skuCode, + feedbackOrder.orderInfo.orderId, + feedbackOrder.province + feedbackOrder.city + feedbackOrder.district, + feedbackOrder.orderTime.IsNullOrZero() ? "" : BaseClass.StampToDateTime(feedbackOrder.orderTime.ParseToInt()).ToString("yyyy-MM-dd HH:mm:ss"), + feedbackOrder.delivery.deliveryName, + feedbackOrder.waybillId, + feedbackOrder.complainReason, + feedbackOrder.negativeReviewReason, + feedbackOrder.optimizeTime + "\r\n" + feedbackOrder.optimizeWaybillId.Replace("修改物流信息失败", "补发失败"), + "补发", + feedbackOrder.remark.Trim().IsNullOrEmpty() ? "添加备注" : feedbackOrder.remark.Trim() + ); + + var row = dgvData5.Rows[rowIndex]; + row.Height = 60; + if (feedbackOrder.optimizeWaybillId.Contains("失败")) + row.Cells["colDgv5OptimizeStatus"].Style.ForeColor = Color.Red; + else if (!feedbackOrder.optimizeTime.IsNullOrEmpty() && !feedbackOrder.optimizeTime.ParseToString().StartsWith(DateTime.Now.ToString("MM-dd"))) + row.Cells["colDgv5OptimizeStatus"].Style.ForeColor = Color.Orange; + })); + } + } + catch (Exception ex) + { + Invoke(new Action(() => + { + var shopRow = dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ParseToString() == shop.ShopId); + if (shopRow != null) + shopRow.Cells["colMessage"].Value = ex.Message; + })); + } + } + } + private void btnCancel_Click(object sender, EventArgs e) { if (this.cancellationTokenSource != null) @@ -2055,6 +2408,9 @@ namespace TemuKJD.WXForms.ShopForms lblShopName.Text = shop.ShopAccount; lblShopId.Text = shop.ShopId; lblOrderId.Text = orderId; + txtRemark.Text = row.Cells[$"colDgv{dgvNum}Remark"].Value.ParseToString(); + if (txtRemark.Text == "添加备注") + txtRemark.Text = ""; pnlUpdateRemark.Parent = dgvData.Parent; pnlUpdateRemark.BringToFront(); pnlUpdateRemark.Visible = true; @@ -2084,6 +2440,8 @@ namespace TemuKJD.WXForms.ShopForms return true; if (lstWxOptrimizeLinerCgiInfo.Any(o => o.order_id == orderId)) return true; + if (lstWxOptimizeFeedbackOrderInfo.Any(o => o.orderInfo.orderId == orderId)) + return true; return false; } @@ -2212,6 +2570,7 @@ namespace TemuKJD.WXForms.ShopForms if (is24) referer = "https://store.weixin.qq.com/shop/setting/ratedetail?type=logistics&key=waybillArriveOntimeRatio_30d&valid=collectIn_24hOrdRatio_30d|waybillArriveOntimeRatio_30d|waybillNegtiveOrdRatio_30d"; + // 该接口开始结束传同一个值,可能是wx页面bug string body = @"{""time_query"":{""dateFormat"":2,""dateType"":0,""dateRange"":30,""startMs"":" + endTick + @",""endMs"":" + endTick + @"},""limit"":10,""offset"":" + (Math.Max(0, pageId - 1) * 10) + @",""id"":""ratedetail-wuliu-route-order-table"",""biz"":""store"",""is_std"":""0"",""sort"":[""std_route_rate"",""desc""]}"; @@ -2219,6 +2578,20 @@ namespace TemuKJD.WXForms.ShopForms return result; } + public static string GetFeedbackOrder(ShopLoginInfo shop, int page, int beginTs, int endTs, bool is24 = false) + { + string url = "https://store.weixin.qq.com/shop-faas/statistic/dsr/logistics/feedback/order?token=&lang=zh_CN"; + string referer = "https://store.weixin.qq.com/shop/setting/ratedetail?type=logistics&key=waybillNegtiveOrdRatio_30d&valid=collectIn_48hOrdRatio_30d|waybillArriveOntimeRatio_30d|waybillNegtiveOrdRatio_30d&detail=company"; + if (is24) + referer = "https://store.weixin.qq.com/shop/setting/ratedetail?type=logistics&key=waybillNegtiveOrdRatio_30d&valid=collectIn_24hOrdRatio_30d|waybillArriveOntimeRatio_30d|waybillNegtiveOrdRatio_30d&detail=company"; + + string body = @"{""page"":" + page + @",""pageSize"":20,""beginTs"":" + beginTs + @",""endTs"":" + endTs + @"}"; + + var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, body, referer); + return result; + } + + public static string orderSearch(ShopLoginInfo shop, string prodTitle, string receiverName) { string url = "https://store.weixin.qq.com/shop-faas/mmchannelstradeorder/list/cgi/orderSearch?token=&lang=zh_CN"; diff --git a/TEMUKJD/WXForms/ShopForms/WXShopOptimizeForm.resx b/TEMUKJD/WXForms/ShopForms/WXShopOptimizeForm.resx index 0e16f69..5c2d585 100644 --- a/TEMUKJD/WXForms/ShopForms/WXShopOptimizeForm.resx +++ b/TEMUKJD/WXForms/ShopForms/WXShopOptimizeForm.resx @@ -186,7 +186,7 @@ True - + True @@ -303,7 +303,7 @@ True - + True @@ -360,16 +360,16 @@ True - + True - + True - + True - + True @@ -381,7 +381,7 @@ True - + True @@ -405,70 +405,67 @@ 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/ShopForms/WxShopStatisticsForm.Designer.cs b/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.Designer.cs index c9be8b4..6238dd4 100644 --- a/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.Designer.cs +++ b/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.Designer.cs @@ -105,6 +105,7 @@ namespace TemuKJD.WXForms.ShopForms this.colSubUser = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colOnSaleProductNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colScore = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colScoreChange = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colPayCnt = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colPayCnt1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colPayCnt7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -1012,6 +1013,7 @@ namespace TemuKJD.WXForms.ShopForms this.colSubUser, this.colOnSaleProductNumber, this.colScore, + this.colScoreChange, this.colPayCnt, this.colPayCnt1, this.colPayCnt7, @@ -1143,6 +1145,14 @@ namespace TemuKJD.WXForms.ShopForms this.colScore.ReadOnly = true; this.colScore.Width = 50; // + // colScoreChange + // + this.colScoreChange.FillWeight = 48F; + this.colScoreChange.HeaderText = "较前日"; + this.colScoreChange.Name = "colScoreChange"; + this.colScoreChange.ReadOnly = true; + this.colScoreChange.Width = 50; + // // colPayCnt // this.colPayCnt.FillWeight = 60F; @@ -1395,6 +1405,7 @@ namespace TemuKJD.WXForms.ShopForms private System.Windows.Forms.DataGridViewTextBoxColumn colSubUser; private System.Windows.Forms.DataGridViewTextBoxColumn colOnSaleProductNumber; private System.Windows.Forms.DataGridViewTextBoxColumn colScore; + private System.Windows.Forms.DataGridViewTextBoxColumn colScoreChange; private System.Windows.Forms.DataGridViewTextBoxColumn colPayCnt; private System.Windows.Forms.DataGridViewTextBoxColumn colPayCnt1; private System.Windows.Forms.DataGridViewTextBoxColumn colPayCnt7; diff --git a/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.cs b/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.cs index 2730204..0ba47bd 100644 --- a/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.cs +++ b/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.cs @@ -3,6 +3,7 @@ using AllBase.Extension; using AllBase.Helper; using AllBase.Model.Config; using AllBase.Model.Result; +using AllBase.Model.Result.WXResult; using NaiBa.Util.Extension; using NaiBa.Util.Winform.Extension; using System; @@ -158,6 +159,7 @@ namespace TemuKJD.WXForms.ShopForms { row.Cells["colOnSaleProductNumber"].Value = ""; // 商品数量 row.Cells["colScore"].Value = ""; // 店铺体验分 + row.Cells["colScoreChange"].Value = ""; // 较昨日变化 row.Cells["colPayCnt"].Value = ""; // 今日订单 row.Cells["colPayCnt7"].Value = ""; // 7日订单 row.Cells["colPayCnt30"].Value = ""; // 30日订单 @@ -274,6 +276,12 @@ namespace TemuKJD.WXForms.ShopForms var subUserNames = shopEntity.SubUserName.Split(',').Where(su => !string.IsNullOrEmpty(su)); var subUsers = WXSubAccountShopEditForm.lstAllSubAccount.Where(su => subUserNames.Contains(su.user_name)); + decimal? scoreChange = null; + if (statistics.scoreRetInfo?.dsrScore?.valueList?.Count > 1) + scoreChange = statistics.scoreRetInfo?.dsrScore?.valueList[0].value - statistics.scoreRetInfo?.dsrScore?.valueList[1].value; // 较昨日变化 + //string scoreChangeStr = scoreChange == null ? "" : scoreChange.Value.ToString("+0.00;−0.00"); + string scoreChangeStr = scoreChange == null ? "" : scoreChange.Value.ToString("+0.00;-0.00"); + if (row == null) { int rowId = this.dgvShop.Rows.Add( @@ -288,6 +296,7 @@ namespace TemuKJD.WXForms.ShopForms string.Join(",", subUsers.Select(s => s.nick_name)), statistics.ProdCount.ParseToNullableInt(), // 在售商品 statistics.curScoreValue.ParseToNullableDecimal(), // 店铺体验分 + scoreChange, // 较昨日变化 statistics.WxShopSaleInfoToday.pay_order_cnt, // 今日订单 statistics.WxShopSaleInfo1Day.pay_order_cnt, // 昨日订单 statistics.WxShopSaleInfo7Day.pay_order_cnt, // 7日订单 @@ -332,6 +341,7 @@ namespace TemuKJD.WXForms.ShopForms row.Cells["colSubUser"].Value = string.Join(",", subUsers.Select(s => s.nick_name)); row.Cells["colOnSaleProductNumber"].Value = statistics.ProdCount.ParseToNullableInt(); // 商品数量 row.Cells["colScore"].Value = statistics.curScoreValue.ParseToNullableDecimal(); // 店铺体验分 + row.Cells["colScoreChange"].Value = scoreChange; // 较昨日变化 row.Cells["colPayCnt"].Value = statistics.WxShopSaleInfoToday.pay_order_cnt; // 今日订单 row.Cells["colPayCnt1"].Value = statistics.WxShopSaleInfo1Day.pay_order_cnt; // 昨日订单 row.Cells["colPayCnt7"].Value = statistics.WxShopSaleInfo7Day.pay_order_cnt; // 7日订单 @@ -354,6 +364,14 @@ namespace TemuKJD.WXForms.ShopForms row.Cells["colDepositBalance"].Value = statistics.WxShopAmount.DepositBalance * 0.01m; ; // 保证金 } + + row.Cells["colScore"].Style.ForeColor = DefaultForeColor; + if (statistics.scoreRetInfo?.dsrScore?.level == 3) + row.Cells["colScore"].Style.ForeColor = Color.DarkGreen; // Color.Green; + if (statistics.scoreRetInfo?.dsrScore?.level == 2) + row.Cells["colScore"].Style.ForeColor = Color.ForestGreen; // Color.MediumSeaGreen; + if (statistics.scoreRetInfo?.dsrScore?.level == 1) + row.Cells["colScore"].Style.ForeColor = Color.Red; } private void GetShopStatistics(ShopLoginInfo shop, WxShopSaleStatisticsGroup statistics) @@ -371,6 +389,7 @@ namespace TemuKJD.WXForms.ShopForms if (shopScoreRst.Contains("\"code\":0")) { statistics.curScoreValue = BaseRegex.GetDecimalJson(ref shopScoreRst, "curValue"); + statistics.scoreRetInfo = JsonHelper.DeserializeJsonToObject(JsonHelper.JObjectParse(shopScoreRst)["dsrScoreRet"].ParseToString()); } else { @@ -764,9 +783,9 @@ namespace TemuKJD.WXForms.ShopForms statistics.WxShopSaleInfo1Day.LastRefreshDate = DateTime.MinValue; statistics.WxShopSaleInfo7Day.LastRefreshDate = DateTime.MinValue; statistics.WxShopSaleInfo30Day.LastRefreshDate = DateTime.MinValue; + statistics.lastRefreshDate = DateTime.MinValue; } //this.lstSubOrderInfo.RemoveAll(o => o.supplierId.ParseToString() == shop.ShopId); - } this.pbLoading.Visible = true; diff --git a/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.resx b/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.resx index 5018b0c..160ae00 100644 --- a/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.resx +++ b/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.resx @@ -150,6 +150,9 @@ True + + True + True diff --git a/TEMUKJD/WXForms/TalkForms/PDDBuyerOrderListForm.cs b/TEMUKJD/WXForms/TalkForms/PDDBuyerOrderListForm.cs index 8ed6c4b..2b3f47e 100644 --- a/TEMUKJD/WXForms/TalkForms/PDDBuyerOrderListForm.cs +++ b/TEMUKJD/WXForms/TalkForms/PDDBuyerOrderListForm.cs @@ -921,6 +921,7 @@ namespace TemuKJD.WXForms.TalkForms if (cancellationTokenSource.IsCancellationRequested) break; + CheckBuyerLogin(new List() { buyer }); if (buyer.status != "在线") continue; @@ -954,11 +955,20 @@ namespace TemuKJD.WXForms.TalkForms Thread.Sleep(Randomx.GetId(2000, 3000)); int top = 0; + int times = 0; while (currentReadBuyer == readBuyer) { if (cancellationTokenSource.IsCancellationRequested) break; + if (times % 100 == 0) + { + CheckBuyerLogin(new List() { buyer }); + } + if (buyer.status != "在线") + break; + times++; + Invoke(new Action(() => { buyer.browser.BringToFront(); })); top += Randomx.GetId(450, 600); @@ -999,6 +1009,14 @@ namespace TemuKJD.WXForms.TalkForms if (cancellationTokenSource.IsCancellationRequested) break; + if (times % 100 == 0) + { + CheckBuyerLogin(new List() { buyer }); + } + if (buyer.status != "在线") + break; + times++; + Invoke(new Action(() => { buyer.browser.BringToFront(); })); top += Randomx.GetId(450, 600); @@ -1039,6 +1057,14 @@ namespace TemuKJD.WXForms.TalkForms if (cancellationTokenSource.IsCancellationRequested) break; + if (times % 100 == 0) + { + CheckBuyerLogin(new List() { buyer }); + } + if (buyer.status != "在线") + break; + times++; + Invoke(new Action(() => { buyer.browser.BringToFront(); })); top += Randomx.GetId(450, 600);