diff --git a/AllBase/AllBase.csproj b/AllBase/AllBase.csproj index f65a829..c1440ce 100644 --- a/AllBase/AllBase.csproj +++ b/AllBase/AllBase.csproj @@ -194,6 +194,7 @@ + diff --git a/AllBase/Model/Result/TemuDBPriceInfo.cs b/AllBase/Model/Result/TemuDBPriceInfo.cs new file mode 100644 index 0000000..d6048b7 --- /dev/null +++ b/AllBase/Model/Result/TemuDBPriceInfo.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AllBase.Model.Result +{ + public class TemuDBPriceInfo + { + public int id { get; set; } + public string ext_code { get; set; } + public int original_price { get; set; } + public int markup_times { get; set; } + public int extra_price { get; set; } + public string notes { get; set; } + public DateTime add_time { get; set; } + public DateTime mdy_time { get; set; } + } +} diff --git a/KJDService/KJD_WebService/BLL/PriceManage.cs b/KJDService/KJD_WebService/BLL/PriceManage.cs new file mode 100644 index 0000000..f827f59 --- /dev/null +++ b/KJDService/KJD_WebService/BLL/PriceManage.cs @@ -0,0 +1,285 @@ +using KJD_Web.Model; +using KJD_Web.Utils; +using MySql.Data.MySqlClient; +using NaiBa.Util.Extension; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Web; +using System.Web.Security; + +namespace KJD_Web.BLL +{ + public class PriceManage + { + public string AddPrice(string inputData) + { + if (!string.IsNullOrEmpty(inputData)) + { + var time = RegexUtils.GetStringQuery(ref inputData, "time").ParseToInt(); + string time1 = RegexUtils.GetStringQuery(ref inputData, "code"); + if (time1 != EncrypUtil.Encryption(time)) + return "{\"code\":50000,\"msg\":\"校验失败\"}"; + + string user_name = RegexUtils.GetStringQuery(ref inputData, "user_name"); + string ext_code = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "ext_code")).ParseToString(); + int original_price = RegexUtils.GetStringQuery(ref inputData, "original_price").ParseToInt(); + int markup_times = RegexUtils.GetStringQuery(ref inputData, "markup_times").ParseToInt(); + int extra_price = RegexUtils.GetStringQuery(ref inputData, "extra_price").ParseToInt(); + string notes = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "notes")).ParseToString(); + + if (string.IsNullOrEmpty(user_name)) + { + return "{\"code\":500,\"msg\":\"没有用户名\"}"; + } + + string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString; + MysqlUtils mySql = new MysqlUtils(conn); + string sqlExist = "select count(ext_code) from kjd.price_markup where ext_code=@ext_code"; + string sql = "insert into kjd.price_markup " + + "(ext_code,original_price,markup_times,extra_price,notes) " + + "values (@ext_code,@original_price,@markup_times,@extra_price,@notes);"; + List paramLst = new List(); + paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "@ext_code", Value = ext_code, }); + paramLst.Add(new MySqlParameter() { DbType = DbType.Int32, ParameterName = "@original_price", Value = original_price, }); + paramLst.Add(new MySqlParameter() { DbType = DbType.Int32, ParameterName = "@markup_times", Value = markup_times, }); + paramLst.Add(new MySqlParameter() { DbType = DbType.Int32, ParameterName = "@extra_price", Value = extra_price, }); + paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "@notes", Value = notes, }); + + var has = mySql.ExecuteFirst(sqlExist, paramLst.ToArray()); + if (has != "0") + { + mySql.Close(); + return "{\"code\":501,\"msg\":\"货号 " + ext_code + " 价格数据已存在\"}"; + } + + var rst = mySql.ExecuteNonQuery(sql, paramLst.ToArray()); + mySql.Close(); + if (rst) + { + return "{\"code\":200,\"msg\":\"success\"}"; + } + else + { + return "{\"code\":502,\"msg\":\"" + mySql.Message + "\"}"; + } + } + return "{\"code\":19999,\"msg\":\"输入为空\"}"; + } + + public string GetPriceList(string inputData) + { + if (!string.IsNullOrEmpty(inputData)) + { + var time = RegexUtils.GetStringQuery(ref inputData, "time").ParseToInt(); + string time1 = RegexUtils.GetStringQuery(ref inputData, "code"); + if (time1 != EncrypUtil.Encryption(time)) + return "{\"code\":50000,\"msg\":\"校验失败\"}"; + + var user_name = RegexUtils.GetStringQuery(ref inputData, "user_name"); + var password = RegexUtils.GetStringQuery(ref inputData, "password"); + + string start_original_price = RegexUtils.GetStringQuery(ref inputData, "start_original_price"); + string end_original_price = RegexUtils.GetStringQuery(ref inputData, "end_original_price"); + string start_markup_times = RegexUtils.GetStringQuery(ref inputData, "start_markup_times"); + string end_markup_times = RegexUtils.GetStringQuery(ref inputData, "end_markup_times"); + string start_extra_price = RegexUtils.GetStringQuery(ref inputData, "start_extra_price"); + string end_extra_price = RegexUtils.GetStringQuery(ref inputData, "end_extra_price"); + var search_ext_code = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "search_ext_code")); + var search_notes = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "search_notes")); + var in_ext_code = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "in_ext_code")); + int page = RegexUtils.GetStringQuery(ref inputData, "page").ParseToInt(); + int page_size = RegexUtils.GetStringQuery(ref inputData, "page_size").ParseToInt(50); + if (string.IsNullOrEmpty(user_name)) + { + return "{\"code\":500,\"msg\":\"没有用户名\"}"; + } + + + List paramLst = new List(); + paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "@search_ext_code", Value = "%" + search_ext_code + "%", }); + paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "@search_notes", Value = "%" + search_notes + "%", }); + paramLst.Add(new MySqlParameter() { DbType = DbType.Int32, ParameterName = "@start_original_price", Value = start_original_price.ParseToInt(), }); + paramLst.Add(new MySqlParameter() { DbType = DbType.Int32, ParameterName = "@end_original_price", Value = end_original_price.ParseToInt(), }); + paramLst.Add(new MySqlParameter() { DbType = DbType.Int32, ParameterName = "@start_markup_times", Value = start_markup_times.ParseToInt(), }); + paramLst.Add(new MySqlParameter() { DbType = DbType.Int32, ParameterName = "@end_markup_times", Value = end_markup_times.ParseToInt(), }); + paramLst.Add(new MySqlParameter() { DbType = DbType.Int32, ParameterName = "@start_extra_price", Value = start_extra_price.ParseToInt(), }); + paramLst.Add(new MySqlParameter() { DbType = DbType.Int32, ParameterName = "@end_extra_price", Value = end_extra_price.ParseToInt(), }); + paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "@in_ext_code", Value = "'" + in_ext_code?.Replace(",","','") + "'", }); + + string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString; + MysqlUtils mySql = new MysqlUtils(conn); + + string sql = "select count(id) from kjd.price_markup p where 1=1"; + + string where = ""; + if (!string.IsNullOrWhiteSpace(search_ext_code)) + where += " and p.ext_code like @search_ext_code"; + if (!string.IsNullOrWhiteSpace(search_notes)) + where += " and p.notes like @search_notes"; + if (!string.IsNullOrWhiteSpace(start_original_price)) + where += " and p.original_price >= @start_original_price"; + if (!string.IsNullOrWhiteSpace(end_original_price)) + where += " and p.original_price <= @end_original_price"; + if (!string.IsNullOrWhiteSpace(start_markup_times)) + where += " and p.markup_times >= @start_markup_times"; + if (!string.IsNullOrWhiteSpace(end_markup_times)) + where += " and p.markup_times <= @end_markup_times"; + if (!string.IsNullOrWhiteSpace(start_extra_price)) + where += " and p.extra_price >= @start_extra_price"; + if (!string.IsNullOrWhiteSpace(end_extra_price)) + where += " and p.extra_price <= @end_extra_price"; + if (!string.IsNullOrEmpty(in_ext_code)) + where += " and p.ext_code in (@in_ext_code)"; + sql += where; + + var count = mySql.ExecuteRowCount(sql, paramLst.ToArray()); + + DataTable dt; + if (count == 0) + { + dt = new DataTable(); + } + else + { + sql = "select * from kjd.price_markup p where 1=1"; + + //where子句 + sql += where; + + sql += " order by p.id desc"; + sql += " limit " + Math.Max(page - 1, 0) * page_size + "," + page_size; + dt = mySql.ExecuteDataTable(sql, paramLst.ToArray()); + } + + mySql.Close(); + if (dt != null) + { + try + { + List priceList = new List(); + foreach (DataRow row in dt.Rows) + { + DBPriceResultParam price = new DBPriceResultParam + { + id = row["id"].ParseToInt(), + extra_price = row["extra_price"].ParseToInt(), + markup_times = row["markup_times"].ParseToInt(), + original_price = row["original_price"].ParseToInt(), + notes = row["notes"].ParseToString(), + ext_code = row["ext_code"].ParseToString(), + add_time = Convert.ToDateTime(row["add_time"]), + mdy_time = Convert.ToDateTime(row["mdy_time"]), + }; + priceList.Add(price); + } + var data = JsonUtils.SerializerObjectToString(priceList); + return "{\"code\":200,\"msg\":\"success\",\"data\":" + data + ",\"count\":" + count + "}"; + } + catch (Exception ex) + { + return "{\"code\":500,\"msg\":\"" + ex.Message + "\",\"data\":[],\"count\":" + 0 + "}"; + } + } + else + { + return "{\"code\":500,\"msg\":\"" + mySql.Message + "\",\"data\":[],\"count\":" + 0 + "}"; + } + } + return "{\"code\":19999,\"msg\":\"输入为空\"}"; + } + + public string DelDbPrice(string inputData) + { + if (!string.IsNullOrEmpty(inputData)) + { + var time = RegexUtils.GetStringQuery(ref inputData, "time").ParseToInt(); + string time1 = RegexUtils.GetStringQuery(ref inputData, "code"); + if (time1 != EncrypUtil.Encryption(time)) + return "{\"code\":50000,\"msg\":\"校验失败\"}"; + + var user_name = RegexUtils.GetStringQuery(ref inputData, "user_name")?.Replace("'", "\\'"); + var id = RegexUtils.GetStringQuery(ref inputData, "db_id")?.Replace("'", "\\'"); + + if (string.IsNullOrEmpty(user_name)) + { + return "{\"code\":500,\"msg\":\"没有用户名\"}"; + } + + string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString; + MysqlUtils mySql = new MysqlUtils(conn); + string sql = "delete from kjd.price_markup where id='" + id + "'"; + + 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\":\"输入为空\"}"; + } + + public string MdyDBPrice(string inputData, bool isAdmin = false) + { + if (!string.IsNullOrEmpty(inputData)) + { + var time = RegexUtils.GetStringQuery(ref inputData, "time").ParseToInt(); + string time1 = RegexUtils.GetStringQuery(ref inputData, "code"); + if (time1 != EncrypUtil.Encryption(time)) + return "{\"code\":50000,\"msg\":\"校验失败\"}"; + + var user_name = RegexUtils.GetStringQuery(ref inputData, "user_name"); + var id = RegexUtils.GetStringQuery(ref inputData, "db_id"); + string notes = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "notes")); + string ext_code = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "ext_code")); + string original_price = RegexUtils.GetStringQuery(ref inputData, "original_price"); + string markup_times = RegexUtils.GetStringQuery(ref inputData, "markup_times"); + string extra_price = RegexUtils.GetStringQuery(ref inputData, "extra_price"); + + if (string.IsNullOrEmpty(user_name)) + { + return "{\"code\":500,\"msg\":\"没有用户名\"}"; + } + + List paramLst = new List(); + paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "@ext_code", Value = ext_code, }); + paramLst.Add(new MySqlParameter() { DbType = DbType.Int32, ParameterName = "@original_price", Value = original_price.ParseToInt(), }); + paramLst.Add(new MySqlParameter() { DbType = DbType.Int32, ParameterName = "@markup_times", Value = markup_times.ParseToInt(), }); + paramLst.Add(new MySqlParameter() { DbType = DbType.Int32, ParameterName = "@extra_price", Value = extra_price.ParseToInt(), }); + paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "@notes", Value = notes, }); + + string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString; + MysqlUtils mySql = new MysqlUtils(conn); + string sql = "update kjd.price_markup set"; + if (notes != null) + sql += " notes=@notes,"; + //if (ext_code != null) + // sql += " ext_code=@ext_code,"; + if (original_price != null) + sql += " original_price=@original_price,"; + if (markup_times != null) + sql += " markup_times=@markup_times,"; + if (extra_price != null) + sql += " extra_price=@extra_price,"; + sql = sql.TrimEnd(','); + sql += " where id=@id;"; + + 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\":\"输入为空\"}"; + } + } +} \ No newline at end of file diff --git a/KJDService/KJD_WebService/BLL/UpadteManage.cs b/KJDService/KJD_WebService/BLL/UpadteManage.cs index 31e3b99..47383d6 100644 --- a/KJDService/KJD_WebService/BLL/UpadteManage.cs +++ b/KJDService/KJD_WebService/BLL/UpadteManage.cs @@ -1,4 +1,5 @@ using KJD_Web.Utils; +using NaiBa.Util.Extension; using System; using System.Collections.Generic; using System.Linq; @@ -21,21 +22,25 @@ namespace KJD_Web.BLL if (time1 != EncrypUtil.Encryption(time)) return "{\"code\":50000,\"msg\":\"校验失败\"}"; - var version = 0; - int.TryParse(RegexUtils.GetStringQuery(ref inputData, "version"), out version); + var version = RegexUtils.GetStringQuery(ref inputData, "version").ParseToInt(); var serverVersion = System.Configuration.ConfigurationManager.ConnectionStrings["UpdateVersion"].ConnectionString; var UpdateFiles = System.Configuration.ConfigurationManager.ConnectionStrings["UpdateFiles"].ConnectionString; var UpdateExe = System.Configuration.ConfigurationManager.ConnectionStrings["UpdateExe"].ConnectionString; var UpdateExeChk = System.Configuration.ConfigurationManager.ConnectionStrings["UpdateExeChk"].ConnectionString; + var LowVersion = System.Configuration.ConfigurationManager.ConnectionStrings["LowVersion"].ConnectionString; - if (version > 0) + if (version > LowVersion.ParseToInt()) { return "{\"code\":200,\"msg\":\"success\",\"next_version\":" + serverVersion + ",\"exe_check\":\"" + UpdateExeChk + "\",\"exe_address\":\"" + UpdateExe + "\",\"file_address\":\"" + UpdateFiles + "\"}"; } + else if (version > 0) + { + return "{\"code\":501,\"msg\":\"版本过低已无法直接升级,请联系管理员获取最新安装包\"}"; + } else { - return "{\"code\":501,\"msg\":\"failed\"}"; + return "{\"code\":502,\"msg\":\"get update version failed\"}"; } } return "{\"code\":19999,\"msg\":\"未知错误\"}"; diff --git a/KJDService/KJD_WebService/Global.asax.cs b/KJDService/KJD_WebService/Global.asax.cs index 4b239ae..851483f 100644 --- a/KJDService/KJD_WebService/Global.asax.cs +++ b/KJDService/KJD_WebService/Global.asax.cs @@ -48,6 +48,11 @@ namespace KJD_Web hPath = hPath.Replace("/product_third/", "/ProductThirdService.asmx/"); Context.RewritePath(hPath); } + else if (!hPath.Contains(".asmx") && hPath.Contains("/price/")) + { + hPath = hPath.Replace("/price/", "/PriceService.asmx/"); + Context.RewritePath(hPath); + } } protected void Application_AuthenticateRequest(object sender, EventArgs e) diff --git a/KJDService/KJD_WebService/KJD_WebService.csproj b/KJDService/KJD_WebService/KJD_WebService.csproj index 2f70581..ba8b921 100644 --- a/KJDService/KJD_WebService/KJD_WebService.csproj +++ b/KJDService/KJD_WebService/KJD_WebService.csproj @@ -75,6 +75,7 @@ + @@ -84,6 +85,7 @@ + @@ -94,11 +96,16 @@ Global.asax + + + PriceService.asmx + Component + ProductThirdService.asmx Component diff --git a/KJDService/KJD_WebService/Model/DBPriceResultParam.cs b/KJDService/KJD_WebService/Model/DBPriceResultParam.cs new file mode 100644 index 0000000..b1c0350 --- /dev/null +++ b/KJDService/KJD_WebService/Model/DBPriceResultParam.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; + +namespace KJD_Web.Model +{ + public class DBPriceResultParam + { + public int id { get; set; } + public string ext_code { get; set; } + public int original_price { get; set; } + public int markup_times { get; set; } + public int extra_price { get; set; } + public string notes { get; set; } + public DateTime add_time { get; set; } + public DateTime mdy_time { get; set; } + } +} \ No newline at end of file diff --git a/KJDService/KJD_WebService/PriceService.asmx b/KJDService/KJD_WebService/PriceService.asmx new file mode 100644 index 0000000..1b09c54 --- /dev/null +++ b/KJDService/KJD_WebService/PriceService.asmx @@ -0,0 +1 @@ +<%@ WebService Language="C#" CodeBehind="PriceService.asmx.cs" Class="KJD_Web.PriceService" %> diff --git a/KJDService/KJD_WebService/PriceService.asmx.cs b/KJDService/KJD_WebService/PriceService.asmx.cs new file mode 100644 index 0000000..88169ea --- /dev/null +++ b/KJDService/KJD_WebService/PriceService.asmx.cs @@ -0,0 +1,100 @@ +using KJD_Web.BLL; +using KJD_Web.Utils; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Web; +using System.Web.Services; + +namespace KJD_Web +{ + /// + /// PriceService 的摘要说明 + /// + [WebService(Namespace = "http://tempuri.org/")] + [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] + [System.ComponentModel.ToolboxItem(false)] + // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消注释以下行。 + // [System.Web.Script.Services.ScriptService] + public class PriceService : System.Web.Services.WebService + { + private string GetRequestJsonString() + { + Context.Response.ContentType = "text/html;charset=utf-8"; + Context.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8"); + + using (Stream s = HttpContext.Current.Request.InputStream) // 获得json 字符流 + { + // 还原数据流 + byte[] b = new byte[s.Length]; + s.Read(b, 0, (int)s.Length); + string jsonText = Encoding.UTF8.GetString(b); // JSON字符串 + if (string.IsNullOrEmpty(jsonText)) + { + var qs = HttpContext.Current.Request.QueryString; + if (qs != null && qs.Keys.Count > 0) + { + jsonText = "{"; + foreach (var key in qs.Keys) + { + jsonText += "\"" + key + "\":" + "\"" + qs[key.ToString()] + "\";"; + } + jsonText = jsonText.TrimEnd(';') + "}"; + } + } + return jsonText; + } + } + + [WebMethod] + public void get_price_list() + { + string jsontext = GetRequestJsonString(); + + var result = jsontext; + result = new PriceManage().GetPriceList(jsontext); + + Context.Response.Write(result); + Context.Response.End(); + } + + [WebMethod] + public void add_price() + { + string jsontext = GetRequestJsonString(); + + var result = jsontext; + result = new PriceManage().AddPrice(jsontext); + + Context.Response.Write(result); + Context.Response.End(); + } + + [WebMethod] + public void del_db_price() + { + string jsontext = GetRequestJsonString(); + + var result = jsontext; + result = new PriceManage().DelDbPrice(jsontext); + + Context.Response.Write(result); + Context.Response.End(); + } + + + [WebMethod] + public void mdy_db_price() + { + string jsontext = GetRequestJsonString(); + + var result = jsontext; + result = new PriceManage().MdyDBPrice(jsontext); + + Context.Response.Write(result); + Context.Response.End(); + } + } +} diff --git a/KJDService/KJD_WebService/Web.config b/KJDService/KJD_WebService/Web.config index eee78e1..6643254 100644 --- a/KJDService/KJD_WebService/Web.config +++ b/KJDService/KJD_WebService/Web.config @@ -6,10 +6,11 @@ - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - - - AAABAAEAgIAQZAAAAABoKAAAFgAAACgAAACAAAAAAAEAAAEABAAAAAAAACgAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAgICAAMDAwAAAAP8AAP8AAAD//wD/AAAA/wD/AP// - AAD///8AAAAAAAAAAAAAAAAABEZmbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZmZkQAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAZszMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMxmAAAAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMxkAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzGQAAAAAAAAAAAAAAAAAAAbMzMzMzMzMzMzMzMzMzMzMzMzMd3d3d3d3d3 - d3d3fMzMzMzMzMzMzMzMzMzMzMzMzMYAAAAAAAAAAAAAAAAARszMzMzMzMzMzMzMzMzMzMd3d3iIiIiI - iIiIiIiIiIh3d3d8zMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAABszMzMzMzMzMzMzMzMzMx3eIiIiI - iIiIiIiIiIiIiIiIiIiIiHd8zMzMzMzMzMzMzMzMzMxgAAAAAAAAAAAAAGzMzMzMzMzMzMzMzMzMd4iI - iIiIiIiIiIiIiIiIiIiIiIiIiIiIiHfMzMzMzMzMzMzMzMzMxgAAAAAAAAAAAAbMzMzMzMzMzMzMzMzH - eIiIiIiIiIiHZmZmZmZmZmZmZ3eIiIiIiIiIiHzMzMzMzMzMzMzMzMxgAAAAAAAAAABszMzMzMzMzMzM - zMzHiIiIiIiHZmZmZmZmZmZmZmZmZmZmZmZmeIiIiIiIfMzMzMzMzMzMzMzMxgAAAAAAAAAGzMzMzMzM - zMzMzMzHiIiIiIdmZmZmZgAAAAAAAAAAAAZmZmZmZmZmeIiIiIh8zMzMzMzMzMzMzMxgAAAAAAAATMzM - zMzMzMzMzMzHiIiIiHZmZgAAAAAAAAAAAAEAAAAAAAAAAGZmZmZniIiIiHzMzMzMzMzMzMzMxAAAAAAA - AGzMzMzMzMzMzMzMeIiIiGZmAAAAAAERERmZmZmZmZmZkRERERAAAGZmZmZ4iIiIfMzMzMzMzMzMzMYA - AAAAAAbMzMzMzMzMzMzMeIiIiGZgAAAAERmZmZmZmZmZmZmZmZmZmZmZkREAAGZmZniIiIfMzMzMzMzM - zMzMYAAAAABMzMzMzMzMzMzMzIiIiHYAAAARGZmZiIiIj///////+IiIiIeZmZmZkREAZmZmiIiIfMzM - zMzMzMzMzMQAAAAAbMzMzMzMzMzMzO6IiIYAAAARmYiI/////////////////////4iHmZmZEQBmZmeI - iIh8zMzMzMzMzMzGAAAABMzMzMzMzMzMzMeIiIdgAAAZmI////////////////////////////iJmZmR - EGZmZ4iIh8zMzMzMzMzMzEAAAAbMzMzMzMzMzMzoiIhwAAAZeP////////////////////////////// - /4iZmZEAZmZ4iIh8zMzMzMzMzMxgAABMzMzMzMzMzMzOiIiGAAABiP////////////////////////// - ////////+JmZkQZmZ4iIh8zMzMzMzMzMxAAAbMzMzMzMzMzM7oiIYAABeP////////////////////// - ///////////////4mZkQZmZ4iIjMzMzMzMzMzMYAAMzMzMzMzMzMzu6IhwAAGP////////////////// - /////////////////////4iZmRZmZ4iIfMzMzMzMzMzMAAbMzMzMzMzMzM7oiHAAB4////////////// - ////////////////////////////iZmRBmZ4iIfMzMzMzMzMzGAGzMzMzMzMzMzuiIcAAHj///////// - //////////////////////////////////iZmRZmZ4iIzMzMzMzMzMxgDMzMzMzMzMzM7ohwAAf///// - ////////////////////////////////////////95mRZmaIiHzMzMzMzMzMwEzMzMzMzMzMzuiIEABo - //////////////////////////////////////////////95mRZmaIiMzMzMzMzMzMRszMzMzMzMzM7o - hwAGj///////////////////////////////////////////////95kQZmeIh8zMzMzMzMzGbMzMzMzM - zMzu6HEAB/////////////////////////////////////////////////+ZkQZmiIjMzMzMzMzMxmzM - zMzMzMzM7ohwAGj/////////////////////////////////////////////////iZkWZniIfMzMzMzM - zMZszMzMzMzMxu6HEAbv/4iI/////////////////////////////////////////4iP//iZEGZoiHzM - zMzMzMzGbMzMzMzMzM7uhxAGj/iIiIj//////////////////////////////////////4iIiI//mZFm - aIiMzMzMzMzMxszMzMzMzMzO6IEAbv+IiIiIj/////////////////////////////////////iIiIiP - /4mRBmeIh8zMzMzMzMbMzMzMzMzMbuhxAG7/iIiIiI////////////////iIj///j//////////////4 - iIiIiP/5mQZmiIfMzMzMzMzMzMzMzMzMzO7ocQDo+IiIiIiP///////////////u7u7u7u7o//////// - ////iIiIiIj/+JkWZoiHzMzMzMzMzMzMzMzMzMzu6BEG7/iIiIiIj/////////////+Hd3ju5maO7v// - /////////4iIiIiI//iZEGaIh8zMzMzMzMzMzMzMzMzM7ugRBu//iIiIiI//////////////kZmZdmAZ - mP/////////////4iIiIiP//mRBmeIjMzMzMzMzMzMzMzMzMzO7nEAbv/4iIiIiP////////////+HiI - mZEBd5n/////////////+IiIiIj//4mQZniIzMzMzMzMzMzMzMzMzMzu5xAO7//4iIiI//ju7o////// - //j//4mZeP/4//////////////iIiIiP//+JkGZ4iHzMzMzMzMzMzMzMzMzG7ocQDu///4iI//ju7u7u - j//////////4mP//////////////7u7uiIiI////iZBmaIh8zMzMzMzMzMzMzMzMzu6HEG7v//////+G - ZmZ47u7//////////4//////////////7u7u7u6P/////4mQBmiIfMzMzMzMzMzMzMzMzM7uhRBu7/// - ///3AAAAF37u7///////////////////////h2AABm7u7v/////5kAZ4iHzMzMzMzMzMzMzMzMzO7oUQ - bu//////gQAAZgEG7u//////////////////////+BAAAAAFfu6P////+ZAGeIjMzMzMzMzMzMzMzMzM - zu6FEG7v////+JEAAXhwAG7o/////////////////////4gAABEGARbu7/////kQBoiIzMzMzMzMzMzM - zMzMzM7uhRBu7/////iZABmZkQBm6P////////////////////+JABGZF2AAbo////+JEGaIiMzMzMzM - zMzMzMzMzMzO7ucRbu/////4mRZ4iZkQBu//////////////////////mQB5mZdgAG7/////iRBmiIfM - zMzMzMzMzMzMzMzMxu7nEQ7v////+Bl+j/iZEAaP/////////////////////5l2/4mRAABu/////4kQ - ZoiHzMzMzMzMzMzMzMzMzMzu5xEO6P//+Phgbu/4kQAI//////////////////////+Zfo/4kQAAeIiP - //+JEGaIh8zMzMzMzMzMzMzMzMzM7ucRBu7///iOYHiI+HAAf///////////////////////mYjv+BAA - BuiIj///iQBniIfMzMzMzMzMzMzMzMzMzO7nEQbu///3EAAG6IcRF4iP/////////////////////4GP - /4cQAAZnbv///5EAaIiMzMzMzMzMzMzMzMzMzMzu5xEW7v//iRF3dmZgAXjmj/////////////////// - ///3ePiBEQAHdm7///iRAGiIfMzMzMzMzMzMzMzMzMzM7u5xFu6P/5EZmXZmZmbmaP////////////// - ///////4/4d2cRAAFwbuj//4kQZoiHzMzMzMzMzMzMzMzMzMzG7ucRDu7/iXiZkQAAZmAH////////// - ////////////+IiIdmYABmAX//j/+BAGeIh8zMzMzMzMzMzMzMzMzMzO7nEQbu/4iP+BERkREZf///// - //////////////////+JmXdxEBEAB3////kQBoiIzMzMzMzMzMzMzMzMzMzMzu5xEW7o+P//gZmZmZmP - ////////////////////////+JmZmZmZl453//+JAGaIh8zMzMzMzMzMzMzMzMzMzM7u5xEO7vj/+IeP - iIj////////////////////////////4iZmZmZiPiP//cQBoiIfMzMzMzMzMzMzMzMzMzMzM7ucRFu6P - //iP//////////////////////////////////////+Jn/j/+JAAaIiMzMzMzMzMzMzMzMzMzMzMzO7n - ERbu7//4/////////////////////////////////////////4j///gQBoiIfMzMzMzMzMzMzMzMzMzM - zMzu7nERbuj////////////////////////////////////////////4//+BAAaIiMzMzMzMzMzMzMzM - zMzMzMzMzu5xEW7u////////////////////////////////////////////////cQBoiIfMzMzMzMzM - zMzMzMzMzMzMzM7u5xEW7u//////////////////////////////////////////////+BAAaIiMzMzM - zMzMzMzMzMzMzMzMzMzO7uYREO7o//7v//////////////////////////////////////////cABoiI - fMzMzMzMzMzMzMzMzMzMzMzMzO7ucRFu7oj/7o////////////////////////////////////////9x - AAeIiMzMzMzMzMzMzMzMzMzMzMzMzMzO7ucRFu7nePju7u7v//////////////////////////////// - 6P/4EAB4iIfMzMzMzMzMzMzMzMzMzMzMzMzMzu7nERBu7nmIiO7oj/////////////////////////// - ju7u7o//hwAGiIh8zMzMzMzMzMzMzMzMzMzMzMzMzMzu7nERbu7nmZl5eP////////////////////// - ///4iPiO5nj/+HAAaIiIzMzMzMzMzMzMzMzMzMzMzMzMzMzM7u7nERbu7oiZeI////////////////// - ////////+ImXd5mP/4cAAHiIh8zMzMzMzMzMzMzMzMzMzMzMzMzMzM7u53ERbu7v//////////////// - ///////////////4iZl4//hgAAeIiHzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM7u53ERBu7v////////// - //////////////////////////+GAAB4iI7MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzO7uiHEADujv//// - ///////////////////////////////3AAAGiIh8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzO7ohwABmP - ////////////////////////////////////iREAZniIjMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzuiI - EAB4f///////////////////////////////////+JmZkWZoiIfMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zO6IhwBo//////////////////////////////////////iImZl2ZoiIzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzuiHAA7////////////////////////////////////////4iZFmZ4iHzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzO6IgQBo/////4j///////////////////////////////////mZFmaIiMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzuiHAA7/////iIiP//////7o//////////////////iI/////4mRZmeIh8zMzMzM - zMzMzMzMzMzMzMzMzMzMzO6IcQBo////+IiIiI/////+7u7u7uiIiI7u7v////iIiI/////5mRZmiIjM - zMzMzMzMzMzMzMzMzMzMzMzMzMzuiHAA7////4iIiIiIj//3d2bu7u7u7u7u7u7//4iIiIiP////+JkW - ZniIfMzMzMzMzMzMzMzMzMzMzMzMzMzO6IcQBo////+IiIiIiI//+ZkAAGZmZmZmZmbv//iIiIiIiP// - //+ZkWZoiIzMzMzMzMzMzMzMzMzMzMzMzMzMzuiFAG7////4iIiIiIj///iZABEREREREBAG7//4iIiI - iIj/////iZFmaIiMzMzMzMzMzMzMzMzMzMzMzMzMzO6IcQBo////+IiIiIiI///4kQARERERERERDo// - +IiIiIiIj/////mZBmeIh8zMzMzMzMzMzMzMzMzMzMzMzMzuiHAG7////4iIiIiIiP//+JFmeHd3d3dx - EW6P//iIiIiIiI/////4mRZmiIfMzMzMzMzMzMzMzMzMzMzMzMzO7ocQBo////+IiIiIiIj///iQZoiO - 7u7u5xFu7//4iIiIiIiI////+JkWZniIzMzMzMzMzMzMzMzMzMzMzMzMzuiHEA7////4iIiIiIiP///5 - kGaIju7u7ucRbu///4iIiIiIiP////95kGZ4iHzMzMzMzMzMzMzMzMzMzMzMzM7ogQBu////+IiIiIiI - j///+RBmiI7u7u7nEW7v//+IiIiIiIiP////iZFmaIh8zMzMzMzMzMzMzMzMzMzMzMzu6HEAaP////iI - iIiIiI////kQZoiHzMzu5xEO6P//iIiIiIiIj////4mRZmiIjMzMzMzMzMzMzMzMzMzMzMzM7ugRBu// - ///4iIiIiIj///+JEGaIh8zM7ucRBu7//4iIiIiIiI/////5kQZniIzMzMzMzMzMzMzMzMzMzMzMzO6I - EAbv////iIiIiIiI////iQBniIzMzO7oERbu///4iIiIiIiP////+JkGZ4iHzMzMzMzMzMzMzMzMzMzM - zMbuhxAGj////4iIiIiIj////3kAaIiMzMzu7nEW7v//+IiIiIiIiP////iZFmaIh8zMzMzMzMzMzMzM - zMzMzMzO7oUQbv////+IiIiIiI////+RBmiIfMzMzu5xFu6P//+IiIiIiIj////4mRZmiIfMzMzMzMzM - zMzMzMzMzMzMzu6BAG7////4iIiIiIj////4kQZoiHzMzM7ucRDu7///iIiIiIiIj////5kQZoiHzMzM - zMzMzMzMzMzMzMzMzM7ocQBu////+IiIiIiI////+JAGeIh8zMzO7nERbu///4iIiIiIiI////95EGaI - h8zMzMzMzMzMzMzMzMzMzMxu6HEA7v////iIiIiIiP////cQBoiIzMzMzu7lEW7v///4iIiIiIiP//// - iRBmeIjMzMzMzMzMzMzMzMzMzMzM7uhxBuj////4iIiIiI/////5EAaIiMzMzMbu5xEO7v//+IiIiIiI - j////4kQZniIzMzMzMzMzMzMzMzMzMzMzO7oEQbv////+IiIiIj/////iQBmiIfMzMzM7ucRBu7///iI - iIiIiIj///+JkGZ4iMzMzMzMzMzMzMzMzMzMzMzu6BEG7/////iIiIiI/////4EAaIiHzMzMzO7nERbu - j///iIiIiIiI////iZBmaIh8zMzMzMzMzMzMzMzMzMzM7ucRBu/////4iIiIj/////+RAGiIjMzMzMzu - 7nEQ7u////iIiIiIiP///4mQBmiIfMzMzMzMzMzMzMzMzMzMzO7nEAbv////+IiIiP/////4EAZ4iHzM - zMzMzu5xEG7v///4iIiIiIj///+JkAZoiHzMzMzMzMzMxmzMzMzMzMzu5xAO7/////+IiI//////+RAG - iIjMzMzMzM7ucRFu7v///4iIiIiI////+ZAGaIh8zMzMzMzMzMZszMzMzMzG7ocQDu//////+I////// - /4EAZoiIzMzMzMzO7ucRBu7////4iIiIiP////mQBmiIfMzMzMzMzMzGbMzMzMzMzu6HEA7v//////// - //////9xAGiIh8zMzMzMzO7nERbu7///+IiIiI/////5kAZoiHzMzMzMzMzMxmzMzMzMzM7uhxAO7/// - ///////////4EABoiIzMzMzMzMzu7nEQbu////+IiIiP////+ZAGaIh8zMzMzMzMzMZszMzMzMzO7oUQ - Du//////////////9xAGiIh8zMzMzMzM7u5xEW7u/////4iI//////mQBmiIfMzMzMzMzMzGTMzMzMzM - zu6HEA7v/////////////4EABoiIzMzMzMzMzM7u5xEG7v/////////////5kAZoiHzMzMzMzMzMxAzM - zMzMzM7uhxEO7/////////////9wAGiIh8zMzMzMzMzO7ucRFu7v////////////+RAGeIh8zMzMzMzM - zMAGzMzMzMzO7ucRDuj////////////4EAB4iIzMzMzMzMzMzO7ucRBu6P///////////4kQBoiIzMzM - zMzMzMxgBszMzMzMxu7nEQbo////////////gQAGiIh8zMzMzMzMzMzu7nERDu7///////////+JEAaI - iMzMzMzMzMzMYADMzMzMzMzu5xEG7v///////////3EAZ4iIzMzMzMzMzMzMzu7nERbu7/////////// - gQBmiIfMzMzMzMzMzAAAbMzMzMzM7ucRBu7///////////gQAGiIh8zMzMzMzMzMzM7u5xEQbu7///// - /////5EAZ4iHzMzMzMzMzMYAAEzMzMzMzO7nERDu7/////////+HAAaIiIzMzMzMzMzMzMzM7u5xEQ7u - 7/////////gQAGiIjMzMzMzMzMzEAAAGzMzMzMzu7nEQbuj////////4cAAHiIh8zMzMzMzMzMzMzO7u - dxEW7uj////////3AAZoiHzMzMzMzMzMYAAABMzMzMzM7u5xEG7u////////hgAAeIiHzMzMzMzMzMzM - zMzO7ucREW7u7///////gQAGiIh8zMzMzMzMzEAAAABszMzMzM7ucREG7uj/////hmAAB4iI7MzMzMzM - zMzMzMzMzu7ucREG7u6P////+AAAB4iIzMzMzMzMzMYAAAAATMzMzMzO7ucREG7u7oiO7mAAAHiIiMzM - zMzMzMzMzMzMzMzu7ucREG7u7o//+HYAAHiIh8zMzMzMzMzEAAAAAAbMzMzMzu7nEREG7u7u5mAAAAeI - iIfMzMzMzMzMzMzMzMzMzu7ucREQbu7u7uYAAAeIiHzMzMzMzMzMYAAAAAAAbMzMzMzu7nEREAZmZgAA - AAF4iI58zMzMzMzMzMzMzMzMzMzu7ncREQZm7mZgAAB4iI7MzMzMzMzMxgAAAAAAAEzMzMzM7u7nEREQ - AAAAABF4iI7uzMzMzMzMzMzMzMzMzMzM7u7ucRERAAAAAAAHiIiMzMzMzMzMzMQAAAAAAAAGzMzMzM7u - 7nERERERERF3iIju7MzMzMzMzMzMzMzMzMzMzM7u7udREREQAAAReIiIfMzMzMzMzMxgAAAAAAAAAGzM - zMzM7u7udRERERV4iI7u7MzMzMzMzMzMzMzMzMzMzMzM7u7u5xEREREReIiO7MzMzMzMzMzGAAAAAAAA - AAAGzMzMzM7u7u53d3eIiO7u7szMzMzMzMzMzMzMzMzMzMzMzM7u7u7nd1F3eIiO7uzMzMzMzMzMYAAA - AAAAAAAAAGzMzMzM7u7u7u7u7u7u7szMzMzMzMzMzMzMzMzMzMzMzMzMzu7u7u6IiI7u7uzMzMzMzMzM - xgAAAAAAAAAAAAAGzMzMzMzu7u7u7u7u5szMzMzMzMzMzMzMzMzMzMzMzMzMzMzO7u7u7u7u7u7MzMzM - zMzMzGAAAAAAAAAAAAAAAEbMzMzMzG7u7u7ubMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM7u7u7u7uzM - zMzMzMzMzGQAAAAAAAAAAAAAAAAAbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzG7u - 7szMzMzMzMzMzMYAAAAAAAAAAAAAAAAAAARszMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAABGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAAAABmzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzGYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARGZmzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZmZEAAAAAAAAAAAAAAAAD////+AAAAAAAAAAD/////////AAAA - AAAAAAAAAP//////+AAAAAAAAAAAAAAf/////+AAAAAAAAAAAAAAB/////+AAAAAAAAAAAAAAAH////+ - AAAAAAAAAAAAAAAAf////AAAAAAAAAAAAAAAAD////AAAAAAAAAAAAAAAAAP///gAAAAAAAAAAAAAAAA - B///wAAAAAAAAAAAAAAAAAP//4AAAAAAAAAAAAAAAAAB//8AAAAAAAAAAAAAAAAAAP/+AAAAAAAAAAAA - AAAAAAB//gAAAAAAAAAAAAAAAAAAf/wAAAAAAAAAAAAAAAAAAD/4AAAAAAAAAAAAAAAAAAAf+AAAAAAA - AAAAAAAAAAAAH/AAAAAAAAAAAAAAAAAAAA/wAAAAAAAAAAAAAAAAAAAP4AAAAAAAAAAAAAAAAAAAB+AA - AAAAAAAAAAAAAAAAAAfAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAAAAA - AAOAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAA - AAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAABAAAAAAAA - AAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAA - AAGAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAA - AAAAAAABgAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAPAAAAAAAAAAAAAAAAAAAADwAAAAAAA - AAAAAAAAAAAAA+AAAAAAAAAAAAAAAAAAAAfgAAAAAAAAAAAAAAAAAAAH8AAAAAAAAAAAAAAAAAAAD/AA - AAAAAAAAAAAAAAAAAA/4AAAAAAAAAAAAAAAAAAAf+AAAAAAAAAAAAAAAAAAAH/wAAAAAAAAAAAAAAAAA - AD/+AAAAAAAAAAAAAAAAAAB//gAAAAAAAAAAAAAAAAAAf/8AAAAAAAAAAAAAAAAAAP//gAAAAAAAAAAA - AAAAAAH//8AAAAAAAAAAAAAAAAAD///gAAAAAAAAAAAAAAAAB///8AAAAAAAAAAAAAAAAA////wAAAAA - AAAAAAAAAAA////+AAAAAAAAAAAAAAAAf////4AAAAAAAAAAAAAAAf/////gAAAAAAAAAAAAAAf///// - +AAAAAAAAAAAAAAf//////8AAAAAAAAAAAAA/////////gAAAAAAAAAAf////w== - - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/Old/CleanDataForm.Designer.cs b/TEMUKJD/KJDForms/ProductForms/Old/CleanDataForm.Designer.cs deleted file mode 100644 index 966bcf7..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/CleanDataForm.Designer.cs +++ /dev/null @@ -1,236 +0,0 @@ -namespace TemuKJD.KJDForms.ProductForms -{ - partial class CleanDataForm - { - /// - /// 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() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CleanDataForm)); - this.chkIsUseProxy = new DevComponents.DotNetBar.Controls.CheckBoxX(); - this.buttonLoginPdd = new DevComponents.DotNetBar.ButtonX(); - this.btnImport = new DevComponents.DotNetBar.ButtonX(); - this.txtProduct = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX10 = new DevComponents.DotNetBar.LabelX(); - this.chkIsUseResourcePack = new DevComponents.DotNetBar.Controls.CheckBoxX(); - this.pbPaste = new System.Windows.Forms.PictureBox(); - this.pictureBox1 = new System.Windows.Forms.PictureBox(); - this.label1 = new System.Windows.Forms.Label(); - this.btnSearch = new TemuKJD.UserControls.ButtonEx(); - ((System.ComponentModel.ISupportInitialize)(this.pbPaste)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); - this.SuspendLayout(); - // - // chkIsUseProxy - // - // - // - // - this.chkIsUseProxy.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.chkIsUseProxy.FocusCuesEnabled = false; - this.chkIsUseProxy.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chkIsUseProxy.Location = new System.Drawing.Point(156, 217); - this.chkIsUseProxy.Name = "chkIsUseProxy"; - this.chkIsUseProxy.Size = new System.Drawing.Size(82, 23); - this.chkIsUseProxy.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.chkIsUseProxy.TabIndex = 51; - this.chkIsUseProxy.Text = "使用代理IP"; - this.chkIsUseProxy.Visible = false; - this.chkIsUseProxy.CheckedChanged += new System.EventHandler(this.chkIsUseProxy_CheckedChanged); - // - // buttonLoginPdd - // - this.buttonLoginPdd.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.buttonLoginPdd.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.buttonLoginPdd.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.buttonLoginPdd.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.buttonLoginPdd.Location = new System.Drawing.Point(353, 174); - this.buttonLoginPdd.Name = "buttonLoginPdd"; - this.buttonLoginPdd.Size = new System.Drawing.Size(89, 29); - this.buttonLoginPdd.Style = DevComponents.DotNetBar.eDotNetBarStyle.OfficeXP; - this.buttonLoginPdd.TabIndex = 48; - this.buttonLoginPdd.Text = "拼多多登录"; - this.buttonLoginPdd.TextColor = System.Drawing.Color.White; - this.buttonLoginPdd.ThemeAware = true; - this.buttonLoginPdd.Visible = false; - // - // btnImport - // - this.btnImport.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btnImport.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnImport.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btnImport.FocusCuesEnabled = false; - this.btnImport.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnImport.Location = new System.Drawing.Point(254, 174); - this.btnImport.Name = "btnImport"; - this.btnImport.Size = new System.Drawing.Size(89, 29); - this.btnImport.Style = DevComponents.DotNetBar.eDotNetBarStyle.OfficeXP; - this.btnImport.TabIndex = 44; - this.btnImport.Text = "导入链接"; - this.btnImport.TextColor = System.Drawing.Color.White; - this.btnImport.ThemeAware = true; - this.btnImport.Click += new System.EventHandler(this.btnImport_Click); - // - // txtProduct - // - this.txtProduct.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - // - // - // - this.txtProduct.Border.Class = "TextBoxBorder"; - this.txtProduct.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txtProduct.Font = new System.Drawing.Font("新宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtProduct.Location = new System.Drawing.Point(155, 129); - this.txtProduct.Name = "txtProduct"; - this.txtProduct.PreventEnterBeep = true; - this.txtProduct.Size = new System.Drawing.Size(727, 29); - this.txtProduct.TabIndex = 46; - this.txtProduct.TextChanged += new System.EventHandler(this.txtProduct_TextChanged); - // - // labelX10 - // - this.labelX10.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX10.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX10.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.labelX10.Location = new System.Drawing.Point(61, 132); - this.labelX10.Name = "labelX10"; - this.labelX10.Size = new System.Drawing.Size(92, 23); - this.labelX10.TabIndex = 45; - this.labelX10.Text = "宝贝网址"; - // - // chkIsUseResourcePack - // - // - // - // - this.chkIsUseResourcePack.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.chkIsUseResourcePack.FocusCuesEnabled = false; - this.chkIsUseResourcePack.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chkIsUseResourcePack.Location = new System.Drawing.Point(254, 217); - this.chkIsUseResourcePack.Name = "chkIsUseResourcePack"; - this.chkIsUseResourcePack.Size = new System.Drawing.Size(82, 23); - this.chkIsUseResourcePack.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.chkIsUseResourcePack.TabIndex = 52; - this.chkIsUseResourcePack.Text = "使用资源包"; - this.chkIsUseResourcePack.Visible = false; - // - // pbPaste - // - this.pbPaste.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.pbPaste.BackColor = System.Drawing.Color.White; - this.pbPaste.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pbPaste.Image = global::TemuKJD.Properties.Resources.FullPaste; - this.pbPaste.Location = new System.Drawing.Point(879, 129); - this.pbPaste.Name = "pbPaste"; - this.pbPaste.Size = new System.Drawing.Size(33, 29); - this.pbPaste.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; - this.pbPaste.TabIndex = 50; - this.pbPaste.TabStop = false; - this.pbPaste.Click += new System.EventHandler(this.pbPaste_Click); - // - // pictureBox1 - // - this.pictureBox1.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.pictureBox1.BackColor = System.Drawing.Color.Transparent; - this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); - this.pictureBox1.Location = new System.Drawing.Point(470, 172); - this.pictureBox1.Name = "pictureBox1"; - this.pictureBox1.Size = new System.Drawing.Size(33, 32); - this.pictureBox1.TabIndex = 49; - this.pictureBox1.TabStop = false; - this.pictureBox1.Visible = false; - // - // label1 - // - this.label1.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.label1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label1.Location = new System.Drawing.Point(2, 240); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(969, 34); - this.label1.TabIndex = 53; - this.label1.Text = "正在初始化店铺类目,请稍候"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.label1.Visible = false; - // - // btnSearch - // - this.btnSearch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSearch.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnSearch.FlatAppearance.BorderSize = 0; - this.btnSearch.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnSearch.Font = new System.Drawing.Font("微软雅黑", 12F); - this.btnSearch.ForeColor = System.Drawing.Color.White; - this.btnSearch.Location = new System.Drawing.Point(155, 174); - this.btnSearch.Margin = new System.Windows.Forms.Padding(2); - this.btnSearch.Name = "btnSearch"; - this.btnSearch.Size = new System.Drawing.Size(94, 29); - this.btnSearch.TabIndex = 378; - this.btnSearch.Text = "搜索"; - this.btnSearch.UseVisualStyleBackColor = false; - this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click); - // - // CleanDataForm - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(972, 497); - this.Controls.Add(this.btnSearch); - this.Controls.Add(this.label1); - this.Controls.Add(this.chkIsUseResourcePack); - this.Controls.Add(this.chkIsUseProxy); - this.Controls.Add(this.pbPaste); - this.Controls.Add(this.buttonLoginPdd); - this.Controls.Add(this.pictureBox1); - this.Controls.Add(this.btnImport); - this.Controls.Add(this.txtProduct); - this.Controls.Add(this.labelX10); - this.Name = "CleanDataForm"; - this.Text = "CleanDataForm"; - this.Load += new System.EventHandler(this.CleanDataForm_Load); - ((System.ComponentModel.ISupportInitialize)(this.pbPaste)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); - this.ResumeLayout(false); - - } - - #endregion - private DevComponents.DotNetBar.Controls.CheckBoxX chkIsUseProxy; - private System.Windows.Forms.PictureBox pbPaste; - private DevComponents.DotNetBar.ButtonX buttonLoginPdd; - private System.Windows.Forms.PictureBox pictureBox1; - private DevComponents.DotNetBar.ButtonX btnImport; - private DevComponents.DotNetBar.Controls.TextBoxX txtProduct; - private DevComponents.DotNetBar.LabelX labelX10; - private DevComponents.DotNetBar.Controls.CheckBoxX chkIsUseResourcePack; - private System.Windows.Forms.Label label1; - private UserControls.ButtonEx btnSearch; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/Old/CleanDataForm.cs b/TEMUKJD/KJDForms/ProductForms/Old/CleanDataForm.cs deleted file mode 100644 index 653c92d..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/CleanDataForm.cs +++ /dev/null @@ -1,442 +0,0 @@ -using AllBase; -using AllBase.Helper; -using AllBase.Model.Param.FissionManage; -using AllBase.Model.Param.ProductManage; -using AllBase.Model.Result; -using TemuKJD.KJDForms.BaseForms; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.IO; -using System.Linq; -using System.Text; -using System.Text.RegularExpressions; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; -using Work.Api; -using Work.BLL.Upload; -using Work.CollectClass; - -namespace TemuKJD.KJDForms.ProductForms -{ - public partial class CleanDataForm : BaseForm - { - private string cleaningData = ""; - private string sFromUrl = ""; - private string path { get; set; } = "temp/FissionBackup.txt"; - private delegate ProductCollectBase deleTaoBaoCollect(ProductCollectBase pcb); - private delegate ProductCollectBase delePingDuoDuoCollect(TaobaoProductBase pcb); - private delegate void deleChangePicVisible(); - - public static List LstFissionForm = new List(); - - public CleanDataForm() - { - InitializeComponent(); - } - - private void CleanDataForm_Load(object sender, EventArgs e) - { - } - - private void btnSearch_Click(object sender, EventArgs e) - { - sFromUrl = cleaningData.Trim(); - // 读取本地看是否有备份文件 提示存在备用数据,是否载入,点是载入,点否丢弃并删除备用数据, - if (FileBase.Exists(path)) - { - if (BaseMsgForm.ShowConfirm("是否需要载入备份数据", "提示").DialogResult == DialogResult.OK) - { - //载入 - using (StreamReader str = new StreamReader(path, System.Text.Encoding.Default)) - { - sFromUrl += "\r\n" + str.ReadToEnd().Trim(); - } - } - else - { - //FileBase.Delete(path); - } - } - try - { - CollectProductFromUrl(); - } - catch (Exception ex) - { - BaseMsgForm.ShowError("未正确获取到商品信息!(请确认商品ID是否正确以及网络)"); - } - } - - private void btnImport_Click(object sender, EventArgs e) - { - BaseMsgForm.ShowInfo("格式1:商品地址\r\n" + - "格式2:关键词-----商品地址\r\n", "导入格式"); - - OpenFileDialog openFileDialog = new OpenFileDialog(); - openFileDialog.Filter = "文本文件(*.txt)|*.txt"; - openFileDialog.RestoreDirectory = true; - openFileDialog.FilterIndex = 1; - if (openFileDialog.ShowDialog() == DialogResult.OK) - { - string fName = openFileDialog.FileName; - string line = string.Empty; - using (StreamReader sr = new StreamReader(openFileDialog.FileName, System.Text.Encoding.Default)) - { - txtProduct.Text = string.Empty; - txtProduct.Text = sr.ReadToEnd(); - } - } - } - - private void pbPaste_Click(object sender, EventArgs e) - { - IDataObject iData = Clipboard.GetDataObject(); - if (iData != null && iData.GetDataPresent(DataFormats.Text)) - { - txtProduct.Text = (string)iData.GetData(DataFormats.Text); - } - } - - private void CollectProductFromUrl(bool showLoading = true) - { - string url = sFromUrl.Split(new string[] { "\r", "\n" }, StringSplitOptions.RemoveEmptyEntries).FirstOrDefault(); - if (url == null) - { - BaseMsgForm.ShowError("无效网址!"); - return; - } - if (url.Contains("-----")) - { - url = url.Substring(url.IndexOf("-----") + 5); - } - ProductCollectBase proInfo = new ProductCollectBase { from_url = url }; - // 拼多多商品采集 - if (proInfo.from_url.Contains(@"yangkeduo.com")) - { - TaobaoProductBase tp = new TaobaoProductBase(); - tp.GoodsId = tp.FromId = GetIdFromURLByRegex(proInfo.from_url); - tp.FromType = "拼多多"; - if (tp.GoodsId.Equals(0)) - { - BaseMsgForm.ShowError("无效网址!"); - return; - } - if (showLoading) this.pictureBox1.Visible = true; - delePingDuoDuoCollect del_pddc = PddProductCollect; - del_pddc.BeginInvoke(tp, ProductCollectCompleted, del_pddc); - } - // 其他平台商品采集 - else - { - if (!AllBase.BaseClass.IsCloudBuyOrder) - { - // 非公司用户暂时关闭除拼多多以外所有商品上传 - BaseMsgForm.ShowError("无效网址!"); - return; - } - - proInfo.from_id = GetIdFromURLByRegex(proInfo.from_url); - if (proInfo.from_id.Equals(0)) - { - BaseMsgForm.ShowError("无效网址!"); - return; - } - - if (showLoading) this.pictureBox1.Visible = true; - - deleTaoBaoCollect del_tbc = ProductCollect; - del_tbc.BeginInvoke(proInfo, ProductCollectCompleted, del_tbc); - } - } - - private void ProductCollectCompleted(IAsyncResult ar) - { - if (ar == null) throw new ArgumentNullException("ar"); - deleTaoBaoCollect delTaoBaoCollect = ar.AsyncState as deleTaoBaoCollect; - delePingDuoDuoCollect delPinDuoDuo = ar.AsyncState as delePingDuoDuoCollect; - if (delTaoBaoCollect != null || delPinDuoDuo != null) - { - ProductCollectBase res; - if (delPinDuoDuo != null) - { - res = delPinDuoDuo.EndInvoke(ar); - } - else - { - res = delTaoBaoCollect.EndInvoke(ar); - } - - // 先判断是否存在page.html临时文件,存在就先删除。 - if (System.IO.File.Exists(System.IO.Directory.GetCurrentDirectory() + @"\page.html")) - { - System.IO.File.Delete(System.IO.Directory.GetCurrentDirectory() + @"\page.html"); - } - - // 调用php后台 - string createHtmlPath = Fission.creatFissionPage(res); - - ShowFormInUiThread(createHtmlPath, res); - } - } - - internal ProductCollectBase ProductCollect(ProductCollectBase pcb) - { - if (pcb.from_url.Contains("detail.1688.com")) - { - AlibabaProductGet proInfo = new AlibabaProductGet(pcb); - proInfo.Get(); - pcb.cat_id = FromTitleToCatTaobao.Get(pcb.name); - if (proInfo.Product.Images.Count == 0) - { - return null; - } - proInfo.Product.from = "阿里巴巴"; - return proInfo.Product; - } - - if (pcb.from_url.Contains("jinritemai.com")) - { - CollectDoyin cd = new CollectDoyin(pcb); - cd.GetProduct(); - if (!cd.GetSuccess) - { - BaseMsgForm.ShowInfo("采集失败,跳过:" + pcb.from_id + ":" + pcb.message); - return null; - } - if (cd.Product?.IsOnSale == false) - { - BaseMsgForm.ShowInfo("商品已下架:" + pcb.from_id); - return null; - } - cd.Product.from = "抖音"; - cd.Product.from_url = pcb.from_url; - return cd.Product; - } - - if (pcb.from_url.Contains("jd.com")) - { - bool isPassVerify = false; - retry: - ProductCollectBase proInfo = new ProductCollectBase - { - from_url = "https://item.m.jd.com/product/" + pcb.from_id + ".html", - from_id = Convert.ToInt64(pcb.from_id), - }; - JingXiCollect tm = new JingXiCollect(proInfo); - tm.IsUseProxy = GlobalConfig.FissionSettingParam.IsUseProxyIp; - tm.Get(); - if (!string.IsNullOrEmpty(JingXiCollect.VerifyCodeUrl)) - { - if (!isPassVerify && JingXiCollect.VerifyCodeUrl.Contains("wqs.jd.com/item/spider_check.shtml")) // 京喜采集验证码校验 by ttzhao 2020.6.29 - { - //Fission.JingXiVerify(JingXiCollect.VerifyCodeUrl); - //if (string.IsNullOrEmpty(JingXiCollect.VerifyCodeUrl)) - //{ - // isPassVerify = true; - // goto retry; - //} - } - BaseMsgForm.ShowInfo("获取失败,京东商品采集需要验证"); - return null; - } - else if ((tm.Product != null && tm.Product.Images.Count == 0) || tm.IsOnSale == false) - { - Invoke(new Action(() => - { - BaseMsgForm.ShowInfo("获取失败,商品不存在或不可展示"); - })); - return null; - } - tm.Product.from = "京喜"; - return tm.Product; - } - - TaobaoMobileCollect goodsFormInfo = new TaobaoMobileCollect(pcb); - goodsFormInfo.IsPurifyData = true; - try - { - goodsFormInfo.Get(); - } - catch (Exception ex) - { - LogSave.Add("淘宝商品采集出现异常:" + ex.Message + "-" + ex.StackTrace); - } - - goodsFormInfo.Product.from = "淘宝"; - return goodsFormInfo.Product; - } - - internal ProductCollectBase PddProductCollect(TaobaoProductBase tp) - { - int retryTime = 0; - ProductCollectBase proInfo; - - Retry: - PinduoduoProductCollect pdd = new PinduoduoProductCollect(Name, tp); - PinduoduoProductCollect.TempIds.Clear(); - pdd.IsUseProxy = GlobalConfig.FissionSettingParam.IsUseProxyIp; - pdd.Get(); - if (GlobalConfig.FissionSettingParam.IsUseProxyIp && pdd.IsOverdue) - { - BaseMsgForm.ShowInfo("代理ip套餐已过期", "提示"); - } - bool isResourceEnable = true; - if (GlobalConfig.FissionSettingParam.IsUseResourcePack) - { - //Func canContinue = PinDuoDuoHelperTemp.CanContinueCollectFunc((token) => { return token.ProductDetailStatus == TokenStatus.Valid; }, null, GlobalConfig.FissionSettingParam.IsUseResourcePack, null); - //if (!canContinue()) - //{ - // isResourceEnable = false; - // BaseMsgForm.ShowInfo("资源包打码不可用!", "提示"); - //} - } - if (pdd.IsNoToken) - { - if (GlobalConfig.FissionSettingParam.IsUseResourcePack && isResourceEnable == true && retryTime < 2) - { - retryTime++; - goto Retry; - } - else - BaseMsgForm.ShowInfo("请先登录拼多多或输入Token!", "提示"); - } - proInfo = pdd.pb; - proInfo.from_url = proInfo.from_url.Contains(@"mobile.yangkeduo.com") ? "http://mobile.yangkeduo.com/goods.html?goods_id=" + tp.GoodsId : "http://yangkeduo.com/goods.html?goods_id=" + tp.GoodsId; - return proInfo; - } - - internal long GetIdFromURLByRegex(string url) - { - try - { - if (url.Contains(@"yangkeduo.com")) - { - Regex pddurl = new Regex(@"[?&]goods_id=([^&#]+)"); - string id = pddurl.Match(url).ToString(); - //Regex idRegex = new Regex(@"[^0-9]+"); - string Num = Regex.Replace(id, @"[^0-9]+", ""); - return long.Parse(Num); - } - if (url.Contains(@"1688.com")) - { - string str = url.Substring(0, url.IndexOf(".html")).Replace(@"1688.com", ""); - string num = Regex.Replace(str, @"[^0-9]+", ""); - return long.Parse(num); - } - if (url.Contains("jd.com")) - { - //https://item.jd.com/69126349289.html - string str = url.Substring(url.IndexOf("jd.com/")).Replace(".html", ""); - string num = Regex.Replace(str, @"[^0-9]+", ""); - return long.Parse(num); - } - if (url.Contains("jinritemai.com")) - { - Regex pddurl = new Regex(@"[?&]id=([^&#]+)"); - string id = pddurl.Match(url).ToString(); - string Num = Regex.Replace(id, @"[^0-9]+", ""); - return long.Parse(Num); - } - Regex urlRegex = new Regex(@"[?&]id=([^&#]+)"); - string idStr = urlRegex.Match(url).ToString(); - //Regex idRegex = new Regex(@"[^0-9]+"); - string idNum = Regex.Replace(idStr, @"[^0-9]+", ""); - return long.Parse(idNum); - } - catch (Exception ex) - { - return 0; - } - } - - private void chkIsUseProxy_CheckedChanged(object sender, EventArgs e) - { - GlobalConfig.FissionSettingParam.IsUseProxyIp = chkIsUseProxy.Checked; - if (GlobalConfig.FissionSettingParam.IsUseProxyIp) - chkIsUseResourcePack.Checked = false; - - if (chkIsUseProxy.Checked) - { - //if (string.IsNullOrEmpty(GlobalConfig.ConfigParam.ProxyUrl)) - //{ - // BaseMsgForm.ShowInfo("请检测代理ip设置是否正确或过期"); - // chkIsUseProxy.Checked = false; - // return; - //} - //bool bo = PinDuoDuoHelperTemp.CheckProxyStatus(GlobalConfig.FissionSettingParam.IsUseProxyIp, null); - //if (!bo) - //{ - // chkIsUseProxy.Checked = false; - //} - } - - //StartUp.SaveFissionSettingParam(); - } - - private void txtProduct_TextChanged(object sender, EventArgs e) - { - if (txtProduct.Text.Length > 2000) - { - txtProduct.TextChanged -= txtProduct_TextChanged; - cleaningData = txtProduct.Text; - txtProduct.Text = cleaningData.Substring(0, 2000); - txtProduct.TextChanged += txtProduct_TextChanged; - } - else - { - cleaningData = txtProduct.Text; - } - if (this.cleaningData.Contains(@"yangkeduo.com")) - { - buttonLoginPdd.Visible = true; - } - else - { - buttonLoginPdd.Visible = false; - } - } - - private void ShowFormInUiThread(string createHtmlPath, ProductCollectBase detailData) - { - - Task.Run(() => - { - //获取所有类目 - //Invoke(new Action(() => - //{ - // label1.Visible = true; - //})); - //Fission.goodsCategoryList = Fission.GetShopGoodsCategories(); - Invoke(new Action(() => - { - Fission fs = new Fission(createHtmlPath, sFromUrl, null, detailData); - label1.Visible = false; - fs.FormLoadedEvent = formLoadEvent; - fs.Show(); - })); - }); - } - - private void formLoadEvent() - { - ChangePicVisible(); - } - - private void ChangePicVisible() - { - if (this.pictureBox1.InvokeRequired) - { - deleChangePicVisible delChangePic = ChangePicVisible; - this.pictureBox1.Invoke(delChangePic); - } - else - { - this.pictureBox1.Visible = false; - } - } - } -} diff --git a/TEMUKJD/KJDForms/ProductForms/Old/CleanDataForm.resx b/TEMUKJD/KJDForms/ProductForms/Old/CleanDataForm.resx deleted file mode 100644 index b957688..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/CleanDataForm.resx +++ /dev/null @@ -1,218 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - - - R0lGODlhIAAgAOfzAAABAAACAAEEAAIFAQQHAgUIBAcJBQgLBwoMCAsNCgwPCw4QDA8RDRASDxETEBIU - ERMUEhQVExUWFBYYFRcYFhgZFxkbGBocGRscGhwdGx0fHB4fHR8gHiAhHyEjICIkISMkIiQlIyUnJCYo - JScoJigpJykrKCosKSstKiwtKy0uLC4vLS8xLjAyLzEzMDIzMTM0MjQ2MzU3NDY4NTc5Njg5Nzk6ODo7 - OTs9Ojw+Oz0/PD5APT9APkBBP0FCQEFDQUNFQkRGQ0VHREZIRUdJRkhJR0lKSEpLSUpMSkxOS01PTE5Q - TU9RTlBST1FTUFJUUVNUUlRVU1VWVFZXVVZYVVdZVllbWFpcWVtdWlxeW11fXF5gXV9hXmBiX2FjYGJk - YWNlYmRlY2VmZGZnZWdoZmhpZ2hqZ2lraGpsaWttamxua21vbG5wbW9xbnFzcHJ0cXN1cnR2c3V3dHZ4 - dXd5dnh6d3l7eHp8eXt9enx+e31/fH6AfX+BfoCCf4GDgIKEgYOFgoSGg4WHhIaIhYeJhoiKh4mLiIqM - iYuNioyOi42PjI6QjY+RjpCSj5GTkJKUkZOVkpSWk5WXlJaYlZeZlpial5qbmJudmZyem52fnJ6gnZ+h - nqCin6GjoKKkoaOloqSmo6WnpKaopaeppqiqp6mrqKqsqautqqyuq62vrK6wrbCyrrGzr7K0sbO1srS2 - s7W3tLa4tbe5tri6t7m7uLq8ubu9ury+u72/vL7BvcDCvsHDv8LEwcPFwsTGw8XHxMbIxcfJxsjKx8nL - yMrMycvOys3Py87QzM/RztDSz9HT0NLU0dPV0tTW09XX1NbY1dja1tnb19rc2dvd2tze293f3N7g3d/h - 3uDi3+Hk4OPl4eTm4+Xn5Obo5efp5ujq5+nr6Ors6evu6u3v6+7w7e/x7vDy7/Hz8PL08fP18vT38/b4 - 9Pf59vj69/n7+Pr8+fv9+vz/+/7//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - ACH/C05FVFNDQVBFMi4wAwEAAAAh+QQBCAD/ACwAAAAAIAAgAAAI/gDlCRxIsKDBgwgNwlvIsCHDhAgd - SmwI0eA7dxLRfWM3saK8d+CQ5UoG7p08eOxk+UEGTyBFiO+eATpy44igZu7koVPE49VDhxG70ckAoOgG - Ot3cuVvWqttPb9POmTzI7pWNolhhwGoH7107jAy/6ZliKt3CgvDOWQqB1agls2dPLkT2IkGZcHEHwkv3 - qQTWAABCjOJIsWu3sWULL3SHDMmBAIABHAmWU27Lhe+6PTtn+bLccKB6TFhQwUenchM7AoXnjtyzUoDg - FKKFN+7ZjnLlputFCM4gWdbCceycO/finAzZwSpCIUHpX+9s37b9kZklS9VMwrNWpi0AN5xT/kvsVgcD - B0N43yHzEbloD6fSOzOkNqVoGafvkh3xfgT+z5bGwUPOIzf4AApq8IQjCAZYVbAIOy5NB+BlC4UTTDB4 - neQOM2W8wAEMb1Aj3mriuVONLKK8woxwE1I4okudvXPOL5Yo4kpSFEYol1dgKcYaL1CAgIENjnzjIozw - tAOMJbkgeNKTJ3nzBgRY8XBLdBO1E8sNFbzwlkQnSQOFAViFEEpO76BDDlwJwpFAUWFE41lD3ZSRQGQ1 - zPIOO8Iggsco8JXzBwQEJDCGfy66sxwFEajQxzUbTgFBAilYghdjU9wwBSvDAaiXObD4QYcl07jDFwhY - TfHMQu08U4syOug8hBZK3nQj1V6ddFBUAqoydFF0UCqE2VnqSUqpJeRIGKywErGTSx9tYOeirB51xk44 - 3tyal6cDBQQAIfkEAQgA/wAsAAAAACAAIAAACP4A5QkcSHBgO2/Ron1zV7ChQ4fmeOGBAiWPL3MPMxaE - xy7XFAoAAFCYwoudxozw5MHrlgcDgAAhMeDpdrLgu3DMkHVj12xKAZghAUxpVnOgu2WBoByJYyvYlJch - AyQYWlSltTcuAUiAYupO1pAVZsp7160bw4fsWsEICgDDIFdQIAQIsCAKLpPe8uCx9hBeOk4h2AKA003Y - niNH+iBDp7JbmDDMMrJTtTZqhkTm4KED9w2du5QcnTljl7IhPHjU2IAEAOEIr3enYwuMLfvhO3S/6hwp - UgYWudKmVQLfWE4ZrmDNkOlMV/UhuVNTekCxtBN2c3jvCLa7ZSRBSBijzv5WRcfLErJ1As81+poAzrnm - 8qRNCVGGprxzjNi7r4r9WRgQb/AlTzu2FOHdATCQIt5Jp6Gji3mkqRSOKVpIR911sbVjnXDF4YJMOMNh - OFBs77DjDjvlnLMgfBvBE04siDyCDHMnnfMNjQ5xhIoPGXQQBjErEgQPOJbAEQo5tnVTBgQhdfAIRg+5 - o0oKCdxQS4gqvVNNGEFhcAiSY62zTnYquRPKBgCswAqZG5HDSAkFQOADLCa1k0wnnSRjkkrStFFEHtZg - GVs3i4RBBirhqPTMGBtkIAY0JHaDjDdYzgaPO+RQs9Np7riiQkgqtMIQbaehdNo72Z16Sw0h2XDLqB2V - 5ijciN0ocoQRinQTK4bveCOMMJSyaCqqpdYUEAAh+QQBCAD/ACwAAAAAIAAgAAAI/gDlCRxIsOA7d/AK - KlzIUJ67bsJ0OTPXsKLCdsvy+LgxBZS3hBYXgoRHrU4GAAAS8Ch1zuE5cujeWTxnLdm1dOxm8SiAEoCE - OdfIBbPESBSzdQ3JnSoTpYyrbqVW9AyQIAyyUVJKcHhRxpc6hfBy+kiQIMIRWLaKAAgQAEAFO5+MJOhZ - oQw0kAPhhQskoecGRc4AdVh7oIgpQhtQtgXQQ1a7gvC+3YGwmMKgcN0sTTkyZ1c3PREWo3xRip3CdKNW - GAhQoMapdvDaYS737tyjwYsP8KBlmiA8eN3+9EhRRJG138h/v9sFZYFfOtPw5k3XzVapW90QCsQLj1yq - KSlC/sBwEyyddHnv0JVrdxA2w9/plJni1IqaO4XlkHXipIwd8orwvJMOOv6dx04tUYQAwhS8yGRRcvC4 - c85XA4UDCAUoUcAHOiER9M4zkJgSznbdvDFXSmWk0+F27+QCBVDboWPJCgggAIMlva0IjzeyBINOQr91 - s8gUU1hizYrbKfcbQe2A8wwz3rxzXkj/JQnhlEjmZSU85YTzWJYVuYMMInrMQhGA3yCTzX0NTRMGBRD4 - EEuOC52jyA1tVPPeO7zAgBIHj5wpEjhlQFCEMFj+1kwUECRQgykqCnRONd18KQ87qJDxyEciwXOOKWIU - eZw83YESBh7I3PcbOt2Qg2VeNuhU40w4S8KzjFodKFIOqRACmFxeyhyRQAeL7LodklUKFI4nYdyRKpjv - dUdNN5FC22mArxYUEAAh+QQBCAD/ACwAAAAAIAAgAAAI/gDlCRxIsKC7de0KKlzIUGA4ZKxsVUvYsCJB - eOY+RXnBQw8yihYrugt2JAEAACQIdRP47l1IefDSjUP3Dh46UiQCnEwQhhm7bsJ6OTsHr+E7a6QGeXLG - Lp2pEicD8FSG7M8RH2FKgSuqEF43QC8opLgjzd2zLRAAJIBh6VecDjuLrEK3EJ4wHycB3ID1Lp2tMj6O - WHrW6kZeABTurCwI752vGwROvlBV0503adTMsSuV4jDPZwvfdSuzIQEHMciKwlu9+l0tHwkCyObgpxvX - gavb/fozJY+tc7gFrrbGJ4UBABCgxEpXF167bsy6pbt9kd0yRVOOlOHk7Fs6l4xZ/q9m2Jqcs12oFukh - lMqaO5bjpl2jO77iane9yqSosIEHopXwWLNIFFOQEs5Lq3kDRwWHweCJPOysYgNyR6T2kjzIGAaATsiV - YZMlIZwEwyzUNQQPMp1xqNYVzuUCxQUdlNFMiQ01U8QBsskmAR6rgeOKIIsEw1xIq5mjiHE6QXDELTDF - 9E047dBYF0zPFOJDCi+EgcqB4klpIjzudKOLKasgQw519V0oXGPuuFMTjaIpow1IJrITJWsMTaNHD2Ug - 815FziACy5B1uYPKCihZAhx578DiAyAHkucOLUVEwEMqhLIDTjngDVcKMOx8+Q0pcHDSjUvwsONLIJYs - xho7NX9+mY435rijWjiAdFDELrHiaZ94uJljyQ1hIAMeTGoiS9A71cTySzleJttkqrZKa5GvIQUEACH5 - BAEIAP8ALAAAAAAgACAAAAj+AOUJHEiwILx38AoqXMhQYLlmwZyZa0hRIbxzrcIUKdOKXMWP8twpmwIB - AIQwwtoJhOfu3cd36c65kwevHS0YAHLycMVOHjppwpqVS8iwHbNPloKdC+nLSAIACY7sYhfuVZkjYUJ1 - I2pwmpwUIMLwagfPWyMeJHxY6pbuVpQIJn2oWqrwHa4bOVNYMnewmyxLtry9I+cIRE4AGfp0s+guWBEE - AGCIOgevMkuE8MIl6gAgAIAKda4thPfNEpQigqTNtGxZXrpWPhIQSFCjEzmuA1l2A5bLmsrR8LpZOgKj - SCHVDCu7I4vbILtuvlS1QmaN3EyLrSladtftVSE9lpD+pSP4rt11kJXTlYLCgUKJMsiunwtmSdVWkDSn - TXmak8OgbyExUwYJNXhC10fw8KLCYVBNIQ1LvfjwGSDgoAcPMDB4llMCYURD0zN33HDEKujgB881YUhw - GAmI3AYPO9LQ8ks4zTUETzqvaLFCCDXcocx1LLHjTmUguROOM7yUAokjpDjDDlHZgZQOMoqEAUUZlixT - zm+jIdTQO83IUUJOEPjAyTc1CtSONL5gcx5B8KBjyQsFHHYSMj0tJM0cPSCy2ELh8KEigzWokiec8CAj - BQZlPGgROHqoqCEAN6xyaG7BeeKGK0MNtM6WPlmyQmeeRTBFStjBYw5bubHzS3hGCDVTRwoMJEBBEZ1U - CBxrK51j2ikzsZMMI2FMUcYo3XiZHE2tvsqMZe14w0wy1ZCjLH40sXMOczQdhFma2kXZLZHYlrtQQAAh - +QQBCAD/ACwAAAAAIAAgAAAI/gDlCRxIsKDBgwgTCmx3Tt07hRALwiPnq9MqauwianSna0oKHoquwdOo - EN45SBwAJIgSzN1Ady4jumP3UOA5SyBUTkHmsl01X8C6xTz4LtwuVM7WyYPHTtiaGkcsdZPXDlmbHkX8 - OBtakB0sKTXwPHsID90yVr28uYP3DVFOADA4kTsIr5wgDAB80Gq3FB68d379UiuTAACADHy6jZSYrlSR - FGV4Dgw8El43QRsAHFghdTFBv91SWdJlDqHfdL3IwLghB1lGuu3QkWPn2aBfc8hQuWJmrvZkyr5t+23n - juG51yRNn26GSpSvcJ7dlfOWLvlSdrzErEgRNZxAd904/vmpVTr5NTt4VULptTTdLSgg6FhLDg8ZlMKG - U4wS+A5ZmSKQeBOcac6EkUAAABBQQyt9pZOMLtbUpBE84HDCQwQQlECHNAL59c5aAyLkzjnPWCJGGIUI - U12HfiXHjjW0gELKLsgg0w1y1n3nDCE+pGCDG7ucA1iI7kho2zeWwGAYACHgIU2LtnXTCjIrwjOOMkBd - o44yYUCwJABF4MLVZOzgcsQg28jjDjWNHLGCDWXAUst9X/pQC18HtdPMIauQA54lLyyJwRSfuJHBkhCE - gYyRv7XzTW/s9ELnkiAQQkoWHUSAQRGegJMQcOy4csOSCEIgBzO4GFIGHqt0A1hEQUzVUkQBACAIgAR9 - dINON9N0U86rsL7TTBsV1AqAATWQco6HQ5J0Wy1TcJAABDUA8mRgOfZ1ji+DiNGGJ9LQplBAACH5BAEI - AP8ALAAAAAAgACAAAAj+AOUJHEiwoMGDCBMqXMiQXbdp4NwxnCjvnbJBZSx1g0dRIbx0lmBQgNJLYseE - IEsk8JHLJLxy1KqZ45jwpbZzHOG9Q3ZnyqON8uB5szSmzClwNA+GQ8XHFTmB8NBVU9aNHcd2uo5AqDAl - GLuD8OAhm9KhTLOcYcNCPRcqBAAAN1qhAwvv2p8iiK4lVTuw3a4jFTaEEdYOITx2zGQ5+2oYXjhTb+o4 - 9eiOnbukdM1Rs3buHWaCaT/TDc33pEdz16qFMznwHeuO8LpxEhPG0TPW55j16mb63CkeEAC8gBQuKDxr - hcLYKkxR6KAKbxOEiWb82yhDyF4zDNfILYAKbXj+h31Hrlu6k/Da/QqTogQUUuUGhm63rt27ifDM8Wqk - qFW3+wSxQw0toaSCjDgLvcMOO+mA4405AA7EzjJ/+LACDGGkUhxY4AjzCi/dtJMWaN0cokICb1EwRS6M - geYNKFPccIQi0jBHUDu5QPHWjiEkEuI42XSDzkeyFBFcAjBY8k1BH7FygwFvBQAABXIwk8sfU2TkTDeQ - eAeABG1I81k7txyxYwABZKDHKlNskEACKwACjCUpACAlBnNMg5lOz9SxAQFSrmTJICDsCEAPpcgyRQUJ - QMADKBuClg4uYayAQQhGPILLGxEYWoIl1qwyBhRTWEKNZ0zCQ04wlviRyCpGMfmRgaEwlIIOOcjsgkyI - ohnXTjndgIPOO+e04gOKAGQwBjKevdOOVb0aR1pY31giBQw3lHELTqE1J5+qwaQiizTpRDtQQAAh+QQB - CAD/ACwAAAAAIAAgAAAI/gDlCRxIsKDBgwgTKlzIUF47de4aSpRnDhktae0mLoTnrA4USN40KnwXDEoI - OtbgCYR3Lty5dwzdQVwJr5slO63KrexWShCpbioTspNGy1pGefDYfatGDp5KdriOcDjyKl1CeOEsRSml - E6nTr0jRnVoB4MWnc1fP1SoELF1QrwPhuUtWpsgbZBEROi3Xzdxbg07TWUSG9qC7denYuXP396BTduza - OS34rhyzWap0VWPH8CvYguZuxSnCA0qhZ3kluitHbt3TYGIyAACQoIQioA3hoUNmSdEsb/C+WUoxu3iR - YKlHOotTooMUWemu0akwO8DsFbKOKoTXDpeP2SQa/oXrFohD9dk1bHFm2A7ZFAkJanQydw5VEQTWAUAo - g7qzu2+ghAHFIMu04840h9yAAQQgHLFKOY3p9U43wOwyjVtJTTPKH3IAYsksyXSz3lXvvCNXOyau9M45 - 3SgjCh1RhLEIMusktE430oj4mVfvpONLGB0kAMEKe0gDk0HpAFNIGYMEYxVg4CzSQXEA8LAKOisN5A4z - cQTZQRnKaEdTN3VIkB8AJVjizTfNIBPNOUnR8t1sPbiCZUE1EbJBANYRAAMozXxCBhR01EJOOrcYkQBt - PszyZFzwpCPLERIUAMCXtoTiAwQAbBCGL+dI8wcMG8CQR3941kRKGEUcAUcsVMjMQd11loSTjjKW5GEJ - Mm4BJpc3yMhSyzLgNNNGBMWlAEk4kXpDjY5XJQUZYzapYGkCRbQCp2cREsRtYMnkwcMKR1hSDUw7TvSY - NKl8Qks3jC0UEAA7 - - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/Old/CommissionForm.Designer.cs b/TEMUKJD/KJDForms/ProductForms/Old/CommissionForm.Designer.cs deleted file mode 100644 index a44b2da..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/CommissionForm.Designer.cs +++ /dev/null @@ -1,602 +0,0 @@ -namespace TemuKJD.KJDForms.ProductForms -{ - partial class CommissionForm - { - /// - /// 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(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.btnStart = new DevComponents.DotNetBar.PanelEx(); - this.btnEditSampleRule = new DevComponents.DotNetBar.PanelEx(); - this.btnStop = new DevComponents.DotNetBar.PanelEx(); - this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.rbFreeSample = new System.Windows.Forms.RadioButton(); - this.rbNoSample = new System.Windows.Forms.RadioButton(); - this.label10 = new System.Windows.Forms.Label(); - this.txtRatio = new System.Windows.Forms.TextBox(); - this.txtTotalPage = new System.Windows.Forms.TextBox(); - this.label26 = new System.Windows.Forms.Label(); - this.label1 = new System.Windows.Forms.Label(); - this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.btnRefresh = new TemuKJD.UserControls.ButtonEx(); - this.splitContainer3 = new System.Windows.Forms.SplitContainer(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.rbNew = new System.Windows.Forms.RadioButton(); - this.rbAll = new System.Windows.Forms.RadioButton(); - this.btnPause = new TemuKJD.UserControls.ButtonEx(); - this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colLoginStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.panelEx1 = new DevComponents.DotNetBar.PanelEx(); - this.pnlShowError = new DevComponents.DotNetBar.PanelEx(); - this.splitContainer4 = new System.Windows.Forms.SplitContainer(); - this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - this.ucGroupBoxEx2.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.dgvShop)).BeginInit(); - this.panelEx1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).BeginInit(); - this.splitContainer4.Panel1.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.btnStart); - this.splitContainer1.Panel1.Controls.Add(this.btnEditSampleRule); - this.splitContainer1.Panel1.Controls.Add(this.btnStop); - this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx2); - this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx1); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.splitContainer3); - this.splitContainer1.Size = new System.Drawing.Size(1070, 606); - this.splitContainer1.SplitterDistance = 80; - this.splitContainer1.TabIndex = 3; - // - // btnStart - // - this.btnStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnStart.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnStart.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnStart.DisabledBackColor = System.Drawing.Color.Empty; - this.btnStart.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnStart.Location = new System.Drawing.Point(830, 12); - this.btnStart.Name = "btnStart"; - this.btnStart.Size = new System.Drawing.Size(72, 23); - this.btnStart.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnStart.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStart.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStart.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnStart.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnStart.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnStart.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnStart.Style.GradientAngle = 90; - this.btnStart.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnStart.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnStart.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnStart.TabIndex = 413; - this.btnStart.Text = "新增佣金"; - this.btnStart.Click += new System.EventHandler(this.btnStart_Click); - // - // btnEditSampleRule - // - this.btnEditSampleRule.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnEditSampleRule.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnEditSampleRule.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnEditSampleRule.DisabledBackColor = System.Drawing.Color.Empty; - this.btnEditSampleRule.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnEditSampleRule.Location = new System.Drawing.Point(908, 12); - this.btnEditSampleRule.Name = "btnEditSampleRule"; - this.btnEditSampleRule.Size = new System.Drawing.Size(72, 23); - this.btnEditSampleRule.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnEditSampleRule.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnEditSampleRule.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnEditSampleRule.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnEditSampleRule.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnEditSampleRule.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnEditSampleRule.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnEditSampleRule.Style.GradientAngle = 90; - this.btnEditSampleRule.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnEditSampleRule.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnEditSampleRule.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnEditSampleRule.TabIndex = 409; - this.btnEditSampleRule.Text = "修改申样"; - this.btnEditSampleRule.Click += new System.EventHandler(this.btnEditSampleRule_Click); - // - // btnStop - // - this.btnStop.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - 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(986, 12); - this.btnStop.Name = "btnStop"; - this.btnStop.Size = new System.Drawing.Size(72, 23); - this.btnStop.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnStop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStop.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnStop.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStop.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnStop.Style.GradientAngle = 90; - this.btnStop.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnStop.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnStop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStop.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnStop.TabIndex = 405; - this.btnStop.Text = "停止操作"; - this.btnStop.Click += new System.EventHandler(this.btnStop_Click); - // - // ucGroupBoxEx2 - // - this.ucGroupBoxEx2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left))); - this.ucGroupBoxEx2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.ucGroupBoxEx2.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND; - this.ucGroupBoxEx2.Controls.Add(this.rbFreeSample); - this.ucGroupBoxEx2.Controls.Add(this.rbNoSample); - this.ucGroupBoxEx2.Controls.Add(this.label10); - this.ucGroupBoxEx2.Controls.Add(this.txtRatio); - this.ucGroupBoxEx2.Controls.Add(this.txtTotalPage); - this.ucGroupBoxEx2.Controls.Add(this.label26); - this.ucGroupBoxEx2.Controls.Add(this.label1); - this.ucGroupBoxEx2.Location = new System.Drawing.Point(147, 2); - this.ucGroupBoxEx2.Name = "ucGroupBoxEx2"; - this.ucGroupBoxEx2.Size = new System.Drawing.Size(272, 79); - this.ucGroupBoxEx2.TabIndex = 400; - this.ucGroupBoxEx2.TabStop = false; - this.ucGroupBoxEx2.Text = "参数设置"; - // - // rbFreeSample - // - this.rbFreeSample.AutoSize = true; - this.rbFreeSample.Location = new System.Drawing.Point(15, 52); - this.rbFreeSample.Name = "rbFreeSample"; - this.rbFreeSample.Size = new System.Drawing.Size(71, 16); - this.rbFreeSample.TabIndex = 432; - this.rbFreeSample.Text = "免费申样"; - this.rbFreeSample.UseVisualStyleBackColor = true; - // - // rbNoSample - // - this.rbNoSample.AutoSize = true; - this.rbNoSample.Checked = true; - this.rbNoSample.Location = new System.Drawing.Point(92, 52); - this.rbNoSample.Name = "rbNoSample"; - this.rbNoSample.Size = new System.Drawing.Size(83, 16); - this.rbNoSample.TabIndex = 431; - this.rbNoSample.TabStop = true; - this.rbNoSample.Text = "不支持申样"; - this.rbNoSample.UseVisualStyleBackColor = true; - // - // label10 - // - this.label10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.label10.AutoSize = true; - this.label10.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label10.ForeColor = System.Drawing.Color.Black; - this.label10.Location = new System.Drawing.Point(223, 24); - this.label10.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(19, 17); - this.label10.TabIndex = 429; - this.label10.Text = "%"; - // - // txtRatio - // - this.txtRatio.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.txtRatio.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtRatio.Location = new System.Drawing.Point(195, 21); - this.txtRatio.Margin = new System.Windows.Forms.Padding(2); - this.txtRatio.Name = "txtRatio"; - this.txtRatio.Size = new System.Drawing.Size(28, 23); - this.txtRatio.TabIndex = 428; - this.txtRatio.Text = "10"; - // - // txtTotalPage - // - this.txtTotalPage.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtTotalPage.Location = new System.Drawing.Point(78, 21); - this.txtTotalPage.Margin = new System.Windows.Forms.Padding(2); - this.txtTotalPage.Name = "txtTotalPage"; - this.txtTotalPage.Size = new System.Drawing.Size(35, 23); - this.txtTotalPage.TabIndex = 381; - this.txtTotalPage.Text = "99"; - // - // label26 - // - this.label26.AutoSize = true; - this.label26.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label26.Location = new System.Drawing.Point(12, 24); - this.label26.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label26.Name = "label26"; - this.label26.Size = new System.Drawing.Size(68, 17); - this.label26.TabIndex = 380; - this.label26.Text = "设置页数:"; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label1.Location = new System.Drawing.Point(132, 24); - this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(68, 17); - this.label1.TabIndex = 430; - this.label1.Text = "佣金比例:"; - // - // 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.btnRefresh); - this.ucGroupBoxEx1.Location = new System.Drawing.Point(2, 2); - this.ucGroupBoxEx1.Name = "ucGroupBoxEx1"; - this.ucGroupBoxEx1.Size = new System.Drawing.Size(144, 79); - this.ucGroupBoxEx1.TabIndex = 399; - this.ucGroupBoxEx1.TabStop = false; - this.ucGroupBoxEx1.Text = "基础"; - // - // btnRefresh - // - this.btnRefresh.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRefresh.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnRefresh.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnRefresh.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnRefresh.ForeColor = System.Drawing.Color.White; - this.btnRefresh.Location = new System.Drawing.Point(15, 31); - this.btnRefresh.Margin = new System.Windows.Forms.Padding(2); - this.btnRefresh.Name = "btnRefresh"; - this.btnRefresh.Size = new System.Drawing.Size(112, 26); - this.btnRefresh.TabIndex = 398; - this.btnRefresh.Text = "刷新店铺"; - this.btnRefresh.UseVisualStyleBackColor = false; - this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click); - // - // 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(1070, 522); - this.splitContainer3.SplitterDistance = 492; - 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.rbNew); - this.splitContainer2.Panel1.Controls.Add(this.rbAll); - this.splitContainer2.Panel1.Controls.Add(this.btnPause); - 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.panelEx1); - this.splitContainer2.Panel2.Padding = new System.Windows.Forms.Padding(0, 0, 4, 0); - this.splitContainer2.Size = new System.Drawing.Size(1070, 492); - this.splitContainer2.SplitterDistance = 336; - this.splitContainer2.TabIndex = 0; - // - // rbNew - // - this.rbNew.AutoSize = true; - this.rbNew.Checked = true; - this.rbNew.Location = new System.Drawing.Point(26, 46); - this.rbNew.Name = "rbNew"; - this.rbNew.Size = new System.Drawing.Size(107, 16); - this.rbNew.TabIndex = 396; - this.rbNew.TabStop = true; - this.rbNew.Text = "设置无佣金商品"; - this.rbNew.UseVisualStyleBackColor = true; - this.rbNew.Visible = false; - // - // rbAll - // - this.rbAll.AutoSize = true; - this.rbAll.Location = new System.Drawing.Point(26, 68); - this.rbAll.Name = "rbAll"; - this.rbAll.Size = new System.Drawing.Size(95, 16); - this.rbAll.TabIndex = 397; - this.rbAll.Text = "设置所有商品"; - this.rbAll.UseVisualStyleBackColor = true; - this.rbAll.Visible = false; - // - // btnPause - // - this.btnPause.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnPause.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnPause.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnPause.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnPause.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnPause.ForeColor = System.Drawing.Color.White; - this.btnPause.Location = new System.Drawing.Point(25, 92); - this.btnPause.Margin = new System.Windows.Forms.Padding(2); - this.btnPause.Name = "btnPause"; - this.btnPause.Size = new System.Drawing.Size(72, 25); - this.btnPause.TabIndex = 388; - this.btnPause.Text = "暂停"; - this.btnPause.UseVisualStyleBackColor = false; - this.btnPause.Visible = false; - // - // dgvShop - // - this.dgvShop.AllowUserToAddRows = false; - this.dgvShop.AllowUserToDeleteRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - 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.colShopId, - this.colShopName, - this.colLoginStatus, - this.colMessage}); - this.dgvShop.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvShop.Location = new System.Drawing.Point(4, 0); - this.dgvShop.Name = "dgvShop"; - this.dgvShop.ReadOnly = true; - this.dgvShop.RowHeadersWidth = 30; - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvShop.RowsDefaultCellStyle = dataGridViewCellStyle3; - this.dgvShop.RowTemplate.Height = 23; - this.dgvShop.Size = new System.Drawing.Size(332, 492); - this.dgvShop.TabIndex = 6; - this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick); - // - // colSelect - // - 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; - // - // colShopId - // - this.colShopId.HeaderText = "店铺"; - this.colShopId.Name = "colShopId"; - this.colShopId.ReadOnly = true; - this.colShopId.Width = 55; - // - // colShopName - // - this.colShopName.FillWeight = 150F; - this.colShopName.HeaderText = "店铺名称"; - this.colShopName.Name = "colShopName"; - this.colShopName.ReadOnly = true; - this.colShopName.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colShopName.Width = 75; - // - // colLoginStatus - // - this.colLoginStatus.HeaderText = "登录状态"; - this.colLoginStatus.Name = "colLoginStatus"; - this.colLoginStatus.ReadOnly = true; - this.colLoginStatus.Width = 60; - // - // colMessage - // - this.colMessage.HeaderText = "消息"; - this.colMessage.Name = "colMessage"; - this.colMessage.ReadOnly = true; - this.colMessage.Width = 120; - // - // panelEx1 - // - this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control; - this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.panelEx1.Controls.Add(this.pnlShowError); - this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty; - this.panelEx1.Dock = System.Windows.Forms.DockStyle.Fill; - this.panelEx1.Location = new System.Drawing.Point(0, 0); - this.panelEx1.Name = "panelEx1"; - this.panelEx1.Padding = new System.Windows.Forms.Padding(1); - this.panelEx1.Size = new System.Drawing.Size(726, 492); - this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center; - this.panelEx1.Style.BackColor1.Color = System.Drawing.Color.White; - this.panelEx1.Style.BackColor2.Color = System.Drawing.Color.White; - 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.TabIndex = 183; - // - // pnlShowError - // - this.pnlShowError.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.pnlShowError.CanvasColor = System.Drawing.Color.Empty; - this.pnlShowError.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.pnlShowError.DisabledBackColor = System.Drawing.Color.Empty; - this.pnlShowError.Location = new System.Drawing.Point(182, 192); - this.pnlShowError.Name = "pnlShowError"; - this.pnlShowError.Size = new System.Drawing.Size(361, 100); - this.pnlShowError.Style.Alignment = System.Drawing.StringAlignment.Center; - this.pnlShowError.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(163)))), ((int)(((byte)(226)))), ((int)(((byte)(255))))); - this.pnlShowError.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(163)))), ((int)(((byte)(226)))), ((int)(((byte)(255))))); - this.pnlShowError.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.pnlShowError.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; - this.pnlShowError.Style.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.pnlShowError.Style.ForeColor.Color = System.Drawing.Color.Red; - this.pnlShowError.Style.GradientAngle = 90; - this.pnlShowError.TabIndex = 187; - this.pnlShowError.Text = "panelEx3"; - this.pnlShowError.Visible = false; - // - // 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); - this.splitContainer4.Size = new System.Drawing.Size(1070, 26); - this.splitContainer4.SplitterDistance = 663; - 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(663, 26); - this.statusBar.TabIndex = 2; - // - // CommissionForm - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1070, 606); - this.Controls.Add(this.splitContainer1); - this.Name = "CommissionForm"; - this.Text = "CommissionForm"; - this.Load += new System.EventHandler(this.CommissionForm_Load); - this.VisibleChanged += new System.EventHandler(this.CommissionForm_VisibleChanged); - this.splitContainer1.Panel1.ResumeLayout(false); - this.splitContainer1.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); - this.splitContainer1.ResumeLayout(false); - this.ucGroupBoxEx2.ResumeLayout(false); - this.ucGroupBoxEx2.PerformLayout(); - this.ucGroupBoxEx1.ResumeLayout(false); - 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.Panel1.PerformLayout(); - this.splitContainer2.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); - this.splitContainer2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.dgvShop)).EndInit(); - this.panelEx1.ResumeLayout(false); - this.splitContainer4.Panel1.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).EndInit(); - this.splitContainer4.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.SplitContainer splitContainer1; - private UserControls.ButtonEx btnPause; - private System.Windows.Forms.TextBox txtTotalPage; - private System.Windows.Forms.Label label26; - private System.Windows.Forms.SplitContainer splitContainer3; - private System.Windows.Forms.SplitContainer splitContainer2; - private UserComponent.DataGridViewEx dgvShop; - private System.Windows.Forms.SplitContainer splitContainer4; - private UserControls.StatusBarUserControl statusBar; - private System.Windows.Forms.RadioButton rbAll; - private System.Windows.Forms.RadioButton rbNew; - private UserComponent.UcGroupBoxEx ucGroupBoxEx2; - private UserComponent.UcGroupBoxEx ucGroupBoxEx1; - private UserControls.ButtonEx btnRefresh; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.TextBox txtRatio; - private System.Windows.Forms.Label label1; - private DevComponents.DotNetBar.PanelEx panelEx1; - private DevComponents.DotNetBar.PanelEx pnlShowError; - private System.Windows.Forms.RadioButton rbFreeSample; - private System.Windows.Forms.RadioButton rbNoSample; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopId; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopName; - private System.Windows.Forms.DataGridViewTextBoxColumn colLoginStatus; - private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; - private DevComponents.DotNetBar.PanelEx btnStop; - private DevComponents.DotNetBar.PanelEx btnStart; - private DevComponents.DotNetBar.PanelEx btnEditSampleRule; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/Old/CommissionForm.cs b/TEMUKJD/KJDForms/ProductForms/Old/CommissionForm.cs deleted file mode 100644 index 015418a..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/CommissionForm.cs +++ /dev/null @@ -1,1095 +0,0 @@ -using AllBase.Helper; -using AllBase.Model.Result; -using CefSharp; -using CefSharp.WinForms; -using TemuKJD.Extension; -using TemuKJD.Helper; -using TemuKJD.KJDForms.BaseForms; -using NaiBa.CefHelper; -using NaiBa.CefHelper.Handler; -using NaiBa.Util.Extension; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace TemuKJD.KJDForms.ProductForms -{ - public partial class CommissionForm : BaseForm - { - ChromiumWebBrowser webBrowser = null; - int setPage = 99; - int currentPage = 0; - /// - /// 佣金比例 - /// - int commissionRate = 10; - string sampleRule = "不支持申样"; - /// - /// 指定佣金商品ID - /// - string commissionProductIds = ""; - bool isRun = false; - public CommissionForm() - { - InitializeComponent(); - } - - private void CommissionForm_Load(object sender, EventArgs e) - { - LoadShops(); - this.dgvShop.AddSelectorColumn("colSelect"); - } - - public void LoadShops() - { - for (int i = 0; i < GlobalConfig.ShopLoginList.Count; i++) - { - var shop = GlobalConfig.ShopLoginList[i]; - var row = dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopId); - if (row == null) - dgvShop.Rows.Add(false, shop.ShopId, shop.ShopAccount, shop.LoginStatus); - else - { - row.Cells["colLoginStatus"].Value = shop.LoginStatus; - } - } - } - - private void CommissionForm_VisibleChanged(object sender, EventArgs e) - { - if (Visible) - LoadShops(); - } - - private void btnRefresh_Click(object sender, EventArgs e) - { - LoadShops(); - } - - private void btnStart_Click(object sender, EventArgs e) - { - BaseMsgForm.ShowError("因抖店平台调整,本功能暂时不可用。"); - return; - - this.setPage = this.txtTotalPage.Text.ParseToInt(); - this.commissionRate = this.txtRatio.Text.ParseToInt(); - this.sampleRule = rbNoSample.Checked ? "不支持申样" : "免费申样"; - var shopIds = this.dgvShop.Rows.Cast().Where(r => r.Cells["colSelect"].Value.ParseToBool() == true && r.Cells["colLoginStatus"].Value?.ToString() == "登录成功") - .Select(r => r.Cells["colShopId"].Value?.ToString()).ToList(); - var shops = GlobalConfig.ShopLoginList.Where(s => shopIds.Contains(s.ShopId)).ToList(); - - isRun = true; - btnStart.Enabled = false; - AddCommissionWithCef(shops); - Task.Run(() => - { - Thread.Sleep(8000); - Invoke(new Action(() => { btnStart.Enabled = true; })); - }); - } - - /// - /// 修改申样规则 - /// - /// - /// - private void btnEditSampleRule_Click(object sender, EventArgs e) - { - BaseMsgForm.ShowError("因抖店平台调整,本功能暂时不可用。"); - return; - - this.setPage = this.txtTotalPage.Text.ParseToInt(); - this.commissionRate = this.txtRatio.Text.ParseToInt(); - this.sampleRule = rbNoSample.Checked ? "不支持申样" : "免费申样"; - var shopIds = this.dgvShop.Rows.Cast().Where(r => r.Cells["colSelect"].Value.ParseToBool() == true && r.Cells["colLoginStatus"].Value?.ToString() == "登录成功") - .Select(r => r.Cells["colShopId"].Value?.ToString()).ToList(); - var shops = GlobalConfig.ShopLoginList.Where(s => shopIds.Contains(s.ShopId)).ToList(); - - isRun = true; - btnStart.Enabled = false; - EditSampleRuleWithCef(shops); - Task.Run(() => - { - Thread.Sleep(8000); - Invoke(new Action(() => { btnStart.Enabled = true; })); - }); - } - - void InitWebBrowser() - { - webBrowser = CEFBrowser.CreateChromiumWebBrowser("about:blank", false); - webBrowser.KeyboardHandler = new KeyboardHandler(); - webBrowser.Dock = DockStyle.Fill; - webBrowser.LifeSpanHandler = new LifeSpanHandlerLocal(PopWindowType.SelfWindow); - webBrowser.AddressChanged += WebBrowser_AddressChanged; - webBrowser.FrameLoadEnd += webBrowser_FrameLoadEnd; - webBrowser.SendToBack(); - this.panelEx1.Controls.Add(webBrowser); - } - - /// - /// 使用cef修改申样规则 - /// - /// - public void EditSampleRuleWithCef(List shops) - { - Task.Run(() => - { - if (webBrowser == null) - { - Invoke(new Action(() => - { - InitWebBrowser(); - })); - } - - while (!webBrowser.IsBrowserInitialized || webBrowser.IsLoading) - continue; - - for (int i = 0; i < shops.Count; i++) - { - - var shop = shops[i]; - if (shop == null) - { - continue; - } - - if (!isRun) - { - Invoke(new Action(() => - { - var row1 = dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopId); - if (row1 != null) - row1.Cells["colMessage"].Value = "设置中断"; - })); - break; - } - - Invoke(new Action(() => - { - this.statusBar.pgbTaskProgress.Maximum = shops.Count; - this.statusBar.lblTaskStatus.Text = "正在设置店铺:" + shop.ShopAccount + " 页数:" + (currentPage + 1) + "/" + setPage; - this.statusBar.pgbTaskProgress.Value = (i + 1); - this.statusBar.pgbTaskProgress.Text = (i + 1) + "/" + shops.Count; - })); - - var loadResult = LoadShopCommissionPage(shop); - if (!string.IsNullOrEmpty(loadResult)) - { - shop.Message = loadResult; - Invoke(new Action(() => - { - var row1 = dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopId); - if (row1 != null) - row1.Cells["colMessage"].Value = shop.Message; - })); - continue; - } - EditSampleRule(shop); - } - - isRun = false; - Invoke(new Action(() => - { - this.statusBar.lblTaskStatus.Text = "设置完成"; - btnStart.Enabled = true; - })); - }); - } - - void EditSampleRule(ShopLoginInfo shop) - { - // 错误提示信息 - string failMsg = ""; - var productIds = commissionProductIds; - - #region 选择要设置的申样选项 - - // 点击打开申样选择框 - var jsStr = clickJsElementStr + - "function clickBtn2(txt1, txt2) {\r\n" + - " var elem = getElement(txt1);\r\n" + - " if(elem) {" + - " elem = elem.parentNode.parentNode;\r\n" + - " elem = getElement(txt2, elem);\r\n" + - " if (elem) {\r\n" + - " var e = document.createEvent('MouseEvents');\r\n" + - " e.initMouseEvent('mousedown', true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);\r\n" + - " elem.dispatchEvent(e); " + - " return 'success';\r\n" + - " }\r\n" + - " }\r\n" + - " return 'no_element';\r\n" + - "}\r\n" + - "clickBtn2('样品规则', '全部');\r\n"; - - var t1 = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - t1.Wait(); - if (t1.Result?.Result?.ToString() == null || t1.Result?.Result?.ToString() != "success") - { - failMsg = "编辑申样设置选项打开失败。"; - goto showFail; - } - - var selectSampleRule = "不支持申样"; - // 选择申样设置 - if (sampleRule == "不支持申样") - { - selectSampleRule = "免费申样"; - } - - Thread.Sleep(AllBase.Randomx.GetId(1500, 2500)); - jsStr = clickJsElementStr + - "function clickSelect() {\r\n" + - " var elem = getElement('>" + selectSampleRule + "<', document.getElementsByClassName('rc-virtual-list-holder-inner')[0]);\r\n" + - " if (elem) elem.click(); return 'success';\r\n" + - " return 'no_element';\r\n" + - "}\r\n" + - "clickSelect();\r\n"; - t1 = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - t1.Wait(); - if (t1.Result?.Result?.ToString() == null || t1.Result?.Result?.ToString() != "success") - { - failMsg = "编辑申样设置选项选择失败。"; - goto showFail; - } - - #endregion - - while (currentPage < setPage) - { - if (!isRun) - { - Invoke(new Action(() => - { - var row1 = dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopId); - if (row1 != null) - row1.Cells["colMessage"].Value = "编辑申样中断"; - })); - break; - } - - currentPage++; - Invoke(new Action(() => - { - this.statusBar.lblTaskStatus.Text = "正在编辑申样,店铺:" + shop.ShopAccount + " 页数:" + currentPage + "/" + setPage + "..."; - })); - - Thread.Sleep(AllBase.Randomx.GetId(1500, 2500)); - // 点击查询按钮 - jsStr = clickJsElementStr + - "function clickSearch(){" + - " var elem = getElement('查询 ');\r\n" + - " if (elem) elem.click(); return 'success';\r\n" + - " return 'no_element';\r\n" + - "} " + - "clickSearch();\r\n"; - t1 = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - t1.Wait(); - if (t1.Result?.Result?.ToString() != "success") - { - failMsg = "查询申样设置商品失败。"; - goto showFail; - } - - Thread.Sleep(AllBase.Randomx.GetId(1500, 2500)); - // 获取页面上是否有数据 - t1 = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync("document.body.innerHTML.indexOf('暂无数据') >= 0"); - t1.Wait(); - // 如果暂无数据,说明已设置完成,跳转到设置完成。 - if (t1.Result?.Result?.ToString()?.ToLower() == "true") - { - goto SetEnd; - } - - Thread.Sleep(AllBase.Randomx.GetId(1500, 2500)); - // 全选要设置的商品 - jsStr = "function selectAllProduct() { document.getElementsByClassName('auxo-checkbox-input')[0].click(); return 'success'; }" + - "selectAllProduct();"; - t1 = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - t1.Wait(); - if (t1.Result?.Result?.ToString() != "success") - { - failMsg = "全选申样设置商品失败。"; - goto showFail; - } - - Thread.Sleep(AllBase.Randomx.GetId(1500, 2500)); - // 点击设置申样门槛按钮 - jsStr = clickJsElementStr + - "function clickSetSample(){" + - " var elem = getElement('设置申样门槛');\r\n" + - " if (elem) elem.click(); return 'success';\r\n" + - " return 'no_element';\r\n" + - "} " + - "clickSetSample();\r\n"; - t1 = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - t1.Wait(); - if (t1.Result?.Result?.ToString() != "success") - { - failMsg = "点击设置申样门槛按钮失败"; - goto showFail; - } - - Thread.Sleep(AllBase.Randomx.GetId(1500, 2500)); - // 选择申样规则 - if (sampleRule == "不支持申样") - { - // 系统默认选择 不支持申样,不做操作; - } - else - { - jsStr = clickJsElementStr + - "function checkSampleRule(){" + - " var elem = getElement('" + sampleRule + "', document.getElementsByClassName('auxo-drawer-wrapper-body')[0]);\r\n" + - " if (elem) elem.click(); return 'success';\r\n" + - " return 'no_element';\r\n" + - "} " + - "checkSampleRule();\r\n"; - t1 = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - t1.Wait(); - if (t1.Result?.Result?.ToString() != "success") - { - failMsg = "选择申样设置门槛失败。"; - goto showFail; - } - } - - Thread.Sleep(AllBase.Randomx.GetId(1500, 2500)); - - jsStr = clickJsElementStr + - "function checkSampleRule(){" + - " var elem = getElement('确定', document.getElementsByClassName('auxo-drawer-wrapper-body')[0]);\r\n" + - " if (elem) elem.click(); return 'success';\r\n" + - " return 'no_element';\r\n" + - "} " + - "checkSampleRule();\r\n"; - t1 = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - t1.Wait(); - if (t1.Result?.Result?.ToString() != "success") - { - failMsg = "点击确定设置申样门槛失败。"; - goto showFail; - } - for (int k = 0; k < 5; k++) - { - Thread.Sleep(1000); - } - } - - SetEnd: - Invoke(new Action(() => - { - shop.Message = "设置完成"; - var row = dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopId); - if (row != null) - row.Cells["colMessage"].Value = "设置完成"; - })); - - showFail: - if (!string.IsNullOrEmpty(failMsg)) - { - if (failMsg.Contains("设置新增佣金商品不存在") || failMsg.Contains("佣金金额设置失败")) - { - shop.Message = "设置完成"; - } - else - { - shop.Message = failMsg; - - Invoke(new Action(() => - { - pnlShowError.Visible = true; - pnlShowError.Text = " 设置佣金部分失败:" + failMsg + " " + productIds.Trim(',') + " "; - this.pnlShowError.BringToFront(); - Task.Run(() => - { - Thread.Sleep(8000); - if (this.Created) - Invoke(new Action(() => - { - this.pnlShowError.Visible = false; - })); - }); - })); - } - Invoke(new Action(() => - { - var row1 = dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopId); - if (row1 != null) - row1.Cells["colMessage"].Value = shop.Message; - })); - } - } - - /// - /// 添加普通佣金 - /// - /// - /// - public void AddCommissionWithCef(List shops) - { - Task.Run(() => - { - if (webBrowser == null) - { - Invoke(new Action(() => - { - InitWebBrowser(); - })); - } - - while (!webBrowser.IsBrowserInitialized || webBrowser.IsLoading) - continue; - - for (int i = 0; i < shops.Count; i++) - { - - var shop = shops[i]; - if (shop == null) - { - continue; - } - - if (!isRun) - { - Invoke(new Action(() => - { - var row1 = dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopId); - if (row1 != null) - row1.Cells["colMessage"].Value = "设置中断"; - })); - break; - } - - Invoke(new Action(() => - { - this.statusBar.pgbTaskProgress.Maximum = shops.Count; - this.statusBar.lblTaskStatus.Text = "正在设置店铺:" + shop.ShopAccount + " 页数:" + (currentPage + 1) + "/" + setPage; - this.statusBar.pgbTaskProgress.Value = (i + 1); - this.statusBar.pgbTaskProgress.Text = (i + 1) + "/" + shops.Count; - })); - - var loadResult = LoadShopCommissionPage(shop); - if (!string.IsNullOrEmpty(loadResult)) - { - shop.Message = loadResult; - Invoke(new Action(() => - { - var row1 = dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopId); - if (row1 != null) - row1.Cells["colMessage"].Value = shop.Message; - })); - continue; - } - SetNewCommission(shop); - } - - isRun = false; - Invoke(new Action(() => - { - this.statusBar.lblTaskStatus.Text = "设置完成"; - btnStart.Enabled = true; - })); - }); - } - - /// - /// 登录店铺佣金页面 - /// - /// - private string LoadShopCommissionPage(ShopLoginInfo shop) - { - Thread.Sleep(1000); - - // 错误提示信息 - string failMsg = ""; - currentPage = 0; - var cookie = shop.Cookies; - CEFBrowser.DeleteCookie(webBrowser.RequestContext.GetCookieManager(null)); - var t = CEFBrowser.SetCookieAsync("jinritemai.com", cookie, webBrowser.RequestContext.GetCookieManager(null)); - t.Wait(8000); - - for (int j = 0; j < 50; j++) - { - Thread.Sleep(1500); - //webBrowser.Load("https://buyin.jinritemai.com/dashboard/activity/common-plan"); - var jsStr = "window.location.href='https://fxg.jinritemai.com/ffa/mshop/homepage/index';"; - var t1 = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - t1.Wait(8000); - do - { - Thread.Sleep(1000); - } - while (webBrowser.IsLoading); - Thread.Sleep(AllBase.Randomx.GetId(2000, 3000)); - - jsStr = clickJsElementStr + "getElement('精选联盟').click();"; - t1 = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - t1.Wait(8000); - do - { - Thread.Sleep(1000); - } - while (webBrowser.IsLoading); - Thread.Sleep(AllBase.Randomx.GetId(2000, 3000)); - - jsStr = "window.location.href='https://buyin.jinritemai.com/dashboard/activity/common-plan';"; - t1 = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - t1.Wait(8000); - do - { - Thread.Sleep(1000); - } - while (webBrowser.IsLoading); - Thread.Sleep(AllBase.Randomx.GetId(4000, 5000)); - - jsStr = clickJsElementStr + - "function clickBtn(txt) {\r\n" + - " var elem = getElement(txt);\r\n" + - " if (elem) elem.click(); return 'success';\r\n" + - " return 'no_element';\r\n" + - "}\r\n" + - "clickBtn('添加商品');\r\n"; - - // 先判断页面是否加载失败 - t1 = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync("document.body.innerHTML.indexOf('加载失败') >= 0"); - t1.Wait(); - // 如果加载失败,通过点击计划按钮尝试再次加载 - if (t1.Result?.Result?.ToString()?.ToLower() == "true") - { - Thread.Sleep(1500 + AllBase.Randomx.GetId(1000)); - var jsStrx = jsStr.Replace("clickBtn('添加商品');", "clickBtn('定向计划');"); - var t1x = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStrx); - t1x.Wait(); - if (t1x.Result?.Result?.ToString() == "success") - { - Thread.Sleep(1500 + AllBase.Randomx.GetId(1000)); - jsStrx = jsStr.Replace("clickBtn('添加商品');", "clickBtn('普通计划');"); - t1x = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStrx); - t1x.Wait(); - } - // 二次判断页面是否仍加载失败,如果加载仍失败,则重新load网页。 - Thread.Sleep(1500 + AllBase.Randomx.GetId(1000)); - t1 = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync("document.body.innerHTML.indexOf('加载失败') >= 0"); - t1.Wait(); - // 如果加载失败 - if (t1.Result?.Result?.ToString()?.ToLower() == "true") - continue; - else - break; - } - else - break; - } - Thread.Sleep(2000); - - for (int j = 0; j < 10; j++) - { - var jsCode = "function closeMask() {" + - "if (document.body.innerHTML.indexOf('普通计划') < 0) return;" + - "var mask1 = document.getElementsByClassName('ant-modal-root')[0];" + - "if (mask1) mask1.parentNode.removeChild(mask1);" + - "var mask2 = document.getElementsByClassName('y-guide')[0];" + - "if (mask2) mask2.parentNode.removeChild(mask2);" + - "var mask3 = document.getElementById('browser-support-tip');" + - "if (mask3) mask3.parentNode.removeChild(mask3);" + - "}" + - "closeMask();"; - t = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsCode); - t.Wait(3000); - Thread.Sleep(300); - } - - return failMsg; - } - - /// - /// 设置新佣金 - /// - /// - private void SetNewCommission(ShopLoginInfo shop) - { - // 错误提示信息 - string failMsg = ""; - var rate = commissionRate; - var productIds = commissionProductIds; - - //var jsStr = clickJsElementStr + - // "function clickBtn(txt) {\r\n" + - // " var elem = getElement(txt);\r\n" + - // " if (elem) elem.click(); return 'success';\r\n" + - // " return 'no_element';\r\n" + - // "}\r\n" + - // "clickBtn('添加商品');\r\n"; - - //// 打开新增佣金商品列表 - //var t0 = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - //t0.Wait(); - - //if (t0.Result?.Result?.ToString() != "success") - //{ - // failMsg = "新增佣金商品列表打开失败。"; - // return failMsg; - //} - - while (currentPage < setPage) - { - if (!isRun) - { - Invoke(new Action(() => - { - var row1 = dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopId); - if (row1 != null) - row1.Cells["colMessage"].Value = "设置中断"; - })); - break; - } - - currentPage++; - Invoke(new Action(() => - { - this.statusBar.lblTaskStatus.Text = "正在设置店铺:" + shop.ShopAccount + " 页数:" + currentPage + "/" + setPage + "..."; - })); - - var jsStr = clickJsElementStr + - "function clickBtn2(txt) {\r\n" + - " if (document.body.innerHTML.indexOf('添加推广商品') >= 0)\r\n" + - " return 'success';\r\n" + - " var elem = getElement(txt);\r\n" + - " if (elem) elem.click(); return 'success';\r\n" + - " return 'no_element';\r\n" + - "}\r\n" + - "clickBtn2('添加商品');\r\n"; - var t1 = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - t1.Wait(); - if (t1.Result?.Result?.ToString() == "加载失败" || t1.Result?.Result?.ToString() == null) - continue; - if (t1.Result?.Result?.ToString() != "success") - { - failMsg = "新增佣金商品列表打开失败。"; - goto showFail; - } - - int x = 0, y = 0; - string jsStr1 = "", result = ""; - Task task = null; - var host = webBrowser.GetBrowser().GetHost(); - #region 选择批量查询选项 - if (!string.IsNullOrEmpty(productIds)) - { - x = 0; - y = 0; - jsStr1 = "function getPos() { var box = document.getElementsByClassName('search-product-select');" + - "if (box[0] == null) return '-|-';" + - "var actualLeft = box[0].offsetLeft;" + - "var actualTop = box[0].offsetTop;" + - "var current = box[0].offsetParent;" + - "while (current !== null) { actualLeft += current.offsetLeft; actualTop += current.offsetTop; current = current.offsetParent; }" + - "return '' + actualLeft + '|' + actualTop;}" + - "getPos();"; - task = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr1); - task.Wait(); - result = task.Result?.Result?.ToString(); - - if (result != null && result != "-|-") - { - var arr = result.Split('|'); - if (arr.Length == 2) - { - x = Convert.ToInt32(arr[0]); - y = Convert.ToInt32(arr[1]); - } - int x1 = x + new Random(DateTime.Now.Millisecond).Next(6, 30); - int y1 = y + new Random(DateTime.Now.Millisecond).Next(6, 16); - host.SendMouseClickEvent(x1, y1, MouseButtonType.Left, false, 1, CefEventFlags.None); // 按下鼠标左键 - Thread.Sleep(70 + new Random(DateTime.Now.Millisecond).Next(50)); - host.SendMouseClickEvent(x1, y1, MouseButtonType.Left, true, 1, CefEventFlags.None); // 松开鼠标左键 - Thread.Sleep(500 + new Random(DateTime.Now.Millisecond).Next(500)); - - x1 = x + new Random(DateTime.Now.Millisecond).Next(6, 30); - y1 = y + new Random(DateTime.Now.Millisecond).Next(84, 94); - host.SendMouseClickEvent(x1, y1, MouseButtonType.Left, false, 1, CefEventFlags.None); // 按下鼠标左键 - Thread.Sleep(70 + new Random(DateTime.Now.Millisecond).Next(50)); - host.SendMouseClickEvent(x1, y1, MouseButtonType.Left, true, 1, CefEventFlags.None); // 松开鼠标左键 - Thread.Sleep(1500 + new Random(DateTime.Now.Millisecond).Next(500)); - } - else - { - failMsg = "佣金商品列表获取失败。"; - goto showFail; - } - #endregion - - #region 输入商品编号并查询 - - jsStr1 = "function getPos() { var box = document.getElementsByClassName('ant-select-show-search');" + - "if (box[0] == null) return '-|-';" + - "var actualLeft = box[0].offsetLeft;" + - "var actualTop = box[0].offsetTop;" + - "var current = box[0].offsetParent;" + - "while (current !== null) { actualLeft += current.offsetLeft; actualTop += current.offsetTop; current = current.offsetParent; }" + - "return '' + actualLeft + '|' + actualTop;}" + - "getPos();"; - task = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr1); - task.Wait(); - result = task.Result?.Result?.ToString(); - - if (result != null && result != "-|-") - { - var arr = result.Split('|'); - if (arr.Length == 2) - { - x = Convert.ToInt32(arr[0]); - y = Convert.ToInt32(arr[1]); - } - int x1 = x + new Random(DateTime.Now.Millisecond).Next(6, 30); - int y1 = y + new Random(DateTime.Now.Millisecond).Next(6, 16); - host.SendMouseClickEvent(x1, y1, MouseButtonType.Left, false, 1, CefEventFlags.None); // 按下鼠标左键 - Thread.Sleep(70 + new Random(DateTime.Now.Millisecond).Next(50)); - host.SendMouseClickEvent(x1, y1, MouseButtonType.Left, true, 1, CefEventFlags.None); // 松开鼠标左键 - Thread.Sleep(500 + new Random(DateTime.Now.Millisecond).Next(500)); - - Invoke(new Action(() => - { - Clipboard.Clear(); - Clipboard.SetDataObject("" + productIds.TrimEnd(',')); // 复制要搜索的商品ID到剪贴板 - })); - - // 黏贴 ctrl + v - host.SendKeyEvent(new CefSharp.KeyEvent() { WindowsKeyCode = 86, Type = KeyEventType.RawKeyDown, Modifiers = CefEventFlags.ControlDown }); - Thread.Sleep(1250 + new Random(DateTime.Now.Millisecond).Next(250)); - } - else - { - failMsg = "查询新增佣金商品失败。"; - goto showFail; - } - } - - // 点击查询按钮 - jsStr1 = "document.getElementsByClassName('search-btns-item-first')[0].click();"; - task = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr1); - task.Wait(); - Thread.Sleep(2500 + new Random(DateTime.Now.Millisecond).Next(500)); - - // 获取页面上是否有数据 - task = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync("document.getElementsByClassName('auxo-drawer-wrapper-body')[0].innerHTML.indexOf('暂无数据') >= 0"); - task.Wait(); - // 如果暂无数据,说明已设置完成,跳转到设置完成。 - if (task.Result?.Result?.ToString()?.ToLower() == "true") - { - goto SetEnd; - } - #endregion - - #region 勾选商品信息 - jsStr1 = getFirstElementJsStr + - "\r\nfunction getInnerHtml() {\r\n" + - " var item = document.getElementsByClassName('ant-table-wrapper activity-list-table')[0];\r\n" + - " if (item) {\r\n" + - " return item.innerHTML;\r\n" + - " }\r\n" + - " return 'no_element';\r\n" + - "}\r\n" + - "getInnerHtml();"; - task = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr1); - task.Wait(); - Thread.Sleep(1500 + new Random(DateTime.Now.Millisecond).Next(500)); - var idArray = productIds.TrimEnd(',').Split(','); - if (task.Result?.Result?.ToString() == null || !idArray.Any(a => task.Result.Result.ToString().Contains(a))) - { - failMsg = "设置新增佣金商品不存在。"; - goto showFail; - } - - jsStr1 = getFirstElementJsStr + - "\r\nfunction clickCheckBox() {\r\n" + - " var item = document.getElementsByClassName('auxo-table-wrapper activity-list-table')[0];\r\n" + - " if (item) {\r\n" + - " var tHead = getFirstElement('THEAD', item)\r\n" + - " var tagItem = getFirstElement('INPUT', tHead)\r\n" + - " if (tagItem) tagItem.click(); return 'success';\r\n" + - " }\r\n" + - " return 'no_element';\r\n" + - "}\r\n" + - "clickCheckBox();"; - task = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr1); - task.Wait(); - Thread.Sleep(1500 + new Random(DateTime.Now.Millisecond).Next(500)); - if (task.Result?.Result?.ToString() != "success") - { - failMsg = "设置新增佣金商品选择失败。"; - goto showFail; - } - #endregion - - #region 点击确定设置佣金 - jsStr1 = "const originalPush = Router.prototype.push;" + - "Router.prototype.push = function push(location) {" + - " return originalPush.call(this, location).catch(err => err) " + - "}" + - - "function clickSetCommMulti() {" + - " var btn = document.getElementsByClassName('exclusive_commodity-filter-drawer-footer-operations__operation ant-btn-primary')[0];" + - " if (btn) { btn.click(); return; }" + - " btn = document.getElementsByClassName('auxo-btn-primary exclusive_commodity-filter-drawer-footer-operations__operation')[0];" + - " if (btn) { btn.click(); return; }" + - "}" + - "clickSetCommMulti();"; - task = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr1); - task.Wait(); - Thread.Sleep(1500 + new Random(DateTime.Now.Millisecond).Next(500)); - #endregion - - for (int i = 0; i < 9999; i++) - { - Thread.Sleep(1000); - } - - #region 设置申样 - if (sampleRule == "不支持申样") - { - jsStr = clickJsElementStr + - "function checkSampleRule(){" + - " var elem = getElement('" + sampleRule + "', document.getElementsByClassName('auxo-drawer-wrapper-body')[0]);\r\n" + - " if (elem) elem.click(); return 'success';\r\n" + - " return 'no_element';\r\n" + - "} " + - "checkSampleRule();\r\n"; - t1 = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - t1.Wait(); - if (t1.Result?.Result?.ToString() != "success") - { - failMsg = "选择申样设置门槛失败。"; - goto showFail; - } - } - #endregion - - #region 设置佣金金额 - jsStr1 = "function getPos() { var box = document.getElementsByClassName('auxo-input-number-input');" + - "if (box[0] == null) return '-|-';" + - "var actualLeft = box[0].offsetLeft;" + - "var actualTop = box[0].offsetTop;" + - "var current = box[0].offsetParent;" + - "while (current !== null) { actualLeft += current.offsetLeft; actualTop += current.offsetTop; current = current.offsetParent; }" + - "return '' + actualLeft + '|' + actualTop;}" + - "getPos();"; - task = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr1); - task.Wait(); - result = task.Result?.Result?.ToString(); - - if (result != null && result != "-|-") - { - var arr = result.Split('|'); - if (arr.Length == 2) - { - x = Convert.ToInt32(arr[0]); - y = Convert.ToInt32(arr[1]); - } - int x1 = x + new Random(DateTime.Now.Millisecond).Next(30, 60); - int y1 = y + new Random(DateTime.Now.Millisecond).Next(6, 16); - host.SendMouseClickEvent(x1, y1, MouseButtonType.Left, false, 1, CefEventFlags.None); // 按下鼠标左键 - Thread.Sleep(70 + new Random(DateTime.Now.Millisecond).Next(50)); - host.SendMouseClickEvent(x1, y1, MouseButtonType.Left, true, 1, CefEventFlags.None); // 松开鼠标左键 - Thread.Sleep(150 + new Random(DateTime.Now.Millisecond).Next(150)); - - // 模拟输入退格键 - host.SendKeyEvent(new CefSharp.KeyEvent() { WindowsKeyCode = 8, Type = KeyEventType.RawKeyDown, Modifiers = CefEventFlags.None }); - Thread.Sleep(250 + new Random(DateTime.Now.Millisecond).Next(250)); - // 模拟输入退格键 - host.SendKeyEvent(new CefSharp.KeyEvent() { WindowsKeyCode = 8, Type = KeyEventType.RawKeyDown, Modifiers = CefEventFlags.None }); - Thread.Sleep(250 + new Random(DateTime.Now.Millisecond).Next(250)); - - Invoke(new Action(() => - { - Clipboard.Clear(); - Clipboard.SetDataObject("" + rate); // 复制要搜索的商品ID到剪贴板 - })); - - // 黏贴 ctrl + v - host.SendKeyEvent(new CefSharp.KeyEvent() { WindowsKeyCode = 86, Type = KeyEventType.RawKeyDown, Modifiers = CefEventFlags.ControlDown }); - Thread.Sleep(1500 + new Random(DateTime.Now.Millisecond).Next(500)); - } - else - { - failMsg = "佣金金额设置失败。"; - goto showFail; - } - #endregion - - #region 最后点击确定按钮设置佣金 - //apply-sample-modal-footer - jsStr1 = clickJsElementStr + - "function clickOkBtn(){" + - " var elem = getElement('确定', document.getElementsByClassName('auxo-drawer-wrapper-body')[0]);\r\n" + - " if (elem) elem.click(); return 'success';\r\n" + - " return 'no_element';\r\n" + - "} " + - "clickOkBtn();\r\n"; - task = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr1); - task.Wait(); - Thread.Sleep(500 + new Random(DateTime.Now.Millisecond).Next(500)); - #endregion - - Thread.Sleep(2000); - - //bool isRetry = false; - //Retry: - //var url = "https://buyin.jinritemai.com/api/promotion/createXdPromotions"; - ////if (!string.IsNullOrEmpty(sign)) - //// url += "?_signature=" + sign; - //var request = new CommonSimRequest(); - //var referer = "https://buyin.jinritemai.com/dashboard/activity/common-plan"; - //var data = "cos_ratio=" + rate + "&apply_style=1&product_ids=" + productIds.Trim(','); - //Dictionary headers = new Dictionary(); - //headers.Add("Origin", @"https://buyin.jinritemai.com"); - //var html = request.Request_Post(url, referer, headers, shop.Cookies, data); - //if (html.Contains("\"msg\":\"success\"") && html.Contains("\"failed_ids\":{}")) - //{ - //} - //else - //{ - // if (!isRetry) - // { - // isRetry = true; - // goto Retry; - // } - - //} - - var html = ""; - //lock (lstCommissionAddResult) - //{ - // try - // { - // //if (html.Contains("\"msg\":\"success\"") && html.Contains("\"failed_ids\":{}")) - // { - // lstCommissionAddResult.RemoveAll(s => productIds.Contains(s.ProductId.ToString()) || s.ProductId == 0); - // NaiBa.Util.ConfigHelper.SaveConfig("upload_commission_list", lstCommissionAddResult); - // } - // } - // catch (Exception ex) { } - //} - for (int k = 0; k < 5; k++) - { - Thread.Sleep(1000); - //if (lstCommissionAddResult.Count > 10 || Work.BLL.Upload.UploadProductBLL.ProductStock.Count < 1) - // break; - } - } - - SetEnd: - Invoke(new Action(() => - { - shop.Message = "设置完成"; - var row = dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopId); - if (row != null) - row.Cells["colMessage"].Value = "设置完成"; - })); - - showFail: - if (!string.IsNullOrEmpty(failMsg)) - { - if (failMsg.Contains("设置新增佣金商品不存在") || failMsg.Contains("佣金金额设置失败")) - { - shop.Message = "设置完成"; - } - else - { - shop.Message = failMsg; - - Invoke(new Action(() => - { - pnlShowError.Visible = true; - pnlShowError.Text = " 设置佣金部分失败:" + failMsg + " " + productIds.Trim(',') + " "; - this.pnlShowError.BringToFront(); - Task.Run(() => - { - Thread.Sleep(8000); - if (this.Created) - Invoke(new Action(() => - { - this.pnlShowError.Visible = false; - })); - }); - })); - } - Invoke(new Action(() => - { - var row1 = dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopId); - if (row1 != null) - row1.Cells["colMessage"].Value = shop.Message; - })); - } - } - - private void WebBrowser_AddressChanged(object sender, CefSharp.AddressChangedEventArgs e) - { - } - - private void webBrowser_FrameLoadEnd(object sender, CefSharp.FrameLoadEndEventArgs e) - { - } - - public static string clickJsElementStr = "function getElement(txt, elem) {\r\n" + - " var child = document.body.firstElementChild;\r\n" + - " if (elem) child = elem\r\n" + - " var element1 = null;\r\n" + - " while (child) {\r\n" + - " if (child.innerHTML.indexOf(txt) >= 0) {\r\n" + - " element1 = child;\r\n" + - " if (child.firstElementChild) {\r\n" + - " child = child.firstElementChild; continue;\r\n" + - " } else break;\r\n" + - " }\r\n" + - " child = child.nextElementSibling;\r\n" + - " }\r\n" + - " if (element1) {\r\n" + - " return element1;\r\n" + - " } else return error;\r\n" + - "}\r\n"; - - public static string getFirstElementJsStr = "function getFirstElement(tag_name, elem) {\r\n" + - " var nodes = [];\r\n" + - " var child = document.body.firstElementChild;\r\n" + - " if (elem) child = elem\r\n" + - " nodes.push(child);\r\n" + - " for (i = 0; i < nodes.length; i++) {\r\n" + - " if (nodes[i].tagName === tag_name) return nodes[i];\r\n" + - " for (j = 0; j < nodes[i].childNodes.length; j++) {\r\n" + - " var node = nodes[i].childNodes[j];\r\n" + - " if ((node.nodeType != 3) && (node.nodeName != 'SCRIPT')) {\r\n" + - " nodes.push(node);\r\n" + - " }\r\n" + - " }\r\n" + - " }\r\n" + - " return error;\r\n" + - "}\r\n"; - - private void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - string colId = dgvShop.Columns[e.ColumnIndex].Name; - if (colId == "colSelect") - { - dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value = !dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value.ParseToBool(); - } - } - - private void btnStop_Click(object sender, EventArgs e) - { - isRun = false; - } - } -} diff --git a/TEMUKJD/KJDForms/ProductForms/Old/CommissionForm.resx b/TEMUKJD/KJDForms/ProductForms/Old/CommissionForm.resx deleted file mode 100644 index 4a0af8d..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/CommissionForm.resx +++ /dev/null @@ -1,132 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/Old/FilterForm.Designer.cs b/TEMUKJD/KJDForms/ProductForms/Old/FilterForm.Designer.cs deleted file mode 100644 index 0384230..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/FilterForm.Designer.cs +++ /dev/null @@ -1,147 +0,0 @@ -namespace TemuKJD.KJDForms.ProductForms -{ - partial class FilterForm - { - /// - /// 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() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FilterForm)); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.btnSave = new TemuKJD.UserControls.ButtonEx(); - this.richTextBox1 = new System.Windows.Forms.RichTextBox(); - this.panel2 = new System.Windows.Forms.Panel(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - this.panel2.SuspendLayout(); - this.SuspendLayout(); - // - // splitContainer1 - // - this.splitContainer1.BackColor = System.Drawing.Color.White; - 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"; - // - // splitContainer1.Panel1 - // - this.splitContainer1.Panel1.BackColor = System.Drawing.Color.White; - this.splitContainer1.Panel1.Controls.Add(this.labelX1); - this.splitContainer1.Panel1.Controls.Add(this.btnSave); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.richTextBox1); - this.splitContainer1.Panel2.Paint += new System.Windows.Forms.PaintEventHandler(this.splitContainer1_Panel2_Paint); - this.splitContainer1.Size = new System.Drawing.Size(630, 463); - this.splitContainer1.SplitterDistance = 153; - this.splitContainer1.TabIndex = 0; - // - // labelX1 - // - // - // - // - this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.labelX1.ForeColor = System.Drawing.SystemColors.ControlDark; - this.labelX1.Location = new System.Drawing.Point(12, 84); - this.labelX1.Name = "labelX1"; - this.labelX1.Size = new System.Drawing.Size(125, 119); - this.labelX1.TabIndex = 401; - this.labelX1.Text = "维护范例:(一行一词)\r\n\r\n耐克\r\n阿迪达斯\r\n李宁\r\n……"; - // - // btnSave - // - this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnSave.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSave.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnSave.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSave.ForeColor = System.Drawing.Color.White; - this.btnSave.Location = new System.Drawing.Point(35, 54); - this.btnSave.Margin = new System.Windows.Forms.Padding(2); - this.btnSave.Name = "btnSave"; - this.btnSave.Size = new System.Drawing.Size(75, 25); - this.btnSave.TabIndex = 400; - this.btnSave.Text = "保存"; - this.btnSave.UseVisualStyleBackColor = false; - this.btnSave.Click += new System.EventHandler(this.btnSave_Click); - // - // richTextBox1 - // - this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill; - this.richTextBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.richTextBox1.Location = new System.Drawing.Point(0, 0); - this.richTextBox1.Name = "richTextBox1"; - this.richTextBox1.Size = new System.Drawing.Size(473, 463); - this.richTextBox1.TabIndex = 1; - this.richTextBox1.Text = ""; - // - // panel2 - // - this.panel2.Controls.Add(this.splitContainer1); - this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel2.Location = new System.Drawing.Point(1, 33); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(630, 463); - this.panel2.TabIndex = 1; - // - // FilterForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.ClientSize = new System.Drawing.Size(632, 497); - this.Controls.Add(this.panel2); - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Name = "FilterForm"; - this.Text = "违规词管理"; - this.TitleText = "违规词管理"; - this.Load += new System.EventHandler(this.FilterForm_Load); - this.Controls.SetChildIndex(this.panel2, 0); - this.splitContainer1.Panel1.ResumeLayout(false); - this.splitContainer1.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); - this.splitContainer1.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.SplitContainer splitContainer1; - private DevComponents.DotNetBar.LabelX labelX1; - private UserControls.ButtonEx btnSave; - private System.Windows.Forms.RichTextBox richTextBox1; - private System.Windows.Forms.Panel panel2; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/Old/FilterForm.cs b/TEMUKJD/KJDForms/ProductForms/Old/FilterForm.cs deleted file mode 100644 index 1381b4a..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/FilterForm.cs +++ /dev/null @@ -1,140 +0,0 @@ -using AllBase; -using TemuKJD.KJDForms.BaseForms; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; -using Work; -using Work.BLL.Upload; - -namespace TemuKJD.KJDForms.ProductForms -{ - public partial class FilterForm : LRBaseForm - { - string _type = "标题违规词"; - - public FilterForm(string type = "标题违规词") - { - InitializeComponent(); - - _type = type; - this.Text = TitleText = type.Replace("属性违规词", "sku违规词") + "管理"; - } - - private void btnSave_Click(object sender, EventArgs e) - { - if (_type == "标题违规词") - FileBase.WriteAllText("config/标题过滤词x.ini", richTextBox1.Text, Encoding.Default); - if (_type == "标题去除词") - FileBase.WriteAllText("config/标题去除词x.ini", richTextBox1.Text, Encoding.Default); - else if (_type == "属性违规词") - FileBase.WriteAllText("config/属性过滤词x.ini", richTextBox1.Text, Encoding.Default); - else if (_type == "品牌违规词") - FileBase.WriteAllText("config/品牌属性过滤词x.ini", richTextBox1.Text, Encoding.Default); - - LoadFilterWord(); - BaseMsgForm.ShowInfo("保存成功!", "提示", FormLevel.SMALL); - this.Close(); - } - - private void FilterForm_Load(object sender, EventArgs e) - { - if (_type == "标题违规词") - richTextBox1.Text = FileBase.ReadAllText("config/标题过滤词x.ini", Encoding.Default); - if (_type == "标题去除词") - richTextBox1.Text = FileBase.ReadAllText("config/标题去除词x.ini", Encoding.Default); - else if (_type == "属性违规词") - { - richTextBox1.Text = FileBase.ReadAllText("config/属性过滤词x.ini", Encoding.Default); - if (Work.Initialization.IsBase64(richTextBox1.Text)) - { - richTextBox1.Text = Work.Initialization.Base64Decrypt(richTextBox1.Text); - } - } - else if (_type == "品牌违规词") - richTextBox1.Text = FileBase.ReadAllText("config/品牌属性过滤词x.ini", Encoding.Default); - - if (Initialization.IsBase64(richTextBox1.Text)) - { - richTextBox1.Text = Initialization.Base64Decrypt(richTextBox1.Text); - } - } - - public static void LoadFilterWord() - { - UploadProductBLL.FilterTitleWordList.Clear(); - string[] l = FileBase.ReadAllLines("config/标题过滤词x.ini", Encoding.Default); - if (l != null) - { - for (int i = 0; i < l.Length; i++) - { - if (string.IsNullOrEmpty(l[i])) - continue; - string s = l[i].Trim(); - if (string.IsNullOrEmpty(s)) - continue; - UploadProductBLL.FilterTitleWordList.Add(s); - } - } - - UploadProductBLL.FilterRemoveTitleWordList.Clear(); - string[] lr = FileBase.ReadAllLines("config/标题去除词x.ini", Encoding.Default); - if (lr != null) - { - for (int i = 0; i < lr.Length; i++) - { - if (string.IsNullOrEmpty(lr[i])) - continue; - string s = lr[i].Trim(); - if (string.IsNullOrEmpty(s)) - continue; - UploadProductBLL.FilterRemoveTitleWordList.Add(s); - } - } - - UploadProductBLL.FilterSkuWordList.Clear(); - string[] t = FileBase.ReadAllLines("config/属性过滤词x.ini", Encoding.Default); - if (t != null) - { - for (int i = 0; i < t.Length; i++) - { - if (Work.Initialization.IsBase64(t[i])) - { - t[i] = Work.Initialization.Base64Decrypt(t[i]); - } - if (string.IsNullOrEmpty(t[i])) - continue; - string s = t[i].Trim(); - if (string.IsNullOrEmpty(s)) - continue; - UploadProductBLL.FilterSkuWordList.Add(s); - } - } - - UploadProductBLL.FilterBrandWordList.Clear(); - string[] b = FileBase.ReadAllLines("config/品牌属性过滤词x.ini", Encoding.Default); - if (b != null) - { - for (int i = 0; i < b.Length; i++) - { - if (string.IsNullOrEmpty(b[i])) - continue; - string s = b[i].Trim(); - if (string.IsNullOrEmpty(s)) - continue; - UploadProductBLL.FilterBrandWordList.Add(s); - } - } - } - - private void splitContainer1_Panel2_Paint(object sender, PaintEventArgs e) - { - - } - } -} diff --git a/TEMUKJD/KJDForms/ProductForms/Old/FilterForm.resx b/TEMUKJD/KJDForms/ProductForms/Old/FilterForm.resx deleted file mode 100644 index 5139645..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/FilterForm.resx +++ /dev/null @@ -1,298 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - - - AAABAAEAgIAQXAAAAABoKAAAFgAAACgAAACAAAAAAAEAAAEABAAAAAAAACgAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAgICAAMDAwAAAAP8AAP8AAAD//wD/AAAA/wD/AP// - AAD///8AAAAAAAAAAAAAAAAABEZmbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZmZkQAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAZszMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMxmAAAAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMxkAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzGQAAAAAAAAAAAAAAAAAAAbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMYAAAAAAAAAAAAAAAAARszMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAABszMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMxgAAAAAAAAAAAAAGzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMxgAAAAAAAAAAAAbMzMzMzMzMzMzMzMzM - zMzMzMzMzMx3d4iIiIiIiIh3fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMxgAAAAAAAAAABszMzMzMzMzMzM - zMzMzMzMzMzHeIiIiIj/////////iIiIiId8zMzMzMzMzMzMzMzMzMzMzMzMxgAAAAAAAAAGzMzMzMzM - zMzMzMzMzMzMzMeIiI/////////////////////4iIh8zMzMzMzMzMzMzMzMzMzMzMxgAAAAAAAATMzM - zMzMzMzMzMzMzMzMzHiI////////////////////////////iIfMzMzMzMzMzMzMzMzMzMzMxAAAAAAA - AGzMzMzMzMzMzMzMzMzMx3iP///////////////////////////////4iHzMzMzMzMzMzMzMzMzMzMYA - AAAAAAbMzMzMzMzMzMzMzMzMx3iP//////////////////////////////////+IfMzMzMzMzMzMzMzM - zMzMYAAAAABMzMzMzMzMzMzMzMzMx3iP/////////////////////////////////////4h8zMzMzMzM - zMzMzMzMzMQAAAAAbMzMzMzMzMzMzMzMzHiP////////////////////////////////////////h3zM - zMzMzMzMzMzMzMzGAAAABMzMzMzMzMzMzMzMzHiP//////////////////////////////////////// - //iHzMzMzMzMzMzMzMzMzEAAAAbMzMzMzMzMzMzMzMeI//////////////////////////////////// - ////////+IfMzMzMzMzMzMzMzMxgAABMzMzMzMzMzMzMzMx4//////////////////////////////// - //////////////+IfMzMzMzMzMzMzMzMxAAAbMzMzMzMzMzMzMzHj/////////////////////////// - /////////////////////4fMzMzMzMzMzMzMzMYAAMzMzMzMzMzMzMzMeP////////////////////// - ///////////////////////////4fMzMzMzMzMzMzMzMAAbMzMzMzMzMzMzMx4////////////////// - /////////////////////////////////4fMzMzMzMzMzMzMzGAGzMzMzMzMzMzMzHj///////////// - ///////////////////////////////////////4fMzMzMzMzMzMzMxgDMzMzMzMzMzMzMyI//////// - /////////////////////////////////////////////4zMzMzMzMzMzMzMwEzMzMzMzMzMzMzHj/// - //////////////////////////////////////////////////+HzMzMzMzMzMzMzMRszMzMzMzMzMzM - eP//////////////////////////////////////////////////////+HzMzMzMzMzMzMzGbMzMzMzM - zMzMzHj///////////////////////////////////////////////////////+MzMzMzMzMzMzMxmzM - zMzMzMzMzMyP////+IiP////////////////////////////////////////+I//////h8zMzMzMzMzM - zMZszMzMzMzMzMzHj////4iIiI//////////////////////////////////////+IiIj/////jMzMzM - zMzMzMzGbMzMzMzMzMzMyP////iIiIiI/////////////////////////////////////4iIiIj////4 - fMzMzMzMzMzMxszMzMzMzMzMzHj////4iIiIiP////////////////////////////////////+IiIiI - j////4zMzMzMzMzMzMbMzMzMzMzMzMx4////iIiIiIj////////////////////////////////////4 - iIiIiI////+HzMzMzMzMzMzMzMzMzMzMzMzMj////4iIiIiI//////////////+IiP//iI////////// - ////+IiIiIiP////h8zMzMzMzMzMzMzMzMzMzMzMzI/////4iIiIiP/////////////4d3eIiIeIj/// - //////////+IiIiIj/////jMzMzMzMzMzMzMzMzMzMzMzMyP////+IiIiIj/////////////iIiId3eI - iI//////////////iIiIiI/////4zMzMzMzMzMzMzMzMzMzMzMzHj/////+IiIiP/////////////4// - /4d4j/+P//////////////iIiIj/////+MzMzMzMzMzMzMzMzMzMzMzMx4//////+IiP//////////// - ///////4j///////////////////iIiP//////jMzMzMzMzMzMzMzMzMzMzMzMeP//////////+IiIj/ - ///////////////////////////////////////////4fMzMzMzMzMzMzMzMzMzMzMzH//////////+H - fMx8eP//////////////////////////iId3iP//////////+HzMzMzMzMzMzMzMzMzMzMzMyP////// - ///4fMzHh8eP////////////////////////+MzMzMd4//////////h8zMzMzMzMzMzMzMzMzMzMzMf/ - ////////+MzMePjMeP///////////////////////4zMzMeHx4/////////4fMzMzMzMzMzMzMzMzMzM - zMzH/////////4fMd3eHzMeP//////////////////////iMzMzIiHx4////////+HzMzMzMzMzMzMzM - zMzMzMzMx/////////+Hx4iIfMzMj//////////////////////4h3d8x4h8yP////////jMzMzMzMzM - zMzMzMzMzMzMzMeP////////+HiP+IfMzI//////////////////////+HiIiHd3zHj////////4zMzM - zMzMzMzMzMzMzMzMzMzHj/////////h4//+HzMeP//////////////////////h4//h8zMyP//////// - +MzMzMzMzMzMzMzMzMzMzMzMzI/////////4iP//h8x4///////////////////////4j//4fMzHj/// - //////jMzMzMzMzMzMzMzMzMzMzMzMyP///////4iIiP+IfHj///////////////////////+Ij/+HzM - eP/////////4zMzMzMzMzMzMzMzMzMzMzMzMj///////iIiIiIh3eP////////////////////////+I - j4h8x3iI////////h8zMzMzMzMzMzMzMzMzMzMzMzH//////+Hj///iIiI////////////////////// - /////4iId4iIiIj//////4zMzMzMzMzMzMzMzMzMzMzMzMx4//////iP////iP////////////////// - /////////////4iP//iI//////+MzMzMzMzMzMzMzMzMzMzMzMzMyP//////////+I////////////// - ///////////////////4eP//iP//////jMzMzMzMzMzMzMzMzMzMzMzMzMj///////////iP//////// - /////////////////////////4j/////////+HzMzMzMzMzMzMzMzMzMzMzMzMzHj/////////////// - //////////////////////////////+I//////////jMzMzMzMzMzMzMzMzMzMzMzMzMzI////////// - //////////////////////////////////////////////+HzMzMzMzMzMzMzMzMzMzMzMzMzMyP//// - ////////////////////////////////////////////////////h8zMzMzMzMzMzMzMzMzMzMzMzMzM - eP///////////////////////////////////////////////////////4zMzMzMzMzMzMzMzMzMzMzM - zMzMzMj///////////////////////////////////////////////////////h8zMzMzMzMzMzMzMzM - zMzMzMzMzMzHj//////////////////////////////////////////////////////4zMzMzMzMzMzM - zMzMzMzMzMzMzMzMzI//////////////////////////////////////////////////////h8zMzMzM - zMzMzMzMzMzMzMzMzMzMzMx4////////////////////////////////////////////////////+HzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMyI////+I//////////////////////////////////////////// - //h8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMeP////+Ij///////////////////////////////////// - //////+HzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMeP////+IiIiIj//////////////////////////4 - ////iI/////4fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMiP/////4iIiP////////////////////// - ////+IiIiIj/////iHzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzHiP////////////////////////// - ///////////4iIj//////4fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzHiP//////////////////// - //////////////////////////h8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzHiP////////////// - //////////////////////////////+HzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzHj///////// - ///////////////////////////////////4fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMeP//// - ////////////////////////////////////////+MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzI - j/////////////////////////////////////////////h8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMeP//////////////////////////////////////////////h8zMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMx4////////+I//////////////////////////////////////jMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMeP///////4iIj///////////////////////////iP///////4fMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMx4////////iIiIiP///////////////////////4iIiP///////4zMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMj///////+IiIiIiI////////////////////+IiIiIj///////+HzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMx4////////iIiIiIj////////////////////4iIiIiIj/////// - +MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMj///////+IiIiIiI////////////////////+IiIiIiI// - //////h8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMx4////////iIiIiIiP////////////////////iIiI - iIiI///////4fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMj///////+IiIiIiIj/////iIiIiIiIj///// - /4iIiIiIiP///////4zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMx4////////iIiIiIiI/////4zMzMzMzM - j/////+IiIiIiIiP//////+HzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMeP//////+IiIiIiIj/////+MzM - zMzMzI//////+IiIiIiIj///////+MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzI////////iIiIiIiI//// - //jMzMzMzMyP//////iIiIiIiIj///////jMzMzMzMzMzMzMzMzMzMzMzMzMzMzMeP///////4iIiIiI - iP/////4zMzMzMzMj//////4iIiIiIiI///////4fMzMzMzMzMzMzMzMzMzMzMzMzMzMzI////////iI - iIiIiI//////+MzMzMzMzI//////+IiIiIiIiP///////4zMzMzMzMzMzMzMzMzMzMzMzMzMzMyP//// - ///4iIiIiIiP//////fMzMzMzMyP//////+IiIiIiIj///////+MzMzMzMzMzMzMzMzMzMzMzMzMzMzH - j///////+IiIiIiI//////+HzMzMzMzMeP//////iIiIiIiIj///////jMzMzMzMzMzMzMzMzMzMzMzM - zMzMyP////////iIiIiIiP//////jMzMzMzMzHj///////iIiIiIiI///////4fMzMzMzMzMzMzMzMzM - zMzMzMzMzMj///////+IiIiIiI///////4zMzMzMzMzI///////4iIiIiIiI///////3zMzMzMzMzMzM - zMzMzMzMzMzMzMzI////////iIiIiIiP//////+MzMzMzMzMyP//////+IiIiIiIiP//////+MzMzMzM - zMzMzMzMzMzMzMzMzMzMeP///////4iIiIiIj///////jMzMzMzMzMj///////+IiIiIiIj///////jM - zMzMzMzMzMzMzMzMzMzMzMzMzI////////+IiIiIiP//////+HzMzMzMzMzHj///////iIiIiIiI//// - ///4zMzMzMzMzMzMzMzMzMzMzMzMzMyP////////iIiIiI////////jMzMzMzMzMzI///////4iIiIiI - iI//////+MzMzMzMzMzMzMzMzMzMzMzMzMzMj////////4iIiIiP///////4zMzMzMzMzMyP///////4 - iIiIiIiP//////jMzMzMzMzMzMzMzMzMzMzMzMzMzI////////+IiIiI////////h8zMzMzMzMzMeP// - /////4iIiIiIj//////4fMzMzMzMzMzMzMzMzMzMzMzMzMyP////////iIiIj////////4fMzMzMzMzM - zHj///////+IiIiIiI//////+HzMzMzMzMzMzMzMzMzMzMzMzMzHj/////////iIiP////////+MzMzM - zMzMzMzI////////+IiIiIiP//////h8zMzMzMzMzMzMxmzMzMzMzMzMx4/////////4iP/////////4 - fMzMzMzMzMzMx4////////+IiIiIj//////4fMzMzMzMzMzMzMZszMzMzMzMzMeP//////////////// - ////+MzMzMzMzMzMzMyP////////iIiIiP//////+HzMzMzMzMzMzMzGbMzMzMzMzMzH//////////// - //////////fMzMzMzMzMzMzMeP////////iIiIj///////98zMzMzMzMzMzMxmzMzMzMzMzMyP////// - //////////////+HzMzMzMzMzMzMzHj/////////+IiP////////jMzMzMzMzMzMzMZszMzMzMzMzMj/ - ////////////////////jMzMzMzMzMzMzMzIj////////////////////4zMzMzMzMzMzMzGTMzMzMzM - zMzH////////////////////+HzMzMzMzMzMzMzMx4////////////////////+MzMzMzMzMzMzMxAzM - zMzMzMzMx/////////////////////jMzMzMzMzMzMzMzMyI///////////////////4fMzMzMzMzMzM - zMAGzMzMzMzMzMeP//////////////////+HzMzMzMzMzMzMzMzMeP//////////////////+HzMzMzM - zMzMzMxgBszMzMzMzMzHj//////////////////4fMzMzMzMzMzMzMzMzMeP//////////////////h8 - zMzMzMzMzMzMYADMzMzMzMzMzI//////////////////+HzMzMzMzMzMzMzMzMzHj/////////////// - ///4zMzMzMzMzMzMzAAAbMzMzMzMzMyP/////////////////4fMzMzMzMzMzMzMzMzMzHj///////// - ////////+MzMzMzMzMzMzMYAAEzMzMzMzMzMj/////////////////+MzMzMzMzMzMzMzMzMzMzIj/// - /////////////4fMzMzMzMzMzMzEAAAGzMzMzMzMzHj////////////////4fMzMzMzMzMzMzMzMzMzM - x4////////////////+MzMzMzMzMzMzMYAAABMzMzMzMzMx4////////////////h8zMzMzMzMzMzMzM - zMzMzMx4///////////////4fMzMzMzMzMzMzEAAAABszMzMzMzMx4//////////////+HzMzMzMzMzM - zMzMzMzMzMzMx4//////////////+MzMzMzMzMzMzMYAAAAATMzMzMzMzMyP/////////////4fMzMzM - zMzMzMzMzMzMzMzMzMeI/////////////4fMzMzMzMzMzMzEAAAAAAbMzMzMzMzMeP////////////h8 - zMzMzMzMzMzMzMzMzMzMzMzMeI////////////h8zMzMzMzMzMzMYAAAAAAAbMzMzMzMzMeP//////// - //iHzMzMzMzMzMzMzMzMzMzMzMzMzMyI//////////+HzMzMzMzMzMzMxgAAAAAAAEzMzMzMzMzMeP// - //////iHfMzMzMzMzMzMzMzMzMzMzMzMzMzMx4/////////4fMzMzMzMzMzMzMQAAAAAAAAGzMzMzMzM - zMeI//////iHfMzMzMzMzMzMzMzMzMzMzMzMzMzMzMx4j//////4h8zMzMzMzMzMzMxgAAAAAAAAAGzM - zMzMzMzMx4iIiIiHzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzHiIj/+Ih3zMzMzMzMzMzMzGAAAAAAAA - AAAGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMx3iId8zMzMzMzMzMzMzMYAAA - AAAAAAAAAGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - xgAAAAAAAAAAAAAGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzGAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzGQAAAAAAAAAAAAAAAAAbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMYAAAAAAAAAAAAAAAAAAARszMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAABGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAAAABmzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzGYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARGZmzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZmZEAAAAAAAAAAAAAAAAD////+AAAAAAAAAAD/////////AAAA - AAAAAAAAAP//////+AAAAAAAAAAAAAAf/////+AAAAAAAAAAAAAAB/////+AAAAAAAAAAAAAAAH////+ - AAAAAAAAAAAAAAAAf////AAAAAAAAAAAAAAAAD////AAAAAAAAAAAAAAAAAP///gAAAAAAAAAAAAAAAA - B///wAAAAAAAAAAAAAAAAAP//4AAAAAAAAAAAAAAAAAB//8AAAAAAAAAAAAAAAAAAP/+AAAAAAAAAAAA - AAAAAAB//gAAAAAAAAAAAAAAAAAAf/wAAAAAAAAAAAAAAAAAAD/4AAAAAAAAAAAAAAAAAAAf+AAAAAAA - AAAAAAAAAAAAH/AAAAAAAAAAAAAAAAAAAA/wAAAAAAAAAAAAAAAAAAAP4AAAAAAAAAAAAAAAAAAAB+AA - AAAAAAAAAAAAAAAAAAfAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAAAAA - AAOAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAA - AAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAABAAAAAAAA - AAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAA - AAGAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAA - AAAAAAABgAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAPAAAAAAAAAAAAAAAAAAAADwAAAAAAA - AAAAAAAAAAAAA+AAAAAAAAAAAAAAAAAAAAfgAAAAAAAAAAAAAAAAAAAH8AAAAAAAAAAAAAAAAAAAD/AA - AAAAAAAAAAAAAAAAAA/4AAAAAAAAAAAAAAAAAAAf+AAAAAAAAAAAAAAAAAAAH/wAAAAAAAAAAAAAAAAA - AD/+AAAAAAAAAAAAAAAAAAB//gAAAAAAAAAAAAAAAAAAf/8AAAAAAAAAAAAAAAAAAP//gAAAAAAAAAAA - AAAAAAH//8AAAAAAAAAAAAAAAAAD///gAAAAAAAAAAAAAAAAB///8AAAAAAAAAAAAAAAAA////wAAAAA - AAAAAAAAAAA////+AAAAAAAAAAAAAAAAf////4AAAAAAAAAAAAAAAf/////gAAAAAAAAAAAAAAf///// - +AAAAAAAAAAAAAAf//////8AAAAAAAAAAAAA/////////gAAAAAAAAAAf////w== - - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/Old/GetUpProductForm.Designer.cs b/TEMUKJD/KJDForms/ProductForms/Old/GetUpProductForm.Designer.cs deleted file mode 100644 index 8ec9b43..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/GetUpProductForm.Designer.cs +++ /dev/null @@ -1,240 +0,0 @@ -namespace TemuKJD.KJDForms.ProductForms -{ - partial class GetUpProductForm - { - /// - /// 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() - { - 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(); - this.label1 = new System.Windows.Forms.Label(); - this.pbPaste = new System.Windows.Forms.PictureBox(); - this.txtIds = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX10 = new DevComponents.DotNetBar.LabelX(); - this.btnSearch = new DevComponents.DotNetBar.ButtonX(); - this.buttonX1 = new DevComponents.DotNetBar.ButtonX(); - this.dgvProduct = new TemuKJD.UserComponent.DataGridViewEx(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colProductId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colFrom = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colUpId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - ((System.ComponentModel.ISupportInitialize)(this.pbPaste)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.dgvProduct)).BeginInit(); - this.SuspendLayout(); - // - // label1 - // - this.label1.AutoSize = true; - this.label1.ForeColor = System.Drawing.Color.Gray; - this.label1.Location = new System.Drawing.Point(245, 125); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(490, 17); - this.label1.TabIndex = 31; - this.label1.Text = "说明:多件商品请用逗号隔开,将同时弹出多个浏览器窗口。最大支持同时跳转20件商品。"; - // - // pbPaste - // - this.pbPaste.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.pbPaste.BackColor = System.Drawing.Color.White; - this.pbPaste.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pbPaste.Image = global::TemuKJD.Properties.Resources.FullPaste; - this.pbPaste.Location = new System.Drawing.Point(860, 75); - this.pbPaste.Name = "pbPaste"; - this.pbPaste.Size = new System.Drawing.Size(33, 29); - this.pbPaste.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; - this.pbPaste.TabIndex = 30; - this.pbPaste.TabStop = false; - this.pbPaste.Click += new System.EventHandler(this.pbPaste_Click); - // - // txtIds - // - this.txtIds.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - // - // - // - this.txtIds.Border.Class = "TextBoxBorder"; - this.txtIds.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txtIds.Font = new System.Drawing.Font("新宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtIds.Location = new System.Drawing.Point(137, 75); - this.txtIds.Name = "txtIds"; - this.txtIds.PreventEnterBeep = true; - this.txtIds.Size = new System.Drawing.Size(724, 29); - this.txtIds.TabIndex = 28; - // - // labelX10 - // - this.labelX10.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX10.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX10.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.labelX10.Location = new System.Drawing.Point(53, 78); - this.labelX10.Name = "labelX10"; - this.labelX10.Size = new System.Drawing.Size(92, 23); - this.labelX10.TabIndex = 27; - this.labelX10.Text = "宝贝ID"; - // - // btnSearch - // - this.btnSearch.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btnSearch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSearch.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btnSearch.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSearch.Location = new System.Drawing.Point(137, 119); - this.btnSearch.Name = "btnSearch"; - this.btnSearch.Size = new System.Drawing.Size(89, 29); - this.btnSearch.Style = DevComponents.DotNetBar.eDotNetBarStyle.OfficeXP; - this.btnSearch.TabIndex = 48; - this.btnSearch.Text = "搜索"; - this.btnSearch.TextColor = System.Drawing.Color.White; - this.btnSearch.ThemeAware = true; - this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click); - // - // buttonX1 - // - this.buttonX1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.buttonX1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.buttonX1.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.buttonX1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.buttonX1.Location = new System.Drawing.Point(137, 163); - this.buttonX1.Name = "buttonX1"; - this.buttonX1.Size = new System.Drawing.Size(233, 29); - this.buttonX1.Style = DevComponents.DotNetBar.eDotNetBarStyle.OfficeXP; - this.buttonX1.TabIndex = 49; - this.buttonX1.Text = "搜索并列表显示"; - this.buttonX1.TextColor = System.Drawing.Color.White; - this.buttonX1.ThemeAware = true; - this.buttonX1.Visible = false; - this.buttonX1.Click += new System.EventHandler(this.buttonX1_Click); - // - // dgvProduct - // - this.dgvProduct.AllowUserToAddRows = false; - this.dgvProduct.AllowUserToDeleteRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - this.dgvProduct.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.dgvProduct.BackgroundColor = System.Drawing.Color.White; - this.dgvProduct.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dgvProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; - this.dgvProduct.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgvProduct.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.colSelect, - this.colProductId, - this.colFrom, - this.colUpId}); - this.dgvProduct.Location = new System.Drawing.Point(137, 198); - this.dgvProduct.Name = "dgvProduct"; - this.dgvProduct.ReadOnly = true; - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvProduct.RowsDefaultCellStyle = dataGridViewCellStyle3; - this.dgvProduct.RowTemplate.Height = 23; - this.dgvProduct.Size = new System.Drawing.Size(756, 253); - this.dgvProduct.TabIndex = 50; - this.dgvProduct.Visible = false; - // - // colSelect - // - this.colSelect.FillWeight = 50F; - this.colSelect.HeaderText = "选"; - this.colSelect.Name = "colSelect"; - this.colSelect.ReadOnly = true; - this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.colSelect.Visible = false; - this.colSelect.Width = 41; - // - // colProductId - // - this.colProductId.HeaderText = "商品Id"; - this.colProductId.Name = "colProductId"; - this.colProductId.ReadOnly = true; - this.colProductId.Width = 200; - // - // colFrom - // - this.colFrom.HeaderText = "来源"; - this.colFrom.Name = "colFrom"; - this.colFrom.ReadOnly = true; - this.colFrom.Width = 90; - // - // colUpId - // - this.colUpId.HeaderText = "上家Id"; - this.colUpId.Name = "colUpId"; - this.colUpId.ReadOnly = true; - this.colUpId.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colUpId.Width = 250; - // - // GetUpProductForm - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(947, 480); - this.Controls.Add(this.dgvProduct); - this.Controls.Add(this.buttonX1); - this.Controls.Add(this.btnSearch); - this.Controls.Add(this.label1); - this.Controls.Add(this.pbPaste); - this.Controls.Add(this.txtIds); - this.Controls.Add(this.labelX10); - this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Name = "GetUpProductForm"; - this.Text = "GetUpProductForm"; - ((System.ComponentModel.ISupportInitialize)(this.pbPaste)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.dgvProduct)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.Label label1; - private System.Windows.Forms.PictureBox pbPaste; - private DevComponents.DotNetBar.Controls.TextBoxX txtIds; - private DevComponents.DotNetBar.LabelX labelX10; - private DevComponents.DotNetBar.ButtonX btnSearch; - private DevComponents.DotNetBar.ButtonX buttonX1; - private UserComponent.DataGridViewEx dgvProduct; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colProductId; - private System.Windows.Forms.DataGridViewTextBoxColumn colFrom; - private System.Windows.Forms.DataGridViewTextBoxColumn colUpId; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/Old/GetUpProductForm.cs b/TEMUKJD/KJDForms/ProductForms/Old/GetUpProductForm.cs deleted file mode 100644 index 1a63172..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/GetUpProductForm.cs +++ /dev/null @@ -1,135 +0,0 @@ -using AllBase; -using TemuKJD.KJDForms.BaseForms; -using NaiBa.Util; -using NaiBa.Util.Extension; -using NaiBa.Util.Helper; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; -using Work; - -namespace TemuKJD.KJDForms.ProductForms -{ - public partial class GetUpProductForm : BaseForm - { - public GetUpProductForm() - { - InitializeComponent(); - } - - private void btnSearch_Click(object sender, EventArgs e) - { - if (string.IsNullOrEmpty(this.txtIds.Text.Trim())) - { - BaseMsgForm.ShowError("请输入商品ID!"); - return; - } - - var idArr = this.txtIds.Text.Trim().Split(new string[] { "\r", "\n", ",", ",", ";", "-----" }, StringSplitOptions.RemoveEmptyEntries); - idArr = idArr.Take(20).ToArray(); - foreach (var prodId in idArr) - { - var product_id = prodId.ParseToLong(); - if (product_id > 0) - { - string url = BaseClass.LoginApiUrl + "?obj=upshopid/upid_dd&act=get"; - string data = "&pid=" + product_id + "&table=" + (product_id % 1024); - string html = GetHtml.PostUtf8(url, UserLogin.GetSignaturex("", "") + data); - string upId = BaseRegex.GetMatchRegexString(html, @"([\d]+)"); - string upUrl = ""; - if (html.StartsWith("tb")) - upUrl = "https://item.taobao.com/item.htm?id=" + upId; - if (html.StartsWith("pd")) - upUrl = "https://mobile.yangkeduo.com/goods.html?goods_id=" + upId; - if (html.StartsWith("al")) - upUrl = "https://detail.1688.com/offer/" + upId + ".html"; - if (html.StartsWith("jx")) - upUrl = "https://item.jd.com/" + upId + ".html"; - if (html.StartsWith("dy")) - upUrl = "https://haohuo.jinritemai.com/views/product/detail?id=" + upId; - if (string.IsNullOrEmpty(upId)) - upUrl = "https://www.baidu.com"; - FileHelper.OpenUrl(upUrl + (upUrl.Contains("?") ? "&" : "?") + "lr_search_id=" + product_id); - //GetHtml.OpenUrl(upUrl + (upUrl.Contains("?") ? "&" : "?") + "lr_search_id=" + product_id); - } - else - { - BaseMsgForm.ShowError("输入商品Id错误!"); - break; - } - } - } - - private void pbPaste_Click(object sender, EventArgs e) - { - if (BaseClass.UserName == "18888888888") - { - this.buttonX1.Visible = true; - } - - IDataObject iData = Clipboard.GetDataObject(); - if (iData != null && iData.GetDataPresent(DataFormats.Text)) - { - txtIds.Text = (string)iData.GetData(DataFormats.Text); - } - } - - private void buttonX1_Click(object sender, EventArgs e) - { - if (string.IsNullOrEmpty(this.txtIds.Text.Trim())) - { - BaseMsgForm.ShowError("请输入商品ID!"); - return; - } - - dgvProduct.Visible = true; - dgvProduct.Rows.Clear(); - - var idArr = this.txtIds.Text.Trim().Split(new string[] { "\r", "\n", ",", ",", ";", "-----" }, StringSplitOptions.RemoveEmptyEntries); - //idArr = idArr.Take(20).ToArray(); - Task.Run(() => - { - foreach (var prodId in idArr) - { - Thread.Sleep(50); - var product_id = prodId.ParseToLong(); - if (product_id > 0) - { - string url = BaseClass.LoginApiUrl + "?obj=upshopid/upid_dd&act=get"; - string data = "&pid=" + product_id + "&table=" + (product_id % 1024); - string html = GetHtml.PostUtf8(url, UserLogin.GetSignaturex("", "") + data); - string upId = BaseRegex.GetMatchRegexString(html, @"([\d]+)"); - string upUrl = ""; - string from = ""; - if (html.StartsWith("tb")) - from = "淘宝"; - if (html.StartsWith("pd")) - from = "拼多多"; - if (html.StartsWith("al")) - from = "阿里"; - if (html.StartsWith("jx")) - from = "京东"; - if (html.StartsWith("dy")) - from = "抖音"; - Invoke(new Action(() => - { - this.dgvProduct.Rows.Add(false, product_id, from, html.Split('-').LastOrDefault()); - })); - } - else - { - BaseMsgForm.ShowError("输入商品Id错误!"); - break; - } - } - }); - } - } -} diff --git a/TEMUKJD/KJDForms/ProductForms/Old/GetUpProductForm.resx b/TEMUKJD/KJDForms/ProductForms/Old/GetUpProductForm.resx deleted file mode 100644 index 70aad3e..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/GetUpProductForm.resx +++ /dev/null @@ -1,132 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/Old/IeForm.cs b/TEMUKJD/KJDForms/ProductForms/Old/IeForm.cs deleted file mode 100644 index 3d37723..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/IeForm.cs +++ /dev/null @@ -1,897 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; -using AllBase; -using CefSharp.WinForms; -using CefSharp; -using Work; -using System.Threading; -using Work.CollectClass; -using Work.Api; -using TemuKJD.KJDForms.BaseForms; - -namespace TemuKJD.KJDForms -{ - public partial class IeForm : LRBaseForm - { - public string Url = ""; - public string skipUrl = ""; - public bool isSlide = false; - public bool isExecJsSuccess = false; - public string x5Sec = ""; - public string Title { get { return Text; } set { Text = value; } } - public string UrlString { get { return Url; } set { Url = value; } } - - public IeForm() - { - InitializeComponent(); - } - - public IeForm(string _url) - { - Url = _url; - InitializeComponent(); - } - public ChromiumWebBrowser cefWebBrowser3; - private void IeForm_Load(object sender, EventArgs e) - { - if (BaseClass.Ico != null) - Icon = BaseClass.Ico; - if (string.IsNullOrEmpty(Url)) - { - cefWebBrowser3 = new ChromiumWebBrowser("https://login.taobao.com/member/login.jhtml?style=mini&newMini2=true&redirectURL=https://s.taobao.com/search?q=se&imgfile=&commend=all&ssid=s5-e&search_type=item&sourceId=tb.index&spm=a21bo.2017.201856-taobao-item.1&ie=utf8&initiative_id=tbindexz_20170306"); - StartPosition = FormStartPosition.CenterScreen; - } - else - { - if (string.IsNullOrEmpty(TitleText)) - { - Location = new Point(330, 220); - TitleText = Text = "账号登录"; - cefWebBrowser3 = new ChromiumWebBrowser(Url); - } - else - { - cefWebBrowser3 = new ChromiumWebBrowser(Url); - Text = TitleText; - } - } - RequestContextSettings requestContextSettings = new RequestContextSettings(); - requestContextSettings.PersistSessionCookies = false; - //cef138//requestContextSettings.PersistUserPreferences = false; - cefWebBrowser3.RequestContext = new RequestContext(requestContextSettings); - cefWebBrowser3.Dock = DockStyle.Fill; - cefWebBrowser3.AutoSize = true; - - cefWebBrowser3.FrameLoadEnd += CefWebBrowser3_FrameLoadEnd; - cefWebBrowser3.AddressChanged += CefWebBrowser3_AddressChanged; - cefWebBrowser3.AddressChanged += cefWebBrowser3_UrlChanged; - - cefWebBrowser3.BrowserSettings = new BrowserSettings { /*Plugins = CefState.Disabled*/ /*cef92*/ }; - panel2.Controls.Add(cefWebBrowser3); - DelCookies(); - ChromeCookies = ""; - new Thread(ReflashCookies).Start(); - new Thread(ResetUserList).Start(); - new Thread(SetTaoBaoCookies).Start(); - new Thread(AutoRrefreshCookies).Start(); - } - public void SetTaoBaoCookies() - { - if (TaobaoMobileCollect.CookiesDic.Count > 0) - { - foreach (var kvp in TaobaoMobileCollect.CookiesDic) - { - AddList(kvp.Key, kvp.Value, 1); - } - } - } - private void ResetUserList() - { - Thread.Sleep(100); - if (this.userComboBox.InvokeRequired) - { - this.Invoke(new Action(() => { userComboBox.Items.Clear(); })); - } - else - { - userComboBox.Items.Clear(); - } - try - { - foreach (KeyValuePair item in UserCookies) - { - if (this.userComboBox.InvokeRequired) - { - this.Invoke(new Action(() => - { - if (!userComboBox.Items.Contains(item.Key)) - userComboBox.Items.Add(item.Key); - })); - } - else - { - if (userComboBox.Items.Contains(item.Key)) - continue; - userComboBox.Items.Add(item.Key); - } - } - } - catch - { - - } - if (this.userComboBox.InvokeRequired) - { - this.Invoke(new Action(() => { userComboBox.Text = SetCookiesUserInfo.UserName; })); - } - else - { - userComboBox.Text = SetCookiesUserInfo.UserName; - } - } - private void CefWebBrowser3_AddressChanged(object sender, AddressChangedEventArgs e) - { - Url = e.Address; - } - - /// - /// 限制滑块自动拖动次数 - /// - private int iTryTimes = 0; - private Random random = new Random(); - private int _locX; - private int _locY; - public bool isDoing = false; - public bool LoginOk = false; - public bool tradeOk = false; - #region 获取网页js - /// - /// 获取网页某元素坐标X - /// - private string sJsGetElementPageLeft = @"function getElementPageLeft(element) { - var actualLeft = element.offsetLeft; - var parent = element.offsetParent; - while (parent != null) { - actualLeft += parent.offsetLeft + (parent.offsetWidth - parent.clientWidth) / 2; - parent = parent.offsetParent; - } - return actualLeft; - }; -getElementPageLeft(document.getElementById('nc_1_n1t'));"; - - /// - /// 获取网页某元素坐标Y - /// - private string sJsGetElementPageTop = @"function getElementPageTop(element) { - var actualTop=element.offsetTop; - var parent=element.offsetParent; - while(parent!=null) { - actualTop+=parent.offsetTop+(parent.offsetHeight-parent.clientHeight)/2; - parent=parent.offsetParent; - } - return actualTop; -}; -getElementPageTop(document.getElementById('nc_1_n1t'))"; - #endregion - - private void CefWebBrowser3_FrameLoadEnd(object sender, CefSharp.FrameLoadEndEventArgs e) - { - if (!cefWebBrowser3.IsBrowserInitialized) - return; - - Task.Run(() => - { - var t = cefWebBrowser3.GetBrowser().MainFrame.EvaluateScriptAsync("document.getElementById('J_Quick2Static').click();"); - t.Wait(2500); - - string url = cefWebBrowser3.Address; - string loginOkUrl = "https://s.taobao.com/search?q=se"; - if ((url.Contains(loginOkUrl) && url.IndexOf(loginOkUrl) == 0) || url.Contains("https://buyertrade.taobao.com")) //登录成功 - { - try - { - if (!LoginOk) - { - LoginOk = true; - new Thread(GetLoginUserName).Start(); - Hide(); - } - } - catch - { - } - } - if (url.Contains("acs.m.taobao.com")) - { - var lst = UserCookies.ToList(); - for (int i = 0; i < lst.Count; i++) - { - DelCookies(); - SetTaoBao(lst[i].Key, true); - } - } - if (url.Contains("www.taobao.com")) - { - if (!tradeOk) - { - tradeOk = true; - cefWebBrowser3.Load("https://trade-acs.m.taobao.com"); - } - } - if (url.Contains("nc_session_id")) - { - cefWebBrowser3.Load("https://www.taobao.com/"); - } - }); - } - public static Dictionary UserCookies = new Dictionary(); - private void GetLoginUserName() - { - Thread.Sleep(2000); - string url = "https://i.taobao.com/my_taobao.htm"; - string refere = "https://login.taobao.com/member/login.jhtml"; - if (string.IsNullOrEmpty(ChromeCookies)) - ChromeCookies = cookiesSrt; - string html = GetPostTaobaoHtml.UploadTaobao(url, refere, true, ChromeCookies); - string name = BaseRegex.GetMatchRegexString(ref html, @"[\s]*[\(]([\w]+)[\)]"); - if (string.IsNullOrEmpty(name)) - name = BaseRegex.GetMatchRegexString(ref ChromeCookies, @"dnk=([\w\W]+?);"); - if (string.IsNullOrEmpty(name)) - name = BaseRegex.GetMatchRegexString(ref ChromeCookies, @"_nk_=([\w\W]+?);"); - if (string.IsNullOrEmpty(name)) - return; - //if (!BaseClass.CookiesAll.ContainsKey("taobao.com")) - // return; - if (string.IsNullOrEmpty(ChromeCookies)) - return; - - //if (TaobaoMobileCollect.CookiesDic.Count>0&&TaobaoMobileCollect.CookiesDic[name].Contains("x5sec")) - //{ - // string cookies = TaobaoMobileCollect.CookiesDic[name].ToString(); - // BaseClass.x5Sec = BaseRegex.GetMatchRegexString(ref cookies, @"x5sec=([\w\W]+?);"); - // ChromeCookies += "x5sec=" + BaseClass.x5Sec + ";"; - //} - if (name.Contains("%")) - name = GetHtml.UrlDecode(name); - TaobaoMobileCollect.CookiesDic[name] = ChromeCookies; - - AddList(name, ChromeCookies, 1); - SaveCookies(); - } - public static void SaveCookies() - { - string temp = ""; - foreach (var item in TaobaoMobileCollect.CookiesDic) - { - temp += item.Key + "-----" + item.Value + "\r\n"; - } - FileBase.WriteAllText("temp/taobaocookies.txt", temp); - } - public void AddList(string name, string cookies, int site_id) - { - try - { - string[] l = cookies.Split(';'); - List cookie = new List(); - for (int j = 0; j < l.Length; j++) - { - if (string.IsNullOrEmpty(l[j]) || !l[j].Contains("=")) - continue; - string[] ll = l[j].Split('='); - if (site_id == 1) - { - System.Net.Cookie c = new System.Net.Cookie(); - c.Domain = "taobao.com"; - c.Expires = DateTime.Now.AddYears(1); - c.Name = ll[0].Trim(); - c.Value = ll[1]; - c.Path = "/"; - cookie.Add(c); - } - } - UserCookies uc = new UserCookies(); - uc.Cookies = cookie; - uc.UserName = name; - uc.SiteId = site_id; - if (!UserCookies.ContainsKey(name)) - UserCookies.Add(name, uc); - else - UserCookies[name] = uc; - SetCookiesUserInfo.UserName = name; - ResetUserList(); - } - catch - { - } - } - - /// - /// 模拟鼠标拖拽 - /// - /// 浏览器Host - /// 起始坐标X - /// 起始坐标Y - /// 终止坐标X - /// 终止坐标Y - public void CefMouseDrag(IBrowserHost host, int x1, int y1, int x2, int y2) - { - Random random = new Random(); - - host.SendMouseClickEvent(x1, y1, MouseButtonType.Left, false, 1, CefEventFlags.None);//按下鼠标左键 - - Thread.Sleep(random.Next(5)); - double x = x1; - double y = y1; - int xlen = x2 - x1; - while (x < x2) - { - int rs = random.Next(9, 15); - if (x2 - x > (xlen - xlen / 3)) - { - rs = random.Next(3); - } - x = x + rs; - Thread.Sleep(1 + random.Next(rs)); - host.SendMouseMoveEvent((int)x, (int)y, false, CefEventFlags.LeftMouseButton); // 移动鼠标 - } - host.SendMouseClickEvent(x2, y2, MouseButtonType.Left, true, 1, CefEventFlags.None); // 抬起鼠标左键 - } - private void panelSettleSlide_Click_1(object sender, EventArgs e) - { - TbSettleSlideForm tbForm = new TbSettleSlideForm(); - //tbForm.freshType = 2; - tbForm.slideUrl = Url; - tbForm.tbDetailForm = this; - tbForm.Show(); - } - private void userComboBox_SelectedIndexChanged_1(object sender, EventArgs e) - { - string url = cefWebBrowser3.Address; - if (SetCookiesUserInfo.UserName == userComboBox.Text && !url.Contains("login")) - return; - SetTaoBao(userComboBox.Text, true); - LoginOk = false; - cefWebBrowser3.Load("https://s.taobao.com/search?q=se"); - } - private void delCookiesButtonX_Click_1(object sender, EventArgs e) - { - string cboname = userComboBox.Text; - Task.Run(() => - { - UserCookies.Remove(cboname); - if (UserCookies.Count > 0) - SetCookiesUserInfo.UserName = UserCookies.FirstOrDefault().Key; - else - SetCookiesUserInfo.UserName = ""; - TaobaoMobileCollect.CookiesDic.Remove(cboname); - TaobaoMobileCollect.CookiesDic.Clear(); - DelCookies(); - ChromeCookies = ""; - BaseClass.IeFormCookies = ""; - ResetUserList(); - SaveCookies(); - SetTaoBao(SetCookiesUserInfo.UserName, true); - LoginOk = false; - cefWebBrowser3.Load("https://login.taobao.com/member/login.jhtml?style=mini&newMini2=true&redirectURL=https://s.taobao.com/search?q=se&imgfile=&commend=all&ssid=s5-e&search_type=item&sourceId=tb.index&spm=a21bo.2017.201856-taobao-item.1&ie=utf8&initiative_id=tbindexz_20170306"); - }); - } - public override void PictureBox1_Click(object sender, EventArgs e) - { - if (Text == "淘宝验证窗口") - { - if (userComboBox.SelectedItem == null) - Thread.Sleep(3000); - this.Close(); - } - else - { - Hide(); - return; - } - } - - #region 添加x5sec事件 - public void ExecX5secJs() - { - if (cefWebBrowser3 != null && cefWebBrowser3.IsBrowserInitialized) - { - string js = @"function setCookie(name,value) - { - var Days = 30; - var exp = new Date(); - exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000); - document.cookie = name + '=' + escape(value) + ';path=/;expires=' + exp.toGMTString(); - } - "; - js += @"function getCookie(name) - { - var arr, reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); - - if (arr = document.cookie.match(reg)) - - return unescape(arr[2]); - else - return null; - } - "; - js += @"function delCookie(name) - { - var exp = new Date(); - exp.setTime(exp.getTime() - 1); - var cval = getCookie(name); - if (cval != null) - document.cookie = name + '=' + cval + ';expires=' + exp.toGMTString(); - } - "; - var task = cefWebBrowser3.GetBrowser().MainFrame.EvaluateScriptAsync(js); - task.Wait(); - var result = task.Result.Success; - if (result) - { - js = "setCookie('x5sec','" + x5Sec + "')"; - task = cefWebBrowser3.GetBrowser().MainFrame.EvaluateScriptAsync(js); - task.Wait(); - if (task.Result.Success) - { - isExecJsSuccess = true; - - cefWebBrowser3.Reload(); - } - - } - } - - } - #endregion - private void panelSettleSlide_Click(object sender, EventArgs e) - { - TbSettleSlideForm tbForm = new TbSettleSlideForm(); - //tbForm.freshType = 2; - tbForm.slideUrl = Url; - tbForm.tbDetailForm = this; - tbForm.Show(); - } - - private void cefWebBrowser3_UrlChanged(object sender, CefSharp.AddressChangedEventArgs e) - { - if (InvokeRequired) - { - Invoke(new Action(() => - { - skipUrl = cefWebBrowser3.Address; - })); - } - else - { - skipUrl = cefWebBrowser3.Address; - } - } - - - private void panelBack_Click(object sender, EventArgs e) - { - if (cefWebBrowser3.IsBrowserInitialized && cefWebBrowser3.CanGoBack) - { - cefWebBrowser3.Back(); - } - } - - private void panelForward_Click(object sender, EventArgs e) - { - if (cefWebBrowser3.IsBrowserInitialized && cefWebBrowser3.CanGoForward) - { - cefWebBrowser3.Forward(); - } - } - - private void panelRefresh_Click(object sender, EventArgs e) - { - if (!string.IsNullOrEmpty(skipUrl)) - { - cefWebBrowser3.Load(skipUrl); - } - else - { - cefWebBrowser3.Load(Url); - } - cefWebBrowser3.Refresh(); - } - - private void wwPictureBox_Click(object sender, EventArgs e) - { - - } - - bool isH5 = false; - private void userComboBox_SelectedIndexChanged(object sender, EventArgs e) - { - if (Url.Contains("https://login.m.taobao.com/") || Url.Contains("https://acs.m.taobao.com//h5")) - { - isH5 = true; - return; - } - if (isH5) - return; - string url = cefWebBrowser3.Address; - if (SetCookiesUserInfo.UserName == userComboBox.Text && !url.Contains("login")) - return; - SetTaoBao(userComboBox.Text, true); - LoginOk = false; - cefWebBrowser3.Load("https://s.taobao.com/search?q=se"); - } - public bool SetTaoBao(string userName, bool refundFlag) - { - if (!UserCookies.ContainsKey(userName)) - { - if (string.IsNullOrEmpty(userName)) - DeleteTaoBao(); - //MessageBox.Show("没有找到这个淘宝买家", "提示"); - return false; - } - DeleteTaoBao(); - //var cookieManager = CefSharp.Cef.GetGlobalCookieManager(); - var cookieManager = cefWebBrowser3.RequestContext.GetCookieManager(null); - //List cookies =UserCookies[userName].Cookies; - //Cef.GetGlobalCookieManager().SetStoragePath(Environment.CurrentDirectory, true); - //BaseClass.IeFormCookies - string[] l = BaseClass.IeFormCookies.Split(';'); - List cookies = new List(); - for (int j = 0; j < l.Length; j++) - { - if (string.IsNullOrEmpty(l[j]) || !l[j].Contains("=")) - continue; - string[] ll = l[j].Split('='); - - System.Net.Cookie c = new System.Net.Cookie(); - c.Domain = "taobao.com"; - c.Expires = DateTime.Now.AddYears(1); - c.Name = ll[0].Trim(); - c.Value = ll[1]; - c.Path = "/"; - cookies.Add(c); - } - - string domain = "https://s.taobao.com/search?q=se"; - foreach (System.Net.Cookie c in cookies) - { - var cookie = new CefSharp.Cookie - { - Domain = c.Domain, - Name = c.Name, - Value = c.Value, - Expires = DateTime.Now.AddYears(1), - Path = "/" - }; - Task task = cookieManager.SetCookieAsync(domain, cookie); - while (!task.IsCompleted) - { - Thread.Sleep(1); - continue; - } - } - if (!refundFlag) - { - BaseMsgForm.ShowInfo("切换到账户:" + userName + " 成功", "提示"); - } - SetCookiesUserInfo.UserName = userName; - return true; - } - - public void DeleteTaoBao() - { - var cookieManager = cefWebBrowser3.RequestContext.GetCookieManager(null); ; - if (!string.IsNullOrEmpty(ChromeCookies)) - { - var cookies = ChromeCookies;// BaseClass.CookiesAllString["taobao.com"]; - string[] l = cookies.Split(';'); - for (int i = 0; i < l.Length; i++) - { - if (string.IsNullOrEmpty(l[i]) || !l[i].Contains("=")) - continue; - string name = l[i].Split('=')[0].Trim(); - try - { - cookieManager.DeleteCookies("https://s.taobao.com/search?q=se", name); - cookieManager.DeleteCookies("https://login.taobao.com/member/login.jhtml", name); - //cookieManager.Dispose(); - } - catch - { - } - } - } - - } - public void DelCookies() - { - ICookieManager cookieManager = null; - if (this.cefWebBrowser3 != null && this.cefWebBrowser3.RequestContext != null) - cookieManager = this.cefWebBrowser3.RequestContext.GetCookieManager(null); - else - cookieManager = Cef.GetGlobalCookieManager(); - Task deleteTask = cookieManager.DeleteCookiesAsync("taobao.com", null); - deleteTask.Wait(); - } - private void buttonEx4_Click(object sender, EventArgs e) - { - DelCookies(); - LoginOk = false; - cefWebBrowser3.Load("https://login.taobao.com/member/login.jhtml?style=mini&newMini2=true&redirectURL=https://s.taobao.com/search?q=se&imgfile=&commend=all&ssid=s5-e&search_type=item&sourceId=tb.index&spm=a21bo.2017.201856-taobao-item.1&ie=utf8&initiative_id=tbindexz_20170306"); - } - private void buttonX2_Click(object sender, EventArgs e) - { - DelCookies(); - LoginOk = false; - cefWebBrowser3.Load("https://login.taobao.com/member/login.jhtml?style=mini&newMini2=true&redirectURL=https://s.taobao.com/search?q=se&imgfile=&commend=all&ssid=s5-e&search_type=item&sourceId=tb.index&spm=a21bo.2017.201856-taobao-item.1&ie=utf8&initiative_id=tbindexz_20170306"); - } - public static string ChromeCookies = ""; - public static string oldSec = ""; - public static string cookiesSrt = ""; - public delegate void delegateView(); - public void ReflashCookies() - { - - try - { - while (true) - { - Thread.Sleep(300); - if (this == null || this.IsDisposed) - return; - Invoke(new delegateView(GetCookies)); - Thread.Sleep(300); - string cookie = ""; - for (int i = 0; i < cookies.Count; i++)//初始化COOKIES缓存 - { - var c = cookies[i]; - if (!c.Domain.Contains("taobao.com")) - continue; - cookie += c.Name + "=" + c.Value + "; "; - string mainDomain = GetHtml.GetMainDomain(c.Domain); - if (BaseClass.CookiesAll.ContainsKey(mainDomain)) - { - if (BaseClass.CookiesAll[mainDomain].ContainsKey(c.Name)) - BaseClass.CookiesAll[mainDomain][c.Name] = c.Value; - else - BaseClass.CookiesAll[mainDomain].Add(c.Name, c.Value); - } - else - { - BaseClass.CookiesAll.Add(mainDomain, new Dictionary()); - BaseClass.CookiesAll[mainDomain].Add(c.Name, c.Value); - } - } - if (!string.IsNullOrEmpty(cookie)) - { - if (cookie.Contains("x5sec")) - cookiesSrt = cookie; - //if (cookie.Contains("x5sec")&&(cookie.Contains("tracknick") || cookie.Contains("dnk") || cookie.Contains("_w_tb_nick"))) - // BaseClass.IeFormCookies = ChromeCookies = cookie; - //cookiesSrt = cookie; - if ((cookie.Contains("tracknick") || cookie.Contains("dnk") || cookie.Contains("_w_tb_nick"))) - { - BaseClass.IeFormCookies = ChromeCookies = cookie; - BaseClass.x5Sec = BaseRegex.GetMatchRegexString(ref cookiesSrt, "\"name\": \"x5sec\",[\\s\\S]+?\"value\": \"([\\s\\S]+?)\""); - if (string.IsNullOrEmpty(BaseClass.x5Sec)) - BaseClass.x5Sec = BaseRegex.GetMatchRegexString(ref cookiesSrt, "x5sec=([\\s\\S]+?);"); - } - //if (cookie.Contains("x5sec")&&TitleText == "淘宝验证窗口" && isH5 && (cookie.Contains("tracknick") || cookie.Contains("dnk") || cookie.Contains("_w_tb_nick"))) - // BaseClass.IeFormCookies = cookie; - //if (string.IsNullOrEmpty(BaseClass.x5Sec)) - //{ - // BaseClass.x5Sec = BaseRegex.GetMatchRegexString(ref cookiesSrt, "\"name\": \"x5sec\",[\\s\\S]+?\"value\": \"([\\s\\S]+?)\""); - // if (string.IsNullOrEmpty(BaseClass.x5Sec)) - // BaseClass.x5Sec = BaseRegex.GetMatchRegexString(ref cookiesSrt, "x5sec=([\\s\\S]+?);"); - //} - } - //if (TaobaoMobileCollect.CookiesDic.Count==0) - //{ - // GetLoginUserName(); - //} - //string x5Sec = BaseRegex.GetMatchRegexString(ref IeForm.ChromeCookies, @"x5sec=([\w\W]+?);"); - //if (!string.IsNullOrEmpty(x5Sec) && x5Sec != oldSec) - //{ - // BaseClass.x5Sec = x5Sec; - // oldSec = x5Sec; - //} - } - } - catch - { - } - } - - public List cookies = new List(); - /// - /// 加载完成时,重设cookies - /// - /// - private void visitor_SendCookie(CefSharp.Cookie obj) - { - cookies.Add(obj); - } - /// - /// 获取cookies - /// - private void GetCookies() - { - cookies.Clear(); - var cookieManager = cefWebBrowser3.RequestContext.GetCookieManager(null); - CookieVisitor visitor = new CookieVisitor(); - visitor.SendCookie += visitor_SendCookie; - cookieManager.VisitAllCookies(visitor); - } - - private void delCookiesButtonX_Click(object sender, EventArgs e) - { - string cboname = userComboBox.Text; - Task.Run(() => - { - UserCookies.Remove(cboname); - if (UserCookies.Count > 0) - SetCookiesUserInfo.UserName = UserCookies.FirstOrDefault().Key; - else - SetCookiesUserInfo.UserName = ""; - TaobaoMobileCollect.CookiesDic.Remove(cboname); - DelCookies(); - ChromeCookies = ""; - ResetUserList(); - SaveCookies(); - SetTaoBao(SetCookiesUserInfo.UserName, true); - LoginOk = false; - cefWebBrowser3.Load("https://s.taobao.com/search?q=se"); - }); - } - - private void buttonEx1_Click(object sender, EventArgs e) - { - if (!string.IsNullOrEmpty(BaseClass.x5Sec)) - { - MessageBox.Show("获取滑动参数成功。"); - return; - } - string cookies = string.Empty; - IDataObject iData = Clipboard.GetDataObject(); - if (iData.GetDataPresent(DataFormats.Text)) - { - cookies = (string)iData.GetData(DataFormats.Text); - } - if (string.IsNullOrEmpty(cookies)) - { - BaseClass.x5Sec = BaseRegex.GetMatchRegexString(ref cookiesSrt, "\"name\": \"x5sec\",[\\s\\S]+?\"value\": \"([\\s\\S]+?)\""); - if (string.IsNullOrEmpty(BaseClass.x5Sec)) - BaseClass.x5Sec = BaseRegex.GetMatchRegexString(ref cookiesSrt, "x5sec=([\\s\\S]+?);"); - if (string.IsNullOrEmpty(BaseClass.x5Sec)) - MessageBox.Show("获取滑动参数失败。"); - else - MessageBox.Show("获取滑动参数成功。"); - return; - } - string x5Sec = BaseRegex.GetMatchRegexString(ref cookies, "\"name\": \"x5sec\",[\\s\\S]+?\"value\": \"([\\s\\S]+?)\""); - if (string.IsNullOrEmpty(x5Sec)) - { - x5Sec = BaseRegex.GetMatchRegexString(ref cookies, "x5sec=([\\s\\S]+?);"); - } - if (string.IsNullOrEmpty(x5Sec)) - { - x5Sec = BaseRegex.GetMatchRegexString(ref cookiesSrt, "\"name\": \"x5sec\",[\\s\\S]+?\"value\": \"([\\s\\S]+?)\""); - if (string.IsNullOrEmpty(x5Sec)) - x5Sec = BaseRegex.GetMatchRegexString(ref cookiesSrt, "x5sec=([\\s\\S]+?);"); - } - if (string.IsNullOrEmpty(x5Sec)) - { - Thread.Sleep(2000); - x5Sec = BaseRegex.GetMatchRegexString(ref IeForm.ChromeCookies, @"x5sec=([\w\W]+?);"); - } - BaseClass.x5Sec = x5Sec; - if (string.IsNullOrEmpty(x5Sec)) - { - MessageBox.Show("获取滑动参数失败。"); - return; - } - else - { - MessageBox.Show("获取滑动参数成功。"); - return; - } - } - - public void AutoRrefreshCookies() - { - while (true) - { - try - { - Thread.Sleep(10 * 60 * 1000); - var lst = UserCookies.ToList(); - for (int i = 0; i < lst.Count; i++) - { - DelCookies(); - SetTaoBao(lst[i].Key, true); - LoginOk = false; - cefWebBrowser3.Load("https://buyertrade.taobao.com/trade/itemlist/list_bought_items.htm"); - Thread.Sleep(8 * 1000); - } - } - catch - { - } - } - } - - private void buttonEx2_Click(object sender, EventArgs e) - { - new Thread(AutoRrefreshCookies).Start(); - } - - private void buttonEx1_Click_1(object sender, EventArgs e) - { - if (!string.IsNullOrEmpty(BaseClass.x5Sec)) - { - MessageBox.Show("获取滑动参数成功。"); - return; - } - string cookies = string.Empty; - IDataObject iData = Clipboard.GetDataObject(); - if (iData.GetDataPresent(DataFormats.Text)) - { - cookies = (string)iData.GetData(DataFormats.Text); - } - if (string.IsNullOrEmpty(cookies)) - { - BaseClass.x5Sec = BaseRegex.GetMatchRegexString(ref cookiesSrt, "\"name\": \"x5sec\",[\\s\\S]+?\"value\": \"([\\s\\S]+?)\""); - if (string.IsNullOrEmpty(BaseClass.x5Sec)) - BaseClass.x5Sec = BaseRegex.GetMatchRegexString(ref cookiesSrt, "x5sec=([\\s\\S]+?);"); - if (string.IsNullOrEmpty(BaseClass.x5Sec)) - MessageBox.Show("获取滑动参数失败。"); - else - MessageBox.Show("获取滑动参数成功。"); - return; - } - string x5Sec = BaseRegex.GetMatchRegexString(ref cookies, "\"name\": \"x5sec\",[\\s\\S]+?\"value\": \"([\\s\\S]+?)\""); - if (string.IsNullOrEmpty(x5Sec)) - { - x5Sec = BaseRegex.GetMatchRegexString(ref cookies, "x5sec=([\\s\\S]+?);"); - } - if (string.IsNullOrEmpty(x5Sec)) - { - x5Sec = BaseRegex.GetMatchRegexString(ref cookiesSrt, "\"name\": \"x5sec\",[\\s\\S]+?\"value\": \"([\\s\\S]+?)\""); - if (string.IsNullOrEmpty(x5Sec)) - x5Sec = BaseRegex.GetMatchRegexString(ref cookiesSrt, "x5sec=([\\s\\S]+?);"); - } - if (string.IsNullOrEmpty(x5Sec)) - { - Thread.Sleep(2000); - x5Sec = BaseRegex.GetMatchRegexString(ref IeForm.ChromeCookies, @"x5sec=([\w\W]+?);"); - } - BaseClass.x5Sec = x5Sec; - if (string.IsNullOrEmpty(x5Sec)) - { - MessageBox.Show("获取滑动参数失败。"); - return; - } - else - { - MessageBox.Show("获取滑动参数成功。"); - return; - } - } - - /// - /// 本次软件运行期间是否不再显示淘宝登录/校验 - /// - public static bool IsShowIeForm = true; - - private void checkBox1_CheckedChanged(object sender, EventArgs e) - { - IsShowIeForm = !checkBox1.Checked; - } - } -} diff --git a/TEMUKJD/KJDForms/ProductForms/Old/IeForm.designer.cs b/TEMUKJD/KJDForms/ProductForms/Old/IeForm.designer.cs deleted file mode 100644 index f6c9269..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/IeForm.designer.cs +++ /dev/null @@ -1,261 +0,0 @@ -namespace TemuKJD.KJDForms -{ - partial class IeForm - { - /// - /// 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() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(IeForm)); - this.pnlBody = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel3 = new System.Windows.Forms.Panel(); - this.buttonEx1 = new TemuKJD.UserControls.ButtonEx(); - this.panelSettleSlide = new DevComponents.DotNetBar.PanelEx(); - this.userComboBox = new System.Windows.Forms.ComboBox(); - this.label25 = new System.Windows.Forms.Label(); - this.delCookiesButtonX = new DevComponents.DotNetBar.PanelEx(); - this.buttonEx4 = new TemuKJD.UserControls.ButtonEx(); - this.checkBox1 = new System.Windows.Forms.CheckBox(); - this.label1 = new System.Windows.Forms.Label(); - this.pnlBody.SuspendLayout(); - this.panel3.SuspendLayout(); - this.SuspendLayout(); - // - // pnlBody - // - this.pnlBody.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pnlBody.Controls.Add(this.panel2); - this.pnlBody.Controls.Add(this.panel3); - this.pnlBody.Dock = System.Windows.Forms.DockStyle.Fill; - this.pnlBody.Location = new System.Drawing.Point(2, 34); - this.pnlBody.Margin = new System.Windows.Forms.Padding(0); - this.pnlBody.Name = "pnlBody"; - this.pnlBody.Size = new System.Drawing.Size(1251, 660); - this.pnlBody.TabIndex = 1; - // - // panel2 - // - this.panel2.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.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel2.Location = new System.Drawing.Point(-1, 66); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(1251, 591); - this.panel2.TabIndex = 6; - // - // panel3 - // - this.panel3.Controls.Add(this.label1); - this.panel3.Controls.Add(this.checkBox1); - this.panel3.Controls.Add(this.buttonEx1); - this.panel3.Controls.Add(this.panelSettleSlide); - this.panel3.Controls.Add(this.userComboBox); - this.panel3.Controls.Add(this.label25); - this.panel3.Controls.Add(this.delCookiesButtonX); - this.panel3.Controls.Add(this.buttonEx4); - this.panel3.Dock = System.Windows.Forms.DockStyle.Top; - this.panel3.Location = new System.Drawing.Point(0, 0); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(1249, 70); - this.panel3.TabIndex = 5; - // - // buttonEx1 - // - this.buttonEx1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.buttonEx1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.buttonEx1.Cursor = System.Windows.Forms.Cursors.Hand; - this.buttonEx1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.buttonEx1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.buttonEx1.ForeColor = System.Drawing.Color.White; - this.buttonEx1.Location = new System.Drawing.Point(843, 36); - this.buttonEx1.Margin = new System.Windows.Forms.Padding(2); - this.buttonEx1.Name = "buttonEx1"; - this.buttonEx1.Size = new System.Drawing.Size(85, 25); - this.buttonEx1.TabIndex = 553; - this.buttonEx1.Text = "获取参数"; - this.buttonEx1.UseVisualStyleBackColor = false; - this.buttonEx1.Click += new System.EventHandler(this.buttonEx1_Click_1); - // - // panelSettleSlide - // - this.panelSettleSlide.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.panelSettleSlide.CanvasColor = System.Drawing.Color.Red; - this.panelSettleSlide.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.panelSettleSlide.Cursor = System.Windows.Forms.Cursors.Hand; - this.panelSettleSlide.DisabledBackColor = System.Drawing.Color.Empty; - this.panelSettleSlide.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.panelSettleSlide.Location = new System.Drawing.Point(1030, 8); - this.panelSettleSlide.Name = "panelSettleSlide"; - this.panelSettleSlide.Size = new System.Drawing.Size(83, 21); - this.panelSettleSlide.Style.Alignment = System.Drawing.StringAlignment.Center; - this.panelSettleSlide.Style.BackColor1.Color = System.Drawing.Color.Red; - this.panelSettleSlide.Style.BackColor2.Color = System.Drawing.Color.Red; - this.panelSettleSlide.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.panelSettleSlide.Style.BorderColor.Color = System.Drawing.Color.Red; - this.panelSettleSlide.Style.CornerDiameter = 1; - this.panelSettleSlide.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; - this.panelSettleSlide.Style.ForeColor.Color = System.Drawing.Color.White; - this.panelSettleSlide.Style.GradientAngle = 90; - this.panelSettleSlide.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.panelSettleSlide.StyleMouseDown.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(241)))), ((int)(((byte)(241))))); - this.panelSettleSlide.StyleMouseDown.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(171)))), ((int)(((byte)(171)))), ((int)(((byte)(171))))); - this.panelSettleSlide.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.panelSettleSlide.StyleMouseOver.BackColor2.Color = System.Drawing.Color.LightGray; - this.panelSettleSlide.TabIndex = 546; - this.panelSettleSlide.Text = "解除滑块"; - this.panelSettleSlide.Visible = false; - this.panelSettleSlide.Click += new System.EventHandler(this.panelSettleSlide_Click_1); - // - // userComboBox - // - this.userComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.userComboBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.userComboBox.FormattingEnabled = true; - this.userComboBox.Location = new System.Drawing.Point(1087, 36); - this.userComboBox.Name = "userComboBox"; - this.userComboBox.Size = new System.Drawing.Size(107, 25); - this.userComboBox.TabIndex = 538; - this.userComboBox.Text = "点击下拉切换"; - this.userComboBox.SelectedIndexChanged += new System.EventHandler(this.userComboBox_SelectedIndexChanged_1); - // - // label25 - // - this.label25.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.label25.AutoSize = true; - this.label25.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label25.Location = new System.Drawing.Point(1027, 40); - this.label25.Name = "label25"; - this.label25.Size = new System.Drawing.Size(56, 17); - this.label25.TabIndex = 539; - this.label25.Text = "淘宝号:"; - // - // delCookiesButtonX - // - this.delCookiesButtonX.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.delCookiesButtonX.CanvasColor = System.Drawing.SystemColors.Control; - this.delCookiesButtonX.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.delCookiesButtonX.Cursor = System.Windows.Forms.Cursors.Hand; - this.delCookiesButtonX.DisabledBackColor = System.Drawing.Color.Empty; - this.delCookiesButtonX.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.delCookiesButtonX.Location = new System.Drawing.Point(1200, 36); - this.delCookiesButtonX.Name = "delCookiesButtonX"; - this.delCookiesButtonX.Size = new System.Drawing.Size(46, 25); - this.delCookiesButtonX.Style.Alignment = System.Drawing.StringAlignment.Center; - this.delCookiesButtonX.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(251)))), ((int)(((byte)(251)))), ((int)(((byte)(251))))); - this.delCookiesButtonX.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191))))); - this.delCookiesButtonX.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.delCookiesButtonX.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(171)))), ((int)(((byte)(171)))), ((int)(((byte)(171))))); - this.delCookiesButtonX.Style.CornerDiameter = 1; - this.delCookiesButtonX.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; - this.delCookiesButtonX.Style.ForeColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); - this.delCookiesButtonX.Style.GradientAngle = 90; - this.delCookiesButtonX.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.delCookiesButtonX.StyleMouseDown.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(241)))), ((int)(((byte)(241))))); - this.delCookiesButtonX.StyleMouseDown.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(171)))), ((int)(((byte)(171)))), ((int)(((byte)(171))))); - this.delCookiesButtonX.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.delCookiesButtonX.StyleMouseOver.BackColor2.Color = System.Drawing.Color.LightGray; - this.delCookiesButtonX.TabIndex = 537; - this.delCookiesButtonX.Text = "删除"; - this.delCookiesButtonX.Click += new System.EventHandler(this.delCookiesButtonX_Click_1); - // - // buttonEx4 - // - this.buttonEx4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.buttonEx4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.buttonEx4.Cursor = System.Windows.Forms.Cursors.Hand; - this.buttonEx4.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.buttonEx4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.buttonEx4.ForeColor = System.Drawing.Color.White; - this.buttonEx4.Location = new System.Drawing.Point(932, 36); - this.buttonEx4.Margin = new System.Windows.Forms.Padding(2); - this.buttonEx4.Name = "buttonEx4"; - this.buttonEx4.Size = new System.Drawing.Size(85, 25); - this.buttonEx4.TabIndex = 404; - this.buttonEx4.Text = "新用户登录"; - this.buttonEx4.UseVisualStyleBackColor = false; - this.buttonEx4.Click += new System.EventHandler(this.buttonEx4_Click); - // - // checkBox1 - // - this.checkBox1.AutoSize = true; - this.checkBox1.Location = new System.Drawing.Point(10, 9); - this.checkBox1.Name = "checkBox1"; - this.checkBox1.Size = new System.Drawing.Size(144, 16); - this.checkBox1.TabIndex = 560; - this.checkBox1.Text = "不再弹出淘宝登录校验"; - this.checkBox1.UseVisualStyleBackColor = true; - this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label1.ForeColor = System.Drawing.Color.Gray; - this.label1.Location = new System.Drawing.Point(155, 8); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(342, 17); - this.label1.TabIndex = 561; - this.label1.Text = "勾选后重启软件前将自动跳过登录/验证(默认登录/验证失败)"; - // - // IeForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1255, 696); - this.Controls.Add(this.pnlBody); - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Name = "IeForm"; - this.Padding = new System.Windows.Forms.Padding(2); - this.ShowMaximizeBox = true; - this.Text = "为了正常上传,请登录淘宝买手号"; - this.TitleText = "为了正常上传,请登录淘宝买手号"; - this.Load += new System.EventHandler(this.IeForm_Load); - this.Controls.SetChildIndex(this.pnlBody, 0); - this.pnlBody.ResumeLayout(false); - this.panel3.ResumeLayout(false); - this.panel3.PerformLayout(); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel pnlBody; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private UserControls.ButtonEx buttonEx4; - private DevComponents.DotNetBar.PanelEx delCookiesButtonX; - private System.Windows.Forms.ComboBox userComboBox; - private System.Windows.Forms.Label label25; - private DevComponents.DotNetBar.PanelEx panelSettleSlide; - private UserControls.ButtonEx buttonEx1; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.CheckBox checkBox1; - //private UserControls.ButtonEx buttonEx1; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/Old/IeForm.resx b/TEMUKJD/KJDForms/ProductForms/Old/IeForm.resx deleted file mode 100644 index bfcb127..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/IeForm.resx +++ /dev/null @@ -1,408 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - - - AAABAAEAQEAAAAEAIAAoQgAAFgAAACgAAABAAAAAgAAAAAEAIAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAobIAPKKzAJegsADXnrAA85yu - AP2crQD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/nK0A/5uuAP2frgDzoLEA1aGyAJOfsQA4AAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACdrgA8obQAvaW2 - AP+qvAD/o7QA/56vAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/nq8A/6O1AP+qvQD/pLUA/6Kz - ALegrgA2AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH9/ - AASfsQCPpLYA/6i6AP+erwD/nK0A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/nK0A/56vAP+puwD/obMA/5+vAIcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAJaiABagsQDDrb8A/5+wAP+crQD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/nK0A/5+xAP+tvwD/oLIAu4+fABAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAJ2pABSgsgDVqr0A/5ytAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na0A/6u+ - AP+gsADNmaoADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJmZAASesADHqr0A/5ytAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+crQD/nK0A/5ytAP+crQD/nK0A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+crQD/q74A/52tAL0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACaqwCTrb8A/5yt - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/nK0A/5qsAP+XqQD/lacA/5WnAP+WqAD/mKoA/5qrAP+aqwD/masA/5iqAP+WqAD/lacA/5Wn - AP+XqQD/mqsA/5ytAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52tAP+tvwD/mqsAhwAAAAAAAAAAAAAAAAAA - AACbrAA6prgA/5+wAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+ZqwD/lacA/5ipAP+jsxP/tMA+/8TOaf/T2o7/3uOq/+XpvP/p7cf/6u3J/+ns - xv/l6bv/3eOo/9LajP/Ezmj/tME+/6SzFf+ZqgD/lKcA/5epAP+crQD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/n7EA/6O0 - AP+cqwAwAAAAAAAAAAAAAAAAm60Ayai6AP+crQD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/nK0A/5aoAP+WqAD/qbcj/8fQcf/k6Lv/+Pnu//////////////////// - ///////////////////////////////////////////////////5+e//5+vC/83VgP+wvjf/m6wA/5Sn - AP+ZqwD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/5ytAP+puwD/mqwAvQAAAAAAAAAAna4APqa5AP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/l6kA/5ipAP+1wUT/3+Sv//z8+P////////////// - //////////////////////////////////////////////////////////////////////////////// - /////////////+zv0P/J0nj/prUd/5WnAP+YqgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/nq8A/6S2AP+csAA0AAAAAJ2uAKOqvAD/na0A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+arAD/lacA/7C+Of/j6Ln///////// - //////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////r78//X3Zn/q7kq/5WnAP+ZqwD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/5ytAP+rvQD/na4AlZmq - AA6brQDlorMA/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+XqQD/na4I/9La - jv////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////39 - +f/V3Jb/pbQc/5SnAP+brQD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/o7UA/5ysANmcrwBgm64A/Z6vAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+UpwD/q7ks/+zvz/////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - //////////////////////////////j57f/G0G//masA/5epAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/56vAP+drAD1m6wAt56vAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+UpgD/t8NJ//r68P////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - /////////////////////////////////////////////////////////////+bqwP+quSv/lKYA/5yt - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/m64A/ZytAPGdrgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+UpgD/vMhV//7+/f////////////////////////////// - ///////////////////////////////////z9eD/xM5t/77IXv/l6bz///////////////////////// - //////////////////////////////////////////////////////////////////////////////// - ////////+/vz/8HLYv+VpwD/mqwA/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/5yt - AP+esAD/nK0A/5ytAP+crQD/nK0A/5ytAP+crQD/nK0A/5ytAP+TpgD/uMRM//39/f/9/f3//f39//39 - /f/9/f3//f39//39/f/9/f3//f39//39/f/9/f3//f39//39/f/r7s7/nq4N/6W0Hv+frw3/kqUA/9DY - hf/9/f3//f39//39/f/9/f3//f39//39/f/9/f3//f39//39/f/9/f3//f39//39/f/9/f3//f39//39 - /f/9/f3//f39//39/f/9/f3//f39//39/f/9/f3/1NuT/5iqAf+XqQD/nK0A/5ytAP+crQD/nK0A/5yt - AP+crQD/nK0A/5ytAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+WqAD/rrww//v8 - 9v/////////////////////////////////////////////////////////////////8/Pj/p7Yc/8rT - ev///////////626Lv+QowD/4ue0//////////////////////////////////////////////////// - ///////////////////////////////////////////////////////////////////k6Lf/n68O/5ep - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+ZqwD/n7AO//L03f////////////////////////////////////////////////////////////// - ////////2+Gj/5KlAP+7x1D/zNR7/8jRcP+jshH/lacA/627KP/9/fv///////////////////////// - //////////////////////////////////////////////////////////////////////////////// - /////////////+vvy/+ishX/l6kA/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+crQD/lacA/93ipf////////////////////////////////////////////// - /////////////////////////////7rGTP+WqAD/l6kA/5WnAP+VpwD/nK0A/52uAP+XqQD/6OvC//// - //////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////7vDR/6KyFv+ZqwD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/lacA/7vGTf////////////////////////////// - //////////////////////////////////////////////////+ruSX/mKoA/52uAP+drgD/na4A/52u - AP+drgD/lKYA/9TbkP////////////////////////////////////////////////////////////// - ///////////////////////////////////////////////////////////////////n68D/m6wD/5yt - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/m6wA/52uB//y9N3///////// - ///////////////////////////////////////////////////////////////////r7sv/obEP/5mr - AP+drgD/na4A/52uAP+drgD/nK0A/5OmAP+0wED/9vfl//////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - ////////9vjp/6CwBv+brQD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/5Sn - AP/H0Gz///////////////////////////////////////////////////////////////////////// - ///L03f/k6UA/56uBf+brAD/l6kA/52uAP+drgD/mKoA/5usAP+ruSP/m6wC/52uDv/r7sz///////// - //////////////////////////////////////////////////////////////////////////////// - /////////////////////////////+/y1/+drQH/nK0A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/5usAP+hsQ//+Pnu//////////////////////////////////////////////////// - ///////////////////Y35z/i54A/8nSdf/09eH/6+7L/7nFTP+YqgD/masA/6m4Jf/o7MX//v38//Hz - 2/+ishn/o7IQ//39+/////////////////////////////////////////////////////////////// - ///////////////////////////////////////////////////p7MX/masA/5ytAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+arAD/orIU/+Xpu/////////////////////////////// - ////////////////////////////////////////z9aB/7nFTf//////////////////////rbss/5Wn - AP/u8NH/////////////////7O/M/83Vfv/+/vz///////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////3+Sr/5ao - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/5qrAP+WqAD/2d+c//// - //////////////////////////////////////////////////////////////////////////////// - ///+/v7/0dmJ/56vDv+XqQD/w81j//v89v////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - /////////////9HYh/+VpwD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/masA/5usA//w8tj///////////////////////////////////////////////////////// - /////////////////////////v79/73IU/+XqQD/l6kA/6e2G//3+Ov///////////////////////// - //////////////////////////////////////////////////////////////////////////////// - ///////////////////////////////////By17/lagA/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+TpgD/xc9p//////////////////////////////////// - ////////////////////////////////////////////////////////7/LX/+rtzP/7+/X///////// - //////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////sL0y/5ipAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/maoA/6q4Iv/9/fv///////// - //////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////9/jq/6Gx - C/+brAD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/5ut - AP+drgL/8fPc//////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - /////////////+Xpu/+XqQD/nK0A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/l6kA/+Lntf///////////////////////////+/y1v/09uP///////// - //////////////v89f/f5LH/+vvz//////////////////////////////////////////////////z8 - 9//q7sz////////////////////////////q7cr/6OvD//////////////////////////////////// - ///////////////////////////////////N1X3/lKcA/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/5SnAP/R2Yn///////////////////////// - //+1wT//lqgA/83Wf//o68L/6OvC/9DYhv+ishb/lKYA/+/y1/////////////////////////////// - ///////////////////t8NH/k6UA/7G+Ov/c4qX/6u3I/+Dlr/++yFj/jqEA/7nFSv////////////// - ////////////////////////////////////////////////////////tMA7/5epAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+WqAD/vchU//// - ////////////////////////8PPa/7rFUv+YqQD/lacA/5WnAP+XqQD/tMBD/+nsxP////////////// - /////////////////////////////////////////f77/9rgoP+ltB//lacA/5WnAP+UpwD/n7AP/8vT - e//4+e7/////////////////////////////////////////////////////////////////9fbl/5+v - CP+brAD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/masA/6i3Hf/9/fn/////////////////////////////////9fbm/+bqwv/m6sL/9Pbl//// - /////////////////////////////////////////////////////////////////////////////+3w - 1P/k6L7/6+7O//z89/////////////////////////////////////////////////////////////// - /////////////9vhof+VpwD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/5ytAP+aqwD/7O/P//////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - //////////////////////////////7+/v+4xEj/lqgA/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/lKcA/9DYh/////////////// - //////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - ///////////////////////////////////////////////////9/vz/qrgj/5mqAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/5ep - AP+xvjL///////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - /////////////////////////////////////////////////////////////////////////////8TN - Zf+VpwD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+aqwD/l6kA/+vuzP////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - ///////////////////g5a7/lqgA/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+brAD/p7Ya/5mqAv/Ayln///////////////////////// - //////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////9vfo/6CwCf+brAD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/lacA/9DXhP/Q2IT/k6YA//L0 - 3f////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////+yvzf/l6kA/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/5ao - AP/i57T//v7+/5+vEP+6xUz///////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - ////////yNFw/5SnAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/5utAP+drgP/8PPa///////h5rH/kKMA/+Tot/////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - /////////////////////////////93jqP+WqAD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+ZqwD/qLcd//z9+f///////////7/KW/+drgv/+frw//// - //////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - ///////////////////////////////////////////////////v8dX/nK0B/5ytAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/l6kA/7XCQP////////////// - ///8/Pj/pbUe/7K/Pv////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - ///////////////////////////////+////////////////////////////////////////+/z2/6a1 - GP+aqwD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/5Wo - AP/CzGD///////////////////////L03P+ZqwT/v8pe//////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////j57v/39ur///////////////////////// - //////////////////+zwDr/l6kA/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+VpwD/zNR6////////////////////////////7O/M/5mqBP+/yV7///////// - //////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////v79f/g5a//+/z2//// - ////////////////////////////////////////wMtc/5WoAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/lacA/9LZi/////////////////////////////// - ///v8dT/oLAV/7G+Pv/4+ev///////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////39 - +//O1oD/8fPa/////////////////////////////////////////////////8zUe/+VpwD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/5WnAP/U25D///////// - //////////////////////////////j56/+wvTz/na4Q/93jqv////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - //////////////n67/+7xlD/4OWu//////////////////////////////////////////////////// - ///W3JT/lacA/52uAP+drgD/na4A/52uAP+drgD/na4A/56wAP+crQD/nK0A/5ytAP+crQD/nK0A/5yt - AP+UpgD/z9eF//39/f/9/f3//f39//39/f/9/f3//f39//39/f/9/f3//f39/8zUgP+bqwz/tsJM/+Xp - wP/9/f3//f39//39/f/9/f3//f39//39/f/9/f3//f39//39/f/9/f3//f39//39/f/9/f3//f39//39 - /f/9/f3//f39//39/f/9/f3//f39/+Xpvv+otyb/0dmK//39/f/9/f3//f39//39/f/9/f3//f39//39 - /f/9/f3//f39//39/f/9/f3/2+Gl/5WnAP+crQD/nK0A/5ytAP+crQD/nK0A/52uAP+drADzna4A/52u - AP+drgD/na4A/52uAP+drgD/lacA/8XPaf////////////////////////////////////////////// - ////////09qK/5CjAP+YqgD/sr86/9Tbkf/v8db//v7+//////////////////////////////////// - ///////////////////////////////////5+vH/3+Su/7jETP+SpQD/xs9q//////////////////// - /////////////////////////////////////////////+Dlrv+XqQD/na4A/52uAP+drgD/na4A/52u - AP+crQD/nKsAu56vAP+drgD/na4A/52uAP+drgD/na4A/5iqAP+wvTD///////////////////////// - ////////////////////////1dyU/52uC/+brQD/nK0A/5epAP+VpwD/nK0B/6y6Kf+8yFT/zNR8/9nf - nv/k6Ln/6+7N//Hz2v/z9eH/8/Xh//Hz2v/q7sr/4OWv/9DYh/+7xlD/pbQY/5aoAP+WqAD/masA/6e2 - JP/q7cj////////////////////////////////////////////////////////////f5K3/lqgA/52u - AP+drgD/na4A/52uAP+drgD/m64A/ZyuAGSbrgD9nq8A/52uAP+drgD/na4A/52uAP+crQD/maoA/+jr - wv/////////////////////////////////29+b/vslb/5WnAP+arAD/na4A/52uAP+drgD/na4A/5ut - AP+YqgD/lqgA/5WnAP+VpwD/mKkA/5usAP+ergL/n7AG/5+wB/+ergL/mqsA/5epAP+VpwD/lqgA/5qr - AP+drgD/na4A/52uAP+YqgD/na4K/93jqP////////////////////////////////////////////// - ////////2eCe/5WnAP+drgD/na4A/52uAP+drgD/nq8A/52sAPWbqQASnK4A56KzAP+drgD/na4A/52u - AP+drgD/na4A/5iqAP+otiL/7fDS//////////////////X25v/Q2In/o7IW/5WnAP+crQD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/5ytAP+crQD/m60A/5usAP+brAD/m60A/5yt - AP+crQD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/5mrAP+WqQD/xs9v//v79P////////////// - /////////////////////////////83Vff+UpwD/na4A/52uAP+drgD/na4A/6O0AP+drQDbAAAAAJ2u - AKeqvAD/na0A/52uAP+drgD/na4A/52uAP+drgD/mKoA/56vBv+5xUr/wsxh/7fDRf+isg//lacA/5qr - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/nK0A/5Sn - AP+quCj/3+St//////////////////////////////////////+1wT7/l6kA/52uAP+drgD/na4A/5yt - AP+qvQD/nawAmwAAAACdsABEp7kA/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+brAD/lqgA/5Wn - AP+XqQD/mqwA/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/mKoA/5aoAP+zwD//3uOr//v79f/////////////////l6bz/masC/5yt - AP+drgD/na4A/52uAP+erwD/pbcA/5+xADgAAAAAAAAAAJqsAM+nuQD/nK0A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+crQD/l6kA/5aoAP+nth3/vslY/8zV - fP/Fz2n/oLAM/5qrAP+drgD/na4A/52uAP+crQD/qLoA/5ysAMMAAAAAAAAAAAAAAACarQBCp7kA/56v - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/masA/5aoAP+VpwD/lacA/5usAP+drgD/na4A/52uAP+drgD/n7AA/6S2AP+dqwA2AAAAAAAA - AAAAAAAAAAAAAJurAJ2svwD/nK0A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/nK0A/62/ - AP+bqwCPAAAAAAAAAAAAAAAAAAAAAAAAAACfvwAInbAAz6q8AP+crQD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/nK0A/6u9AP+crQDFf78ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJepABqfsgDfqbwA/5yt - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/nK0A/6q9AP+gsgDVmbIAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAlacAHKGxAM2svwD/nq8A/5ytAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+crQD/n7AA/62/AP+hsgDFlqIAFgAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACNqQAIoLEAm6e5AP+nuQD/na4A/52tAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/5ytAP+drgD/p7kA/6W3AP+gsgCTZpkABAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACerwBGobMAx6e5 - AP+puwD/obMA/56vAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/nq8A/6KzAP+qvAD/prgA/6C0 - AMOcsABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAACisQBIobEApaCxAOOerwD7nq8A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/nq8A/52w - APmgsADhoLMAn6OyAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAChuwASorQAZqCyALeerwDvnrAA/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52uAP+drgD/na4A/52u - AP+esAD/n7AA66CzALOitQBgqrsADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAA/+AAAAAAA///gAAAAAAA//4AAAAAAAA//AAAAAAAAB/4AAAAAAAAD/AAAAAAAAAH4AAAAAAA - AAPgAAAAAAAAA8AAAAAAAAABwAAAAAAAAAGAAAAAAAAAAIAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAgAAAAAAA - AACAAAAAAAAAAMAAAAAAAAABwAAAAAAAAAHgAAAAAAAAA+AAAAAAAAAD8AAAAAAAAAf4AAAAAAAAD/wA - AAAAAAAf/gAAAAAAAD//gAAAAAAA///gAAAAAAP///wAAAAAH/8= - - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/Old/ShopProductForm.Designer.cs b/TEMUKJD/KJDForms/ProductForms/Old/ShopProductForm.Designer.cs deleted file mode 100644 index fc2c333..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/ShopProductForm.Designer.cs +++ /dev/null @@ -1,608 +0,0 @@ -namespace TemuKJD.KJDForms.ProductForms -{ - partial class ShopProductForm - { - /// - /// 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(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.buttonEx1 = new TemuKJD.UserControls.ButtonEx(); - this.ucGroupBoxEx3 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.btnStop = new TemuKJD.UserControls.ButtonEx(); - this.btnDelOffSale = new TemuKJD.UserControls.ButtonEx(); - this.btnDelOnSale = new TemuKJD.UserControls.ButtonEx(); - this.btnOffline = new TemuKJD.UserControls.ButtonEx(); - this.btnOnline = new TemuKJD.UserControls.ButtonEx(); - this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.btnGetProductCount = new TemuKJD.UserControls.ButtonEx(); - this.btnRefreshShop = new TemuKJD.UserControls.ButtonEx(); - this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.txtKeywords = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.label1 = new System.Windows.Forms.Label(); - this.chkNotOperateChangeDays = new System.Windows.Forms.CheckBox(); - this.chkNotOperateHasSales = new System.Windows.Forms.CheckBox(); - this.txtNotOperateChangeDays = new System.Windows.Forms.TextBox(); - this.label2 = new System.Windows.Forms.Label(); - this.txtOperateCount = new System.Windows.Forms.TextBox(); - this.label12 = new System.Windows.Forms.Label(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colAuthStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colLoginStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colCanUse = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colDetail = new System.Windows.Forms.DataGridViewLinkColumn(); - this.colOnSaleCount = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colOffSaleCount = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colOperationCount = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.btnFailedDetail = new TemuKJD.UserControls.ButtonEx(); - this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - this.ucGroupBoxEx3.SuspendLayout(); - this.ucGroupBoxEx1.SuspendLayout(); - this.ucGroupBoxEx2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); - this.splitContainer2.Panel1.SuspendLayout(); - this.splitContainer2.Panel2.SuspendLayout(); - this.splitContainer2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgvShop)).BeginInit(); - 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.buttonEx1); - this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx3); - this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx1); - this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx2); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.splitContainer2); - this.splitContainer1.Size = new System.Drawing.Size(933, 637); - this.splitContainer1.SplitterDistance = 120; - this.splitContainer1.TabIndex = 378; - // - // buttonEx1 - // - this.buttonEx1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.buttonEx1.Cursor = System.Windows.Forms.Cursors.Hand; - this.buttonEx1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.buttonEx1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.buttonEx1.ForeColor = System.Drawing.Color.White; - this.buttonEx1.Location = new System.Drawing.Point(842, 11); - this.buttonEx1.Margin = new System.Windows.Forms.Padding(2); - this.buttonEx1.Name = "buttonEx1"; - this.buttonEx1.Size = new System.Drawing.Size(80, 26); - this.buttonEx1.TabIndex = 404; - this.buttonEx1.Text = "测试延迟发货"; - this.buttonEx1.UseVisualStyleBackColor = false; - this.buttonEx1.Visible = false; - this.buttonEx1.Click += new System.EventHandler(this.buttonEx1_Click); - // - // ucGroupBoxEx3 - // - 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.btnStop); - this.ucGroupBoxEx3.Controls.Add(this.btnDelOffSale); - this.ucGroupBoxEx3.Controls.Add(this.btnDelOnSale); - this.ucGroupBoxEx3.Controls.Add(this.btnOffline); - this.ucGroupBoxEx3.Controls.Add(this.btnOnline); - this.ucGroupBoxEx3.Location = new System.Drawing.Point(506, 2); - this.ucGroupBoxEx3.Name = "ucGroupBoxEx3"; - this.ucGroupBoxEx3.Size = new System.Drawing.Size(200, 120); - this.ucGroupBoxEx3.TabIndex = 396; - this.ucGroupBoxEx3.TabStop = false; - this.ucGroupBoxEx3.Text = "操作"; - // - // btnStop - // - this.btnStop.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStop.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnStop.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnStop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnStop.ForeColor = System.Drawing.Color.White; - this.btnStop.Location = new System.Drawing.Point(21, 83); - this.btnStop.Margin = new System.Windows.Forms.Padding(2); - this.btnStop.Name = "btnStop"; - this.btnStop.Size = new System.Drawing.Size(80, 26); - this.btnStop.TabIndex = 379; - this.btnStop.Text = "停止操作"; - this.btnStop.UseVisualStyleBackColor = false; - this.btnStop.Click += new System.EventHandler(this.btnStop_Click); - // - // btnDelOffSale - // - this.btnDelOffSale.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnDelOffSale.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnDelOffSale.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnDelOffSale.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnDelOffSale.ForeColor = System.Drawing.Color.White; - this.btnDelOffSale.Location = new System.Drawing.Point(21, 53); - this.btnDelOffSale.Margin = new System.Windows.Forms.Padding(2); - this.btnDelOffSale.Name = "btnDelOffSale"; - this.btnDelOffSale.Size = new System.Drawing.Size(80, 26); - this.btnDelOffSale.TabIndex = 378; - this.btnDelOffSale.Text = "删除仓库"; - this.btnDelOffSale.UseVisualStyleBackColor = false; - this.btnDelOffSale.Click += new System.EventHandler(this.btnDelOffSale_Click); - // - // btnDelOnSale - // - this.btnDelOnSale.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnDelOnSale.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnDelOnSale.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnDelOnSale.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnDelOnSale.ForeColor = System.Drawing.Color.White; - this.btnDelOnSale.Location = new System.Drawing.Point(105, 53); - this.btnDelOnSale.Margin = new System.Windows.Forms.Padding(2); - this.btnDelOnSale.Name = "btnDelOnSale"; - this.btnDelOnSale.Size = new System.Drawing.Size(80, 26); - this.btnDelOnSale.TabIndex = 377; - this.btnDelOnSale.Text = "删除在售"; - this.btnDelOnSale.UseVisualStyleBackColor = false; - this.btnDelOnSale.Click += new System.EventHandler(this.btnDelOnSale_Click); - // - // btnOffline - // - this.btnOffline.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnOffline.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnOffline.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnOffline.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnOffline.ForeColor = System.Drawing.Color.White; - this.btnOffline.Location = new System.Drawing.Point(105, 23); - this.btnOffline.Margin = new System.Windows.Forms.Padding(2); - this.btnOffline.Name = "btnOffline"; - this.btnOffline.Size = new System.Drawing.Size(80, 26); - this.btnOffline.TabIndex = 376; - this.btnOffline.Text = "商品下架"; - this.btnOffline.UseVisualStyleBackColor = false; - this.btnOffline.Click += new System.EventHandler(this.btnOffline_Click); - // - // btnOnline - // - this.btnOnline.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnOnline.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnOnline.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnOnline.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnOnline.ForeColor = System.Drawing.Color.White; - this.btnOnline.Location = new System.Drawing.Point(21, 23); - this.btnOnline.Margin = new System.Windows.Forms.Padding(2); - this.btnOnline.Name = "btnOnline"; - this.btnOnline.Size = new System.Drawing.Size(80, 26); - this.btnOnline.TabIndex = 375; - this.btnOnline.Text = "商品上架"; - this.btnOnline.UseVisualStyleBackColor = false; - this.btnOnline.Click += new System.EventHandler(this.btnOnline_Click); - // - // ucGroupBoxEx1 - // - 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.btnGetProductCount); - this.ucGroupBoxEx1.Controls.Add(this.btnRefreshShop); - this.ucGroupBoxEx1.Location = new System.Drawing.Point(2, 2); - this.ucGroupBoxEx1.Name = "ucGroupBoxEx1"; - this.ucGroupBoxEx1.Size = new System.Drawing.Size(144, 120); - this.ucGroupBoxEx1.TabIndex = 393; - this.ucGroupBoxEx1.TabStop = false; - this.ucGroupBoxEx1.Text = "店铺刷新"; - // - // btnGetProductCount - // - this.btnGetProductCount.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnGetProductCount.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnGetProductCount.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnGetProductCount.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnGetProductCount.ForeColor = System.Drawing.Color.White; - this.btnGetProductCount.Location = new System.Drawing.Point(16, 67); - this.btnGetProductCount.Margin = new System.Windows.Forms.Padding(2); - this.btnGetProductCount.Name = "btnGetProductCount"; - this.btnGetProductCount.Size = new System.Drawing.Size(112, 26); - this.btnGetProductCount.TabIndex = 375; - this.btnGetProductCount.Text = "获取商品数量"; - this.btnGetProductCount.UseVisualStyleBackColor = false; - this.btnGetProductCount.Click += new System.EventHandler(this.btnGetProduct_Click); - // - // btnRefreshShop - // - this.btnRefreshShop.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRefreshShop.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnRefreshShop.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnRefreshShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnRefreshShop.ForeColor = System.Drawing.Color.White; - this.btnRefreshShop.Location = new System.Drawing.Point(16, 30); - this.btnRefreshShop.Margin = new System.Windows.Forms.Padding(2); - this.btnRefreshShop.Name = "btnRefreshShop"; - this.btnRefreshShop.Size = new System.Drawing.Size(112, 26); - this.btnRefreshShop.TabIndex = 374; - this.btnRefreshShop.Text = "刷新店铺状态"; - this.btnRefreshShop.UseVisualStyleBackColor = false; - this.btnRefreshShop.Click += new System.EventHandler(this.btnRefreshShop_Click); - // - // ucGroupBoxEx2 - // - this.ucGroupBoxEx2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.ucGroupBoxEx2.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND; - this.ucGroupBoxEx2.Controls.Add(this.txtKeywords); - this.ucGroupBoxEx2.Controls.Add(this.label1); - this.ucGroupBoxEx2.Controls.Add(this.chkNotOperateChangeDays); - this.ucGroupBoxEx2.Controls.Add(this.chkNotOperateHasSales); - this.ucGroupBoxEx2.Controls.Add(this.txtNotOperateChangeDays); - this.ucGroupBoxEx2.Controls.Add(this.label2); - this.ucGroupBoxEx2.Controls.Add(this.txtOperateCount); - this.ucGroupBoxEx2.Controls.Add(this.label12); - this.ucGroupBoxEx2.Location = new System.Drawing.Point(146, 2); - this.ucGroupBoxEx2.Name = "ucGroupBoxEx2"; - this.ucGroupBoxEx2.Size = new System.Drawing.Size(360, 120); - this.ucGroupBoxEx2.TabIndex = 395; - this.ucGroupBoxEx2.TabStop = false; - this.ucGroupBoxEx2.Text = "参数"; - // - // txtKeywords - // - // - // - // - this.txtKeywords.Border.Class = "TextBoxBorder"; - this.txtKeywords.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txtKeywords.Location = new System.Drawing.Point(249, 25); - this.txtKeywords.Multiline = true; - this.txtKeywords.Name = "txtKeywords"; - this.txtKeywords.PreventEnterBeep = true; - this.txtKeywords.Size = new System.Drawing.Size(96, 84); - this.txtKeywords.TabIndex = 406; - this.txtKeywords.WatermarkText = "仅下架或删除包含列表关键词的商品\r\n一行一个"; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(177, 28); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(68, 17); - this.label1.TabIndex = 405; - this.label1.Text = "包含关键词"; - // - // chkNotOperateChangeDays - // - this.chkNotOperateChangeDays.AutoSize = true; - this.chkNotOperateChangeDays.Checked = true; - this.chkNotOperateChangeDays.CheckState = System.Windows.Forms.CheckState.Checked; - this.chkNotOperateChangeDays.Location = new System.Drawing.Point(16, 59); - this.chkNotOperateChangeDays.Name = "chkNotOperateChangeDays"; - this.chkNotOperateChangeDays.Size = new System.Drawing.Size(15, 14); - this.chkNotOperateChangeDays.TabIndex = 403; - this.chkNotOperateChangeDays.UseVisualStyleBackColor = true; - this.chkNotOperateChangeDays.CheckedChanged += new System.EventHandler(this.chkNotOperateChangeDays_CheckedChanged); - // - // chkNotOperateHasSales - // - this.chkNotOperateHasSales.AutoSize = true; - this.chkNotOperateHasSales.Checked = true; - this.chkNotOperateHasSales.CheckState = System.Windows.Forms.CheckState.Checked; - this.chkNotOperateHasSales.Location = new System.Drawing.Point(16, 86); - this.chkNotOperateHasSales.Name = "chkNotOperateHasSales"; - this.chkNotOperateHasSales.Size = new System.Drawing.Size(123, 21); - this.chkNotOperateHasSales.TabIndex = 403; - this.chkNotOperateHasSales.Text = "商品有销量不清理"; - this.chkNotOperateHasSales.UseVisualStyleBackColor = true; - this.chkNotOperateHasSales.CheckedChanged += new System.EventHandler(this.chkNotOperateHasSales_CheckedChanged); - // - // txtNotOperateChangeDays - // - this.txtNotOperateChangeDays.Location = new System.Drawing.Point(64, 55); - this.txtNotOperateChangeDays.Name = "txtNotOperateChangeDays"; - this.txtNotOperateChangeDays.Size = new System.Drawing.Size(36, 23); - this.txtNotOperateChangeDays.TabIndex = 402; - this.txtNotOperateChangeDays.Text = "7"; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(33, 58); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(172, 17); - this.label2.TabIndex = 397; - this.label2.Text = "跳过 天内修改过的商品"; - // - // txtOperateCount - // - this.txtOperateCount.Location = new System.Drawing.Point(71, 25); - this.txtOperateCount.Name = "txtOperateCount"; - this.txtOperateCount.Size = new System.Drawing.Size(79, 23); - this.txtOperateCount.TabIndex = 376; - this.txtOperateCount.Text = "999999"; - // - // label12 - // - this.label12.AutoSize = true; - this.label12.Location = new System.Drawing.Point(13, 28); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(56, 17); - this.label12.TabIndex = 378; - this.label12.Text = "处理数量"; - this.label12.Click += new System.EventHandler(this.label12_Click); - // - // splitContainer2 - // - this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; - this.splitContainer2.Location = new System.Drawing.Point(0, 0); - this.splitContainer2.Name = "splitContainer2"; - this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; - // - // splitContainer2.Panel1 - // - this.splitContainer2.Panel1.Controls.Add(this.dgvShop); - this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 4, 4, 0); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Controls.Add(this.btnFailedDetail); - this.splitContainer2.Panel2.Controls.Add(this.statusBar); - this.splitContainer2.Size = new System.Drawing.Size(933, 513); - this.splitContainer2.SplitterDistance = 483; - this.splitContainer2.TabIndex = 7; - // - // dgvShop - // - this.dgvShop.AllowUserToAddRows = false; - this.dgvShop.AllowUserToDeleteRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - 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.colShopId, - this.colShopName, - this.colAuthStatus, - this.colLoginStatus, - this.colCanUse, - this.colDetail, - this.colOnSaleCount, - this.colOffSaleCount, - this.colOperationCount, - this.colStatus}); - this.dgvShop.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvShop.Location = new System.Drawing.Point(4, 4); - this.dgvShop.Name = "dgvShop"; - this.dgvShop.ReadOnly = true; - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvShop.RowsDefaultCellStyle = dataGridViewCellStyle3; - this.dgvShop.RowTemplate.Height = 23; - this.dgvShop.Size = new System.Drawing.Size(925, 479); - this.dgvShop.TabIndex = 6; - this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick); - // - // colSelect - // - this.colSelect.FillWeight = 50F; - 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 = 41; - // - // colShopId - // - this.colShopId.HeaderText = "店铺Id"; - this.colShopId.Name = "colShopId"; - this.colShopId.ReadOnly = true; - this.colShopId.Visible = false; - this.colShopId.Width = 150; - // - // colShopName - // - this.colShopName.HeaderText = "店铺名称"; - this.colShopName.Name = "colShopName"; - this.colShopName.ReadOnly = true; - this.colShopName.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colShopName.Width = 250; - // - // colAuthStatus - // - this.colAuthStatus.HeaderText = "授权状态"; - this.colAuthStatus.Name = "colAuthStatus"; - this.colAuthStatus.ReadOnly = true; - this.colAuthStatus.Width = 68; - // - // colLoginStatus - // - this.colLoginStatus.HeaderText = "登录状态"; - this.colLoginStatus.Name = "colLoginStatus"; - this.colLoginStatus.ReadOnly = true; - this.colLoginStatus.Width = 68; - // - // colCanUse - // - this.colCanUse.HeaderText = "可用"; - this.colCanUse.Name = "colCanUse"; - this.colCanUse.ReadOnly = true; - this.colCanUse.Width = 50; - // - // colDetail - // - this.colDetail.HeaderText = "查看详情"; - this.colDetail.Name = "colDetail"; - this.colDetail.ReadOnly = true; - this.colDetail.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colDetail.Visible = false; - this.colDetail.Width = 90; - // - // colOnSaleCount - // - this.colOnSaleCount.HeaderText = "出售中"; - this.colOnSaleCount.Name = "colOnSaleCount"; - this.colOnSaleCount.ReadOnly = true; - this.colOnSaleCount.Width = 80; - // - // colOffSaleCount - // - this.colOffSaleCount.HeaderText = "仓库中"; - this.colOffSaleCount.Name = "colOffSaleCount"; - this.colOffSaleCount.ReadOnly = true; - this.colOffSaleCount.Width = 80; - // - // colOperationCount - // - this.colOperationCount.HeaderText = "操作数量"; - this.colOperationCount.Name = "colOperationCount"; - this.colOperationCount.ReadOnly = true; - // - // colStatus - // - this.colStatus.HeaderText = "操作状态"; - this.colStatus.Name = "colStatus"; - this.colStatus.ReadOnly = true; - this.colStatus.Width = 200; - // - // btnFailedDetail - // - this.btnFailedDetail.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnFailedDetail.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnFailedDetail.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnFailedDetail.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnFailedDetail.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnFailedDetail.ForeColor = System.Drawing.Color.White; - this.btnFailedDetail.Location = new System.Drawing.Point(850, -3); - this.btnFailedDetail.Margin = new System.Windows.Forms.Padding(2); - this.btnFailedDetail.Name = "btnFailedDetail"; - this.btnFailedDetail.Size = new System.Drawing.Size(80, 26); - this.btnFailedDetail.TabIndex = 376; - this.btnFailedDetail.Text = "失败详情"; - this.btnFailedDetail.UseVisualStyleBackColor = false; - this.btnFailedDetail.Visible = false; - this.btnFailedDetail.Click += new System.EventHandler(this.btnFailedDetail_Click); - // - // 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(933, 26); - this.statusBar.TabIndex = 2; - // - // ShopProductForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(933, 637); - this.Controls.Add(this.splitContainer1); - this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); - this.Name = "ShopProductForm"; - this.Text = "ShopProductForm"; - this.Load += new System.EventHandler(this.ShopProductForm_Load); - this.VisibleChanged += new System.EventHandler(this.ShopProductForm_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.ucGroupBoxEx1.ResumeLayout(false); - this.ucGroupBoxEx2.ResumeLayout(false); - this.ucGroupBoxEx2.PerformLayout(); - this.splitContainer2.Panel1.ResumeLayout(false); - this.splitContainer2.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); - this.splitContainer2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.dgvShop)).EndInit(); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.SplitContainer splitContainer1; - private UserComponent.UcGroupBoxEx ucGroupBoxEx1; - private UserControls.ButtonEx btnRefreshShop; - private UserComponent.UcGroupBoxEx ucGroupBoxEx2; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.TextBox txtOperateCount; - private System.Windows.Forms.Label label12; - private UserComponent.DataGridViewEx dgvShop; - private UserControls.ButtonEx btnGetProductCount; - private UserComponent.UcGroupBoxEx ucGroupBoxEx3; - private System.Windows.Forms.CheckBox chkNotOperateHasSales; - private System.Windows.Forms.TextBox txtNotOperateChangeDays; - private UserControls.ButtonEx btnDelOffSale; - private UserControls.ButtonEx btnDelOnSale; - private UserControls.ButtonEx btnOffline; - private UserControls.ButtonEx btnOnline; - private System.Windows.Forms.SplitContainer splitContainer2; - private UserControls.StatusBarUserControl statusBar; - private UserControls.ButtonEx btnFailedDetail; - private UserControls.ButtonEx btnStop; - private UserControls.ButtonEx buttonEx1; - private System.Windows.Forms.CheckBox chkNotOperateChangeDays; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopId; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopName; - private System.Windows.Forms.DataGridViewTextBoxColumn colAuthStatus; - private System.Windows.Forms.DataGridViewTextBoxColumn colLoginStatus; - private System.Windows.Forms.DataGridViewCheckBoxColumn colCanUse; - private System.Windows.Forms.DataGridViewLinkColumn colDetail; - private System.Windows.Forms.DataGridViewTextBoxColumn colOnSaleCount; - private System.Windows.Forms.DataGridViewTextBoxColumn colOffSaleCount; - private System.Windows.Forms.DataGridViewTextBoxColumn colOperationCount; - private System.Windows.Forms.DataGridViewTextBoxColumn colStatus; - private DevComponents.DotNetBar.Controls.TextBoxX txtKeywords; - private System.Windows.Forms.Label label1; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/Old/ShopProductForm.cs b/TEMUKJD/KJDForms/ProductForms/Old/ShopProductForm.cs deleted file mode 100644 index 4702af2..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/ShopProductForm.cs +++ /dev/null @@ -1,1619 +0,0 @@ -using AllBase; -using AllBase.Helper; -using AllBase.Model.Result; -using CefSharp.WinForms; -using TemuKJD.Extension; -using TemuKJD.KJDForms.BaseForms; -using NaiBa.CefHelper; -using NaiBa.CefHelper.Handler; -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.Linq; -using System.Text; -using System.Text.RegularExpressions; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; -using Work.BLL.Product; -using Work.DouyinApiClass; - -namespace TemuKJD.KJDForms.ProductForms -{ - public partial class ShopProductForm : BaseForm - { - ChromiumWebBrowser webBrowser = null; - private int operateCount = 999999; - private List keywords = null; - private CheckBox chkSelectAll = null; - private List lstShopId = new List(); - public string FailedMessages = ""; - public bool isNotOperateChangeDays = true; - public bool isNotOperateHasSales = true; - public DateTime notOperateChangeDays = DateTime.Now.Date.AddDays(-7); - public long notOperateChangeDaysTick = 0; - public List lstProductIdHasSales = new List(); - public List lstGetSalesSuccesShop = new List(); - public ShopLoginInfo currentShop = null; - public bool isReadShopSales = false; - ShopProductBLL shopProductBLL = new ShopProductBLL(); - CancellationTokenSource cancellationTokenSource = null; - List lstOperateTask = new List(); - - public ShopProductForm() - { - InitializeComponent(); - } - - private void btnGetProduct_Click(object sender, EventArgs e) - { - if (lstShopId.Count == 0) - { - BaseMsgForm.ShowInfo("请选择要获取商品数量的店铺"); - return; - } - this.btnGetProductCount.Enabled = false; - foreach (DataGridViewRow row in dgvShop.Rows) - { - if (lstShopId.Contains(row.Cells["colShopId"]?.Value)) - row.Cells["colStatus"].Value = ""; - } - Task.Run(() => - { - GetShopProduct(); - - Invoke(new Action(() => - { - btnGetProductCount.Enabled = true; - BaseMsgForm.ShowInfo("商品数量获取完成"); - })); - }); - } - - void GetShopProduct(bool isShowProgress = true) - { - int i = 0; - var shopList = GlobalConfig.ShopLoginList.Where(s => s.ApiAuthStatus == "授权成功" && lstShopId.Contains(s.ShopId)); - foreach (var shop in shopList) - { - this.Invoke(new Action(() => - { - i++; - var total = shopList.Count(); - - if (isShowProgress) - { - this.statusBar.lblTaskStatus.Text = "正在获取..."; - this.statusBar.pgbTaskProgress.Value = i; - this.statusBar.pgbTaskProgress.Text = i + "/" + total; - this.statusBar.pgbTaskProgress.Maximum = total; - } - })); - - GetShopProduct(shop); - Thread.Sleep(Randomx.GetId(50, 150)); - } - if (shopList.Count() > 0) - StartUp.SaveLocalShopLoginInfo(); - Invoke(new Action(() => - { - if (isShowProgress) - this.statusBar.lblTaskStatus.Text = "获取完成"; - })); - } - - void GetShopProduct(ShopLoginInfo shop, bool isShowResult = true) - { - DataGridViewRow row = null; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) - { - if (isShowResult) - row.Cells["colStatus"].Value = "正在获取店铺商品数量"; - } - })); - - // 读取在售商品数量 - var resultOnline = shopProductBLL.GetShopProductListData(shop, 0, 1, 10); - if (resultOnline.Contains("\"code\":10000")) - { - if (row != null) - { - var text = BaseRegex.GetStringJson(ref resultOnline, "total"); - shop.OnlineProductCount = text.ParseToInt(); - - Invoke(new Action(() => - { - row.Cells["colOnSaleCount"].Value = string.IsNullOrEmpty(text) ? "" : text; - })); - } - } - // 读取下架商品数量 - var resultOffline = shopProductBLL.GetShopProductListData(shop, 1, 1, 10); - if (resultOffline.Contains("\"code\":10000")) - { - if (row != null) - { - var text = BaseRegex.GetStringJson(ref resultOffline, "total"); - shop.OfflineProductCount = text.ParseToInt(); - - Invoke(new Action(() => - { - row.Cells["colOffSaleCount"].Value = string.IsNullOrEmpty(text) ? "" : text; - })); - } - } - - string resultShowText = ""; - if (resultOnline.Contains("\"code\":10000") && resultOffline.Contains("\"code\":10000")) - { - resultShowText = "商品数量获取成功"; - } - else - { - resultShowText = "商品数量获取失败"; - if (!resultOnline.Contains("\"code\":10000")) - { - var html = BaseRegex.GetStringJson(ref resultOnline, "sub_msg"); - if (string.IsNullOrEmpty(html)) - html = resultOnline; - resultShowText += ",获取在售商品错误:" + html; - } - if (!resultOffline.Contains("\"code\":10000")) - { - var html = BaseRegex.GetStringJson(ref resultOffline, "sub_msg"); - if (string.IsNullOrEmpty(html)) - html = resultOffline; - resultShowText += ",获取仓库商品错误:" + html; - } - } - Invoke(new Action(() => - { - if (row != null) - { - if (isShowResult) - row.Cells["colStatus"].Value = resultShowText; - } - })); - } - - private void ShopProductForm_Load(object sender, EventArgs e) - { - chkSelectAll = dgvShop.Columns["colSelect"].AddHeaderCheckBox(HorizontalAlignment.Right, 0, 0, null, null, false); - chkSelectAll.Width = chkSelectAll.Height = 13; - chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged; - } - - private void ShopProductForm_VisibleChanged(object sender, EventArgs e) - { - if (Visible == true) - RefreshShop(); - } - - private void RefreshShop() - { - // 更新选中的上货店铺Id - lstShopId = lstShopId.Where(id => GlobalConfig.ShopLoginList.Any(s => s.ShopId == id && s.LoginStatus == "已授权")).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) - { - BindShop(shopEntity); - } - } - - private void BindShop(ShopLoginInfo shopEntity) - { - var row = dgvShop.Rows.Cast().FirstOrDefault(p => p.Cells.GetCellValueFromColumnName("colShopId").ParseToString() == shopEntity.ShopId); - if (row == null) - { - this.dgvShop.Rows.Add( - false, - shopEntity.ShopId, - shopEntity.ShopAccount, - shopEntity.ApiAuthStatus, - shopEntity.LoginStatus, - shopEntity.ApiAuthStatus == "授权成功" && shopEntity.LoginStatus == "登录成功" ? true : false, - "查看详情", - shopEntity.OnlineProductCount >= 0 ? shopEntity.OnlineProductCount.ToString() : "", - shopEntity.OfflineProductCount >= 0 ? shopEntity.OfflineProductCount.ToString() : "", - string.Empty, - string.Empty - ); - } - else - { - row.Cells["colSelect"].Value = lstShopId.Contains(shopEntity.ShopId); - row.Cells["colShopName"].Value = shopEntity.ShopAccount; - row.Cells["colAuthStatus"].Value = shopEntity.ApiAuthStatus; - row.Cells["colLoginStatus"].Value = shopEntity.LoginStatus; - row.Cells["colCanUse"].Value = shopEntity.ApiAuthStatus == "授权成功" && shopEntity.LoginStatus == "登录成功" ? true : false; - row.Cells["colOnSaleCount"].Value = shopEntity.OnlineProductCount >= 0 ? shopEntity.OnlineProductCount.ToString() : ""; - row.Cells["colOffSaleCount"].Value = shopEntity.OfflineProductCount >= 0 ? shopEntity.OfflineProductCount.ToString() : ""; - } - } - - private void chkSelectAll_CheckedChanged(object sender, EventArgs e) - { - if (!chkSelectAll.Checked) - { - lstShopId.Clear(); - foreach (DataGridViewRow row in dgvShop.Rows) - { - row.Cells["colSelect"].Value = false; - } - } - else - { - lstShopId.Clear(); - var list = GlobalConfig.ShopLoginList.Where(s => s.ApiAuthStatus == "授权成功" && s.LoginStatus == "登录成功").Select(ss => ss.ShopId); - lstShopId.AddRange(list); - foreach (DataGridViewRow row in dgvShop.Rows) - { - if (list.Any(l => l == row.Cells["colShopId"]?.Value?.ToString())) - row.Cells["colSelect"].Value = true; - } - } - } - - private void btnRefreshShop_Click(object sender, EventArgs e) - { - RefreshShop(); - } - - private void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - string headerText = dgvShop.Columns[e.ColumnIndex].HeaderText; - long shopId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToLong(); - string shopName = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ToString(); - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId.ToString()); - switch (headerText) - { - case "操作": - case "选": - if (dgvShop.Rows[e.RowIndex].Cells["colCanuse"].Value.ParseToBool()) - { - dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value = !dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value.ParseToBool(); - if (dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value.ParseToBool()) - lstShopId.Add(shopId.ToString()); - else - lstShopId.Remove(shopId.ToString()); - } - else - { - BaseMsgForm.ShowInfo("店铺未授权或未登录"); - } - break; - } - } - - /// - /// 商品上架 - /// - /// - /// - private void btnOnline_Click(object sender, EventArgs e) - { - lstOperateTask.Clear(); - - if (lstShopId.Count == 0) - { - BaseMsgForm.ShowInfo("请选择要上架商品的店铺"); - return; - } - try - { - this.operateCount = Convert.ToInt32(txtOperateCount.Text); - this.keywords = txtKeywords.Text.Split(new string[] { ",", "\r\n" }, StringSplitOptions.RemoveEmptyEntries).ToList(); - } - catch (Exception ex) - { - BaseMsgForm.ShowInfo("请输入正确的参数"); - return; - } - FailedMessages = ""; - this.btnFailedDetail.Visible = false; - this.btnOnline.Enabled = this.btnOffline.Enabled = this.btnDelOffSale.Enabled = this.btnDelOnSale.Enabled = false; - foreach (DataGridViewRow row in dgvShop.Rows) - { - if (lstShopId.Contains(row.Cells["colShopId"].Value?.ToString())) - row.Cells["colStatus"].Value = ""; - } - if (isNotOperateChangeDays) - notOperateChangeDaysTick = BaseClass.DateTimeToTimestampSeconds(notOperateChangeDays); - else - notOperateChangeDaysTick = 0; - - int n = 0; - - cancellationTokenSource = new CancellationTokenSource(); - Task.Run(() => - { - foreach (var shopId in lstShopId) - { - int shopOperatecount = operateCount; - this.Invoke(new Action(() => - { - n++; - var total = lstShopId.Count(); - - this.statusBar.lblTaskStatus.Text = "正在上架..."; - this.statusBar.pgbTaskProgress.Value = n; - this.statusBar.pgbTaskProgress.Text = n + "/" + total; - this.statusBar.pgbTaskProgress.Maximum = total; - })); - - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId); - if (shop == null) - continue; - - DataGridViewRow row = null; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = "正在上架商品"; } - })); - - var t = Task.Run(() => - { - // 显示商品数 - GetShopProduct(shop, false); - - int totalNumBase = shop.OfflineProductCount; // 上架开始时的未上架商品数 - int totalNum = shop.OfflineProductCount; // 未上架商品数 - int setNum = 0; // 上架商品数量(因关键词存在因此少于或等于商品循环计数) - int currentNum = 0; // 商品循环计数 - int page = 0; - int pageSize = 50; - string onSaleMessage = ""; - List productList = new List(); - - var waitOnSaleHtml = ""; - - while ((currentNum < shopOperatecount && currentNum < totalNumBase) || page == 0) - { - page += 1; - currentNum += pageSize; - if (cancellationTokenSource.IsCancellationRequested) - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { Invoke(new Action(() => { row.Cells["colStatus"].Value = "上架中断"; })); } - break; - } - - // 获取下架商品列表 - waitOnSaleHtml = shopProductBLL.GetShopProductListData(shop, 1, page, pageSize, notOperateChangeDaysTick); - Thread.Sleep(Randomx.GetId(500, 1000)); - - if (waitOnSaleHtml.Contains("\"code\":10000")) - { - totalNum = BaseRegex.GetIntJson(ref waitOnSaleHtml, "total"); - shop.OfflineProductCount = totalNum; - - if (shopOperatecount > totalNumBase) - shopOperatecount = totalNumBase; - if (currentNum > totalNumBase) - currentNum = totalNumBase; - - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) - { - row.Cells["colOffSaleCount"].Value = totalNumBase; - } - })); - if (totalNum == 0) - { - onSaleMessage = "上架结束,店铺没有未上架的商品"; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = onSaleMessage; } - })); - break; - } - - try - { - JObject jObj = JObject.Parse(waitOnSaleHtml); - var jObjDataStr = jObj["data"]?["data"]?.ToString(); - if (!string.IsNullOrEmpty(jObjDataStr)) - { - var addList = JsonHelper.DeserializeJsonToList(jObjDataStr); - // 筛选掉审核未通过或封禁的商品 - if (addList != null) - { - addList = addList.Where(p => p.check_status != 4 && p.check_status != 5).ToList(); - productList.AddRange(addList); - } - } - onSaleMessage = "正在获取商品,第 " + currentNum + " 件商品,共 " + shopOperatecount + " 件商品"; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = onSaleMessage; } - })); - } - catch (Exception ex) - { - BaseMsgForm.ShowError("获取商品发生错误:" + ex.Message); - } - } - else - { - var failMessage = BaseRegex.GetStringJson(ref waitOnSaleHtml, "sub_msg"); - if (string.IsNullOrEmpty(failMessage)) - failMessage = waitOnSaleHtml; - onSaleMessage = ("上架失败," + failMessage).TrimEnd(','); - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = onSaleMessage; } - })); - Thread.Sleep(1000); - } - } - - // 有关键词的过滤符合关键词 - if (keywords.Any()) - productList = productList.Where(p => keywords.Any(key => p.name.Contains(key))).ToList(); - - // 操作数大于满足筛选条件商品数时,操作数改为商品数 - if (shopOperatecount > productList.Count) - shopOperatecount = productList.Count; - - string list = ""; - for (int i = 0; i < productList.Count && i < shopOperatecount; i++) - { - if (cancellationTokenSource.IsCancellationRequested) - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { Invoke(new Action(() => { row.Cells["colStatus"].Value = "上架中断"; })); } - break; - } - - if (shop.PayStatus != 1 && shop.TrialOperateCount >= 100) - { - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = "当前为试用版,请购买专业版"; } - })); - break; - } - - Invoke(new Action(() => - { - onSaleMessage = "正在上架,第 " + (i + 1) + " 件商品,共 " + shopOperatecount + " 件商品"; - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = onSaleMessage; } - })); - Thread.Sleep(50); - - var product = productList[i]; - setNum++; - list += product.product_id + ","; - if (i % 1 == 0 || i == shopOperatecount - 1) - { - Thread.Sleep(Randomx.GetId(100, 300)); - list = list.TrimEnd(','); - var onSaleResultCode = shopProductBLL.OnSaleProduct(shop, list); - if (!onSaleResultCode.Contains("\"code\":10000")) - { - Thread.Sleep(Randomx.GetId(1000, 3000)); - onSaleResultCode = shopProductBLL.OnSaleProduct(shop, list); - } - Thread.Sleep(Randomx.GetId(100, 300)); - if (onSaleResultCode.Contains("\"code\":10000")) - { - //var matches = BaseRegex.GetMatchRegex(ref onSaleResultCode, "\"data\":\\d{1}([\\s\\S]+?)}"); - //foreach (Match m in matches) - //{ - // var mStr = m.ToString(); - // if (mStr.Contains("\"success\":false")) - // { - // var id = BaseRegex.GetLongJson(ref mStr, "data"); - // var msg = BaseRegex.GetStringJson(ref mStr, "sub_msg"); - // FailedMessages += "店铺:" + shop.ShopName + ",商品id:" + id + ",错误信息:" + msg + "\r\n"; - // } - //} - updateTrailOperationCount(shop); - onSaleMessage = "上架中,第 " + setNum + " 件商品,共 " + shopOperatecount + " 件商品"; - Thread.Sleep(Randomx.GetId(800, 1600)); - } - else - { - var failMessage = BaseRegex.GetStringJson(ref onSaleResultCode, "sub_msg"); - if (string.IsNullOrEmpty(failMessage)) - failMessage = BaseRegex.GetStringJson(ref onSaleResultCode, "status_reason"); - if (string.IsNullOrEmpty(failMessage)) - failMessage = onSaleResultCode; - FailedMessages += "店铺:" + shop.ShopAccount + ",商品id:" + list + ",错误信息:" + failMessage + "\r\n"; - onSaleMessage = ("上架失败," + failMessage).TrimEnd(','); - } - list = ""; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = onSaleMessage; } - })); - if (onSaleMessage.Contains("失败")) - Thread.Sleep(1000); - Thread.Sleep(Randomx.GetId(100, 200)); - if (onSaleMessage.Contains("违规") || onSaleMessage.Contains("禁售")) - continue; - if (onSaleMessage.Contains("失败")) - continue; - if (i == shopOperatecount - 1) - { - onSaleMessage = "上架完成"; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = onSaleMessage; } - })); - } - } - - // 上架过程中更新显示仓库商品数 - if (i % 100 == 99 || i == shopOperatecount - 1) - GetShopProduct(shop, false); - } - }); - lstOperateTask.Add(t); - while (lstOperateTask.Where(ts => !ts.IsCompleted).ToList().Count >= 20) - { - Thread.Sleep(1000); - } - } - Task.WaitAll(lstOperateTask.ToArray()); - - Invoke(new Action(() => - { - this.btnOnline.Enabled = this.btnOffline.Enabled = this.btnDelOffSale.Enabled = this.btnDelOnSale.Enabled = true; - if (!cancellationTokenSource.IsCancellationRequested) - { - var text = "上架完成!"; - if (!string.IsNullOrEmpty(FailedMessages)) - { - text += "部分商品上架失败,请查看详情。"; - btnFailedDetail.Visible = true; - } - this.statusBar.lblTaskStatus.Text = text; - BaseMsgForm.ShowInfo(text); - } - else - { - var text = "上架中断!"; - if (!string.IsNullOrEmpty(FailedMessages)) - { - text += "部分商品上架失败,请查看详情。"; - btnFailedDetail.Visible = true; - } - this.statusBar.lblTaskStatus.Text = text; - BaseMsgForm.ShowInfo(text); - } - })); - }, cancellationTokenSource.Token); - } - - /// - /// 商品下架 - /// - /// - /// - private void btnOffline_Click(object sender, EventArgs e) - { - lstOperateTask.Clear(); - - if (lstShopId.Count == 0) - { - BaseMsgForm.ShowInfo("请选择要下架商品的店铺"); - return; - } - try - { - this.operateCount = Convert.ToInt32(txtOperateCount.Text); - this.keywords = txtKeywords.Text.Split(new string[] { ",", "\r\n" }, StringSplitOptions.RemoveEmptyEntries).ToList(); - } - catch (Exception ex) - { - BaseMsgForm.ShowInfo("请输入正确的参数"); - return; - } - FailedMessages = ""; - this.btnFailedDetail.Visible = false; - this.btnOnline.Enabled = this.btnOffline.Enabled = this.btnDelOffSale.Enabled = this.btnDelOnSale.Enabled = false; - foreach (DataGridViewRow row in dgvShop.Rows) - { - if (lstShopId.Contains(row.Cells["colShopId"].Value?.ToString())) - row.Cells["colStatus"].Value = ""; - } - - int n = 0; - lstProductIdHasSales.Clear(); - lstGetSalesSuccesShop.Clear(); - cancellationTokenSource = new CancellationTokenSource(); - isNotOperateHasSales = chkNotOperateHasSales.Checked; - notOperateChangeDays = DateTime.Now.Date.AddDays(0 - this.txtNotOperateChangeDays.Text.ParseToInt()); - // 只操作指定天数之前修改的商品 - if (isNotOperateChangeDays) - notOperateChangeDaysTick = BaseClass.DateTimeToTimestampSeconds(notOperateChangeDays); - else - notOperateChangeDaysTick = 0; - // todo:先读取所有店铺的符合条件商品,然后统一删除 - Dictionary dicShopOperateProductList = new Dictionary(); - - Task.Run(() => - { - foreach (var shopId in lstShopId) - { - - int shopOperateCount = operateCount; - - this.Invoke(new Action(() => - { - n++; - var total = lstShopId.Count(); - - this.statusBar.lblTaskStatus.Text = "正在下架..."; - this.statusBar.pgbTaskProgress.Value = n; - this.statusBar.pgbTaskProgress.Text = n + "/" + total; - this.statusBar.pgbTaskProgress.Maximum = total; - })); - - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId); - if (shop == null) - continue; - - DataGridViewRow row = null; - - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = "正在初始化下架商品"; } - })); - - if (cancellationTokenSource.IsCancellationRequested) - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { Invoke(new Action(() => { row.Cells["colStatus"].Value = "下架中断"; })); } - break; - } - - // 过滤有销量的商品 - if (isNotOperateHasSales) - { - if (ShopForms.ShopListForm.Instance == null) - ShopForms.ShopListForm.Instance = new KJDForms.ShopForms.ShopListForm(); - ShopForms.ShopListForm.Instance.CheckShopLogin(new string[] { shop.ShopAccount }, false); - - if (shop.LoginStatus != "登录成功") - { - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = "未登录店铺无法获取商品销量。"; } - })); - continue; - } - else - { - this.GetHasSales(shop); - - while (isReadShopSales) - { - Thread.Sleep(100); - } - if (!lstGetSalesSuccesShop.Contains(shop)) - { - Invoke(new Action(() => - { - this.btnOnline.Enabled = this.btnOffline.Enabled = this.btnDelOffSale.Enabled = this.btnDelOnSale.Enabled = true; - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = "店铺获取商品销量失败。"; } - })); - continue; - } - } - } - - var t = Task.Run(() => - { - - // 显示商品数 - GetShopProduct(shop, false); - - int totalNumBase = shop.OnlineProductCount; // 下架开始时的在售商品数 - int totalNum = shop.OnlineProductCount; // 在售商品数 - int setNum = 0; // 下架商品数量(因关键词存在因此少于或等于商品循环计数) - int currentNum = 0; // 商品循环计数 - int page = 0; - int pageSize = 50; - string offSaleMessage = ""; - List productList = new List(); - var waitOffSaleHtml = ""; - - while ((productList.Count < shopOperateCount && currentNum < totalNumBase) || page == 0) - { - page += 1; - currentNum += pageSize; - if (cancellationTokenSource.IsCancellationRequested) - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { Invoke(new Action(() => { row.Cells["colStatus"].Value = "下架中断"; })); } - break; - } - - // 获取待下架商品列表 - waitOffSaleHtml = shopProductBLL.GetShopProductListData(shop, 0, page, pageSize, notOperateChangeDaysTick); - Thread.Sleep(Randomx.GetId(500, 1000)); - - if (waitOffSaleHtml.Contains("\"code\":10000")) - { - totalNum = BaseRegex.GetIntJson(ref waitOffSaleHtml, "total"); - shop.OfflineProductCount = totalNum; - - if (shopOperateCount > totalNumBase) - shopOperateCount = totalNumBase; - if (currentNum > totalNumBase) - currentNum = totalNumBase; - - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) - { - row.Cells["colOnSaleCount"].Value = totalNumBase; - } - })); - if (totalNum == 0) - { - offSaleMessage = "下架结束,店铺没有未下架的商品"; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = offSaleMessage; } - })); - break; - } - - try - { - JObject jObj = JObject.Parse(waitOffSaleHtml); - var jObjDataStr = jObj["data"]?["data"]?.ToString(); - if (!string.IsNullOrEmpty(jObjDataStr)) - { - var addList = JsonHelper.DeserializeJsonToList(jObjDataStr); - if (addList != null) - { - // 有关键词的过滤符合关键词 - if (keywords.Any()) - addList = addList.Where(p => keywords.Any(key => p.name.Contains(key))).ToList(); - // 过滤有销量的商品 - if (isNotOperateHasSales) - addList = addList.Where(p => lstProductIdHasSales.Contains(p.product_id.ToString()) == false).ToList(); - - productList.AddRange(addList); - } - } - offSaleMessage = "已获取:" + currentNum + ",符合条件:" + productList.Count + ",在售商品获取中..."; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = offSaleMessage; } - })); - } - catch (Exception ex) - { - BaseMsgForm.ShowError("获取商品发生错误:" + ex.Message); - } - } - else - { - var failMessage = BaseRegex.GetStringJson(ref waitOffSaleHtml, "sub_msg"); - if (string.IsNullOrEmpty(failMessage)) - failMessage = waitOffSaleHtml; - offSaleMessage = ("下架失败," + failMessage).TrimEnd(','); - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = offSaleMessage; } - })); - Thread.Sleep(1000); - } - } - - // 操作数大于满足筛选条件商品数时,操作数改为商品数 - if (shopOperateCount > productList.Count) - shopOperateCount = productList.Count; - - if (productList.Count == 0) - { - offSaleMessage = "下架完成"; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = offSaleMessage; } - })); - } - - string list = ""; - for (int i = 0; i < productList.Count && i < shopOperateCount; i++) - { - if (cancellationTokenSource.IsCancellationRequested) - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { Invoke(new Action(() => { row.Cells["colStatus"].Value = "下架中断"; })); } - break; - } - - if (shop.PayStatus != 1 && shop.TrialOperateCount >= 100) - { - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = "当前为试用版,请购买专业版"; } - })); - break; - } - - Invoke(new Action(() => - { - offSaleMessage = "正在下架,第 " + (i + 1) + " 件商品,共 " + shopOperateCount + " 件商品"; - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = offSaleMessage; } - })); - Thread.Sleep(50); - - var product = productList[i]; - - var pid = product.product_id; - - setNum++; - list += product.product_id + ","; - if (i % 1 == 0 || i == shopOperateCount - 1) - { - Thread.Sleep(Randomx.GetId(100, 300)); - list = list.TrimEnd(','); - var offSaleResultCode = shopProductBLL.OffSaleProduct(shop, list); - if (!offSaleResultCode.Contains("\"code\":10000")) - { - Thread.Sleep(Randomx.GetId(1000, 3000)); - offSaleResultCode = shopProductBLL.OffSaleProduct(shop, list); - } - Thread.Sleep(Randomx.GetId(100, 300)); - if (offSaleResultCode.Contains("\"code\":10000")) - { - updateTrailOperationCount(shop); - offSaleMessage = "下架中,第 " + setNum + " 件商品,共 " + shopOperateCount + " 件商品"; - Thread.Sleep(Randomx.GetId(800, 1600)); - } - else - { - var failMessage = BaseRegex.GetStringJson(ref offSaleResultCode, "sub_msg"); - if (string.IsNullOrEmpty(failMessage)) - failMessage = BaseRegex.GetStringJson(ref offSaleResultCode, "status_reason"); - if (string.IsNullOrEmpty(failMessage)) - failMessage = offSaleResultCode; - FailedMessages += "店铺:" + shop.ShopAccount + ",商品id:" + list + ",错误信息:" + failMessage + "\r\n"; - offSaleMessage = ("下架失败," + failMessage).TrimEnd(','); - } - list = ""; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = offSaleMessage; } - })); - Thread.Sleep(Randomx.GetId(100, 200)); - if (offSaleMessage.Contains("违规") || offSaleMessage.Contains("禁售")) - continue; - if (offSaleMessage.Contains("失败")) - continue; - if (i == shopOperateCount - 1) - { - offSaleMessage = "下架完成"; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = offSaleMessage; } - })); - } - - } - // 上架过程中更新显示仓库商品数 - if (i % 100 == 99 || i == shopOperateCount - 1) - GetShopProduct(shop, false); - } - }); - lstOperateTask.Add(t); - while (lstOperateTask.Where(ts => !ts.IsCompleted).ToList().Count >= 20) - { - Thread.Sleep(1000); - } - } - Task.WaitAll(lstOperateTask.ToArray()); - - Invoke(new Action(() => - { - this.btnOnline.Enabled = this.btnOffline.Enabled = this.btnDelOffSale.Enabled = this.btnDelOnSale.Enabled = true; - if (!cancellationTokenSource.IsCancellationRequested) - { - var text = "下架完成!"; - if (!string.IsNullOrEmpty(FailedMessages)) - { - text += "部分商品下架失败,请查看详情。"; - btnFailedDetail.Visible = true; - } - this.statusBar.lblTaskStatus.Text = text; - BaseMsgForm.ShowInfo(text); - } - else - { - var text = "下架中断!"; - if (!string.IsNullOrEmpty(FailedMessages)) - { - text += "部分商品下架失败,请查看详情。"; - btnFailedDetail.Visible = true; - } - this.statusBar.lblTaskStatus.Text = text; - BaseMsgForm.ShowInfo(text); - } - })); - }, cancellationTokenSource.Token); - } - - private void btnFailedDetail_Click(object sender, EventArgs e) - { - - } - - private void btnDelOnSale_Click(object sender, EventArgs e) - { - DeleteProduct(); - } - - private void DeleteProduct(bool isDelOnline = true) - { - lstOperateTask.Clear(); - - if (lstShopId.Count == 0) - { - BaseMsgForm.ShowInfo("请选择要删除商品的店铺"); - return; - } - try - { - this.operateCount = Convert.ToInt32(txtOperateCount.Text); - this.keywords = txtKeywords.Text.Split(new string[] { ",", "\r\n" }, StringSplitOptions.RemoveEmptyEntries).ToList(); - } - catch (Exception ex) - { - BaseMsgForm.ShowInfo("请输入正确的参数"); - return; - } - FailedMessages = ""; - this.btnFailedDetail.Visible = false; - this.btnOnline.Enabled = this.btnOffline.Enabled = this.btnDelOffSale.Enabled = this.btnDelOnSale.Enabled = false; - foreach (DataGridViewRow row in dgvShop.Rows) - { - if (lstShopId.Contains(row.Cells["colShopId"].Value?.ToString())) - row.Cells["colStatus"].Value = ""; - } - - int n = 0; - lstProductIdHasSales.Clear(); - lstGetSalesSuccesShop.Clear(); - cancellationTokenSource = new CancellationTokenSource(); - isNotOperateHasSales = chkNotOperateHasSales.Checked; - notOperateChangeDays = DateTime.Now.Date.AddDays(0 - this.txtNotOperateChangeDays.Text.ParseToInt()); - // 只操作指定天数之前修改的商品 - if (isNotOperateChangeDays) - notOperateChangeDaysTick = BaseClass.DateTimeToTimestampSeconds(notOperateChangeDays); - else - notOperateChangeDaysTick = 0; - - Task.Run(() => - { - foreach (var shopId in lstShopId) - { - int shopOperatecount = operateCount; - - this.Invoke(new Action(() => - { - n++; - var total = lstShopId.Count(); - - this.statusBar.lblTaskStatus.Text = "正在删除..."; - this.statusBar.pgbTaskProgress.Value = n; - this.statusBar.pgbTaskProgress.Text = n + "/" + total; - this.statusBar.pgbTaskProgress.Maximum = total; - })); - - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId); - if (shop == null) - continue; - - DataGridViewRow row = null; - - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) - { - if (isDelOnline) - row.Cells["colStatus"].Value = "正在初始化删除在售商品"; - else - row.Cells["colStatus"].Value = "正在初始化删除仓库商品"; - } - })); - - // 过滤有销量的商品 - if (isNotOperateHasSales) - { - if (ShopForms.ShopListForm.Instance == null) - ShopForms.ShopListForm.Instance = new ShopForms.ShopListForm(); - ShopForms.ShopListForm.Instance.CheckShopLogin(new string[] { shop.ShopAccount }, false); - - if (shop.LoginStatus != "登录成功") - { - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = "未登录店铺无法获取商品销量。"; } - })); - continue; - } - else - { - this.GetHasSales(shop); - - while (isReadShopSales) - { - Thread.Sleep(100); - } - if (!lstGetSalesSuccesShop.Contains(shop)) - { - Invoke(new Action(() => - { - this.btnOnline.Enabled = this.btnOffline.Enabled = this.btnDelOffSale.Enabled = this.btnDelOnSale.Enabled = true; - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = "店铺获取商品销量失败。"; } - })); - continue; - } - } - } - - var t = Task.Run(() => - { - // 显示商品数 - GetShopProduct(shop, false); - - int totalNumBase = shop.OnlineProductCount; // 删除开始时的在售商品数 - int totalNum = shop.OnlineProductCount; // 在售商品数 - if (!isDelOnline) - { - totalNumBase = shop.OfflineProductCount; - totalNum = shop.OfflineProductCount; - } - int setNum = 0; // 删除商品数量(因关键词和近日修改不删除因素存在,因此少于或等于商品循环计数) - int currentNum = 0; // 商品循环计数 - int page = 0; - int pageSize = 50; - string deleteProductMessage = ""; - List productList = new List(); - - var waitDeleteHtml = ""; - - while ((productList.Count < shopOperatecount && currentNum < totalNumBase) || page == 0) - { - page += 1; - currentNum += pageSize; - if (cancellationTokenSource.IsCancellationRequested) - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { Invoke(new Action(() => { row.Cells["colStatus"].Value = "删除中断"; })); } - break; - } - - // 根据上下架信息,获取商品列表 - var productIsOnlineFlag = 0; - if (!isDelOnline) - productIsOnlineFlag = 1; - waitDeleteHtml = shopProductBLL.GetShopProductListData(shop, productIsOnlineFlag, page, pageSize, notOperateChangeDaysTick); - Thread.Sleep(Randomx.GetId(500, 1000)); - - if (waitDeleteHtml.Contains("\"code\":10000")) - { - totalNum = BaseRegex.GetIntJson(ref waitDeleteHtml, "total"); - if (isDelOnline) - shop.OnlineProductCount = totalNum; - else - shop.OfflineProductCount = totalNum; - - if (shopOperatecount > totalNumBase) - shopOperatecount = totalNumBase; - if (currentNum > totalNumBase) - currentNum = totalNumBase; - - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) - { - if (isDelOnline) - row.Cells["colOnSaleCount"].Value = totalNumBase; - else - row.Cells["colOffSaleCount"].Value = totalNumBase; - } - })); - if (totalNum == 0) - { - deleteProductMessage = "删除结束,店铺没有在售商品"; - if (!isDelOnline) - deleteProductMessage = "删除结束,店铺没有仓库商品"; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = deleteProductMessage; } - })); - break; - } - - try - { - JObject jObj = JObject.Parse(waitDeleteHtml); - var jObjDataStr = jObj["data"]?["data"]?.ToString(); - if (!string.IsNullOrEmpty(jObjDataStr)) - { - var addList = JsonHelper.DeserializeJsonToList(jObjDataStr); - if (addList != null) - { - // 有关键词的过滤符合关键词 - if (keywords.Any()) - addList = addList.Where(p => keywords.Any(key => p.name.Contains(key))).ToList(); - // 过滤有销量的商品 - if (isNotOperateHasSales) - addList = addList.Where(p => lstProductIdHasSales.Contains(p.product_id.ToString()) == false).ToList(); - - productList.AddRange(addList); - } - } - deleteProductMessage = "已获取:" + currentNum + ",符合条件:" + productList.Count + ",在售商品获取中..."; - if (!isDelOnline) - deleteProductMessage = "已获取:" + currentNum + ",符合条件:" + productList.Count + ",仓库商品获取中..."; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = deleteProductMessage; } - })); - } - catch (Exception ex) - { - BaseMsgForm.ShowError("获取商品发生错误:" + ex.Message); - } - } - else - { - var failMessage = BaseRegex.GetStringJson(ref waitDeleteHtml, "sub_msg"); - if (string.IsNullOrEmpty(failMessage)) - failMessage = waitDeleteHtml; - deleteProductMessage = ("删除失败," + failMessage).TrimEnd(','); - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = deleteProductMessage; } - })); - Thread.Sleep(1000); - } - } - - // 操作数大于满足筛选条件商品数时,操作数改为商品数 - if (shopOperatecount > productList.Count) - shopOperatecount = productList.Count; - - if (shopOperatecount == 0) - { - deleteProductMessage = "删除完成"; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = deleteProductMessage; } - })); - } - - if (productList.Count == 0) - { - deleteProductMessage = "删除完成"; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = deleteProductMessage; } - })); - } - - string list = ""; - for (int i = 0; i < productList.Count && i < shopOperatecount; i++) - { - if (cancellationTokenSource.IsCancellationRequested) - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { Invoke(new Action(() => { row.Cells["colStatus"].Value = "删除中断"; })); } - break; - } - - if (shop.PayStatus != 1 && shop.TrialOperateCount >= 100) - { - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = "当前为试用版,请购买专业版"; } - })); - break; - } - - Invoke(new Action(() => - { - deleteProductMessage = "正在删除在售商品,第 " + (i + 1) + " 件商品,共 " + shopOperatecount + " 件商品"; - if (!isDelOnline) - deleteProductMessage = "正在删除仓库商品,第 " + (i + 1) + " 件商品,共 " + shopOperatecount + " 件商品"; - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = deleteProductMessage; } - })); - Thread.Sleep(50); - - var product = productList[i]; - setNum++; - list += product.product_id + ","; - if (i % 1 == 0 || i == shopOperatecount - 1) - { - Thread.Sleep(Randomx.GetId(100, 300)); - list = list.TrimEnd(','); - var delResultCode = shopProductBLL.DeleteProduct(shop, list); - if (!delResultCode.Contains("\"code\":10000")) - { - Thread.Sleep(Randomx.GetId(1000, 3000)); - delResultCode = shopProductBLL.DeleteProduct(shop, list); - } - Thread.Sleep(Randomx.GetId(100, 300)); - if (delResultCode.Contains("\"code\":10000")) - { - updateTrailOperationCount(shop); - deleteProductMessage = "正在删除在售商品,第 " + setNum + " 件商品,共 " + shopOperatecount + " 件商品"; - if (!isDelOnline) - deleteProductMessage = "正在删除仓库商品,第 " + setNum + " 件商品,共 " + shopOperatecount + " 件商品"; - Thread.Sleep(Randomx.GetId(800, 1600)); - } - else - { - var failMessage = BaseRegex.GetStringJson(ref delResultCode, "sub_msg"); - if (string.IsNullOrEmpty(failMessage)) - failMessage = BaseRegex.GetStringJson(ref delResultCode, "status_reason"); - if (string.IsNullOrEmpty(failMessage)) - failMessage = delResultCode; - FailedMessages += "店铺:" + shop.ShopAccount + ",商品id:" + list + ",错误信息:" + failMessage + "\r\n"; - deleteProductMessage = ("删除失败," + failMessage).TrimEnd(','); - } - list = ""; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = deleteProductMessage; } - })); - Thread.Sleep(Randomx.GetId(100, 200)); - if (deleteProductMessage.Contains("违规") || deleteProductMessage.Contains("禁售")) - continue; - if (deleteProductMessage.Contains("失败")) - continue; - if (i == shopOperatecount - 1) - { - deleteProductMessage = "删除完成"; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = deleteProductMessage; } - })); - } - } - - // 上架过程中更新显示仓库商品数 - if (i % 100 == 99 || i == shopOperatecount - 1) - GetShopProduct(shop, false); - } - }); - lstOperateTask.Add(t); - while (lstOperateTask.Where(ts => !ts.IsCompleted).ToList().Count >= 20) - { - Thread.Sleep(1000); - } - } - Task.WaitAll(lstOperateTask.ToArray()); - - Invoke(new Action(() => - { - this.btnOnline.Enabled = this.btnOffline.Enabled = this.btnDelOffSale.Enabled = this.btnDelOnSale.Enabled = true; - if (!cancellationTokenSource.IsCancellationRequested) - { - var text = "删除完成!"; - if (!string.IsNullOrEmpty(FailedMessages)) - { - text += "部分商品删除失败,请查看详情。"; - btnFailedDetail.Visible = true; - } - this.statusBar.lblTaskStatus.Text = text; - BaseMsgForm.ShowInfo(text); - } - else - { - var text = "删除中断!"; - if (!string.IsNullOrEmpty(FailedMessages)) - { - text += "部分商品删除失败,请查看详情。"; - btnFailedDetail.Visible = true; - } - this.statusBar.lblTaskStatus.Text = text; - BaseMsgForm.ShowInfo(text); - } - })); - }, cancellationTokenSource.Token); - } - - private void btnDelOffSale_Click(object sender, EventArgs e) - { - DeleteProduct(false); - } - - private void btnStop_Click(object sender, EventArgs e) - { - if (cancellationTokenSource != null) - cancellationTokenSource.Cancel(); - } - - private void buttonEx1_Click(object sender, EventArgs e) - { - //DouyinApi api = new DouyinApi(shop); - //api.JsonData = new Dictionary(); - //api.JsonData.Add("product_id", 3527978631504783585.ToString()); - //api.JsonData.Add("show_draft", "false"); - //string detailHtml = api.GetProductDetail(); - - //Thread.Sleep(Randomx.GetId(100, 300)); - //list = list.TrimEnd(','); - //var resultHtml = GetProductUpdateRule(shop, list); - - //api.JsonData = new Dictionary(); - //api.JsonData.Add("product_id", "3527978631504783585"); - //api.JsonData.Add("delay_rule", "{\\\"enable\\\":\\\"true\\\",\\\"config_type\\\":\\\"1\\\",\\\"config_value\\\":\\\"1644595100\\\",\\\"start_time\\\":\\\"1643040000\\\",\\\"end_time\\\":\\\"1644249599\\\"}"); - ////api.JsonData.Add("delivery_delay_day", "2"); - //api.JsonData.Add("commit", "true"); - //string editHtml = api.GetProductEdit(); - } - - // /product/getProductUpdateRule - string GetProductUpdateRule(ShopLoginInfo shop, string catId) - { - Dictionary dictionary = new Dictionary(); - dictionary.Add("category_id", catId); - DouyinApi douApi = new DouyinApi(shop); - douApi.JsonData = dictionary; - var resultUpdateRule = douApi.GetResultUpdateRule(); - return resultUpdateRule; - } - - private void chkNotOperateChangeDays_CheckedChanged(object sender, EventArgs e) - { - isNotOperateChangeDays = chkNotOperateChangeDays.Checked; - } - - private void chkNotOperateHasSales_CheckedChanged(object sender, EventArgs e) - { - isNotOperateHasSales = chkNotOperateHasSales.Checked; - } - - /// - /// 获取有订单商品Id列表 - /// - private void GetHasSales(ShopLoginInfo shop) - { - currentShop = shop; - - if (webBrowser == null) - { - Invoke(new Action(() => - { - webBrowser = CEFBrowser.CreateChromiumWebBrowser("about:blank", false); - webBrowser.KeyboardHandler = new KeyboardHandler(); - webBrowser.Dock = DockStyle.Fill; - Helper.CustomResourceRequestHandlerLocal resourceRequestHandler = new Helper.CustomResourceRequestHandlerLocal(); - resourceRequestHandler.ResourceLoadCompleteEvent += RequestHandler_ResourceLoadCompleteEvent; - webBrowser.RequestHandler = new CustomRequestHandler(resourceRequestHandler); - //webBrowser.AddressChanged += WebBrowser_AddressChanged; - //webBrowser.FrameLoadEnd += webBrowser_FrameLoadEnd; - webBrowser.SendToBack(); - this.splitContainer2.Panel1.Controls.Add(webBrowser); - })); - } - - while (!webBrowser.IsBrowserInitialized || webBrowser.IsLoading) - continue; - - var cookie = shop.Cookies; - CEFBrowser.DeleteCookie(webBrowser.RequestContext.GetCookieManager(null)); - var t = CEFBrowser.SetCookieAsync("jinritemai.com", cookie, webBrowser.RequestContext.GetCookieManager(null)); - t.Wait(2000); - Thread.Sleep(500); - - webBrowser.Load("https://fxg.jinritemai.com/ffa/g/list"); - while (webBrowser.IsLoading) - { - Thread.Sleep(1000); - } - Thread.Sleep(3000); - - //var jsStr = clickJsElementStr + - // "function clickBtn(txt) {\r\n" + - // " var elem = getElement(txt);\r\n" + - // " if (elem) elem.click(); return 'success';\r\n" + - // " return 'no_element';\r\n" + - // "}\r\n" + - // "clickBtn('>销量<');\r\n"; - //var t1 = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - //t1.Wait(); - Thread.Sleep(7000); - } - - private void RequestHandler_ResourceLoadCompleteEvent(object sender, string url, string postData, string responseData, CefSharp.IRequest iRequest) - { - //https://fxg.jinritemai.com/product/tproduct/list?page=0&sort=desc&order_field=sell_num&pageSize=20&draft_status=0&comment_percent=&group_id=&pay_type=&business_type=4&is_online=1&check_status=3&status=0&supply_status=&appid=1&__token=683a0546937232e2e0d21188589a5530&_bid=ffa_goods&_lid=302249513096&msToken=udDi1jFk2Fmdc_1qNCDWVU5dz9pW5BKEY7AkYNVyxTstwAO1HINoZ7Fyqooa6nrFa8BEveaiPGNj6blY4FcT1o7teFMphSe5mhhkCXNSuGkeXYnTs_b8gVkFXzyOvoklyQ==&X-Bogus=DFSzswRYKvxANJnIS-a5lnCr9FFo&_signature=_02B4Z6wo00001qBs2XQAAIDBaNAQaeqXQfKgbP3AAModrEa90knffDfTcbggWfyLBAglax928BpmhSvK4SBwi8ISWvslk-q001kEk4JvaFx83ukywUiOKp8Z7WhPdXURXs68gTqdXo8RiELhe5 - if (url.StartsWith("https://fxg.jinritemai.com/product/tproduct/list?page=0") && url.Contains("&pay_type=")/* && url.Contains("sort=desc&order_field=sell_num")*/) - { - var listUrl = url; - var referrerUrl = iRequest.ReferrerUrl; - var result = responseData; - Dictionary Headers = new Dictionary(); - foreach (var hk in iRequest.Headers.AllKeys) - { - Headers[hk] = iRequest.Headers[hk]; - } - if (currentShop != null) - { - isReadShopSales = true; - - Task.Run(() => - { - int total = -1; - int number = 0; - for (int i = 0; i < 10000; i++) - { - number += 20; - result = ""; - for (int j = 0; j < 3 && !result.Contains("\"st\":0"); j++) - { - CommonSimRequest simRequest = new CommonSimRequest(); - simRequest.Accept = "application/json, text/plain, */*"; - if (Headers.ContainsKey("Accept")) - simRequest.Accept = Headers["Accept"]; - if (Headers.ContainsKey("UserAgent")) - simRequest.UserAgent = Headers["UserAgent"]; - var cookie = currentShop.Cookies; - - result = simRequest.Request_Get(listUrl.Replace("page=0", "page=" + i).Replace("&pay_type=", "&pay_type=&sell_num_min=1"), referrerUrl, new Dictionary(), cookie); - if (j > 0) - { - Thread.Sleep(Randomx.GetId(2000, 3000)); - } - } - - if (result.Contains("\"st\":0") && !cancellationTokenSource.IsCancellationRequested) - { - if (!lstGetSalesSuccesShop.Contains(currentShop)) - lstGetSalesSuccesShop.Add(currentShop); - - if (total == -1) - { - total = BaseRegex.GetIntJson(ref result, "total"); - } - var jObj = JObject.Parse(result); - var jArr = jObj["data"] as JArray; - foreach (var productObj in jArr) - { - var prod = JsonHelper.SerializeObject(productObj); - var pId = BaseRegex.GetStringJson(ref prod, "product_id"); - var sales = BaseRegex.GetIntJson(ref prod, "sell_num"); - if (sales == 0) - { - number = 99999999; - break; - } - else - { - lstProductIdHasSales.Add(pId); - } - } - Thread.Sleep(Randomx.GetId(2000, 3000)); - result = ""; - } - else - { - while (lstGetSalesSuccesShop.Contains(currentShop)) - lstGetSalesSuccesShop.Remove(currentShop); - break; - } - - if (number >= total) - break; - } - - currentShop = null; - Thread.Sleep(3000); - isReadShopSales = false; - }); - } - else - { - } - } - } - - bool isWebBrowserTop = false; - private void label12_Click(object sender, EventArgs e) - { - if (webBrowser == null) - return; - if (isWebBrowserTop) - { - isWebBrowserTop = false; - webBrowser.SendToBack(); - } - else - { - isWebBrowserTop = true; - webBrowser.BringToFront(); - } - } - - private void updateTrailOperationCount(ShopLoginInfo shop) - { - if (shop.PayStatus != 1) - { - shop.TrialOperateCount++; - StartUp.SaveLocalShopLoginInfo(); - } - } - - string clickJsElementStr = "function getElement(txt, elem) {\r\n" + - " var child = document.body.firstElementChild;\r\n" + - " if (elem) child = elem\r\n" + - " var element1 = null;\r\n" + - " while (child) {\r\n" + - " if (child.innerHTML.indexOf(txt) >= 0) {\r\n" + - " element1 = child;\r\n" + - " if (child.firstElementChild) {\r\n" + - " child = child.firstElementChild; continue;\r\n" + - " } else break;\r\n" + - " }\r\n" + - " child = child.nextElementSibling;\r\n" + - " }\r\n" + - " if (element1) {\r\n" + - " return element1;\r\n" + - " } else return error;\r\n" + - "}\r\n"; - } -} diff --git a/TEMUKJD/KJDForms/ProductForms/Old/ShopProductForm.resx b/TEMUKJD/KJDForms/ProductForms/Old/ShopProductForm.resx deleted file mode 100644 index b788926..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/ShopProductForm.resx +++ /dev/null @@ -1,153 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/Old/SpecialDelaySendForm.Designer.cs b/TEMUKJD/KJDForms/ProductForms/Old/SpecialDelaySendForm.Designer.cs deleted file mode 100644 index 780b6b4..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/SpecialDelaySendForm.Designer.cs +++ /dev/null @@ -1,474 +0,0 @@ -namespace TemuKJD.KJDForms.ProductForms -{ - partial class SpecialDelaySendForm - { - /// - /// 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(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.label1 = new System.Windows.Forms.Label(); - this.txtNotOperateDays = new System.Windows.Forms.TextBox(); - this.txtTotalCount = new System.Windows.Forms.TextBox(); - this.label26 = new System.Windows.Forms.Label(); - this.chkIsNotOperateDays = new System.Windows.Forms.CheckBox(); - this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.btnRefresh = new TemuKJD.UserControls.ButtonEx(); - this.btnStop = new TemuKJD.UserControls.ButtonEx(); - this.btnStart = new TemuKJD.UserControls.ButtonEx(); - this.splitContainer3 = new System.Windows.Forms.SplitContainer(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colLoginStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.panelEx1 = new DevComponents.DotNetBar.PanelEx(); - this.pnlShowError = new DevComponents.DotNetBar.PanelEx(); - this.splitContainer4 = new System.Windows.Forms.SplitContainer(); - this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - this.ucGroupBoxEx2.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.dgvShop)).BeginInit(); - this.panelEx1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).BeginInit(); - this.splitContainer4.Panel1.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.ucGroupBoxEx2); - this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx1); - this.splitContainer1.Panel1.Controls.Add(this.btnStop); - this.splitContainer1.Panel1.Controls.Add(this.btnStart); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.splitContainer3); - this.splitContainer1.Size = new System.Drawing.Size(1139, 601); - this.splitContainer1.SplitterDistance = 81; - this.splitContainer1.TabIndex = 4; - // - // ucGroupBoxEx2 - // - this.ucGroupBoxEx2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left))); - this.ucGroupBoxEx2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.ucGroupBoxEx2.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.SQUARE; - this.ucGroupBoxEx2.Controls.Add(this.label1); - this.ucGroupBoxEx2.Controls.Add(this.txtNotOperateDays); - this.ucGroupBoxEx2.Controls.Add(this.txtTotalCount); - this.ucGroupBoxEx2.Controls.Add(this.label26); - this.ucGroupBoxEx2.Controls.Add(this.chkIsNotOperateDays); - this.ucGroupBoxEx2.Location = new System.Drawing.Point(117, 2); - this.ucGroupBoxEx2.Name = "ucGroupBoxEx2"; - this.ucGroupBoxEx2.Size = new System.Drawing.Size(272, 81); - this.ucGroupBoxEx2.TabIndex = 400; - this.ucGroupBoxEx2.TabStop = false; - this.ucGroupBoxEx2.Text = "参数"; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label1.Location = new System.Drawing.Point(98, 51); - this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(104, 17); - this.label1.TabIndex = 406; - this.label1.Text = "天内修改过的商品"; - // - // txtNotOperateDays - // - this.txtNotOperateDays.Location = new System.Drawing.Point(60, 49); - this.txtNotOperateDays.Name = "txtNotOperateDays"; - this.txtNotOperateDays.Size = new System.Drawing.Size(36, 21); - this.txtNotOperateDays.TabIndex = 404; - this.txtNotOperateDays.Text = "7"; - this.txtNotOperateDays.TextChanged += new System.EventHandler(this.txtNotOperateDays_TextChanged); - // - // txtTotalCount - // - this.txtTotalCount.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtTotalCount.Location = new System.Drawing.Point(78, 18); - this.txtTotalCount.Margin = new System.Windows.Forms.Padding(2); - this.txtTotalCount.Name = "txtTotalCount"; - this.txtTotalCount.Size = new System.Drawing.Size(54, 23); - this.txtTotalCount.TabIndex = 381; - this.txtTotalCount.Text = "999999"; - // - // label26 - // - this.label26.AutoSize = true; - this.label26.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label26.Location = new System.Drawing.Point(12, 21); - this.label26.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label26.Name = "label26"; - this.label26.Size = new System.Drawing.Size(68, 17); - this.label26.TabIndex = 380; - this.label26.Text = "设置数量:"; - // - // chkIsNotOperateDays - // - this.chkIsNotOperateDays.AutoSize = true; - this.chkIsNotOperateDays.Location = new System.Drawing.Point(15, 51); - this.chkIsNotOperateDays.Name = "chkIsNotOperateDays"; - this.chkIsNotOperateDays.Size = new System.Drawing.Size(48, 16); - this.chkIsNotOperateDays.TabIndex = 405; - this.chkIsNotOperateDays.Text = "跳过"; - this.chkIsNotOperateDays.UseVisualStyleBackColor = true; - // - // 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.SQUARE; - this.ucGroupBoxEx1.Controls.Add(this.btnRefresh); - this.ucGroupBoxEx1.Location = new System.Drawing.Point(2, 2); - this.ucGroupBoxEx1.Name = "ucGroupBoxEx1"; - this.ucGroupBoxEx1.Size = new System.Drawing.Size(116, 81); - this.ucGroupBoxEx1.TabIndex = 399; - this.ucGroupBoxEx1.TabStop = false; - this.ucGroupBoxEx1.Text = "基础"; - // - // btnRefresh - // - this.btnRefresh.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRefresh.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnRefresh.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnRefresh.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnRefresh.ForeColor = System.Drawing.Color.White; - this.btnRefresh.Location = new System.Drawing.Point(12, 31); - this.btnRefresh.Margin = new System.Windows.Forms.Padding(2); - this.btnRefresh.Name = "btnRefresh"; - this.btnRefresh.Size = new System.Drawing.Size(90, 25); - this.btnRefresh.TabIndex = 398; - this.btnRefresh.Text = "刷新店铺"; - this.btnRefresh.UseVisualStyleBackColor = false; - this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click); - // - // btnStop - // - this.btnStop.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnStop.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStop.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnStop.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnStop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnStop.ForeColor = System.Drawing.Color.White; - this.btnStop.Location = new System.Drawing.Point(1058, 8); - this.btnStop.Margin = new System.Windows.Forms.Padding(2); - this.btnStop.Name = "btnStop"; - this.btnStop.Size = new System.Drawing.Size(72, 25); - this.btnStop.TabIndex = 395; - this.btnStop.Text = "停止设置"; - this.btnStop.UseVisualStyleBackColor = false; - this.btnStop.Click += new System.EventHandler(this.btnStop_Click); - // - // btnStart - // - this.btnStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnStart.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStart.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnStart.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnStart.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnStart.ForeColor = System.Drawing.Color.White; - this.btnStart.Location = new System.Drawing.Point(982, 8); - this.btnStart.Margin = new System.Windows.Forms.Padding(2); - this.btnStart.Name = "btnStart"; - this.btnStart.Size = new System.Drawing.Size(72, 25); - this.btnStart.TabIndex = 387; - this.btnStart.Text = "开始设置"; - this.btnStart.UseVisualStyleBackColor = false; - this.btnStart.Click += new System.EventHandler(this.btnStart_Click); - // - // 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(1139, 516); - this.splitContainer3.SplitterDistance = 486; - 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.dgvShop); - this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 0, 0); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Controls.Add(this.panelEx1); - this.splitContainer2.Panel2.Padding = new System.Windows.Forms.Padding(0, 0, 4, 0); - this.splitContainer2.Size = new System.Drawing.Size(1139, 486); - this.splitContainer2.SplitterDistance = 347; - this.splitContainer2.TabIndex = 0; - // - // dgvShop - // - this.dgvShop.AllowUserToAddRows = false; - this.dgvShop.AllowUserToDeleteRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - 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.colShopId, - this.colShopName, - this.colLoginStatus, - this.colMessage}); - this.dgvShop.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvShop.Location = new System.Drawing.Point(4, 0); - this.dgvShop.Name = "dgvShop"; - this.dgvShop.ReadOnly = true; - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvShop.RowsDefaultCellStyle = dataGridViewCellStyle3; - this.dgvShop.RowTemplate.Height = 23; - this.dgvShop.Size = new System.Drawing.Size(343, 486); - this.dgvShop.TabIndex = 6; - this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick); - // - // colSelect - // - this.colSelect.FillWeight = 50F; - 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 = 40; - // - // colShopId - // - this.colShopId.HeaderText = "店铺"; - this.colShopId.Name = "colShopId"; - this.colShopId.ReadOnly = true; - this.colShopId.Width = 70; - // - // colShopName - // - this.colShopName.FillWeight = 150F; - this.colShopName.HeaderText = "店铺名称"; - this.colShopName.Name = "colShopName"; - this.colShopName.ReadOnly = true; - this.colShopName.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colShopName.Width = 90; - // - // colLoginStatus - // - this.colLoginStatus.HeaderText = "可用"; - this.colLoginStatus.Name = "colLoginStatus"; - this.colLoginStatus.ReadOnly = true; - this.colLoginStatus.Width = 60; - // - // colMessage - // - this.colMessage.HeaderText = "消息"; - this.colMessage.Name = "colMessage"; - this.colMessage.ReadOnly = true; - this.colMessage.Width = 120; - // - // panelEx1 - // - this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control; - this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.panelEx1.Controls.Add(this.pnlShowError); - this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty; - this.panelEx1.Dock = System.Windows.Forms.DockStyle.Fill; - this.panelEx1.Location = new System.Drawing.Point(0, 0); - this.panelEx1.Name = "panelEx1"; - this.panelEx1.Padding = new System.Windows.Forms.Padding(1); - this.panelEx1.Size = new System.Drawing.Size(784, 486); - this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center; - this.panelEx1.Style.BackColor1.Color = System.Drawing.Color.White; - this.panelEx1.Style.BackColor2.Color = System.Drawing.Color.White; - 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.TabIndex = 183; - // - // pnlShowError - // - this.pnlShowError.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.pnlShowError.CanvasColor = System.Drawing.Color.Empty; - this.pnlShowError.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.pnlShowError.DisabledBackColor = System.Drawing.Color.Empty; - this.pnlShowError.Location = new System.Drawing.Point(182, 192); - this.pnlShowError.Name = "pnlShowError"; - this.pnlShowError.Size = new System.Drawing.Size(419, 100); - this.pnlShowError.Style.Alignment = System.Drawing.StringAlignment.Center; - this.pnlShowError.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(163)))), ((int)(((byte)(226)))), ((int)(((byte)(255))))); - this.pnlShowError.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(163)))), ((int)(((byte)(226)))), ((int)(((byte)(255))))); - this.pnlShowError.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.pnlShowError.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; - this.pnlShowError.Style.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.pnlShowError.Style.ForeColor.Color = System.Drawing.Color.Red; - this.pnlShowError.Style.GradientAngle = 90; - this.pnlShowError.TabIndex = 187; - this.pnlShowError.Text = "panelEx3"; - this.pnlShowError.Visible = false; - // - // 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); - this.splitContainer4.Size = new System.Drawing.Size(1139, 26); - this.splitContainer4.SplitterDistance = 732; - 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(732, 26); - this.statusBar.TabIndex = 2; - // - // SpecialDelaySendForm - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1139, 601); - this.Controls.Add(this.splitContainer1); - this.Name = "SpecialDelaySendForm"; - this.Text = "SpecialDelaySendForm"; - this.Load += new System.EventHandler(this.SpecialDelaySendForm_Load); - this.VisibleChanged += new System.EventHandler(this.SpecialDelaySendForm_VisibleChanged); - this.splitContainer1.Panel1.ResumeLayout(false); - this.splitContainer1.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); - this.splitContainer1.ResumeLayout(false); - this.ucGroupBoxEx2.ResumeLayout(false); - this.ucGroupBoxEx2.PerformLayout(); - this.ucGroupBoxEx1.ResumeLayout(false); - 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.dgvShop)).EndInit(); - this.panelEx1.ResumeLayout(false); - this.splitContainer4.Panel1.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 ucGroupBoxEx2; - private System.Windows.Forms.TextBox txtTotalCount; - private System.Windows.Forms.Label label26; - private UserComponent.UcGroupBoxEx ucGroupBoxEx1; - private UserControls.ButtonEx btnRefresh; - private UserControls.ButtonEx btnStop; - private UserControls.ButtonEx btnStart; - private System.Windows.Forms.SplitContainer splitContainer3; - private System.Windows.Forms.SplitContainer splitContainer2; - private UserComponent.DataGridViewEx dgvShop; - private DevComponents.DotNetBar.PanelEx panelEx1; - private DevComponents.DotNetBar.PanelEx pnlShowError; - private System.Windows.Forms.SplitContainer splitContainer4; - private UserControls.StatusBarUserControl statusBar; - private System.Windows.Forms.TextBox txtNotOperateDays; - private System.Windows.Forms.CheckBox chkIsNotOperateDays; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopId; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopName; - private System.Windows.Forms.DataGridViewTextBoxColumn colLoginStatus; - private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; - private System.Windows.Forms.Label label1; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/Old/SpecialDelaySendForm.cs b/TEMUKJD/KJDForms/ProductForms/Old/SpecialDelaySendForm.cs deleted file mode 100644 index c9e0475..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/SpecialDelaySendForm.cs +++ /dev/null @@ -1,557 +0,0 @@ -using AllBase; -using AllBase.Helper; -using AllBase.Model.Result; -using CefSharp.WinForms; -using TemuKJD.Extension; -using TemuKJD.KJDForms.BaseForms; -using NaiBa.CefHelper; -using NaiBa.CefHelper.Handler; -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.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; -using Work.DouyinApiClass; - -namespace TemuKJD.KJDForms.ProductForms -{ - public partial class SpecialDelaySendForm : BaseForm - { - private CheckBox chkSelectAll = null; - bool isNotOperateDays = true; - public DateTime notOperateDate = DateTime.Now.Date.AddDays(-7); - CancellationTokenSource cancellationTokenSource = null; - ChromiumWebBrowser webBrowser = null; - int operateCount = 999999; - string keyWords = ""; - bool isRun = false; - public SpecialDelaySendForm() - { - InitializeComponent(); - } - - private void btnRefresh_Click(object sender, EventArgs e) - { - LoadShops(); - } - - private void SpecialDelaySendForm_VisibleChanged(object sender, EventArgs e) - { - if (Visible) - LoadShops(); - } - - private void txtNotOperateDays_TextChanged(object sender, EventArgs e) - { - if (txtNotOperateDays.ParseToInt() > 15) - txtNotOperateDays.Text = "15"; - } - - public void LoadShops() - { - for (int i = 0; i < GlobalConfig.ShopLoginList.Count; i++) - { - var shop = GlobalConfig.ShopLoginList[i]; - var row = dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopId); - if (row == null) - dgvShop.Rows.Add(false, shop.ShopId, shop.ShopAccount, shop.LoginStatus == "登录成功" && shop.ApiAuthStatus == "授权成功" ? "可用" : ""); - else - { - row.Cells["colLoginStatus"].Value = shop.LoginStatus; - } - } - } - - public string GetShopProductListData(ShopLoginInfo shop, int productStatus = 0, int page = 1, int pageSize = 50) - { - // 读取在售商品数量 - Dictionary dictionary = new Dictionary(); - dictionary.Add("page", page.ToString()); - dictionary.Add("size", pageSize.ToString()); - if (productStatus == 0) - dictionary.Add("check_status", "3"); - dictionary["status"] = productStatus.ToString(); - DouyinApi douApi = new DouyinApi(shop); - douApi.JsonData = dictionary; - var resultOnline = douApi.GetProductList(); - return resultOnline; - } - void GetShopProduct(ShopLoginInfo shop, bool isShowResult = true) - { - DataGridViewRow row = null; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) - { - if (isShowResult) - row.Cells["colMessage"].Value = "正在获取店铺商品数量"; - } - })); - - // 读取在售商品数量 - var resultOnline = GetShopProductListData(shop, 0, 1, 10); - if (resultOnline.Contains("\"code\":10000")) - { - if (row != null) - { - var text = BaseRegex.GetStringJson(ref resultOnline, "total"); - shop.OnlineProductCount = text.ParseToInt(); - - Invoke(new Action(() => - { - //row.Cells["colOnSaleCount"].Value = string.IsNullOrEmpty(text) ? "" : text; - })); - } - } - // 读取下架商品数量 - var resultOffline = GetShopProductListData(shop, 1, 1, 10); - if (resultOffline.Contains("\"code\":10000")) - { - if (row != null) - { - var text = BaseRegex.GetStringJson(ref resultOffline, "total"); - shop.OfflineProductCount = text.ParseToInt(); - - Invoke(new Action(() => - { - //row.Cells["colOffSaleCount"].Value = string.IsNullOrEmpty(text) ? "" : text; - })); - } - } - - string resultShowText = ""; - if (resultOnline.Contains("\"code\":10000") && resultOffline.Contains("\"code\":10000")) - { - resultShowText = "商品数量获取成功"; - } - else - { - resultShowText = "商品数量获取失败"; - if (!resultOnline.Contains("\"code\":10000")) - { - var html = BaseRegex.GetStringJson(ref resultOnline, "sub_msg"); - if (string.IsNullOrEmpty(html)) - html = resultOnline; - resultShowText += ",获取在售商品错误:" + html; - } - if (!resultOffline.Contains("\"code\":10000")) - { - var html = BaseRegex.GetStringJson(ref resultOffline, "sub_msg"); - if (string.IsNullOrEmpty(html)) - html = resultOffline; - resultShowText += ",获取仓库商品错误:" + html; - } - } - Invoke(new Action(() => - { - if (row != null) - { - if (isShowResult) - row.Cells["colMessage"].Value = resultShowText; - } - })); - } - - private void btnStart_Click(object sender, EventArgs e) - { - this.operateCount = this.txtTotalCount.Text.ParseToInt(); - var shopIds = this.dgvShop.Rows.Cast().Where(r => r.Cells["colSelect"].Value.ParseToBool() == true) - .Select(r => r.Cells["colShopId"].Value?.ToString()).ToList(); - var shops = GlobalConfig.ShopLoginList.Where(s => shopIds.Contains(s.ShopId)).ToList(); - if (shops.Count == 0) - { - BaseMsgForm.ShowError("请选择要操作的店铺"); - return; - } - - isRun = true; - isNotOperateDays = chkIsNotOperateDays.Checked; - notOperateDate = DateTime.Now.Date.AddDays(0 - this.txtNotOperateDays.Text.ParseToInt()); - btnStart.Enabled = false; - cancellationTokenSource = new CancellationTokenSource(); - SetDelaySendCef(shops); - Task.Run(() => - { - Thread.Sleep(8000); - Invoke(new Action(() => { btnStart.Enabled = true; })); - }); - } - - void SetDelaySendCef(List shops) - { - Task.Run(() => - { - InitCef(); - - while (!webBrowser.IsBrowserInitialized || webBrowser.IsLoading) - continue; - - for (int num = 0; num < shops.Count; num++) - { - Thread.Sleep(500); - - var shop = shops[num]; - if (shop == null) - { - continue; - } - - if (!isRun) - { - Invoke(new Action(() => - { - var row1 = dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopId); - if (row1 != null) - row1.Cells["colMessage"].Value = "设置中断"; - })); - break; - } - Invoke(new Action(() => - { - this.statusBar.pgbTaskProgress.Maximum = shops.Count; - this.statusBar.lblTaskStatus.Text = "正在获取店铺:" + shop.ShopAccount + "商品"; - this.statusBar.pgbTaskProgress.Value = (num + 1); - this.statusBar.pgbTaskProgress.Text = (num + 1) + "/" + shops.Count; - })); - - // 获取商品数 - GetShopProduct(shop); - - int totalNumBase = shop.OnlineProductCount; // 下架开始时的在售商品数 - int totalNum = shop.OnlineProductCount; // 在售商品数 - int setNum = 0; // 下架商品数量(因关键词存在因此少于或等于商品循环计数) - int currentNum = 0; // 商品循环计数 - int page = 0; - int pageSize = 50; - string offSaleMessage = ""; - List productList = new List(); - - var onlineProductHtml = ""; - - while ((currentNum < operateCount && currentNum < totalNumBase) || page == 0) - { - page += 1; - currentNum += pageSize; - if (cancellationTokenSource != null && cancellationTokenSource.IsCancellationRequested) - { - var row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { Invoke(new Action(() => { row.Cells["colMessage"].Value = "下架中断"; })); } - break; - } - - // 获取商品列表 - onlineProductHtml = GetShopProductListData(shop, 0, page); - Thread.Sleep(Randomx.GetId(500, 1000)); - - if (onlineProductHtml.Contains("\"code\":10000")) - { - totalNum = BaseRegex.GetIntJson(ref onlineProductHtml, "total"); - shop.OfflineProductCount = totalNum; - - if (operateCount > totalNumBase) - operateCount = totalNumBase; - if (currentNum > totalNumBase) - currentNum = totalNumBase; - - Invoke(new Action(() => - { - var row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) - { - //row.Cells["colOnSaleCount"].Value = totalNumBase; - } - })); - if (totalNum == 0) - { - offSaleMessage = "设置结束,店铺没有在售的商品"; - Invoke(new Action(() => - { - var row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colMessage"].Value = offSaleMessage; } - })); - break; - } - - try - { - JObject jObj = JObject.Parse(onlineProductHtml); - var jObjDataStr = jObj["data"]?["data"]?.ToString(); - if (!string.IsNullOrEmpty(jObjDataStr)) - { - var addList = JsonHelper.DeserializeJsonToList(jObjDataStr); - if (addList != null) - productList.AddRange(addList); - } - offSaleMessage = "正在获取商品,第" + currentNum + "件商品,共" + operateCount + "件商品"; - Invoke(new Action(() => - { - var row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colMessage"].Value = offSaleMessage; } - })); - } - catch (Exception ex) - { - BaseMsgForm.ShowError("获取商品发生错误:" + ex.Message); - } - } - else - { - var failMessage = BaseRegex.GetStringJson(ref onlineProductHtml, "sub_msg"); - if (string.IsNullOrEmpty(failMessage)) - failMessage = onlineProductHtml; - offSaleMessage = ("设置发货延迟失败," + failMessage).TrimEnd(','); - Invoke(new Action(() => - { - var row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colMessage"].Value = offSaleMessage; } - })); - } - } - - // 有关键词的过滤符合关键词 - if (keyWords.Any()) - productList = productList.Where(p => keyWords.Any(key => p.name.Contains(key))).ToList(); - - // 只操作指定天数之前修改的商品 - if (isNotOperateDays) - productList = productList.Where(p => p.update_time < BaseClass.DateTimeToTimestampSeconds(notOperateDate)).ToList(); - - // 操作数大于满足筛选条件商品数时,操作数改为商品数 - if (operateCount > productList.Count) - operateCount = productList.Count; - - for (int i = 0; i < productList.Count && i < operateCount; i++) - { - if (cancellationTokenSource != null && cancellationTokenSource.IsCancellationRequested) - { - var row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { Invoke(new Action(() => { row.Cells["colMessage"].Value = "设置发货延迟中断"; })); } - break; - } - - Invoke(new Action(() => - { - offSaleMessage = "正在设置发货延迟,第 " + (i + 1) + " 件商品,共 " + operateCount + " 件商品"; - var row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colMessage"].Value = offSaleMessage; } - this.statusBar.lblTaskStatus.Text = offSaleMessage; - })); - Thread.Sleep(50); - - var product = productList[i]; - setNum++; - - var pid = product.product_id; - var cid = product.category_detail.fourth_cid; - if (cid == 0) - cid = product.category_detail.third_cid; - if (cid == 0) - cid = product.category_detail.second_cid; - if (cid == 0) - cid = product.category_detail.first_cid; - Thread.Sleep(Randomx.GetId(100, 300)); - - var cookie = shop.Cookies; - CEFBrowser.DeleteCookie(webBrowser.RequestContext.GetCookieManager(null)); - var t = CEFBrowser.SetCookieAsync("jinritemai.com", cookie, webBrowser.RequestContext.GetCookieManager(null)); - t.Wait(2000); - Thread.Sleep(500); - this.webBrowser.Load("https://fxg.jinritemai.com/ffa/g/create?product_id=" + pid + "&cid=" + cid + "&entrance=edit"); - Thread.Sleep(3000); - while (webBrowser.IsLoading) - { - Thread.Sleep(1000); - } - var jsStr = getJsElementStr + - "function getPos(elem) { var box = elem;" + - "if (box == null) return '-|-';" + - "var actualLeft = box.offsetLeft;" + - "var actualTop = box.offsetTop;" + - "var current = box.offsetParent;" + - "while (current !== null) { actualLeft += current.offsetLeft; actualTop += current.offsetTop; current = current.offsetParent; }" + - "return '' + actualLeft + '|' + actualTop;}\r\n" + - "getPos(getElement('特殊日期延迟发货时间'));"; - - var result = ""; - for (int x = 0; x < 100 && string.IsNullOrEmpty(result); x++) - { - var task = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - task.Wait(); - result = task.Result?.Result?.ToString(); - Thread.Sleep(1000); - } - Thread.Sleep(3000); - - if (string.IsNullOrEmpty(result) || result == "-|-") - { - continue; - } - - jsStr = "document.getElementById('goodsEditScrollContainer').scrollTop = " + result.Split('|').LastOrDefault() + ";"; - { - var task = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - task.Wait(); - result = task.Result?.Result?.ToString(); - Thread.Sleep(1500); - } - - jsStr = "function clickSwitchButton() { if (document.body.innerHTML.indexOf('最晚发货时间') < 0) document.getElementsByClassName('ant-switch')[0].click(); }\r\n" + - "clickSwitchButton();"; - { - var task = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - task.Wait(); - result = task.Result?.Result?.ToString(); - Thread.Sleep(1500 + Randomx.GetId(1000)); - } - - jsStr = "document.getElementsByClassName('ant-btn sp-tooltip ant-btn-primary')[0].click();"; - { - var task = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - task.Wait(); - result = task.Result?.Result?.ToString(); - Thread.Sleep(5000); - } - - if (i == operateCount - 1) - { - offSaleMessage = "设置特殊发货时间完成"; - Invoke(new Action(() => - { - var row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colMessage"].Value = offSaleMessage; } - })); - } - // 操作过程中更新显示仓库商品数 - if (i % 50 == 49 || i == operateCount - 1) - GetShopProduct(shop, false); - } - } - Invoke(new Action(() => - { - this.btnStart.Enabled = true; - if (cancellationTokenSource != null && !cancellationTokenSource.IsCancellationRequested) - { - var text = "设置特殊发货时间完成!"; - //if (!string.IsNullOrEmpty(FailedMessages)) - //{ - // text += "部分商品设置发货延迟失败,请查看详情。"; - // btnFailedDetail.Visible = true; - //} - this.statusBar.lblTaskStatus.Text = text; - BaseMsgForm.ShowInfo(text); - } - else - { - var text = "设置特殊发货时间完成!"; - //if (!string.IsNullOrEmpty(FailedMessages)) - //{ - // text += "部分商品设置发货延迟失败,请查看详情。"; - // btnFailedDetail.Visible = true; - //} - this.statusBar.lblTaskStatus.Text = text; - BaseMsgForm.ShowInfo(text); - } - })); - }, cancellationTokenSource.Token); - } - - void InitCef() - { - if (webBrowser == null) - { - Invoke(new Action(() => - { - webBrowser = CEFBrowser.CreateChromiumWebBrowser("about:blank", false); - webBrowser.KeyboardHandler = new KeyboardHandler(); - webBrowser.Dock = DockStyle.Fill; - webBrowser.SendToBack(); - this.panelEx1.Controls.Add(webBrowser); - })); - } - } - - private void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - string headerText = dgvShop.Columns[e.ColumnIndex].HeaderText; - long shopId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToLong(); - string shopName = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ToString(); - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId.ToString()); - switch (headerText) - { - case "操作": - case "全选": - case "选": - if (shop.LoginStatus == "登录成功" && shop.ApiAuthStatus == "授权成功") - { - dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value = !dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value.ParseToBool(); - } - else - { - BaseMsgForm.ShowInfo("店铺未授权或未登录"); - } - break; - } - } - - private void SpecialDelaySendForm_Load(object sender, EventArgs e) - { - chkSelectAll = dgvShop.Columns["colSelect"].AddHeaderCheckBox(HorizontalAlignment.Right, 0, 0, null, null, false); - chkSelectAll.Width = chkSelectAll.Height = 13; - chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged; - } - - private void chkSelectAll_CheckedChanged(object sender, EventArgs e) - { - if (!chkSelectAll.Checked) - { - foreach (DataGridViewRow row in dgvShop.Rows) - { - row.Cells["colSelect"].Value = false; - } - } - else - { - var list = GlobalConfig.ShopLoginList.Where(s => s.ApiAuthStatus == "授权成功" && s.LoginStatus == "登录成功").Select(ss => ss.ShopId); - foreach (DataGridViewRow row in dgvShop.Rows) - { - if (list.Any(l => l == row.Cells["colShopId"]?.Value?.ToString())) - row.Cells["colSelect"].Value = true; - } - } - } - - public string getJsElementStr = "function getElement(txt, elem) {\r\n" + - " var child = document.body.firstElementChild;\r\n" + - " if (elem) child = elem\r\n" + - " var element1 = null;\r\n" + - " while (child) {\r\n" + - " if (child.innerHTML.indexOf(txt) >= 0) {\r\n" + - " element1 = child;\r\n" + - " if (child.firstElementChild) {\r\n" + - " child = child.firstElementChild; continue;\r\n" + - " } else break;\r\n" + - " }\r\n" + - " child = child.nextElementSibling;\r\n" + - " }\r\n" + - " if (element1) {\r\n" + - " return element1;\r\n" + - " } else return error;\r\n" + - "}\r\n"; - - private void btnStop_Click(object sender, EventArgs e) - { - if (cancellationTokenSource != null) - cancellationTokenSource.Cancel(); - } - } -} diff --git a/TEMUKJD/KJDForms/ProductForms/Old/SpecialDelaySendForm.resx b/TEMUKJD/KJDForms/ProductForms/Old/SpecialDelaySendForm.resx deleted file mode 100644 index 4a0af8d..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/SpecialDelaySendForm.resx +++ /dev/null @@ -1,132 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/Old/StockSyncForm.Designer.cs b/TEMUKJD/KJDForms/ProductForms/Old/StockSyncForm.Designer.cs deleted file mode 100644 index 5401777..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/StockSyncForm.Designer.cs +++ /dev/null @@ -1,457 +0,0 @@ -namespace TemuKJD.KJDForms.ProductForms -{ - partial class StockSyncForm - { - /// - /// 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 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(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.txtKeywords = new System.Windows.Forms.TextBox(); - this.ucGroupBoxEx3 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.btnStop = new TemuKJD.UserControls.ButtonEx(); - this.btnSetStock = new TemuKJD.UserControls.ButtonEx(); - this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.btnGetProductCount = new TemuKJD.UserControls.ButtonEx(); - this.btnRefreshShop = new TemuKJD.UserControls.ButtonEx(); - this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.txtStockCount = new System.Windows.Forms.TextBox(); - this.label2 = new System.Windows.Forms.Label(); - this.txtOperateCount = new System.Windows.Forms.TextBox(); - this.label12 = new System.Windows.Forms.Label(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colCanUse = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colDetail = new System.Windows.Forms.DataGridViewLinkColumn(); - this.colOnSaleCount = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colOffSaleCount = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colOperationCount = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.btnFailedDetail = new TemuKJD.UserControls.ButtonEx(); - this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - this.ucGroupBoxEx3.SuspendLayout(); - this.ucGroupBoxEx1.SuspendLayout(); - this.ucGroupBoxEx2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); - this.splitContainer2.Panel1.SuspendLayout(); - this.splitContainer2.Panel2.SuspendLayout(); - this.splitContainer2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgvShop)).BeginInit(); - 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.txtKeywords); - this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx3); - this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx1); - this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx2); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.splitContainer2); - this.splitContainer1.Size = new System.Drawing.Size(856, 542); - this.splitContainer1.SplitterDistance = 120; - this.splitContainer1.TabIndex = 379; - // - // txtKeywords - // - this.txtKeywords.Location = new System.Drawing.Point(772, 12); - this.txtKeywords.Name = "txtKeywords"; - this.txtKeywords.Size = new System.Drawing.Size(79, 23); - this.txtKeywords.TabIndex = 398; - this.txtKeywords.Visible = false; - // - // ucGroupBoxEx3 - // - 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.btnStop); - this.ucGroupBoxEx3.Controls.Add(this.btnSetStock); - this.ucGroupBoxEx3.Location = new System.Drawing.Point(312, 2); - this.ucGroupBoxEx3.Name = "ucGroupBoxEx3"; - this.ucGroupBoxEx3.Size = new System.Drawing.Size(200, 120); - this.ucGroupBoxEx3.TabIndex = 396; - this.ucGroupBoxEx3.TabStop = false; - this.ucGroupBoxEx3.Text = "操作"; - // - // btnStop - // - this.btnStop.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStop.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnStop.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnStop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnStop.ForeColor = System.Drawing.Color.White; - this.btnStop.Location = new System.Drawing.Point(21, 67); - this.btnStop.Margin = new System.Windows.Forms.Padding(2); - this.btnStop.Name = "btnStop"; - this.btnStop.Size = new System.Drawing.Size(80, 26); - this.btnStop.TabIndex = 379; - this.btnStop.Text = "停止操作"; - this.btnStop.UseVisualStyleBackColor = false; - this.btnStop.Click += new System.EventHandler(this.btnStop_Click); - // - // btnSetStock - // - this.btnSetStock.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSetStock.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnSetStock.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnSetStock.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSetStock.ForeColor = System.Drawing.Color.White; - this.btnSetStock.Location = new System.Drawing.Point(21, 30); - this.btnSetStock.Margin = new System.Windows.Forms.Padding(2); - this.btnSetStock.Name = "btnSetStock"; - this.btnSetStock.Size = new System.Drawing.Size(80, 26); - this.btnSetStock.TabIndex = 375; - this.btnSetStock.Text = "设置库存"; - this.btnSetStock.UseVisualStyleBackColor = false; - this.btnSetStock.Click += new System.EventHandler(this.btnSetStock_Click); - // - // ucGroupBoxEx1 - // - 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.btnGetProductCount); - this.ucGroupBoxEx1.Controls.Add(this.btnRefreshShop); - this.ucGroupBoxEx1.Location = new System.Drawing.Point(2, 2); - this.ucGroupBoxEx1.Name = "ucGroupBoxEx1"; - this.ucGroupBoxEx1.Size = new System.Drawing.Size(144, 120); - this.ucGroupBoxEx1.TabIndex = 393; - this.ucGroupBoxEx1.TabStop = false; - this.ucGroupBoxEx1.Text = "店铺刷新"; - // - // btnGetProductCount - // - this.btnGetProductCount.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnGetProductCount.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnGetProductCount.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnGetProductCount.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnGetProductCount.ForeColor = System.Drawing.Color.White; - this.btnGetProductCount.Location = new System.Drawing.Point(15, 67); - this.btnGetProductCount.Margin = new System.Windows.Forms.Padding(2); - this.btnGetProductCount.Name = "btnGetProductCount"; - this.btnGetProductCount.Size = new System.Drawing.Size(113, 26); - this.btnGetProductCount.TabIndex = 375; - this.btnGetProductCount.Text = "获取商品数量"; - this.btnGetProductCount.UseVisualStyleBackColor = false; - this.btnGetProductCount.Click += new System.EventHandler(this.btnGetProductCount_Click); - // - // btnRefreshShop - // - this.btnRefreshShop.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRefreshShop.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnRefreshShop.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnRefreshShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnRefreshShop.ForeColor = System.Drawing.Color.White; - this.btnRefreshShop.Location = new System.Drawing.Point(15, 30); - this.btnRefreshShop.Margin = new System.Windows.Forms.Padding(2); - this.btnRefreshShop.Name = "btnRefreshShop"; - this.btnRefreshShop.Size = new System.Drawing.Size(113, 26); - this.btnRefreshShop.TabIndex = 374; - this.btnRefreshShop.Text = "刷新店铺状态"; - this.btnRefreshShop.UseVisualStyleBackColor = false; - this.btnRefreshShop.Click += new System.EventHandler(this.btnRefreshShop_Click); - // - // ucGroupBoxEx2 - // - this.ucGroupBoxEx2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.ucGroupBoxEx2.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND; - this.ucGroupBoxEx2.Controls.Add(this.txtStockCount); - this.ucGroupBoxEx2.Controls.Add(this.label2); - this.ucGroupBoxEx2.Controls.Add(this.txtOperateCount); - this.ucGroupBoxEx2.Controls.Add(this.label12); - this.ucGroupBoxEx2.Location = new System.Drawing.Point(147, 2); - this.ucGroupBoxEx2.Name = "ucGroupBoxEx2"; - this.ucGroupBoxEx2.Size = new System.Drawing.Size(164, 120); - this.ucGroupBoxEx2.TabIndex = 395; - this.ucGroupBoxEx2.TabStop = false; - this.ucGroupBoxEx2.Text = "参数"; - // - // txtStockCount - // - this.txtStockCount.Location = new System.Drawing.Point(106, 70); - this.txtStockCount.Name = "txtStockCount"; - this.txtStockCount.Size = new System.Drawing.Size(44, 23); - this.txtStockCount.TabIndex = 402; - this.txtStockCount.Text = "99"; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(11, 73); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(92, 17); - this.label2.TabIndex = 397; - this.label2.Text = "设置商品库存为"; - // - // txtOperateCount - // - this.txtOperateCount.Location = new System.Drawing.Point(71, 33); - this.txtOperateCount.Name = "txtOperateCount"; - this.txtOperateCount.Size = new System.Drawing.Size(79, 23); - this.txtOperateCount.TabIndex = 376; - this.txtOperateCount.Text = "999999"; - // - // label12 - // - this.label12.AutoSize = true; - this.label12.Location = new System.Drawing.Point(13, 36); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(56, 17); - this.label12.TabIndex = 378; - this.label12.Text = "处理数量"; - // - // splitContainer2 - // - this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; - this.splitContainer2.Location = new System.Drawing.Point(0, 0); - this.splitContainer2.Name = "splitContainer2"; - this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; - // - // splitContainer2.Panel1 - // - this.splitContainer2.Panel1.Controls.Add(this.dgvShop); - this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 4, 0); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Controls.Add(this.btnFailedDetail); - this.splitContainer2.Panel2.Controls.Add(this.statusBar); - this.splitContainer2.Size = new System.Drawing.Size(856, 418); - this.splitContainer2.SplitterDistance = 388; - this.splitContainer2.TabIndex = 7; - // - // dgvShop - // - this.dgvShop.AllowUserToAddRows = false; - this.dgvShop.AllowUserToDeleteRows = false; - dataGridViewCellStyle4.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4; - this.dgvShop.BackgroundColor = System.Drawing.Color.White; - this.dgvShop.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5; - this.dgvShop.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgvShop.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.colSelect, - this.colShopId, - this.colShopName, - this.colCanUse, - this.colDetail, - this.colOnSaleCount, - this.colOffSaleCount, - this.colOperationCount, - this.colStatus}); - this.dgvShop.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvShop.Location = new System.Drawing.Point(4, 0); - this.dgvShop.Name = "dgvShop"; - this.dgvShop.ReadOnly = true; - dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvShop.RowsDefaultCellStyle = dataGridViewCellStyle6; - this.dgvShop.RowTemplate.Height = 23; - this.dgvShop.Size = new System.Drawing.Size(848, 388); - this.dgvShop.TabIndex = 6; - this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick); - // - // colSelect - // - this.colSelect.FillWeight = 50F; - 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 = 41; - // - // colShopId - // - this.colShopId.HeaderText = "店铺Id"; - this.colShopId.Name = "colShopId"; - this.colShopId.ReadOnly = true; - this.colShopId.Visible = false; - this.colShopId.Width = 150; - // - // colShopName - // - this.colShopName.HeaderText = "店铺名称"; - this.colShopName.Name = "colShopName"; - this.colShopName.ReadOnly = true; - this.colShopName.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colShopName.Width = 250; - // - // colCanUse - // - this.colCanUse.HeaderText = "可用"; - this.colCanUse.Name = "colCanUse"; - this.colCanUse.ReadOnly = true; - this.colCanUse.Width = 50; - // - // colDetail - // - this.colDetail.HeaderText = "查看详情"; - this.colDetail.Name = "colDetail"; - this.colDetail.ReadOnly = true; - this.colDetail.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colDetail.Visible = false; - this.colDetail.Width = 90; - // - // colOnSaleCount - // - this.colOnSaleCount.HeaderText = "出售中"; - this.colOnSaleCount.Name = "colOnSaleCount"; - this.colOnSaleCount.ReadOnly = true; - this.colOnSaleCount.Width = 80; - // - // colOffSaleCount - // - this.colOffSaleCount.HeaderText = "仓库中"; - this.colOffSaleCount.Name = "colOffSaleCount"; - this.colOffSaleCount.ReadOnly = true; - this.colOffSaleCount.Width = 80; - // - // colOperationCount - // - this.colOperationCount.HeaderText = "操作数量"; - this.colOperationCount.Name = "colOperationCount"; - this.colOperationCount.ReadOnly = true; - // - // colStatus - // - this.colStatus.HeaderText = "操作状态"; - this.colStatus.Name = "colStatus"; - this.colStatus.ReadOnly = true; - this.colStatus.Width = 200; - // - // btnFailedDetail - // - this.btnFailedDetail.Anchor = System.Windows.Forms.AnchorStyles.Right; - this.btnFailedDetail.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnFailedDetail.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnFailedDetail.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnFailedDetail.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnFailedDetail.ForeColor = System.Drawing.Color.White; - this.btnFailedDetail.Location = new System.Drawing.Point(772, -3); - this.btnFailedDetail.Margin = new System.Windows.Forms.Padding(2); - this.btnFailedDetail.Name = "btnFailedDetail"; - this.btnFailedDetail.Size = new System.Drawing.Size(80, 26); - this.btnFailedDetail.TabIndex = 377; - this.btnFailedDetail.Text = "失败详情"; - this.btnFailedDetail.UseVisualStyleBackColor = false; - // - // 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(856, 26); - this.statusBar.TabIndex = 2; - // - // StockSyncForm - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(856, 542); - this.Controls.Add(this.splitContainer1); - this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Name = "StockSyncForm"; - this.Text = "StockSyncForm"; - this.Load += new System.EventHandler(this.StockSyncForm_Load); - this.VisibleChanged += new System.EventHandler(this.StockSyncForm_VisibleChanged); - this.splitContainer1.Panel1.ResumeLayout(false); - this.splitContainer1.Panel1.PerformLayout(); - this.splitContainer1.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); - this.splitContainer1.ResumeLayout(false); - this.ucGroupBoxEx3.ResumeLayout(false); - this.ucGroupBoxEx1.ResumeLayout(false); - this.ucGroupBoxEx2.ResumeLayout(false); - this.ucGroupBoxEx2.PerformLayout(); - this.splitContainer2.Panel1.ResumeLayout(false); - this.splitContainer2.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); - this.splitContainer2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.dgvShop)).EndInit(); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.SplitContainer splitContainer1; - private UserComponent.UcGroupBoxEx ucGroupBoxEx3; - private UserControls.ButtonEx btnStop; - private UserControls.ButtonEx btnSetStock; - private UserComponent.UcGroupBoxEx ucGroupBoxEx1; - private UserControls.ButtonEx btnGetProductCount; - private UserControls.ButtonEx btnRefreshShop; - private UserComponent.UcGroupBoxEx ucGroupBoxEx2; - private System.Windows.Forms.TextBox txtStockCount; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.TextBox txtOperateCount; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.SplitContainer splitContainer2; - private UserComponent.DataGridViewEx dgvShop; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopId; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopName; - private System.Windows.Forms.DataGridViewCheckBoxColumn colCanUse; - private System.Windows.Forms.DataGridViewLinkColumn colDetail; - private System.Windows.Forms.DataGridViewTextBoxColumn colOnSaleCount; - private System.Windows.Forms.DataGridViewTextBoxColumn colOffSaleCount; - private System.Windows.Forms.DataGridViewTextBoxColumn colOperationCount; - private System.Windows.Forms.DataGridViewTextBoxColumn colStatus; - private UserControls.StatusBarUserControl statusBar; - private System.Windows.Forms.TextBox txtKeywords; - private UserControls.ButtonEx btnFailedDetail; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/Old/StockSyncForm.cs b/TEMUKJD/KJDForms/ProductForms/Old/StockSyncForm.cs deleted file mode 100644 index eba3f09..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/StockSyncForm.cs +++ /dev/null @@ -1,604 +0,0 @@ -using AllBase; -using AllBase.Helper; -using AllBase.Model.Result; -using TemuKJD.Extension; -using TemuKJD.KJDForms.BaseForms; -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.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; -using Work.DouyinApiClass; - -namespace TemuKJD.KJDForms.ProductForms -{ - public partial class StockSyncForm : BaseForm - { - private int operateCount = 999999; - private int stock = 99; - private List keyWords = null; - private CheckBox chkSelectAll = null; - private List lstShopId = new List(); - public string FailedMessages = ""; - CancellationTokenSource cancellationTokenSource = null; - - public StockSyncForm() - { - InitializeComponent(); - } - - private void StockSyncForm_Load(object sender, EventArgs e) - { - chkSelectAll = dgvShop.Columns["colSelect"].AddHeaderCheckBox(HorizontalAlignment.Right, 0, 0, null, null, false); - chkSelectAll.Width = chkSelectAll.Height = 13; - chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged; - } - - private void StockSyncForm_VisibleChanged(object sender, EventArgs e) - { - RefreshShop(); - } - - private void RefreshShop() - { - // 更新选中的上货店铺Id - lstShopId = lstShopId.Where(id => GlobalConfig.ShopLoginList.Any(s => s.ShopId == id && s.LoginStatus == "已授权")).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) - { - BindShop(shopEntity); - } - } - - private void BindShop(ShopLoginInfo shopEntity) - { - var row = dgvShop.Rows.Cast().FirstOrDefault(p => p.Cells.GetCellValueFromColumnName("colShopId").ParseToString() == shopEntity.ShopId); - if (row == null) - { - this.dgvShop.Rows.Add( - false, - shopEntity.ShopId, - shopEntity.ShopAccount, - shopEntity.ApiAuthStatus == "授权成功" ? true : false, - "查看详情", - shopEntity.OnlineProductCount >= 0 ? shopEntity.OnlineProductCount.ToString() : "", - shopEntity.OfflineProductCount >= 0 ? shopEntity.OfflineProductCount.ToString() : "", - string.Empty, - string.Empty - ); - } - else - { - row.Cells["colSelect"].Value = lstShopId.Contains(shopEntity.ShopId); - row.Cells["colShopName"].Value = shopEntity.ShopAccount; - row.Cells["colCanUse"].Value = shopEntity.ApiAuthStatus == "授权成功" ? true : false; - row.Cells["colOnSaleCount"].Value = shopEntity.OnlineProductCount >= 0 ? shopEntity.OnlineProductCount.ToString() : ""; - row.Cells["colOffSaleCount"].Value = shopEntity.OfflineProductCount >= 0 ? shopEntity.OfflineProductCount.ToString() : ""; - } - } - - private void chkSelectAll_CheckedChanged(object sender, EventArgs e) - { - if (!chkSelectAll.Checked) - { - lstShopId.Clear(); - foreach (DataGridViewRow row in dgvShop.Rows) - { - row.Cells["colSelect"].Value = false; - } - } - else - { - lstShopId.Clear(); - var list = GlobalConfig.ShopLoginList.Where(s => s.ApiAuthStatus == "授权成功").Select(ss => ss.ShopId); - lstShopId.AddRange(list); - foreach (DataGridViewRow row in dgvShop.Rows) - { - if (list.Any(l => l == row.Cells["colShopId"]?.Value?.ToString())) - row.Cells["colSelect"].Value = true; - } - } - } - - private void btnRefreshShop_Click(object sender, EventArgs e) - { - RefreshShop(); - } - - private void btnGetProductCount_Click(object sender, EventArgs e) - { - if (lstShopId.Count == 0) - { - BaseMsgForm.ShowInfo("请选择要获取商品数量的店铺"); - return; - } - this.btnGetProductCount.Enabled = false; - foreach (DataGridViewRow row in dgvShop.Rows) - { - if (lstShopId.Contains(row.Cells["colShopId"]?.Value)) - row.Cells["colStatus"].Value = ""; - } - Task.Run(() => - { - GetShopProduct(); - - Invoke(new Action(() => - { - btnGetProductCount.Enabled = true; - BaseMsgForm.ShowInfo("商品数量获取完成"); - })); - }); - } - - void GetShopProduct(bool isShowProgress = true) - { - int i = 0; - var shopList = GlobalConfig.ShopLoginList.Where(s => s.ApiAuthStatus == "授权成功" && lstShopId.Contains(s.ShopId)); - foreach (var shop in shopList) - { - this.Invoke(new Action(() => - { - i++; - var total = shopList.Count(); - - if (isShowProgress) - { - this.statusBar.lblTaskStatus.Text = "正在获取..."; - this.statusBar.pgbTaskProgress.Value = i; - this.statusBar.pgbTaskProgress.Text = i + "/" + total; - this.statusBar.pgbTaskProgress.Maximum = total; - } - })); - - GetShopProduct(shop); - Thread.Sleep(Randomx.GetId(50, 150)); - } - Invoke(new Action(() => - { - if (isShowProgress) - this.statusBar.lblTaskStatus.Text = "获取完成"; - })); - } - - void GetShopProduct(ShopLoginInfo shop, bool isShowResult = true) - { - DataGridViewRow row = null; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) - { - if (isShowResult) - row.Cells["colStatus"].Value = "正在获取店铺商品数量"; - } - })); - - // 读取在售商品数量 - var resultOnline = GetShopProductListData(shop, 0, 1, 10); - if (resultOnline.Contains("\"code\":10000")) - { - if (row != null) - { - var text = BaseRegex.GetStringJson(ref resultOnline, "total"); - shop.OnlineProductCount = text.ParseToInt(); - - Invoke(new Action(() => - { - row.Cells["colOnSaleCount"].Value = string.IsNullOrEmpty(text) ? "" : text; - })); - } - } - // 读取下架商品数量 - var resultOffline = GetShopProductListData(shop, 1, 1, 10); - if (resultOffline.Contains("\"code\":10000")) - { - if (row != null) - { - var text = BaseRegex.GetStringJson(ref resultOffline, "total"); - shop.OfflineProductCount = text.ParseToInt(); - - Invoke(new Action(() => - { - row.Cells["colOffSaleCount"].Value = string.IsNullOrEmpty(text) ? "" : text; - })); - } - } - - string resultShowText = ""; - if (resultOnline.Contains("\"code\":10000") && resultOffline.Contains("\"code\":10000")) - { - resultShowText = "商品数量获取成功"; - } - else - { - resultShowText = "商品数量获取失败"; - if (!resultOnline.Contains("\"code\":10000")) - { - var html = BaseRegex.GetStringJson(ref resultOnline, "sub_msg"); - if (string.IsNullOrEmpty(html)) - html = resultOnline; - resultShowText += ",获取在售商品错误:" + html; - } - if (!resultOffline.Contains("\"code\":10000")) - { - var html = BaseRegex.GetStringJson(ref resultOffline, "sub_msg"); - if (string.IsNullOrEmpty(html)) - html = resultOffline; - resultShowText += ",获取仓库商品错误:" + html; - } - } - Invoke(new Action(() => - { - if (row != null) - { - if (isShowResult) - row.Cells["colStatus"].Value = resultShowText; - } - })); - } - - public string GetShopProductListData(ShopLoginInfo shop, int productStatus = 0, int page = 1, int pageSize = 50) - { - // 读取在售商品数量 - Dictionary dictionary = new Dictionary(); - dictionary.Add("page", page.ToString()); - dictionary.Add("size", pageSize.ToString()); - if (productStatus == 0) - dictionary.Add("check_status", "3"); - dictionary["status"] = productStatus.ToString(); - DouyinApi douApi = new DouyinApi(shop); - douApi.JsonData = dictionary; - var resultOnline = douApi.GetProductList(); - return resultOnline; - } - - private void btnStop_Click(object sender, EventArgs e) - { - if (cancellationTokenSource != null) - cancellationTokenSource.Cancel(); - } - - private void btnSetStock_Click(object sender, EventArgs e) - { - if (lstShopId.Count == 0) - { - BaseMsgForm.ShowInfo("请选择要设置库存的店铺"); - return; - } - try - { - stock = txtStockCount.Text.ParseToInt(); - this.operateCount = Convert.ToInt32(txtOperateCount.Text); - this.keyWords = txtKeywords.Text.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); - } - catch (Exception ex) - { - BaseMsgForm.ShowInfo("请输入正确的参数"); - return; - } - FailedMessages = ""; - this.btnFailedDetail.Visible = false; - this.btnSetStock.Enabled = false; - foreach (DataGridViewRow row in dgvShop.Rows) - { - if (lstShopId.Contains(row.Cells["colShopId"].Value?.ToString())) - row.Cells["colStatus"].Value = ""; - } - - int n = 0; - cancellationTokenSource = new CancellationTokenSource(); - //notClearDate = DateTime.Now.Date.AddDays(0 - this.txtNotOperateDays.ParseToInt()); - - Task.Run(() => - { - foreach (var shopId in lstShopId) - { - this.Invoke(new Action(() => - { - n++; - var total = lstShopId.Count(); - - this.statusBar.lblTaskStatus.Text = "正在设置库存..."; - this.statusBar.pgbTaskProgress.Value = n; - this.statusBar.pgbTaskProgress.Text = n + "/" + total; - this.statusBar.pgbTaskProgress.Maximum = total; - })); - - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId); - if (shop == null) - continue; - - DataGridViewRow row = null; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = "正在设置库存"; } - })); - - // 显示商品数 - GetShopProduct(shop, false); - - int totalNumBase = shop.OnlineProductCount; // 设置开始时的在售商品数 - int totalNum = shop.OnlineProductCount; // 在售商品数 - int setNum = 0; // 设置商品数量(因关键词存在因此少于或等于商品循环计数) - int currentNum = 0; // 商品循环计数 - int page = 0; - int pageSize = 50; - string offSaleMessage = ""; - List productList = new List(); - - var waitSetStockHtml = ""; - - while ((currentNum < operateCount && currentNum < totalNumBase) || page == 0) - { - page += 1; - currentNum += pageSize; - if (cancellationTokenSource.IsCancellationRequested) - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { Invoke(new Action(() => { row.Cells["colStatus"].Value = "下架中断"; })); } - break; - } - - // 获取商品列表 - waitSetStockHtml = GetShopProductListData(shop, 0, page); - Thread.Sleep(Randomx.GetId(500, 1000)); - - if (waitSetStockHtml.Contains("\"code\":10000")) - { - totalNum = BaseRegex.GetIntJson(ref waitSetStockHtml, "total"); - shop.OfflineProductCount = totalNum; - - if (operateCount > totalNumBase) - operateCount = totalNumBase; - if (currentNum > totalNumBase) - currentNum = totalNumBase; - - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) - { - row.Cells["colOnSaleCount"].Value = totalNumBase; - } - })); - if (totalNum == 0) - { - offSaleMessage = "设置结束,店铺没有在售的商品"; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = offSaleMessage; } - })); - break; - } - - try - { - JObject jObj = JObject.Parse(waitSetStockHtml); - var jObjDataStr = jObj["data"]?["data"]?.ToString(); - if (!string.IsNullOrEmpty(jObjDataStr)) - { - var addList = JsonHelper.DeserializeJsonToList(jObjDataStr); - if (addList != null) - productList.AddRange(addList); - } - offSaleMessage = "正在获取商品,第" + currentNum + "件商品,共" + operateCount + "件商品"; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = offSaleMessage; } - })); - } - catch (Exception ex) - { - BaseMsgForm.ShowError("获取商品发生错误:" + ex.Message); - } - } - else - { - var failMessage = BaseRegex.GetStringJson(ref waitSetStockHtml, "sub_msg"); - if (string.IsNullOrEmpty(failMessage)) - failMessage = waitSetStockHtml; - offSaleMessage = ("设置库存失败," + failMessage).TrimEnd(','); - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = offSaleMessage; } - })); - } - } - - // 有关键词的过滤符合关键词 - if (keyWords.Any()) - productList = productList.Where(p => keyWords.Any(key => p.name.Contains(key))).ToList(); - - // 只操作指定天数之前修改的商品 - //productList = productList.Where(p => p.update_time < BaseClass.DateTimeToTimestampSeconds(notClearDate)).ToList(); - - // 操作数大于满足筛选条件商品数时,操作数改为商品数 - if (operateCount > productList.Count) - operateCount = productList.Count; - - for (int i = 0; i < productList.Count && i < operateCount; i++) - { - if (cancellationTokenSource.IsCancellationRequested) - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { Invoke(new Action(() => { row.Cells["colStatus"].Value = "设置库存中断"; })); } - break; - } - - Invoke(new Action(() => - { - offSaleMessage = "正在设置库存,第 " + (i + 1) + " 件商品,共" + operateCount + "件商品"; - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = offSaleMessage; } - })); - Thread.Sleep(50); - - var product = productList[i]; - setNum++; - - var pid = product.product_id; - Thread.Sleep(Randomx.GetId(100, 300)); - var productDetail = GetProductDetail(shop, pid.ToString()); - if (productDetail == null || productDetail.Contains("spec_prices") == false) - productDetail = "{\"data\":{\"spec_prices\":[]}}"; - var skus = JObject.Parse(productDetail)?["data"]?["spec_prices"]; - //var skuIds = BaseRegex.GetMatchRegex(ref productDetail, "\"sku_id\":\\d{1,20}"); - int num = 0; - foreach (JObject jObj in skus) - { - num++; - - var skuStr = JsonHelper.SerializeObject(jObj); - var skuId = BaseRegex.GetLongJson(ref skuStr, "sku_id"); - var old_stock = BaseRegex.GetLongJson(ref skuStr, "stock_num"); - if (old_stock == stock) - continue; - - var offSaleResultCode = SetProductStock(shop, pid.ToString(), skuId.ToString(), stock.ToString()); - if (!offSaleResultCode.Contains("\"code\":10000")) - { - Thread.Sleep(Randomx.GetId(1000, 3000)); - offSaleResultCode = SetProductStock(shop, pid.ToString(), skuId.ToString(), stock.ToString()); - } - Thread.Sleep(Randomx.GetId(50, 150)); - if (offSaleResultCode.Contains("\"code\":10000")) - { - LogSave.Add(""); - offSaleMessage = "设置库存中,第" + setNum + "件商品,共" + operateCount + "件商品"; - Thread.Sleep(Randomx.GetId(50, 150)); - } - else - { - var failMessage = BaseRegex.GetStringJson(ref offSaleResultCode, "sub_msg"); - if (string.IsNullOrEmpty(failMessage)) - failMessage = BaseRegex.GetStringJson(ref offSaleResultCode, "status_reason"); - if (string.IsNullOrEmpty(failMessage)) - failMessage = offSaleResultCode; - FailedMessages += "店铺:" + shop.ShopAccount + ",商品id:" + pid + ",skuId:" + skuId + ",错误信息:" + failMessage + "\r\n"; - offSaleMessage = ("设置库存失败," + failMessage).TrimEnd(','); - Thread.Sleep(10000); - } - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = offSaleMessage; } - })); - Thread.Sleep(Randomx.GetId(100, 200)); - if (offSaleMessage.Contains("违规") || offSaleMessage.Contains("禁售")) - continue; - if (offSaleMessage.Contains("失败")) - continue; - } - - if (i == operateCount - 1) - { - offSaleMessage = "设置库存完成"; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colStatus"].Value = offSaleMessage; } - })); - } - // 操作过程中更新显示仓库商品数 - if (i % 50 == 49 || i == operateCount - 1) - GetShopProduct(shop, false); - } - } - Invoke(new Action(() => - { - this.btnSetStock.Enabled = true; - if (!cancellationTokenSource.IsCancellationRequested) - { - var text = "设置库存完成!"; - if (!string.IsNullOrEmpty(FailedMessages)) - { - //text += "部分商品设置库存失败,请查看详情。"; - //btnFailedDetail.Visible = true; - } - this.statusBar.lblTaskStatus.Text = text; - BaseMsgForm.ShowInfo(text); - } - else - { - var text = "设置库存中断!"; - if (!string.IsNullOrEmpty(FailedMessages)) - { - //text += "部分商品设置库存失败,请查看详情。"; - //btnFailedDetail.Visible = true; - } - this.statusBar.lblTaskStatus.Text = text; - BaseMsgForm.ShowInfo(text); - } - })); - }, cancellationTokenSource.Token); - } - - public string SetProductStock(ShopLoginInfo shop, string productId, string skuId, string stock) - { - Dictionary dictionary = new Dictionary(); - dictionary.Add("product_id", productId); - dictionary.Add("sku_id", skuId); - dictionary.Add("stock_num", stock); - DouyinApi douApi = new DouyinApi(shop); - douApi.JsonData = dictionary; - var resultOnline = douApi.SetProductStock(); - return resultOnline; - } - public string GetProductDetail(ShopLoginInfo shop, string productId) - { - Dictionary dictionary = new Dictionary(); - dictionary.Add("product_id", productId); - DouyinApi douApi = new DouyinApi(shop); - douApi.JsonData = dictionary; - var resultOnline = douApi.GetProductDetail(); - return resultOnline; - } - - private void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - string headerText = dgvShop.Columns[e.ColumnIndex].HeaderText; - long shopId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToLong(); - string shopName = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ToString(); - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId.ToString()); - switch (headerText) - { - case "操作": - case "选": - if (dgvShop.Rows[e.RowIndex].Cells["colCanuse"].Value.ParseToBool()) - { - dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value = !dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value.ParseToBool(); - if (dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value.ParseToBool()) - lstShopId.Add(shopId.ToString()); - else - lstShopId.Remove(shopId.ToString()); - } - else - { - BaseMsgForm.ShowInfo("店铺未授权"); - } - break; - } - } - } -} diff --git a/TEMUKJD/KJDForms/ProductForms/Old/StockSyncForm.resx b/TEMUKJD/KJDForms/ProductForms/Old/StockSyncForm.resx deleted file mode 100644 index aa4078e..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/StockSyncForm.resx +++ /dev/null @@ -1,147 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/Old/TbSettleSlideForm.cs b/TEMUKJD/KJDForms/ProductForms/Old/TbSettleSlideForm.cs deleted file mode 100644 index 70e2a72..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/TbSettleSlideForm.cs +++ /dev/null @@ -1,159 +0,0 @@ -using AllBase; -using TemuKJD.KJDForms.BaseForms; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace TemuKJD.KJDForms -{ - public partial class TbSettleSlideForm : LRBaseForm - { - public IeForm tbDetailForm; - public string slideUrl = ""; - public TbSettleSlideForm() - { - InitializeComponent(); - TitleText = "解除滑块"; - //IsMinized = false; - //IsMaxized = false; - } - - private void panelCopyCookies_Click(object sender, EventArgs e) - { - string cookies = string.Empty; - IDataObject iData = Clipboard.GetDataObject(); - if (iData.GetDataPresent(DataFormats.Text)) - { - cookies = (string)iData.GetData(DataFormats.Text); - } - if (string.IsNullOrEmpty(cookies)) - { - return; - } - string x5Sec = BaseRegex.GetMatchRegexString(ref cookies, "\"name\": \"x5sec\",[\\s\\S]+?\"value\": \"([\\s\\S]+?)\""); - if (string.IsNullOrEmpty(x5Sec)) - { - x5Sec = BaseRegex.GetMatchRegexString(ref cookies, "x5sec=([\\s\\S]+?);"); - } - if (string.IsNullOrEmpty(x5Sec)) - { - Thread.Sleep(2000); - BaseClass.x5Sec = BaseRegex.GetMatchRegexString(ref IeForm.ChromeCookies, @"x5sec=([\w\W]+?);"); - } - if (string.IsNullOrEmpty(x5Sec)) - { - return; - } - if (tbDetailForm != null) - { - tbDetailForm.x5Sec = x5Sec; - tbDetailForm.ExecX5secJs(); - } - new Thread(CloseForm).Start(); - BaseClass.x5Sec = x5Sec; - //var tbCookes = BaseClass.CookiesAll["taobao.com"]; - //foreach (KeyValuePair> co in BaseClass.CookiesAll)//同步到系统 - //{ - // if (true) - // { - - // } - // string cook = ""; - // foreach (KeyValuePair c in co.Value) - // { - // if (c.Key == "x5sec") - // { - // cook += c.Key + "=" + x5Sec + "; "; - // } - // else - // { - // cook += c.Key + "=" + c.Value + "; "; - // } - // } - // if (BaseClass.CookiesAllString.ContainsKey(co.Key)) - // { - // BaseClass.CookiesAllString[co.Key] = cook; - // } - // else - // { - // BaseClass.CookiesAllString.Add(co.Key, cook); - // } - //} - new Thread(CloseForm).Start(); - //CloseForm(); - } - - private void TbSettleSlideForm_FormClosed(object sender, FormClosedEventArgs e) - { - //BaseClass.SlideIsClose = false; - //BaseClass.SlideCookiesReplace = false; - //BaseClass.IeUrlShow = ""; - } - - private void panelInstall_Click(object sender, EventArgs e) - { - GetHtml.OpenUrl("https://ext.chrome.360.cn/webstore/detail/fngmhnnpilhplaeedifhccceomclgfbg"); - } - - private void panelOpenSlideUrl_Click(object sender, EventArgs e) - { - if (string.IsNullOrEmpty(slideUrl)) - { - return; - } - GetHtml.OpenUrl(slideUrl); - } - - private void panelCopySlideUrl_Click(object sender, EventArgs e) - { - if (string.IsNullOrEmpty(slideUrl)) - { - return; - } - Clipboard.SetDataObject(slideUrl); - } - - - public void CloseForm() - { - try - { - Thread.Sleep(1000); - if (InvokeRequired) - { - Invoke(new Action(() => - { - this.Close(); - })); - } - else - { - this.Close(); - } - } - catch (Exception) - { - - //throw; - } - - } - - private void panelEx1_Click(object sender, EventArgs e) - { - if (slideUrl.Contains("https://trade-acs.m.taobao.com/")) - Clipboard.SetDataObject("https://trade-acs.m.taobao.com/"); - else if (slideUrl.Contains("https://acs.m.taobao.com")) - Clipboard.SetDataObject("https://acs.m.taobao.com"); - else - Clipboard.SetDataObject("https://guide-acs.m.taobao.com:443"); - } - } -} diff --git a/TEMUKJD/KJDForms/ProductForms/Old/TbSettleSlideForm.designer.cs b/TEMUKJD/KJDForms/ProductForms/Old/TbSettleSlideForm.designer.cs deleted file mode 100644 index d2eeac0..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/TbSettleSlideForm.designer.cs +++ /dev/null @@ -1,298 +0,0 @@ -namespace TemuKJD.KJDForms -{ - partial class TbSettleSlideForm - { - /// - /// 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() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TbSettleSlideForm)); - this.panelCopyCookies = new DevComponents.DotNetBar.PanelEx(); - this.panelInstall = new DevComponents.DotNetBar.PanelEx(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.panelOpenSlideUrl = new DevComponents.DotNetBar.PanelEx(); - this.panelCopySlideUrl = new DevComponents.DotNetBar.PanelEx(); - this.label5 = new System.Windows.Forms.Label(); - this.pictureBox1 = new System.Windows.Forms.PictureBox(); - this.panelEx1 = new DevComponents.DotNetBar.PanelEx(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); - this.SuspendLayout(); - // - // panelCopyCookies - // - this.panelCopyCookies.CanvasColor = System.Drawing.SystemColors.Control; - this.panelCopyCookies.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.panelCopyCookies.Cursor = System.Windows.Forms.Cursors.Hand; - this.panelCopyCookies.DisabledBackColor = System.Drawing.Color.Empty; - this.panelCopyCookies.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.panelCopyCookies.Location = new System.Drawing.Point(34, 391); - this.panelCopyCookies.Name = "panelCopyCookies"; - this.panelCopyCookies.Size = new System.Drawing.Size(171, 29); - this.panelCopyCookies.Style.Alignment = System.Drawing.StringAlignment.Center; - this.panelCopyCookies.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(251)))), ((int)(((byte)(251)))), ((int)(((byte)(251))))); - this.panelCopyCookies.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191))))); - this.panelCopyCookies.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.panelCopyCookies.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(171)))), ((int)(((byte)(171)))), ((int)(((byte)(171))))); - this.panelCopyCookies.Style.CornerDiameter = 1; - this.panelCopyCookies.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; - this.panelCopyCookies.Style.ForeColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); - this.panelCopyCookies.Style.GradientAngle = 90; - this.panelCopyCookies.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.panelCopyCookies.StyleMouseDown.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(241)))), ((int)(((byte)(241))))); - this.panelCopyCookies.StyleMouseDown.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(171)))), ((int)(((byte)(171)))), ((int)(((byte)(171))))); - this.panelCopyCookies.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.panelCopyCookies.StyleMouseOver.BackColor2.Color = System.Drawing.Color.LightGray; - this.panelCopyCookies.TabIndex = 575; - this.panelCopyCookies.Text = "复制Cookie成功后点我"; - this.panelCopyCookies.Click += new System.EventHandler(this.panelCopyCookies_Click); - // - // panelInstall - // - this.panelInstall.CanvasColor = System.Drawing.SystemColors.Control; - this.panelInstall.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.panelInstall.Cursor = System.Windows.Forms.Cursors.Hand; - this.panelInstall.DisabledBackColor = System.Drawing.Color.Empty; - this.panelInstall.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.panelInstall.Location = new System.Drawing.Point(36, 70); - this.panelInstall.Name = "panelInstall"; - this.panelInstall.Size = new System.Drawing.Size(171, 29); - this.panelInstall.Style.Alignment = System.Drawing.StringAlignment.Center; - this.panelInstall.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(251)))), ((int)(((byte)(251)))), ((int)(((byte)(251))))); - this.panelInstall.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191))))); - this.panelInstall.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.panelInstall.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(171)))), ((int)(((byte)(171)))), ((int)(((byte)(171))))); - this.panelInstall.Style.CornerDiameter = 1; - this.panelInstall.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; - this.panelInstall.Style.ForeColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); - this.panelInstall.Style.GradientAngle = 90; - this.panelInstall.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.panelInstall.StyleMouseDown.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(241)))), ((int)(((byte)(241))))); - this.panelInstall.StyleMouseDown.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(171)))), ((int)(((byte)(171)))), ((int)(((byte)(171))))); - this.panelInstall.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.panelInstall.StyleMouseOver.BackColor2.Color = System.Drawing.Color.LightGray; - this.panelInstall.TabIndex = 582; - this.panelInstall.Text = "点我安装(已安装,请忽略)"; - this.panelInstall.Click += new System.EventHandler(this.panelInstall_Click); - // - // label1 - // - this.label1.AutoSize = true; - this.label1.ForeColor = System.Drawing.Color.Red; - this.label1.Location = new System.Drawing.Point(34, 52); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(155, 12); - this.label1.TabIndex = 583; - this.label1.Text = "第一步:安装360极速浏览器"; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.ForeColor = System.Drawing.Color.Red; - this.label2.Location = new System.Drawing.Point(189, 52); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(275, 12); - this.label2.TabIndex = 584; - this.label2.Text = ",并安装插件EditThisCookie(其他浏览器自行安装)"; - // - // label3 - // - this.label3.AutoSize = true; - this.label3.ForeColor = System.Drawing.Color.Red; - this.label3.Location = new System.Drawing.Point(189, 113); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(0, 12); - this.label3.TabIndex = 586; - // - // label4 - // - this.label4.AutoSize = true; - this.label4.ForeColor = System.Drawing.Color.Red; - this.label4.Location = new System.Drawing.Point(34, 113); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(155, 12); - this.label4.TabIndex = 585; - this.label4.Text = "第二步:打开链接,处理滑块"; - // - // panelOpenSlideUrl - // - this.panelOpenSlideUrl.CanvasColor = System.Drawing.SystemColors.Control; - this.panelOpenSlideUrl.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.panelOpenSlideUrl.Cursor = System.Windows.Forms.Cursors.Hand; - this.panelOpenSlideUrl.DisabledBackColor = System.Drawing.Color.Empty; - this.panelOpenSlideUrl.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.panelOpenSlideUrl.Location = new System.Drawing.Point(419, 134); - this.panelOpenSlideUrl.Name = "panelOpenSlideUrl"; - this.panelOpenSlideUrl.Size = new System.Drawing.Size(171, 29); - this.panelOpenSlideUrl.Style.Alignment = System.Drawing.StringAlignment.Center; - this.panelOpenSlideUrl.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(251)))), ((int)(((byte)(251)))), ((int)(((byte)(251))))); - this.panelOpenSlideUrl.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191))))); - this.panelOpenSlideUrl.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.panelOpenSlideUrl.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(171)))), ((int)(((byte)(171)))), ((int)(((byte)(171))))); - this.panelOpenSlideUrl.Style.CornerDiameter = 1; - this.panelOpenSlideUrl.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; - this.panelOpenSlideUrl.Style.ForeColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); - this.panelOpenSlideUrl.Style.GradientAngle = 90; - this.panelOpenSlideUrl.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.panelOpenSlideUrl.StyleMouseDown.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(241)))), ((int)(((byte)(241))))); - this.panelOpenSlideUrl.StyleMouseDown.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(171)))), ((int)(((byte)(171)))), ((int)(((byte)(171))))); - this.panelOpenSlideUrl.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.panelOpenSlideUrl.StyleMouseOver.BackColor2.Color = System.Drawing.Color.LightGray; - this.panelOpenSlideUrl.TabIndex = 590; - this.panelOpenSlideUrl.Text = "默认浏览器打开滑块链接"; - this.panelOpenSlideUrl.Visible = false; - this.panelOpenSlideUrl.Click += new System.EventHandler(this.panelOpenSlideUrl_Click); - // - // panelCopySlideUrl - // - this.panelCopySlideUrl.CanvasColor = System.Drawing.SystemColors.Control; - this.panelCopySlideUrl.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.panelCopySlideUrl.Cursor = System.Windows.Forms.Cursors.Hand; - this.panelCopySlideUrl.DisabledBackColor = System.Drawing.Color.Empty; - this.panelCopySlideUrl.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.panelCopySlideUrl.Location = new System.Drawing.Point(36, 134); - this.panelCopySlideUrl.Name = "panelCopySlideUrl"; - this.panelCopySlideUrl.Size = new System.Drawing.Size(171, 29); - this.panelCopySlideUrl.Style.Alignment = System.Drawing.StringAlignment.Center; - this.panelCopySlideUrl.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(251)))), ((int)(((byte)(251)))), ((int)(((byte)(251))))); - this.panelCopySlideUrl.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191))))); - this.panelCopySlideUrl.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.panelCopySlideUrl.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(171)))), ((int)(((byte)(171)))), ((int)(((byte)(171))))); - this.panelCopySlideUrl.Style.CornerDiameter = 1; - this.panelCopySlideUrl.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; - this.panelCopySlideUrl.Style.ForeColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); - this.panelCopySlideUrl.Style.GradientAngle = 90; - this.panelCopySlideUrl.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.panelCopySlideUrl.StyleMouseDown.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(241)))), ((int)(((byte)(241))))); - this.panelCopySlideUrl.StyleMouseDown.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(171)))), ((int)(((byte)(171)))), ((int)(((byte)(171))))); - this.panelCopySlideUrl.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.panelCopySlideUrl.StyleMouseOver.BackColor2.Color = System.Drawing.Color.LightGray; - this.panelCopySlideUrl.TabIndex = 594; - this.panelCopySlideUrl.Text = "点我复制滑块链接"; - this.panelCopySlideUrl.Click += new System.EventHandler(this.panelCopySlideUrl_Click); - // - // label5 - // - this.label5.AutoSize = true; - this.label5.ForeColor = System.Drawing.Color.Red; - this.label5.Location = new System.Drawing.Point(34, 183); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(551, 12); - this.label5.TabIndex = 595; - this.label5.Text = "第三步:解除滑块之后,点击点我复制原滑块链接按钮,复制网址到浏览器中,按照下面指示复制Cookie"; - // - // pictureBox1 - // - this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); - this.pictureBox1.Location = new System.Drawing.Point(36, 207); - this.pictureBox1.Name = "pictureBox1"; - this.pictureBox1.Size = new System.Drawing.Size(629, 174); - this.pictureBox1.TabIndex = 596; - this.pictureBox1.TabStop = false; - // - // panelEx1 - // - this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control; - this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.panelEx1.Cursor = System.Windows.Forms.Cursors.Hand; - this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty; - this.panelEx1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.panelEx1.Location = new System.Drawing.Point(227, 134); - this.panelEx1.Name = "panelEx1"; - this.panelEx1.Size = new System.Drawing.Size(171, 29); - this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center; - this.panelEx1.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(251)))), ((int)(((byte)(251)))), ((int)(((byte)(251))))); - this.panelEx1.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191))))); - this.panelEx1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.panelEx1.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(171)))), ((int)(((byte)(171)))), ((int)(((byte)(171))))); - this.panelEx1.Style.CornerDiameter = 1; - this.panelEx1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; - this.panelEx1.Style.ForeColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); - this.panelEx1.Style.GradientAngle = 90; - this.panelEx1.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.panelEx1.StyleMouseDown.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(241)))), ((int)(((byte)(241))))); - this.panelEx1.StyleMouseDown.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(171)))), ((int)(((byte)(171)))), ((int)(((byte)(171))))); - this.panelEx1.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.panelEx1.StyleMouseOver.BackColor2.Color = System.Drawing.Color.LightGray; - this.panelEx1.TabIndex = 612; - this.panelEx1.Text = "点我复制原滑块链接"; - this.panelEx1.Click += new System.EventHandler(this.panelEx1_Click); - // - // TbSettleSlideForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(665, 435); - this.Controls.Add(this.panelEx1); - this.Controls.Add(this.pictureBox1); - this.Controls.Add(this.label5); - this.Controls.Add(this.panelCopySlideUrl); - this.Controls.Add(this.panelOpenSlideUrl); - this.Controls.Add(this.label3); - this.Controls.Add(this.label4); - this.Controls.Add(this.label2); - this.Controls.Add(this.label1); - this.Controls.Add(this.panelInstall); - this.Controls.Add(this.panelCopyCookies); - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Name = "TbSettleSlideForm"; - this.Text = "滑块处理"; - this.TitleText = "滑块处理"; - this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.TbSettleSlideForm_FormClosed); - this.Controls.SetChildIndex(this.panelCopyCookies, 0); - this.Controls.SetChildIndex(this.panelInstall, 0); - this.Controls.SetChildIndex(this.label1, 0); - this.Controls.SetChildIndex(this.label2, 0); - this.Controls.SetChildIndex(this.label4, 0); - this.Controls.SetChildIndex(this.label3, 0); - this.Controls.SetChildIndex(this.panelOpenSlideUrl, 0); - this.Controls.SetChildIndex(this.panelCopySlideUrl, 0); - this.Controls.SetChildIndex(this.label5, 0); - this.Controls.SetChildIndex(this.pictureBox1, 0); - this.Controls.SetChildIndex(this.panelEx1, 0); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private DevComponents.DotNetBar.PanelEx panelCopyCookies; - private DevComponents.DotNetBar.PanelEx panelInstall; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private DevComponents.DotNetBar.PanelEx panelOpenSlideUrl; - private DevComponents.DotNetBar.PanelEx panelCopySlideUrl; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.PictureBox pictureBox1; - private DevComponents.DotNetBar.PanelEx panelEx1; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/Old/TbSettleSlideForm.resx b/TEMUKJD/KJDForms/ProductForms/Old/TbSettleSlideForm.resx deleted file mode 100644 index 9c37666..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/TbSettleSlideForm.resx +++ /dev/null @@ -1,509 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - - - iVBORw0KGgoAAAANSUhEUgAAAlUAAACDCAIAAAArnHn+AAAABGdBTUEAALGPC/xhBQAAMDNJREFUeF7t - nQt0VdW573G0Z/SOM8bt6R322J62o+31nqv3qK0PKLYnFAuIKCIqKUUCBLCAQiolRYmtcMAUH6iNOZRU - CagEJCES0PIo8UF4GCAgIREJEAgJ4ZEEECIQCGS/7jfX/NZccz332jv7xd7fb8yxM+dc8/HNx5r/Pddj - p0crQRAEQSQq3/72t9Gnxy7ePaR/BEEQROIycOBAkDozEI8pwoX0jyAIgkhFSP8IgiCIVIT0jyAIgkhF - SP8IgiCIVIT0jyAIgkhFSP8IgiCIVIT0jyAIgkhFSP8IgiCIVIT0jyAIgkhFegQIgiAIIvUg/SMIgiBS - EdI/giAIIup4fv7zeDm0wATpH0EQBBF1DJoUS4cWmCD9IwiCIKKOQZNi6dACE6R/BEEQRNQJqkYRJ2iN - PU4TROpx9uzZq1ev4kngAq/X29HRcYEgogxMM5hsOO2Si6BqJIBzs729vbW19cSJE80K4IEgRIZ02gat - kfSPSFFAAvEkcAGJHxEzYLLhtEsugqoRAG0HqTvqCCRw2UVBayT9I1IXPAlcgCsTQcQEnHbJhbMadXV1 - tbS0oMS5ABJDFsxsg3ONAOkfkbrgSeACXJYIIibgtEsuHNSos7Pz2LFjqGyugSyQEYuwwqFGDukfkbrg - SeACXJYIIibgtEso/P6A3xfw+TAo4QkErsLnnj2+pqZLGGeBnRqBhqGghYWDBNrVKCD9I1IXPAlcgMsS - QcQEnHaJg0H2fF5wfq8XJLHTz65dBp555uz115/7wQ8Cq1ZdxkRGLNWoq6vLvPNrOnLwaP2uYwc/PbZ/ - U9OBqqb6Pc0NNUcbD+JhPZDd7kKoZY0ypH9E6oIngQtwWSKImIDTLkFQxM/feSlw6PNA034mfgKPJ3Dl - QqCk5MzXv37u+98/+61vnf/hD72NjXhUj6Uame/5NR/edvqLRRf3vnBp/+sdtS99+dGUMxXTFj/9wJqC - Kc21HzQd3ofpJKAQLE6PZY2cp59+uqqqivSPiCm7d+9GXwKAp4ILcFlyQfv5r9458o8Ru3Lv3pp1a8Xj - Q6tmztn3TvO5FjxMJDuwFufn5z/55JNDhgyBT/BDDB5zDU47R36ycYLZQfxtBV1mx7OEA9/51W715zwS - GHtXIPNO/6yR/pUL/NvW+8sKvL8bFHj3hUuvzz9z3XXnfvzjs9/73rnrr/fU1Cg5jZjVqKOjAxVMpbFu - 45e7/ug99Epg/+xA7TOBmhzfZ3/wfPH8318fvf4vg8+uH3F0Q3bjF59iagnLJ0LNNQq2bt3ap08f0j8i - dtTV1eXk5Bw8eBDD8QZPBRfgshSM7S17f74l698+HG5wN20c++ahv2MiW45tLn2HU7r5GMYh2qF31u7F - uAsX9q7FOH0GiDYkWrt5c6mpTCNQR9A0hDM7duwYMWJEQUFBTU3NqVOn4BP8EAPxmMIdOO0cMSgfdxBv - UD7ueJaQ8fvZ5/7PAhN+DuLnHfczT+ZdgXF3BX7bKzC+J/scdZs3+wFP3d6zP73jy+uuO/O1rwWeecbi - DqGCWY0Mrzo0NTa0Vb3ctesPnTVPn/94jG/TGH/VFN+2J/yf/ta/Y8KVitFtS+9tXtzncMmYhi92YB4V - KAoLlTDXKPP888+T/hGuaGxsfPHFF3NzczEcFsuWLYNC4BPD8QbPAxfgsuTIrra6/9g4jgte+s7ZL+5/ - N79+5ZN78n78cQaPXHR4LSa14tjmtag+itgZFMysTCwVxhoyCP3j+gj+Y3vXgrZtVuVSPuqMZAURDNjn - WUodF8WQdoE47RwxKB93EG9QPu54lpAB/bt0wTdtcGDsnSB+3sdu9Y68zTuul3dsL29mT/Y5rrdn+M2+ - N/7o3b/vUv78K0VLA1ev2r29b1Cjq1evonapNO3f/FVl9vmdM54f1fPV4bdeLn/M8+mEKx+P+ur9RxZP - vP1vj9927K1fHp//0+N/u/PA6mcbjzRgNhXzq/GGGg1cuXKF9I8IDsytefPmwTfZwsJCjAqd5ubmOXPm - wOYPPpuamjA2ruB54AJcluz56sJXfOcHW70Pj+/EWIWDZ5oGbnsGDn3/oxE7W/dhrCPKng2lh4mbhQzJ - SbSQrGmK4GESaW8HSSyKA6Q0RDjk5+fDOYIBPRAPRzHgApx2jhiUjzuINygfdzxLGPg/KAz8tqd3fG/v - iFu8Lz/pmzPG89gt3rE9vWPu9GXe5Rl1u3fkrZ5H/rfvqQGB5S8HFj/rW/MW5jRhUKP29nauW5ymxsOn - P8v3Vc84tel3Tw++ecnUuy9sGHGlYlzH+t+cLh265A+9J/X7ceOKh1oW/+LY67fWz/9lffUmzKkCBfKS - BYYazZD+EUE4efLka6+99ve//72srAw+MTZ01qxZw3d+paWlq1ev5pHxBU8CF+CyZE9J4yd8k2cQP86x - c613bJ4ER5/Yk4dRjoBGqVJko0pGVZTlUCicUEN+/XMv2yYqQXZUHHTEWioJK5588smamhoM6IF4OIoB - F+C0c8SgfNxBvEH5uONZQubyRe+0B/zjYKvXs6v/N0HbvIuf7xrwLRA/cJ7Rd3hG/dS7bonvyD7PH4d7 - Bn8vMPwm31MDAx3nMbsegxq1traicCkc2/dR565nAjum+CpGn171aMuKh06XDb3wjxHtHww78e6DJ1el - t5SP+XL9iOa3f9WU/9PDL/yffWtfw5wqUCAvWWCo0QzpH+EEiB98bwXlA/8bb7xRVVXF492wYcOGHD38 - zt/hw4cxrPLRRx/xLA4cO3YMfSZaFDAQCngSuACXJXvG7n4J5O2RqlkYNvH6wfcgwQ8/Hgk7RYyyQ9Yy - rnPskyPt4nTaJIfBz73CY7X/g79CWCU/eFW/UWMJZ4YMGXLq1CkM6IF4OIoBF+C0c8SgfNxBvEH5uONZ - QsW/86PAuF5s5zd7tL/qQ/+JBn/TAd+29d7pD3keu83z2K0eUEeectt6T/q/ex9ntwkDOzYocUYMaiTf - /Gtqamqt+qu3cpL/07GXy4e3Ln/w1AfpX27IOLdm+Omyh09CcG3GxeoZF7ZO/PTltJVTbjzywo/2Ln0K - M6uYbwEaajRD+kfYAt+nCgoKiouLeTA3N7exsZH7XQL7xVdffbW5uRnDehoaGl588UWQSQw7smTJkhUr - VmBAAib9/Pnzw3usFE8CF+CyZM+AbdNB3l7YvwzDJipbPocE4A5/2YxRRpj0yBrH4Mqnxighk3oxZK2C - Y2v37l0r3fAzIJegVirQFI/0LzSSb//nf3Nm4PFe7FLnk/d4fn+/79M1vrXvgOZ5J6Z5Rt2u7P9u925Y - 5jtS55k9hsnkuJ8Fxvf0/e1PmF+PQY1gWUDhYi/8HWouf6bzo8f2vDl43Z/7nCp9qLV0SFvZw60rH2lb - 9fCpsqFn1o88vWb4qVVDj7zdb8/c/6jL+U5t4fimxkbMrwAF8pIFhhrNkP4R1oD4FRYWwnrIg6B8uFlT - 2Lx5M48Pip0Ewi4QxM/Nzo/Ddc4ggTzyk08+wXCI4EngAlyW7Ll7K7v5l3fwPQyb2HPqINc/8GCUHYrK - SXswWeiYXDFNUv+qaGEUNL1wQTE6uTQh1UOyFyYxvv8XA3x/Gh7IvNObeZdn9J1dg/7VV/SSL/8PXfd/ - B2K4Y/r32C3e0bd7QPyUi6LsSZln0zG/HoMa6fSvseHw+plnyh7alX/vhj/3P7b0gaOL+5949743x93x - dtZdbSsfannvobb3Hmwruf/EW32+mH3TF9Our3ljHOkfES1gCX3jjTdABTGssmzZssWLF2PAHVwC29ra - MKw8CwPit3HjRgy7wyCB3RQ/AE8CF+CyZE/mx08tX3HL3PW/xrCJZTUFpe/dMmzlfefOt2OUA0LOjPqn - ipOF/rFk8Idt/bS8FhiEkKfSR7LSjRJKBKMlts9/BtZcb+ECga4J/cyO5wgV76Rf+sbc4R19Bwre+N7e - 8T9jj32K5z/HsluDvsy7fMoTMWynOOYOz8Q0zK/HoEZw/qJwKdRveuPY0v4n3x14/N0Hjr97/7El951Y - PujPQ//9heE3nVwx+GTJg20rHmhZfu+bY25Z+Ot/Ozj9X3bnPXKk4TBmVoACeckCQ41mSP8ICyorK2fP - nj1TAXZ7QvBAyeBrrFkUnWlqapozZ47ww+fJkyehZFkRXSIksPviB+BJ4AJclux5f9OkK/+4oWPDDy6e - sn7C88uNv4AEm9bcjmFnNHkz7MbEAS0FQxeCgOyXpM1KTZ0wSCURDC51sNurkd7/GzJkSHFxMaZwB047 - ZwzKx11k9W9sT9j5MeUbw7SNucy78M0/9ZNJIGghJoCdIohlT8yvx6BGsIygcCk0fL75yLtDThbfc3Ll - oNb3Bp1YOuB40YDGJfe2vj+0bfXQk8UPgDQ2L+m386Xbdz/9r3sm/NPOvz4OiwlmVoACeckCQ42cixcv - Tps27TYF0j8iCBs2bCgtLQXP5s2bYdMG84zHu2f37t0LFiwAD8gnqOmaNWvAn5eX9/nnnyvHQ4MrX25u - bjfFD8ATwgW4LDnQ3nr54/8HCnfl0/4XzzZipMrl2mx26B83nG0oxSgj7H6dKjZMzURI1iz5gOQ3yJqs - fwBLCGFF66RUKnAYY1UfZiDCAvZ58B3xSen3X+DESU9PN+8LHcBp54xB+biLqP75JvzCp8qeB1RtLBM/ - /ytT/B+Xst9/gc9XpjAhzLzTM7Zn1z29Pf16e+/v5Xn4P33V1X7Tb5IZ1Mj4/kNT4/4PXztSeNeJpb1a - in9xcsl/tq741cmSAW2lA44v7de2YmBbSb+Tb/U6+vL39z/9ja2jv7Fj5QLMqeLy/YeZM2c+/fTTXQqk - f0QQysrKQAKrq6tBcsL76RbIvmzZssLCQlDBuro6+AT/0qVLXT75YgYk0OFxUPfgCeECXJYc6ThSfHXD - d5nOfXLrpbqXO05uudi661JDESgiF7/L1VMunD8LMRdbqjCPDJMdxCBT2jZNd0DavenkCgqSwyKZUfz4 - AS0W9Q+6Vs1jzEGECYhfSBKI084Zg/JxF1n9A3kbdxfs8JjyPd4zMP3BwOb38ZgAYiD+8Z6e+34m9EZz - kyd7ZszwLlrk27y56+67eSTPZ37//eD+L3avnrPvLzftnfPdPbN+uGTS/z0w/7aWwtuPLbzjzfE3vfjw - 94+8fMO+af+0bcR1G3Puqd1dhdlUXL7/3qtXL/G/r0n/iCAsXrwY9m0gfiCBGBUiIHWw7YNNJL/gCZ8r - V66EmLfffpsniBf8HHADLkvBuHRk6dXyH3C1M7jLNb/n4seCG2/DDJFG0i0hp0LEJL0s3Vyl3z6q0Tq9 - o41gBAlJAnHaOWNQPu4iqn+Bw5/7J/WBLaD/j7/2r30ncPErjPd62K9gwyfn4ldw1DvuAaE3Do6p4OTJ - TBHXrTv14YfN+7Tfs25qatq3d0/hc7997p5/2Tfjf+zO/ufDL3zraN71za/8r8W//uZffvXPn026bsfo - r33y1M8q15bU19djNgXzzT9AVIphhT59+kBF3E/6RwQhPz9/5syZ7h/4NAO7vU2bNmFAZdu2bfyiaBzh - 54AbcFlywcXTdZd3P3Hl45u57F3d8J3Oql93NOOPf8LOD8Tv8p4sHiRSChA/lzcCcdo5Y1A+7iKrf4GA - v605cPSA9j8f5H/+wFFj/MePCb1x704tWYIKpgDKVFNdvWF5Qd38gQemf/3AM9fVZV9X/dsedb/rcfD3 - PWonfXPHvHHbN26oq6sz3Pxz//vXCxcufPTRR/cokP4RQZg9ezbs/zCQXOAJ4QJclkLh4pkDF88chD0f - hgnCNTjtnDEoH3eR1T/++9cc0Dk5KOE/edJbUtw1erTQGzeua8AA35YtLab/fwQcPnz4i+ode9+bW734 - D9vfyN5WkL2zMLvmrezqVX/bu2f3oUOHDOIHhaApekRdGFZZtWrVRAXSPyJ1wbPBBbgsEURMwGmXCPis - /+c74D9/3rdunWfGDCEz7h2In7++Hgrpsvr/txwQOZC6/QoHDx6sr69vaGgwKB9A//+WIMIBTwIX4LJE - EDEBp12i4tu82ZObK9QlVNc1ZgxoJ5YVCHR2dqKUhQVkx4JMiBoxbIL0j0hd8CRwAS5LBBETcNolGLBj - 8+bldd17r9CVMFzX3XfL4scBDbPbBToAWRzEDxCVYtgE6R+RuuBJ4AJclggiJuC0Swz8LS3eFSu6HnlE - yEnYjr8CgeXq6erqsrwXaAcktrvsKRD1YtgE6R+Rooh3gNzQ0dGBKxNBRBnLRxljD97emzxZqEg3neH9 - P0ug7Sf0v4tmBhK47CJRNYZNkP4RqQiIn/ltWQe8Xm/ySaBYHRLfocUpAEwzmGw47eIEu70X1lMtdo4/ - 6imCWI09cG62t7e3traC1DUrgAeCEBnSaRu0xh741xGfz9fY2PjZZ5/tIAgiWRCrQ+I7tJiIJrUrV7Y8 - 9VRnv36GznfpzmZknHjmmQMLF1avX3/xAe1d+M5f/QpKhvJFDK8ugoA2gUKBTqFiqYgaMWzClf4dOXIE - vi+nCEVFRehLAaixyYqbxorVIfEdWmxF6gxrlFp6bv/+i/PnXxk61NDnQd3V/v0vT5t24a232isqsCyV - jlmzeJrOjIyzR4/ySJGRB505HzpN6q+6CESNGDYRXP/8fn9VVRUalQLQKpmsUGMNiNUBw4mHGwtTZ1gj - 3NKjRy+UlnaOHCk62Y3rfOyxjhdegIygmliOFZAAEoM6CvEDRCEYdgQ1LRRAp0CtULcURI0YNhFc/2BT - uWXLFjQqBaBVMlmhxhoQqwOGEw83FqbOsEaqpSBOl6ZNE33r7Pgm7+J//7d5k+fAubq6jueew4CKoeRY - OhQzE8H1z+PxbNy4EVuQAtAqmaxQYw2I1QHDiYcbC1NnWLvZ0vZNm0CTrg4YIHrVzrFN3nPPBd3khYqh - llg6FDMTwfWvq6vr448/xhakALRKJivUWANidcBw4uHGwtQZ1vBaChrW8eKLzrf3YJPXOWECbvKkK5aR - xVBpLB2KmYng+nf16tWPPvoIW5AC0CqZrFBjDYjVAcOJhxsLU2dYQ2vp0aMX3n7b4fae2OS179qFWRIJ - vKcXCqBTIb0dASSw/p1uqFiYM3FURgZ3T+QUbmrAQ9EkbqfTibqdq4ry8nOzR03MeSmvsKSitqEND0WN - uDX2dN2a3InKyE7MXVkb9XYqpM5CCbhprFgKMZx4uLEwPsPaWFtRUpj3Us7EJ3Lm5RcWf1LbzN4pjS6u - Wqo81WJ3e49v8s6vXdvNTV5zbXlR/rycJ7Jz84vKqqKyLKOmhUJS6V/zquzefQeh+IEbOSit99iifXg0 - esTqdKotTO+fvbKOeU/UFueO7d/bTNqgqQUV0RT9uEnC1nnYRMa8SoyNLnFrrJ62xuZmzUVL+t00ViyL - GA6b021Si5qbT2B093FjYayHtXln8eyMNJy6En0zZpXsjKoKOrf0q7Vrzbf3rgwdyjZ5b70VsU3e6eaK - fH3zB+asicIahZpmYtmyZegzkUT6d3pnwUO9h/51JwYZdUWZhpioEKvTqVJRgLSs/ILsgco0sqNvRt7W - eK6SUSGl9K++LDs9uwyfJODjrpE2Mq+imR+KJG4aK1ZJDIdFQ/m8jL7YFuQVHM/m9bPSnyjc2Q05dGNh - TId1/5pZ6dhKS/pPL6uLmgRathSEzXB7L1KbPEt2viG1v29GzsKKBpv2dsyfD8ZcWLECwwo8EgOOoKbp - AfHjYFii4733oORrWv8qC3W7vd7909Wg4tJBJ+Qd4cKoLJuxOp2M62DvgWNziypq65Vv0PW1FSXzJmq6 - mF4QnUv0cZOElNI/3ti+WcWKBLY1S1ulfeW56b3TZqyJuAK6aSxfLl2uR9bUF2f1ThubX1EnWgRO/bbW - UJIF7U4bXxC2BLqxMHbDeqJynlj8B06cV1KJrd5XWfzKRHH9Jv2Vyih9XbVs6YXSUhA/u/fQI0zzmhxs - Ze/eo/IqHWdt14MPdk6digGVq2PGXJ4zBwOOoKxJoPSpQAxUcXnBAn40CfSvoXxhXu7Uob0fysrNz8uz - c3OzhvbuPfbZvLy1ysXDSBOr00mvfxOsviafbiifq55w6QU7o/C9Ms6SgKSG/gGqBOrYBEezyiJ9BclN - Y92oizMNK0Hh5lXYzEyuf0DYEujGwpgNq9j6WDanrbooC/fBQwui83shcZvAAvm0zSp2mLN8n2dwoHyG - GHBmjeRwVROg6Okx65/B+RYtQhmzIeGuf7JzxrFnla+cvedtxVDEidUkM+z/0rJKrOT8dF3xVLzYnr0q - 8pfJ4i8JjJTRP2CguBCqwo5mFddjKFK4aaxYJjAcOorC2Q6f0D8gPAl0Y2GMhrWtIpfLW9+cNY0YZ6Ct - PBfP1Shs6IG4TWCV5g+07Z9hlW7eVVa2FRv9lfJT1yBsIHggUTwS4Js/roIYZQ9XNWeSbP/H0PTvBN5I - Z9eLlAsKbY3NbfBNMzn1D0ibt8nqwklt0Vh+PE5XySJBQ9l0q+d7rEnLWhnp3ZBCrBpbW+h4i8gogUmj - fw1l2YYbgXrCkEA3FsZoWLflcW1zfAShtmiUkqh3bnkUroHGagLbs6tgKG8fo//EV8p2wpKkPhCU8wGu - T6B8Ylcn/CCKQgvd3AXkquZMMutf5Sv8RnoDyF1WCYtg6wR4kkT/zjbsqqj4RHaVddargzipbC80hU2s - GmsWe0fUBygiSwI1VpbApNE/5cR0JlQJdGNhbIZV7GWdlY2tWozIDygQs6XJmtN1dftqizJ5A1X69u+P - 2+LcCqlj+BYwqMPUVnBVs+RKbq6hHAfnnT4dlcwK0j8jcZ5kVlS8pMywOK2SkYD0z8TAWeX863Iq6R+Q - NjWEe51uLIzNsAr9c155klb/+I2YrOK6fcXqbU6Z9Hlbg2x4DU++XFixQgwrHBIDHdTBng9l0AToFO3/ - uks8J5k1zWtm8EkWn6ckIgF7m8U9afnJr39pU4vxQfnU0r+0jPwQHo90Y2GMhpU9psTIeKcWYyxgi5VC - TjRuAMZtaZKeQkifW15XW5abqd3OSBs5q3iXRWvF2Dk4TGoFapprLi9Y0DFwIOlfd4nbJLNDeRWS0Tcv - 4rIQu8a2Sc/Hg1ufqzSJk1suH+J3eaNArBobXP808QNSSP9CEz/AjYUxGtbGsmzeCIcnscWt+syiaDyb - Hp+lSRI/TtrI3DX72/A1HvGyix55e8dx2P9ZgrIWDNgOdrz3HnjM+ucdN863di0GbCD9MxKfSWaPeKgs - ba58gT0yxK2xbNEXqAtolIlVYxvUn3ZTXbru2R+d+AFJo39tOwunSa0GN1heN0MWP8CNhbEaVu3pTus3 - /KS3A6PxqDYQh7PVJH4wjlnvBP/BQpA6EDwMKBj0Lyhc3rY4cum++06PH1+zZIlZ/0D8wPlranjQDtI/ - IzGfZG2Vf801PhMv0E6qqLxUFIczipPM+mdCaqxR/ICk0T8TylFOOOIHuLEwdsO6X7v1lf5cUeV+rUHN - VcXa78IMyqu8ti9gqIQrfkDn1Kli7BycQSNlnPUPNA+yn5g6lQdl/QPNg0MgfihgjiSw/i3kv/DSsGZ2 - xqwPWEThqIzc9c3JpX9tlfzH9PpmFZmvoe8rEydVNH4iBEgESUgd/bMQP1g6V2VH43F5N40VyxCGQ0d5 - IWxWuc0jnUL/wv5JFDcWxnJYG9jP9UgMTM8Ypd/dK6TPLbf7VbDuENMJ3A3xMyCeBTXs/8x7RBln/YPS - GmfOxICifwDolGfsWDgU9LV3QeLqny3JpH/6SdY/M2deUVnFJxXlJYW5U9kvwCHp8ypDfHHKJXGXBIWU - 0D9V/NrqtmovvZQXzcro2zs9rL2RM24ay1clcBgOg7bKvHT2BETReq1RlfuwNVz/uvN7YG4sjPGwNm8r - lH6YUEf/zLHip1CjIYGxaymuS+nZL80aiy0KU/z4RhAk0Hz9U7waaAmXNNS3YEBKPk+6srNRt9yRkPo3 - qrDWYerUFmX0Hhql38MEYr1Knqgtcnw3PG18gfPv7HWHuElC45pZ6iLSf3rEH2u1Jm6NPbGzeGG5uvOr - zJMfHx+Ynv1X218Q7g5uGsuXDHAYDo+GigL5uxrMWPH47v7ywpKd3ZF2NxbGYVhPN9euL8x5ImMQH8qB - 6ROfzSveymZx29a86ElgzFpa+Yoynmwdbi6bDr5wxI8rn9A8oX9dDz4ohhV0kR8140b/TkhXWS8vWAA6 - BWqFuuWOhNM/7RkqB6LzY5icuKySDZ8U5kiPFHPSBmfNWxXP/6iSZFBjDYi1A8OJhxsLE21YdRLYjb2v - mZi1FPUPCVn8QOpgyDrmz8ewgnn/54yD/jXOnMlnxaX77uMxPHFS6B9Qv1NcS7Fydr+TEhnieDq1NTfU - 4sWxnXU2DxZHFpKEZMVNY/ki0nX33e2bNoG7OH8+uI7nnuucOLFz5MhL2dmYLn5wC8Fh2IoEHFZJAiN5 - bT92LdXuy4R52bP7cEnj8hYUnjhZ9C+u0CqZrKRyY9t37QKFu1BaykWOKdzEiaB8QmAM7mr//tH473Gh - IuzBsBWJOaxtVYXZozJy3o2keMS0pacbKoryClfFR/wALmmob8HgiUn/IgBJQrKSso2FnZwQEpcOxBIz - xxVhD4atSJ1hTakJzCUN9S0YPDHpXwQgSUhWUrexR4/Cfk5oSVDX8fLLmDHeCJMwbEXqDGtKTWAuaahv - weCJSf8iAElCspLKjf1q3TqhJc7uytChiXDlkyOswrAVqTOsKTWBuaShvgWDJ46i/g0jCOLaZPTDD1fe - c4/QEmf33IMPYrYEQFiFYSJl4JKG+hYMnji6+78ZBEFca/xt0qRTrsXvH7/5DWZLDIRhGCZSg4Tb/4FN - GCYI4hrBm58vJCSo6xozBrMlDMI2DBOpAcgNlzTUt2DwxKR/BEEw/PX1XZmZQj/cOMiCmRMGYRuGidSA - 9I8giDDxKv9cLSTnXbwYMycSwjwME6kB6R9BECHjP3/eM3mykA2XzuFF+ARx2DwiNYid/p1sO+3sjh4/ - UVK6kvSPIBIc35YtXffea1COoA7Ej/SPSCjC0z/QKVArg345O9r/EcQ1D9v2/fnPBs2wdF1jxviqqz1T - pmgxCS9+4LCdRGoQu/0f/rWH9I8gEhnQs65HHjEIhtlBGt+6dSILxk+ZwmMIInEg/SMIIjjeRYuEwtm5 - rgEDvCUlmEEFlA/iYeOIYYJIGK4V/ds+t0ePHsOXt2IwBrQuH95jWDGvkNU+d0egtXgYWAEeEyyxRlh2 - 2hceI+JugEuYndjD6hgdX85Mz92uHNfBG6UybPlxKT6m06m7bM/V2R8beO8Vrgz+hgNTvkWLLEUOtoC+ - LVsw0B12sDVAPSUtkVYJ+ykRaeyWJr4mzLW0QBrN0Fc21g9SsUpL7bpFm/+6rsAF7ZrCqT/DJhn0b3uu - bl2LzLiyWaUWq044PpmsylfM697JZl94aITdA5EyIMpI30vEGNkvdspCYz5npELcAOVHaCWV52pIxEv/ - fvfd717oF+xRl9zciG7vts+1PNNTWP/kacPyqu3i5ywry7JblB5jZ7TSG1oag4LGkLBXJ+f+DJtrXv/k - dSGSK7g0RVixStW25Qc/M2NEd3ogkr0XRdhMQCPFGNkudnbTRiokKJFbSbujYbHXP5C0S+m/NEqdwYHy - tbRghshgrwfBzzL7vFHErlKX+hccfWLtq5sS32PYcDY9LbtFScANUIxRjRQLWozp3gpD+jd8GOs/hk7w - OMNyn0UfwFYrnmXuXNZrgDTb+IrGEfNAf3bJU4RNI2X549XxCccwfQtTkEZIKRPRJ56bqx4yxBsmB1q1 - XE09bPkOYbxpKpirszIA4GeOgtYtaECxWr50hsgNlM40pYc5tqeTdRorA3B+Lxd15W4XybRK2dhJo8/L - 5AOqTQ+1Z+SBlvtWFBK8eyX71WKdes80rAJzH4bUq0qlw5YXm8vn/cbR7NG13WQMgAaL4YbWidkyfPmX - wd5wqL3llr6/X8oKkiuyngaahbx/RGO1nsSM5raIGGy7fV4Wx1LIUwIarnhELmy19v2Jo/Ub7+e5uSyZ - ksu6e8XY4eQRNogyc5crGeU5oxWLo8lKk2yWG6UaaZokLD0/BImZB+cw1i+hWK4rWTLGakpEF623ldrR - 7GArm01/RoprSv9sZwzOS93k1mXhk5j3nTQt5Kmjm0YsjerXJhzORWXqyHVJNki2SSeenFguRK5Ub7wK - H37JWmwF95smsa4QGwPseszOMO435ZVHQe5eGWNv8MJtDOCF6PyKAdwvpZcqRQt54dwAqSK5FcZK5S51 - 7l65QFvj7XtPQs7L07jvVSUNlinXq8TzNNa9rS9TQzYY/Uqa1rcefvVHPzKonezY453l89TyFSOlDjS3 - WrJWHlZTq62sDT+v1gNyN1pbK/Whrp/VoFP3yl2nS8OnkFOxphHXpoRss5yYp8F4xKbbdSWbauSTJ8ZI - o6n2j7mvuN88oHKayHFt7f/4WNpODl3/6offfCJpU8oCaYqwuW5Vvs20001WAIeNwTPaGamPV5Fng7yo - 6RY4DYtCjAYoNWoZtaCdYRx+VEFpnVKsVpEhyFEiTV1kZwAfF+w6uRuNfszLMmKNut4wWo5IxmiF8M7h - frvuNReOfkALOvcexzg3QulVXV7j6IspLc8lrSJDkMOrxtFRO4f9mOcD/QyCJ9yZO+/MHDyTZdAMCHo2 - 6c5WaRR0XaS0jqfR4n2LXodKx93whJy35PcsMmheuYu0oVEitTnQY1jtX9hDrb78JzCBGq9vi2X3Wo21 - 1jpA13BDsVLQmJ2hjSxDzsuqVhuO6CqVMfewUgjrBEMDY4Su33hjeUvl+Sz77fszUqSK/um6UswzBTW9 - hDxFWGKsyzx+5mmnpBHzjCUBv5xRb6TWFn28ilyL3SyR0BViaYAxo9ZLdoap3cX8oreN1lr1hnWLbA2w - HVbJz9JIvYEJ9GXqx12gpFHySoW46V47P8NF70nIjQq1V3V5pXqVeG6SIVIkth4IXaRS0fKpTFosnfJ4 - 5+tao+R+wIYgxuE2DIfWIiVeBzdYS+8ZMujAzTcb8tYPHeV7aVrQvPqRUuJztytNxm7BfuvR44Obb975 - k5+Ah/fz3mn/09D2N2+80bF7tXiHOWAYESko2YxZVNSGy3mZX5t+CtIk0aOUpitEMYalN87M2GCecs6n - nkN/RooU3P9pKHlZtKFPlcRS+ZaF2Ew7YY+c2M4vG6mPV3ExS2RcVKrUqGXUgnaGyT2s+RXDNGsNQY51 - F9kZYDusml9ptdQideB0vaFZrkMYIxXiqnvNhaMf0IJ2vSdj3SjZb9+rcnrJJLkiza8YoyY2BTmywf71 - fwINMKz73J3p1WvTbP5ig1SXrk8QxULAcDbply2tw627SMSft3rdEKTIEAPOO306ZPO5eD0R3H/dNxVq - dEh8aNIN8PnhhzXcGPCPG/ycYqShe63GWp5O9vNZH7TqB969alGGxGr5KrpKdSgZuQGKMUotLNKi22OB - rt9ks+1ON/v+jBTXvP7pzm2lv3TzEoNyFlNR3C/1NZsieG6zBGJu2YyfqXAlL0+sJJAtwXhzpXLh2oyX - Z4DdLDHNGLkiswHS6aSr1M4wJb2Shldkcd7qRkQqX06j9YyNAXaFSH5mlZSANxmQe0Cq1NSlSl6pEFfd - K1nOAtbG2/aeKY3cqFB7Fc2QylTSK2l0Bth0iOwXhXhXrOjq10cIgOwujO/3o298w9woqXyTwSYDJGt5 - i+R5Zd3qPg+9ArWDsHVM6H+sZ0+RF0S6fMJ/+V56CY5a5ZX8uh5A4wGlKIYv/wkoTVgy7ob7LwweAn6+ - /+P6BxvN42xr6NS9unjZAKxRHj4cen1QyyJ1FGbnfiVeSczq1QpB5HEB5IaLQpRIJQ3rRi1xjJEapTNb - tln2u+xPXQ/I8yE417z+YX8BrMuUZABLiVmW84VDN2/UZAy1HK0T5SnCUopzxjxBdZ3O0bqe28kYljtX - nX9qIeK5OxxpXeHa6LqZJeYZAzAzrA1gibBPAK1b0ACLJxi11vGjaodYttpwqjuk4YiUumGVCxF+ZiEW - Io+R/TljVZFUiLvu1QqR7eEI410NKxaLR8PpVf4AIfOJtitNUJg7l6UxnReAagwWrhQLhn3ra1/bN0H7 - 1+ey2zZyqr+lBY03TwlzhyP62jGBmIf2z3CKjIphH9x8MzjeIWeGMj9k+vDVbNBCnpdv4DCrllcaev0I - qkZqtQDe4YPYtU2F9kFDoEyIlPUPPPzWoIK+e9VuNz7/qQ2xxfOfYrZIQclmdbZwjNMbmDjJ0ASGbiEy - NlwrUBosdabFHnWqQHvdnXqu+lPXA7r+DMq1on9hEFpHxAxcU+I2BYmocM0Nq+3/cJg82VddjYkijrJU - ueklf02N0TArh6nDglcBHthQ8ouoIhI+IUZEEskK6V+sIf1LSq6hYfWfP+/NzxcSIhx7sSEiP1Smh2/y - +NdzpZe0bVBIeMeNA6HCAIjW2rVgMwZCBIqSGy47fnFVqC9mIJIU0r9YQ/qXlFwrw8recDD9mKf8Hxui - gHrVS8F9FxmMtHSYNHKI/R/4Yf/nGcJuCiYl0sVniSFZg9GnY3h/9Ohg12PNDM4agj4d2rXoBCKJ9Y8g - CB3m/+Hg8LvV8cW8vYvg/s8BWf8A0D+5UiLJIP0jiOTH39LimTyZa55wial8HHZPbtw4DCgY9K+bsL2d - vjfAgaYa9M9sBpFMkP4RRJLjW7fO+KhL5H+3OsJY6pPZhS1O5sdboDQL/Vu0iPQviSH9I4ikBbZ3nhn6 - NxwmT05w5TPDNQmcYf/Xnc2ZS/2L7KaTSDRI/wgiOfFVV+u2fVF9sSFq8I0gCJJZioSGQbzWzGCOF+Ks - f7xS5qHNX1JD+kcQyYbhDYcoP94ZLbgICc0T+ucZMkQ0TWzUQkUonOzM+z8iuUk4/Tt79izYRBBEeORN - nnxU3fZdSEsryczEA9cO3P4PR4zAsAJE7nj0UQx0my8GDwaHAQWocUVmZsGkSeCBT4wlkhqQGy5pqG/B - 4ImjqH9fEAQRLsdfx//hcKVfv5YXXti3YwceIAjCCi5pqG/B4Imjq3/nCIIIkfYDBzonTuTid+nll881 - N+MBgiBsSFz9a29v5x6A/Bzyc8jPEf7z69dfHTCAKd/MmSCEYZcDkJ9Dfk5y+2n/RxDXPBdKS2Hz99Vn - n2GYIAgXJKL+hafkHPJzyM8hP4f8HPJzyM+h/R9BEASRiiSu/nVH1cnPIT+H/Bzyc8jPIT/t/wiCIIhU - JBH1Lzwl55CfQ34O+Tnk55CfQ34O7f/ccXh1zozVhzCQ+BxaPWN4wTYMEARBEGYSV/+6o+o2/u0Fwwu2 - oz/EvEz/3hf6F1reOPhR/8LKi5CfQ34O+Tnk5ySHPxn2fzfeeOOhQ272Zjr9Cw3a/xEEQSQXiah/oSo5 - 6J+QQIf02xcMF+SUQWImEgJ5t6SlXMDkksUr+rfaHL+tAGMAVSCVckBrEaFDonwAy8Qk3B7GDqkKTK9U - /b4aDykPr1LziTQKkv/Q+5L+mdLoGs7bgvUuWK0eyll9mKffIbUQEPGW9ZIfIT+H/BzycxLNnyT7P06w - XaD9/o9JER5i4qdIgs6vaJWqKNa7K0isyhgTPzWB7JfRp1FqcVG1IquYxmGT53BIKUEUCIWLqhlM3g6V - Kfpq3u8qlkBWNJEgCOJaJnH1z72So/opyPEcyQ9Lv939v8OrZ/CdDaTBLQ6g7H6ULLD0S/f/2A5MFSqt - HNgLLtiBnhmrD5vjFXh6pjFyGqxL3l2hte0N74tLr5KdLA2IFpcxfVvAj/pnileMYdpmvJeJ+ifsZ4i+ - QslUsetD8jPIzyE/h/ycxPSn9v4PF3qOhf5pWZj+afshpl7SJkyDRyr6p5nC9E9XLSCVIHBTNVSnpRH6 - Z8J2/2e3t1P1T7WfodbO/KJz1HiCIIhrnETUv1CVXBY/x/SoKBjPVvmCHZiG6cr7DTwNW+sxDVv9lTSq - CPF4rl7KbgyvebJ4VefaJf2DeCF1WKYC20FKaZS/rGrFBgWlalQgbaco7GQo+qeVKZVvf/+Pa5vUFo56 - /0+1n8Fqx3uNmJ7fC5T6UIH8HPJzyM8hPyeR/Umy/7Pf+bEti3pbTrd50u3SmNjgIbYTUndmml/VP/Rj - Yt02S8rIKlXjJT/LaOWHNErG4FXrmwBpRO16dIbpYfYwERNmiKoBXqOkf+jnBsjxBEEQ1ziJq3/dUXXJ - L+uf2NmwGEiDiz4wo6BAf18NEfftFLkSaLsuKb5ggXyfD2UGAKVBe1DzLPJyeyBOqhpVJsL3/xhsd6ih - 2Kzqn8X9P8mkAuWApn825ZMfIT+H/BzycxLHnwz7P8KEw/6PIAiCYCSi/oWn5BzyKzi//4eQn0N+Dvk5 - 5Oekgp/2fwRBEEQqkrj61x1VJz+H/Bzyc8jPIT+H/LT/IwiCIFKRRNS/8JScQ34O+Tnk55CfQ34O+Tm0 - /yMIgiBSkcTVv+6oOvk55OeQn0N+Dvk55I+R/gUC/x/cyUAXywOiugAAAABJRU5ErkJggg== - - - - - AAABAAEAgIAQXAAAAABoKAAAFgAAACgAAACAAAAAAAEAAAEABAAAAAAAACgAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAgICAAMDAwAAAAP8AAP8AAAD//wD/AAAA/wD/AP// - AAD///8AAAAAAAAAAAAAAAAABEZmbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZmZkQAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAZszMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMxmAAAAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMxkAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzGQAAAAAAAAAAAAAAAAAAAbMzMzMzMzMzMzMzMzMzMzMzMzMd3d3d3d3d3 - d3d3fMzMzMzMzMzMzMzMzMzMzMzMzMYAAAAAAAAAAAAAAAAARszMzMzMzMzMzMzMzMzMzMd3d3iIiIiI - iIiIiIiIiIh3d3d8zMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAABszMzMzMzMzMzMzMzMzMx3eIiIiI - iIiIiIiIiIiIiIiIiIiIiHd8zMzMzMzMzMzMzMzMzMxgAAAAAAAAAAAAAGzMzMzMzMzMzMzMzMzMd4iI - iIiIiIiIiIiIiIiIiIiIiIiIiIiIiHfMzMzMzMzMzMzMzMzMxgAAAAAAAAAAAAbMzMzMzMzMzMzMzMzH - eIiIiIiIiIiHZmZmZmZmZmZmZ3eIiIiIiIiIiHzMzMzMzMzMzMzMzMxgAAAAAAAAAABszMzMzMzMzMzM - zMzHiIiIiIiHZmZmZmZmZmZmZmZmZmZmZmZmeIiIiIiIfMzMzMzMzMzMzMzMxgAAAAAAAAAGzMzMzMzM - zMzMzMzHiIiIiIdmZmZmZgAAAAAAAAAAAAZmZmZmZmZmeIiIiIh8zMzMzMzMzMzMzMxgAAAAAAAATMzM - zMzMzMzMzMzHiIiIiHZmZgAAAAAAAAAAAAEAAAAAAAAAAGZmZmZniIiIiHzMzMzMzMzMzMzMxAAAAAAA - AGzMzMzMzMzMzMzMeIiIiGZmAAAAAAERERmZmZmZmZmZkRERERAAAGZmZmZ4iIiIfMzMzMzMzMzMzMYA - AAAAAAbMzMzMzMzMzMzMeIiIiGZgAAAAERmZmZmZmZmZmZmZmZmZmZmZkREAAGZmZniIiIfMzMzMzMzM - zMzMYAAAAABMzMzMzMzMzMzMzIiIiHYAAAARGZmZiIiIj///////+IiIiIeZmZmZkREAZmZmiIiIfMzM - zMzMzMzMzMQAAAAAbMzMzMzMzMzMzO6IiIYAAAARmYiI/////////////////////4iHmZmZEQBmZmeI - iIh8zMzMzMzMzMzGAAAABMzMzMzMzMzMzMeIiIdgAAAZmI////////////////////////////iJmZmR - EGZmZ4iIh8zMzMzMzMzMzEAAAAbMzMzMzMzMzMzoiIhwAAAZeP////////////////////////////// - /4iZmZEAZmZ4iIh8zMzMzMzMzMxgAABMzMzMzMzMzMzOiIiGAAABiP////////////////////////// - ////////+JmZkQZmZ4iIh8zMzMzMzMzMxAAAbMzMzMzMzMzM7oiIYAABeP////////////////////// - ///////////////4mZkQZmZ4iIjMzMzMzMzMzMYAAMzMzMzMzMzMzu6IhwAAGP////////////////// - /////////////////////4iZmRZmZ4iIfMzMzMzMzMzMAAbMzMzMzMzMzM7oiHAAB4////////////// - ////////////////////////////iZmRBmZ4iIfMzMzMzMzMzGAGzMzMzMzMzMzuiIcAAHj///////// - //////////////////////////////////iZmRZmZ4iIzMzMzMzMzMxgDMzMzMzMzMzM7ohwAAf///// - ////////////////////////////////////////95mRZmaIiHzMzMzMzMzMwEzMzMzMzMzMzuiIEABo - //////////////////////////////////////////////95mRZmaIiMzMzMzMzMzMRszMzMzMzMzM7o - hwAGj///////////////////////////////////////////////95kQZmeIh8zMzMzMzMzGbMzMzMzM - zMzu6HEAB/////////////////////////////////////////////////+ZkQZmiIjMzMzMzMzMxmzM - zMzMzMzM7ohwAGj/////////////////////////////////////////////////iZkWZniIfMzMzMzM - zMZszMzMzMzMxu6HEAbv/4iI/////////////////////////////////////////4iP//iZEGZoiHzM - zMzMzMzGbMzMzMzMzM7uhxAGj/iIiIj//////////////////////////////////////4iIiI//mZFm - aIiMzMzMzMzMxszMzMzMzMzO6IEAbv+IiIiIj/////////////////////////////////////iIiIiP - /4mRBmeIh8zMzMzMzMbMzMzMzMzMbuhxAG7/iIiIiI////////////////iIj///j//////////////4 - iIiIiP/5mQZmiIfMzMzMzMzMzMzMzMzMzO7ocQDo+IiIiIiP///////////////u7u7u7u7o//////// - ////iIiIiIj/+JkWZoiHzMzMzMzMzMzMzMzMzMzu6BEG7/iIiIiIj/////////////+Hd3ju5maO7v// - /////////4iIiIiI//iZEGaIh8zMzMzMzMzMzMzMzMzM7ugRBu//iIiIiI//////////////kZmZdmAZ - mP/////////////4iIiIiP//mRBmeIjMzMzMzMzMzMzMzMzMzO7nEAbv/4iIiIiP////////////+HiI - mZEBd5n/////////////+IiIiIj//4mQZniIzMzMzMzMzMzMzMzMzMzu5xAO7//4iIiI//ju7o////// - //j//4mZeP/4//////////////iIiIiP//+JkGZ4iHzMzMzMzMzMzMzMzMzG7ocQDu///4iI//ju7u7u - j//////////4mP//////////////7u7uiIiI////iZBmaIh8zMzMzMzMzMzMzMzMzu6HEG7v//////+G - ZmZ47u7//////////4//////////////7u7u7u6P/////4mQBmiIfMzMzMzMzMzMzMzMzM7uhRBu7/// - ///3AAAAF37u7///////////////////////h2AABm7u7v/////5kAZ4iHzMzMzMzMzMzMzMzMzO7oUQ - bu//////gQAAZgEG7u//////////////////////+BAAAAAFfu6P////+ZAGeIjMzMzMzMzMzMzMzMzM - zu6FEG7v////+JEAAXhwAG7o/////////////////////4gAABEGARbu7/////kQBoiIzMzMzMzMzMzM - zMzMzM7uhRBu7/////iZABmZkQBm6P////////////////////+JABGZF2AAbo////+JEGaIiMzMzMzM - zMzMzMzMzMzO7ucRbu/////4mRZ4iZkQBu//////////////////////mQB5mZdgAG7/////iRBmiIfM - zMzMzMzMzMzMzMzMxu7nEQ7v////+Bl+j/iZEAaP/////////////////////5l2/4mRAABu/////4kQ - ZoiHzMzMzMzMzMzMzMzMzMzu5xEO6P//+Phgbu/4kQAI//////////////////////+Zfo/4kQAAeIiP - //+JEGaIh8zMzMzMzMzMzMzMzMzM7ucRBu7///iOYHiI+HAAf///////////////////////mYjv+BAA - BuiIj///iQBniIfMzMzMzMzMzMzMzMzMzO7nEQbu///3EAAG6IcRF4iP/////////////////////4GP - /4cQAAZnbv///5EAaIiMzMzMzMzMzMzMzMzMzMzu5xEW7v//iRF3dmZgAXjmj/////////////////// - ///3ePiBEQAHdm7///iRAGiIfMzMzMzMzMzMzMzMzMzM7u5xFu6P/5EZmXZmZmbmaP////////////// - ///////4/4d2cRAAFwbuj//4kQZoiHzMzMzMzMzMzMzMzMzMzG7ucRDu7/iXiZkQAAZmAH////////// - ////////////+IiIdmYABmAX//j/+BAGeIh8zMzMzMzMzMzMzMzMzMzO7nEQbu/4iP+BERkREZf///// - //////////////////+JmXdxEBEAB3////kQBoiIzMzMzMzMzMzMzMzMzMzMzu5xEW7o+P//gZmZmZmP - ////////////////////////+JmZmZmZl453//+JAGaIh8zMzMzMzMzMzMzMzMzMzM7u5xEO7vj/+IeP - iIj////////////////////////////4iZmZmZiPiP//cQBoiIfMzMzMzMzMzMzMzMzMzMzM7ucRFu6P - //iP//////////////////////////////////////+Jn/j/+JAAaIiMzMzMzMzMzMzMzMzMzMzMzO7n - ERbu7//4/////////////////////////////////////////4j///gQBoiIfMzMzMzMzMzMzMzMzMzM - zMzu7nERbuj////////////////////////////////////////////4//+BAAaIiMzMzMzMzMzMzMzM - zMzMzMzMzu5xEW7u////////////////////////////////////////////////cQBoiIfMzMzMzMzM - zMzMzMzMzMzMzM7u5xEW7u//////////////////////////////////////////////+BAAaIiMzMzM - zMzMzMzMzMzMzMzMzMzO7uYREO7o//7v//////////////////////////////////////////cABoiI - fMzMzMzMzMzMzMzMzMzMzMzMzO7ucRFu7oj/7o////////////////////////////////////////9x - AAeIiMzMzMzMzMzMzMzMzMzMzMzMzMzO7ucRFu7nePju7u7v//////////////////////////////// - 6P/4EAB4iIfMzMzMzMzMzMzMzMzMzMzMzMzMzu7nERBu7nmIiO7oj/////////////////////////// - ju7u7o//hwAGiIh8zMzMzMzMzMzMzMzMzMzMzMzMzMzu7nERbu7nmZl5eP////////////////////// - ///4iPiO5nj/+HAAaIiIzMzMzMzMzMzMzMzMzMzMzMzMzMzM7u7nERbu7oiZeI////////////////// - ////////+ImXd5mP/4cAAHiIh8zMzMzMzMzMzMzMzMzMzMzMzMzMzM7u53ERbu7v//////////////// - ///////////////4iZl4//hgAAeIiHzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM7u53ERBu7v////////// - //////////////////////////+GAAB4iI7MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzO7uiHEADujv//// - ///////////////////////////////3AAAGiIh8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzO7ohwABmP - ////////////////////////////////////iREAZniIjMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzuiI - EAB4f///////////////////////////////////+JmZkWZoiIfMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zO6IhwBo//////////////////////////////////////iImZl2ZoiIzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzuiHAA7////////////////////////////////////////4iZFmZ4iHzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzO6IgQBo/////4j///////////////////////////////////mZFmaIiMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzuiHAA7/////iIiP//////7o//////////////////iI/////4mRZmeIh8zMzMzM - zMzMzMzMzMzMzMzMzMzMzO6IcQBo////+IiIiI/////+7u7u7uiIiI7u7v////iIiI/////5mRZmiIjM - zMzMzMzMzMzMzMzMzMzMzMzMzMzuiHAA7////4iIiIiIj//3d2bu7u7u7u7u7u7//4iIiIiP////+JkW - ZniIfMzMzMzMzMzMzMzMzMzMzMzMzMzO6IcQBo////+IiIiIiI//+ZkAAGZmZmZmZmbv//iIiIiIiP// - //+ZkWZoiIzMzMzMzMzMzMzMzMzMzMzMzMzMzuiFAG7////4iIiIiIj///iZABEREREREBAG7//4iIiI - iIj/////iZFmaIiMzMzMzMzMzMzMzMzMzMzMzMzMzO6IcQBo////+IiIiIiI///4kQARERERERERDo// - +IiIiIiIj/////mZBmeIh8zMzMzMzMzMzMzMzMzMzMzMzMzuiHAG7////4iIiIiIiP//+JFmeHd3d3dx - EW6P//iIiIiIiI/////4mRZmiIfMzMzMzMzMzMzMzMzMzMzMzMzO7ocQBo////+IiIiIiIj///iQZoiO - 7u7u5xFu7//4iIiIiIiI////+JkWZniIzMzMzMzMzMzMzMzMzMzMzMzMzuiHEA7////4iIiIiIiP///5 - kGaIju7u7ucRbu///4iIiIiIiP////95kGZ4iHzMzMzMzMzMzMzMzMzMzMzMzM7ogQBu////+IiIiIiI - j///+RBmiI7u7u7nEW7v//+IiIiIiIiP////iZFmaIh8zMzMzMzMzMzMzMzMzMzMzMzu6HEAaP////iI - iIiIiI////kQZoiHzMzu5xEO6P//iIiIiIiIj////4mRZmiIjMzMzMzMzMzMzMzMzMzMzMzM7ugRBu// - ///4iIiIiIj///+JEGaIh8zM7ucRBu7//4iIiIiIiI/////5kQZniIzMzMzMzMzMzMzMzMzMzMzMzO6I - EAbv////iIiIiIiI////iQBniIzMzO7oERbu///4iIiIiIiP////+JkGZ4iHzMzMzMzMzMzMzMzMzMzM - zMbuhxAGj////4iIiIiIj////3kAaIiMzMzu7nEW7v//+IiIiIiIiP////iZFmaIh8zMzMzMzMzMzMzM - zMzMzMzO7oUQbv////+IiIiIiI////+RBmiIfMzMzu5xFu6P//+IiIiIiIj////4mRZmiIfMzMzMzMzM - zMzMzMzMzMzMzu6BAG7////4iIiIiIj////4kQZoiHzMzM7ucRDu7///iIiIiIiIj////5kQZoiHzMzM - zMzMzMzMzMzMzMzMzM7ocQBu////+IiIiIiI////+JAGeIh8zMzO7nERbu///4iIiIiIiI////95EGaI - h8zMzMzMzMzMzMzMzMzMzMxu6HEA7v////iIiIiIiP////cQBoiIzMzMzu7lEW7v///4iIiIiIiP//// - iRBmeIjMzMzMzMzMzMzMzMzMzMzM7uhxBuj////4iIiIiI/////5EAaIiMzMzMbu5xEO7v//+IiIiIiI - j////4kQZniIzMzMzMzMzMzMzMzMzMzMzO7oEQbv////+IiIiIj/////iQBmiIfMzMzM7ucRBu7///iI - iIiIiIj///+JkGZ4iMzMzMzMzMzMzMzMzMzMzMzu6BEG7/////iIiIiI/////4EAaIiHzMzMzO7nERbu - j///iIiIiIiI////iZBmaIh8zMzMzMzMzMzMzMzMzMzM7ucRBu/////4iIiIj/////+RAGiIjMzMzMzu - 7nEQ7u////iIiIiIiP///4mQBmiIfMzMzMzMzMzMzMzMzMzMzO7nEAbv////+IiIiP/////4EAZ4iHzM - zMzMzu5xEG7v///4iIiIiIj///+JkAZoiHzMzMzMzMzMxmzMzMzMzMzu5xAO7/////+IiI//////+RAG - iIjMzMzMzM7ucRFu7v///4iIiIiI////+ZAGaIh8zMzMzMzMzMZszMzMzMzG7ocQDu//////+I////// - /4EAZoiIzMzMzMzO7ucRBu7////4iIiIiP////mQBmiIfMzMzMzMzMzGbMzMzMzMzu6HEA7v//////// - //////9xAGiIh8zMzMzMzO7nERbu7///+IiIiI/////5kAZoiHzMzMzMzMzMxmzMzMzMzM7uhxAO7/// - ///////////4EABoiIzMzMzMzMzu7nEQbu////+IiIiP////+ZAGaIh8zMzMzMzMzMZszMzMzMzO7oUQ - Du//////////////9xAGiIh8zMzMzMzM7u5xEW7u/////4iI//////mQBmiIfMzMzMzMzMzGTMzMzMzM - zu6HEA7v/////////////4EABoiIzMzMzMzMzM7u5xEG7v/////////////5kAZoiHzMzMzMzMzMxAzM - zMzMzM7uhxEO7/////////////9wAGiIh8zMzMzMzMzO7ucRFu7v////////////+RAGeIh8zMzMzMzM - zMAGzMzMzMzO7ucRDuj////////////4EAB4iIzMzMzMzMzMzO7ucRBu6P///////////4kQBoiIzMzM - zMzMzMxgBszMzMzMxu7nEQbo////////////gQAGiIh8zMzMzMzMzMzu7nERDu7///////////+JEAaI - iMzMzMzMzMzMYADMzMzMzMzu5xEG7v///////////3EAZ4iIzMzMzMzMzMzMzu7nERbu7/////////// - gQBmiIfMzMzMzMzMzAAAbMzMzMzM7ucRBu7///////////gQAGiIh8zMzMzMzMzMzM7u5xEQbu7///// - /////5EAZ4iHzMzMzMzMzMYAAEzMzMzMzO7nERDu7/////////+HAAaIiIzMzMzMzMzMzMzM7u5xEQ7u - 7/////////gQAGiIjMzMzMzMzMzEAAAGzMzMzMzu7nEQbuj////////4cAAHiIh8zMzMzMzMzMzMzO7u - dxEW7uj////////3AAZoiHzMzMzMzMzMYAAABMzMzMzM7u5xEG7u////////hgAAeIiHzMzMzMzMzMzM - zMzO7ucREW7u7///////gQAGiIh8zMzMzMzMzEAAAABszMzMzM7ucREG7uj/////hmAAB4iI7MzMzMzM - zMzMzMzMzu7ucREG7u6P////+AAAB4iIzMzMzMzMzMYAAAAATMzMzMzO7ucREG7u7oiO7mAAAHiIiMzM - zMzMzMzMzMzMzMzu7ucREG7u7o//+HYAAHiIh8zMzMzMzMzEAAAAAAbMzMzMzu7nEREG7u7u5mAAAAeI - iIfMzMzMzMzMzMzMzMzMzu7ucREQbu7u7uYAAAeIiHzMzMzMzMzMYAAAAAAAbMzMzMzu7nEREAZmZgAA - AAF4iI58zMzMzMzMzMzMzMzMzMzu7ncREQZm7mZgAAB4iI7MzMzMzMzMxgAAAAAAAEzMzMzM7u7nEREQ - AAAAABF4iI7uzMzMzMzMzMzMzMzMzMzM7u7ucRERAAAAAAAHiIiMzMzMzMzMzMQAAAAAAAAGzMzMzM7u - 7nERERERERF3iIju7MzMzMzMzMzMzMzMzMzMzM7u7udREREQAAAReIiIfMzMzMzMzMxgAAAAAAAAAGzM - zMzM7u7udRERERV4iI7u7MzMzMzMzMzMzMzMzMzMzMzM7u7u5xEREREReIiO7MzMzMzMzMzGAAAAAAAA - AAAGzMzMzM7u7u53d3eIiO7u7szMzMzMzMzMzMzMzMzMzMzMzM7u7u7nd1F3eIiO7uzMzMzMzMzMYAAA - AAAAAAAAAGzMzMzM7u7u7u7u7u7u7szMzMzMzMzMzMzMzMzMzMzMzMzMzu7u7u6IiI7u7uzMzMzMzMzM - xgAAAAAAAAAAAAAGzMzMzMzu7u7u7u7u5szMzMzMzMzMzMzMzMzMzMzMzMzMzMzO7u7u7u7u7u7MzMzM - zMzMzGAAAAAAAAAAAAAAAEbMzMzMzG7u7u7ubMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM7u7u7u7uzM - zMzMzMzMzGQAAAAAAAAAAAAAAAAAbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzG7u - 7szMzMzMzMzMzMYAAAAAAAAAAAAAAAAAAARszMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAABGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAAAABmzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzGYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARGZmzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZmZEAAAAAAAAAAAAAAAAD////+AAAAAAAAAAD/////////AAAA - AAAAAAAAAP//////+AAAAAAAAAAAAAAf/////+AAAAAAAAAAAAAAB/////+AAAAAAAAAAAAAAAH////+ - AAAAAAAAAAAAAAAAf////AAAAAAAAAAAAAAAAD////AAAAAAAAAAAAAAAAAP///gAAAAAAAAAAAAAAAA - B///wAAAAAAAAAAAAAAAAAP//4AAAAAAAAAAAAAAAAAB//8AAAAAAAAAAAAAAAAAAP/+AAAAAAAAAAAA - AAAAAAB//gAAAAAAAAAAAAAAAAAAf/wAAAAAAAAAAAAAAAAAAD/4AAAAAAAAAAAAAAAAAAAf+AAAAAAA - AAAAAAAAAAAAH/AAAAAAAAAAAAAAAAAAAA/wAAAAAAAAAAAAAAAAAAAP4AAAAAAAAAAAAAAAAAAAB+AA - AAAAAAAAAAAAAAAAAAfAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAAAAA - AAOAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAA - AAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAABAAAAAAAA - AAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAA - AAGAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAA - AAAAAAABgAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAPAAAAAAAAAAAAAAAAAAAADwAAAAAAA - AAAAAAAAAAAAA+AAAAAAAAAAAAAAAAAAAAfgAAAAAAAAAAAAAAAAAAAH8AAAAAAAAAAAAAAAAAAAD/AA - AAAAAAAAAAAAAAAAAA/4AAAAAAAAAAAAAAAAAAAf+AAAAAAAAAAAAAAAAAAAH/wAAAAAAAAAAAAAAAAA - AD/+AAAAAAAAAAAAAAAAAAB//gAAAAAAAAAAAAAAAAAAf/8AAAAAAAAAAAAAAAAAAP//gAAAAAAAAAAA - AAAAAAH//8AAAAAAAAAAAAAAAAAD///gAAAAAAAAAAAAAAAAB///8AAAAAAAAAAAAAAAAA////wAAAAA - AAAAAAAAAAA////+AAAAAAAAAAAAAAAAf////4AAAAAAAAAAAAAAAf/////gAAAAAAAAAAAAAAf///// - +AAAAAAAAAAAAAAf//////8AAAAAAAAAAAAA/////////gAAAAAAAAAAf////w== - - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/Old/UploadProductCefForm.cs b/TEMUKJD/KJDForms/ProductForms/Old/UploadProductCefForm.cs deleted file mode 100644 index 519ed04..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/UploadProductCefForm.cs +++ /dev/null @@ -1,463 +0,0 @@ -using AllBase.Helper; -using CefSharp; -using CefSharp.WinForms; -using NaiBa.CefHelper; -using NaiBa.CefHelper.Handler; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace TemuKJD.KJDForms.ProductForms -{ - /// - /// 主要用来设置上货佣金逻辑 - /// - public partial class UploadProductForm - { - ChromiumWebBrowser webBrowser = null; - UserControls.ButtonEx btn = null; - public void InitCommissionCef() - { - - Task.Run(() => - { - while (true) - { - Thread.Sleep(500); - if (!uploadParam.isSetCommission) - continue; - - if (webBrowser == null) - { - Invoke(new Action(() => - { - webBrowser = CEFBrowser.CreateChromiumWebBrowser("about:blank", false); - webBrowser.Dock = DockStyle.Fill; - webBrowser.KeyboardHandler = new KeyboardHandler(); - webBrowser.AddressChanged += WebBrowser_AddressChanged; - webBrowser.FrameLoadEnd += webBrowser_FrameLoadEnd; - webBrowser.SendToBack(); - this.Controls.Add(webBrowser); - - btn = new UserControls.ButtonEx(); - btn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - btn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - btn.Cursor = System.Windows.Forms.Cursors.Hand; - btn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - btn.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - btn.ForeColor = System.Drawing.Color.White; - btn.Location = new System.Drawing.Point(this.Width - 82, 10); - btn.Margin = new System.Windows.Forms.Padding(2); - btn.Name = "btn"; - btn.Size = new System.Drawing.Size(72, 25); - btn.TabIndex = 390; - btn.Text = "隐藏"; - btn.UseVisualStyleBackColor = false; - btn.Click += Btn_Click; - Controls.Add(btn); - })); - } - - if (!webBrowser.IsBrowserInitialized || webBrowser.IsLoading) - continue; - - var jsCode = "function closeMask() {" + - "if (document.body.innerHTML.indexOf('普通计划') < 0) return;" + - "var mask1 = document.getElementsByClassName('ant-modal-root')[0];" + - "if (mask1) mask1.parentNode.removeChild(mask1);" + - "var mask2 = document.getElementsByClassName('y-guide')[0];" + - "if (mask2) mask2.parentNode.removeChild(mask2);" + - "var mask3 = document.getElementById('browser-support-tip');" + - "if (mask3) mask3.parentNode.removeChild(mask3);" + - "}" + - "closeMask();"; - //var t = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsCode); - //t.Wait(3000); - - Thread.Sleep(500); - while (lstCommissionAddResult.Count > 0) - { - Thread.Sleep(10); - var commission = lstCommissionAddResult[0]; - var commissions = lstCommissionAddResult.Where(c => c.ShopName == commission.ShopName && c.Rate == commission.Rate).ToList(); - var shop = AllBase.Helper.GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopAccount == commission.ShopName); - if (shop == null) - { - lstCommissionAddResult.RemoveAll(s => s.ShopName == commission.ShopName); - NaiBa.Util.Helper.ConfigHelper.SaveConfig("upload_commission_list", lstCommissionAddResult); - } - else - { - var productIds = ""; - var rate = commission.Rate; - for (int i = 0; i < 10 && i < commissions.Count; i++) - { - productIds += commissions[i].ProductId + ","; - } - var cookie = shop.Cookies; - CEFBrowser.DeleteCookie(webBrowser.RequestContext.GetCookieManager(null)); - var t = CEFBrowser.SetCookieAsync("jinritemai.com", cookie, webBrowser.RequestContext.GetCookieManager(null)); - t.Wait(2000); - Thread.Sleep(500); - webBrowser.Load("https://buyin.jinritemai.com/dashboard/activity/common-plan"); - while (webBrowser.IsLoading) - { - Thread.Sleep(1000); - } - for (int i = 0; i < 50; i++) - { - Thread.Sleep(2000); - var jsStr1 = clickJsElementStr + - "function clickBtn(txt) {\r\n" + - " if (document.body.innerHTML.indexOf('加载失败') >= 0)\r\n" + - " return '加载失败';\r\n" + - " var elem = getElement(txt);\r\n" + - " if (elem) elem.click(); return 'success';\r\n" + - " return 'no_element';\r\n" + - "}\r\n" + - "clickBtn('添加商品');\r\n"; - var t1 = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr1); - t1.Wait(); - if (t1.Result?.Result?.ToString() == "加载失败") - break; - if (t1.Result?.Result?.ToString() == "success") - { - Thread.Sleep(2000); - - string failMsg = ""; - - #region 选择批量查询选项 - var host = webBrowser.GetBrowser().GetHost(); - int x = 0, y = 0; - jsStr1 = "function getPos() { var box = document.getElementsByClassName('search-product-select');" + - "if (box[0] == null) return '-|-';" + - "var actualLeft = box[0].offsetLeft;" + - "var actualTop = box[0].offsetTop;" + - "var current = box[0].offsetParent;" + - "while (current !== null) { actualLeft += current.offsetLeft; actualTop += current.offsetTop; current = current.offsetParent; }" + - "return '' + actualLeft + '|' + actualTop;}" + - "getPos();"; - var task = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr1); - task.Wait(); - var result = task.Result?.Result?.ToString(); - - if (result != null && result != "-|-") - { - var arr = result.Split('|'); - if (arr.Length == 2) - { - x = Convert.ToInt32(arr[0]); - y = Convert.ToInt32(arr[1]); - } - int x1 = x + new Random(DateTime.Now.Millisecond).Next(6, 30); - int y1 = y + new Random(DateTime.Now.Millisecond).Next(6, 16); - host.SendMouseClickEvent(x1, y1, MouseButtonType.Left, false, 1, CefEventFlags.None); // 按下鼠标左键 - Thread.Sleep(70 + new Random(DateTime.Now.Millisecond).Next(50)); - host.SendMouseClickEvent(x1, y1, MouseButtonType.Left, true, 1, CefEventFlags.None); // 松开鼠标左键 - Thread.Sleep(500 + new Random(DateTime.Now.Millisecond).Next(500)); - - x1 = x + new Random(DateTime.Now.Millisecond).Next(6, 30); - y1 = y + new Random(DateTime.Now.Millisecond).Next(84, 94); - host.SendMouseClickEvent(x1, y1, MouseButtonType.Left, false, 1, CefEventFlags.None); // 按下鼠标左键 - Thread.Sleep(70 + new Random(DateTime.Now.Millisecond).Next(50)); - host.SendMouseClickEvent(x1, y1, MouseButtonType.Left, true, 1, CefEventFlags.None); // 松开鼠标左键 - Thread.Sleep(500 + new Random(DateTime.Now.Millisecond).Next(500)); - } - else - { - failMsg = "佣金商品列表打开失败。"; - goto showFail; - } - #endregion - - #region 输入商品编号并查询 - jsStr1 = "function getPos() { var box = document.getElementsByClassName('ant-select-show-search');" + - "if (box[0] == null) return '-|-';" + - "var actualLeft = box[0].offsetLeft;" + - "var actualTop = box[0].offsetTop;" + - "var current = box[0].offsetParent;" + - "while (current !== null) { actualLeft += current.offsetLeft; actualTop += current.offsetTop; current = current.offsetParent; }" + - "return '' + actualLeft + '|' + actualTop;}" + - "getPos();"; - task = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr1); - task.Wait(); - result = task.Result?.Result?.ToString(); - - if (result != null && result != "-|-") - { - var arr = result.Split('|'); - if (arr.Length == 2) - { - x = Convert.ToInt32(arr[0]); - y = Convert.ToInt32(arr[1]); - } - int x1 = x + new Random(DateTime.Now.Millisecond).Next(6, 30); - int y1 = y + new Random(DateTime.Now.Millisecond).Next(6, 16); - host.SendMouseClickEvent(x1, y1, MouseButtonType.Left, false, 1, CefEventFlags.None); // 按下鼠标左键 - Thread.Sleep(70 + new Random(DateTime.Now.Millisecond).Next(50)); - host.SendMouseClickEvent(x1, y1, MouseButtonType.Left, true, 1, CefEventFlags.None); // 松开鼠标左键 - Thread.Sleep(500 + new Random(DateTime.Now.Millisecond).Next(500)); - - Invoke(new Action(() => - { - Clipboard.Clear(); - Clipboard.SetDataObject("" + productIds.TrimEnd(',')); // 复制要搜索的商品ID到剪贴板 - })); - - // 黏贴 ctrl + v - host.SendKeyEvent(new CefSharp.KeyEvent() { WindowsKeyCode = 86, Type = KeyEventType.RawKeyDown, Modifiers = CefEventFlags.ControlDown }); - Thread.Sleep(250 + new Random(DateTime.Now.Millisecond).Next(250)); - } - else - { - failMsg = "查询设置佣金商品失败。"; - goto showFail; - } - - jsStr1 = "document.getElementsByClassName('search-btns-item-first')[0].click();"; - task = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr1); - task.Wait(); - Thread.Sleep(500 + new Random(DateTime.Now.Millisecond).Next(500)); - #endregion - - #region 勾选商品信息 - jsStr1 = getFirstElementJsStr + - "\r\nfunction getInnerHtml() {\r\n" + - " var item = document.getElementsByClassName('ant-table-wrapper activity-list-table')[0];\r\n" + - " if (item) {\r\n" + - " return item.innerHTML;\r\n" + - " }\r\n" + - " return 'no_element';\r\n" + - "}\r\n" + - "getInnerHtml();"; - task = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr1); - task.Wait(); - Thread.Sleep(500 + new Random(DateTime.Now.Millisecond).Next(500)); - var idArray = productIds.TrimEnd(',').Split(','); - if (task.Result?.Result?.ToString() == null || !idArray.Any(a => task.Result.Result.ToString().Contains(a))) - { - failMsg = "设置佣金商品不存在。"; - goto showFail; - } - - jsStr1 = getFirstElementJsStr + - "\r\nfunction clickCheckBox() {\r\n" + - " var item = document.getElementsByClassName('ant-table-wrapper activity-list-table')[0];\r\n" + - " if (item) {\r\n" + - " var tHead = getFirstElement('THEAD', item)\r\n" + - " var tagItem = getFirstElement('INPUT', tHead)\r\n" + - " if (tagItem) tagItem.click(); return 'success';\r\n" + - " }\r\n" + - " return 'no_element';\r\n" + - "}\r\n" + - "clickCheckBox();"; - task = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr1); - task.Wait(); - Thread.Sleep(500 + new Random(DateTime.Now.Millisecond).Next(500)); - if (task.Result?.Result?.ToString() != "success") - { - failMsg = "设置佣金选择商品不存在。"; - goto showFail; - } - #endregion - - #region 点击确定设置佣金 - jsStr1 = "document.getElementsByClassName('exclusive_commodity-filter-drawer-footer-operations__operation ant-btn-primary')[0].click();"; - task = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr1); - task.Wait(); - Thread.Sleep(500 + new Random(DateTime.Now.Millisecond).Next(500)); - #endregion - - #region 设置佣金金额 - jsStr1 = "function getPos() { var box = document.getElementsByClassName('ant-input-number-input');" + - "if (box[0] == null) return '-|-';" + - "var actualLeft = box[0].offsetLeft;" + - "var actualTop = box[0].offsetTop;" + - "var current = box[0].offsetParent;" + - "while (current !== null) { actualLeft += current.offsetLeft; actualTop += current.offsetTop; current = current.offsetParent; }" + - "return '' + actualLeft + '|' + actualTop;}" + - "getPos();"; - task = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr1); - task.Wait(); - result = task.Result?.Result?.ToString(); - - if (result != null && result != "-|-") - { - var arr = result.Split('|'); - if (arr.Length == 2) - { - x = Convert.ToInt32(arr[0]); - y = Convert.ToInt32(arr[1]); - } - int x1 = x + new Random(DateTime.Now.Millisecond).Next(30, 60); - int y1 = y + new Random(DateTime.Now.Millisecond).Next(6, 16); - host.SendMouseClickEvent(x1, y1, MouseButtonType.Left, false, 1, CefEventFlags.None); // 按下鼠标左键 - Thread.Sleep(70 + new Random(DateTime.Now.Millisecond).Next(50)); - host.SendMouseClickEvent(x1, y1, MouseButtonType.Left, true, 1, CefEventFlags.None); // 松开鼠标左键 - Thread.Sleep(150 + new Random(DateTime.Now.Millisecond).Next(150)); - - // 模拟输入退格键 - host.SendKeyEvent(new CefSharp.KeyEvent() { WindowsKeyCode = 8, Type = KeyEventType.RawKeyDown, Modifiers = CefEventFlags.None }); - Thread.Sleep(250 + new Random(DateTime.Now.Millisecond).Next(250)); - // 模拟输入退格键 - host.SendKeyEvent(new CefSharp.KeyEvent() { WindowsKeyCode = 8, Type = KeyEventType.RawKeyDown, Modifiers = CefEventFlags.None }); - Thread.Sleep(250 + new Random(DateTime.Now.Millisecond).Next(250)); - - Invoke(new Action(() => - { - Clipboard.Clear(); - Clipboard.SetDataObject("" + rate); // 复制要搜索的商品ID到剪贴板 - })); - - // 黏贴 ctrl + v - host.SendKeyEvent(new CefSharp.KeyEvent() { WindowsKeyCode = 86, Type = KeyEventType.RawKeyDown, Modifiers = CefEventFlags.ControlDown }); - Thread.Sleep(500 + new Random(DateTime.Now.Millisecond).Next(500)); - } - else - { - failMsg = "佣金金额设置失败。"; - goto showFail; - } - #endregion - - #region 最后点击确定按钮设置佣金 - //apply-sample-modal-footer - jsStr1 = clickJsElementStr + - "function clickOkBtn(txt) {\r\n" + - " var elem = getElement(txt, document.getElementsByClassName('apply-sample-modal-footer')[0]);\r\n" + - " if (elem) elem.click(); return 'success';\r\n" + - " return 'no_element';\r\n" + - "}\r\n" + - "clickBtn('确定');\r\n"; - t1 = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr1); - t1.Wait(); - Thread.Sleep(500 + new Random(DateTime.Now.Millisecond).Next(500)); - #endregion - - Thread.Sleep(2000); - - //bool isRetry = false; - //Retry: - //var url = "https://buyin.jinritemai.com/api/promotion/createXdPromotions"; - ////if (!string.IsNullOrEmpty(sign)) - //// url += "?_signature=" + sign; - //var request = new CommonSimRequest(); - //var referer = "https://buyin.jinritemai.com/dashboard/activity/common-plan"; - //var data = "cos_ratio=" + rate + "&apply_style=1&product_ids=" + productIds.Trim(','); - //Dictionary headers = new Dictionary(); - //headers.Add("Origin", @"https://buyin.jinritemai.com"); - //var html = request.Request_Post(url, referer, headers, shop.Cookies, data); - //if (html.Contains("\"msg\":\"success\"") && html.Contains("\"failed_ids\":{}")) - //{ - //} - //else - //{ - // if (!isRetry) - // { - // isRetry = true; - // goto Retry; - // } - showFail: - if (!string.IsNullOrEmpty(failMsg)) - { - Invoke(new Action(() => - { - pnlShowError.Visible = true; - pnlShowError.Text = " 设置佣金部分失败:" + failMsg + " " + productIds.Trim(',') + " "; - this.pnlShowError.BringToFront(); - Task.Run(() => - { - Thread.Sleep(8000); - if (this.Created) - Invoke(new Action(() => - { - this.pnlShowError.Visible = false; - })); - }); - })); - } - //} - - var html = ""; - lock (lstCommissionAddResult) - { - try - { - //if (html.Contains("\"msg\":\"success\"") && html.Contains("\"failed_ids\":{}")) - { - lstCommissionAddResult.RemoveAll(s => productIds.Contains(s.ProductId.ToString()) || s.ProductId == 0); - NaiBa.Util.Helper.ConfigHelper.SaveConfig("upload_commission_list", lstCommissionAddResult); - } - } - catch (Exception ex) { } - } - for (int k = 0; k < 600; k++) - { - Thread.Sleep(1000); - if (lstCommissionAddResult.Count > 10 || Work.BLL.Upload.UploadProductBLL.ProductStock.Count < 1) - break; - } - - break; - } - } - } - } - } - }); - } - - private void Btn_Click(object sender, EventArgs e) - { - this.webBrowser.SendToBack(); - btn.SendToBack(); - } - - private void WebBrowser_AddressChanged(object sender, CefSharp.AddressChangedEventArgs e) - { - } - - private void webBrowser_FrameLoadEnd(object sender, CefSharp.FrameLoadEndEventArgs e) - { - } - - public string clickJsElementStr = "function getElement(txt, elem) {\r\n" + - " var child = document.body.firstElementChild;\r\n" + - " if (elem) child = elem\r\n" + - " var element1 = null;\r\n" + - " while (child) {\r\n" + - " if (child.innerHTML.indexOf(txt) >= 0) {\r\n" + - " element1 = child;\r\n" + - " if (child.firstElementChild) {\r\n" + - " child = child.firstElementChild; continue;\r\n" + - " } else break;\r\n" + - " }\r\n" + - " child = child.nextElementSibling;\r\n" + - " }\r\n" + - " if (element1) {\r\n" + - " return element1;\r\n" + - " } else return error;\r\n" + - "}\r\n"; - - public string getFirstElementJsStr = "function getFirstElement(tag_name, elem) {\r\n" + - " var nodes = [];\r\n" + - " var child = document.body.firstElementChild;\r\n" + - " if (elem) child = elem\r\n" + - " nodes.push(child);\r\n" + - " for (i = 0; i < nodes.length; i++) {\r\n" + - " if (nodes[i].tagName === tag_name) return nodes[i];\r\n" + - " for (j = 0; j < nodes[i].childNodes.length; j++) {\r\n" + - " var node = nodes[i].childNodes[j];\r\n" + - " if ((node.nodeType != 3) && (node.nodeName != 'SCRIPT')) {\r\n" + - " nodes.push(node);\r\n" + - " }\r\n" + - " }\r\n" + - " }\r\n" + - " return error;\r\n" + - "}\r\n"; - } -} diff --git a/TEMUKJD/KJDForms/ProductForms/Old/UploadProductErrorForm.Designer.cs b/TEMUKJD/KJDForms/ProductForms/Old/UploadProductErrorForm.Designer.cs deleted file mode 100644 index e751557..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/UploadProductErrorForm.Designer.cs +++ /dev/null @@ -1,389 +0,0 @@ -namespace TemuKJD.KJDForms.ProductForms -{ - partial class UploadProductErrorForm - { - /// - /// 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() - { - 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(); - this.panel1 = new System.Windows.Forms.Panel(); - this.btnCancel = new TemuKJD.UserControls.ButtonEx(); - this.btnSave = new TemuKJD.UserControls.ButtonEx(); - this.textBox1 = new System.Windows.Forms.TextBox(); - this.buttonExportCsv = new TemuKJD.UserControls.ButtonEx(); - this.btnAddToUpload = new TemuKJD.UserControls.ButtonEx(); - this.dgvError = new TemuKJD.UserComponent.DataGridViewEx(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ColCatId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colAuthStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ColFrom = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ColProductId = new System.Windows.Forms.DataGridViewLinkColumn(); - this.ColError = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ColRemark = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Column3 = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.btnImport = new TemuKJD.UserControls.ButtonEx(); - this.btnOnlineSearch = new TemuKJD.UserControls.ButtonEx(); - this.label2 = new System.Windows.Forms.Label(); - this.btnGetProp材质 = new TemuKJD.UserControls.ButtonEx(); - this.btnGetDetail = new TemuKJD.UserControls.ButtonEx(); - this.panel1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgvError)).BeginInit(); - this.SuspendLayout(); - // - // panel1 - // - this.panel1.Anchor = System.Windows.Forms.AnchorStyles.None; - this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel1.Controls.Add(this.btnCancel); - this.panel1.Controls.Add(this.btnSave); - this.panel1.Controls.Add(this.textBox1); - this.panel1.Location = new System.Drawing.Point(351, 206); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(240, 135); - this.panel1.TabIndex = 380; - this.panel1.Visible = false; - // - // btnCancel - // - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnCancel.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnCancel.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnCancel.ForeColor = System.Drawing.Color.White; - this.btnCancel.Location = new System.Drawing.Point(122, 105); - this.btnCancel.Margin = new System.Windows.Forms.Padding(2); - this.btnCancel.Name = "btnCancel"; - this.btnCancel.Size = new System.Drawing.Size(80, 26); - this.btnCancel.TabIndex = 380; - this.btnCancel.Text = "取消"; - this.btnCancel.UseVisualStyleBackColor = false; - this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); - // - // btnSave - // - this.btnSave.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSave.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnSave.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSave.ForeColor = System.Drawing.Color.White; - this.btnSave.Location = new System.Drawing.Point(38, 105); - this.btnSave.Margin = new System.Windows.Forms.Padding(2); - this.btnSave.Name = "btnSave"; - this.btnSave.Size = new System.Drawing.Size(80, 26); - this.btnSave.TabIndex = 379; - this.btnSave.Text = "保存"; - this.btnSave.UseVisualStyleBackColor = false; - this.btnSave.Click += new System.EventHandler(this.btnSave_Click); - // - // textBox1 - // - this.textBox1.Location = new System.Drawing.Point(4, 4); - this.textBox1.Name = "textBox1"; - this.textBox1.Size = new System.Drawing.Size(231, 21); - this.textBox1.TabIndex = 0; - // - // buttonExportCsv - // - this.buttonExportCsv.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.buttonExportCsv.Cursor = System.Windows.Forms.Cursors.Hand; - this.buttonExportCsv.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.buttonExportCsv.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.buttonExportCsv.ForeColor = System.Drawing.Color.White; - this.buttonExportCsv.Location = new System.Drawing.Point(231, 11); - this.buttonExportCsv.Margin = new System.Windows.Forms.Padding(2); - this.buttonExportCsv.Name = "buttonExportCsv"; - this.buttonExportCsv.Size = new System.Drawing.Size(80, 26); - this.buttonExportCsv.TabIndex = 382; - this.buttonExportCsv.Text = "导入csv"; - this.buttonExportCsv.UseVisualStyleBackColor = false; - this.buttonExportCsv.Click += new System.EventHandler(this.buttonExportCsv_Click); - // - // btnAddToUpload - // - this.btnAddToUpload.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnAddToUpload.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnAddToUpload.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnAddToUpload.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnAddToUpload.ForeColor = System.Drawing.Color.White; - this.btnAddToUpload.Location = new System.Drawing.Point(357, 11); - this.btnAddToUpload.Margin = new System.Windows.Forms.Padding(2); - this.btnAddToUpload.Name = "btnAddToUpload"; - this.btnAddToUpload.Size = new System.Drawing.Size(109, 26); - this.btnAddToUpload.TabIndex = 381; - this.btnAddToUpload.Text = "添加选中到上传"; - this.btnAddToUpload.UseVisualStyleBackColor = false; - this.btnAddToUpload.Click += new System.EventHandler(this.btnAddToUpload_Click); - // - // dgvError - // - this.dgvError.AllowUserToAddRows = false; - this.dgvError.AllowUserToDeleteRows = false; - dataGridViewCellStyle7.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvError.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle7; - this.dgvError.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.dgvError.BackgroundColor = System.Drawing.Color.White; - this.dgvError.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle8.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dgvError.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8; - this.dgvError.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgvError.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.colSelect, - this.Column1, - this.Column2, - this.ColCatId, - this.colAuthStatus, - this.ColFrom, - this.ColProductId, - this.ColError, - this.ColRemark, - this.Column3}); - this.dgvError.Location = new System.Drawing.Point(9, 44); - this.dgvError.Name = "dgvError"; - this.dgvError.ReadOnly = true; - dataGridViewCellStyle9.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvError.RowsDefaultCellStyle = dataGridViewCellStyle9; - this.dgvError.RowTemplate.Height = 23; - this.dgvError.Size = new System.Drawing.Size(925, 479); - this.dgvError.TabIndex = 379; - this.dgvError.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvError_CellClick); - this.dgvError.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvError_CellContentClick); - this.dgvError.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dgvError_KeyDown); - this.dgvError.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.dgvError_KeyPress); - // - // colSelect - // - this.colSelect.FillWeight = 50F; - 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 = 40; - // - // Column1 - // - this.Column1.HeaderText = "添加时间"; - this.Column1.Name = "Column1"; - this.Column1.ReadOnly = true; - // - // Column2 - // - this.Column2.HeaderText = "修改时间"; - this.Column2.Name = "Column2"; - this.Column2.ReadOnly = true; - // - // ColCatId - // - this.ColCatId.HeaderText = "分类ID"; - this.ColCatId.Name = "ColCatId"; - this.ColCatId.ReadOnly = true; - this.ColCatId.Resizable = System.Windows.Forms.DataGridViewTriState.True; - // - // colAuthStatus - // - this.colAuthStatus.HeaderText = "分类名称"; - this.colAuthStatus.Name = "colAuthStatus"; - this.colAuthStatus.ReadOnly = true; - this.colAuthStatus.Width = 200; - // - // ColFrom - // - this.ColFrom.HeaderText = "商品来源"; - this.ColFrom.Name = "ColFrom"; - this.ColFrom.ReadOnly = true; - // - // ColProductId - // - this.ColProductId.HeaderText = "商品ID"; - this.ColProductId.Name = "ColProductId"; - this.ColProductId.ReadOnly = true; - this.ColProductId.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.ColProductId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - // - // ColError - // - this.ColError.HeaderText = "错误内容"; - this.ColError.Name = "ColError"; - this.ColError.ReadOnly = true; - this.ColError.Width = 500; - // - // ColRemark - // - this.ColRemark.HeaderText = "备注"; - this.ColRemark.Name = "ColRemark"; - this.ColRemark.ReadOnly = true; - // - // Column3 - // - this.Column3.HeaderText = "是否修复"; - this.Column3.Name = "Column3"; - this.Column3.ReadOnly = true; - this.Column3.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.Column3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - // - // btnImport - // - this.btnImport.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnImport.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnImport.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnImport.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnImport.ForeColor = System.Drawing.Color.White; - this.btnImport.Location = new System.Drawing.Point(147, 11); - this.btnImport.Margin = new System.Windows.Forms.Padding(2); - this.btnImport.Name = "btnImport"; - this.btnImport.Size = new System.Drawing.Size(80, 26); - this.btnImport.TabIndex = 378; - this.btnImport.Text = "导入sql"; - this.btnImport.UseVisualStyleBackColor = false; - this.btnImport.Click += new System.EventHandler(this.btnImport_Click); - // - // btnOnlineSearch - // - this.btnOnlineSearch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnOnlineSearch.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnOnlineSearch.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnOnlineSearch.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnOnlineSearch.ForeColor = System.Drawing.Color.White; - this.btnOnlineSearch.Location = new System.Drawing.Point(11, 11); - this.btnOnlineSearch.Margin = new System.Windows.Forms.Padding(2); - this.btnOnlineSearch.Name = "btnOnlineSearch"; - this.btnOnlineSearch.Size = new System.Drawing.Size(132, 26); - this.btnOnlineSearch.TabIndex = 377; - this.btnOnlineSearch.Text = "服务端查询(内网)"; - this.btnOnlineSearch.UseVisualStyleBackColor = false; - this.btnOnlineSearch.Click += new System.EventHandler(this.btnOnlineSearch_Click); - // - // label2 - // - this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.label2.AutoSize = true; - this.label2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label2.Location = new System.Drawing.Point(889, 13); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(31, 20); - this.label2.TabIndex = 384; - this.label2.Text = "0/0"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.label2.Visible = false; - // - // btnGetProp材质 - // - this.btnGetProp材质.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnGetProp材质.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnGetProp材质.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnGetProp材质.FlatAppearance.BorderSize = 0; - this.btnGetProp材质.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnGetProp材质.Font = new System.Drawing.Font("微软雅黑", 9F); - this.btnGetProp材质.ForeColor = System.Drawing.Color.White; - this.btnGetProp材质.Location = new System.Drawing.Point(683, 11); - this.btnGetProp材质.Margin = new System.Windows.Forms.Padding(2); - this.btnGetProp材质.Name = "btnGetProp材质"; - this.btnGetProp材质.Size = new System.Drawing.Size(188, 26); - this.btnGetProp材质.TabIndex = 383; - this.btnGetProp材质.Text = "采集含有材质必填的类目"; - this.btnGetProp材质.UseVisualStyleBackColor = false; - this.btnGetProp材质.Visible = false; - this.btnGetProp材质.Click += new System.EventHandler(this.btnGetProp材质_Click); - // - // btnGetDetail - // - this.btnGetDetail.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnGetDetail.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnGetDetail.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnGetDetail.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnGetDetail.ForeColor = System.Drawing.Color.White; - this.btnGetDetail.Location = new System.Drawing.Point(540, 11); - this.btnGetDetail.Margin = new System.Windows.Forms.Padding(2); - this.btnGetDetail.Name = "btnGetDetail"; - this.btnGetDetail.Size = new System.Drawing.Size(103, 26); - this.btnGetDetail.TabIndex = 385; - this.btnGetDetail.Text = "测试商品详情"; - this.btnGetDetail.UseVisualStyleBackColor = false; - this.btnGetDetail.Click += new System.EventHandler(this.btnGetDetail_Click); - // - // UploadProductErrorForm - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(945, 535); - this.Controls.Add(this.btnGetDetail); - this.Controls.Add(this.label2); - this.Controls.Add(this.btnGetProp材质); - this.Controls.Add(this.buttonExportCsv); - this.Controls.Add(this.btnAddToUpload); - this.Controls.Add(this.panel1); - this.Controls.Add(this.dgvError); - this.Controls.Add(this.btnImport); - this.Controls.Add(this.btnOnlineSearch); - this.Name = "UploadProductErrorForm"; - this.Text = "UploadProductErrorForm"; - this.Load += new System.EventHandler(this.UploadProductErrorForm_Load); - this.panel1.ResumeLayout(false); - this.panel1.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgvError)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private UserControls.ButtonEx btnImport; - private UserControls.ButtonEx btnOnlineSearch; - private UserComponent.DataGridViewEx dgvError; - private System.Windows.Forms.Panel panel1; - private UserControls.ButtonEx btnCancel; - private UserControls.ButtonEx btnSave; - private System.Windows.Forms.TextBox textBox1; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn Column1; - private System.Windows.Forms.DataGridViewTextBoxColumn Column2; - private System.Windows.Forms.DataGridViewTextBoxColumn ColCatId; - private System.Windows.Forms.DataGridViewTextBoxColumn colAuthStatus; - private System.Windows.Forms.DataGridViewTextBoxColumn ColFrom; - private System.Windows.Forms.DataGridViewLinkColumn ColProductId; - private System.Windows.Forms.DataGridViewTextBoxColumn ColError; - private System.Windows.Forms.DataGridViewTextBoxColumn ColRemark; - private System.Windows.Forms.DataGridViewCheckBoxColumn Column3; - private UserControls.ButtonEx btnAddToUpload; - private UserControls.ButtonEx buttonExportCsv; - private System.Windows.Forms.Label label2; - private UserControls.ButtonEx btnGetProp材质; - private UserControls.ButtonEx btnGetDetail; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/Old/UploadProductErrorForm.cs b/TEMUKJD/KJDForms/ProductForms/Old/UploadProductErrorForm.cs deleted file mode 100644 index 5937f23..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/UploadProductErrorForm.cs +++ /dev/null @@ -1,497 +0,0 @@ -using AllBase; -using AllBase.Helper; -using AllBase.Model.Param.FissionManage; -using AllBase.Model.Param.ProductManage; -using AllBase.Model.Param.UploadManage; -using AllBase.Model.Result; -using TemuKJD.KJDForms.BaseForms; -using NaiBa.Util; -using NaiBa.Util.Extension; -using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; -using Work.BLL.Upload; -using Work.DouyinApiClass; - -namespace TemuKJD.KJDForms.ProductForms -{ - public partial class UploadProductErrorForm : BaseForm - { - public static List lstUploadErrorParam = new List(); - - public UploadProductErrorForm() - { - InitializeComponent(); - - lstUploadErrorParam = NaiBa.Util.Helper.ConfigHelper.LoadConfig>("upload_product_error_data"); - if (lstUploadErrorParam == null) - lstUploadErrorParam = new List(); - } - - private void btnImport_Click(object sender, EventArgs e) - { - if (Fission.goodsCategoryList.Count == 0) - Fission.goodsCategoryList = JsonHelper.DeserializeJsonToList(DyCategoryParam.DyCategorys); - - OpenFileDialog openFileDialog = new OpenFileDialog(); - openFileDialog.Filter = "数据库.sql文件(*.sql)|*.sql"; - openFileDialog.RestoreDirectory = true; - openFileDialog.FilterIndex = 1; - openFileDialog.Multiselect = true; - if (openFileDialog.ShowDialog() == DialogResult.OK) - { - Task.Run(() => - { - foreach (var fileName in openFileDialog.FileNames) - { - string lineStr = string.Empty; - string productUrl = string.Empty; - try - { - using (StreamReader sr = new StreamReader(fileName, Encoding.UTF8)) - { - int row = 0; - while ((lineStr = sr.ReadLine()) != null) - { - List LineStrs = new List(); - if (lineStr.StartsWith("INSERT INTO `oa_upload_error_log` VALUES")) - LineStrs = lineStr.Split(new string[] { ", ", "INSERT INTO `oa_upload_error_log` VALUES (", ");" }, - StringSplitOptions.RemoveEmptyEntries).ToList(); - else - continue; - - UploadErrorParam err = new UploadErrorParam() - { - cat_id = LineStrs[8].Trim('\''), - message = LineStrs[9].Trim('\''), - product_id = LineStrs[10].Trim('\''), - source_id = LineStrs[11].Trim('\''), - addtime = Convert.ToDateTime(LineStrs[1].Trim('\'')), - update_time = Convert.ToDateTime(LineStrs[4].Trim('\'')), - }; - var cat = Fission.goodsCategoryList.FirstOrDefault(c => c.id.ToString() == err.cat_id); - string catName = "^" + cat?.name; - if (cat != null && cat.name != "全部分类") - { - var parentCat = cat; - while (parentCat != null && parentCat.parent_cid != 0) - { - parentCat = Fission.goodsCategoryList.FirstOrDefault(mc => mc.id == parentCat.parent_cid); - catName = "^" + parentCat.name + catName; - } - } - err.cat_name = catName.Trim('^'); - - if (lstUploadErrorParam.Any(r => r.cat_id == err.cat_id && r.product_id == err.product_id && r.message == err.message)) - continue; - - lstUploadErrorParam.Add(err); - - Invoke(new Action(() => - { - if (err.update_time > DateTime.Now.Date) - this.dgvError.Rows.Add(false, err.addtime, err.update_time, err.cat_id, err.cat_name, err.source_id, - err.product_id, err.message, err.remark, err.is_repair); - })); - row++; - } - } - } - catch (Exception ex) - { - if (ex.Message.Contains("无法访问")) - { - BaseMsgForm.ShowInfo("文件" + fileName + "打开失败,请查看是否有其他应用正在使用。"); - } - } - } - NaiBa.Util.Helper.ConfigHelper.SaveConfig>("upload_product_error_data", lstUploadErrorParam); - }); - } - } - - private void dgvError_CellContentClick(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - - string headerText = dgvError.Columns[e.ColumnIndex].HeaderText; - string from = dgvError.Rows[e.RowIndex].Cells["ColFrom"].Value.ToString(); - string productId = dgvError.Rows[e.RowIndex].Cells["ColProductId"].Value.ToString(); - string cat_id = dgvError.Rows[e.RowIndex].Cells["ColCatId"].Value.ToString(); - string message = dgvError.Rows[e.RowIndex].Cells["ColError"].Value.ToString(); - if (headerText.ToUpper() == "商品ID") - { - string upUrl = ""; - if (from.StartsWith("tb")) - upUrl = "https://item.taobao.com/item.htm?id=" + productId; - if (from.StartsWith("pd")) - upUrl = "https://mobile.yangkeduo.com/goods.html?goods_id=" + productId; - if (from.StartsWith("al")) - upUrl = "https://detail.1688.com/offer/" + productId + ".html"; - if (from.StartsWith("jx")) - upUrl = "https://item.jd.com/" + productId + ".html"; - if (from.StartsWith("dy")) - upUrl = "https://haohuo.jinritemai.com/views/product/detail?id=" + productId; - if (string.IsNullOrEmpty(productId)) - upUrl = "https://www.baidu.com"; - NaiBa.Util.Helper.FileHelper.OpenUrl(upUrl); - } - if (headerText == "是否修复") - { - dgvError.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = !dgvError.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ParseToBool(); - var err = lstUploadErrorParam.Find(r => r.cat_id == cat_id && r.product_id == productId && r.message == message); - if (err != null) - { - err.is_repair = dgvError.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ParseToBool(); - NaiBa.Util.Helper.ConfigHelper.SaveConfig>("upload_product_error_data", lstUploadErrorParam); - } - } - if (headerText == "选") - { - dgvError.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = !dgvError.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ParseToBool(); - } - } - - private void UploadProductErrorForm_Load(object sender, EventArgs e) - { - lstUploadErrorParam = lstUploadErrorParam.OrderByDescending(err => err.update_time).ToList(); - var lstUploadErrorParamOld = lstUploadErrorParam.Where(err => err.update_time < DateTime.Now.Date).ToList(); - if (lstUploadErrorParamOld.Count > 0) - NaiBa.Util.Helper.ConfigHelper.SaveConfig>("upload_product_error_data" + DateTime.Now.ToString("yyyyMMddHHmm"), lstUploadErrorParam); - lstUploadErrorParam = lstUploadErrorParam.Where(err => err.update_time >= DateTime.Now.Date).ToList(); - foreach (var err in lstUploadErrorParam) - { - this.dgvError.Rows.Add(false, err.addtime, err.update_time, err.cat_id, err.cat_name, err.source_id, - err.product_id, err.message, err.remark, err.is_repair); - if (this.dgvError.Rows.Count > 5000) - break; - } - -#if DEBUG - btnGetProp材质.Visible = true; - label2.Visible = true; -#endif - } - - private void btnCancel_Click(object sender, EventArgs e) - { - this.panel1.Visible = false; - } - - private void btnSave_Click(object sender, EventArgs e) - { - var err = panel1.Tag as UploadErrorParam; - if (err == null) - return; - - err.remark = textBox1.Text.Trim(); - NaiBa.Util.Helper.ConfigHelper.SaveConfig>("upload_product_error_data", lstUploadErrorParam); - var row = dgvError.Rows.Cast().FirstOrDefault(r => r.Cells["ColProductId"].Value.ToString() == err.product_id - && r.Cells["ColError"].Value.ToString() == err.message && r.Cells["ColCatId"].Value.ToString() == err.cat_id); - row.Cells["ColRemark"].Value = err.remark; - this.panel1.Visible = false; - } - - private void dgvError_CellClick(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - - string headerText = dgvError.Columns[e.ColumnIndex].HeaderText; - string from = dgvError.Rows[e.RowIndex].Cells["ColFrom"].Value.ToString(); - string productId = dgvError.Rows[e.RowIndex].Cells["ColProductId"].Value.ToString(); - string cat_id = dgvError.Rows[e.RowIndex].Cells["ColCatId"].Value.ToString(); - string message = dgvError.Rows[e.RowIndex].Cells["ColError"].Value.ToString(); - if (headerText == "备注") - { - var text = dgvError.Rows[e.RowIndex].Cells[e.ColumnIndex].Value; - var err = lstUploadErrorParam.FirstOrDefault(r => r.cat_id == cat_id && r.product_id == productId && r.message == message); - if (err != null) - { - this.panel1.Tag = err; - this.panel1.Visible = true; - this.panel1.BringToFront(); - this.textBox1.Text = err.remark; - } - } - } - - private void btnAddToUpload_Click(object sender, EventArgs e) - { - var rows = dgvError.Rows.Cast().Where(r => r.Selected).ToList(); - var rows1 = dgvError.Rows.Cast().Where(r => r.Cells["colSelect"].Value?.ParseToBool() == true); - rows.AddRange(rows1); - - List productIds = new List(); - foreach (DataGridViewRow r in rows) - { - string from = r.Cells["ColFrom"].Value.ToString(); - string productId = r.Cells["ColProductId"].Value.ToString(); - - string upUrl = ""; - if (from.StartsWith("tb")) - upUrl = "https://item.taobao.com/item.htm?id=" + productId; - if (from.StartsWith("pd")) - upUrl = "https://mobile.yangkeduo.com/goods.html?goods_id=" + productId; - if (from.StartsWith("al")) - upUrl = "https://detail.1688.com/offer/" + productId + ".html"; - if (from.StartsWith("jx")) - upUrl = "https://item.jd.com/" + productId + ".html"; - if (from.StartsWith("dy")) - upUrl = "https://haohuo.jinritemai.com/views/product/detail?id=" + productId; - if (string.IsNullOrEmpty(productId)) - upUrl = "https://www.baidu.com"; - productIds.Add(upUrl); - } - if (UploadProductForm.instance != null) - { - UploadProductForm.instance.InputDataData(productIds.ToArray()); - } - } - - private void buttonExportCsv_Click(object sender, EventArgs e) - { - if (Fission.goodsCategoryList.Count == 0) - Fission.goodsCategoryList = JsonHelper.DeserializeJsonToList(DyCategoryParam.DyCategorys); - - OpenFileDialog openFileDialog = new OpenFileDialog(); - openFileDialog.Filter = "数据.csv文件(*.csv)|*.csv"; - openFileDialog.RestoreDirectory = true; - openFileDialog.FilterIndex = 1; - openFileDialog.Multiselect = true; - if (openFileDialog.ShowDialog() == DialogResult.OK) - { - Task.Run(() => - { - foreach (var fileName in openFileDialog.FileNames) - { - string lineStr = string.Empty; - string productUrl = string.Empty; - try - { - using (StreamReader sr = new StreamReader(fileName, Encoding.Default)) - { - int row = 0; - while ((lineStr = sr.ReadLine()) != null) - { - List LineStrs = lineStr.Split(new string[] { "," }, - StringSplitOptions.RemoveEmptyEntries).ToList(); - if (LineStrs.Count < 7) - continue; - - UploadErrorParam err = new UploadErrorParam() - { - cat_id = LineStrs[3].Trim('\''), - message = LineStrs[6].Trim('\''), - product_id = LineStrs[4].Trim('\''), - source_id = LineStrs[5].Trim('\''), - addtime = Convert.ToDateTime(LineStrs[1].Trim('\'')), - update_time = Convert.ToDateTime(LineStrs[2].Trim('\'')), - }; - var cat = Fission.goodsCategoryList.FirstOrDefault(c => c.id.ToString() == err.cat_id); - string catName = "^" + cat?.name; - if (cat != null && cat.name != "全部分类") - { - var parentCat = cat; - while (parentCat != null && parentCat.parent_cid != 0) - { - parentCat = Fission.goodsCategoryList.FirstOrDefault(mc => mc.id == parentCat.parent_cid); - catName = "^" + parentCat.name + catName; - } - } - err.cat_name = catName.Trim('^'); - - if (lstUploadErrorParam.Any(r => r.cat_id == err.cat_id && r.product_id == err.product_id && r.message == err.message)) - continue; - - lstUploadErrorParam.Add(err); - - Invoke(new Action(() => - { - if (err.update_time > DateTime.Now.Date /*&& err.message.Contains("类目属性")*/) - this.dgvError.Rows.Add(false, err.addtime, err.update_time, err.cat_id, err.cat_name, err.source_id, - err.product_id, err.message, err.remark, err.is_repair); - })); - row++; - } - } - } - catch (Exception ex) - { - if (ex.Message.Contains("无法访问")) - { - BaseMsgForm.ShowInfo("文件" + fileName + "打开失败,请查看是否有其他应用正在使用。"); - } - } - } - NaiBa.Util.Helper.ConfigHelper.SaveConfig>("upload_product_error_data", lstUploadErrorParam); - }); - } - } - - private void dgvError_KeyPress(object sender, KeyPressEventArgs e) - { - if (e.KeyChar == ' ') - { - } - } - - private void dgvError_KeyDown(object sender, KeyEventArgs e) - { - if (e.KeyCode == Keys.Delete) - { - var rows = dgvError.Rows.Cast().ToList().Where(r => r.Selected); - foreach (var row in rows) - { - var err = lstUploadErrorParam.FirstOrDefault(er => er.cat_id == row.Cells["ColCatId"].Value.ToString() - && er.product_id == row.Cells["ColProductId"].Value.ToString()); - if (err != null) - lstUploadErrorParam.Remove(err); - - dgvError.Rows.Remove(row); - } - } - } - - private void btnGetProp材质_Click(object sender, EventArgs e) - { - Task.Run(() => - { - if (Fission.goodsCategoryList.Count == 0) - Fission.goodsCategoryList = JsonHelper.DeserializeJsonToList(DyCategoryParam.DyCategorys); - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ApiAuthStatus == "授权成功"); - StringBuilder sb = new StringBuilder(); - sb.Append(FileBase.ReadAllText("抖音类目包含材质必填项的属性.txt")); - string errStr = ""; - - int num = 0; - foreach (var ca in Fission.goodsCategoryList) - { - num++; - if (num % 100 == 99) - { - FileBase.WriteAllText("抖音类目包含材质必填项的属性.txt", sb.ToString()); - } - - Invoke(new Action(() => { this.label2.Text = num + "/" + Fission.goodsCategoryList.Count; })); - if (sb.ToString().StartsWith(ca.id + "^") || sb.ToString().Contains("\r\n" + ca.id + "^")) - continue; - - if (!ca.is_leaf) - continue; - - string str = ""; - - CatePropertyResponseInfo propery = new UploadPropertyBLL().getCatePropertyInterfaceV2(ca.id.ToString(), shop); - while (propery == null) - { - Thread.Sleep(1000); - propery = new UploadPropertyBLL().getCatePropertyInterfaceV2(ca.id.ToString(), shop); - } - if (propery.data?.data == null || propery.data?.data.Count == 0) - { - // 此类目已调整升级,请重新选择类目进行商品发布 - // 其他酒类 - // 农用/环境用卫生农药 - // 追悼/奠仪用花 - errStr += ca.name + "^" + propery.err_no + "^" + propery.log_id + "^" + propery.message + "^" + propery.sub_msg + "\r\n"; - FileBase.WriteAllText("抖音类目属性获取错误.txt", errStr); - continue; - } - foreach (var pItem in propery?.data?.data) - { - if ((pItem.property_name.Contains("材质") || pItem.property_name.Contains("含量")) && pItem.required) - str += "^" + pItem.property_name; - } - if (!string.IsNullOrEmpty(str)) - { - string catName = "^" + ca.name; - var parentCat = ca; - while (parentCat.parent_cid != 0) - { - parentCat = Fission.goodsCategoryList.FirstOrDefault(mc => mc.id == parentCat.parent_cid); - catName = "^" + parentCat.name + catName; - } - sb.Append(ca.id + "^" + catName.Trim('^') + "-----" + str.Trim('^') + "\r\n"); - } - Thread.Sleep(Randomx.GetId(100, 300)); - } - FileBase.WriteAllText("抖音类目包含材质必填项的属性.txt", sb.ToString()); - }); - } - - private void btnGetDetail_Click(object sender, EventArgs e) - { - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopAccount == "开箱小店"); - if (shop != null) - { - DouyinApi api = new DouyinApi(shop); - api.JsonData = new Dictionary(); - api.JsonData["product_id"] = "3550791292457991728"; - var html = api.GetProductDetail(); - } - } - - private void btnOnlineSearch_Click(object sender, EventArgs e) - { - if (Fission.goodsCategoryList.Count == 0) - Fission.goodsCategoryList = JsonHelper.DeserializeJsonToList(DyCategoryParam.DyCategorys); - - var result = GetHtml.GetUrl("http://192.168.8.157:801/data.php?page=1&limit=1000"); - if (string.IsNullOrEmpty(result)) - return; - JObject jObj = JObject.Parse(result); - - foreach (JObject obj in jObj["data"]) - { - var objStr = obj.ToString(); - - UploadErrorParam err = new UploadErrorParam() - { - cat_id = BaseRegex.GetStringJson(ref objStr, "cat_id"), - message = BaseRegex.GetStringJson(ref objStr, "message"), - product_id = BaseRegex.GetStringJson(ref objStr, "product_id"), - source_id = BaseRegex.GetStringJson(ref objStr, "source_id"), - addtime = Convert.ToDateTime(BaseRegex.GetStringJson(ref objStr, "addtime")), - update_time = Convert.ToDateTime(BaseRegex.GetStringJson(ref objStr, "update_time")), - }; - var cat = Fission.goodsCategoryList.FirstOrDefault(c => c.id.ToString() == err.cat_id); - string catName = "^" + cat?.name; - if (cat != null && cat.name != "全部分类") - { - var parentCat = cat; - while (parentCat != null && parentCat.parent_cid != 0) - { - parentCat = Fission.goodsCategoryList.FirstOrDefault(mc => mc.id == parentCat.parent_cid); - catName = "^" + parentCat.name + catName; - } - } - err.cat_name = catName.Trim('^'); - - if (lstUploadErrorParam.Any(r => r.cat_id == err.cat_id && r.product_id == err.product_id && r.message == err.message)) - continue; - - lstUploadErrorParam.Add(err); - - Invoke(new Action(() => - { - if (err.update_time > DateTime.Now.Date /*&& err.message.Contains("类目属性")*/) - this.dgvError.Rows.Add(false, err.addtime, err.update_time, err.cat_id, err.cat_name, err.source_id, - err.product_id, err.message, err.remark, err.is_repair); - })); - } - - NaiBa.Util.Helper.ConfigHelper.SaveConfig>("upload_product_error_data", lstUploadErrorParam); - } - } -} diff --git a/TEMUKJD/KJDForms/ProductForms/Old/UploadProductErrorForm.resx b/TEMUKJD/KJDForms/ProductForms/Old/UploadProductErrorForm.resx deleted file mode 100644 index f0274b6..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/UploadProductErrorForm.resx +++ /dev/null @@ -1,150 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/Old/UploadProductForm.Designer.cs b/TEMUKJD/KJDForms/ProductForms/Old/UploadProductForm.Designer.cs deleted file mode 100644 index 66967a3..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/UploadProductForm.Designer.cs +++ /dev/null @@ -1,3251 +0,0 @@ -namespace TemuKJD.KJDForms.ProductForms -{ - partial class UploadProductForm - { - /// - /// 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() - { - 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(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.chkSaveUploadFailed = new System.Windows.Forms.CheckBox(); - this.waitButton = new DevComponents.DotNetBar.PanelEx(); - this.ucTabControlMetro1 = new PinBaoBao.UserControls.UcTabControlMetro(); - this.tabPage1 = new System.Windows.Forms.TabPage(); - this.chkShopFissionUpload = new System.Windows.Forms.CheckBox(); - this.chkDelFirstContentPic = new System.Windows.Forms.CheckBox(); - this.cmbDelMainPic = new System.Windows.Forms.ComboBox(); - this.chkDelMainPic = new System.Windows.Forms.CheckBox(); - this.cmb7Day = new System.Windows.Forms.ComboBox(); - this.label23 = new System.Windows.Forms.Label(); - this.txtProductBrand = new System.Windows.Forms.TextBox(); - this.chkSaveToDraft = new System.Windows.Forms.CheckBox(); - this.label15 = new System.Windows.Forms.Label(); - this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel(); - this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.txtMultiple = new System.Windows.Forms.TextBox(); - this.lblFromTo = new DevComponents.DotNetBar.LabelX(); - this.txtMultiple2 = new System.Windows.Forms.TextBox(); - this.label3 = new System.Windows.Forms.Label(); - this.cmbPlusOrMinus = new System.Windows.Forms.ComboBox(); - this.txtPostage = new System.Windows.Forms.TextBox(); - this.lblFromTo2 = new DevComponents.DotNetBar.LabelX(); - this.cmbPlusOrMinus2 = new System.Windows.Forms.ComboBox(); - this.txtPostage2 = new System.Windows.Forms.TextBox(); - this.label5 = new System.Windows.Forms.Label(); - this.chkRoundPrice = new System.Windows.Forms.CheckBox(); - this.chkMultiUpload = new System.Windows.Forms.CheckBox(); - this.label14 = new System.Windows.Forms.Label(); - this.txtPhone = new System.Windows.Forms.TextBox(); - this.lowPricePercenttextBox = new System.Windows.Forms.TextBox(); - this.txtStockLessThanCount = new System.Windows.Forms.TextBox(); - this.txtSingleUpload = new System.Windows.Forms.TextBox(); - this.label4 = new System.Windows.Forms.Label(); - this.beforPricetextBox = new System.Windows.Forms.TextBox(); - this.txtCustomStock = new System.Windows.Forms.TextBox(); - this.txtMinSku = new System.Windows.Forms.TextBox(); - this.label11 = new System.Windows.Forms.Label(); - this.chkMinSku = new System.Windows.Forms.CheckBox(); - this.label9 = new System.Windows.Forms.Label(); - this.chkRandomMainImage = new System.Windows.Forms.CheckBox(); - this.chkStockLessThan = new System.Windows.Forms.CheckBox(); - this.label37 = new System.Windows.Forms.Label(); - this.label26 = new System.Windows.Forms.Label(); - this.label18 = new System.Windows.Forms.Label(); - this.chkCustomStock = new System.Windows.Forms.CheckBox(); - this.comboBox5 = new System.Windows.Forms.ComboBox(); - this.lowPricecheckBox = new System.Windows.Forms.CheckBox(); - this.lowPriceAddtextBox = new System.Windows.Forms.TextBox(); - this.label32 = new System.Windows.Forms.Label(); - this.label34 = new System.Windows.Forms.Label(); - this.label24 = new System.Windows.Forms.Label(); - this.tabPage2 = new System.Windows.Forms.TabPage(); - this.label2 = new System.Windows.Forms.Label(); - this.endDateTimePicker = new System.Windows.Forms.DateTimePicker(); - this.chkFuzzyMatching = new System.Windows.Forms.CheckBox(); - this.cmbNewPreTime = new System.Windows.Forms.ComboBox(); - this.cmbSendDayAfterPre = new System.Windows.Forms.ComboBox(); - this.buttonEx2 = new TemuKJD.UserControls.ButtonEx(); - this.cmbSendType = new System.Windows.Forms.ComboBox(); - this.txtremark = new System.Windows.Forms.TextBox(); - this.label13 = new System.Windows.Forms.Label(); - this.label1 = new System.Windows.Forms.Label(); - this.comboBox1 = new System.Windows.Forms.ComboBox(); - this.prefixTextBox = new System.Windows.Forms.TextBox(); - this.proxyCheckBox = new System.Windows.Forms.CheckBox(); - this.label8 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.cmbSendDay = new System.Windows.Forms.ComboBox(); - this.sendTime = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.lblNewPreTime = new System.Windows.Forms.Label(); - this.tabPage5 = new System.Windows.Forms.TabPage(); - this.btnSetTitleRemove = new DevComponents.DotNetBar.PanelEx(); - this.btnSetBrandFilter = new DevComponents.DotNetBar.PanelEx(); - this.btnSetViolateCheck = new DevComponents.DotNetBar.PanelEx(); - this.btnSetSkuFilter = new DevComponents.DotNetBar.PanelEx(); - this.btnSetTitleFilter = new DevComponents.DotNetBar.PanelEx(); - this.chkOnlyPostFree = new System.Windows.Forms.CheckBox(); - this.chkFilterRemoveTitle = new System.Windows.Forms.CheckBox(); - this.chkFilterTMChaoShi = new System.Windows.Forms.CheckBox(); - this.chkViolateCheck = new System.Windows.Forms.CheckBox(); - this.chkFilterSku = new System.Windows.Forms.CheckBox(); - this.chkFilterTitle = new System.Windows.Forms.CheckBox(); - this.chkFilterBrand = new System.Windows.Forms.CheckBox(); - this.tabPage3 = new System.Windows.Forms.TabPage(); - this.btn删除食品许可证 = new DevComponents.DotNetBar.PanelEx(); - this.btn删除包装标签图 = new DevComponents.DotNetBar.PanelEx(); - this.btn删除质检报告 = new DevComponents.DotNetBar.PanelEx(); - this.btn上传质检报告 = new DevComponents.DotNetBar.PanelEx(); - this.btn上传包装标签图 = new DevComponents.DotNetBar.PanelEx(); - this.btn上传食品许可证 = new DevComponents.DotNetBar.PanelEx(); - this.pictureBox3 = new System.Windows.Forms.PictureBox(); - this.pictureBox2 = new System.Windows.Forms.PictureBox(); - this.pictureBox1 = new System.Windows.Forms.PictureBox(); - this.label22 = new System.Windows.Forms.Label(); - this.label21 = new System.Windows.Forms.Label(); - this.label20 = new System.Windows.Forms.Label(); - this.chkUseGlobalQualifications = new System.Windows.Forms.CheckBox(); - this.txt食品生产许可证编号 = new System.Windows.Forms.TextBox(); - this.label19 = new System.Windows.Forms.Label(); - this.txt生产企业名称 = new System.Windows.Forms.TextBox(); - this.txtBrand = new System.Windows.Forms.TextBox(); - this.label17 = new System.Windows.Forms.Label(); - this.label16 = new System.Windows.Forms.Label(); - this.tabPage4 = new System.Windows.Forms.TabPage(); - this.checkBox1 = new System.Windows.Forms.CheckBox(); - this.panelEx2 = new DevComponents.DotNetBar.PanelEx(); - this.panelEx1 = new DevComponents.DotNetBar.PanelEx(); - this.checkBox2 = new System.Windows.Forms.CheckBox(); - this.chkCustomCategory = new System.Windows.Forms.CheckBox(); - this.shopthreadCountTextBox = new System.Windows.Forms.ComboBox(); - this.btnUpload = new TemuKJD.UserControls.ButtonEx(); - this.buttonEx1 = new TemuKJD.UserControls.ButtonEx(); - this.btnUploadGood = new TemuKJD.UserControls.ButtonEx(); - this.countLabel = new System.Windows.Forms.Label(); - this.label29 = new System.Windows.Forms.Label(); - this.lblWaitUpload = new System.Windows.Forms.Label(); - this.splitContainer3 = new System.Windows.Forms.SplitContainer(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.cboHour = new System.Windows.Forms.ComboBox(); - this.btnTest = new TemuKJD.UserControls.ButtonEx(); - this.buttonEx4 = new TemuKJD.UserControls.ButtonEx(); - this.chklogistime = new System.Windows.Forms.CheckBox(); - this.label48 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.littleSkuCheckBox = new System.Windows.Forms.CheckBox(); - this.txtRatio = new System.Windows.Forms.TextBox(); - this.chkSaveToOffLine = new System.Windows.Forms.CheckBox(); - this.chkIsSetCommission = new System.Windows.Forms.CheckBox(); - this.btnGetUpId = new TemuKJD.UserControls.ButtonEx(); - this.txtUpProduct = new System.Windows.Forms.TextBox(); - this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colUploadCount = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.pnlShowError = new DevComponents.DotNetBar.PanelEx(); - this.splitContainer4 = new System.Windows.Forms.SplitContainer(); - this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); - this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); - this.btnGo = new System.Windows.Forms.Button(); - this.label27 = new System.Windows.Forms.Label(); - this.txtGoPage = new System.Windows.Forms.TextBox(); - this.label36 = new System.Windows.Forms.Label(); - this.lblTotalPage = new System.Windows.Forms.Label(); - this.btnNext = new System.Windows.Forms.Button(); - this.lblCurrentPage = new System.Windows.Forms.Label(); - this.btnPrev = new System.Windows.Forms.Button(); - this.lblPage1 = new System.Windows.Forms.Label(); - this.AutoRefcheckBox = new System.Windows.Forms.CheckBox(); - this.canUpColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.showedColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.explodeColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.BuyAPIColumn = new System.Windows.Forms.DataGridViewLinkColumn(); - this.dataGridViewCheckBoxColumn1 = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.dataGridViewCheckBoxColumn2 = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.dataGridViewCheckBoxColumn3 = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.dataGridViewLinkColumn1 = new System.Windows.Forms.DataGridViewLinkColumn(); - this.shopNameColumnx = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.nameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.catNameColumnx = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.upCountColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.productCountColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.messageColumnx = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.APIColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ServiceEndTimeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.EndTimeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.shopRemarkColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - 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.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.messageColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colFromFake = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.fromColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.prcieColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.titleColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.shopNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.productIdColumn = new System.Windows.Forms.DataGridViewLinkColumn(); - this.idColumn = new System.Windows.Forms.DataGridViewLinkColumn(); - this.dgvProduct = new TemuKJD.UserComponent.DataGridViewEx(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - this.ucTabControlMetro1.SuspendLayout(); - this.tabPage1.SuspendLayout(); - this.flowLayoutPanel2.SuspendLayout(); - this.tabPage2.SuspendLayout(); - this.tabPage5.SuspendLayout(); - this.tabPage3.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); - this.tabPage4.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.dgvShop)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).BeginInit(); - this.splitContainer4.Panel1.SuspendLayout(); - this.splitContainer4.Panel2.SuspendLayout(); - this.splitContainer4.SuspendLayout(); - this.flowLayoutPanel1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgvProduct)).BeginInit(); - this.SuspendLayout(); - // - // splitContainer1 - // - 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.chkSaveUploadFailed); - this.splitContainer1.Panel1.Controls.Add(this.waitButton); - this.splitContainer1.Panel1.Controls.Add(this.ucTabControlMetro1); - this.splitContainer1.Panel1.Controls.Add(this.shopthreadCountTextBox); - this.splitContainer1.Panel1.Controls.Add(this.btnUpload); - this.splitContainer1.Panel1.Controls.Add(this.buttonEx1); - this.splitContainer1.Panel1.Controls.Add(this.btnUploadGood); - this.splitContainer1.Panel1.Controls.Add(this.countLabel); - this.splitContainer1.Panel1.Controls.Add(this.label29); - this.splitContainer1.Panel1.Controls.Add(this.lblWaitUpload); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.splitContainer3); - this.splitContainer1.Size = new System.Drawing.Size(1110, 647); - this.splitContainer1.SplitterDistance = 180; - this.splitContainer1.TabIndex = 2; - // - // chkSaveUploadFailed - // - this.chkSaveUploadFailed.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.chkSaveUploadFailed.AutoSize = true; - this.chkSaveUploadFailed.FlatAppearance.BorderSize = 0; - this.chkSaveUploadFailed.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chkSaveUploadFailed.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chkSaveUploadFailed.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.chkSaveUploadFailed.Location = new System.Drawing.Point(932, 61); - this.chkSaveUploadFailed.Margin = new System.Windows.Forms.Padding(2); - this.chkSaveUploadFailed.Name = "chkSaveUploadFailed"; - this.chkSaveUploadFailed.Size = new System.Drawing.Size(144, 21); - this.chkSaveUploadFailed.TabIndex = 491; - this.chkSaveUploadFailed.Text = "自动保存上货失败商品"; - this.chkSaveUploadFailed.UseVisualStyleBackColor = true; - this.chkSaveUploadFailed.CheckedChanged += new System.EventHandler(this.chkSaveUploadFailed_CheckedChanged); - // - // waitButton - // - this.waitButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.waitButton.CanvasColor = System.Drawing.SystemColors.Control; - this.waitButton.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.waitButton.DisabledBackColor = System.Drawing.Color.Empty; - this.waitButton.Location = new System.Drawing.Point(1007, 117); - this.waitButton.Name = "waitButton"; - this.waitButton.Size = new System.Drawing.Size(72, 25); - this.waitButton.Style.Alignment = System.Drawing.StringAlignment.Center; - this.waitButton.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.waitButton.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.waitButton.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.waitButton.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.waitButton.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.waitButton.Style.GradientAngle = 90; - this.waitButton.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.waitButton.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.waitButton.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.waitButton.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.waitButton.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.waitButton.TabIndex = 409; - this.waitButton.Text = "暂停"; - this.waitButton.Click += new System.EventHandler(this.waitButton_Click); - // - // ucTabControlMetro1 - // - this.ucTabControlMetro1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left))); - this.ucTabControlMetro1.BackgroundColor = System.Drawing.Color.White; - this.ucTabControlMetro1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.ucTabControlMetro1.Controls.Add(this.tabPage1); - this.ucTabControlMetro1.Controls.Add(this.tabPage2); - this.ucTabControlMetro1.Controls.Add(this.tabPage5); - this.ucTabControlMetro1.Controls.Add(this.tabPage3); - this.ucTabControlMetro1.Controls.Add(this.tabPage4); - this.ucTabControlMetro1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.ucTabControlMetro1.Location = new System.Drawing.Point(2, 2); - this.ucTabControlMetro1.Multiline = true; - this.ucTabControlMetro1.Name = "ucTabControlMetro1"; - this.ucTabControlMetro1.SelectedIndex = 0; - this.ucTabControlMetro1.ShowCloseButton = false; - this.ucTabControlMetro1.Size = new System.Drawing.Size(894, 180); - this.ucTabControlMetro1.TabIndex = 183; - this.ucTabControlMetro1.TabSelectColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.ucTabControlMetro1.TabSelectTextColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.ucTabControlMetro1.TabUnSelectTextColor = System.Drawing.Color.White; - // - // tabPage1 - // - this.tabPage1.Controls.Add(this.chkShopFissionUpload); - this.tabPage1.Controls.Add(this.chkDelFirstContentPic); - this.tabPage1.Controls.Add(this.cmbDelMainPic); - this.tabPage1.Controls.Add(this.chkDelMainPic); - this.tabPage1.Controls.Add(this.cmb7Day); - this.tabPage1.Controls.Add(this.label23); - this.tabPage1.Controls.Add(this.txtProductBrand); - this.tabPage1.Controls.Add(this.chkSaveToDraft); - this.tabPage1.Controls.Add(this.label15); - this.tabPage1.Controls.Add(this.flowLayoutPanel2); - this.tabPage1.Controls.Add(this.chkRoundPrice); - this.tabPage1.Controls.Add(this.chkMultiUpload); - this.tabPage1.Controls.Add(this.label14); - this.tabPage1.Controls.Add(this.txtPhone); - this.tabPage1.Controls.Add(this.lowPricePercenttextBox); - this.tabPage1.Controls.Add(this.txtStockLessThanCount); - this.tabPage1.Controls.Add(this.txtSingleUpload); - this.tabPage1.Controls.Add(this.label4); - this.tabPage1.Controls.Add(this.beforPricetextBox); - this.tabPage1.Controls.Add(this.txtCustomStock); - this.tabPage1.Controls.Add(this.txtMinSku); - this.tabPage1.Controls.Add(this.label11); - this.tabPage1.Controls.Add(this.chkMinSku); - this.tabPage1.Controls.Add(this.label9); - this.tabPage1.Controls.Add(this.chkRandomMainImage); - this.tabPage1.Controls.Add(this.chkStockLessThan); - this.tabPage1.Controls.Add(this.label37); - this.tabPage1.Controls.Add(this.label26); - this.tabPage1.Controls.Add(this.label18); - this.tabPage1.Controls.Add(this.chkCustomStock); - this.tabPage1.Controls.Add(this.comboBox5); - this.tabPage1.Controls.Add(this.lowPricecheckBox); - this.tabPage1.Controls.Add(this.lowPriceAddtextBox); - this.tabPage1.Controls.Add(this.label32); - this.tabPage1.Controls.Add(this.label34); - this.tabPage1.Controls.Add(this.label24); - this.tabPage1.Location = new System.Drawing.Point(4, 26); - this.tabPage1.Name = "tabPage1"; - this.tabPage1.Padding = new System.Windows.Forms.Padding(3); - this.tabPage1.Size = new System.Drawing.Size(886, 150); - this.tabPage1.TabIndex = 0; - this.tabPage1.Text = " 参数设置一"; - this.tabPage1.UseVisualStyleBackColor = true; - // - // chkShopFissionUpload - // - this.chkShopFissionUpload.AutoSize = true; - this.chkShopFissionUpload.FlatAppearance.BorderSize = 0; - this.chkShopFissionUpload.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chkShopFissionUpload.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chkShopFissionUpload.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.chkShopFissionUpload.Location = new System.Drawing.Point(408, 65); - this.chkShopFissionUpload.Margin = new System.Windows.Forms.Padding(2); - this.chkShopFissionUpload.Name = "chkShopFissionUpload"; - this.chkShopFissionUpload.Size = new System.Drawing.Size(72, 21); - this.chkShopFissionUpload.TabIndex = 491; - this.chkShopFissionUpload.Text = "单店裂变"; - this.chkShopFissionUpload.UseVisualStyleBackColor = true; - this.chkShopFissionUpload.Visible = false; - // - // chkDelFirstContentPic - // - this.chkDelFirstContentPic.AutoSize = true; - this.chkDelFirstContentPic.FlatAppearance.BorderSize = 0; - this.chkDelFirstContentPic.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chkDelFirstContentPic.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chkDelFirstContentPic.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.chkDelFirstContentPic.Location = new System.Drawing.Point(566, 8); - this.chkDelFirstContentPic.Margin = new System.Windows.Forms.Padding(2); - this.chkDelFirstContentPic.Name = "chkDelFirstContentPic"; - this.chkDelFirstContentPic.Size = new System.Drawing.Size(115, 21); - this.chkDelFirstContentPic.TabIndex = 490; - this.chkDelFirstContentPic.Text = "删除第1张详情图"; - this.chkDelFirstContentPic.UseVisualStyleBackColor = true; - // - // cmbDelMainPic - // - this.cmbDelMainPic.Font = new System.Drawing.Font("微软雅黑", 9F); - this.cmbDelMainPic.FormattingEnabled = true; - this.cmbDelMainPic.Items.AddRange(new object[] { - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10"}); - this.cmbDelMainPic.Location = new System.Drawing.Point(465, 6); - this.cmbDelMainPic.Margin = new System.Windows.Forms.Padding(0); - this.cmbDelMainPic.Name = "cmbDelMainPic"; - this.cmbDelMainPic.Size = new System.Drawing.Size(38, 25); - this.cmbDelMainPic.TabIndex = 473; - this.cmbDelMainPic.Text = "1"; - // - // chkDelMainPic - // - this.chkDelMainPic.AutoSize = true; - this.chkDelMainPic.FlatAppearance.BorderSize = 0; - this.chkDelMainPic.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chkDelMainPic.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chkDelMainPic.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.chkDelMainPic.Location = new System.Drawing.Point(408, 8); - this.chkDelMainPic.Margin = new System.Windows.Forms.Padding(2); - this.chkDelMainPic.Name = "chkDelMainPic"; - this.chkDelMainPic.Size = new System.Drawing.Size(60, 21); - this.chkDelMainPic.TabIndex = 472; - this.chkDelMainPic.Text = "删除第"; - this.chkDelMainPic.UseVisualStyleBackColor = true; - // - // cmb7Day - // - this.cmb7Day.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.cmb7Day.FormattingEnabled = true; - this.cmb7Day.Items.AddRange(new object[] { - "不支持7天无理由", - "支持7天无理由", - "支持7天无理由(拆封后不支持)"}); - this.cmb7Day.Location = new System.Drawing.Point(387, 34); - this.cmb7Day.Margin = new System.Windows.Forms.Padding(2); - this.cmb7Day.Name = "cmb7Day"; - this.cmb7Day.Size = new System.Drawing.Size(336, 25); - this.cmb7Day.TabIndex = 464; - this.cmb7Day.Text = "支持7天无理由(拆封后不支持)"; - // - // label23 - // - this.label23.AutoSize = true; - this.label23.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label23.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.label23.Location = new System.Drawing.Point(316, 38); - this.label23.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label23.Name = "label23"; - this.label23.Size = new System.Drawing.Size(80, 17); - this.label23.TabIndex = 471; - this.label23.Text = "七天无理由:"; - // - // txtProductBrand - // - this.txtProductBrand.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtProductBrand.Location = new System.Drawing.Point(452, 91); - this.txtProductBrand.Margin = new System.Windows.Forms.Padding(2); - this.txtProductBrand.Name = "txtProductBrand"; - this.txtProductBrand.Size = new System.Drawing.Size(271, 23); - this.txtProductBrand.TabIndex = 438; - this.txtProductBrand.TextChanged += new System.EventHandler(this.txtSetBrand_TextChanged); - // - // chkSaveToDraft - // - this.chkSaveToDraft.AutoSize = true; - this.chkSaveToDraft.FlatAppearance.BorderSize = 0; - this.chkSaveToDraft.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chkSaveToDraft.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chkSaveToDraft.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.chkSaveToDraft.Location = new System.Drawing.Point(563, 119); - this.chkSaveToDraft.Margin = new System.Windows.Forms.Padding(2); - this.chkSaveToDraft.Name = "chkSaveToDraft"; - this.chkSaveToDraft.Size = new System.Drawing.Size(84, 21); - this.chkSaveToDraft.TabIndex = 423; - this.chkSaveToDraft.Text = "存至草稿箱"; - this.chkSaveToDraft.UseVisualStyleBackColor = true; - // - // label15 - // - this.label15.AutoSize = true; - this.label15.BackColor = System.Drawing.Color.Transparent; - this.label15.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label15.Location = new System.Drawing.Point(316, 94); - this.label15.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label15.Name = "label15"; - this.label15.Size = new System.Drawing.Size(145, 17); - this.label15.TabIndex = 437; - this.label15.Text = "指定旗舰店/专营店品牌:"; - // - // flowLayoutPanel2 - // - this.flowLayoutPanel2.Controls.Add(this.labelX1); - this.flowLayoutPanel2.Controls.Add(this.txtMultiple); - this.flowLayoutPanel2.Controls.Add(this.lblFromTo); - this.flowLayoutPanel2.Controls.Add(this.txtMultiple2); - this.flowLayoutPanel2.Controls.Add(this.label3); - this.flowLayoutPanel2.Controls.Add(this.cmbPlusOrMinus); - this.flowLayoutPanel2.Controls.Add(this.txtPostage); - this.flowLayoutPanel2.Controls.Add(this.lblFromTo2); - this.flowLayoutPanel2.Controls.Add(this.cmbPlusOrMinus2); - this.flowLayoutPanel2.Controls.Add(this.txtPostage2); - this.flowLayoutPanel2.Controls.Add(this.label5); - this.flowLayoutPanel2.Location = new System.Drawing.Point(11, 5); - this.flowLayoutPanel2.Name = "flowLayoutPanel2"; - this.flowLayoutPanel2.Size = new System.Drawing.Size(302, 27); - this.flowLayoutPanel2.TabIndex = 183; - // - // labelX1 - // - this.labelX1.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.labelX1.AutoSize = true; - // - // - // - this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.labelX1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.labelX1.Location = new System.Drawing.Point(0, 3); - this.labelX1.Margin = new System.Windows.Forms.Padding(0, 0, 1, 0); - this.labelX1.Name = "labelX1"; - this.labelX1.PaddingRight = -10; - this.labelX1.Size = new System.Drawing.Size(46, 20); - this.labelX1.TabIndex = 440; - this.labelX1.Text = "原 价:"; - // - // txtMultiple - // - this.txtMultiple.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.txtMultiple.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtMultiple.Location = new System.Drawing.Point(47, 2); - this.txtMultiple.Margin = new System.Windows.Forms.Padding(0); - this.txtMultiple.Name = "txtMultiple"; - this.txtMultiple.Size = new System.Drawing.Size(32, 23); - this.txtMultiple.TabIndex = 361; - this.txtMultiple.Text = "1.08"; - this.txtMultiple.TextChanged += new System.EventHandler(this.txtMultiple_TextChanged); - // - // lblFromTo - // - this.lblFromTo.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.lblFromTo.AutoSize = true; - // - // - // - this.lblFromTo.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.lblFromTo.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.lblFromTo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.lblFromTo.Location = new System.Drawing.Point(79, 3); - this.lblFromTo.Margin = new System.Windows.Forms.Padding(0); - this.lblFromTo.Name = "lblFromTo"; - this.lblFromTo.PaddingLeft = -2; - this.lblFromTo.PaddingRight = -3; - this.lblFromTo.Size = new System.Drawing.Size(11, 20); - this.lblFromTo.TabIndex = 446; - this.lblFromTo.Text = "~"; - this.lblFromTo.TextAlignment = System.Drawing.StringAlignment.Center; - // - // txtMultiple2 - // - this.txtMultiple2.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.txtMultiple2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtMultiple2.Location = new System.Drawing.Point(90, 2); - this.txtMultiple2.Margin = new System.Windows.Forms.Padding(0); - this.txtMultiple2.Name = "txtMultiple2"; - this.txtMultiple2.Size = new System.Drawing.Size(32, 23); - this.txtMultiple2.TabIndex = 441; - this.txtMultiple2.Text = "1.18"; - this.txtMultiple2.TextChanged += new System.EventHandler(this.txtMultiple2_TextChanged); - // - // label3 - // - this.label3.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label3.AutoSize = true; - this.label3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.label3.Location = new System.Drawing.Point(122, 5); - this.label3.Margin = new System.Windows.Forms.Padding(0, 0, 2, 0); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(20, 17); - this.label3.TabIndex = 362; - this.label3.Text = "倍"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // cmbPlusOrMinus - // - this.cmbPlusOrMinus.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.cmbPlusOrMinus.Font = new System.Drawing.Font("宋体", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.cmbPlusOrMinus.FormattingEnabled = true; - this.cmbPlusOrMinus.Items.AddRange(new object[] { - "+", - "-"}); - this.cmbPlusOrMinus.Location = new System.Drawing.Point(144, 2); - this.cmbPlusOrMinus.Margin = new System.Windows.Forms.Padding(0); - this.cmbPlusOrMinus.Name = "cmbPlusOrMinus"; - this.cmbPlusOrMinus.Size = new System.Drawing.Size(32, 23); - this.cmbPlusOrMinus.TabIndex = 364; - this.cmbPlusOrMinus.Text = "+"; - this.cmbPlusOrMinus.SelectedIndexChanged += new System.EventHandler(this.txtPostage_TextChanged); - // - // txtPostage - // - this.txtPostage.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.txtPostage.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtPostage.Location = new System.Drawing.Point(178, 2); - this.txtPostage.Margin = new System.Windows.Forms.Padding(2, 2, 0, 2); - this.txtPostage.Name = "txtPostage"; - this.txtPostage.Size = new System.Drawing.Size(25, 23); - this.txtPostage.TabIndex = 363; - this.txtPostage.Text = "0"; - this.txtPostage.TextChanged += new System.EventHandler(this.txtPostage_TextChanged); - // - // lblFromTo2 - // - this.lblFromTo2.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.lblFromTo2.AutoSize = true; - // - // - // - this.lblFromTo2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.lblFromTo2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.lblFromTo2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.lblFromTo2.Location = new System.Drawing.Point(203, 3); - this.lblFromTo2.Margin = new System.Windows.Forms.Padding(0); - this.lblFromTo2.Name = "lblFromTo2"; - this.lblFromTo2.PaddingLeft = -2; - this.lblFromTo2.PaddingRight = -3; - this.lblFromTo2.Size = new System.Drawing.Size(11, 20); - this.lblFromTo2.TabIndex = 447; - this.lblFromTo2.Text = "~"; - this.lblFromTo2.TextAlignment = System.Drawing.StringAlignment.Center; - // - // cmbPlusOrMinus2 - // - this.cmbPlusOrMinus2.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.cmbPlusOrMinus2.Font = new System.Drawing.Font("宋体", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.cmbPlusOrMinus2.FormattingEnabled = true; - this.cmbPlusOrMinus2.Items.AddRange(new object[] { - "+", - "-"}); - this.cmbPlusOrMinus2.Location = new System.Drawing.Point(214, 2); - this.cmbPlusOrMinus2.Margin = new System.Windows.Forms.Padding(0); - this.cmbPlusOrMinus2.Name = "cmbPlusOrMinus2"; - this.cmbPlusOrMinus2.Size = new System.Drawing.Size(32, 23); - this.cmbPlusOrMinus2.TabIndex = 448; - this.cmbPlusOrMinus2.Text = "+"; - this.cmbPlusOrMinus2.SelectedIndexChanged += new System.EventHandler(this.txtPostage2_TextChanged); - // - // txtPostage2 - // - this.txtPostage2.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.txtPostage2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtPostage2.Location = new System.Drawing.Point(248, 2); - this.txtPostage2.Margin = new System.Windows.Forms.Padding(2, 2, 0, 2); - this.txtPostage2.Name = "txtPostage2"; - this.txtPostage2.Size = new System.Drawing.Size(25, 23); - this.txtPostage2.TabIndex = 444; - this.txtPostage2.Text = "10"; - this.txtPostage2.TextChanged += new System.EventHandler(this.txtPostage2_TextChanged); - // - // label5 - // - this.label5.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label5.AutoSize = true; - this.label5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.label5.Location = new System.Drawing.Point(273, 5); - this.label5.Margin = new System.Windows.Forms.Padding(0); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(20, 17); - this.label5.TabIndex = 382; - this.label5.Text = "元"; - // - // chkRoundPrice - // - this.chkRoundPrice.AutoSize = true; - this.chkRoundPrice.FlatAppearance.BorderSize = 0; - this.chkRoundPrice.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chkRoundPrice.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chkRoundPrice.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.chkRoundPrice.Location = new System.Drawing.Point(657, 119); - this.chkRoundPrice.Margin = new System.Windows.Forms.Padding(8, 2, 2, 2); - this.chkRoundPrice.Name = "chkRoundPrice"; - this.chkRoundPrice.Size = new System.Drawing.Size(72, 21); - this.chkRoundPrice.TabIndex = 456; - this.chkRoundPrice.Text = "价格取整"; - this.chkRoundPrice.UseVisualStyleBackColor = true; - // - // chkMultiUpload - // - this.chkMultiUpload.AutoSize = true; - this.chkMultiUpload.FlatAppearance.BorderSize = 0; - this.chkMultiUpload.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chkMultiUpload.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chkMultiUpload.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.chkMultiUpload.Location = new System.Drawing.Point(320, 65); - this.chkMultiUpload.Margin = new System.Windows.Forms.Padding(2); - this.chkMultiUpload.Name = "chkMultiUpload"; - this.chkMultiUpload.Size = new System.Drawing.Size(72, 21); - this.chkMultiUpload.TabIndex = 432; - this.chkMultiUpload.Text = "多店上传"; - this.chkMultiUpload.UseVisualStyleBackColor = true; - this.chkMultiUpload.CheckedChanged += new System.EventHandler(this.chkMultiUpload_CheckedChanged); - // - // label14 - // - this.label14.AutoSize = true; - this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label14.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.label14.Location = new System.Drawing.Point(122, 94); - this.label14.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label14.Name = "label14"; - this.label14.Size = new System.Drawing.Size(20, 17); - this.label14.TabIndex = 442; - this.label14.Text = "件"; - // - // txtPhone - // - this.txtPhone.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtPhone.Location = new System.Drawing.Point(375, 119); - this.txtPhone.Margin = new System.Windows.Forms.Padding(2); - this.txtPhone.Name = "txtPhone"; - this.txtPhone.Size = new System.Drawing.Size(172, 23); - this.txtPhone.TabIndex = 392; - this.txtPhone.Text = "18888888888"; - this.txtPhone.TextChanged += new System.EventHandler(this.txtPhone_TextChanged); - // - // lowPricePercenttextBox - // - this.lowPricePercenttextBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.lowPricePercenttextBox.Location = new System.Drawing.Point(126, 119); - this.lowPricePercenttextBox.Margin = new System.Windows.Forms.Padding(2); - this.lowPricePercenttextBox.Name = "lowPricePercenttextBox"; - this.lowPricePercenttextBox.Size = new System.Drawing.Size(32, 23); - this.lowPricePercenttextBox.TabIndex = 409; - this.lowPricePercenttextBox.Text = "1.08"; - this.lowPricePercenttextBox.TextChanged += new System.EventHandler(this.lowPricePercenttextBox_TextChanged); - // - // txtStockLessThanCount - // - this.txtStockLessThanCount.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtStockLessThanCount.Location = new System.Drawing.Point(225, 63); - this.txtStockLessThanCount.Margin = new System.Windows.Forms.Padding(2); - this.txtStockLessThanCount.Name = "txtStockLessThanCount"; - this.txtStockLessThanCount.Size = new System.Drawing.Size(22, 23); - this.txtStockLessThanCount.TabIndex = 377; - this.txtStockLessThanCount.Text = "3"; - this.txtStockLessThanCount.TextChanged += new System.EventHandler(this.txtStockLessThanCount_TextChanged); - // - // txtSingleUpload - // - this.txtSingleUpload.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtSingleUpload.Location = new System.Drawing.Point(225, 35); - this.txtSingleUpload.Margin = new System.Windows.Forms.Padding(2); - this.txtSingleUpload.Name = "txtSingleUpload"; - this.txtSingleUpload.Size = new System.Drawing.Size(43, 23); - this.txtSingleUpload.TabIndex = 381; - this.txtSingleUpload.Text = "99999"; - this.txtSingleUpload.TextChanged += new System.EventHandler(this.txtSingleUpload_TextChanged); - // - // label4 - // - this.label4.AutoSize = true; - this.label4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.label4.Location = new System.Drawing.Point(316, 122); - this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(68, 17); - this.label4.TabIndex = 391; - this.label4.Text = "客服电话:"; - // - // beforPricetextBox - // - this.beforPricetextBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.beforPricetextBox.Location = new System.Drawing.Point(58, 35); - this.beforPricetextBox.Margin = new System.Windows.Forms.Padding(2); - this.beforPricetextBox.Name = "beforPricetextBox"; - this.beforPricetextBox.Size = new System.Drawing.Size(32, 23); - this.beforPricetextBox.TabIndex = 372; - this.beforPricetextBox.Text = "2.0"; - this.beforPricetextBox.TextChanged += new System.EventHandler(this.beforPricetextBox_TextChanged); - // - // txtCustomStock - // - this.txtCustomStock.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtCustomStock.Location = new System.Drawing.Point(58, 63); - this.txtCustomStock.Margin = new System.Windows.Forms.Padding(2); - this.txtCustomStock.Name = "txtCustomStock"; - this.txtCustomStock.Size = new System.Drawing.Size(32, 23); - this.txtCustomStock.TabIndex = 428; - this.txtCustomStock.Text = "99"; - // - // txtMinSku - // - this.txtMinSku.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtMinSku.Location = new System.Drawing.Point(102, 91); - this.txtMinSku.Margin = new System.Windows.Forms.Padding(2); - this.txtMinSku.Name = "txtMinSku"; - this.txtMinSku.Size = new System.Drawing.Size(20, 23); - this.txtMinSku.TabIndex = 438; - this.txtMinSku.Text = "3"; - // - // label11 - // - this.label11.AutoSize = true; - this.label11.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label11.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.label11.Location = new System.Drawing.Point(11, 38); - this.label11.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(56, 17); - this.label11.TabIndex = 371; - this.label11.Text = "市场价:"; - // - // chkMinSku - // - this.chkMinSku.AutoSize = true; - this.chkMinSku.FlatAppearance.BorderSize = 0; - this.chkMinSku.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chkMinSku.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chkMinSku.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.chkMinSku.Location = new System.Drawing.Point(9, 92); - this.chkMinSku.Margin = new System.Windows.Forms.Padding(2); - this.chkMinSku.Name = "chkMinSku"; - this.chkMinSku.Size = new System.Drawing.Size(104, 21); - this.chkMinSku.TabIndex = 437; - this.chkMinSku.Text = "低价sku库存:"; - this.chkMinSku.UseVisualStyleBackColor = true; - // - // label9 - // - this.label9.AutoSize = true; - this.label9.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.label9.Location = new System.Drawing.Point(90, 38); - this.label9.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(20, 17); - this.label9.TabIndex = 373; - this.label9.Text = "倍"; - // - // chkRandomMainImage - // - this.chkRandomMainImage.AutoSize = true; - this.chkRandomMainImage.FlatAppearance.BorderSize = 0; - this.chkRandomMainImage.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chkRandomMainImage.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chkRandomMainImage.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.chkRandomMainImage.Location = new System.Drawing.Point(320, 8); - this.chkRandomMainImage.Margin = new System.Windows.Forms.Padding(2); - this.chkRandomMainImage.Name = "chkRandomMainImage"; - this.chkRandomMainImage.Size = new System.Drawing.Size(72, 21); - this.chkRandomMainImage.TabIndex = 433; - this.chkRandomMainImage.Text = "随机主图"; - this.chkRandomMainImage.UseVisualStyleBackColor = true; - this.chkRandomMainImage.CheckedChanged += new System.EventHandler(this.chkRandomMainImage_CheckedChanged); - // - // chkStockLessThan - // - this.chkStockLessThan.AutoSize = true; - this.chkStockLessThan.FlatAppearance.BorderSize = 0; - this.chkStockLessThan.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chkStockLessThan.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chkStockLessThan.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.chkStockLessThan.Location = new System.Drawing.Point(156, 64); - this.chkStockLessThan.Margin = new System.Windows.Forms.Padding(2); - this.chkStockLessThan.Name = "chkStockLessThan"; - this.chkStockLessThan.Size = new System.Drawing.Size(72, 21); - this.chkStockLessThan.TabIndex = 376; - this.chkStockLessThan.Text = "库存小于"; - this.chkStockLessThan.UseVisualStyleBackColor = true; - this.chkStockLessThan.CheckedChanged += new System.EventHandler(this.chkStockLessThan_CheckedChanged); - // - // label37 - // - this.label37.AutoSize = true; - this.label37.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label37.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.label37.Location = new System.Drawing.Point(247, 66); - this.label37.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label37.Name = "label37"; - this.label37.Size = new System.Drawing.Size(44, 17); - this.label37.TabIndex = 378; - this.label37.Text = "不上传"; - // - // label26 - // - this.label26.AutoSize = true; - this.label26.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label26.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.label26.Location = new System.Drawing.Point(152, 38); - this.label26.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label26.Name = "label26"; - this.label26.Size = new System.Drawing.Size(80, 17); - this.label26.TabIndex = 380; - this.label26.Text = "单店上货数:"; - // - // label18 - // - this.label18.AutoSize = true; - this.label18.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label18.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.label18.Location = new System.Drawing.Point(90, 66); - this.label18.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label18.Name = "label18"; - this.label18.Size = new System.Drawing.Size(20, 17); - this.label18.TabIndex = 429; - this.label18.Text = "件"; - // - // chkCustomStock - // - this.chkCustomStock.AutoSize = true; - this.chkCustomStock.FlatAppearance.BorderSize = 0; - this.chkCustomStock.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chkCustomStock.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chkCustomStock.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.chkCustomStock.Location = new System.Drawing.Point(9, 64); - this.chkCustomStock.Margin = new System.Windows.Forms.Padding(2); - this.chkCustomStock.Name = "chkCustomStock"; - this.chkCustomStock.Size = new System.Drawing.Size(60, 21); - this.chkCustomStock.TabIndex = 430; - this.chkCustomStock.Text = "库存:"; - this.chkCustomStock.UseVisualStyleBackColor = true; - // - // comboBox5 - // - this.comboBox5.Font = new System.Drawing.Font("宋体", 11.25F); - this.comboBox5.FormattingEnabled = true; - this.comboBox5.Items.AddRange(new object[] { - "+", - "-"}); - this.comboBox5.Location = new System.Drawing.Point(179, 119); - this.comboBox5.Margin = new System.Windows.Forms.Padding(2); - this.comboBox5.Name = "comboBox5"; - this.comboBox5.Size = new System.Drawing.Size(32, 23); - this.comboBox5.TabIndex = 424; - this.comboBox5.Text = "+"; - // - // lowPricecheckBox - // - this.lowPricecheckBox.AutoSize = true; - this.lowPricecheckBox.FlatAppearance.BorderSize = 0; - this.lowPricecheckBox.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.lowPricecheckBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.lowPricecheckBox.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.lowPricecheckBox.Location = new System.Drawing.Point(9, 120); - this.lowPricecheckBox.Margin = new System.Windows.Forms.Padding(2); - this.lowPricecheckBox.Name = "lowPricecheckBox"; - this.lowPricecheckBox.Size = new System.Drawing.Size(128, 21); - this.lowPricecheckBox.TabIndex = 408; - this.lowPricecheckBox.Text = "低价sku单独加价:"; - this.lowPricecheckBox.UseVisualStyleBackColor = true; - this.lowPricecheckBox.CheckedChanged += new System.EventHandler(this.lowPricecheckBox_CheckedChanged); - // - // lowPriceAddtextBox - // - this.lowPriceAddtextBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.lowPriceAddtextBox.Location = new System.Drawing.Point(213, 119); - this.lowPriceAddtextBox.Margin = new System.Windows.Forms.Padding(2); - this.lowPriceAddtextBox.Name = "lowPriceAddtextBox"; - this.lowPriceAddtextBox.Size = new System.Drawing.Size(22, 23); - this.lowPriceAddtextBox.TabIndex = 411; - this.lowPriceAddtextBox.Text = "0"; - this.lowPriceAddtextBox.TextChanged += new System.EventHandler(this.lowPriceAddtextBox_TextChanged); - // - // label32 - // - this.label32.AutoSize = true; - this.label32.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label32.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.label32.Location = new System.Drawing.Point(235, 122); - this.label32.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label32.Name = "label32"; - this.label32.Size = new System.Drawing.Size(20, 17); - this.label32.TabIndex = 412; - this.label32.Text = "元"; - // - // label34 - // - this.label34.AutoSize = true; - this.label34.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label34.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.label34.Location = new System.Drawing.Point(158, 122); - this.label34.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label34.Name = "label34"; - this.label34.Size = new System.Drawing.Size(20, 17); - this.label34.TabIndex = 410; - this.label34.Text = "倍"; - // - // label24 - // - this.label24.AutoSize = true; - this.label24.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label24.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.label24.Location = new System.Drawing.Point(503, 10); - this.label24.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label24.Name = "label24"; - this.label24.Size = new System.Drawing.Size(44, 17); - this.label24.TabIndex = 474; - this.label24.Text = "张主图"; - // - // tabPage2 - // - this.tabPage2.Controls.Add(this.label2); - this.tabPage2.Controls.Add(this.endDateTimePicker); - this.tabPage2.Controls.Add(this.chkFuzzyMatching); - this.tabPage2.Controls.Add(this.cmbNewPreTime); - this.tabPage2.Controls.Add(this.cmbSendDayAfterPre); - this.tabPage2.Controls.Add(this.buttonEx2); - this.tabPage2.Controls.Add(this.cmbSendType); - this.tabPage2.Controls.Add(this.txtremark); - this.tabPage2.Controls.Add(this.label13); - this.tabPage2.Controls.Add(this.label1); - this.tabPage2.Controls.Add(this.comboBox1); - this.tabPage2.Controls.Add(this.prefixTextBox); - this.tabPage2.Controls.Add(this.proxyCheckBox); - this.tabPage2.Controls.Add(this.label8); - this.tabPage2.Controls.Add(this.label6); - this.tabPage2.Controls.Add(this.cmbSendDay); - this.tabPage2.Controls.Add(this.sendTime); - this.tabPage2.Controls.Add(this.label12); - this.tabPage2.Controls.Add(this.label7); - this.tabPage2.Controls.Add(this.lblNewPreTime); - this.tabPage2.Location = new System.Drawing.Point(4, 26); - this.tabPage2.Name = "tabPage2"; - this.tabPage2.Size = new System.Drawing.Size(886, 150); - this.tabPage2.TabIndex = 1; - this.tabPage2.Text = " 参数设置二"; - this.tabPage2.UseVisualStyleBackColor = true; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.label2.Location = new System.Drawing.Point(97, 109); - this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(188, 17); - this.label2.TabIndex = 457; - this.label2.Text = "提高上货成功率但会增加违规风险"; - // - // endDateTimePicker - // - this.endDateTimePicker.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.endDateTimePicker.CustomFormat = "yyyy-MM-dd"; - this.endDateTimePicker.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.endDateTimePicker.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.endDateTimePicker.Location = new System.Drawing.Point(575, 106); - this.endDateTimePicker.Name = "endDateTimePicker"; - this.endDateTimePicker.Size = new System.Drawing.Size(90, 23); - this.endDateTimePicker.TabIndex = 419; - this.endDateTimePicker.Visible = false; - this.endDateTimePicker.ValueChanged += new System.EventHandler(this.endDateTimePicker_ValueChanged); - // - // chkFuzzyMatching - // - this.chkFuzzyMatching.AutoSize = true; - this.chkFuzzyMatching.FlatAppearance.BorderSize = 0; - this.chkFuzzyMatching.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chkFuzzyMatching.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chkFuzzyMatching.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.chkFuzzyMatching.Location = new System.Drawing.Point(8, 107); - this.chkFuzzyMatching.Margin = new System.Windows.Forms.Padding(2); - this.chkFuzzyMatching.Name = "chkFuzzyMatching"; - this.chkFuzzyMatching.Size = new System.Drawing.Size(96, 21); - this.chkFuzzyMatching.TabIndex = 456; - this.chkFuzzyMatching.Text = "模糊匹配属性"; - this.chkFuzzyMatching.UseVisualStyleBackColor = true; - // - // cmbNewPreTime - // - this.cmbNewPreTime.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.cmbNewPreTime.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.cmbNewPreTime.FormattingEnabled = true; - this.cmbNewPreTime.Items.AddRange(new object[] { - "5天内发货", - "15天内发货", - "45天内发货"}); - this.cmbNewPreTime.Location = new System.Drawing.Point(575, 105); - this.cmbNewPreTime.Margin = new System.Windows.Forms.Padding(2); - this.cmbNewPreTime.Name = "cmbNewPreTime"; - this.cmbNewPreTime.Size = new System.Drawing.Size(90, 25); - this.cmbNewPreTime.TabIndex = 436; - this.cmbNewPreTime.Text = "5天内发货"; - this.cmbNewPreTime.Visible = false; - // - // cmbSendDayAfterPre - // - this.cmbSendDayAfterPre.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.cmbSendDayAfterPre.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.cmbSendDayAfterPre.FormattingEnabled = true; - this.cmbSendDayAfterPre.Items.AddRange(new object[] { - "2", - "3", - "5", - "7", - "10", - "15"}); - this.cmbSendDayAfterPre.Location = new System.Drawing.Point(575, 78); - this.cmbSendDayAfterPre.Margin = new System.Windows.Forms.Padding(2); - this.cmbSendDayAfterPre.Name = "cmbSendDayAfterPre"; - this.cmbSendDayAfterPre.Size = new System.Drawing.Size(50, 25); - this.cmbSendDayAfterPre.TabIndex = 417; - this.cmbSendDayAfterPre.Text = "2"; - this.cmbSendDayAfterPre.Visible = false; - // - // buttonEx2 - // - this.buttonEx2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.buttonEx2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.buttonEx2.Cursor = System.Windows.Forms.Cursors.Hand; - this.buttonEx2.FlatAppearance.BorderSize = 0; - this.buttonEx2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.buttonEx2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.buttonEx2.ForeColor = System.Drawing.Color.White; - this.buttonEx2.Location = new System.Drawing.Point(726, 105); - this.buttonEx2.Margin = new System.Windows.Forms.Padding(2); - this.buttonEx2.Name = "buttonEx2"; - this.buttonEx2.Size = new System.Drawing.Size(147, 25); - this.buttonEx2.TabIndex = 431; - this.buttonEx2.Text = "上货包装标签图"; - this.buttonEx2.UseVisualStyleBackColor = false; - this.buttonEx2.Click += new System.EventHandler(this.buttonEx2_Click_1); - // - // cmbSendType - // - this.cmbSendType.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.cmbSendType.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.cmbSendType.FormattingEnabled = true; - this.cmbSendType.Items.AddRange(new object[] { - "现货发货", - "预售发货"}); - this.cmbSendType.Location = new System.Drawing.Point(575, 22); - this.cmbSendType.Margin = new System.Windows.Forms.Padding(2); - this.cmbSendType.Name = "cmbSendType"; - this.cmbSendType.Size = new System.Drawing.Size(72, 25); - this.cmbSendType.TabIndex = 415; - this.cmbSendType.Text = "现货发货"; - this.cmbSendType.SelectedIndexChanged += new System.EventHandler(this.comboBox3_SelectedIndexChanged); - // - // txtremark - // - this.txtremark.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.txtremark.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtremark.Location = new System.Drawing.Point(760, 51); - this.txtremark.Margin = new System.Windows.Forms.Padding(2); - this.txtremark.Name = "txtremark"; - this.txtremark.Size = new System.Drawing.Size(113, 23); - this.txtremark.TabIndex = 414; - // - // label13 - // - this.label13.AutoSize = true; - this.label13.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label13.Location = new System.Drawing.Point(5, 26); - this.label13.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(56, 17); - this.label13.TabIndex = 402; - this.label13.Text = "商品标题"; - // - // label1 - // - this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.label1.AutoSize = true; - this.label1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.label1.Location = new System.Drawing.Point(689, 54); - this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(80, 17); - this.label1.TabIndex = 413; - this.label1.Text = "商家推荐语:"; - // - // comboBox1 - // - this.comboBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.comboBox1.FormattingEnabled = true; - this.comboBox1.Items.AddRange(new object[] { - "前缀", - "后缀"}); - this.comboBox1.Location = new System.Drawing.Point(65, 22); - this.comboBox1.Margin = new System.Windows.Forms.Padding(2); - this.comboBox1.Name = "comboBox1"; - this.comboBox1.Size = new System.Drawing.Size(48, 25); - this.comboBox1.TabIndex = 401; - this.comboBox1.Text = "前缀"; - this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); - // - // prefixTextBox - // - this.prefixTextBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.prefixTextBox.ForeColor = System.Drawing.Color.Black; - this.prefixTextBox.Location = new System.Drawing.Point(117, 22); - this.prefixTextBox.Margin = new System.Windows.Forms.Padding(2); - this.prefixTextBox.Multiline = true; - this.prefixTextBox.Name = "prefixTextBox"; - this.prefixTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; - this.prefixTextBox.Size = new System.Drawing.Size(343, 81); - this.prefixTextBox.TabIndex = 400; - this.prefixTextBox.TextChanged += new System.EventHandler(this.prefixTextBox_TextChanged); - // - // proxyCheckBox - // - this.proxyCheckBox.AutoSize = true; - this.proxyCheckBox.FlatAppearance.BorderSize = 0; - this.proxyCheckBox.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.proxyCheckBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.proxyCheckBox.Location = new System.Drawing.Point(653, 23); - this.proxyCheckBox.Margin = new System.Windows.Forms.Padding(2); - this.proxyCheckBox.Name = "proxyCheckBox"; - this.proxyCheckBox.Size = new System.Drawing.Size(83, 21); - this.proxyCheckBox.TabIndex = 402; - this.proxyCheckBox.Text = "代理IP设置"; - this.proxyCheckBox.UseVisualStyleBackColor = true; - this.proxyCheckBox.CheckedChanged += new System.EventHandler(this.proxyCheckBox_CheckedChanged); - // - // label8 - // - this.label8.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.label8.AutoSize = true; - this.label8.BackColor = System.Drawing.Color.Transparent; - this.label8.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label8.Location = new System.Drawing.Point(625, 82); - this.label8.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(56, 17); - this.label8.TabIndex = 422; - this.label8.Text = "天内发货"; - this.label8.Visible = false; - // - // label6 - // - this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.label6.AutoSize = true; - this.label6.BackColor = System.Drawing.Color.Transparent; - this.label6.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label6.Location = new System.Drawing.Point(516, 26); - this.label6.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(68, 17); - this.label6.TabIndex = 416; - this.label6.Text = "发货模式:"; - // - // cmbSendDay - // - this.cmbSendDay.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.cmbSendDay.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.cmbSendDay.FormattingEnabled = true; - this.cmbSendDay.Items.AddRange(new object[] { - "24", - "48"}); - this.cmbSendDay.Location = new System.Drawing.Point(575, 50); - this.cmbSendDay.Margin = new System.Windows.Forms.Padding(2); - this.cmbSendDay.Name = "cmbSendDay"; - this.cmbSendDay.Size = new System.Drawing.Size(50, 25); - this.cmbSendDay.TabIndex = 421; - this.cmbSendDay.Text = "48"; - // - // sendTime - // - this.sendTime.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.sendTime.AutoSize = true; - this.sendTime.BackColor = System.Drawing.Color.Transparent; - this.sendTime.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.sendTime.Location = new System.Drawing.Point(504, 82); - this.sendTime.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.sendTime.Name = "sendTime"; - this.sendTime.Size = new System.Drawing.Size(80, 17); - this.sendTime.TabIndex = 418; - this.sendTime.Text = "预售结束后:"; - this.sendTime.Visible = false; - // - // label12 - // - this.label12.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.label12.AutoSize = true; - this.label12.BackColor = System.Drawing.Color.Transparent; - this.label12.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label12.Location = new System.Drawing.Point(492, 109); - this.label12.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(92, 17); - this.label12.TabIndex = 420; - this.label12.Text = "预售结束时间:"; - this.label12.Visible = false; - // - // label7 - // - this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.label7.AutoSize = true; - this.label7.BackColor = System.Drawing.Color.Transparent; - this.label7.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label7.Location = new System.Drawing.Point(516, 54); - this.label7.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(68, 17); - this.label7.TabIndex = 418; - this.label7.Text = "发货时间:"; - // - // lblNewPreTime - // - this.lblNewPreTime.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.lblNewPreTime.AutoSize = true; - this.lblNewPreTime.BackColor = System.Drawing.Color.Transparent; - this.lblNewPreTime.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.lblNewPreTime.Location = new System.Drawing.Point(516, 109); - this.lblNewPreTime.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.lblNewPreTime.Name = "lblNewPreTime"; - this.lblNewPreTime.Size = new System.Drawing.Size(68, 17); - this.lblNewPreTime.TabIndex = 435; - this.lblNewPreTime.Text = "发货时效:"; - this.lblNewPreTime.Visible = false; - // - // tabPage5 - // - this.tabPage5.Controls.Add(this.btnSetTitleRemove); - this.tabPage5.Controls.Add(this.btnSetBrandFilter); - this.tabPage5.Controls.Add(this.btnSetViolateCheck); - this.tabPage5.Controls.Add(this.btnSetSkuFilter); - this.tabPage5.Controls.Add(this.btnSetTitleFilter); - this.tabPage5.Controls.Add(this.chkOnlyPostFree); - this.tabPage5.Controls.Add(this.chkFilterRemoveTitle); - this.tabPage5.Controls.Add(this.chkFilterTMChaoShi); - this.tabPage5.Controls.Add(this.chkViolateCheck); - this.tabPage5.Controls.Add(this.chkFilterSku); - this.tabPage5.Controls.Add(this.chkFilterTitle); - this.tabPage5.Controls.Add(this.chkFilterBrand); - this.tabPage5.Location = new System.Drawing.Point(4, 26); - this.tabPage5.Name = "tabPage5"; - this.tabPage5.Size = new System.Drawing.Size(886, 150); - this.tabPage5.TabIndex = 4; - this.tabPage5.Text = "过滤设置"; - this.tabPage5.UseVisualStyleBackColor = true; - // - // btnSetTitleRemove - // - this.btnSetTitleRemove.CanvasColor = System.Drawing.SystemColors.Control; - this.btnSetTitleRemove.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnSetTitleRemove.DisabledBackColor = System.Drawing.Color.Empty; - this.btnSetTitleRemove.Font = new System.Drawing.Font("微软雅黑", 9F); - this.btnSetTitleRemove.Location = new System.Drawing.Point(124, 46); - this.btnSetTitleRemove.Name = "btnSetTitleRemove"; - this.btnSetTitleRemove.Size = new System.Drawing.Size(35, 20); - this.btnSetTitleRemove.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnSetTitleRemove.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnSetTitleRemove.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnSetTitleRemove.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnSetTitleRemove.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSetTitleRemove.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnSetTitleRemove.Style.GradientAngle = 90; - this.btnSetTitleRemove.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnSetTitleRemove.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnSetTitleRemove.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSetTitleRemove.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSetTitleRemove.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnSetTitleRemove.TabIndex = 508; - this.btnSetTitleRemove.Text = "设置"; - this.btnSetTitleRemove.Click += new System.EventHandler(this.btnSetTitleRemove_Click); - // - // btnSetBrandFilter - // - this.btnSetBrandFilter.CanvasColor = System.Drawing.SystemColors.Control; - this.btnSetBrandFilter.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnSetBrandFilter.DisabledBackColor = System.Drawing.Color.Empty; - this.btnSetBrandFilter.Font = new System.Drawing.Font("微软雅黑", 9F); - this.btnSetBrandFilter.Location = new System.Drawing.Point(279, 18); - this.btnSetBrandFilter.Name = "btnSetBrandFilter"; - this.btnSetBrandFilter.Size = new System.Drawing.Size(35, 20); - this.btnSetBrandFilter.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnSetBrandFilter.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnSetBrandFilter.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnSetBrandFilter.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnSetBrandFilter.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSetBrandFilter.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnSetBrandFilter.Style.GradientAngle = 90; - this.btnSetBrandFilter.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnSetBrandFilter.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnSetBrandFilter.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSetBrandFilter.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSetBrandFilter.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnSetBrandFilter.TabIndex = 489; - this.btnSetBrandFilter.Text = "设置"; - this.btnSetBrandFilter.Click += new System.EventHandler(this.btnSetBrandFilter_Click); - // - // btnSetViolateCheck - // - this.btnSetViolateCheck.CanvasColor = System.Drawing.SystemColors.Control; - this.btnSetViolateCheck.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnSetViolateCheck.DisabledBackColor = System.Drawing.Color.Empty; - this.btnSetViolateCheck.Font = new System.Drawing.Font("微软雅黑", 9F); - this.btnSetViolateCheck.Location = new System.Drawing.Point(124, 18); - this.btnSetViolateCheck.Name = "btnSetViolateCheck"; - this.btnSetViolateCheck.Size = new System.Drawing.Size(35, 20); - this.btnSetViolateCheck.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnSetViolateCheck.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnSetViolateCheck.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnSetViolateCheck.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnSetViolateCheck.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSetViolateCheck.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnSetViolateCheck.Style.GradientAngle = 90; - this.btnSetViolateCheck.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnSetViolateCheck.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnSetViolateCheck.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSetViolateCheck.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSetViolateCheck.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnSetViolateCheck.TabIndex = 445; - this.btnSetViolateCheck.Text = "设置"; - this.btnSetViolateCheck.Click += new System.EventHandler(this.btnSetViolateCheck_Click); - // - // btnSetSkuFilter - // - this.btnSetSkuFilter.CanvasColor = System.Drawing.SystemColors.Control; - this.btnSetSkuFilter.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnSetSkuFilter.DisabledBackColor = System.Drawing.Color.Empty; - this.btnSetSkuFilter.Font = new System.Drawing.Font("微软雅黑", 9F); - this.btnSetSkuFilter.Location = new System.Drawing.Point(124, 102); - this.btnSetSkuFilter.Name = "btnSetSkuFilter"; - this.btnSetSkuFilter.Size = new System.Drawing.Size(35, 20); - this.btnSetSkuFilter.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnSetSkuFilter.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnSetSkuFilter.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnSetSkuFilter.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnSetSkuFilter.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSetSkuFilter.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnSetSkuFilter.Style.GradientAngle = 90; - this.btnSetSkuFilter.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnSetSkuFilter.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnSetSkuFilter.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSetSkuFilter.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSetSkuFilter.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnSetSkuFilter.TabIndex = 484; - this.btnSetSkuFilter.Text = "设置"; - this.btnSetSkuFilter.Click += new System.EventHandler(this.btnSetSkuFilter_Click); - // - // btnSetTitleFilter - // - this.btnSetTitleFilter.CanvasColor = System.Drawing.SystemColors.Control; - this.btnSetTitleFilter.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnSetTitleFilter.DisabledBackColor = System.Drawing.Color.Empty; - this.btnSetTitleFilter.Font = new System.Drawing.Font("微软雅黑", 9F); - this.btnSetTitleFilter.Location = new System.Drawing.Point(124, 74); - this.btnSetTitleFilter.Name = "btnSetTitleFilter"; - this.btnSetTitleFilter.Size = new System.Drawing.Size(35, 20); - this.btnSetTitleFilter.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnSetTitleFilter.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnSetTitleFilter.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnSetTitleFilter.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnSetTitleFilter.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSetTitleFilter.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnSetTitleFilter.Style.GradientAngle = 90; - this.btnSetTitleFilter.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnSetTitleFilter.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnSetTitleFilter.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSetTitleFilter.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSetTitleFilter.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnSetTitleFilter.TabIndex = 449; - this.btnSetTitleFilter.Text = "设置"; - this.btnSetTitleFilter.Click += new System.EventHandler(this.btnSetTitleFilter_Click); - // - // chkOnlyPostFree - // - this.chkOnlyPostFree.AutoSize = true; - this.chkOnlyPostFree.FlatAppearance.BorderSize = 0; - this.chkOnlyPostFree.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chkOnlyPostFree.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chkOnlyPostFree.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.chkOnlyPostFree.Location = new System.Drawing.Point(199, 45); - this.chkOnlyPostFree.Margin = new System.Windows.Forms.Padding(2); - this.chkOnlyPostFree.Name = "chkOnlyPostFree"; - this.chkOnlyPostFree.Size = new System.Drawing.Size(84, 21); - this.chkOnlyPostFree.TabIndex = 404; - this.chkOnlyPostFree.Text = "过滤不包邮"; - this.chkOnlyPostFree.UseVisualStyleBackColor = true; - this.chkOnlyPostFree.CheckedChanged += new System.EventHandler(this.chkOnlyPostFree_CheckedChanged); - // - // chkFilterRemoveTitle - // - this.chkFilterRemoveTitle.AutoSize = true; - this.chkFilterRemoveTitle.FlatAppearance.BorderSize = 0; - this.chkFilterRemoveTitle.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chkFilterRemoveTitle.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chkFilterRemoveTitle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.chkFilterRemoveTitle.Location = new System.Drawing.Point(20, 46); - this.chkFilterRemoveTitle.Margin = new System.Windows.Forms.Padding(2); - this.chkFilterRemoveTitle.Name = "chkFilterRemoveTitle"; - this.chkFilterRemoveTitle.Size = new System.Drawing.Size(108, 21); - this.chkFilterRemoveTitle.TabIndex = 507; - this.chkFilterRemoveTitle.Text = "去除标题违规词"; - this.chkFilterRemoveTitle.UseVisualStyleBackColor = true; - // - // chkFilterTMChaoShi - // - this.chkFilterTMChaoShi.AutoSize = true; - this.chkFilterTMChaoShi.FlatAppearance.BorderSize = 0; - this.chkFilterTMChaoShi.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chkFilterTMChaoShi.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chkFilterTMChaoShi.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.chkFilterTMChaoShi.Location = new System.Drawing.Point(187, 73); - this.chkFilterTMChaoShi.Margin = new System.Windows.Forms.Padding(2); - this.chkFilterTMChaoShi.Name = "chkFilterTMChaoShi"; - this.chkFilterTMChaoShi.Size = new System.Drawing.Size(96, 21); - this.chkFilterTMChaoShi.TabIndex = 503; - this.chkFilterTMChaoShi.Text = "过滤天猫超市"; - this.chkFilterTMChaoShi.UseVisualStyleBackColor = true; - // - // chkViolateCheck - // - this.chkViolateCheck.AutoSize = true; - this.chkViolateCheck.FlatAppearance.BorderSize = 0; - this.chkViolateCheck.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chkViolateCheck.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chkViolateCheck.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.chkViolateCheck.Location = new System.Drawing.Point(43, 18); - this.chkViolateCheck.Margin = new System.Windows.Forms.Padding(2); - this.chkViolateCheck.Name = "chkViolateCheck"; - this.chkViolateCheck.Size = new System.Drawing.Size(84, 21); - this.chkViolateCheck.TabIndex = 440; - this.chkViolateCheck.Text = "云违规排查"; - this.chkViolateCheck.UseVisualStyleBackColor = true; - // - // chkFilterSku - // - this.chkFilterSku.AutoSize = true; - this.chkFilterSku.Checked = true; - this.chkFilterSku.CheckState = System.Windows.Forms.CheckState.Checked; - this.chkFilterSku.FlatAppearance.BorderSize = 0; - this.chkFilterSku.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chkFilterSku.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chkFilterSku.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.chkFilterSku.Location = new System.Drawing.Point(24, 102); - this.chkFilterSku.Margin = new System.Windows.Forms.Padding(2); - this.chkFilterSku.Name = "chkFilterSku"; - this.chkFilterSku.Size = new System.Drawing.Size(104, 21); - this.chkFilterSku.TabIndex = 483; - this.chkFilterSku.Text = "过滤sku违规词"; - this.chkFilterSku.UseVisualStyleBackColor = true; - // - // chkFilterTitle - // - this.chkFilterTitle.AutoSize = true; - this.chkFilterTitle.Checked = true; - this.chkFilterTitle.CheckState = System.Windows.Forms.CheckState.Checked; - this.chkFilterTitle.FlatAppearance.BorderSize = 0; - this.chkFilterTitle.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chkFilterTitle.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chkFilterTitle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.chkFilterTitle.Location = new System.Drawing.Point(20, 74); - this.chkFilterTitle.Margin = new System.Windows.Forms.Padding(2); - this.chkFilterTitle.Name = "chkFilterTitle"; - this.chkFilterTitle.Size = new System.Drawing.Size(108, 21); - this.chkFilterTitle.TabIndex = 398; - this.chkFilterTitle.Text = "过滤标题违规词"; - this.chkFilterTitle.UseVisualStyleBackColor = true; - // - // chkFilterBrand - // - this.chkFilterBrand.AutoSize = true; - this.chkFilterBrand.Checked = true; - this.chkFilterBrand.CheckState = System.Windows.Forms.CheckState.Checked; - this.chkFilterBrand.FlatAppearance.BorderSize = 0; - this.chkFilterBrand.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chkFilterBrand.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chkFilterBrand.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.chkFilterBrand.Location = new System.Drawing.Point(211, 18); - this.chkFilterBrand.Margin = new System.Windows.Forms.Padding(2); - this.chkFilterBrand.Name = "chkFilterBrand"; - this.chkFilterBrand.Size = new System.Drawing.Size(72, 21); - this.chkFilterBrand.TabIndex = 488; - this.chkFilterBrand.Text = "过滤品牌"; - this.chkFilterBrand.UseVisualStyleBackColor = true; - // - // tabPage3 - // - this.tabPage3.Controls.Add(this.btn删除食品许可证); - this.tabPage3.Controls.Add(this.btn删除包装标签图); - this.tabPage3.Controls.Add(this.btn删除质检报告); - this.tabPage3.Controls.Add(this.btn上传质检报告); - this.tabPage3.Controls.Add(this.btn上传包装标签图); - this.tabPage3.Controls.Add(this.btn上传食品许可证); - this.tabPage3.Controls.Add(this.pictureBox3); - this.tabPage3.Controls.Add(this.pictureBox2); - this.tabPage3.Controls.Add(this.pictureBox1); - this.tabPage3.Controls.Add(this.label22); - this.tabPage3.Controls.Add(this.label21); - this.tabPage3.Controls.Add(this.label20); - this.tabPage3.Controls.Add(this.chkUseGlobalQualifications); - this.tabPage3.Controls.Add(this.txt食品生产许可证编号); - this.tabPage3.Controls.Add(this.label19); - this.tabPage3.Controls.Add(this.txt生产企业名称); - this.tabPage3.Controls.Add(this.txtBrand); - this.tabPage3.Controls.Add(this.label17); - this.tabPage3.Controls.Add(this.label16); - this.tabPage3.Location = new System.Drawing.Point(4, 26); - this.tabPage3.Name = "tabPage3"; - this.tabPage3.Size = new System.Drawing.Size(886, 150); - this.tabPage3.TabIndex = 2; - this.tabPage3.Text = "食品资质"; - this.tabPage3.UseVisualStyleBackColor = true; - // - // btn删除食品许可证 - // - this.btn删除食品许可证.CanvasColor = System.Drawing.SystemColors.Control; - this.btn删除食品许可证.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btn删除食品许可证.DisabledBackColor = System.Drawing.Color.Empty; - this.btn删除食品许可证.Font = new System.Drawing.Font("微软雅黑", 9F); - this.btn删除食品许可证.Location = new System.Drawing.Point(419, 89); - this.btn删除食品许可证.Name = "btn删除食品许可证"; - this.btn删除食品许可证.Size = new System.Drawing.Size(35, 22); - this.btn删除食品许可证.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btn删除食品许可证.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btn删除食品许可证.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btn删除食品许可证.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btn删除食品许可证.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btn删除食品许可证.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btn删除食品许可证.Style.GradientAngle = 90; - this.btn删除食品许可证.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btn删除食品许可证.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btn删除食品许可证.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btn删除食品许可证.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btn删除食品许可证.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btn删除食品许可证.TabIndex = 475; - this.btn删除食品许可证.Text = "删除"; - this.btn删除食品许可证.Visible = false; - // - // btn删除包装标签图 - // - this.btn删除包装标签图.CanvasColor = System.Drawing.SystemColors.Control; - this.btn删除包装标签图.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btn删除包装标签图.DisabledBackColor = System.Drawing.Color.Empty; - this.btn删除包装标签图.Font = new System.Drawing.Font("微软雅黑", 9F); - this.btn删除包装标签图.Location = new System.Drawing.Point(561, 89); - this.btn删除包装标签图.Name = "btn删除包装标签图"; - this.btn删除包装标签图.Size = new System.Drawing.Size(35, 22); - this.btn删除包装标签图.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btn删除包装标签图.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btn删除包装标签图.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btn删除包装标签图.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btn删除包装标签图.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btn删除包装标签图.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btn删除包装标签图.Style.GradientAngle = 90; - this.btn删除包装标签图.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btn删除包装标签图.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btn删除包装标签图.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btn删除包装标签图.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btn删除包装标签图.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btn删除包装标签图.TabIndex = 471; - this.btn删除包装标签图.Text = "删除"; - this.btn删除包装标签图.Visible = false; - // - // btn删除质检报告 - // - this.btn删除质检报告.CanvasColor = System.Drawing.SystemColors.Control; - this.btn删除质检报告.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btn删除质检报告.DisabledBackColor = System.Drawing.Color.Empty; - this.btn删除质检报告.Font = new System.Drawing.Font("微软雅黑", 9F); - this.btn删除质检报告.Location = new System.Drawing.Point(703, 89); - this.btn删除质检报告.Name = "btn删除质检报告"; - this.btn删除质检报告.Size = new System.Drawing.Size(35, 22); - this.btn删除质检报告.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btn删除质检报告.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btn删除质检报告.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btn删除质检报告.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btn删除质检报告.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btn删除质检报告.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btn删除质检报告.Style.GradientAngle = 90; - this.btn删除质检报告.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btn删除质检报告.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btn删除质检报告.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btn删除质检报告.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btn删除质检报告.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btn删除质检报告.TabIndex = 467; - this.btn删除质检报告.Text = "删除"; - this.btn删除质检报告.Visible = false; - // - // btn上传质检报告 - // - this.btn上传质检报告.CanvasColor = System.Drawing.SystemColors.Control; - this.btn上传质检报告.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btn上传质检报告.DisabledBackColor = System.Drawing.Color.Empty; - this.btn上传质检报告.Font = new System.Drawing.Font("微软雅黑", 9F); - this.btn上传质检报告.Location = new System.Drawing.Point(703, 32); - this.btn上传质检报告.Name = "btn上传质检报告"; - this.btn上传质检报告.Size = new System.Drawing.Size(35, 22); - this.btn上传质检报告.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btn上传质检报告.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btn上传质检报告.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btn上传质检报告.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btn上传质检报告.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btn上传质检报告.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btn上传质检报告.Style.GradientAngle = 90; - this.btn上传质检报告.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btn上传质检报告.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btn上传质检报告.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btn上传质检报告.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btn上传质检报告.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btn上传质检报告.TabIndex = 463; - this.btn上传质检报告.Text = "上传"; - this.btn上传质检报告.Click += new System.EventHandler(this.btn上传质检报告_Click); - // - // btn上传包装标签图 - // - this.btn上传包装标签图.CanvasColor = System.Drawing.SystemColors.Control; - this.btn上传包装标签图.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btn上传包装标签图.DisabledBackColor = System.Drawing.Color.Empty; - this.btn上传包装标签图.Font = new System.Drawing.Font("微软雅黑", 9F); - this.btn上传包装标签图.Location = new System.Drawing.Point(561, 32); - this.btn上传包装标签图.Name = "btn上传包装标签图"; - this.btn上传包装标签图.Size = new System.Drawing.Size(35, 22); - this.btn上传包装标签图.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btn上传包装标签图.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btn上传包装标签图.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btn上传包装标签图.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btn上传包装标签图.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btn上传包装标签图.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btn上传包装标签图.Style.GradientAngle = 90; - this.btn上传包装标签图.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btn上传包装标签图.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btn上传包装标签图.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btn上传包装标签图.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btn上传包装标签图.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btn上传包装标签图.TabIndex = 459; - this.btn上传包装标签图.Text = "上传"; - this.btn上传包装标签图.Click += new System.EventHandler(this.btn上传包装标签图_Click); - // - // btn上传食品许可证 - // - this.btn上传食品许可证.CanvasColor = System.Drawing.SystemColors.Control; - this.btn上传食品许可证.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btn上传食品许可证.DisabledBackColor = System.Drawing.Color.Empty; - this.btn上传食品许可证.Font = new System.Drawing.Font("微软雅黑", 9F); - this.btn上传食品许可证.Location = new System.Drawing.Point(419, 32); - this.btn上传食品许可证.Name = "btn上传食品许可证"; - this.btn上传食品许可证.Size = new System.Drawing.Size(35, 22); - this.btn上传食品许可证.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btn上传食品许可证.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btn上传食品许可证.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btn上传食品许可证.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btn上传食品许可证.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btn上传食品许可证.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btn上传食品许可证.Style.GradientAngle = 90; - this.btn上传食品许可证.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btn上传食品许可证.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btn上传食品许可证.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btn上传食品许可证.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btn上传食品许可证.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btn上传食品许可证.TabIndex = 455; - this.btn上传食品许可证.Text = "上传"; - this.btn上传食品许可证.Click += new System.EventHandler(this.btn上传食品许可证_Click); - // - // pictureBox3 - // - this.pictureBox3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.pictureBox3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pictureBox3.Location = new System.Drawing.Point(622, 32); - this.pictureBox3.Name = "pictureBox3"; - this.pictureBox3.Size = new System.Drawing.Size(79, 79); - this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; - this.pictureBox3.TabIndex = 451; - this.pictureBox3.TabStop = false; - // - // pictureBox2 - // - this.pictureBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.pictureBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pictureBox2.Location = new System.Drawing.Point(480, 32); - this.pictureBox2.Name = "pictureBox2"; - this.pictureBox2.Size = new System.Drawing.Size(79, 79); - this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; - this.pictureBox2.TabIndex = 450; - this.pictureBox2.TabStop = false; - // - // pictureBox1 - // - this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pictureBox1.Location = new System.Drawing.Point(338, 32); - this.pictureBox1.Name = "pictureBox1"; - this.pictureBox1.Size = new System.Drawing.Size(79, 79); - this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; - this.pictureBox1.TabIndex = 449; - this.pictureBox1.TabStop = false; - // - // label22 - // - this.label22.AutoSize = true; - this.label22.BackColor = System.Drawing.Color.Transparent; - this.label22.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label22.Location = new System.Drawing.Point(620, 12); - this.label22.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label22.Name = "label22"; - this.label22.Size = new System.Drawing.Size(68, 17); - this.label22.TabIndex = 448; - this.label22.Text = "质检报告:"; - // - // label21 - // - this.label21.AutoSize = true; - this.label21.BackColor = System.Drawing.Color.Transparent; - this.label21.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label21.Location = new System.Drawing.Point(478, 12); - this.label21.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label21.Name = "label21"; - this.label21.Size = new System.Drawing.Size(104, 17); - this.label21.TabIndex = 447; - this.label21.Text = "产品包装标签图:"; - // - // label20 - // - this.label20.AutoSize = true; - this.label20.BackColor = System.Drawing.Color.Transparent; - this.label20.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label20.Location = new System.Drawing.Point(336, 12); - this.label20.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label20.Name = "label20"; - this.label20.Size = new System.Drawing.Size(128, 17); - this.label20.TabIndex = 446; - this.label20.Text = "食品生产许可证图片:"; - // - // chkUseGlobalQualifications - // - this.chkUseGlobalQualifications.AutoSize = true; - this.chkUseGlobalQualifications.FlatAppearance.BorderSize = 0; - this.chkUseGlobalQualifications.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chkUseGlobalQualifications.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chkUseGlobalQualifications.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.chkUseGlobalQualifications.Location = new System.Drawing.Point(6, 2); - this.chkUseGlobalQualifications.Margin = new System.Windows.Forms.Padding(2); - this.chkUseGlobalQualifications.Name = "chkUseGlobalQualifications"; - this.chkUseGlobalQualifications.Size = new System.Drawing.Size(156, 21); - this.chkUseGlobalQualifications.TabIndex = 445; - this.chkUseGlobalQualifications.Text = "上传商品时使用以下资质"; - this.chkUseGlobalQualifications.UseVisualStyleBackColor = true; - // - // txt食品生产许可证编号 - // - this.txt食品生产许可证编号.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txt食品生产许可证编号.Location = new System.Drawing.Point(124, 88); - this.txt食品生产许可证编号.Margin = new System.Windows.Forms.Padding(2); - this.txt食品生产许可证编号.Name = "txt食品生产许可证编号"; - this.txt食品生产许可证编号.Size = new System.Drawing.Size(185, 23); - this.txt食品生产许可证编号.TabIndex = 444; - this.txt食品生产许可证编号.TextChanged += new System.EventHandler(this.txt食品生产许可证号_TextChanged); - // - // label19 - // - this.label19.AutoSize = true; - this.label19.BackColor = System.Drawing.Color.Transparent; - this.label19.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label19.Location = new System.Drawing.Point(3, 91); - this.label19.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label19.Name = "label19"; - this.label19.Size = new System.Drawing.Size(128, 17); - this.label19.TabIndex = 443; - this.label19.Text = "食品生产许可证编号:"; - // - // txt生产企业名称 - // - this.txt生产企业名称.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txt生产企业名称.Location = new System.Drawing.Point(124, 60); - this.txt生产企业名称.Margin = new System.Windows.Forms.Padding(2); - this.txt生产企业名称.Name = "txt生产企业名称"; - this.txt生产企业名称.Size = new System.Drawing.Size(185, 23); - this.txt生产企业名称.TabIndex = 441; - this.txt生产企业名称.TextChanged += new System.EventHandler(this.txt生产企业名称_TextChanged); - // - // txtBrand - // - this.txtBrand.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtBrand.Location = new System.Drawing.Point(124, 32); - this.txtBrand.Margin = new System.Windows.Forms.Padding(2); - this.txtBrand.Name = "txtBrand"; - this.txtBrand.Size = new System.Drawing.Size(185, 23); - this.txtBrand.TabIndex = 439; - this.txtBrand.TextChanged += new System.EventHandler(this.txtBrand_TextChanged); - // - // label17 - // - this.label17.AutoSize = true; - this.label17.BackColor = System.Drawing.Color.Transparent; - this.label17.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label17.Location = new System.Drawing.Point(39, 63); - this.label17.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label17.Name = "label17"; - this.label17.Size = new System.Drawing.Size(92, 17); - this.label17.TabIndex = 442; - this.label17.Text = "生产企业名称:"; - // - // label16 - // - this.label16.AutoSize = true; - this.label16.BackColor = System.Drawing.Color.Transparent; - this.label16.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label16.Location = new System.Drawing.Point(87, 35); - this.label16.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label16.Name = "label16"; - this.label16.Size = new System.Drawing.Size(44, 17); - this.label16.TabIndex = 440; - this.label16.Text = "品牌:"; - // - // tabPage4 - // - this.tabPage4.Controls.Add(this.checkBox1); - this.tabPage4.Controls.Add(this.panelEx2); - this.tabPage4.Controls.Add(this.panelEx1); - this.tabPage4.Controls.Add(this.checkBox2); - this.tabPage4.Controls.Add(this.chkCustomCategory); - this.tabPage4.Location = new System.Drawing.Point(4, 26); - this.tabPage4.Name = "tabPage4"; - this.tabPage4.Padding = new System.Windows.Forms.Padding(3); - this.tabPage4.Size = new System.Drawing.Size(886, 150); - this.tabPage4.TabIndex = 3; - this.tabPage4.Text = "图书上货"; - this.tabPage4.UseVisualStyleBackColor = true; - // - // checkBox1 - // - this.checkBox1.AutoSize = true; - this.checkBox1.FlatAppearance.BorderSize = 0; - this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.checkBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.checkBox1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.checkBox1.Location = new System.Drawing.Point(345, 24); - this.checkBox1.Margin = new System.Windows.Forms.Padding(2); - this.checkBox1.Name = "checkBox1"; - this.checkBox1.Size = new System.Drawing.Size(84, 21); - this.checkBox1.TabIndex = 464; - this.checkBox1.Text = "出版社过滤"; - this.checkBox1.UseVisualStyleBackColor = true; - // - // panelEx2 - // - this.panelEx2.CanvasColor = System.Drawing.SystemColors.Control; - this.panelEx2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.panelEx2.DisabledBackColor = System.Drawing.Color.Empty; - this.panelEx2.Font = new System.Drawing.Font("微软雅黑", 9F); - this.panelEx2.Location = new System.Drawing.Point(434, 25); - this.panelEx2.Name = "panelEx2"; - this.panelEx2.Size = new System.Drawing.Size(35, 20); - this.panelEx2.Style.Alignment = System.Drawing.StringAlignment.Center; - this.panelEx2.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.panelEx2.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.panelEx2.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.panelEx2.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.panelEx2.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.panelEx2.Style.GradientAngle = 90; - this.panelEx2.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.panelEx2.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.panelEx2.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.panelEx2.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.panelEx2.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.panelEx2.TabIndex = 457; - this.panelEx2.Text = "设置"; - // - // panelEx1 - // - this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control; - this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty; - this.panelEx1.Font = new System.Drawing.Font("微软雅黑", 9F); - this.panelEx1.Location = new System.Drawing.Point(283, 24); - this.panelEx1.Name = "panelEx1"; - this.panelEx1.Size = new System.Drawing.Size(35, 20); - 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 = 453; - this.panelEx1.Text = "设置"; - // - // checkBox2 - // - this.checkBox2.AutoSize = true; - this.checkBox2.FlatAppearance.BorderSize = 0; - this.checkBox2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.checkBox2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.checkBox2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.checkBox2.Location = new System.Drawing.Point(5, 3); - this.checkBox2.Margin = new System.Windows.Forms.Padding(2); - this.checkBox2.Name = "checkBox2"; - this.checkBox2.Size = new System.Drawing.Size(156, 21); - this.checkBox2.TabIndex = 449; - this.checkBox2.Text = "上传商品时使用图书配置"; - this.checkBox2.UseVisualStyleBackColor = true; - // - // chkCustomCategory - // - this.chkCustomCategory.AutoSize = true; - this.chkCustomCategory.FlatAppearance.BorderSize = 0; - this.chkCustomCategory.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chkCustomCategory.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chkCustomCategory.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); - this.chkCustomCategory.Location = new System.Drawing.Point(182, 24); - this.chkCustomCategory.Margin = new System.Windows.Forms.Padding(2); - this.chkCustomCategory.Name = "chkCustomCategory"; - this.chkCustomCategory.Size = new System.Drawing.Size(96, 21); - this.chkCustomCategory.TabIndex = 446; - this.chkCustomCategory.Text = "只传指定类目"; - this.chkCustomCategory.UseVisualStyleBackColor = true; - // - // shopthreadCountTextBox - // - this.shopthreadCountTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.shopthreadCountTextBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.shopthreadCountTextBox.FormattingEnabled = true; - this.shopthreadCountTextBox.Items.AddRange(new object[] { - "1", - "2", - "3", - "4", - "5", - "10", - "15", - "20", - "30", - "50"}); - this.shopthreadCountTextBox.Location = new System.Drawing.Point(963, 31); - this.shopthreadCountTextBox.Margin = new System.Windows.Forms.Padding(2); - this.shopthreadCountTextBox.Name = "shopthreadCountTextBox"; - this.shopthreadCountTextBox.Size = new System.Drawing.Size(36, 25); - this.shopthreadCountTextBox.TabIndex = 397; - this.shopthreadCountTextBox.Text = "20"; - this.shopthreadCountTextBox.SelectedIndexChanged += new System.EventHandler(this.shopthreadCountTextBox_SelectedIndexChanged); - // - // btnUpload - // - this.btnUpload.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnUpload.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnUpload.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnUpload.FlatAppearance.BorderSize = 0; - this.btnUpload.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnUpload.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnUpload.ForeColor = System.Drawing.Color.White; - this.btnUpload.Location = new System.Drawing.Point(930, 87); - this.btnUpload.Margin = new System.Windows.Forms.Padding(2); - this.btnUpload.Name = "btnUpload"; - this.btnUpload.Size = new System.Drawing.Size(72, 25); - this.btnUpload.TabIndex = 390; - this.btnUpload.Text = "导入数据"; - this.btnUpload.UseVisualStyleBackColor = false; - this.btnUpload.Click += new System.EventHandler(this.button3_Click); - // - // buttonEx1 - // - this.buttonEx1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.buttonEx1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.buttonEx1.Cursor = System.Windows.Forms.Cursors.Hand; - this.buttonEx1.FlatAppearance.BorderSize = 0; - this.buttonEx1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.buttonEx1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.buttonEx1.ForeColor = System.Drawing.Color.White; - this.buttonEx1.Location = new System.Drawing.Point(930, 117); - this.buttonEx1.Margin = new System.Windows.Forms.Padding(2); - this.buttonEx1.Name = "buttonEx1"; - this.buttonEx1.Size = new System.Drawing.Size(72, 25); - this.buttonEx1.TabIndex = 389; - this.buttonEx1.Text = "清空数据"; - this.buttonEx1.UseVisualStyleBackColor = false; - this.buttonEx1.Click += new System.EventHandler(this.button4_Click); - // - // btnUploadGood - // - this.btnUploadGood.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnUploadGood.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnUploadGood.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnUploadGood.FlatAppearance.BorderSize = 0; - this.btnUploadGood.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnUploadGood.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnUploadGood.ForeColor = System.Drawing.Color.White; - this.btnUploadGood.Location = new System.Drawing.Point(1007, 87); - this.btnUploadGood.Margin = new System.Windows.Forms.Padding(2); - this.btnUploadGood.Name = "btnUploadGood"; - this.btnUploadGood.Size = new System.Drawing.Size(72, 25); - this.btnUploadGood.TabIndex = 387; - this.btnUploadGood.Text = "上货"; - this.btnUploadGood.UseVisualStyleBackColor = false; - this.btnUploadGood.Click += new System.EventHandler(this.btnUpload_Click); - // - // countLabel - // - this.countLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.countLabel.AutoSize = true; - this.countLabel.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.countLabel.ForeColor = System.Drawing.Color.Black; - this.countLabel.Location = new System.Drawing.Point(1053, 35); - this.countLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.countLabel.Name = "countLabel"; - this.countLabel.Size = new System.Drawing.Size(27, 17); - this.countLabel.TabIndex = 368; - this.countLabel.Text = "0个"; - // - // label29 - // - this.label29.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.label29.AutoSize = true; - this.label29.BackColor = System.Drawing.Color.Transparent; - this.label29.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label29.Location = new System.Drawing.Point(905, 35); - this.label29.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label29.Name = "label29"; - this.label29.Size = new System.Drawing.Size(68, 17); - this.label29.TabIndex = 396; - this.label29.Text = "多店发布:"; - // - // lblWaitUpload - // - this.lblWaitUpload.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.lblWaitUpload.AutoSize = true; - this.lblWaitUpload.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.lblWaitUpload.Location = new System.Drawing.Point(1010, 35); - this.lblWaitUpload.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.lblWaitUpload.Name = "lblWaitUpload"; - this.lblWaitUpload.Size = new System.Drawing.Size(56, 17); - this.lblWaitUpload.TabIndex = 367; - this.lblWaitUpload.Text = "剩余数:"; - this.lblWaitUpload.Click += new System.EventHandler(this.lblWaitUpload_Click); - // - // 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(1110, 463); - this.splitContainer3.SplitterDistance = 433; - 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.cboHour); - this.splitContainer2.Panel1.Controls.Add(this.btnTest); - this.splitContainer2.Panel1.Controls.Add(this.buttonEx4); - this.splitContainer2.Panel1.Controls.Add(this.chklogistime); - this.splitContainer2.Panel1.Controls.Add(this.label48); - this.splitContainer2.Panel1.Controls.Add(this.label10); - this.splitContainer2.Panel1.Controls.Add(this.littleSkuCheckBox); - this.splitContainer2.Panel1.Controls.Add(this.txtRatio); - this.splitContainer2.Panel1.Controls.Add(this.chkSaveToOffLine); - this.splitContainer2.Panel1.Controls.Add(this.chkIsSetCommission); - this.splitContainer2.Panel1.Controls.Add(this.btnGetUpId); - this.splitContainer2.Panel1.Controls.Add(this.txtUpProduct); - 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.pnlShowError); - this.splitContainer2.Panel2.Controls.Add(this.dgvProduct); - this.splitContainer2.Panel2.Padding = new System.Windows.Forms.Padding(0, 0, 4, 0); - this.splitContainer2.Size = new System.Drawing.Size(1110, 433); - this.splitContainer2.SplitterDistance = 347; - this.splitContainer2.TabIndex = 0; - // - // cboHour - // - this.cboHour.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.cboHour.FormattingEnabled = true; - this.cboHour.Items.AddRange(new object[] { - "24", - "48", - "72"}); - this.cboHour.Location = new System.Drawing.Point(117, 41); - this.cboHour.Margin = new System.Windows.Forms.Padding(2); - this.cboHour.Name = "cboHour"; - this.cboHour.Size = new System.Drawing.Size(41, 25); - this.cboHour.TabIndex = 406; - this.cboHour.Text = "24"; - this.cboHour.Visible = false; - this.cboHour.SelectedIndexChanged += new System.EventHandler(this.cboHour_SelectedIndexChanged); - // - // btnTest - // - this.btnTest.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnTest.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnTest.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnTest.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnTest.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnTest.ForeColor = System.Drawing.Color.White; - this.btnTest.Location = new System.Drawing.Point(12, 400); - this.btnTest.Margin = new System.Windows.Forms.Padding(2); - this.btnTest.Name = "btnTest"; - this.btnTest.Size = new System.Drawing.Size(72, 25); - this.btnTest.TabIndex = 391; - this.btnTest.Text = "测试按钮"; - this.btnTest.UseVisualStyleBackColor = false; - this.btnTest.Visible = false; - this.btnTest.Click += new System.EventHandler(this.button6_Click); - // - // buttonEx4 - // - this.buttonEx4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.buttonEx4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.buttonEx4.Cursor = System.Windows.Forms.Cursors.Hand; - this.buttonEx4.FlatAppearance.BorderSize = 0; - this.buttonEx4.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.buttonEx4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.buttonEx4.ForeColor = System.Drawing.Color.White; - this.buttonEx4.Location = new System.Drawing.Point(23, 176); - this.buttonEx4.Margin = new System.Windows.Forms.Padding(2); - this.buttonEx4.Name = "buttonEx4"; - this.buttonEx4.Size = new System.Drawing.Size(72, 25); - this.buttonEx4.TabIndex = 403; - this.buttonEx4.Text = "登录淘宝"; - this.buttonEx4.UseVisualStyleBackColor = false; - this.buttonEx4.Visible = false; - this.buttonEx4.Click += new System.EventHandler(this.buttonEx4_Click); - // - // chklogistime - // - this.chklogistime.AutoSize = true; - this.chklogistime.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chklogistime.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chklogistime.Location = new System.Drawing.Point(24, 44); - this.chklogistime.Name = "chklogistime"; - this.chklogistime.Size = new System.Drawing.Size(96, 21); - this.chklogistime.TabIndex = 405; - this.chklogistime.Text = "不上传发货超"; - this.chklogistime.UseVisualStyleBackColor = true; - this.chklogistime.Visible = false; - this.chklogistime.CheckedChanged += new System.EventHandler(this.chklogistime_CheckedChanged); - // - // label48 - // - this.label48.AutoSize = true; - this.label48.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label48.Location = new System.Drawing.Point(159, 46); - this.label48.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label48.Name = "label48"; - this.label48.Size = new System.Drawing.Size(32, 17); - this.label48.TabIndex = 407; - this.label48.Text = "小时"; - this.label48.Visible = false; - // - // label10 - // - this.label10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.label10.AutoSize = true; - this.label10.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label10.ForeColor = System.Drawing.Color.Black; - this.label10.Location = new System.Drawing.Point(158, 123); - this.label10.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(19, 17); - this.label10.TabIndex = 427; - this.label10.Text = "%"; - this.label10.Visible = false; - // - // littleSkuCheckBox - // - this.littleSkuCheckBox.AutoSize = true; - this.littleSkuCheckBox.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.littleSkuCheckBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.littleSkuCheckBox.Location = new System.Drawing.Point(24, 70); - this.littleSkuCheckBox.Margin = new System.Windows.Forms.Padding(2); - this.littleSkuCheckBox.Name = "littleSkuCheckBox"; - this.littleSkuCheckBox.Size = new System.Drawing.Size(123, 21); - this.littleSkuCheckBox.TabIndex = 379; - this.littleSkuCheckBox.Text = "低于3个sku不上传"; - this.littleSkuCheckBox.UseVisualStyleBackColor = true; - this.littleSkuCheckBox.Visible = false; - this.littleSkuCheckBox.CheckedChanged += new System.EventHandler(this.littleSkuCheckBox_CheckedChanged); - // - // txtRatio - // - this.txtRatio.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.txtRatio.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtRatio.Location = new System.Drawing.Point(130, 120); - this.txtRatio.Margin = new System.Windows.Forms.Padding(2); - this.txtRatio.Name = "txtRatio"; - this.txtRatio.Size = new System.Drawing.Size(28, 23); - this.txtRatio.TabIndex = 426; - this.txtRatio.Text = "10"; - this.txtRatio.Visible = false; - this.txtRatio.TextChanged += new System.EventHandler(this.txtRatio_TextChanged); - // - // chkSaveToOffLine - // - this.chkSaveToOffLine.AutoSize = true; - this.chkSaveToOffLine.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chkSaveToOffLine.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chkSaveToOffLine.Location = new System.Drawing.Point(24, 95); - this.chkSaveToOffLine.Margin = new System.Windows.Forms.Padding(2); - this.chkSaveToOffLine.Name = "chkSaveToOffLine"; - this.chkSaveToOffLine.Size = new System.Drawing.Size(84, 21); - this.chkSaveToOffLine.TabIndex = 439; - this.chkSaveToOffLine.Text = "保存到仓库"; - this.chkSaveToOffLine.UseVisualStyleBackColor = true; - this.chkSaveToOffLine.Visible = false; - this.chkSaveToOffLine.CheckedChanged += new System.EventHandler(this.chkSaveToOffLine_CheckedChanged); - // - // chkIsSetCommission - // - this.chkIsSetCommission.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.chkIsSetCommission.AutoSize = true; - this.chkIsSetCommission.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chkIsSetCommission.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chkIsSetCommission.Location = new System.Drawing.Point(24, 121); - this.chkIsSetCommission.Name = "chkIsSetCommission"; - this.chkIsSetCommission.Size = new System.Drawing.Size(108, 21); - this.chkIsSetCommission.TabIndex = 425; - this.chkIsSetCommission.Text = "上货后设置佣金"; - this.chkIsSetCommission.UseVisualStyleBackColor = true; - this.chkIsSetCommission.Visible = false; - this.chkIsSetCommission.CheckedChanged += new System.EventHandler(this.chkIsSetCommission_CheckedChanged); - // - // btnGetUpId - // - this.btnGetUpId.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnGetUpId.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnGetUpId.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnGetUpId.FlatAppearance.BorderSize = 0; - this.btnGetUpId.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnGetUpId.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnGetUpId.ForeColor = System.Drawing.Color.White; - this.btnGetUpId.Location = new System.Drawing.Point(23, 147); - this.btnGetUpId.Margin = new System.Windows.Forms.Padding(2); - this.btnGetUpId.Name = "btnGetUpId"; - this.btnGetUpId.Size = new System.Drawing.Size(72, 25); - this.btnGetUpId.TabIndex = 395; - this.btnGetUpId.Text = "获取上家"; - this.btnGetUpId.UseVisualStyleBackColor = false; - this.btnGetUpId.Visible = false; - this.btnGetUpId.Click += new System.EventHandler(this.btnGetUpId_Click); - // - // txtUpProduct - // - this.txtUpProduct.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.txtUpProduct.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtUpProduct.Location = new System.Drawing.Point(99, 148); - this.txtUpProduct.Margin = new System.Windows.Forms.Padding(2); - this.txtUpProduct.Name = "txtUpProduct"; - this.txtUpProduct.Size = new System.Drawing.Size(94, 23); - this.txtUpProduct.TabIndex = 394; - this.txtUpProduct.Visible = false; - // - // dgvShop - // - this.dgvShop.AllowUserToAddRows = false; - this.dgvShop.AllowUserToDeleteRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - 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.colShopId, - this.colShopName, - this.colUploadCount, - this.colStatus}); - this.dgvShop.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvShop.Location = new System.Drawing.Point(4, 0); - this.dgvShop.Name = "dgvShop"; - this.dgvShop.ReadOnly = true; - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvShop.RowsDefaultCellStyle = dataGridViewCellStyle3; - this.dgvShop.RowTemplate.Height = 23; - this.dgvShop.Size = new System.Drawing.Size(343, 433); - this.dgvShop.TabIndex = 6; - this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick); - // - // colSelect - // - this.colSelect.FillWeight = 50F; - 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 = 36; - // - // colShopId - // - this.colShopId.HeaderText = "店铺"; - this.colShopId.Name = "colShopId"; - this.colShopId.ReadOnly = true; - this.colShopId.Width = 60; - // - // colShopName - // - this.colShopName.FillWeight = 150F; - this.colShopName.HeaderText = "店铺名称"; - this.colShopName.Name = "colShopName"; - this.colShopName.ReadOnly = true; - this.colShopName.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colShopName.Width = 80; - // - // colUploadCount - // - this.colUploadCount.HeaderText = "上传"; - this.colUploadCount.Name = "colUploadCount"; - this.colUploadCount.ReadOnly = true; - this.colUploadCount.Width = 50; - // - // colStatus - // - this.colStatus.HeaderText = "消息"; - this.colStatus.Name = "colStatus"; - this.colStatus.ReadOnly = true; - this.colStatus.Width = 120; - // - // pnlShowError - // - this.pnlShowError.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.pnlShowError.CanvasColor = System.Drawing.Color.Empty; - this.pnlShowError.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.pnlShowError.DisabledBackColor = System.Drawing.Color.Empty; - this.pnlShowError.Location = new System.Drawing.Point(179, 176); - this.pnlShowError.Name = "pnlShowError"; - this.pnlShowError.Size = new System.Drawing.Size(400, 100); - this.pnlShowError.Style.Alignment = System.Drawing.StringAlignment.Center; - this.pnlShowError.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(163)))), ((int)(((byte)(226)))), ((int)(((byte)(255))))); - this.pnlShowError.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(163)))), ((int)(((byte)(226)))), ((int)(((byte)(255))))); - this.pnlShowError.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.pnlShowError.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; - this.pnlShowError.Style.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.pnlShowError.Style.ForeColor.Color = System.Drawing.Color.Red; - this.pnlShowError.Style.GradientAngle = 90; - this.pnlShowError.TabIndex = 179; - this.pnlShowError.Text = "panelEx3"; - this.pnlShowError.Visible = false; - // - // 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.flowLayoutPanel1); - this.splitContainer4.Size = new System.Drawing.Size(1110, 26); - this.splitContainer4.SplitterDistance = 703; - 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(703, 26); - this.statusBar.TabIndex = 2; - // - // flowLayoutPanel1 - // - this.flowLayoutPanel1.Controls.Add(this.btnGo); - this.flowLayoutPanel1.Controls.Add(this.label27); - this.flowLayoutPanel1.Controls.Add(this.txtGoPage); - this.flowLayoutPanel1.Controls.Add(this.label36); - this.flowLayoutPanel1.Controls.Add(this.lblTotalPage); - this.flowLayoutPanel1.Controls.Add(this.btnNext); - this.flowLayoutPanel1.Controls.Add(this.lblCurrentPage); - this.flowLayoutPanel1.Controls.Add(this.btnPrev); - this.flowLayoutPanel1.Controls.Add(this.lblPage1); - this.flowLayoutPanel1.Controls.Add(this.AutoRefcheckBox); - this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.flowLayoutPanel1.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft; - this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 0); - this.flowLayoutPanel1.Name = "flowLayoutPanel1"; - this.flowLayoutPanel1.Size = new System.Drawing.Size(403, 26); - this.flowLayoutPanel1.TabIndex = 0; - // - // btnGo - // - this.btnGo.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.btnGo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.btnGo.FlatAppearance.BorderColor = System.Drawing.Color.Silver; - this.btnGo.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnGo.Location = new System.Drawing.Point(359, 0); - this.btnGo.Margin = new System.Windows.Forms.Padding(2, 0, 4, 0); - this.btnGo.Name = "btnGo"; - this.btnGo.Size = new System.Drawing.Size(40, 22); - this.btnGo.TabIndex = 371; - this.btnGo.Text = "前往"; - this.btnGo.UseCompatibleTextRendering = true; - this.btnGo.UseVisualStyleBackColor = false; - this.btnGo.Click += new System.EventHandler(this.btnGo_Click); - // - // label27 - // - this.label27.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label27.AutoSize = true; - this.label27.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); - this.label27.Location = new System.Drawing.Point(340, 0); - this.label27.Margin = new System.Windows.Forms.Padding(0); - this.label27.Name = "label27"; - this.label27.Size = new System.Drawing.Size(17, 21); - this.label27.TabIndex = 338; - this.label27.Text = "页"; - this.label27.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.label27.UseCompatibleTextRendering = true; - // - // txtGoPage - // - this.txtGoPage.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.txtGoPage.Font = new System.Drawing.Font("微软雅黑", 8.5F); - this.txtGoPage.Location = new System.Drawing.Point(312, 0); - this.txtGoPage.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.txtGoPage.Name = "txtGoPage"; - this.txtGoPage.Size = new System.Drawing.Size(26, 22); - this.txtGoPage.TabIndex = 336; - this.txtGoPage.Text = "1"; - this.txtGoPage.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; - // - // label36 - // - this.label36.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label36.AutoSize = true; - this.label36.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); - this.label36.Location = new System.Drawing.Point(268, 0); - this.label36.Margin = new System.Windows.Forms.Padding(8, 0, 0, 0); - this.label36.Name = "label36"; - this.label36.Size = new System.Drawing.Size(42, 21); - this.label36.TabIndex = 337; - this.label36.Text = "跳转到"; - this.label36.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.label36.UseCompatibleTextRendering = true; - // - // lblTotalPage - // - this.lblTotalPage.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.lblTotalPage.AutoSize = true; - this.lblTotalPage.Cursor = System.Windows.Forms.Cursors.Hand; - this.lblTotalPage.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.lblTotalPage.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); - this.lblTotalPage.Location = new System.Drawing.Point(224, 0); - this.lblTotalPage.Margin = new System.Windows.Forms.Padding(0); - this.lblTotalPage.Name = "lblTotalPage"; - this.lblTotalPage.Size = new System.Drawing.Size(36, 21); - this.lblTotalPage.TabIndex = 335; - this.lblTotalPage.Text = "共1页"; - this.lblTotalPage.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.lblTotalPage.UseCompatibleTextRendering = true; - this.lblTotalPage.Click += new System.EventHandler(this.lblTotalPage_Click); - // - // btnNext - // - this.btnNext.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.btnNext.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.btnNext.FlatAppearance.BorderColor = System.Drawing.Color.Silver; - this.btnNext.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnNext.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnNext.Location = new System.Drawing.Point(199, 0); - this.btnNext.Margin = new System.Windows.Forms.Padding(3, 0, 3, 0); - this.btnNext.Name = "btnNext"; - this.btnNext.Size = new System.Drawing.Size(22, 22); - this.btnNext.TabIndex = 370; - this.btnNext.Text = ">"; - this.btnNext.UseCompatibleTextRendering = true; - this.btnNext.UseVisualStyleBackColor = false; - this.btnNext.Click += new System.EventHandler(this.btnNext_Click); - // - // lblCurrentPage - // - this.lblCurrentPage.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.lblCurrentPage.AutoSize = true; - this.lblCurrentPage.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); - this.lblCurrentPage.Location = new System.Drawing.Point(184, 0); - this.lblCurrentPage.Margin = new System.Windows.Forms.Padding(0); - this.lblCurrentPage.Name = "lblCurrentPage"; - this.lblCurrentPage.Size = new System.Drawing.Size(12, 21); - this.lblCurrentPage.TabIndex = 339; - this.lblCurrentPage.Text = "1"; - this.lblCurrentPage.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.lblCurrentPage.UseCompatibleTextRendering = true; - // - // btnPrev - // - this.btnPrev.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.btnPrev.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.btnPrev.FlatAppearance.BorderColor = System.Drawing.Color.Silver; - this.btnPrev.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnPrev.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnPrev.Location = new System.Drawing.Point(159, 0); - this.btnPrev.Margin = new System.Windows.Forms.Padding(3, 0, 3, 0); - this.btnPrev.Name = "btnPrev"; - this.btnPrev.Size = new System.Drawing.Size(22, 22); - this.btnPrev.TabIndex = 369; - this.btnPrev.Text = "<"; - this.btnPrev.UseCompatibleTextRendering = true; - this.btnPrev.UseVisualStyleBackColor = false; - this.btnPrev.Click += new System.EventHandler(this.btnPrev_Click); - // - // lblPage1 - // - this.lblPage1.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.lblPage1.AutoSize = true; - this.lblPage1.Cursor = System.Windows.Forms.Cursors.Hand; - this.lblPage1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.lblPage1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); - this.lblPage1.Location = new System.Drawing.Point(120, 0); - this.lblPage1.Margin = new System.Windows.Forms.Padding(0); - this.lblPage1.Name = "lblPage1"; - this.lblPage1.Size = new System.Drawing.Size(36, 21); - this.lblPage1.TabIndex = 334; - this.lblPage1.Text = "第1页"; - this.lblPage1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.lblPage1.UseCompatibleTextRendering = true; - this.lblPage1.Click += new System.EventHandler(this.lblPage1_Click); - // - // AutoRefcheckBox - // - this.AutoRefcheckBox.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.AutoRefcheckBox.AutoSize = true; - this.AutoRefcheckBox.Checked = true; - this.AutoRefcheckBox.CheckState = System.Windows.Forms.CheckState.Checked; - this.AutoRefcheckBox.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.AutoRefcheckBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.AutoRefcheckBox.Location = new System.Drawing.Point(50, 0); - this.AutoRefcheckBox.Margin = new System.Windows.Forms.Padding(0); - this.AutoRefcheckBox.Name = "AutoRefcheckBox"; - this.AutoRefcheckBox.Size = new System.Drawing.Size(70, 22); - this.AutoRefcheckBox.TabIndex = 372; - this.AutoRefcheckBox.Text = "自动刷屏"; - this.AutoRefcheckBox.UseCompatibleTextRendering = true; - this.AutoRefcheckBox.UseVisualStyleBackColor = true; - this.AutoRefcheckBox.CheckedChanged += new System.EventHandler(this.AutoRefcheckBox_CheckedChanged); - // - // canUpColumn - // - this.canUpColumn.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.canUpColumn.HeaderText = "全选"; - this.canUpColumn.Name = "canUpColumn"; - this.canUpColumn.ReadOnly = true; - this.canUpColumn.Width = 60; - // - // showedColumn - // - this.showedColumn.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.showedColumn.HeaderText = "可用"; - this.showedColumn.Name = "showedColumn"; - this.showedColumn.ReadOnly = true; - this.showedColumn.Width = 52; - // - // explodeColumn - // - this.explodeColumn.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.explodeColumn.HeaderText = "高级"; - this.explodeColumn.Name = "explodeColumn"; - this.explodeColumn.ReadOnly = true; - this.explodeColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.explodeColumn.Width = 52; - // - // BuyAPIColumn - // - this.BuyAPIColumn.HeaderText = "购买API"; - this.BuyAPIColumn.Name = "BuyAPIColumn"; - this.BuyAPIColumn.ReadOnly = true; - this.BuyAPIColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.BuyAPIColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - // - // dataGridViewCheckBoxColumn1 - // - this.dataGridViewCheckBoxColumn1.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.dataGridViewCheckBoxColumn1.HeaderText = "全选"; - this.dataGridViewCheckBoxColumn1.Name = "dataGridViewCheckBoxColumn1"; - this.dataGridViewCheckBoxColumn1.ReadOnly = true; - this.dataGridViewCheckBoxColumn1.Width = 60; - // - // dataGridViewCheckBoxColumn2 - // - this.dataGridViewCheckBoxColumn2.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.dataGridViewCheckBoxColumn2.HeaderText = "可用"; - this.dataGridViewCheckBoxColumn2.Name = "dataGridViewCheckBoxColumn2"; - this.dataGridViewCheckBoxColumn2.ReadOnly = true; - this.dataGridViewCheckBoxColumn2.Width = 52; - // - // dataGridViewCheckBoxColumn3 - // - this.dataGridViewCheckBoxColumn3.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.dataGridViewCheckBoxColumn3.HeaderText = "高级"; - this.dataGridViewCheckBoxColumn3.Name = "dataGridViewCheckBoxColumn3"; - this.dataGridViewCheckBoxColumn3.ReadOnly = true; - this.dataGridViewCheckBoxColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewCheckBoxColumn3.Width = 52; - // - // dataGridViewLinkColumn1 - // - this.dataGridViewLinkColumn1.HeaderText = "购买API"; - this.dataGridViewLinkColumn1.Name = "dataGridViewLinkColumn1"; - this.dataGridViewLinkColumn1.ReadOnly = true; - this.dataGridViewLinkColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewLinkColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - // - // shopNameColumnx - // - this.shopNameColumnx.HeaderText = "店铺"; - this.shopNameColumnx.Name = "shopNameColumnx"; - this.shopNameColumnx.ReadOnly = true; - this.shopNameColumnx.Width = 110; - // - // nameColumn - // - this.nameColumn.HeaderText = "店铺名"; - this.nameColumn.Name = "nameColumn"; - this.nameColumn.ReadOnly = true; - // - // catNameColumnx - // - this.catNameColumnx.HeaderText = "分类"; - this.catNameColumnx.Name = "catNameColumnx"; - this.catNameColumnx.ReadOnly = true; - this.catNameColumnx.Visible = false; - this.catNameColumnx.Width = 67; - // - // upCountColumn - // - this.upCountColumn.HeaderText = "上传"; - this.upCountColumn.Name = "upCountColumn"; - this.upCountColumn.ReadOnly = true; - this.upCountColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; - this.upCountColumn.Width = 52; - // - // productCountColumn - // - this.productCountColumn.HeaderText = "商品数量"; - this.productCountColumn.Name = "productCountColumn"; - this.productCountColumn.ReadOnly = true; - this.productCountColumn.Width = 80; - // - // messageColumnx - // - this.messageColumnx.HeaderText = "消息"; - this.messageColumnx.Name = "messageColumnx"; - this.messageColumnx.ReadOnly = true; - this.messageColumnx.Visible = false; - this.messageColumnx.Width = 80; - // - // APIColumn - // - this.APIColumn.HeaderText = "API状态"; - this.APIColumn.Name = "APIColumn"; - this.APIColumn.ReadOnly = true; - this.APIColumn.Width = 80; - // - // ServiceEndTimeColumn - // - this.ServiceEndTimeColumn.HeaderText = "API到期时间"; - this.ServiceEndTimeColumn.Name = "ServiceEndTimeColumn"; - this.ServiceEndTimeColumn.ReadOnly = true; - this.ServiceEndTimeColumn.Width = 110; - // - // EndTimeColumn - // - this.EndTimeColumn.HeaderText = "元宝到期时间"; - this.EndTimeColumn.Name = "EndTimeColumn"; - this.EndTimeColumn.ReadOnly = true; - this.EndTimeColumn.Width = 120; - // - // shopRemarkColumn - // - this.shopRemarkColumn.HeaderText = "备注"; - this.shopRemarkColumn.Name = "shopRemarkColumn"; - this.shopRemarkColumn.ReadOnly = true; - // - // dataGridViewTextBoxColumn1 - // - this.dataGridViewTextBoxColumn1.HeaderText = "店铺"; - this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1"; - this.dataGridViewTextBoxColumn1.ReadOnly = true; - this.dataGridViewTextBoxColumn1.Width = 110; - // - // dataGridViewTextBoxColumn2 - // - this.dataGridViewTextBoxColumn2.HeaderText = "店铺名"; - this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2"; - this.dataGridViewTextBoxColumn2.ReadOnly = true; - // - // dataGridViewTextBoxColumn3 - // - this.dataGridViewTextBoxColumn3.HeaderText = "分类"; - this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3"; - this.dataGridViewTextBoxColumn3.ReadOnly = true; - this.dataGridViewTextBoxColumn3.Visible = false; - this.dataGridViewTextBoxColumn3.Width = 67; - // - // dataGridViewTextBoxColumn4 - // - this.dataGridViewTextBoxColumn4.HeaderText = "上传"; - this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4"; - this.dataGridViewTextBoxColumn4.ReadOnly = true; - this.dataGridViewTextBoxColumn4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; - this.dataGridViewTextBoxColumn4.Width = 52; - // - // dataGridViewTextBoxColumn5 - // - this.dataGridViewTextBoxColumn5.HeaderText = "商品数量"; - this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5"; - this.dataGridViewTextBoxColumn5.ReadOnly = true; - this.dataGridViewTextBoxColumn5.Width = 80; - // - // dataGridViewTextBoxColumn6 - // - this.dataGridViewTextBoxColumn6.HeaderText = "消息"; - this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6"; - this.dataGridViewTextBoxColumn6.ReadOnly = true; - this.dataGridViewTextBoxColumn6.Visible = false; - this.dataGridViewTextBoxColumn6.Width = 80; - // - // dataGridViewTextBoxColumn7 - // - this.dataGridViewTextBoxColumn7.HeaderText = "API状态"; - this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7"; - this.dataGridViewTextBoxColumn7.ReadOnly = true; - this.dataGridViewTextBoxColumn7.Width = 80; - // - // dataGridViewTextBoxColumn8 - // - this.dataGridViewTextBoxColumn8.HeaderText = "API到期时间"; - this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8"; - this.dataGridViewTextBoxColumn8.ReadOnly = true; - this.dataGridViewTextBoxColumn8.Width = 110; - // - // dataGridViewTextBoxColumn9 - // - this.dataGridViewTextBoxColumn9.HeaderText = "元宝到期时间"; - this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9"; - this.dataGridViewTextBoxColumn9.ReadOnly = true; - this.dataGridViewTextBoxColumn9.Width = 120; - // - // dataGridViewTextBoxColumn10 - // - this.dataGridViewTextBoxColumn10.HeaderText = "备注"; - this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10"; - this.dataGridViewTextBoxColumn10.ReadOnly = true; - // - // messageColumn - // - this.messageColumn.HeaderText = "状态"; - this.messageColumn.Name = "messageColumn"; - this.messageColumn.ReadOnly = true; - this.messageColumn.Width = 400; - // - // colFromFake - // - this.colFromFake.HeaderText = "来源"; - this.colFromFake.Name = "colFromFake"; - this.colFromFake.ReadOnly = true; - // - // fromColumn - // - this.fromColumn.HeaderText = "来源"; - this.fromColumn.Name = "fromColumn"; - this.fromColumn.ReadOnly = true; - this.fromColumn.Visible = false; - // - // prcieColumn - // - this.prcieColumn.HeaderText = "价格"; - this.prcieColumn.Name = "prcieColumn"; - this.prcieColumn.ReadOnly = true; - // - // titleColumn - // - this.titleColumn.HeaderText = "标题"; - this.titleColumn.Name = "titleColumn"; - this.titleColumn.ReadOnly = true; - this.titleColumn.Width = 120; - // - // shopNameColumn - // - this.shopNameColumn.HeaderText = "店铺名"; - this.shopNameColumn.Name = "shopNameColumn"; - this.shopNameColumn.ReadOnly = true; - this.shopNameColumn.Width = 60; - // - // productIdColumn - // - this.productIdColumn.FillWeight = 150F; - this.productIdColumn.HeaderText = "商品Id"; - this.productIdColumn.Name = "productIdColumn"; - this.productIdColumn.ReadOnly = true; - this.productIdColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.productIdColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.productIdColumn.Width = 120; - // - // idColumn - // - this.idColumn.HeaderText = "上家Id"; - this.idColumn.Name = "idColumn"; - this.idColumn.ReadOnly = true; - this.idColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.idColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.idColumn.Width = 95; - // - // dgvProduct - // - this.dgvProduct.AllowUserToAddRows = false; - this.dgvProduct.AllowUserToDeleteRows = false; - dataGridViewCellStyle4.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4; - this.dgvProduct.BackgroundColor = System.Drawing.Color.White; - this.dgvProduct.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dgvProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5; - this.dgvProduct.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgvProduct.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.idColumn, - this.productIdColumn, - this.shopNameColumn, - this.titleColumn, - this.prcieColumn, - this.fromColumn, - this.colFromFake, - this.messageColumn}); - this.dgvProduct.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvProduct.Location = new System.Drawing.Point(0, 0); - this.dgvProduct.Name = "dgvProduct"; - this.dgvProduct.ReadOnly = true; - dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvProduct.RowsDefaultCellStyle = dataGridViewCellStyle6; - this.dgvProduct.RowTemplate.Height = 23; - this.dgvProduct.Size = new System.Drawing.Size(755, 433); - this.dgvProduct.TabIndex = 7; - this.dgvProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvProduct_CellContentClick); - this.dgvProduct.RowsAdded += new System.Windows.Forms.DataGridViewRowsAddedEventHandler(this.dgvProduct_RowsAdded); - // - // UploadProductForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1110, 647); - this.Controls.Add(this.splitContainer1); - this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); - this.Name = "UploadProductForm"; - this.Text = "UploadProductForm"; - this.Load += new System.EventHandler(this.UploadProductForm_Load); - this.splitContainer1.Panel1.ResumeLayout(false); - this.splitContainer1.Panel1.PerformLayout(); - this.splitContainer1.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); - this.splitContainer1.ResumeLayout(false); - this.ucTabControlMetro1.ResumeLayout(false); - this.tabPage1.ResumeLayout(false); - this.tabPage1.PerformLayout(); - this.flowLayoutPanel2.ResumeLayout(false); - this.flowLayoutPanel2.PerformLayout(); - this.tabPage2.ResumeLayout(false); - this.tabPage2.PerformLayout(); - this.tabPage5.ResumeLayout(false); - this.tabPage5.PerformLayout(); - this.tabPage3.ResumeLayout(false); - this.tabPage3.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); - this.tabPage4.ResumeLayout(false); - this.tabPage4.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.Panel1.PerformLayout(); - this.splitContainer2.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); - this.splitContainer2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.dgvShop)).EndInit(); - this.splitContainer4.Panel1.ResumeLayout(false); - this.splitContainer4.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).EndInit(); - this.splitContainer4.ResumeLayout(false); - this.flowLayoutPanel1.ResumeLayout(false); - this.flowLayoutPanel1.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgvProduct)).EndInit(); - this.ResumeLayout(false); - - } - - #endregion - private System.Windows.Forms.SplitContainer splitContainer1; - private System.Windows.Forms.TextBox txtMultiple; - private System.Windows.Forms.TextBox txtPostage; - private System.Windows.Forms.ComboBox cmbPlusOrMinus; - private System.Windows.Forms.SplitContainer splitContainer2; - private System.Windows.Forms.DataGridViewCheckBoxColumn canUpColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn shopNameColumnx; - private System.Windows.Forms.DataGridViewTextBoxColumn nameColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn catNameColumnx; - private System.Windows.Forms.DataGridViewTextBoxColumn upCountColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn productCountColumn; - private System.Windows.Forms.DataGridViewCheckBoxColumn showedColumn; - private System.Windows.Forms.DataGridViewCheckBoxColumn explodeColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn messageColumnx; - private System.Windows.Forms.DataGridViewLinkColumn BuyAPIColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn APIColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn ServiceEndTimeColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn EndTimeColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn shopRemarkColumn; - private System.Windows.Forms.DataGridViewCheckBoxColumn dataGridViewCheckBoxColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5; - private System.Windows.Forms.DataGridViewCheckBoxColumn dataGridViewCheckBoxColumn2; - private System.Windows.Forms.DataGridViewCheckBoxColumn dataGridViewCheckBoxColumn3; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6; - private System.Windows.Forms.DataGridViewLinkColumn dataGridViewLinkColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn8; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn9; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn10; - private UserComponent.DataGridViewEx dgvShop; - private System.Windows.Forms.Label lblWaitUpload; - private System.Windows.Forms.Label countLabel; - private System.Windows.Forms.SplitContainer splitContainer3; - private UserControls.StatusBarUserControl statusBar; - private System.Windows.Forms.SplitContainer splitContainer4; - private System.Windows.Forms.Button btnGo; - private System.Windows.Forms.Button btnNext; - private System.Windows.Forms.Button btnPrev; - private System.Windows.Forms.Label lblPage1; - private System.Windows.Forms.Label lblTotalPage; - private System.Windows.Forms.Label label27; - private System.Windows.Forms.Label lblCurrentPage; - private System.Windows.Forms.Label label36; - private System.Windows.Forms.TextBox txtGoPage; - private System.Windows.Forms.CheckBox AutoRefcheckBox; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.TextBox beforPricetextBox; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label37; - private System.Windows.Forms.TextBox txtStockLessThanCount; - private System.Windows.Forms.CheckBox chkStockLessThan; - private System.Windows.Forms.CheckBox littleSkuCheckBox; - private System.Windows.Forms.TextBox txtSingleUpload; - private System.Windows.Forms.Label label26; - private System.Windows.Forms.Label label5; - private UserControls.ButtonEx btnUploadGood; - private UserControls.ButtonEx btnUpload; - private UserControls.ButtonEx buttonEx1; - private System.Windows.Forms.TextBox txtPhone; - private System.Windows.Forms.Label label4; - private UserControls.ButtonEx btnGetUpId; - private System.Windows.Forms.TextBox txtUpProduct; - private System.Windows.Forms.Label label29; - private System.Windows.Forms.ComboBox shopthreadCountTextBox; - private System.Windows.Forms.CheckBox chkFilterTitle; - private System.Windows.Forms.TextBox prefixTextBox; - private System.Windows.Forms.ComboBox comboBox1; - private UserControls.ButtonEx buttonEx4; - private System.Windows.Forms.CheckBox chkOnlyPostFree; - private System.Windows.Forms.Label label48; - private System.Windows.Forms.ComboBox cboHour; - private System.Windows.Forms.CheckBox chklogistime; - private System.Windows.Forms.Label label34; - private System.Windows.Forms.Label label32; - private System.Windows.Forms.TextBox lowPriceAddtextBox; - private System.Windows.Forms.TextBox lowPricePercenttextBox; - private System.Windows.Forms.CheckBox lowPricecheckBox; - private System.Windows.Forms.TextBox txtremark; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.CheckBox chkSaveToDraft; - private System.Windows.Forms.ComboBox comboBox5; - private System.Windows.Forms.CheckBox proxyCheckBox; - private System.Windows.Forms.CheckBox chkIsSetCommission; - private System.Windows.Forms.Label label18; - private System.Windows.Forms.CheckBox chkCustomStock; - private System.Windows.Forms.TextBox txtCustomStock; - private DevComponents.DotNetBar.PanelEx pnlShowError; - private UserControls.ButtonEx buttonEx2; - private System.Windows.Forms.CheckBox chkMultiUpload; - private UserControls.ButtonEx btnTest; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.TextBox txtRatio; - private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; - private System.Windows.Forms.CheckBox chkRandomMainImage; - private System.Windows.Forms.TextBox txtMinSku; - private System.Windows.Forms.CheckBox chkMinSku; - private System.Windows.Forms.CheckBox chkSaveToOffLine; - private System.Windows.Forms.CheckBox chkViolateCheck; - private PinBaoBao.UserControls.UcTabControlMetro ucTabControlMetro1; - private System.Windows.Forms.TabPage tabPage1; - private System.Windows.Forms.TabPage tabPage2; - private System.Windows.Forms.Label label13; - private System.Windows.Forms.Label label14; - private System.Windows.Forms.ComboBox cmbSendDayAfterPre; - private System.Windows.Forms.ComboBox cmbSendType; - private System.Windows.Forms.ComboBox cmbNewPreTime; - private System.Windows.Forms.Label lblNewPreTime; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.ComboBox cmbSendDay; - private System.Windows.Forms.Label sendTime; - private System.Windows.Forms.DateTimePicker endDateTimePicker; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label7; - private DevComponents.DotNetBar.PanelEx waitButton; - private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel2; - private DevComponents.DotNetBar.LabelX labelX1; - private DevComponents.DotNetBar.PanelEx btnSetTitleFilter; - private DevComponents.DotNetBar.PanelEx btnSetViolateCheck; - private System.Windows.Forms.TextBox txtMultiple2; - private System.Windows.Forms.TextBox txtPostage2; - private DevComponents.DotNetBar.LabelX lblFromTo; - private DevComponents.DotNetBar.LabelX lblFromTo2; - private System.Windows.Forms.ComboBox cmbPlusOrMinus2; - private System.Windows.Forms.CheckBox chkRoundPrice; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.CheckBox chkFuzzyMatching; - private System.Windows.Forms.TextBox txtProductBrand; - private System.Windows.Forms.Label label15; - private System.Windows.Forms.TabPage tabPage3; - private System.Windows.Forms.Label label22; - private System.Windows.Forms.Label label21; - private System.Windows.Forms.Label label20; - private System.Windows.Forms.CheckBox chkUseGlobalQualifications; - private System.Windows.Forms.TextBox txt食品生产许可证编号; - private System.Windows.Forms.Label label19; - private System.Windows.Forms.TextBox txt生产企业名称; - private System.Windows.Forms.TextBox txtBrand; - private System.Windows.Forms.Label label17; - private System.Windows.Forms.Label label16; - private DevComponents.DotNetBar.PanelEx btn上传质检报告; - private DevComponents.DotNetBar.PanelEx btn上传包装标签图; - private DevComponents.DotNetBar.PanelEx btn上传食品许可证; - private System.Windows.Forms.PictureBox pictureBox3; - private System.Windows.Forms.PictureBox pictureBox2; - private System.Windows.Forms.PictureBox pictureBox1; - private DevComponents.DotNetBar.PanelEx btn删除食品许可证; - private DevComponents.DotNetBar.PanelEx btn删除包装标签图; - private DevComponents.DotNetBar.PanelEx btn删除质检报告; - private System.Windows.Forms.ComboBox cmb7Day; - private System.Windows.Forms.ComboBox cmbDelMainPic; - private System.Windows.Forms.CheckBox chkDelMainPic; - private System.Windows.Forms.Label label23; - private System.Windows.Forms.Label label24; - private System.Windows.Forms.CheckBox chkDelFirstContentPic; - private DevComponents.DotNetBar.PanelEx btnSetBrandFilter; - private System.Windows.Forms.CheckBox chkFilterBrand; - private DevComponents.DotNetBar.PanelEx btnSetSkuFilter; - private System.Windows.Forms.CheckBox chkFilterSku; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopId; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopName; - private System.Windows.Forms.DataGridViewTextBoxColumn colUploadCount; - private System.Windows.Forms.DataGridViewTextBoxColumn colStatus; - private System.Windows.Forms.CheckBox chkSaveUploadFailed; - private DevComponents.DotNetBar.PanelEx btnSetTitleRemove; - private System.Windows.Forms.CheckBox chkFilterRemoveTitle; - private System.Windows.Forms.CheckBox chkFilterTMChaoShi; - private System.Windows.Forms.TabPage tabPage4; - private DevComponents.DotNetBar.PanelEx panelEx2; - private DevComponents.DotNetBar.PanelEx panelEx1; - private System.Windows.Forms.CheckBox checkBox2; - private System.Windows.Forms.CheckBox chkCustomCategory; - private System.Windows.Forms.CheckBox checkBox1; - private System.Windows.Forms.CheckBox chkShopFissionUpload; - private System.Windows.Forms.TabPage tabPage5; - private UserComponent.DataGridViewEx dgvProduct; - private System.Windows.Forms.DataGridViewLinkColumn idColumn; - private System.Windows.Forms.DataGridViewLinkColumn productIdColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn shopNameColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn titleColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn prcieColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn fromColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn colFromFake; - private System.Windows.Forms.DataGridViewTextBoxColumn messageColumn; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/Old/UploadProductForm.cs b/TEMUKJD/KJDForms/ProductForms/Old/UploadProductForm.cs deleted file mode 100644 index 3dc2b0b..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/UploadProductForm.cs +++ /dev/null @@ -1,2475 +0,0 @@ -using AllBase; -using AllBase.Helper; -using AllBase.Model.Param.UploadManage; -using AllBase.Model.Result; -using DevComponents.DotNetBar; -using TemuKJD.Extension; -using TemuKJD.KJDForms.BaseForms; -using TemuKJD.KJDForms.ToolForms; -using NaiBa.Util; -using NaiBa.Util.Extension; -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.IO; -using System.IO.Compression; -using System.Linq; -using System.Net; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; -using Work; -using Work.BLL.Upload; -using Work.CollectClass; -using Work.DouyinApiClass; -using Work.GoodDetail; - -namespace TemuKJD.KJDForms.ProductForms -{ - public partial class UploadProductForm : BaseForm - { - public static UploadProductForm instance = null; - public static List lstFissionPcb = new List(); // 数据净化的数据列表 - - public string formName = "商品发布"; - public static IeForm ieForm = new IeForm(); - public List lstCommissionAddResult; // 添加佣金商品的列表 - - public string failedUploadFileName = "上货失败文件备份" + DateTime.Now.ToString("yyyyMMddHHmmss") + ".txt"; - - public UploadProductForm() - { - InitializeComponent(); - - lstCommissionAddResult = NaiBa.Util.Helper.ConfigHelper.LoadConfig>("upload_commission_list"); - if (lstCommissionAddResult == null) - lstCommissionAddResult = new List(); - - this.ucTabControlMetro1.TabPages.Remove(tabPage4); - } - - private void UploadProductForm_Load(object sender, EventArgs e) - { - instance = this; - - // 加载所有全局属性和资质 - UploadProductBLL.sGlobalPropList = NaiBa.Util.Helper.ConfigHelper.LoadConfig>("global_prop_list"); - if (UploadProductBLL.sGlobalPropList == null) - UploadProductBLL.sGlobalPropList = new List(); - UploadProductBLL.sGlobalQualifications = NaiBa.Util.Helper.ConfigHelper.LoadConfig>("global_qualifications"); - if (UploadProductBLL.sGlobalQualifications == null) - UploadProductBLL.sGlobalQualifications = new List(); - this.txtBrand.TextChanged -= this.txtBrand_TextChanged; - this.txt生产企业名称.TextChanged -= this.txt生产企业名称_TextChanged; - this.txt食品生产许可证编号.TextChanged -= this.txt食品生产许可证号_TextChanged; - this.txtBrand.Text = UploadProductBLL.sGlobalPropList.Find(p => p.Key == "品牌")?.Value + ""; - this.txt生产企业名称.Text = UploadProductBLL.sGlobalPropList.Find(p => p.Key == "生产企业名称")?.Value + ""; - this.txt食品生产许可证编号.Text = UploadProductBLL.sGlobalPropList.Find(p => p.Key == "食品生产许可证编号")?.Value + ""; - var pic1 = UploadProductBLL.sGlobalQualifications.Find(q => q.quality_name == "食品生产许可证")?.quality_attachments.FirstOrDefault().url; - if (pic1 != null) - try { this.pictureBox1.Load(pic1); } - catch (Exception ex) { BaseMsgForm.ShowError("食品生产许可证:" + ex.Message); } - var pic2 = UploadProductBLL.sGlobalQualifications.Find(q => q.quality_name == "包装标签图")?.quality_attachments.FirstOrDefault().url; - if (pic2 != null) - try { this.pictureBox2.Load(pic2); } - catch (Exception ex) { BaseMsgForm.ShowError("包装标签图:" + ex.Message); } - var pic3 = UploadProductBLL.sGlobalQualifications.Find(q => q.quality_name == "质检报告")?.quality_attachments.FirstOrDefault().url; - if (pic3 != null) - try { this.pictureBox3.Load(pic3); } - catch (Exception ex) { BaseMsgForm.ShowError("质检报告:" + ex.Message); } - - this.txt食品生产许可证编号.TextChanged += this.txt食品生产许可证号_TextChanged; - this.txt生产企业名称.TextChanged += this.txt生产企业名称_TextChanged; - this.txtBrand.TextChanged += this.txtBrand_TextChanged; - //this.ucTabControlMetro1.TabPages.RemoveAt(2); - -#if DEBUG - this.cmbSendType.Items.Add("现货-预售"); - this.cmbSendType.Items.Add("新预售"); - //this.chkSaveToOffLine.Visible = true; -#endif - chkMultiUpload_CheckedChanged(null, null); - - LoadShops(); - GetUploadParam(); - Task.Run(() => - { - LoadStock(); - - ImportFromFission(lstFissionPcb); - lstFissionPcb.Clear(); - }); - txtMultiple_TextChanged(null, null); - txtMultiple2_TextChanged(null, null); - txtPostage_TextChanged(null, null); - txtPostage2_TextChanged(null, null); - proxyCheckBox_CheckedChanged(null, null); - lowPricecheckBox_CheckedChanged(null, null); - lowPricePercenttextBox_TextChanged(null, null); - lowPriceAddtextBox_TextChanged(null, null); - new Thread(RefreshIeForm).Start(); - this.dgvShop.AddSelectorColumn("colSelect"); - this.cmb7Day.SelectedIndex = 2; - ReadUrlImage(); - InitCommissionCef(); - } - - - private void ReadUrlImage() - { - try - { - if (FileBase.Exists("temp/imageUrl.txt")) - { - UploadProductBLL.baseImageUrl = FileBase.ReadAllText("temp/imageUrl.txt").Trim(); - } - } - catch (Exception) - { - - throw; - } - } - public void LoadShops() - { - for (int i = 0; i < GlobalConfig.ShopLoginList.Count; i++) - { - var shop = GlobalConfig.ShopLoginList[i]; - dgvShop.Rows.Add(false, shop.ShopId, shop.ShopAccount, 0, shop.LoginStatus); - } - } - public void RefreshIeForm() - { - while (true) - { - try - { - if (!string.IsNullOrEmpty(BaseClass.IeUrlShow)) - { - Invoke(new Action(() => - { - if (IeForm.IsShowIeForm) - { - IeForm VerfyForm = new IeForm(); - VerfyForm.Url = BaseClass.IeUrlShow; - BaseClass.IeUrlShow = ""; - VerfyForm.Text = "淘宝验证窗口"; - VerfyForm.ShowDialog(); - } - })); - } - - if (UploadProductBLL.IsNoToken) - { - Invoke(new Action(() => - { - TokenNewForm tokenForm = new TokenNewForm(); - tokenForm.ShowDialog(); - if (PinduoduoProductCollect.PinDuoDuoTokenList.Where(to => to.ProductDetailStatus == 1).ToList().Count == 0) - { - UploadProductBLL.IsNoToken = false; - } - })); - } - } - catch - { - } - Thread.Sleep(10); - } - } - - bool isRunning = false; - - private void btnUpload_Click(object sender, EventArgs e) - { - if (isRunning) - return; - - SaveUploadParam(); - - failedUploadFileName = "上货失败文件备份" + DateTime.Now.ToString("yyyyMMddHHmmss") + ".txt"; - - if (string.IsNullOrEmpty(txtPhone.Text)) - { - BaseMsgForm.ShowError("请输入客服电话号码!", "上传提醒", FormLevel.MEDIUM); - return; - } - //if (TaobaoMobileCollect.CookiesDic.Count == 0 && UploadProductBLL.ProductStock.Exists(s => s.FromType == "淘宝")) - //{ - // BaseMsgForm.ShowInfo("为了正常上传,请登录淘宝买手号", "提示"); - // ieForm.Show(); - // ieForm.WindowState = FormWindowState.Normal; - // ieForm.Activate(); - // return; - //} - - string delayType = cmbSendType.SelectedItem.ToString(); - if (delayType == "现货发货") - UploadProductBLL.delayType = "0"; - if (delayType == "预售发货") - UploadProductBLL.delayType = "1"; - if (delayType == "阶梯发货") - UploadProductBLL.delayType = "2"; - if (delayType == "现货-预售") - UploadProductBLL.delayType = "3"; - if (delayType == "新预售") - UploadProductBLL.delayType = "4"; - UploadProductBLL.newPreTime = cmbNewPreTime.SelectedItem.ToString(); - string sendDay = this.cmbSendDay.SelectedItem.ToString(); - if (sendDay == "24") - UploadProductBLL.sendDay = "1"; - if (sendDay == "48") - UploadProductBLL.sendDay = "2"; - - UploadProductBLL.isRandomMainImage = chkRandomMainImage.Checked; - UploadProductBLL.isDraft = chkSaveToDraft.Checked; - UploadProductBLL.IsFilterTitleWord = chkFilterTitle.Checked; - UploadProductBLL.IsFilterRemoveTitleWord = chkFilterRemoveTitle.Checked; - UploadProductBLL.IsFilterSkuWord = chkFilterSku.Checked; - UploadProductBLL.IsFilterBrandWord = chkFilterBrand.Checked; - UploadProductBLL.IsFilterTMChaoShi = chkFilterTMChaoShi.Checked; - - UploadProductBLL.isCustomStock = chkCustomStock.Checked; - UploadProductBLL.skuCustomStock = int.Parse(txtCustomStock.Text); - - if (!string.IsNullOrEmpty(txtMinSku.Text)) - UploadProductBLL.minSkuStock = int.Parse(txtMinSku.Text); - UploadProductBLL.isMinSkuStock = chkMinSku.Checked; - - UploadProductBLL.isMultiUpload = chkMultiUpload.Checked; - //UploadProductBLL.isShopFissionUpload = chkShopFissionUpload.Checked; - - if (delayType == "预售发货") - { - DateTime endDate; - DateTime.TryParse(this.endDateTimePicker.Text + " 23:59:59", out endDate); - if ((endDate - DateTime.Now).TotalDays < 2) - { - MessageBox.Show("预售时间不能早于当前时间加2天"); - return; - } - if ((endDate - DateTime.Now).TotalDays > 30) - { - MessageBox.Show("无法设置,预售时间超过设置范围,最大30天"); - return; - } - UploadProductBLL.preEndTime = endDate.ToString("yyyy-MM-dd HH:mm:ss"); - } - UploadProductBLL.endDay = cmbSendDayAfterPre.SelectedItem.ToString(); - UploadProductBLL.recommend_remark = txtremark.Text; - SetButtonCanNotUse(); - isRunning = true; - UploadProductBLL.ids = dgvShop.Rows.Cast() - .Where(r1 => r1.Cells["colSelect"].Value.ToString().ToLower() == "true") - .Select(r2 => r2.Cells["colShopId"].Value?.ToString()).ToList(); - UploadProductBLL.isSaveToOffLine = this.chkSaveToOffLine.Checked; - UploadProductBLL.IsUseGlobalQualifications = this.chkUseGlobalQualifications.Checked; - UploadProductBLL.supply_7day_return = this.cmb7Day.SelectedIndex.ToString(); - - UploadProductBLL.isViolateCheck = this.chkViolateCheck.Checked; - UploadProductBLL.isRoundPrice = this.chkRoundPrice.Checked; - UploadProductBLL.productBrand = this.txtProductBrand.Text.Trim(); - - UploadProductBLL.IsDelMainPic = this.chkDelMainPic.Checked; - UploadProductBLL.DelMainPicId = this.cmbDelMainPic.Text.ParseToInt(); - UploadProductBLL.IsDelFirstContentPic = this.chkDelFirstContentPic.Checked; - - UploadPropertyBLL.IsFuzzyMatching = this.chkFuzzyMatching.Checked; - - UploadProductBLL.phone = txtPhone.Text; - - foreach (var shop in GlobalConfig.ShopLoginList) - { - shop.CanUpload = shop.LoginStatus == "登录成功" && shop.ApiAuthStatus == "授权成功"; - } - - Task.Run(() => - { - Upload(); - isRunning = false; - Invoke(new Action(() => - { - SetButtonCanUse(1); - })); - }); - } - - public void Upload() - { - if (UploadProductBLL.isMultiUpload) - { - UploadProductBLL.ProductStockTemp.Clear(); - for (int i = 0; i < UploadProductBLL.ProductStock.Count; i++) - { - UploadProductBLL.ProductStockTemp.Add(UploadProductBLL.ProductStock[i]); - } - } - List ts = new List(); - for (int i = 0; i < GlobalConfig.ShopLoginList.Count; i++) - { - var shop = GlobalConfig.ShopLoginList[i]; - if (!UploadProductBLL.ids.Any(id => id == shop.ShopId) || shop.ApiAuthStatus != "授权成功") - continue; - if (UploadProductBLL.isMultiUpload) - Threadx.ThreadListWait(ref ts, new Thread(GetMulti), UploadProductBLL.ShopThreadCount, shop); - else - Threadx.ThreadListWait(ref ts, new Thread(Get), UploadProductBLL.ShopThreadCount, shop); - Thread.Sleep(1000); - } - Threadx.ThreadListWait(ref ts); - isRunning = false; - } - public void SetButtonCanNotUse() - { - btnUploadGood.Enabled = false; - } - public void SetButtonCanUse(int waitSecond = 5) - { - Task.Run(() => - { - Thread.Sleep(1000 * waitSecond); - Invoke(new Action(() => - { - btnUploadGood.Enabled = true; - })); - }); - } - - public void Get(object shop) - { - var Shop = shop as ShopLoginInfo; - var bll = new UploadProductBLL(formName, Shop); - bll.productHandler = RefreshGridView; - bll.noticeHandler = RefreshLog; - bll.remainHandler = ReMain; - bll.UploadProduct(); - } - /// - /// 分裂上传(一件商品传到所有店铺) - /// - /// - public void GetMulti(object shop) - { - var Shop = shop as ShopLoginInfo; - var bll = new UploadProductBLL(formName, Shop); - bll.productHandler = RefreshGridView; - bll.noticeHandler = RefreshLog; - bll.remainHandler = ReMain; - bll.UploadProductMulti(); - } - - public void RefreshGridView(TaobaoProductBase p) - { - // 佣金设置 - if (p != null && uploadParam.isSetCommission && !lstCommissionAddResult.Any(g => g.ProductId == p?.GoodsId)) - { - UploadCommissionParam comm = new UploadCommissionParam(); - comm.ProductId = p.GoodsId; - comm.ShopName = p.ShopName; - comm.Rate = uploadParam.commissionRatio; - lstCommissionAddResult.Add(comm); - NaiBa.Util.Helper.ConfigHelper.SaveConfig("upload_commission_list", lstCommissionAddResult); - } - - // 上货成功后显示到列表 - this.Invoke(new Action(() => - { - //dgvProduct.Rows.Add(p.FromIdBak > 0 ? p.FromIdBak : p.FromId, p.GoodsId, p.ShopName, p.Titlte, p.Price / 100, p.FromType, p.Message); - totalPage = (int)Math.Ceiling((double)UploadProductBLL.ProductTemp.Count / pageSize); - if (totalPage == 0) - totalPage = 1; - if (newCurrentPage != oldCurrentPage) - { - dgvProduct.Rows.Clear(); - oldCurrentPage = newCurrentPage; - } - if (newCurrentPage > totalPage) - newCurrentPage = totalPage; - if (newCurrentPage < 1) - newCurrentPage = 1; - if (totalPage > newCurrentPage && isNewPage) - newCurrentPage = totalPage; - this.lblCurrentPage.Text = newCurrentPage.ToString(); - this.lblTotalPage.Text = "共" + totalPage.ToString() + "页"; - - for (int num = (newCurrentPage - 1) * pageSize; num < (newCurrentPage - 1) * pageSize + pageSize; num++) - { - if (num >= UploadProductBLL.ProductTemp.Count) - break; - int i = num - (newCurrentPage - 1) * pageSize; - p = UploadProductBLL.ProductTemp[num]; - if (p == null) - continue; - //bool had = false; - if (dgvProduct.Rows.Count > i) - { - continue; - } - //dgvProduct.currentPage = (newCurrentPage - 1) * pageSize; - dgvProduct.Rows.Add(p.FromIdBak > 0 ? p.FromIdBak : p.FromId, p.GoodsId, p.ShopName, p.Titlte, p.Price / 100, p.FromType, "货源网", p.Message); - } - - if (p?.Message == "提交成功") - { - var row = dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopName"]?.Value?.ToString() == p.ShopName); - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopAccount == p.ShopName); - if (shop != null && row != null) - { - row.Cells["colUploadCount"].Value = shop.UploadCount; - } - } - else - { - if (uploadParam.isAutoSaveUploadFailedProduct) - { - var fileName = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory).Trim('\\') + "\\" + failedUploadFileName; - - var url = ""; - if (p.FromType == "淘宝") - url = "https://item.taobao.com/item.htm?id=" + p.FromId; - else if (p.FromType == "阿里巴巴") - url = "https://detail.1688.com/offer/" + p.FromId + ".html"; - else if (p.FromType == "微店") - url = "https://weidian.com/item.html?itemID=" + p.FromId; - else if (p.FromType == "京喜") - url = "https://item.m.jd.com/product/" + p.FromId + ".html"; - else if (p.FromType == "拼多多") - url = "http://mobile.yangkeduo.com/goods.html?goods_id=" + p.FromId; - else if (p.FromType == "抖音" || p.FromType == "") - url = "https://haohuo.jinritemai.com/views/product/detail?id=" + p.FromId; - FileBase.AppendAllText(fileName, url + "====" + p.ShopName + "====" + p.Message + "\r\n"); - } - } - })); - } - - public void RefreshLog(string message) - { - Task.Run(() => - { - if (this.Created) - { - this.Invoke(new Action(() => - { - this.statusBar.lblTaskStatus.Text = message; - this.statusBar.pgbTaskProgress.Maximum = UploadProductBLL.maxCount; - this.statusBar.pgbTaskProgress.Value = UploadProductBLL.ProductTemp.Count; - this.statusBar.pgbTaskProgress.Text = UploadProductBLL.ProductTemp.Count + "/" + UploadProductBLL.maxCount; - })); - } - }); - } - - public void ReMain() - { - this.Invoke(new Action(() => - { - // 显示剩下未上货商品数量 - if (UploadProductBLL.isMultiUpload && UploadProductBLL.MultiUploadRestCount > -1) - countLabel.Text = UploadProductBLL.MultiUploadRestCount + "个"; - else - countLabel.Text = UploadProductBLL.ProductStock.Count + "个"; - })); - } - - private void txtMultiple_TextChanged(object sender, EventArgs e) - { - if (txtMultiple.Text == "-") - return; - try - { - if (!string.IsNullOrEmpty(txtMultiple.Text)) - { - var multiple = decimal.Parse(txtMultiple.Text); - - //把倍数变成百分比 - UploadProductBLL.addMultiple = multiple * 100 - 100; - if (UploadProductBLL.addMultiple > UploadProductBLL.addMultiple2) - { - UploadProductBLL.addMultiple2 = UploadProductBLL.addMultiple; - this.txtMultiple2.Text = "" + ((UploadProductBLL.addMultiple2 + 100m) / 100); - } - } - } - catch - { - } - } - - private void txtMultiple2_TextChanged(object sender, EventArgs e) - { - if (txtMultiple2.Text == "-") - return; - try - { - if (!string.IsNullOrEmpty(txtMultiple2.Text)) - { - var multiple2 = decimal.Parse(txtMultiple2.Text); - - //把倍数变成百分比 - UploadProductBLL.addMultiple2 = multiple2 * 100 - 100; - if (UploadProductBLL.addMultiple2 < UploadProductBLL.addMultiple) - { - UploadProductBLL.addMultiple = UploadProductBLL.addMultiple2; - this.txtMultiple.Text = "" + ((UploadProductBLL.addMultiple + 100m) / 100); - } - } - } - catch - { - } - } - - private void txtPostage_TextChanged(object sender, EventArgs e) - { - if (txtPostage.Text == "-") - return; - try - { - if (!string.IsNullOrEmpty(txtPostage.Text)) - UploadProductBLL.postage = decimal.Parse(txtPostage.Text); - if (cmbPlusOrMinus.SelectedItem.ToString() != "+") - UploadProductBLL.postage = -UploadProductBLL.postage; - - if (UploadProductBLL.postage > UploadProductBLL.postage2) - { - UploadProductBLL.postage2 = UploadProductBLL.postage; - this.txtPostage2.Text = UploadProductBLL.postage2.ToString().Trim('-'); - if (UploadProductBLL.postage2.ToString().Contains("-")) - cmbPlusOrMinus2.SelectedItem = "-"; - else - cmbPlusOrMinus2.SelectedItem = "+"; - } - } - catch - { - } - } - - private void txtPostage2_TextChanged(object sender, EventArgs e) - { - if (txtPostage2.Text == "-") - return; - try - { - if (!string.IsNullOrEmpty(txtPostage2.Text)) - UploadProductBLL.postage2 = decimal.Parse(txtPostage2.Text); - if (cmbPlusOrMinus2.SelectedItem.ToString() != "+") - UploadProductBLL.postage2 = -UploadProductBLL.postage2; - - if (UploadProductBLL.postage2 < UploadProductBLL.postage) - { - UploadProductBLL.postage = UploadProductBLL.postage2; - this.txtPostage.Text = UploadProductBLL.postage.ToString().Trim('-'); - if (UploadProductBLL.postage.ToString().Contains("-")) - cmbPlusOrMinus.SelectedItem = "-"; - else - cmbPlusOrMinus.SelectedItem = "+"; - } - } - catch - { - } - } - - private void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - //string name = dgvShop.Columns[e.ColumnIndex].HeaderText; - string colId = dgvShop.Columns[e.ColumnIndex].Name; - long shopId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToLong(); - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId.ToString()); - if (colId == "colSelect") - { - bool canUse = shop?.ApiAuthStatus == "授权成功" && shop?.LoginStatus == "登录成功"; - if (!canUse) - { - BaseMsgForm.ShowInfo("店铺未授权或未登录!"); - return; - } - bool ok = !bool.Parse(dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value.ToString()); - //string shopName = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ToString(); - dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value = ok; - //if (ok) - //{ - // UploadProductBLL.ids.Add(shopName); - //} - //else - //{ - // if (UploadProductBLL.ids.Select(id => id ==shopName).FirstOrDefault()) - // { - // UploadProductBLL.ids.Remove(shopName); - // } - //} - } - } - - #region 导入数据 - private async void button3_Click(object sender, EventArgs e) - { - btnUpload.Enabled = false; - OpenFileDialog fileDialog = new OpenFileDialog(); - fileDialog.Title = "选择文件"; - fileDialog.Filter = "All files (*.*)|*.*"; - fileDialog.FilterIndex = 1; - fileDialog.RestoreDirectory = true; - if (fileDialog.ShowDialog() != DialogResult.OK) - { - btnUpload.Enabled = true; - return; - } - await InputData(fileDialog.FileName); - btnUpload.Enabled = true; - } - public async Task InputData(string file) - { - await Task.Run(() => - { - string[] arrTmp = FileBase.ReadAllLines(file, GetFileEncoding(file)); - InputDataData(arrTmp); - }); - } - public async Task InputDataData(string[] arr) - { - bool message = false; - if (arr == null || arr.Length == 0) - return; - for (int i = 0; i < arr.Length; i++) - { - if (string.IsNullOrEmpty(arr[i])) - continue; - // 外部版暂时只支持拼多多上货 - if (!BaseClass.IsCloudBuyOrder && !arr[i].Contains("yangkeduo.com") && !arr[i].Contains("pinduoduo.com")) - continue; - string strTmp = arr[i]; - if (!(strTmp.Contains("detail.tmall") || strTmp.Contains("taobao.com") || strTmp.Contains("jinritemai.com") || strTmp.Contains("1688.com") || strTmp.Contains("weidian.com") || strTmp.Contains("jd.com"))) - { - try - { - if (!(strTmp.Contains("yangkeduo.com") || strTmp.Contains("pinduoduo.com"))) - strTmp = Md5Base.EncryptDecode(strTmp); - } - catch - { - continue; - } - } - if ((arr[i].Contains("淘宝") || arr[i].Contains("阿里巴巴")) && arr[i].Split(',').Length <= 7) - strTmp = arr[i]; - if (string.IsNullOrEmpty(strTmp)) - continue; - string lb = strTmp; - string sp = "-----"; - string url = strTmp, title = "", shop = "", catid = "", from = "", fid = ""; - string viname = "", viId = "", viPrice = "", viMPrice = ""; - if (strTmp.Contains("\",\"")) - { - var mm = BaseRegex.GetMatchRegex(strTmp, @"(.*?),""([\d]+)"",""([^""]+?)"",""([\d]+)"",""([\d]+)"",""([\d]+)"",""([\d]+)"",""([\d]+)"",""([-.\d]+%\+[-.\d]+)"",""([^""]+?)"""); - if (mm != null && mm.Count > 0) - { - from = mm[0].Groups[1].Value.Replace("\"", "").Replace("\"", ""); - fid = mm[0].Groups[2].Value; - title = mm[0].Groups[3].Value; - catid = mm[0].Groups[6].Value; - viname = mm[0].Groups[7].Value; - viId = mm[0].Groups[8].Value; - viPrice = mm[0].Groups[9].Value; - viMPrice = mm[0].Groups[10].Value; - goto End; - } - var m = BaseRegex.GetMatchRegex(strTmp, @"""([^""]+?)"",""([\d]+?)"",""([^""]+?)"",""([\d]+?)"",""([\d]+?)"",""([\d]+?)"",""([^""]+?)"",""([\d]+?)"",""([^""]+?)"""); - if (m.Count == 0) - m = BaseRegex.GetMatchRegex(strTmp, @"""([^""]+?)"",""([\d]+?)"",""([^""]+?)"",""([\d]+?)"",""([\d]+?)"",""([\d]+?)"""); - if (m != null && m.Count > 0) - { - from = m[0].Groups[1].Value; - fid = m[0].Groups[2].Value; - title = m[0].Groups[3].Value; - catid = m[0].Groups[6].Value; - viname = m[0].Groups[7].Value; - viId = m[0].Groups[8].Value; - viPrice = m[0].Groups[9].Value; - goto End; - } - } - - if (strTmp.Contains(sp)) - { - url = strTmp.Substring(0, strTmp.IndexOf(sp)); - strTmp = strTmp.Substring(strTmp.IndexOf(sp) + sp.Length); - title = strTmp; - } - if (title.Contains(sp)) - { - title = strTmp.Substring(0, strTmp.IndexOf(sp)); - strTmp = strTmp.Substring(strTmp.IndexOf(sp) + sp.Length); - shop = strTmp; - } - if (shop.Contains(sp)) - { - shop = strTmp.Substring(0, strTmp.IndexOf(sp)); - strTmp = strTmp.Substring(strTmp.IndexOf(sp) + sp.Length); - catid = BaseRegex.GetMatchRegexString(strTmp, @"([\d]+)"); - } - fid = BaseRegex.GetMatchRegexString(url, @"/([\d]+)\.html"); - if (string.IsNullOrEmpty(fid)) - fid = BaseRegex.GetMatchRegexString(url, @"goods_id=([\d]+)"); - if (string.IsNullOrEmpty(fid)) - fid = BaseRegex.GetMatchRegexString(url, @"id=([\d]+)"); - if (url.Contains(".taobao.com") || url.Contains(".tmall.com")) - from = "淘宝"; - if (url.Contains(".1688.com")) - from = "阿里巴巴"; - if (url.Contains("weidian.com")) - from = "微店"; - if (url.Contains("jd.com")) - from = "京喜"; - if (url.Contains("yangkeduo.com") || url.Contains("pinduoduo.com")) - from = "拼多多"; - if (url.Contains("jinritemai.com")) - from = "抖音"; - if (!lb.Contains("-----") && lb.Contains(@""",""")) - { - var m = BaseRegex.GetMatchRegex(ref lb, @"""(.*?)"",""([\d]+)"",""(.*?)"""); - if (m == null || m.Count <= 0) continue; - if (m.Count > 0) - { - from = m[0].Groups[1].Value; - fid = m[0].Groups[2].Value; - title = m[0].Groups[3].Value; - catid = ""; - } - } - End: - if (!string.IsNullOrEmpty(viname) && viname != "6" && viname != "1") - continue; - if (string.IsNullOrEmpty(fid) || string.IsNullOrEmpty(from)) - continue; - if (!string.IsNullOrEmpty(viPrice) && string.IsNullOrEmpty(viMPrice)) - { - if (!message) - { - MessageBox.Show("老格式数据已经不支持\r\n请升级采集程序,重新转化数据后导入新格式,重新转化速度会很快", "提示:老格式已经不支持"); - message = true; - } - continue; - } - if (BaseClass.UpIds.Count > 0) - { - bool ishas = false; - for (int j = 0; j < BaseClass.UpIds.Count; j++) - { - string rid = BaseRegex.GetMatchRegexString(BaseClass.UpIds[j], @"([\d]+)"); - if (string.IsNullOrEmpty(rid)) - continue; - if (fid == rid) - { - ishas = true; - break; - } - } - if (ishas) - continue; - } - TaobaoProductBase t = new TaobaoProductBase(); - long idx; - if (!long.TryParse(fid, out idx)) - continue; - t.TolerantFormId = fid; - t.FromId = idx; - t.ViGoodsName = viname; - long.TryParse(viId, out t.ViGoodsId); - t.ViPrice = viPrice; - t.FromType = from; - if (!string.IsNullOrEmpty(viMPrice)) - { - t.ViPriceMaxMin = viMPrice; - string[] strPrice = viMPrice.Split(':'); - if (strPrice.Length == 3) - { - t.ViPriceMin = (int)(decimal.Parse(strPrice[0]) * 100); - t.ViPriceMax = (int)(decimal.Parse(strPrice[1]) * 100); - t.ViExpressPrice = (int)(decimal.Parse(strPrice[2])); - } - } - t.Titlte = title.Replace("\",\"", ""); - - - if (!UploadProductBLL.ProductStock.Exists(p => p != null && p.FromId == t.FromId && p.Titlte == t.Titlte)) - { - UploadProductBLL.ProductStock.Add(t); - //if (t.MainCatId > 0) - DataBaseTemp.Add(t); - batchDataBaseTemp.Add(t); - if (batchDataBaseTemp.Count == 50) - { - AddListToDataBaseSingle(batchDataBaseTemp); - batchDataBaseTemp.Clear(); - } - } - ReMain(); - LogSave.Add(formName, strTmp + "正在被导入..."); - } - if (batchDataBaseTemp.Count > 0) - { - AddListToDataBaseSingle(batchDataBaseTemp); - batchDataBaseTemp.Clear(); - } - UploadProductBLL.maxCount = UploadProductBLL.ProductStock.Count; - LogSave.Add(formName, "已经成功导入!"); - } - public void AddListToDataBaseSingle(List temp) - { - for (int i = 0; i < temp.Count; i++) - { - AddbatchToDataBase(temp[i]); - } - SqliteHelper.BatchExecuteNonQuery(batchString); - batchString.Clear(); - } - public static void AddbatchToDataBase(TaobaoProductBase p) - { - string content = p.FromId + "," + p.FromType + "," + p.Titlte + "," + p.Cat1 + "," + p.Cat2 + "," + - p.Cat3 + "," + p.Cat4 + "," + p.CatId + "," + p.MainCatId + "," + p.MainCatName + "," + p.MainImage + "," + - p.Price + "," + p.SaleCount + "," + p.ShopName + "," + p.AddPrice; - if (!string.IsNullOrEmpty(p.ViGoodsName)) - content += "," + p.ViGoodsId + "," + p.ViGoodsName + "," + p.ViPrice + "," + p.ViPriceMaxMin; - - content = JsonHelper.SerializeObject(p); - string sql = "insert into Product(content,fromid) values('" + SqliteHelper.ReplaceSqlx(content) + "','" + p.guid + "')"; - batchString.Add(sql); - } - - public static List formIdlist = new List(); - /// - /// 加载缓存 - /// - public void LoadStock() - { - SqliteHelper.CreateProductTable(); - formIdlist.Clear(); - DataTable dt = SqliteHelper.ExecuteTable("select fromid,content from Product"); - for (int i = 0; dt != null && i < dt.Rows.Count; i++) - { - try - { - string s = dt.Rows[i]["content"].ToString(); - formIdlist.Add(dt.Rows[i]["fromid"].ToString()); - - TaobaoProductBase t = JsonHelper.DeserializeJsonToObject(s); - if (t != null && t.FromId != 0) - { - UploadProductBLL.ProductStock.Add(t); - ReMain(); - } - } - catch - { - } - - try - { - string s = dt.Rows[i]["content"].ToString(); - formIdlist.Add(dt.Rows[i]["fromid"].ToString()); - if (string.IsNullOrEmpty(s) || !s.Contains(",")) - continue; - string[] ll = s.Split(','); - if (ll.Length != 13 && ll.Length != 15 && ll.Length != 19) - continue; - - TaobaoProductBase t = new TaobaoProductBase(); - if (string.IsNullOrEmpty(ll[0])) - continue; - t.FromId = long.Parse(ll[0]); - t.FromType = ll[1]; - t.Titlte = ll[2].Replace("\",\"", ""); - t.Cat1 = int.Parse(ll[3]); - t.Cat2 = int.Parse(ll[4]); - t.Cat3 = int.Parse(ll[5]); - t.Cat4 = int.Parse(ll[6]); - t.CatId = int.Parse(ll[7]); - t.MainCatId = int.Parse(ll[8]); - t.MainCatName = ll[9]; - t.MainImage = int.Parse(ll[10]); - t.Price = decimal.Parse(ll[11]); - t.SaleCount = int.Parse(ll[12]); - t.guid = dt.Rows[i]["fromid"].ToString(); - if (ll.Length == 15 || ll.Length == 19) - { - t.ShopName = ll[13]; - t.AddPrice = int.Parse(ll[14]); - } - if (ll.Length > 15) - { - long.TryParse(ll[15], out t.ViGoodsId); - t.ViGoodsName = ll[16]; - t.ViPrice = ll[17]; - t.ViPriceMaxMin = ll[18]; - string[] strPrice = t.ViPriceMaxMin.Split(':'); - if (strPrice.Length == 3) - { - t.ViPriceMin = (int)(decimal.Parse(strPrice[0]) * 100); - t.ViPriceMax = (int)(decimal.Parse(strPrice[1]) * 100); - t.ViExpressPrice = (int)(decimal.Parse(strPrice[2])); - } - } - //if (t.ViGoodsName != "6") - // 临时开放转换淘宝 - //if (t.ViGoodsName != "6" && !((t.FromType == "淘宝" || t.FromType == "阿里巴巴") && string.IsNullOrEmpty(t.ViGoodsName))) - if (t.ViGoodsName != "6" && t.ViGoodsName != "1" && !((t.FromType == "淘宝" || t.FromType == "阿里巴巴" || t.FromType == "微店" || t.FromType == "京喜" || t.FromType == "抖音") && string.IsNullOrEmpty(t.ViGoodsName))) - continue; - UploadProductBLL.ProductStock.Add(t); - ReMain(); - //ProductTempStock.Add(t); - } - catch - { - } - } - } - public static List batchString = new List(); - public List DataBaseTemp = new List(); - public List batchDataBaseTemp = new List(); - public static System.Text.Encoding GetFileEncoding(string filename) - { - - using (var fs = new System.IO.FileStream(filename, System.IO.FileMode.Open, System.IO.FileAccess.Read)) - using (var br = new System.IO.BinaryReader(fs)) - { - var buffer = br.ReadBytes(2); - if (buffer[0] >= 0xEF) - { - if (buffer[0] == 0xEF && buffer[1] == 0xBB) - { - return System.Text.Encoding.UTF8; - } - - if (buffer[0] == 0xFE && buffer[1] == 0xFF) - { - return System.Text.Encoding.BigEndianUnicode; - } - - if (buffer[0] == 0xFF && buffer[1] == 0xFE) - { - return System.Text.Encoding.Unicode; - } - } - - return GetEncodingWithBomUtf8(fs, System.Text.Encoding.Default); - } - - } - private static System.Text.Encoding GetEncodingWithBomUtf8(Stream fs, Encoding defaultEncoding) - { - byte[] unicode = new byte[] { 0xFF, 0xFE, 0x41 }; - byte[] unicodeBig = new byte[] { 0xFE, 0xFF, 0x00 }; - - //带BOM - byte[] utf8 = new byte[] { 0xEF, 0xBB, 0xBF }; - var reVal = defaultEncoding; - - using (var r = new System.IO.BinaryReader(fs)) - { - byte[] ss = r.ReadBytes(4); - if (ss[0] == 0xFE && ss[1] == 0xFF && ss[2] == 0x00) - { - reVal = Encoding.BigEndianUnicode; - } - else if (ss[0] == 0xFF && ss[1] == 0xFE && ss[2] == 0x41) - { - reVal = Encoding.Unicode; - } - else - { - if (ss[0] == 0xEF && ss[1] == 0xBB && ss[2] == 0xBF) - { - reVal = Encoding.UTF8; - } - else - { - int i; - int.TryParse(fs.Length.ToString(), out i); - ss = r.ReadBytes(i); - - if (IsUtf8Bytes(ss)) - { - reVal = Encoding.UTF8; - } - } - } - - return reVal; - } - } - private static bool IsUtf8Bytes(byte[] data) - { - int charByteCounter = 1;  //计算当前正分析的字符应还有的字节数 - for (int i = 0; i < data.Length; i++) - { - var curByte = data[i]; //当前分析的字节. - if (charByteCounter == 1) - { - if (curByte >= 0x80) - { - //判断当前 - while (((curByte <<= 1) & 0x80) != 0) - { - charByteCounter++; - } - //标记位首位若为非0 则至少以2个1开始 如:110XXXXX...........1111110X  - if (charByteCounter == 1 || charByteCounter > 6) - { - return false; - } - } - } - else - { - //若是UTF-8 此时第一位必须为1 - if ((curByte & 0xC0) != 0x80) - { - return false; - } - charByteCounter--; - } - } - if (charByteCounter > 1) - { - throw new Exception("非预期的byte格式!"); - } - return true; - } - #endregion - - - - public bool isNewPage = true; - int oldCurrentPage = 0; - int newCurrentPage = 1; - int totalPage = 1; - int pageSize = 100; - private void btnPrev_Click(object sender, EventArgs e) - { - if (newCurrentPage == 1) - return; - newCurrentPage--; - RefreshGridView(null); - } - - private void btnNext_Click(object sender, EventArgs e) - { - if (totalPage == newCurrentPage) - return; - newCurrentPage++; - RefreshGridView(null); - } - - private void btnGo_Click(object sender, EventArgs e) - { - int.TryParse(txtGoPage.Text, out newCurrentPage); - RefreshGridView(null); - } - - private void lblPage1_Click(object sender, EventArgs e) - { - newCurrentPage = 1; - RefreshGridView(null); - } - - private void lblTotalPage_Click(object sender, EventArgs e) - { - newCurrentPage = totalPage; - RefreshGridView(null); - } - - private void button3_Click_1(object sender, EventArgs e) - { - UploadProductBLL.ProductTemp.Clear(); - TaobaoProductBase t = new TaobaoProductBase(); - t.FromId = 111; - UploadProductBLL.ProductTemp.Add(t); - RefreshGridView(t); - TaobaoProductBase t2 = new TaobaoProductBase(); - t2.FromId = 222; - UploadProductBLL.ProductTemp.Add(t2); - RefreshGridView(t); - TaobaoProductBase t3 = new TaobaoProductBase(); - t3.FromId = 333; - UploadProductBLL.ProductTemp.Add(t3); - RefreshGridView(t); - TaobaoProductBase t4 = new TaobaoProductBase(); - t4.FromId = 444; - UploadProductBLL.ProductTemp.Add(t4); - RefreshGridView(t); - TaobaoProductBase t5 = new TaobaoProductBase(); - t5.FromId = 555; - UploadProductBLL.ProductTemp.Add(t5); - RefreshGridView(t); - TaobaoProductBase t6 = new TaobaoProductBase(); - t6.FromId = 666; - UploadProductBLL.ProductTemp.Add(t6); - RefreshGridView(t); - } - - private void AutoRefcheckBox_CheckedChanged(object sender, EventArgs e) - { - if (AutoRefcheckBox.Checked && !isNewPage) - isNewPage = true; - if (!AutoRefcheckBox.Checked) - isNewPage = false; - if (AutoRefcheckBox.Checked && dgvProduct.Rows.Count > 0) - { - if (dgvProduct.CurrentCell.RowIndex >= dgvProduct.Rows.Count - 1)//若当前值不小于行号,则不执行后面代码 - { - return; - } - dgvProduct.CurrentCell = dgvProduct.Rows[dgvProduct.Rows.Count - 1].Cells[0]; - } - } - - private void button4_Click(object sender, EventArgs e) - { - if (BaseMsgForm.ShowConfirm("是否清除全部列表数据", "提示").DialogResult == DialogResult.OK) - { - dgvProduct.Rows.Clear(); - UploadProductBLL.ProductTemp.Clear(); - } - if (BaseMsgForm.ShowConfirm("是否清除全部备用上货数据", "提示").DialogResult == DialogResult.OK) - { - UploadProductBLL.ProductStock.Clear(); - UploadProductBLL.Delete(""); - ReMain(); - } - } - - private void beforPricetextBox_TextChanged(object sender, EventArgs e) - { - if (!string.IsNullOrEmpty(beforPricetextBox.Text)) - UploadProductBLL.beforPrice = decimal.Parse(beforPricetextBox.Text); - } - - private void chkStockLessThan_CheckedChanged(object sender, EventArgs e) - { - UploadProductBLL.isStockLessThan = chkStockLessThan.Checked; - } - - private void txtStockLessThanCount_TextChanged(object sender, EventArgs e) - { - if (!string.IsNullOrEmpty(txtStockLessThanCount.Text)) - UploadProductBLL.StockLessThanCount = decimal.Parse(txtStockLessThanCount.Text); - } - - private void littleSkuCheckBox_CheckedChanged(object sender, EventArgs e) - { - UploadProductBLL.isLitterSku = littleSkuCheckBox.Checked; - } - - private void txtSingleUpload_TextChanged(object sender, EventArgs e) - { - UploadProductBLL.MaxSingleShopUploadCount = int.Parse(txtSingleUpload.Text); - } - - private void button6_Click(object sender, EventArgs e) - { - GetBrandList(); - } - /// - /// 获取商品详情 - /// - public long GetBrandList() - { - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopAccount == "开箱小店"); - DouyinApi api = new DouyinApi(shop); - api.JsonData = new Dictionary(); - api.JsonData.Add("product_id", "3522394014194236398"); - api.JsonData.Add("show_draft", "false"); - string html = api.GetProductDetail(); - - GoodDetail good = null; - try - { - good = JsonConvert.DeserializeObject(html); - } - catch (Exception ex) - { - } - - int a = 0; - - var p = good.data; - Dictionary dictionary = new Dictionary(); - - - dictionary.Add("product_id", p.product_id.ToString()); - dictionary.Add("product_type", "0"); - int catid = 0; - var cat = p.category_detail; - if (cat.second_cid > 0) - catid = cat.second_cid; - if (cat.third_cid > 0) - catid = cat.third_cid; - if (cat.fourth_cid > 0) - catid = cat.fourth_cid; - dictionary.Add("category_leaf_id", catid.ToString()); - dictionary.Add("first_cid", p.first_cid.ToString()); - dictionary.Add("second_cid", p.second_cid.ToString()); - dictionary.Add("third_cid", p.third_cid.ToString()); - - string prop = p.product_format; - string propStr = ""; - //货号 | 8888 ^ 上市年份季节 | 2018年秋季 - var m = BaseRegex.GetMatchRegex(ref prop, @"""[\w\W]+?"":""[\w\W]+?"""); - for (int i = 0; m != null && i < m.Count; i++) - { - string item = m[i].Groups[0].Value.Replace(":", "|"); - propStr += item + "^"; - } - propStr = propStr.Replace("\"", ""); - dictionary.Add("product_format", propStr); - dictionary.Add("name", p.name); - dictionary.Add("recommend_remark", p.recommend_remark); - - var picStr = p.pic; - var pic = ""; - for (int i = 0; i < picStr.Count; i++) - { - if (pic.Trim() != "") - { - pic += "|"; - } - pic += picStr[i]; - } - dictionary.Add("pic", pic); - - - var description = p.description; - string contentImage = ""; - m = BaseRegex.GetMatchRegex(ref description, @"]*?src=[""'](.*?)[""']"); - if (m.Count == 0) - m = BaseRegex.GetMatchRegex(ref description, @"]*?>(.*?)"); - if (m.Count == 0) - m = BaseRegex.GetMatchRegex(ref description, @"]+?>(.*?)"); - for (int j = 0; j < m.Count; j++) - { - string urlImg = m[j].Groups[1].Value.Replace(".src", ""); - if (contentImage.Trim() != "") - { - contentImage += "|"; - } - if (!string.IsNullOrEmpty(urlImg)) - { - urlImg = m[j].Groups[1].Value.Replace(".src", ""); - } - contentImage += urlImg; - } - //商品描述,目前只支持图片。多张图片用 "|" 分开 - dictionary.Add("description", contentImage); - dictionary.Add("pay_type", p.pay_type.ToString()); - - dictionary.Add("market_price", p.market_price.ToString()); - dictionary.Add("discount_price", p.discount_price.ToString()); - //dictionary.Add("reduce_type", p.reduce_type.ToString()); - //dictionary.Add("assoc_ids", p.assoc_ids.ToString()); - //dictionary.Add("freight_id", p.freight_id.ToString()); - //dictionary.Add("weight", p.weight.ToString()); - //dictionary.Add("weight_unit", p.weight_unit.ToString()); - dictionary.Add("delivery_delay_day", "2"); - dictionary.Add("presell_type", p.presell_type.ToString()); - //dictionary.Add("presell_delay", p.presell_delay.ToString()); - //dictionary.Add("presell_end_time", p.presell_end_time.ToString()); - //dictionary.Add("supply_7day_return", p.supply_7day_return.ToString()); - - dictionary.Add("mobile", p.mobile.ToString()); - dictionary.Add("commit", "true"); - //dictionary.Add("brand_id", p.brand_id.ToString()); - //dictionary.Add("remark", p.remark.ToString()); - //dictionary.Add("quality_report", p.quality_report.ToString()); - //dictionary.Add("class_quality", p.class_quality.ToString()); - //dictionary.Add("class_quality", p.class_quality.ToString()); - //dictionary.Add("quality_list", p.quality_list.ToString()); - dictionary.Add("out_product_id", p.out_product_id.ToString()); - //dictionary.Add("spec_name", p.class_quality.ToString()); - - var specs = p.specs; - string specsStr = ""; - for (int i = 0; i < specs.Count; i++) - { - var item = specs[i]; - string specitem = item.name + "|"; - for (int j = 0; j < item.values.Count; j++) - { - specitem += item.values[j].name + ","; - } - specsStr += specitem.Substring(0, specitem.Length - 1); - if (!string.IsNullOrEmpty(specsStr)) - { - specsStr += "^"; - } - } - - - - dictionary.Add("specs", specsStr); - var specPic = p.spec_pics; - string specPicStr = ""; - for (int i = 0; i < specPic.Count; i++) - { - if (specPicStr.Trim() != "") - { - specPicStr += ","; - } - specPicStr += specPic[i].pic; - } - - - dictionary.Add("spec_pic", specsStr); - - var dic = GetSpecDic(p.specs); - var specsx = p.spec_prices; - - string specStr = ""; - StringBuilder stringBuilder = new StringBuilder(); - for (int i = 0; i < specsx.Count; i++) - { - var specItem = specsx[i]; - IDictionary dictionary2 = new Dictionary(); - var id1 = specItem.spec_detail_id1; - var id2 = specItem.spec_detail_id2; - var id3 = specItem.spec_detail_id3; - - string name1 = ""; - if (id1 > 0 && dic.ContainsKey(id1)) - name1 = dic[id1]; - string name2 = ""; - if (id2 > 0 && dic.ContainsKey(id2)) - name2 = dic[id2]; - string name3 = ""; - if (id3 > 0 && dic.ContainsKey(id3)) - name3 = dic[id3]; - dictionary2.Add("spec_detail_name1", name1); - dictionary2.Add("spec_detail_name2", name2); - dictionary2.Add("spec_detail_name3", name3); - dictionary2.Add("stock_num", specItem.stock_num.ToString()); - dictionary2.Add("price", specItem.price.ToString()); - dictionary2.Add("code", specItem.code); - dictionary2.Add("step_stock_num", "0"); - foreach (string current in dictionary2.Keys) - { - if (current.ToString().Trim() == "stock_num" || current.ToString().Trim() == "price" || current.ToString().Trim() == "step_stock_num") - { - stringBuilder.AppendFormat((stringBuilder.Length > 0) ? ",\\\"{0}\\\":{1}" : "\\\"{0}\\\":{1}", current, dictionary2[current].ToString().Replace(" ", "")); - } - else - { - stringBuilder.AppendFormat((stringBuilder.Length > 0) ? ",\\\"{0}\\\":\\\"{1}\\\"" : "\\\"{0}\\\":\\\"{1}\\\"", current, dictionary2[current].ToString().Replace(" ", "")); - } - } - string str = "{" + stringBuilder.ToString() + "}"; - if (specStr.Trim() != "") - { - specStr += ","; - } - specStr += str; - } - specStr = "[" + specStr + "]"; - //sku详情 - dictionary.Add("spec_prices", specStr); - - dictionary.Add("maximum_per_order", p.maximum_per_order.ToString()); - dictionary.Add("limit_per_buyer", p.limit_per_buyer.ToString()); - dictionary.Add("minimum_per_order", p.minimum_per_order.ToString()); - - DouyinApi apix = new DouyinApi(shop); - apix.JsonData = dictionary; - html = apix.GetProductEdit(); - long product_id = BaseRegex.GetLongJson(ref html, "product_id"); //DouyinApi api = new DouyinApi(shop); - return 0; - } - public Dictionary GetSpecDic(List specs) - { - Dictionary specDic = new Dictionary(); - for (int j = 0; j < specs.Count; j++) - { - var item = specs[j]; - for (int k = 0; k < item.values.Count; k++) - { - var s = item.values[k]; - specDic.Add(s.id, s.name); - } - } - return specDic; - } - //修改库存 - private void button7_Click(object sender, EventArgs e) - { - var shop = GlobalConfig.ShopLoginList[0]; - DouyinApi api = new DouyinApi(shop); - api.JsonData = new Dictionary(); - api.JsonData.Add("product_id", "3492731930347180135"); - api.JsonData.Add("show_draft", "false"); - string html = api.GetProductDetail(); - GoodDetail good = null; - try - { - good = JsonConvert.DeserializeObject(html); - } - catch (Exception ex) - { - } - var p = good.data; - Dictionary dictionary = new Dictionary(); - - var specsx = p.spec_prices; - string skuid = ""; - for (int i = 0; i < specsx.Count; i++) - { - var specItem = specsx[i]; - skuid = specItem.sku_id.ToString(); - } - - - - dictionary.Add("sku_id", skuid.ToString()); - dictionary.Add("stock_num", "100"); - DouyinApi apix = new DouyinApi(shop); - apix.JsonData = dictionary; - html = apix.GetEditStock(); - } - //修改价格 - private void button8_Click(object sender, EventArgs e) - { - var shop = GlobalConfig.ShopLoginList[0]; - DouyinApi api = new DouyinApi(shop); - api.JsonData = new Dictionary(); - api.JsonData.Add("product_id", "3492731930347180135"); - api.JsonData.Add("show_draft", "false"); - string html = api.GetProductDetail(); - GoodDetail good = null; - try - { - good = JsonConvert.DeserializeObject(html); - } - catch (Exception ex) - { - } - var p = good.data; - Dictionary dictionary = new Dictionary(); - - var specsx = p.spec_prices; - string skuid = ""; - for (int i = 0; i < specsx.Count; i++) - { - var specItem = specsx[i]; - skuid = specItem.sku_id.ToString(); - } - - - - dictionary.Add("sku_id", skuid.ToString()); - dictionary.Add("price", "30000"); - DouyinApi apix = new DouyinApi(shop); - apix.JsonData = dictionary; - html = apix.GetEditPrice(); - } - - private void waitButton_Click(object sender, EventArgs e) - { - if (waitButton.Text == "暂停") - { - waitButton.Text = "继续"; - UploadProductBLL.isWaiting = true; - } - else - { - waitButton.Text = "暂停"; - UploadProductBLL.isWaiting = false; - } - } - - private void buttonEx2_Click(object sender, EventArgs e) - { - //ChatForm frm = new ChatForm(); - //frm.Show(); - } - - public List levellst = new List(); - public List levellst1 = new List(); - public List levellst2 = new List(); - public List levellst3 = new List(); - public List levellst4 = new List(); - public void GetCat() - { - levellst.Clear(); - - string url = "https://fxg.jinritemai.com/product/tproduct/categoryOptionsN?cid=0&appid=1&__token=57ae746dad0cd8c610061da3542bdca8&_lid=185395514703&_signature=_02B4Z6wo00901BWAKpgAAIDDpXHGUFOei0gVhC4AAGVdRDUVkGu0m2x2ZmO7k20IVvpSoGVVeqaYlfIyO5UnExFgL-vcYloVLZPcQAdaoEzdEN.gW97C2FBkXmV4VaxIK566gX6w5Dmb-H1A1d"; - string refere = "https://fxg.jinritemai.com/ffa/g/create"; - string data = ""; - string cookies = "ttcid=e377739c28ce4d18874fa6254b5aae0725; ttwid=1%7CQ2FXDv1XIHPVZa_hjjk6pZMPJKpmh59Y9QK9SmHGygE%7C1609827277%7Ccc7fa8c19ff0f500121b04ca16db39ede90af210620896d14c5ef778f70417ec; passport_csrf_token=e8c9361338d419e123eb9ca6f3cf47d5; passport_csrf_token_default=e8c9361338d419e123eb9ca6f3cf47d5; d_ticket=fd4f4a000273570e1b0a578f3c4b63e9c94fb; source=seo.baidu.001; Hm_lvt_b6520b076191ab4b36812da4c90f7a5e=1614154781; s_v_web_id=verify_klj62wum_mq6ot7Pj_Vd9w_4sZh_85CG_HCdNJeZbV830; SLARDAR_WEB_ID=unLoggedUser; PHPSESSID=bc522a983651ee361db01bef9a77f850; PHPSESSID_SS=bc522a983651ee361db01bef9a77f850; gfpart_1.0.0.3872_38475=0; MONITOR_WEB_ID=4e9f2d73-635d-4692-a761-1429b1436273; gftoken=MWNmNWVjNDllN3wxNjE0MTU0OTE1Mzl8fDAGBgYGBgY; gfpart_1.0.0.82_38574=0; Hm_lpvt_b6520b076191ab4b36812da4c90f7a5e=1614155399; tt_scid=kuImDaeMQkJDlV7RNBzK-cV.aUezLmPA8bf8-e4wjzbBldoQ3mxldypTfyI-r3KK6d9c; odin_tt=9848cda8c40345c38f0e4126ebee82067582ed5810871563287be65b4b5ada777abe060cbea27f6d6bac7de933729a8465d14ae31f9e01d0471d4a4e7918c9ca; n_mh=7-_t6pVZ0Rq_6lA_MFK-D1JitiJQbXT5uC_H35vCdp0; passport_auth_status=5e7c0775b54c286c732d68d07d44907c%2C; passport_auth_status_ss=5e7c0775b54c286c732d68d07d44907c%2C; sid_guard=f5734358799652f2f6d5ad4cf1a06620%7C1614156254%7C5184000%7CSun%2C+25-Apr-2021+08%3A44%3A14+GMT; uid_tt=63b8bfad66b71960e189a182fe122306; uid_tt_ss=63b8bfad66b71960e189a182fe122306; sid_tt=f5734358799652f2f6d5ad4cf1a06620; sessionid=f5734358799652f2f6d5ad4cf1a06620; sessionid_ss=f5734358799652f2f6d5ad4cf1a06620"; - string html = GetPostTaobaoHtml.UploadTaobao(url, refere, true, cookies); - CategoryResult categoryResult = Newtonsoft.Json.JsonConvert.DeserializeObject(html); - for (int i = 0; i < categoryResult.data.Count; i++) - { - var fxgCatBase = categoryResult.data[i]; - FxgCatLevel level = new FxgCatLevel(); - level.id = fxgCatBase.id; - level.name = fxgCatBase.name; - level.cat1id = fxgCatBase.id; - level.cat1name = fxgCatBase.name; - level.level = fxgCatBase.level; - level.is_leaf = fxgCatBase.is_leaf; - levellst1.Add(level); - levellst.Add(level); - } - for (int i = 0; i < levellst1.Count; i++) - { - int cid = levellst1[i].id; - url = "https://fxg.jinritemai.com/product/tproduct/categoryOptionsN?cid=" + cid + "&appid=1&__token=57ae746dad0cd8c610061da3542bdca8&_lid=185395514703&_signature=_02B4Z6wo00901BWAKpgAAIDDpXHGUFOei0gVhC4AAGVdRDUVkGu0m2x2ZmO7k20IVvpSoGVVeqaYlfIyO5UnExFgL-vcYloVLZPcQAdaoEzdEN.gW97C2FBkXmV4VaxIK566gX6w5Dmb-H1A1d"; - html = GetPostTaobaoHtml.UploadTaobao(url, refere, true, cookies); - CategoryResult categoryResult2 = Newtonsoft.Json.JsonConvert.DeserializeObject(html); - for (int j = 0; j < categoryResult2.data.Count; j++) - { - var fxgCatBase = categoryResult2.data[j]; - FxgCatLevel level = new FxgCatLevel(); - level.id = fxgCatBase.id; - level.name = fxgCatBase.name; - level.cat1id = levellst1[i].id; - level.cat1name = levellst1[i].name; - level.cat2id = fxgCatBase.id; - level.cat2name = fxgCatBase.name; - level.level = fxgCatBase.level; - level.is_leaf = fxgCatBase.is_leaf; - levellst2.Add(level); - levellst.Add(level); - } - Thread.Sleep(2000); - } - for (int i = 0; i < levellst2.Count; i++) - { - int cid = levellst2[i].id; - url = "https://fxg.jinritemai.com/product/tproduct/categoryOptionsN?cid=" + cid + "&appid=1&__token=57ae746dad0cd8c610061da3542bdca8&_lid=185395514703&_signature=_02B4Z6wo00901BWAKpgAAIDDpXHGUFOei0gVhC4AAGVdRDUVkGu0m2x2ZmO7k20IVvpSoGVVeqaYlfIyO5UnExFgL-vcYloVLZPcQAdaoEzdEN.gW97C2FBkXmV4VaxIK566gX6w5Dmb-H1A1d"; - html = GetPostTaobaoHtml.UploadTaobao(url, refere, true, cookies); - CategoryResult categoryResult3 = Newtonsoft.Json.JsonConvert.DeserializeObject(html); - for (int j = 0; j < categoryResult3.data.Count; j++) - { - var fxgCatBase = categoryResult3.data[j]; - FxgCatLevel level = new FxgCatLevel(); - level.id = fxgCatBase.id; - level.name = fxgCatBase.name; - level.cat1id = levellst2[i].cat1id; - level.cat1name = levellst2[i].cat1name; - level.cat2id = levellst2[i].cat2id; - level.cat2name = levellst2[i].cat2name; - level.cat3id = fxgCatBase.id; - level.cat3name = fxgCatBase.name; - level.level = fxgCatBase.level; - level.is_leaf = fxgCatBase.is_leaf; - levellst3.Add(level); - levellst.Add(level); - } - Thread.Sleep(2000); - } - for (int i = 0; i < levellst3.Count; i++) - { - int cid = levellst3[i].id; - url = "https://fxg.jinritemai.com/product/tproduct/categoryOptionsN?cid=" + cid + "&appid=1&__token=57ae746dad0cd8c610061da3542bdca8&_lid=185395514703&_signature=_02B4Z6wo00901BWAKpgAAIDDpXHGUFOei0gVhC4AAGVdRDUVkGu0m2x2ZmO7k20IVvpSoGVVeqaYlfIyO5UnExFgL-vcYloVLZPcQAdaoEzdEN.gW97C2FBkXmV4VaxIK566gX6w5Dmb-H1A1d"; - html = GetPostTaobaoHtml.UploadTaobao(url, refere, true, cookies); - if (html.Contains("\"total\":0")) - continue; - CategoryResult categoryResult4 = Newtonsoft.Json.JsonConvert.DeserializeObject(html); - for (int j = 0; j < categoryResult4.data.Count; j++) - { - var fxgCatBase = categoryResult4.data[j]; - FxgCatLevel level = new FxgCatLevel(); - level.id = fxgCatBase.id; - level.name = fxgCatBase.name; - level.cat1id = levellst3[i].cat1id; - level.cat1name = levellst3[i].cat1name; - level.cat2id = levellst3[i].cat2id; - level.cat2name = levellst3[i].cat2name; - level.cat3id = levellst3[i].cat3id; - level.cat3name = levellst3[i].cat3name; - level.cat4id = fxgCatBase.id; - level.cat4name = fxgCatBase.name; - level.level = fxgCatBase.level; - level.is_leaf = fxgCatBase.is_leaf; - levellst3.Add(level); - levellst.Add(level); - } - Thread.Sleep(2000); - } - var jsonBody = Newtonsoft.Json.JsonConvert.SerializeObject(levellst); - //var jlst = Newtonsoft.Json.JsonConvert.DeserializeObject>(jsonBody); - FileBase.WriteAllText("temp/cat.txt", jsonBody); - - } - - private void txtPhone_TextChanged(object sender, EventArgs e) - { - } - - private void btnGetUpId_Click(object sender, EventArgs e) - { - long product_id = 0; - long.TryParse(txtUpProduct.Text, out product_id); - if (product_id > 0) - { - string urlx = BaseClass.LoginApiUrl + "?obj=upshopid/upid_dd&act=get"; - string datax = "&pid=" + product_id + "&table=" + (product_id % 1024); - string htmlx = GetHtml.PostUtf8(urlx, UserLogin.GetSignaturex("", "") + datax); - string id = BaseRegex.GetMatchRegexString(htmlx, @"([\d]+)"); - string url = ""; - if (htmlx.Contains("tb")) - url = "https://item.taobao.com/item.htm?id=" + id; - if (htmlx.Contains("pdd")) - url = "https://mobile.yangkeduo.com/goods.html?goods_id=" + id; - if (htmlx.Contains("al")) - url = "https://detail.1688.com/offer/" + id + ".html"; - if (htmlx.Contains("dy")) - url = "https://weidian.com/item.html?itemID=" + id; - GetHtml.OpenUrl(url); - } - } - - private void shopthreadCountTextBox_SelectedIndexChanged(object sender, EventArgs e) - { - UploadProductBLL.ShopThreadCount = int.Parse(shopthreadCountTextBox.Text); - } - - private void btnSetTitleRemove_Click(object sender, EventArgs e) - { - FilterForm frm = new FilterForm("标题去除词"); - frm.Show(); - } - - private void btnSetTitleFilter_Click(object sender, EventArgs e) - { - FilterForm frm = new FilterForm(); - frm.Show(); - } - - private void btnSetSkuFilter_Click(object sender, EventArgs e) - { - FilterForm frm = new FilterForm("属性违规词"); - frm.Show(); - } - - private void btnSetBrandFilter_Click(object sender, EventArgs e) - { - FilterForm frm = new FilterForm("品牌违规词"); - frm.Show(); - } - - private void prefixTextBox_TextChanged(object sender, EventArgs e) - { - if (!string.IsNullOrEmpty(prefixTextBox.Text)) - UploadProductBLL.PreFixTitle = prefixTextBox.Text.Trim(); - else - UploadProductBLL.PreFixTitle = ""; - } - - private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) - { - UploadProductBLL.fixName = comboBox1.SelectedItem.ToString(); - } - - private void proxyCheckBox_CheckedChanged(object sender, EventArgs e) - { - if (proxyCheckBox.Checked) - { - ProxyForm frm = new ProxyForm(); - frm.Show(); - UploadProductBLL.IsUseProxyCollectUp = true; - } - else - { - UploadProductBLL.IsUseProxyCollectUp = false; - } - } - - private void buttonEx4_Click(object sender, EventArgs e) - { - if (ieForm != null && IeForm.IsShowIeForm) - { - //ieForm.cefWebBrowser3.Load("https://www.taobao.com/"); - ieForm.StartPosition = FormStartPosition.CenterScreen; - ieForm.Show(); - ieForm.Activate(); - } - } - - private void chkOnlyPostFree_CheckedChanged(object sender, EventArgs e) - { - UploadProductBLL.JustFree = chkOnlyPostFree.Checked; - } - - private void chklogistime_CheckedChanged(object sender, EventArgs e) - { - UploadProductBLL.isLogistics = chklogistime.Checked; - } - - private void cboHour_SelectedIndexChanged(object sender, EventArgs e) - { - UploadProductBLL.isLogistHour = Convert.ToInt32(cboHour.Text); - } - - public UploadParam uploadParam = new UploadParam(); - public class UploadParam - { - public string phone { get; set; } - public string addMultiple { get; set; } = "1.2"; - public string addMultiple2 { get; set; } = "1.3"; - public string plusOrMinus { get; set; } = "+"; - public string addPrice { get; set; } = "10"; - public string plusOrMinus2 { get; set; } = "+"; - public string addPrice2 { get; set; } = "10"; - public bool isSetCommission { get; set; } = false; - public int commissionRatio { get; set; } = 10; - public bool isRoundPrice { get; set; } = false; - public string productBrand { get; set; } - public bool isAutoSaveUploadFailedProduct { get; set; } = false; - } - - public void SaveUploadParam() - { - uploadParam.phone = txtPhone.Text; - uploadParam.addMultiple = txtMultiple.Text; - uploadParam.addMultiple2 = txtMultiple2.Text; - uploadParam.plusOrMinus = cmbPlusOrMinus.Text; - uploadParam.addPrice = txtPostage.Text; - uploadParam.plusOrMinus2 = cmbPlusOrMinus2.Text; - uploadParam.addPrice2 = txtPostage2.Text; - uploadParam.commissionRatio = txtRatio.Text.ParseToInt(); - uploadParam.isSetCommission = chkIsSetCommission.Checked; - uploadParam.isRoundPrice = chkRoundPrice.Checked; - uploadParam.productBrand = txtProductBrand.Text.Trim(); - uploadParam.isAutoSaveUploadFailedProduct = chkSaveUploadFailed.Checked; - try - { - NaiBa.Util.Helper.ConfigHelper.SaveConfig("upload_param", uploadParam); - } - catch - { - } - } - public void GetUploadParam() - { - try - { - uploadParam = NaiBa.Util.Helper.ConfigHelper.LoadConfig("upload_param"); - if (uploadParam == null) - uploadParam = new UploadParam(); - txtMultiple.Text = uploadParam.addMultiple; - txtMultiple2.Text = uploadParam.addMultiple2; - cmbPlusOrMinus.SelectedItem = uploadParam.plusOrMinus; - txtPostage.Text = uploadParam.addPrice; - cmbPlusOrMinus2.SelectedItem = uploadParam.plusOrMinus2; - txtPostage2.Text = uploadParam.addPrice2; - txtPhone.Text = uploadParam.phone; - txtRatio.Text = uploadParam.commissionRatio.ToString(); - chkIsSetCommission.Checked = uploadParam.isSetCommission; - chkRoundPrice.Checked = uploadParam.isRoundPrice; - txtProductBrand.Text = uploadParam.productBrand; - chkSaveUploadFailed.Checked = uploadParam.isAutoSaveUploadFailedProduct; - } - catch - { - } - } - - private void dgvProduct_CellContentClick(object sender, DataGridViewCellEventArgs e) - { - if (e.RowIndex < 0 || e.ColumnIndex < 0) - return; - - var goodsId = dgvProduct.Rows[e.RowIndex].Cells["productIdColumn"].Value.ToString(); - var upId = dgvProduct.Rows[e.RowIndex].Cells["idColumn"].Value.ToString(); - var from = dgvProduct.Rows[e.RowIndex].Cells["fromColumn"].Value.ToString(); - var columnName = dgvProduct.Columns[e.ColumnIndex].Name; - if (columnName == "productIdColumn") - { - string url = "https://haohuo.jinritemai.com/views/product/item2?id=" + goodsId; - GetHtml.OpenUrl(url); - } - else if (columnName == "idColumn") - { - var url = ""; - if (from == "淘宝") - url = "https://item.taobao.com/item.htm?id=" + upId; - else if (from == "阿里巴巴") - url = "https://detail.1688.com/offer/" + upId + ".html"; - else if (from == "微店") - url = "https://weidian.com/item.html?itemID=" + upId; - else if (from == "京喜") - url = "https://item.m.jd.com/product/" + upId + ".html"; - else if (from == "拼多多") - url = "http://mobile.yangkeduo.com/goods.html?goods_id=" + upId; - else if (from == "抖音" || from == "") - url = "https://haohuo.jinritemai.com/views/product/detail?id=" + upId; - GetHtml.OpenUrl(url); - } - else if (columnName == "messageColumn") - { - if (dgvProduct.Rows[e.RowIndex].Cells["messageColumn"].Value.ToString() == "请去店铺后台创建产品尺码表!") - { - var url = "https://fxg.jinritemai.com/ffa/g/size-chart/manage"; - var shopName = dgvProduct.Rows[e.RowIndex].Cells["shopNameColumn"].Value.ToString(); - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopAccount == shopName); - if (shop != null) - { - var cookieStrArr = shop.Cookies.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); - var cookieList = new List(); - foreach (var cookieStr in cookieStrArr) - { - cookieList.Add(new CefSharp.Cookie - { - Domain = ".jinritemai.com", - Name = cookieStr.Split('=').FirstOrDefault(), - Value = cookieStr.Split('=').LastOrDefault(), - Expires = DateTime.Now.AddMonths(1), - Path = "/" - }); - } - - CefForm cf = new CefForm(url, cookieList); - cf.ShowDialog(); - } - } - } - } - - private void lowPricePercenttextBox_TextChanged(object sender, EventArgs e) - { - if (!string.IsNullOrEmpty(lowPricePercenttextBox.Text)) - UploadProductBLL.LowPricePercent = decimal.Parse(lowPricePercenttextBox.Text); - } - - private void lowPriceAddtextBox_TextChanged(object sender, EventArgs e) - { - if (!string.IsNullOrEmpty(lowPriceAddtextBox.Text) && lowPriceAddtextBox.Text != "-") - UploadProductBLL.LowPriceAdd = decimal.Parse(lowPriceAddtextBox.Text); - if (comboBox5.SelectedItem.ToString() != "+") - UploadProductBLL.LowPriceAdd = -UploadProductBLL.LowPriceAdd; - } - - private void lowPricecheckBox_CheckedChanged(object sender, EventArgs e) - { - UploadProductBLL.LowPriceSku = lowPricecheckBox.Checked; - } - - private void endDateTimePicker_ValueChanged(object sender, EventArgs e) - { - - } - - private void comboBox3_SelectedIndexChanged(object sender, EventArgs e) - { - sendTime.Visible = false; - cmbSendDayAfterPre.Visible = false; - label12.Visible = false; - label8.Visible = false; - endDateTimePicker.Visible = false; - cmbNewPreTime.Visible = lblNewPreTime.Visible = false; - - if (cmbSendType.SelectedItem.ToString() == "预售发货") - { - sendTime.Visible = true; - cmbSendDayAfterPre.Visible = true; - label12.Visible = true; - label8.Visible = true; - endDateTimePicker.Visible = true; - } - else if (cmbSendType.SelectedItem.ToString() == "新预售" || cmbSendType.SelectedItem.ToString() == "现货-预售") - { - cmbNewPreTime.Visible = lblNewPreTime.Visible = true; - } - } - - private void chkIsSetCommission_CheckedChanged(object sender, EventArgs e) - { - UploadProductBLL.IsSetCommission = chkIsSetCommission.Checked; - } - - private void txtRatio_TextChanged(object sender, EventArgs e) - { - UploadProductBLL.CommissionRatio = txtRatio.Text.ParseToInt(); - } - - private void lblWaitUpload_Click(object sender, EventArgs e) - { - //return; - if (webBrowser != null && btn != null) - { - webBrowser.BringToFront(); - btn.BringToFront(); - } - } - - private void buttonEx2_Click_1(object sender, EventArgs e) - { - OpenFileDialog dialog = new OpenFileDialog(); - dialog.Multiselect = false;//该值确定是否可以选择多个文件 - dialog.Title = "请选择文件夹"; //窗体标题 - dialog.Filter = "图片文件(*.jpg,*.png,*.jpeg)|*.jpg;*.png;*.jpeg"; - //dialog.Filter = "图片文件(*.jpg,*.jpeg,*.png)|*.jpg|*.jpeg|*.png|*.bmp|*.gif"; //文件筛选 - dialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyComputer); - if (dialog.ShowDialog() == DialogResult.OK) - { - string file = dialog.FileName;//文件夹路径 - string path = file.Substring(file.LastIndexOf("\\") + 1); //格式化处理,提取文件名 - FileStream fs = new FileStream(file, FileMode.Open, FileAccess.Read); - byte[] img = new byte[fs.Length]; - BinaryReader br = new BinaryReader(fs);//二进制读取器 - img = br.ReadBytes(Convert.ToInt32(fs.Length)); - UploadProductBLL.img = img; - new Thread(SetFixedImage).Start(); - } - } - public void SetFixedImage() - { - string baseImageUrl = HttpPostDataImage("https://fxg.jinritemai.com/common/img/batchupload?_bid=ffa_goods", "https://fxg.jinritemai.com/ffa/g/create", UploadProductBLL.img); - UploadProductBLL.baseImageUrl = BaseRegex.GetMatchRegexString(baseImageUrl, @"\[""([\w\W]+?)""\]"); - FileBase.WriteAllText("temp/imageUrl.txt", UploadProductBLL.baseImageUrl, Encoding.UTF8); - } - private static string HttpPostDataImage(string url, string referer, byte[] file) - { - var shop = GlobalConfig.ShopLoginList.Where(s => s.LoginStatus == "登录成功").FirstOrDefault(); - if (shop == null) - return ""; - string responseContent = ""; - string cookie = shop.Cookies; - if (string.IsNullOrEmpty(cookie)) - { - return ""; - } - var memStream = new MemoryStream(); - var webRequest = (HttpWebRequest)WebRequest.Create(url); - // 边界符 - var boundary = "----WebKitFormBoundaryQ6FNeGKnNmZqtskD"; - // 边界符 - var beginBoundary = Encoding.ASCII.GetBytes("--" + boundary + "\r\n"); - // 边界符 - var secondBoundary = Encoding.ASCII.GetBytes("\r\n--" + boundary + "\r\n"); - // 最后的结束符 - var endBoundary = Encoding.ASCII.GetBytes("\r\n--" + boundary + "--"); - - // 设置属性 - webRequest.Method = "POST"; - webRequest.KeepAlive = true; - webRequest.Timeout = 5000; - webRequest.ReadWriteTimeout = 5000; - webRequest.ContentType = "multipart/form-data; boundary=" + boundary; - webRequest.Referer = referer; - webRequest.Accept = "*/*"; - webRequest.UserAgent = BaseClass.ChromeUserAgent; - webRequest.Headers.Add("Cookie", cookie); - webRequest.Headers.Add("Origin", @"https://fxg.jinritemai.com"); - //webRequest.Headers.Add("Sec-Fetch-Site", @"same-site"); - //webRequest.Headers.Add("Sec-Fetch-Mode", @"cors"); - webRequest.Headers.Set(HttpRequestHeader.AcceptEncoding, "gzip, deflate"); - webRequest.Headers.Set(HttpRequestHeader.AcceptLanguage, "zh-CN,zh;q=0.9"); - webRequest.Headers.Set(HttpRequestHeader.Cookie, cookie); - webRequest.ServicePoint.Expect100Continue = false; - - string filePartHeader = - "Content-Disposition: form-data; name=\"{0}\"; filename=\"{1}\"\r\n" + - "Content-Type: image/jpeg\r\n\r\n"; - var header = string.Format(filePartHeader, "image[0]", "标签.jpg"); - var headerbytes = Encoding.UTF8.GetBytes(header); - memStream.Write(beginBoundary, 0, beginBoundary.Length); - memStream.Write(headerbytes, 0, headerbytes.Length); - // 写入文件 - memStream.Write(file, 0, file.Length); - // 写入最后的结束边界符 - memStream.Write(endBoundary, 0, endBoundary.Length); - webRequest.ContentLength = memStream.Length; - using (Stream stream = webRequest.GetRequestStream()) - { - memStream.WriteTo(stream); - } - var httpWebResponse = (HttpWebResponse)webRequest.GetResponse(); - if (httpWebResponse != null) - { - if (string.IsNullOrEmpty(responseContent)) - responseContent = ReadResponsex(httpWebResponse); - httpWebResponse.Close(); - } - return responseContent; - } - - public static string ReadResponsex(HttpWebResponse response) - { - using (Stream responseStream = response.GetResponseStream()) - { - Stream streamToRead = responseStream; - if (response.ContentEncoding.ToLower().Contains("gzip")) - { - streamToRead = new GZipStream(streamToRead, CompressionMode.Decompress); - } - else if (response.ContentEncoding.ToLower().Contains("deflate")) - { - streamToRead = new DeflateStream(streamToRead, CompressionMode.Decompress); - } - - using (StreamReader streamReader = new StreamReader(streamToRead, Encoding.UTF8)) - { - return streamReader.ReadToEnd(); - } - } - } - //private string GetShopDetail(string productId) - //{ - // HttpWebResponse response = null; - // string result; - // try - // { - // string url = "https://ec.snssdk.com/product/getstock?id=3493426708055488550&add_cart=0&b_type_new=0&device_id=0&is_outside=1"; - - // HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); - // request.ContentType = "application/x-www-form-urlencoded"; - // request.Referer = "https://haohuo.jinritemai.com/"; - // request.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36 Edg/91.0.864.509"; - // request.Headers.Add("origin", @"https://haohuo.jinritemai.com"); - - // response = (HttpWebResponse)request.GetResponse(); - // } - // catch (WebException ex) - // { - // if (ex.Status == WebExceptionStatus.ProtocolError) - // { - // response = (HttpWebResponse)ex.Response; - // result = GetProxyHtml.ReadResponse(response); - // return result; - // } - // else return ex.Message; - // } - // catch (Exception e) - // { - // if (response != null) response.Close(); - // return e.Message; - // } - // result = GetProxyHtml.ReadResponse(response); - // return result; - //} - - #region 数据净化数据导入相关静态函数 - /// - /// 从数据净化导入数据 - /// - /// - /// - public static string ImportFromFission(List pcbList) - { - if (instance != null) - instance.ImportFormFissionData(pcbList); - else - lstFissionPcb.AddRange(pcbList); - - return "ok"; - } - #endregion - - private void ImportFormFissionData(List pcbs) - { - foreach (var pcb in pcbs) - { - TaobaoProductBase t = new TaobaoProductBase(); - t.TolerantFormId = pcb.from_id.ToString(); - t.FromId = pcb.from_id; - t.ViPrice = ""; - t.ViGoodsId = 0; - t.FromType = pcb.from; - t.Titlte = pcb.name.Replace("\",\"", ""); - t.pcb = pcb; - if (!UploadProductBLL.ProductStock.Exists(p => p != null && p.FromId == t.FromId && p.Titlte == t.Titlte)) - { - UploadProductBLL.ProductStock.Add(t); - DataBaseTemp.Add(t); - batchDataBaseTemp.Add(t); - if (batchDataBaseTemp.Count > 50) - { - AddListToDataBaseSingle(batchDataBaseTemp); - batchDataBaseTemp.Clear(); - ReMain(); - } - } - } - if (batchDataBaseTemp.Count > 0) - { - AddListToDataBaseSingle(batchDataBaseTemp); - batchDataBaseTemp.Clear(); - ReMain(); - } - } - - private void chkRandomMainImage_CheckedChanged(object sender, EventArgs e) - { - } - - private void chkSaveToOffLine_CheckedChanged(object sender, EventArgs e) - { - - } - - FlowLayoutPanel pnlViolateCheck = null; - private void btnSetViolateCheck_Click(object sender, EventArgs e) - { - UploadProductViolateSelectForm f = new UploadProductViolateSelectForm(); - f.ShowDialog(); - return; - - if (pnlViolateCheck == null) - { - pnlViolateCheck = new FlowLayoutPanel(); - pnlViolateCheck.AutoScroll = true; - pnlViolateCheck.Anchor = AnchorStyles.Top; - pnlViolateCheck.BorderStyle = BorderStyle.FixedSingle; - pnlViolateCheck.SetAutoScrollMargin(10, 10); - this.Controls.Add(pnlViolateCheck); - - // 读取违规信息规则名称列表 - ViolateManageForm.GetAllViolateRuleName(); - // 显示违规信息规则名称列表 - ViolateManageForm.SetViolateSelectList(pnlViolateCheck); - } - pnlViolateCheck.Width = this.Width - 150; - pnlViolateCheck.Height = this.Height - 300; - pnlViolateCheck.Location = new Point((this.Width - pnlViolateCheck.Width) / 2, 58); - - if (btnSetViolateCheck.Text == "设置") - { - pnlViolateCheck.Visible = true; - pnlViolateCheck.BringToFront(); - btnSetViolateCheck.Text = "关闭"; - } - else - { - pnlViolateCheck.Visible = false; - pnlViolateCheck.SendToBack(); - btnSetViolateCheck.Text = "设置"; - } - } - - private void chkMultiUpload_CheckedChanged(object sender, EventArgs e) - { - lblFromTo.Visible = lblFromTo2.Visible = txtMultiple2.Visible = cmbPlusOrMinus2.Visible = txtPostage2.Visible = chkMultiUpload.Checked; - } - - private void txtSetBrand_TextChanged(object sender, EventArgs e) - { - //string result = ""; - //while (result == "" || result.Contains("已过期")) - //{ - // var dyShop = GlobalConfig.DouShopLoginList.FirstOrDefault(s => s.ApiAuthStatus == "授权成功"); - // if (dyShop == null) - // { - // BaseMsgForm.ShowError("请确保至少有一个店铺授权成功!"); - // return; - // } - // var api = new DouyinApi(dyShop); - // api.JsonData["category_id"] = detailDataPcb.cat_id.ToString(); - // var textQuery = txt.Text.Split(new string[] { "/" }, StringSplitOptions.RemoveEmptyEntries).LastOrDefault(); - // api.JsonData["query"] = textQuery == null ? "" : textQuery; // "JIXIN/积鑫"; - // result = api.cateBrandList(); - //} - // - //try - //{ - // var jArr = JObject.Parse(result)["data"]["brand_list"] as JArray; - // ShowBrandList(jArr, txt); - //} - //catch (Exception ex) { } - } - - private void btn上传质检报告_Click(object sender, EventArgs e) - { - var imageUrl = uploadQualificationFile("3457058945162709852", "质检报告"); - if (!string.IsNullOrEmpty(imageUrl)) this.pictureBox3.Load(imageUrl); - } - - private void btn上传包装标签图_Click(object sender, EventArgs e) - { - var imageUrl = uploadQualificationFile("6966228537426575660", "包装标签图"); - if (!string.IsNullOrEmpty(imageUrl)) this.pictureBox2.Load(imageUrl); - } - - private void btn上传食品许可证_Click(object sender, EventArgs e) - { - var imageUrl = uploadQualificationFile("6921664837978194184", "食品生产许可证"); - if (!string.IsNullOrEmpty(imageUrl)) this.pictureBox1.Load(imageUrl); - } - - private string uploadQualificationFile(string qualityKey, string qualityName) - { - var uploadResult = new FissionBrowserObject().addLocalPic(false); - if (uploadResult.Contains("\"msg\":\"success\"")) - { - var qualificationFile = new quality_file(); - qualificationFile.quality_key = qualityKey; - qualificationFile.quality_name = qualityName; - if (qualityName == "食品生产许可证") - { - var prop = UploadProductBLL.sGlobalPropList.FirstOrDefault(pr => pr.Key == "食品生产许可证编号"); - if (prop != null) - qualificationFile.quality_number = prop.Value; - } - if (qualificationFile.quality_attachments == null) - qualificationFile.quality_attachments = new List(); - - var imageUrl = BaseRegex.GetStringJson(ref uploadResult, "src")?.Replace("\\/", "/"); - if (!string.IsNullOrEmpty(imageUrl)) - { - qualificationFile.quality_attachments.Clear(); - qualificationFile.quality_attachments.Add(new quality_attachment { media_type = 1, url = imageUrl }); - UploadProductBLL.sGlobalQualifications.RemoveAll(q => q.quality_name == qualificationFile.quality_name); - UploadProductBLL.sGlobalQualifications.Add(qualificationFile); - - NaiBa.Util.Helper.ConfigHelper.SaveConfig("global_qualifications", UploadProductBLL.sGlobalQualifications); - return imageUrl; - } - } - return ""; - } - - private void txt食品生产许可证号_TextChanged(object sender, EventArgs e) - { - UploadProductBLL.sGlobalPropList.RemoveAll(kv => kv.Key == "食品生产许可证编号"); - if (!string.IsNullOrEmpty(txt食品生产许可证编号.Text.Trim())) - { - UploadProductBLL.sGlobalPropList.Add(new KeyValueBase("食品生产许可证编号", txt食品生产许可证编号.Text.Trim())); - NaiBa.Util.Helper.ConfigHelper.SaveConfig("global_prop_list", UploadProductBLL.sGlobalPropList); - - var Qualifications = UploadProductBLL.sGlobalQualifications.FirstOrDefault(q => q.quality_name == "食品生产许可证"); - if (Qualifications != null) - { - Qualifications.quality_number = txt食品生产许可证编号.Text.Trim(); - NaiBa.Util.Helper.ConfigHelper.SaveConfig("global_qualifications", UploadProductBLL.sGlobalQualifications); - } - } - } - - private void txt生产企业名称_TextChanged(object sender, EventArgs e) - { - UploadProductBLL.sGlobalPropList.RemoveAll(kv => kv.Key == "生产企业名称"); - if (!string.IsNullOrEmpty(txt生产企业名称.Text.Trim())) - { - UploadProductBLL.sGlobalPropList.Add(new KeyValueBase("生产企业名称", txt生产企业名称.Text.Trim())); - NaiBa.Util.Helper.ConfigHelper.SaveConfig("global_prop_list", UploadProductBLL.sGlobalPropList); - } - } - - private void txtBrand_TextChanged(object sender, EventArgs e) - { - UploadProductBLL.sGlobalPropList.RemoveAll(kv => kv.Key == "品牌"); - if (!string.IsNullOrEmpty(txtBrand.Text.Trim())) - { - UploadProductBLL.sGlobalPropList.Add(new KeyValueBase("品牌", txtBrand.Text.Trim())); - NaiBa.Util.Helper.ConfigHelper.SaveConfig("global_prop_list", UploadProductBLL.sGlobalPropList); - } - } - - private void dgvProduct_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e) - { - var row = dgvProduct.Rows[e.RowIndex]; - if (row.Cells["messageColumn"].Value.ToString() == "请去店铺后台创建产品尺码表!") - { - var font = dgvProduct.RowsDefaultCellStyle.Font; - row.Cells["messageColumn"].Style.Font = new Font(font.FontFamily, font.Size, FontStyle.Underline); - } - } - - private void chkSaveUploadFailed_CheckedChanged(object sender, EventArgs e) - { - - } - } - - public class OpenApiResponseBase - { - public string msg = ""; - private int tpl_type = 0; - private int page = 0; - private int size = 0; - private int st = 0; - public int code = 0; - public int total = 0; - public List data - { - get; - set; - } - public OpenApiResponseBase() - { - } - } - public class PropertiesBase - { - public string hint = ""; - public int multi_select_max = 0; - public int property_type = 0; - public string property_id = ""; - public int sequence = 0; - public int relation_id = 0; - public string name - { - get; - set; - } - public int required - { - get; - set; - } - public string type - { - get; - set; - } - public List options - { - get; - set; - } - public PropertiesBase() - { - } - } - public class PropertiesValuesBase - { - public string name - { - get; - set; - } - public string value - { - get; - set; - } - public PropertiesValuesBase() - { - - } - } - - - public class FxgCatBase - { - /// - /// - /// - public int id { get; set; } - /// - /// 名称 - /// - public string name { get; set; } - /// - /// 类目ID - /// - public int parent_cid { get; set; } - /// - /// 层级 - /// - public int level { get; set; } - /// - /// - /// - public int enable { get; set; } - /// - /// 叶子节点 - /// - public string is_leaf { get; set; } - /// - /// - /// - public string extra { get; set; } - } - public class CategoryResult - { - /// - /// - /// - public int st { get; set; } - /// - /// - /// - public string msg { get; set; } - /// - /// - /// - public int code { get; set; } - /// - /// - /// - public List data { get; set; } - /// - /// - /// - public int page { get; set; } - /// - /// - /// - public int size { get; set; } - /// - /// - /// - public int total { get; set; } - } - public class FxgCatLevel - { - /// - /// - /// - public int id { get; set; } - /// - /// 名称 - /// - public string name { get; set; } - /// - /// 类目ID - /// - public int cat1id { get; set; } - /// - /// 名称 - /// - public string cat1name { get; set; } - /// - /// 类目ID - /// - public int cat2id { get; set; } - /// - /// 名称 - /// - public string cat2name { get; set; } - /// - /// 类目ID - /// - public int cat3id { get; set; } - /// - /// 名称 - /// - public string cat3name { get; set; } - /// - /// 类目ID - /// - public int cat4id { get; set; } - /// - /// 名称 - /// - public string cat4name { get; set; } - /// - /// 层级 - /// - public int level { get; set; } - /// - /// 叶子节点 - /// - public string is_leaf { get; set; } - } -} diff --git a/TEMUKJD/KJDForms/ProductForms/Old/UploadProductForm.resx b/TEMUKJD/KJDForms/ProductForms/Old/UploadProductForm.resx deleted file mode 100644 index 67c0085..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/UploadProductForm.resx +++ /dev/null @@ -1,237 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - True - - - True - - - True - - - True - - - True - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/Old/UploadProductViolateSelectForm.Designer.cs b/TEMUKJD/KJDForms/ProductForms/Old/UploadProductViolateSelectForm.Designer.cs deleted file mode 100644 index 9fba4bb..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/UploadProductViolateSelectForm.Designer.cs +++ /dev/null @@ -1,166 +0,0 @@ -namespace TemuKJD.KJDForms.ProductForms -{ - partial class UploadProductViolateSelectForm - { - /// - /// 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() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UploadProductViolateSelectForm)); - this.panel2 = new System.Windows.Forms.Panel(); - this.pnlViolateCheck = new System.Windows.Forms.FlowLayoutPanel(); - this.btnAll = new DevComponents.DotNetBar.PanelEx(); - this.btnAllSerious = new DevComponents.DotNetBar.PanelEx(); - this.btnNone = new DevComponents.DotNetBar.PanelEx(); - this.panel2.SuspendLayout(); - this.SuspendLayout(); - // - // panel2 - // - this.panel2.BackColor = System.Drawing.Color.White; - this.panel2.Controls.Add(this.btnNone); - this.panel2.Controls.Add(this.btnAllSerious); - this.panel2.Controls.Add(this.btnAll); - this.panel2.Controls.Add(this.pnlViolateCheck); - this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel2.Location = new System.Drawing.Point(1, 33); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(1198, 566); - this.panel2.TabIndex = 1; - // - // pnlViolateCheck - // - this.pnlViolateCheck.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.pnlViolateCheck.AutoScroll = true; - this.pnlViolateCheck.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pnlViolateCheck.Location = new System.Drawing.Point(5, 33); - this.pnlViolateCheck.Name = "pnlViolateCheck"; - this.pnlViolateCheck.Size = new System.Drawing.Size(1186, 526); - this.pnlViolateCheck.TabIndex = 432; - // - // btnAll - // - this.btnAll.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnAll.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnAll.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnAll.DisabledBackColor = System.Drawing.Color.Empty; - this.btnAll.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnAll.Location = new System.Drawing.Point(5, 6); - this.btnAll.Name = "btnAll"; - this.btnAll.Size = new System.Drawing.Size(100, 23); - this.btnAll.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnAll.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnAll.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnAll.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnAll.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnAll.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnAll.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnAll.Style.GradientAngle = 90; - this.btnAll.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnAll.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnAll.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnAll.TabIndex = 446; - this.btnAll.Text = "选择全部违规"; - this.btnAll.Click += new System.EventHandler(this.btnAll_Click); - // - // btnAllSerious - // - this.btnAllSerious.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnAllSerious.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnAllSerious.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnAllSerious.DisabledBackColor = System.Drawing.Color.Empty; - this.btnAllSerious.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnAllSerious.Location = new System.Drawing.Point(109, 6); - this.btnAllSerious.Name = "btnAllSerious"; - this.btnAllSerious.Size = new System.Drawing.Size(100, 23); - this.btnAllSerious.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnAllSerious.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnAllSerious.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnAllSerious.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnAllSerious.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnAllSerious.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnAllSerious.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnAllSerious.Style.GradientAngle = 90; - this.btnAllSerious.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnAllSerious.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnAllSerious.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnAllSerious.TabIndex = 450; - this.btnAllSerious.Text = "选择严重违规"; - this.btnAllSerious.Click += new System.EventHandler(this.btnAllSerious_Click); - // - // btnNone - // - this.btnNone.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnNone.CanvasColor = System.Drawing.SystemColors.Control; - this.btnNone.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnNone.DisabledBackColor = System.Drawing.Color.Empty; - this.btnNone.Font = new System.Drawing.Font("微软雅黑", 9F); - this.btnNone.Location = new System.Drawing.Point(213, 6); - this.btnNone.Name = "btnNone"; - this.btnNone.Size = new System.Drawing.Size(100, 23); - this.btnNone.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnNone.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnNone.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnNone.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnNone.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnNone.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnNone.Style.GradientAngle = 90; - this.btnNone.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnNone.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnNone.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnNone.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnNone.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnNone.TabIndex = 458; - this.btnNone.Text = "清除所有选择"; - this.btnNone.Click += new System.EventHandler(this.btnNone_Click); - // - // UploadProductViolateSelectForm - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.ClientSize = new System.Drawing.Size(1200, 600); - this.Controls.Add(this.panel2); - this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Name = "UploadProductViolateSelectForm"; - this.Text = "云违规排查选项"; - this.TitleText = "云违规排查选项"; - this.Load += new System.EventHandler(this.UploadProductViolateSelectForm_Load); - this.Controls.SetChildIndex(this.panel2, 0); - this.panel2.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.FlowLayoutPanel pnlViolateCheck; - private DevComponents.DotNetBar.PanelEx btnAllSerious; - private DevComponents.DotNetBar.PanelEx btnAll; - private DevComponents.DotNetBar.PanelEx btnNone; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/Old/UploadProductViolateSelectForm.cs b/TEMUKJD/KJDForms/ProductForms/Old/UploadProductViolateSelectForm.cs deleted file mode 100644 index d603815..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/UploadProductViolateSelectForm.cs +++ /dev/null @@ -1,77 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace TemuKJD.KJDForms.ProductForms -{ - public partial class UploadProductViolateSelectForm : TemuKJD.KJDForms.BaseForms.LRBaseForm - { - public UploadProductViolateSelectForm() - { - InitializeComponent(); - } - - private void UploadProductViolateSelectForm_Load(object sender, EventArgs e) - { - Task.Run(() => - { - // 读取违规信息规则名称列表 - ViolateManageForm.GetAllViolateRuleName(); - // 显示违规信息规则名称列表 - ViolateManageForm.SetViolateSelectList(pnlViolateCheck); - }); - } - - private void btnAll_Click(object sender, EventArgs e) - { - foreach (Control c in pnlViolateCheck.Controls) - { - var chk = c as CheckBox; - if (chk != null) - { - chk.Checked = true; - ViolateManageForm.Cb_Click(chk, null); - } - } - } - - private void btnAllSerious_Click(object sender, EventArgs e) - { - foreach (Control c in pnlViolateCheck.Controls) - { - var chk = c as CheckBox; - if (chk != null) - { - if (chk.ForeColor == Color.FromArgb(240, 10, 0)) - { - chk.Checked = true; - } - else - { - chk.Checked = false; - } - ViolateManageForm.Cb_Click(chk, null); - } - } - } - - private void btnNone_Click(object sender, EventArgs e) - { - foreach (Control c in pnlViolateCheck.Controls) - { - var chk = c as CheckBox; - if (chk != null) - { - chk.Checked = false; - ViolateManageForm.Cb_Click(chk, null); - } - } - } - } -} diff --git a/TEMUKJD/KJDForms/ProductForms/Old/UploadProductViolateSelectForm.resx b/TEMUKJD/KJDForms/ProductForms/Old/UploadProductViolateSelectForm.resx deleted file mode 100644 index e330b8a..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/UploadProductViolateSelectForm.resx +++ /dev/null @@ -1,298 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - - - AAABAAEAgIAQcgAAAABoKAAAFgAAACgAAACAAAAAAAEAAAEABAAAAAAAACgAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAgICAAMDAwAAAAP8AAP8AAAD//wD/AAAA/wD/AP// - AAD///8AAAAAAAAAAAAAAAAABEZmbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZmZkQAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAZszMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMxmAAAAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMxkAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzGQAAAAAAAAAAAAAAAAAAAbMzMzMzMzMzMzMzMzMzMzMzMzMd3d3d3d3d3 - d3d3fMzMzMzMzMzMzMzMzMzMzMzMzMYAAAAAAAAAAAAAAAAARszMzMzMzMzMzMzMzMzMzMd3d3iIiIiI - iIiIiIiIiIh3d3d8zMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAABszMzMzMzMzMzMzMzMzMx3eIiIiI - iIiIiIiIiIiIiIiIiIiIiHd8zMzMzMzMzMzMzMzMzMxgAAAAAAAAAAAAAGzMzMzMzMzMzMzMzMzMd4iI - iIiIiIiIiIiIiIiIiIiIiIiIiIiIiHfMzMzMzMzMzMzMzMzMxgAAAAAAAAAAAAbMzMzMzMzMzMzMzMzH - eIiIiIiIiIiHZmZmZmZmZmZmZ3eIiIiIiIiIiHzMzMzMzMzMzMzMzMxgAAAAAAAAAABszMzMzMzMzMzM - zMzHiIiIiIiHZmZmZmZmZmZmZmZmZmZmZmZmeIiIiIiIfMzMzMzMzMzMzMzMxgAAAAAAAAAGzMzMzMzM - zMzMzMzHiIiIiIdmZmZmZgAAAAAAAAAAAAZmZmZmZmZmeIiIiIh8zMzMzMzMzMzMzMxgAAAAAAAATMzM - zMzMzMzMzMzHiIiIiHZmZgAAAAAAAAAAAAEAAAAAAAAAAGZmZmZniIiIiHzMzMzMzMzMzMzMxAAAAAAA - AGzMzMzMzMzMzMzMeIiIiGZmAAAAAAERERmZmZmZmZmZkRERERAAAGZmZmZ4iIiIfMzMzMzMzMzMzMYA - AAAAAAbMzMzMzMzMzMzMeIiIiGZgAAAAERmZmZmZmZmZmZmZmZmZmZmZkREAAGZmZniIiIfMzMzMzMzM - zMzMYAAAAABMzMzMzMzMzMzMzIiIiHYAAAARGZmZiIiIj///////+IiIiIeZmZmZkREAZmZmiIiIfMzM - zMzMzMzMzMQAAAAAbMzMzMzMzMzMzO6IiIYAAAARmYiI/////////////////////4iHmZmZEQBmZmeI - iIh8zMzMzMzMzMzGAAAABMzMzMzMzMzMzMeIiIdgAAAZmI////////////////////////////iJmZmR - EGZmZ4iIh8zMzMzMzMzMzEAAAAbMzMzMzMzMzMzoiIhwAAAZeP////////////////////////////// - /4iZmZEAZmZ4iIh8zMzMzMzMzMxgAABMzMzMzMzMzMzOiIiGAAABiP////////////////////////// - ////////+JmZkQZmZ4iIh8zMzMzMzMzMxAAAbMzMzMzMzMzM7oiIYAABeP////////////////////// - ///////////////4mZkQZmZ4iIjMzMzMzMzMzMYAAMzMzMzMzMzMzu6IhwAAGP////////////////// - /////////////////////4iZmRZmZ4iIfMzMzMzMzMzMAAbMzMzMzMzMzM7oiHAAB4////////////// - ////////////////////////////iZmRBmZ4iIfMzMzMzMzMzGAGzMzMzMzMzMzuiIcAAHj///////// - //////////////////////////////////iZmRZmZ4iIzMzMzMzMzMxgDMzMzMzMzMzM7ohwAAf///// - ////////////////////////////////////////95mRZmaIiHzMzMzMzMzMwEzMzMzMzMzMzuiIEABo - //////////////////////////////////////////////95mRZmaIiMzMzMzMzMzMRszMzMzMzMzM7o - hwAGj///////////////////////////////////////////////95kQZmeIh8zMzMzMzMzGbMzMzMzM - zMzu6HEAB/////////////////////////////////////////////////+ZkQZmiIjMzMzMzMzMxmzM - zMzMzMzM7ohwAGj/////////////////////////////////////////////////iZkWZniIfMzMzMzM - zMZszMzMzMzMxu6HEAbv/4iI/////////////////////////////////////////4iP//iZEGZoiHzM - zMzMzMzGbMzMzMzMzM7uhxAGj/iIiIj//////////////////////////////////////4iIiI//mZFm - aIiMzMzMzMzMxszMzMzMzMzO6IEAbv+IiIiIj/////////////////////////////////////iIiIiP - /4mRBmeIh8zMzMzMzMbMzMzMzMzMbuhxAG7/iIiIiI////////////////iIj///j//////////////4 - iIiIiP/5mQZmiIfMzMzMzMzMzMzMzMzMzO7ocQDo+IiIiIiP///////////////u7u7u7u7o//////// - ////iIiIiIj/+JkWZoiHzMzMzMzMzMzMzMzMzMzu6BEG7/iIiIiIj/////////////+Hd3ju5maO7v// - /////////4iIiIiI//iZEGaIh8zMzMzMzMzMzMzMzMzM7ugRBu//iIiIiI//////////////kZmZdmAZ - mP/////////////4iIiIiP//mRBmeIjMzMzMzMzMzMzMzMzMzO7nEAbv/4iIiIiP////////////+HiI - mZEBd5n/////////////+IiIiIj//4mQZniIzMzMzMzMzMzMzMzMzMzu5xAO7//4iIiI//ju7o////// - //j//4mZeP/4//////////////iIiIiP//+JkGZ4iHzMzMzMzMzMzMzMzMzG7ocQDu///4iI//ju7u7u - j//////////4mP//////////////7u7uiIiI////iZBmaIh8zMzMzMzMzMzMzMzMzu6HEG7v//////+G - ZmZ47u7//////////4//////////////7u7u7u6P/////4mQBmiIfMzMzMzMzMzMzMzMzM7uhRBu7/// - ///3AAAAF37u7///////////////////////h2AABm7u7v/////5kAZ4iHzMzMzMzMzMzMzMzMzO7oUQ - bu//////gQAAZgEG7u//////////////////////+BAAAAAFfu6P////+ZAGeIjMzMzMzMzMzMzMzMzM - zu6FEG7v////+JEAAXhwAG7o/////////////////////4gAABEGARbu7/////kQBoiIzMzMzMzMzMzM - zMzMzM7uhRBu7/////iZABmZkQBm6P////////////////////+JABGZF2AAbo////+JEGaIiMzMzMzM - zMzMzMzMzMzO7ucRbu/////4mRZ4iZkQBu//////////////////////mQB5mZdgAG7/////iRBmiIfM - zMzMzMzMzMzMzMzMxu7nEQ7v////+Bl+j/iZEAaP/////////////////////5l2/4mRAABu/////4kQ - ZoiHzMzMzMzMzMzMzMzMzMzu5xEO6P//+Phgbu/4kQAI//////////////////////+Zfo/4kQAAeIiP - //+JEGaIh8zMzMzMzMzMzMzMzMzM7ucRBu7///iOYHiI+HAAf///////////////////////mYjv+BAA - BuiIj///iQBniIfMzMzMzMzMzMzMzMzMzO7nEQbu///3EAAG6IcRF4iP/////////////////////4GP - /4cQAAZnbv///5EAaIiMzMzMzMzMzMzMzMzMzMzu5xEW7v//iRF3dmZgAXjmj/////////////////// - ///3ePiBEQAHdm7///iRAGiIfMzMzMzMzMzMzMzMzMzM7u5xFu6P/5EZmXZmZmbmaP////////////// - ///////4/4d2cRAAFwbuj//4kQZoiHzMzMzMzMzMzMzMzMzMzG7ucRDu7/iXiZkQAAZmAH////////// - ////////////+IiIdmYABmAX//j/+BAGeIh8zMzMzMzMzMzMzMzMzMzO7nEQbu/4iP+BERkREZf///// - //////////////////+JmXdxEBEAB3////kQBoiIzMzMzMzMzMzMzMzMzMzMzu5xEW7o+P//gZmZmZmP - ////////////////////////+JmZmZmZl453//+JAGaIh8zMzMzMzMzMzMzMzMzMzM7u5xEO7vj/+IeP - iIj////////////////////////////4iZmZmZiPiP//cQBoiIfMzMzMzMzMzMzMzMzMzMzM7ucRFu6P - //iP//////////////////////////////////////+Jn/j/+JAAaIiMzMzMzMzMzMzMzMzMzMzMzO7n - ERbu7//4/////////////////////////////////////////4j///gQBoiIfMzMzMzMzMzMzMzMzMzM - zMzu7nERbuj////////////////////////////////////////////4//+BAAaIiMzMzMzMzMzMzMzM - zMzMzMzMzu5xEW7u////////////////////////////////////////////////cQBoiIfMzMzMzMzM - zMzMzMzMzMzMzM7u5xEW7u//////////////////////////////////////////////+BAAaIiMzMzM - zMzMzMzMzMzMzMzMzMzO7uYREO7o//7v//////////////////////////////////////////cABoiI - fMzMzMzMzMzMzMzMzMzMzMzMzO7ucRFu7oj/7o////////////////////////////////////////9x - AAeIiMzMzMzMzMzMzMzMzMzMzMzMzMzO7ucRFu7nePju7u7v//////////////////////////////// - 6P/4EAB4iIfMzMzMzMzMzMzMzMzMzMzMzMzMzu7nERBu7nmIiO7oj/////////////////////////// - ju7u7o//hwAGiIh8zMzMzMzMzMzMzMzMzMzMzMzMzMzu7nERbu7nmZl5eP////////////////////// - ///4iPiO5nj/+HAAaIiIzMzMzMzMzMzMzMzMzMzMzMzMzMzM7u7nERbu7oiZeI////////////////// - ////////+ImXd5mP/4cAAHiIh8zMzMzMzMzMzMzMzMzMzMzMzMzMzM7u53ERbu7v//////////////// - ///////////////4iZl4//hgAAeIiHzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM7u53ERBu7v////////// - //////////////////////////+GAAB4iI7MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzO7uiHEADujv//// - ///////////////////////////////3AAAGiIh8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzO7ohwABmP - ////////////////////////////////////iREAZniIjMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzuiI - EAB4f///////////////////////////////////+JmZkWZoiIfMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zO6IhwBo//////////////////////////////////////iImZl2ZoiIzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzuiHAA7////////////////////////////////////////4iZFmZ4iHzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzO6IgQBo/////4j///////////////////////////////////mZFmaIiMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzuiHAA7/////iIiP//////7o//////////////////iI/////4mRZmeIh8zMzMzM - zMzMzMzMzMzMzMzMzMzMzO6IcQBo////+IiIiI/////+7u7u7uiIiI7u7v////iIiI/////5mRZmiIjM - zMzMzMzMzMzMzMzMzMzMzMzMzMzuiHAA7////4iIiIiIj//3d2bu7u7u7u7u7u7//4iIiIiP////+JkW - ZniIfMzMzMzMzMzMzMzMzMzMzMzMzMzO6IcQBo////+IiIiIiI//+ZkAAGZmZmZmZmbv//iIiIiIiP// - //+ZkWZoiIzMzMzMzMzMzMzMzMzMzMzMzMzMzuiFAG7////4iIiIiIj///iZABEREREREBAG7//4iIiI - iIj/////iZFmaIiMzMzMzMzMzMzMzMzMzMzMzMzMzO6IcQBo////+IiIiIiI///4kQARERERERERDo// - +IiIiIiIj/////mZBmeIh8zMzMzMzMzMzMzMzMzMzMzMzMzuiHAG7////4iIiIiIiP//+JFmeHd3d3dx - EW6P//iIiIiIiI/////4mRZmiIfMzMzMzMzMzMzMzMzMzMzMzMzO7ocQBo////+IiIiIiIj///iQZoiO - 7u7u5xFu7//4iIiIiIiI////+JkWZniIzMzMzMzMzMzMzMzMzMzMzMzMzuiHEA7////4iIiIiIiP///5 - kGaIju7u7ucRbu///4iIiIiIiP////95kGZ4iHzMzMzMzMzMzMzMzMzMzMzMzM7ogQBu////+IiIiIiI - j///+RBmiI7u7u7nEW7v//+IiIiIiIiP////iZFmaIh8zMzMzMzMzMzMzMzMzMzMzMzu6HEAaP////iI - iIiIiI////kQZoiHzMzu5xEO6P//iIiIiIiIj////4mRZmiIjMzMzMzMzMzMzMzMzMzMzMzM7ugRBu// - ///4iIiIiIj///+JEGaIh8zM7ucRBu7//4iIiIiIiI/////5kQZniIzMzMzMzMzMzMzMzMzMzMzMzO6I - EAbv////iIiIiIiI////iQBniIzMzO7oERbu///4iIiIiIiP////+JkGZ4iHzMzMzMzMzMzMzMzMzMzM - zMbuhxAGj////4iIiIiIj////3kAaIiMzMzu7nEW7v//+IiIiIiIiP////iZFmaIh8zMzMzMzMzMzMzM - zMzMzMzO7oUQbv////+IiIiIiI////+RBmiIfMzMzu5xFu6P//+IiIiIiIj////4mRZmiIfMzMzMzMzM - zMzMzMzMzMzMzu6BAG7////4iIiIiIj////4kQZoiHzMzM7ucRDu7///iIiIiIiIj////5kQZoiHzMzM - zMzMzMzMzMzMzMzMzM7ocQBu////+IiIiIiI////+JAGeIh8zMzO7nERbu///4iIiIiIiI////95EGaI - h8zMzMzMzMzMzMzMzMzMzMxu6HEA7v////iIiIiIiP////cQBoiIzMzMzu7lEW7v///4iIiIiIiP//// - iRBmeIjMzMzMzMzMzMzMzMzMzMzM7uhxBuj////4iIiIiI/////5EAaIiMzMzMbu5xEO7v//+IiIiIiI - j////4kQZniIzMzMzMzMzMzMzMzMzMzMzO7oEQbv////+IiIiIj/////iQBmiIfMzMzM7ucRBu7///iI - iIiIiIj///+JkGZ4iMzMzMzMzMzMzMzMzMzMzMzu6BEG7/////iIiIiI/////4EAaIiHzMzMzO7nERbu - j///iIiIiIiI////iZBmaIh8zMzMzMzMzMzMzMzMzMzM7ucRBu/////4iIiIj/////+RAGiIjMzMzMzu - 7nEQ7u////iIiIiIiP///4mQBmiIfMzMzMzMzMzMzMzMzMzMzO7nEAbv////+IiIiP/////4EAZ4iHzM - zMzMzu5xEG7v///4iIiIiIj///+JkAZoiHzMzMzMzMzMxmzMzMzMzMzu5xAO7/////+IiI//////+RAG - iIjMzMzMzM7ucRFu7v///4iIiIiI////+ZAGaIh8zMzMzMzMzMZszMzMzMzG7ocQDu//////+I////// - /4EAZoiIzMzMzMzO7ucRBu7////4iIiIiP////mQBmiIfMzMzMzMzMzGbMzMzMzMzu6HEA7v//////// - //////9xAGiIh8zMzMzMzO7nERbu7///+IiIiI/////5kAZoiHzMzMzMzMzMxmzMzMzMzM7uhxAO7/// - ///////////4EABoiIzMzMzMzMzu7nEQbu////+IiIiP////+ZAGaIh8zMzMzMzMzMZszMzMzMzO7oUQ - Du//////////////9xAGiIh8zMzMzMzM7u5xEW7u/////4iI//////mQBmiIfMzMzMzMzMzGTMzMzMzM - zu6HEA7v/////////////4EABoiIzMzMzMzMzM7u5xEG7v/////////////5kAZoiHzMzMzMzMzMxAzM - zMzMzM7uhxEO7/////////////9wAGiIh8zMzMzMzMzO7ucRFu7v////////////+RAGeIh8zMzMzMzM - zMAGzMzMzMzO7ucRDuj////////////4EAB4iIzMzMzMzMzMzO7ucRBu6P///////////4kQBoiIzMzM - zMzMzMxgBszMzMzMxu7nEQbo////////////gQAGiIh8zMzMzMzMzMzu7nERDu7///////////+JEAaI - iMzMzMzMzMzMYADMzMzMzMzu5xEG7v///////////3EAZ4iIzMzMzMzMzMzMzu7nERbu7/////////// - gQBmiIfMzMzMzMzMzAAAbMzMzMzM7ucRBu7///////////gQAGiIh8zMzMzMzMzMzM7u5xEQbu7///// - /////5EAZ4iHzMzMzMzMzMYAAEzMzMzMzO7nERDu7/////////+HAAaIiIzMzMzMzMzMzMzM7u5xEQ7u - 7/////////gQAGiIjMzMzMzMzMzEAAAGzMzMzMzu7nEQbuj////////4cAAHiIh8zMzMzMzMzMzMzO7u - dxEW7uj////////3AAZoiHzMzMzMzMzMYAAABMzMzMzM7u5xEG7u////////hgAAeIiHzMzMzMzMzMzM - zMzO7ucREW7u7///////gQAGiIh8zMzMzMzMzEAAAABszMzMzM7ucREG7uj/////hmAAB4iI7MzMzMzM - zMzMzMzMzu7ucREG7u6P////+AAAB4iIzMzMzMzMzMYAAAAATMzMzMzO7ucREG7u7oiO7mAAAHiIiMzM - zMzMzMzMzMzMzMzu7ucREG7u7o//+HYAAHiIh8zMzMzMzMzEAAAAAAbMzMzMzu7nEREG7u7u5mAAAAeI - iIfMzMzMzMzMzMzMzMzMzu7ucREQbu7u7uYAAAeIiHzMzMzMzMzMYAAAAAAAbMzMzMzu7nEREAZmZgAA - AAF4iI58zMzMzMzMzMzMzMzMzMzu7ncREQZm7mZgAAB4iI7MzMzMzMzMxgAAAAAAAEzMzMzM7u7nEREQ - AAAAABF4iI7uzMzMzMzMzMzMzMzMzMzM7u7ucRERAAAAAAAHiIiMzMzMzMzMzMQAAAAAAAAGzMzMzM7u - 7nERERERERF3iIju7MzMzMzMzMzMzMzMzMzMzM7u7udREREQAAAReIiIfMzMzMzMzMxgAAAAAAAAAGzM - zMzM7u7udRERERV4iI7u7MzMzMzMzMzMzMzMzMzMzMzM7u7u5xEREREReIiO7MzMzMzMzMzGAAAAAAAA - AAAGzMzMzM7u7u53d3eIiO7u7szMzMzMzMzMzMzMzMzMzMzMzM7u7u7nd1F3eIiO7uzMzMzMzMzMYAAA - AAAAAAAAAGzMzMzM7u7u7u7u7u7u7szMzMzMzMzMzMzMzMzMzMzMzMzMzu7u7u6IiI7u7uzMzMzMzMzM - xgAAAAAAAAAAAAAGzMzMzMzu7u7u7u7u5szMzMzMzMzMzMzMzMzMzMzMzMzMzMzO7u7u7u7u7u7MzMzM - zMzMzGAAAAAAAAAAAAAAAEbMzMzMzG7u7u7ubMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM7u7u7u7uzM - zMzMzMzMzGQAAAAAAAAAAAAAAAAAbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzG7u - 7szMzMzMzMzMzMYAAAAAAAAAAAAAAAAAAARszMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAABGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAAAABmzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzGYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARGZmzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZmZEAAAAAAAAAAAAAAAAD////+AAAAAAAAAAD/////////AAAA - AAAAAAAAAP//////+AAAAAAAAAAAAAAf/////+AAAAAAAAAAAAAAB/////+AAAAAAAAAAAAAAAH////+ - AAAAAAAAAAAAAAAAf////AAAAAAAAAAAAAAAAD////AAAAAAAAAAAAAAAAAP///gAAAAAAAAAAAAAAAA - B///wAAAAAAAAAAAAAAAAAP//4AAAAAAAAAAAAAAAAAB//8AAAAAAAAAAAAAAAAAAP/+AAAAAAAAAAAA - AAAAAAB//gAAAAAAAAAAAAAAAAAAf/wAAAAAAAAAAAAAAAAAAD/4AAAAAAAAAAAAAAAAAAAf+AAAAAAA - AAAAAAAAAAAAH/AAAAAAAAAAAAAAAAAAAA/wAAAAAAAAAAAAAAAAAAAP4AAAAAAAAAAAAAAAAAAAB+AA - AAAAAAAAAAAAAAAAAAfAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAAAAA - AAOAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAA - AAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAABAAAAAAAA - AAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAA - AAGAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAA - AAAAAAABgAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAPAAAAAAAAAAAAAAAAAAAADwAAAAAAA - AAAAAAAAAAAAA+AAAAAAAAAAAAAAAAAAAAfgAAAAAAAAAAAAAAAAAAAH8AAAAAAAAAAAAAAAAAAAD/AA - AAAAAAAAAAAAAAAAAA/4AAAAAAAAAAAAAAAAAAAf+AAAAAAAAAAAAAAAAAAAH/wAAAAAAAAAAAAAAAAA - AD/+AAAAAAAAAAAAAAAAAAB//gAAAAAAAAAAAAAAAAAAf/8AAAAAAAAAAAAAAAAAAP//gAAAAAAAAAAA - AAAAAAH//8AAAAAAAAAAAAAAAAAD///gAAAAAAAAAAAAAAAAB///8AAAAAAAAAAAAAAAAA////wAAAAA - AAAAAAAAAAA////+AAAAAAAAAAAAAAAAf////4AAAAAAAAAAAAAAAf/////gAAAAAAAAAAAAAAf///// - +AAAAAAAAAAAAAAf//////8AAAAAAAAAAAAA/////////gAAAAAAAAAAf////w== - - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/Old/ViolateManageForm.Designer.cs b/TEMUKJD/KJDForms/ProductForms/Old/ViolateManageForm.Designer.cs deleted file mode 100644 index 4c2d6fd..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/ViolateManageForm.Designer.cs +++ /dev/null @@ -1,991 +0,0 @@ -namespace TemuKJD.KJDForms.ProductForms -{ - partial class ViolateManageForm - { - /// - /// 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(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.panelEx2 = new DevComponents.DotNetBar.PanelEx(); - this.btnImport = new DevComponents.DotNetBar.PanelEx(); - this.ucGroupBoxEx3 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.chkOperateOffSale = new System.Windows.Forms.CheckBox(); - this.chkOperateDataBase = new System.Windows.Forms.CheckBox(); - this.chkOperateOnSale = new System.Windows.Forms.CheckBox(); - this.btnStartTroubleShooting = new DevComponents.DotNetBar.PanelEx(); - this.btnStop = new DevComponents.DotNetBar.PanelEx(); - this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.panel1 = new System.Windows.Forms.Panel(); - this.llClear = new TemuKJD.UserComponent.LinkLabelLc(); - this.llSelectSerious = new TemuKJD.UserComponent.LinkLabelLc(); - this.llSelectAllRule = new TemuKJD.UserComponent.LinkLabelLc(); - this.flpViolate = new System.Windows.Forms.FlowLayoutPanel(); - this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.btnRefreshShop = new TemuKJD.UserControls.ButtonEx(); - this.splitContainer3 = new System.Windows.Forms.SplitContainer(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colAuthStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.panelEx1 = new DevComponents.DotNetBar.PanelEx(); - this.ucTabControl1 = new TemuKJD.UserComponent.UcTabControl(); - this.tabPageCheckResult = new System.Windows.Forms.TabPage(); - this.dgvCheck = new TemuKJD.UserComponent.DataGridViewEx(); - this.tabPageViolateFileList = new System.Windows.Forms.TabPage(); - this.dgvViolateFileData = new TemuKJD.UserComponent.DataGridViewEx(); - this.splitContainer4 = new System.Windows.Forms.SplitContainer(); - this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); - this.btnClear = new DevComponents.DotNetBar.PanelEx(); - this.dataGridViewCheckBoxColumn1 = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.col_dir = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.col_file_name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.col_penalize_id = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.col_business_id = new System.Windows.Forms.DataGridViewLinkColumn(); - this.col_up_id = new System.Windows.Forms.DataGridViewLinkColumn(); - this.col_from = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.col_from_fake = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.col_rule_name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.col_against_detail = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.col_operate = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.col_result_select = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.col_result_data_from = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.col_result_shop_id = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.col_result_shop_name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.col_result_product_id = new System.Windows.Forms.DataGridViewLinkColumn(); - this.col_result_up_id = new System.Windows.Forms.DataGridViewLinkColumn(); - this.col_result_from = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.col_result_from_fake = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.col_result_rule_names = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.col_result_check_time = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.col_result_status = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - this.ucGroupBoxEx3.SuspendLayout(); - this.ucGroupBoxEx2.SuspendLayout(); - this.panel1.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.dgvShop)).BeginInit(); - this.panelEx1.SuspendLayout(); - this.ucTabControl1.SuspendLayout(); - this.tabPageCheckResult.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgvCheck)).BeginInit(); - this.tabPageViolateFileList.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgvViolateFileData)).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.panelEx2); - this.splitContainer1.Panel1.Controls.Add(this.btnImport); - this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx3); - this.splitContainer1.Panel1.Controls.Add(this.btnStartTroubleShooting); - this.splitContainer1.Panel1.Controls.Add(this.btnStop); - this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx2); - this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx1); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.splitContainer3); - this.splitContainer1.Size = new System.Drawing.Size(1126, 590); - this.splitContainer1.SplitterDistance = 160; - this.splitContainer1.TabIndex = 4; - // - // panelEx2 - // - this.panelEx2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.panelEx2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.panelEx2.Cursor = System.Windows.Forms.Cursors.Hand; - this.panelEx2.DisabledBackColor = System.Drawing.Color.Empty; - this.panelEx2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.panelEx2.Location = new System.Drawing.Point(1008, 12); - this.panelEx2.Name = "panelEx2"; - this.panelEx2.Size = new System.Drawing.Size(108, 23); - this.panelEx2.Style.Alignment = System.Drawing.StringAlignment.Center; - this.panelEx2.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.panelEx2.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.panelEx2.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.panelEx2.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.panelEx2.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.panelEx2.Style.ForeColor.Color = System.Drawing.Color.White; - this.panelEx2.Style.GradientAngle = 90; - this.panelEx2.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.panelEx2.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.panelEx2.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.panelEx2.TabIndex = 456; - this.panelEx2.Text = "删除选中违规商品"; - this.panelEx2.Click += new System.EventHandler(this.BtnDelViolate_Click); - // - // btnImport - // - this.btnImport.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnImport.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnImport.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnImport.DisabledBackColor = System.Drawing.Color.Empty; - this.btnImport.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnImport.Location = new System.Drawing.Point(922, 12); - this.btnImport.Name = "btnImport"; - this.btnImport.Size = new System.Drawing.Size(80, 23); - this.btnImport.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnImport.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnImport.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnImport.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnImport.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnImport.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnImport.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnImport.Style.GradientAngle = 90; - this.btnImport.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnImport.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnImport.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnImport.TabIndex = 427; - this.btnImport.Text = "导入罚单"; - this.btnImport.Click += new System.EventHandler(this.btnImport_Click); - // - // ucGroupBoxEx3 - // - this.ucGroupBoxEx3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left))); - this.ucGroupBoxEx3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.ucGroupBoxEx3.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND; - this.ucGroupBoxEx3.Controls.Add(this.chkOperateOffSale); - this.ucGroupBoxEx3.Controls.Add(this.chkOperateDataBase); - this.ucGroupBoxEx3.Controls.Add(this.chkOperateOnSale); - this.ucGroupBoxEx3.Location = new System.Drawing.Point(147, 2); - this.ucGroupBoxEx3.Name = "ucGroupBoxEx3"; - this.ucGroupBoxEx3.Size = new System.Drawing.Size(191, 160); - this.ucGroupBoxEx3.TabIndex = 423; - this.ucGroupBoxEx3.TabStop = false; - this.ucGroupBoxEx3.Text = "排查违规选项"; - // - // chkOperateOffSale - // - this.chkOperateOffSale.AutoSize = true; - this.chkOperateOffSale.Checked = true; - this.chkOperateOffSale.CheckState = System.Windows.Forms.CheckState.Checked; - this.chkOperateOffSale.Location = new System.Drawing.Point(95, 60); - this.chkOperateOffSale.Name = "chkOperateOffSale"; - this.chkOperateOffSale.Size = new System.Drawing.Size(75, 21); - this.chkOperateOffSale.TabIndex = 435; - this.chkOperateOffSale.Text = "排查仓库"; - this.chkOperateOffSale.UseVisualStyleBackColor = true; - // - // chkOperateDataBase - // - this.chkOperateDataBase.AutoSize = true; - this.chkOperateDataBase.Checked = true; - this.chkOperateDataBase.CheckState = System.Windows.Forms.CheckState.Checked; - this.chkOperateDataBase.Location = new System.Drawing.Point(15, 33); - this.chkOperateDataBase.Name = "chkOperateDataBase"; - this.chkOperateDataBase.Size = new System.Drawing.Size(111, 21); - this.chkOperateDataBase.TabIndex = 434; - this.chkOperateDataBase.Text = "排查产品数据库"; - this.chkOperateDataBase.UseVisualStyleBackColor = true; - // - // chkOperateOnSale - // - this.chkOperateOnSale.AutoSize = true; - this.chkOperateOnSale.Checked = true; - this.chkOperateOnSale.CheckState = System.Windows.Forms.CheckState.Checked; - this.chkOperateOnSale.Location = new System.Drawing.Point(15, 60); - this.chkOperateOnSale.Name = "chkOperateOnSale"; - this.chkOperateOnSale.Size = new System.Drawing.Size(75, 21); - this.chkOperateOnSale.TabIndex = 433; - this.chkOperateOnSale.Text = "排查在售"; - this.chkOperateOnSale.UseVisualStyleBackColor = true; - // - // btnStartTroubleShooting - // - this.btnStartTroubleShooting.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnStartTroubleShooting.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnStartTroubleShooting.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnStartTroubleShooting.DisabledBackColor = System.Drawing.Color.Empty; - this.btnStartTroubleShooting.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnStartTroubleShooting.Location = new System.Drawing.Point(922, 41); - this.btnStartTroubleShooting.Name = "btnStartTroubleShooting"; - this.btnStartTroubleShooting.Size = new System.Drawing.Size(80, 23); - this.btnStartTroubleShooting.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnStartTroubleShooting.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStartTroubleShooting.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStartTroubleShooting.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnStartTroubleShooting.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnStartTroubleShooting.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnStartTroubleShooting.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnStartTroubleShooting.Style.GradientAngle = 90; - this.btnStartTroubleShooting.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnStartTroubleShooting.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnStartTroubleShooting.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnStartTroubleShooting.TabIndex = 409; - this.btnStartTroubleShooting.Text = "开始排查"; - this.btnStartTroubleShooting.Click += new System.EventHandler(this.btnStartTroubleShooting_Click); - // - // btnStop - // - this.btnStop.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - 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(1008, 41); - this.btnStop.Name = "btnStop"; - this.btnStop.Size = new System.Drawing.Size(108, 23); - this.btnStop.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnStop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStop.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnStop.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStop.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnStop.Style.GradientAngle = 90; - this.btnStop.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnStop.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnStop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStop.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnStop.TabIndex = 405; - this.btnStop.Text = "停止操作"; - this.btnStop.Click += new System.EventHandler(this.btnStop_Click); - // - // ucGroupBoxEx2 - // - this.ucGroupBoxEx2.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.ucGroupBoxEx2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.ucGroupBoxEx2.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND; - this.ucGroupBoxEx2.Controls.Add(this.panel1); - this.ucGroupBoxEx2.Controls.Add(this.flpViolate); - this.ucGroupBoxEx2.Location = new System.Drawing.Point(338, 2); - this.ucGroupBoxEx2.Name = "ucGroupBoxEx2"; - this.ucGroupBoxEx2.Padding = new System.Windows.Forms.Padding(5, 3, 5, 5); - this.ucGroupBoxEx2.Size = new System.Drawing.Size(578, 160); - this.ucGroupBoxEx2.TabIndex = 400; - this.ucGroupBoxEx2.TabStop = false; - this.ucGroupBoxEx2.Text = "排查违规类型"; - // - // panel1 - // - this.panel1.Controls.Add(this.llClear); - this.panel1.Controls.Add(this.llSelectSerious); - this.panel1.Controls.Add(this.llSelectAllRule); - this.panel1.Location = new System.Drawing.Point(93, 0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(217, 20); - this.panel1.TabIndex = 470; - // - // llClear - // - this.llClear.AutoSize = true; - this.llClear.Location = new System.Drawing.Point(159, 1); - this.llClear.Name = "llClear"; - this.llClear.Size = new System.Drawing.Size(56, 17); - this.llClear.TabIndex = 2; - this.llClear.TabStop = true; - this.llClear.Text = "清除选择"; - this.llClear.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.llClear_LinkClicked); - // - // llSelectSerious - // - this.llSelectSerious.AutoSize = true; - this.llSelectSerious.Location = new System.Drawing.Point(81, 1); - this.llSelectSerious.Name = "llSelectSerious"; - this.llSelectSerious.Size = new System.Drawing.Size(80, 17); - this.llSelectSerious.TabIndex = 1; - this.llSelectSerious.TabStop = true; - this.llSelectSerious.Text = "选择严重违规"; - this.llSelectSerious.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.llSelectSerious_LinkClicked); - // - // llSelectAllRule - // - this.llSelectAllRule.AutoSize = true; - this.llSelectAllRule.Location = new System.Drawing.Point(3, 1); - this.llSelectAllRule.Name = "llSelectAllRule"; - this.llSelectAllRule.Size = new System.Drawing.Size(80, 17); - this.llSelectAllRule.TabIndex = 0; - this.llSelectAllRule.TabStop = true; - this.llSelectAllRule.Text = "选择全部违规"; - this.llSelectAllRule.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.llSelectAllRule_LinkClicked); - // - // flpViolate - // - this.flpViolate.AutoScroll = true; - this.flpViolate.Dock = System.Windows.Forms.DockStyle.Fill; - this.flpViolate.Location = new System.Drawing.Point(5, 19); - this.flpViolate.Name = "flpViolate"; - this.flpViolate.Size = new System.Drawing.Size(568, 136); - this.flpViolate.TabIndex = 0; - // - // 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.btnRefreshShop); - this.ucGroupBoxEx1.Location = new System.Drawing.Point(3, 2); - this.ucGroupBoxEx1.Name = "ucGroupBoxEx1"; - this.ucGroupBoxEx1.Size = new System.Drawing.Size(144, 160); - this.ucGroupBoxEx1.TabIndex = 399; - this.ucGroupBoxEx1.TabStop = false; - this.ucGroupBoxEx1.Text = "基础"; - // - // btnRefreshShop - // - this.btnRefreshShop.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRefreshShop.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnRefreshShop.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnRefreshShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnRefreshShop.ForeColor = System.Drawing.Color.White; - this.btnRefreshShop.Location = new System.Drawing.Point(16, 30); - this.btnRefreshShop.Margin = new System.Windows.Forms.Padding(2); - this.btnRefreshShop.Name = "btnRefreshShop"; - this.btnRefreshShop.Size = new System.Drawing.Size(112, 26); - this.btnRefreshShop.TabIndex = 375; - this.btnRefreshShop.Text = "刷新店铺状态"; - this.btnRefreshShop.UseVisualStyleBackColor = false; - this.btnRefreshShop.Click += new System.EventHandler(this.btnRefreshShop_Click); - // - // 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(1126, 426); - this.splitContainer3.SplitterDistance = 396; - 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.dgvShop); - this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 0, 0); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Controls.Add(this.panelEx1); - this.splitContainer2.Panel2.Padding = new System.Windows.Forms.Padding(0, 0, 4, 0); - this.splitContainer2.Size = new System.Drawing.Size(1126, 396); - this.splitContainer2.SplitterDistance = 336; - this.splitContainer2.TabIndex = 0; - // - // dgvShop - // - this.dgvShop.AllowUserToAddRows = false; - this.dgvShop.AllowUserToDeleteRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - 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.colShopId, - this.colShopName, - this.colAuthStatus, - this.colMessage}); - this.dgvShop.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvShop.Location = new System.Drawing.Point(4, 0); - this.dgvShop.Name = "dgvShop"; - this.dgvShop.ReadOnly = true; - this.dgvShop.RowHeadersWidth = 30; - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvShop.RowsDefaultCellStyle = dataGridViewCellStyle3; - this.dgvShop.RowTemplate.Height = 23; - this.dgvShop.Size = new System.Drawing.Size(332, 396); - this.dgvShop.TabIndex = 6; - this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick); - // - // colSelect - // - 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; - // - // colShopId - // - this.colShopId.HeaderText = "店铺"; - this.colShopId.Name = "colShopId"; - this.colShopId.ReadOnly = true; - this.colShopId.Width = 55; - // - // colShopName - // - this.colShopName.FillWeight = 150F; - this.colShopName.HeaderText = "店铺名称"; - this.colShopName.Name = "colShopName"; - this.colShopName.ReadOnly = true; - this.colShopName.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colShopName.Width = 75; - // - // colAuthStatus - // - this.colAuthStatus.HeaderText = "授权状态"; - this.colAuthStatus.Name = "colAuthStatus"; - this.colAuthStatus.ReadOnly = true; - this.colAuthStatus.Width = 65; - // - // colMessage - // - this.colMessage.HeaderText = "消息"; - this.colMessage.Name = "colMessage"; - this.colMessage.ReadOnly = true; - this.colMessage.Width = 120; - // - // panelEx1 - // - this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control; - this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.panelEx1.Controls.Add(this.ucTabControl1); - this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty; - this.panelEx1.Dock = System.Windows.Forms.DockStyle.Fill; - this.panelEx1.Location = new System.Drawing.Point(0, 0); - this.panelEx1.Name = "panelEx1"; - this.panelEx1.Padding = new System.Windows.Forms.Padding(1); - this.panelEx1.Size = new System.Drawing.Size(782, 396); - this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center; - this.panelEx1.Style.BackColor1.Color = System.Drawing.Color.White; - this.panelEx1.Style.BackColor2.Color = System.Drawing.Color.White; - 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.TabIndex = 183; - // - // ucTabControl1 - // - this.ucTabControl1.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(251)))), ((int)(((byte)(251)))), ((int)(((byte)(251))))); - this.ucTabControl1.Controls.Add(this.tabPageCheckResult); - this.ucTabControl1.Controls.Add(this.tabPageViolateFileList); - this.ucTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.ucTabControl1.Location = new System.Drawing.Point(1, 1); - this.ucTabControl1.Name = "ucTabControl1"; - this.ucTabControl1.SelectedIndex = 0; - this.ucTabControl1.ShowCloseButton = false; - this.ucTabControl1.Size = new System.Drawing.Size(780, 394); - this.ucTabControl1.TabIndex = 0; - this.ucTabControl1.TabSelectColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.ucTabControl1.TabTextColor = System.Drawing.Color.Gray; - this.ucTabControl1.SelectedIndexChanged += new System.EventHandler(this.ucTabControl1_SelectedIndexChanged); - // - // tabPageCheckResult - // - this.tabPageCheckResult.Controls.Add(this.dgvCheck); - this.tabPageCheckResult.Location = new System.Drawing.Point(2, 26); - this.tabPageCheckResult.Name = "tabPageCheckResult"; - this.tabPageCheckResult.Padding = new System.Windows.Forms.Padding(3); - this.tabPageCheckResult.Size = new System.Drawing.Size(774, 364); - this.tabPageCheckResult.TabIndex = 0; - this.tabPageCheckResult.Text = "排查结果"; - this.tabPageCheckResult.UseVisualStyleBackColor = true; - // - // dgvCheck - // - this.dgvCheck.AllowUserToAddRows = false; - this.dgvCheck.AllowUserToDeleteRows = false; - dataGridViewCellStyle4.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvCheck.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4; - this.dgvCheck.BackgroundColor = System.Drawing.Color.White; - this.dgvCheck.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dgvCheck.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5; - this.dgvCheck.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgvCheck.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.col_result_select, - this.col_result_data_from, - this.col_result_shop_id, - this.col_result_shop_name, - this.col_result_product_id, - this.col_result_up_id, - this.col_result_from, - this.col_result_from_fake, - this.col_result_rule_names, - this.col_result_check_time, - this.col_result_status, - this.dataGridViewTextBoxColumn5}); - this.dgvCheck.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvCheck.Location = new System.Drawing.Point(3, 3); - this.dgvCheck.Name = "dgvCheck"; - this.dgvCheck.ReadOnly = true; - this.dgvCheck.RowHeadersWidth = 48; - dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvCheck.RowsDefaultCellStyle = dataGridViewCellStyle6; - this.dgvCheck.RowTemplate.Height = 23; - this.dgvCheck.Size = new System.Drawing.Size(768, 358); - this.dgvCheck.TabIndex = 8; - this.dgvCheck.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvCheck_CellContentClick); - this.dgvCheck.CellMouseDown += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvCheck_CellMouseDown); - this.dgvCheck.CellMouseEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvCheck_CellMouseEnter); - // - // tabPageViolateFileList - // - this.tabPageViolateFileList.Controls.Add(this.dgvViolateFileData); - this.tabPageViolateFileList.Location = new System.Drawing.Point(2, 26); - this.tabPageViolateFileList.Name = "tabPageViolateFileList"; - this.tabPageViolateFileList.Padding = new System.Windows.Forms.Padding(3); - this.tabPageViolateFileList.Size = new System.Drawing.Size(774, 364); - this.tabPageViolateFileList.TabIndex = 1; - this.tabPageViolateFileList.Text = "罚单数据"; - this.tabPageViolateFileList.UseVisualStyleBackColor = true; - // - // dgvViolateFileData - // - this.dgvViolateFileData.AllowUserToAddRows = false; - this.dgvViolateFileData.AllowUserToDeleteRows = false; - dataGridViewCellStyle7.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvViolateFileData.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle7; - this.dgvViolateFileData.BackgroundColor = System.Drawing.Color.White; - this.dgvViolateFileData.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle8.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dgvViolateFileData.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8; - this.dgvViolateFileData.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgvViolateFileData.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.dataGridViewCheckBoxColumn1, - this.col_dir, - this.col_file_name, - this.col_penalize_id, - this.col_business_id, - this.col_up_id, - this.col_from, - this.col_from_fake, - this.col_rule_name, - this.col_against_detail, - this.col_operate}); - this.dgvViolateFileData.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvViolateFileData.Location = new System.Drawing.Point(3, 3); - this.dgvViolateFileData.Name = "dgvViolateFileData"; - this.dgvViolateFileData.ReadOnly = true; - this.dgvViolateFileData.RowHeadersWidth = 48; - dataGridViewCellStyle9.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvViolateFileData.RowsDefaultCellStyle = dataGridViewCellStyle9; - this.dgvViolateFileData.RowTemplate.Height = 23; - this.dgvViolateFileData.Size = new System.Drawing.Size(768, 358); - this.dgvViolateFileData.TabIndex = 7; - this.dgvViolateFileData.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvViolateFileData_CellContentClick); - // - // 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.Size = new System.Drawing.Size(1126, 26); - this.splitContainer4.SplitterDistance = 1011; - 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(1011, 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(17, 0); - 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.Click += new System.EventHandler(this.btnClear_Click); - // - // dataGridViewCheckBoxColumn1 - // - 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.Visible = false; - this.dataGridViewCheckBoxColumn1.Width = 40; - // - // col_dir - // - this.col_dir.HeaderText = "路径"; - this.col_dir.Name = "col_dir"; - this.col_dir.ReadOnly = true; - // - // col_file_name - // - this.col_file_name.HeaderText = "文件名"; - this.col_file_name.Name = "col_file_name"; - this.col_file_name.ReadOnly = true; - // - // col_penalize_id - // - this.col_penalize_id.HeaderText = "罚单编号"; - this.col_penalize_id.Name = "col_penalize_id"; - this.col_penalize_id.ReadOnly = true; - this.col_penalize_id.Width = 130; - // - // col_business_id - // - this.col_business_id.HeaderText = "商品编号"; - this.col_business_id.Name = "col_business_id"; - this.col_business_id.ReadOnly = true; - this.col_business_id.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.col_business_id.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.col_business_id.Width = 130; - // - // col_up_id - // - this.col_up_id.HeaderText = "上家编号"; - this.col_up_id.Name = "col_up_id"; - this.col_up_id.ReadOnly = true; - this.col_up_id.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.col_up_id.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.col_up_id.Width = 130; - // - // col_from - // - this.col_from.HeaderText = "来源"; - this.col_from.Name = "col_from"; - this.col_from.ReadOnly = true; - this.col_from.Visible = false; - this.col_from.Width = 80; - // - // col_from_fake - // - this.col_from_fake.HeaderText = "来源"; - this.col_from_fake.Name = "col_from_fake"; - this.col_from_fake.ReadOnly = true; - // - // col_rule_name - // - this.col_rule_name.HeaderText = "违规类型"; - this.col_rule_name.Name = "col_rule_name"; - this.col_rule_name.ReadOnly = true; - this.col_rule_name.Width = 280; - // - // col_against_detail - // - this.col_against_detail.HeaderText = "违规详情"; - this.col_against_detail.Name = "col_against_detail"; - this.col_against_detail.ReadOnly = true; - this.col_against_detail.Visible = false; - // - // col_operate - // - this.col_operate.HeaderText = "操作"; - this.col_operate.Name = "col_operate"; - this.col_operate.ReadOnly = true; - this.col_operate.Visible = false; - this.col_operate.Width = 80; - // - // col_result_select - // - this.col_result_select.HeaderText = "选择"; - this.col_result_select.Name = "col_result_select"; - this.col_result_select.ReadOnly = true; - this.col_result_select.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.col_result_select.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.col_result_select.Width = 40; - // - // col_result_data_from - // - this.col_result_data_from.HeaderText = "违规来源"; - this.col_result_data_from.Name = "col_result_data_from"; - this.col_result_data_from.ReadOnly = true; - this.col_result_data_from.Width = 120; - // - // col_result_shop_id - // - this.col_result_shop_id.HeaderText = "店铺编号"; - this.col_result_shop_id.Name = "col_result_shop_id"; - this.col_result_shop_id.ReadOnly = true; - this.col_result_shop_id.Visible = false; - // - // col_result_shop_name - // - this.col_result_shop_name.HeaderText = "店铺名称"; - this.col_result_shop_name.Name = "col_result_shop_name"; - this.col_result_shop_name.ReadOnly = true; - // - // col_result_product_id - // - this.col_result_product_id.HeaderText = "商品编号"; - this.col_result_product_id.Name = "col_result_product_id"; - this.col_result_product_id.ReadOnly = true; - this.col_result_product_id.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.col_result_product_id.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.col_result_product_id.Width = 130; - // - // col_result_up_id - // - this.col_result_up_id.HeaderText = "上家编号"; - this.col_result_up_id.Name = "col_result_up_id"; - this.col_result_up_id.ReadOnly = true; - this.col_result_up_id.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.col_result_up_id.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.col_result_up_id.Width = 130; - // - // col_result_from - // - this.col_result_from.HeaderText = "来源"; - this.col_result_from.Name = "col_result_from"; - this.col_result_from.ReadOnly = true; - this.col_result_from.Visible = false; - this.col_result_from.Width = 80; - // - // col_result_from_fake - // - this.col_result_from_fake.HeaderText = "来源"; - this.col_result_from_fake.Name = "col_result_from_fake"; - this.col_result_from_fake.ReadOnly = true; - this.col_result_from_fake.Width = 80; - // - // col_result_rule_names - // - this.col_result_rule_names.HeaderText = "违规类型"; - this.col_result_rule_names.Name = "col_result_rule_names"; - this.col_result_rule_names.ReadOnly = true; - this.col_result_rule_names.Width = 280; - // - // col_result_check_time - // - this.col_result_check_time.HeaderText = "排查时间"; - this.col_result_check_time.Name = "col_result_check_time"; - this.col_result_check_time.ReadOnly = true; - // - // col_result_status - // - this.col_result_status.HeaderText = "处理状态"; - this.col_result_status.Name = "col_result_status"; - this.col_result_status.ReadOnly = true; - this.col_result_status.Width = 150; - // - // dataGridViewTextBoxColumn5 - // - this.dataGridViewTextBoxColumn5.HeaderText = "操作"; - this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5"; - this.dataGridViewTextBoxColumn5.ReadOnly = true; - this.dataGridViewTextBoxColumn5.Visible = false; - this.dataGridViewTextBoxColumn5.Width = 80; - // - // ViolateManageForm - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1126, 590); - this.Controls.Add(this.splitContainer1); - this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Name = "ViolateManageForm"; - this.Text = "云违规排查"; - this.Load += new System.EventHandler(this.ViolateManageForm_Load); - this.VisibleChanged += new System.EventHandler(this.ViolateManageForm_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.ucGroupBoxEx2.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.panel1.PerformLayout(); - this.ucGroupBoxEx1.ResumeLayout(false); - 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.dgvShop)).EndInit(); - this.panelEx1.ResumeLayout(false); - this.ucTabControl1.ResumeLayout(false); - this.tabPageCheckResult.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.dgvCheck)).EndInit(); - this.tabPageViolateFileList.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.dgvViolateFileData)).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 DevComponents.DotNetBar.PanelEx btnStartTroubleShooting; - private DevComponents.DotNetBar.PanelEx btnStop; - private UserComponent.UcGroupBoxEx ucGroupBoxEx2; - private UserComponent.UcGroupBoxEx ucGroupBoxEx1; - private System.Windows.Forms.SplitContainer splitContainer3; - private System.Windows.Forms.SplitContainer splitContainer2; - private UserComponent.DataGridViewEx dgvShop; - private System.Windows.Forms.SplitContainer splitContainer4; - private UserControls.StatusBarUserControl statusBar; - private UserControls.ButtonEx btnRefreshShop; - private UserComponent.UcGroupBoxEx ucGroupBoxEx3; - private System.Windows.Forms.FlowLayoutPanel flpViolate; - private System.Windows.Forms.CheckBox chkOperateOnSale; - private System.Windows.Forms.CheckBox chkOperateDataBase; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopId; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopName; - private System.Windows.Forms.DataGridViewTextBoxColumn colAuthStatus; - private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; - private System.Windows.Forms.CheckBox chkOperateOffSale; - private DevComponents.DotNetBar.PanelEx btnImport; - private DevComponents.DotNetBar.PanelEx panelEx1; - private UserComponent.UcTabControl ucTabControl1; - private System.Windows.Forms.TabPage tabPageCheckResult; - private System.Windows.Forms.TabPage tabPageViolateFileList; - private UserComponent.DataGridViewEx dgvViolateFileData; - private DevComponents.DotNetBar.PanelEx btnClear; - private UserComponent.DataGridViewEx dgvCheck; - private DevComponents.DotNetBar.PanelEx panelEx2; - private System.Windows.Forms.Panel panel1; - private UserComponent.LinkLabelLc llSelectAllRule; - private UserComponent.LinkLabelLc llClear; - private UserComponent.LinkLabelLc llSelectSerious; - private System.Windows.Forms.DataGridViewCheckBoxColumn col_result_select; - private System.Windows.Forms.DataGridViewTextBoxColumn col_result_data_from; - private System.Windows.Forms.DataGridViewTextBoxColumn col_result_shop_id; - private System.Windows.Forms.DataGridViewTextBoxColumn col_result_shop_name; - private System.Windows.Forms.DataGridViewLinkColumn col_result_product_id; - private System.Windows.Forms.DataGridViewLinkColumn col_result_up_id; - private System.Windows.Forms.DataGridViewTextBoxColumn col_result_from; - private System.Windows.Forms.DataGridViewTextBoxColumn col_result_from_fake; - private System.Windows.Forms.DataGridViewTextBoxColumn col_result_rule_names; - private System.Windows.Forms.DataGridViewTextBoxColumn col_result_check_time; - private System.Windows.Forms.DataGridViewTextBoxColumn col_result_status; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5; - private System.Windows.Forms.DataGridViewCheckBoxColumn dataGridViewCheckBoxColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn col_dir; - private System.Windows.Forms.DataGridViewTextBoxColumn col_file_name; - private System.Windows.Forms.DataGridViewTextBoxColumn col_penalize_id; - private System.Windows.Forms.DataGridViewLinkColumn col_business_id; - private System.Windows.Forms.DataGridViewLinkColumn col_up_id; - private System.Windows.Forms.DataGridViewTextBoxColumn col_from; - private System.Windows.Forms.DataGridViewTextBoxColumn col_from_fake; - private System.Windows.Forms.DataGridViewTextBoxColumn col_rule_name; - private System.Windows.Forms.DataGridViewTextBoxColumn col_against_detail; - private System.Windows.Forms.DataGridViewTextBoxColumn col_operate; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/Old/ViolateManageForm.cs b/TEMUKJD/KJDForms/ProductForms/Old/ViolateManageForm.cs deleted file mode 100644 index 342833e..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/ViolateManageForm.cs +++ /dev/null @@ -1,1522 +0,0 @@ -using AllBase; -using AllBase.Helper; -using AllBase.Model.Param.FissionManage; -using AllBase.Model.Param.ProductManage; -using AllBase.Model.Result; -using TemuKJD.Extension; -using TemuKJD.KJDForms.BaseForms; -using NaiBa.Util; -using NaiBa.Util.Extension; -using Newtonsoft.Json; -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.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; -using Work; -using Work.BLL.Product; -using Work.BLL.Upload; -using Work.DouyinApiClass; - -namespace TemuKJD.KJDForms.ProductForms -{ - public partial class ViolateManageForm : BaseForm - { - private CheckBox chkSelectAllShop = null; - private CheckBox chkSelectAllViolateParam = null; - CancellationTokenSource cancellationTokenSource = null; - - /// - /// 排查出的违规信息列表 - /// - public List LstViolateParam = new List(); - - /// - /// 导入的违规信息列表 - /// - public List LstViolateInfo = new List(); - /// - /// 动态查找上家并将违规入库的临时列表 - /// - public List LstVioLateInfoTemp = new List(); - - - - public ViolateManageForm() - { - InitializeComponent(); - } - - private void ViolateManageForm_Load(object sender, EventArgs e) - { - LoadShops(); - chkSelectAllShop = this.dgvShop.Columns["colSelect"].AddHeaderCheckBox(HorizontalAlignment.Center, 0, 0, null, null, false, null, true); - chkSelectAllShop.CheckedChanged += ChkSelectAll_CheckedChanged; - chkSelectAllViolateParam = this.dgvCheck.AddSelectorColumn("col_result_select"); - - // 读取违规信息规则名称列表 - GetAllViolateRuleName(); - // 显示违规信息规则名称列表 - //SetViolateSelectList(flpViolate); - - // 获取暂存的导入违规罚单列表 - LstViolateInfo = NaiBa.Util.Helper.ConfigHelper.LoadConfig>("violate_Info_list"); - if (LstViolateInfo == null) - LstViolateInfo = new List(); - Task.Run(() => - { - foreach (var violateInfo in LstViolateInfo) - { - Invoke(new Action(() => - { - ShowViolateInfo(violateInfo); - })); - } - LstVioLateInfoTemp.AddRange(LstViolateInfo); - }); - - // 获取暂存的还未处理的各种违规 - LstViolateParam = NaiBa.Util.Helper.ConfigHelper.LoadConfig>("violate_param_wait_handle_list"); - if (LstViolateParam == null) - LstViolateParam = new List(); - Task.Run(() => - { - foreach (var violateParam in LstViolateParam) - { - string dataFromDescribe = GetDataFromDescribe(violateParam.DataFrom); - - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == violateParam.DouShopId); - Invoke(new Action(() => - { - this.dgvCheck.Rows.Add(true, dataFromDescribe, violateParam.DouShopId, shop?.ShopAccount, violateParam.DouProductId, - violateParam.UpIdNumber, violateParam.From, "货源网", violateParam.RuleNames, violateParam.CheckTime.ToString("yyyy-MM-dd HH:mm")); - })); - } - }); - - // 循环处理获取到的新违规 - OperateViolateListTemp(); - } - - private void ChkSelectAll_CheckedChanged(object sender, EventArgs e) - { - if (!chkSelectAllShop.Checked) - { - foreach (DataGridViewRow row in dgvShop.Rows) - { - row.Cells["colSelect"].Value = false; - } - } - else - { - var list = GlobalConfig.ShopLoginList.Where(s => s.ApiAuthStatus == "授权成功").Select(ss => ss.ShopId).ToList(); - foreach (DataGridViewRow row in dgvShop.Rows) - { - if (list.Any(l => l == row.Cells["colShopId"]?.Value?.ToString())) - row.Cells["colSelect"].Value = true; - } - } - } - - public static void SetViolateSelectList(Control control) - { - if (control == null || ViolateRuleParam.LstViolateRuleName == null) - return; - - control.Invoke(new Action(() => - { - control.Controls.Clear(); - })); - - var seriousViolateRuleNameList = ViolateRuleParam.LstViolateRuleName.Where(rn => ViolateRuleParam.LstSeriousViolateRuleName.Any(r => rn.Contains(r))).ToList(); - var normalViolateRuleNameList = ViolateRuleParam.LstViolateRuleName.Where(rn => !seriousViolateRuleNameList.Contains(rn)).ToList(); - - List cList = new List(); - foreach (var item in seriousViolateRuleNameList) - { - CheckBox cb = new CheckBox(); - cb.Text = item; - cb.Name = "cb" + item; - cb.AutoSize = true; - cb.Checked = ViolateRuleParam.LstViolateRuleNameSelect.Contains(item); - cb.ForeColor = Color.FromArgb(240, 10, 0); - cb.Click += Cb_Click; - cList.Add(cb); - } - foreach (var item in normalViolateRuleNameList) - { - CheckBox cb = new CheckBox(); - cb.Text = item; - cb.Name = "cb" + item; - cb.AutoSize = true; - cb.Checked = ViolateRuleParam.LstViolateRuleNameSelect.Contains(item); - cb.Click += Cb_Click; - cList.Add(cb); - } - - control.Invoke(new Action(() => - { - control.Controls.AddRange(cList.ToArray()); - })); - } - - public static void Cb_Click(object sender, EventArgs e) - { - var check = sender as CheckBox; - if (check != null) - { - var t = ""; - foreach (var tt in ViolateRuleParam.LstViolateRuleNameSelect) - { - t += "\"" + tt + "\"" + ",\r\n"; - } - if (check.Checked) - { - if (!ViolateRuleParam.LstViolateRuleNameSelect.Contains(check.Text)) - ViolateRuleParam.LstViolateRuleNameSelect.Add(check.Text); - } - else - { - while (ViolateRuleParam.LstViolateRuleNameSelect.Contains(check.Text)) - ViolateRuleParam.LstViolateRuleNameSelect.Remove(check.Text); - } - StartUp.SaveViolateRuleNameSelectList(); - } - } - - public void ResetStatusBar() - { - this.statusBar.pgbTaskProgress.Maximum = 0; - this.statusBar.lblTaskStatus.Text = "准备就绪"; - this.statusBar.pgbTaskProgress.Value = 0; - this.statusBar.pgbTaskProgress.Text = 0 + "/" + 0; - } - - public void LoadShops() - { - // 获取被删除的店铺 - 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); - } - - for (int i = 0; i < GlobalConfig.ShopLoginList.Count; i++) - { - var shop = GlobalConfig.ShopLoginList[i]; - var row = dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopId); - if (row == null) - dgvShop.Rows.Add(false, shop.ShopId, shop.ShopAccount, shop.LoginStatus); - else - { - row.Cells["colAuthStatus"].Value = shop.ApiAuthStatus; - } - } - } - - private void btnRefreshShop_Click(object sender, EventArgs e) - { - LoadShops(); - } - - private void ViolateManageForm_VisibleChanged(object sender, EventArgs e) - { - if (Visible) - { - LoadShops(); - Task.Run(() => - { - SetViolateSelectList(flpViolate); - }); - } - } - - private void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - string colId = dgvShop.Columns[e.ColumnIndex].Name; - if (colId == "colSelect") - { - dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value = !dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value.ParseToBool(); - } - } - - private void dgvCheck_CellMouseEnter(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - - var columnName = dgvCheck.Columns[e.ColumnIndex].Name; - if (MouseButtons == MouseButtons.Left) - { - if (columnName == "col_result_select") - { - dgvCheck.Rows[e.RowIndex].Cells["col_result_select"].Value = !dgvCheck.Rows[e.RowIndex].Cells["col_result_select"].Value.ParseToBool(); - } - } - } - - private void dgvCheck_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - - var columnName = dgvCheck.Columns[e.ColumnIndex].Name; - if (MouseButtons == MouseButtons.Left) - { - if (columnName == "col_result_select") - { - dgvCheck.Rows[e.RowIndex].Cells["col_result_select"].Value = !dgvCheck.Rows[e.RowIndex].Cells["col_result_select"].Value.ParseToBool(); - } - } - } - - private void dgvCheck_CellContentClick(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - - var douGoodsId = dgvCheck.Rows[e.RowIndex].Cells["col_result_product_id"].Value?.ToString(); - var upId = dgvCheck.Rows[e.RowIndex].Cells["col_result_up_id"].Value?.ToString(); - var from = dgvCheck.Rows[e.RowIndex].Cells["col_result_from"].Value?.ToString(); - var columnName = dgvCheck.Columns[e.ColumnIndex].Name; - if (columnName == "col_result_product_id") - { - var url = "https://haohuo.jinritemai.com/views/product/detail?id=" + douGoodsId; - GetHtml.OpenUrl(url); - } - else if (columnName == "col_result_up_id") - { - var url = ""; - if (from == "淘宝") - url = "https://item.taobao.com/item.htm?id=" + upId; - else if (from == "阿里巴巴") - url = "https://detail.1688.com/offer/" + upId + ".html"; - else if (from == "微店") - url = "https://weidian.com/item.html?itemID=" + upId; - else if (from == "京喜") - url = "https://item.m.jd.com/product/" + upId + ".html"; - else if (from == "拼多多") - url = "http://mobile.yangkeduo.com/goods.html?goods_id=" + upId; - else if (from == "抖音" || from == "") - url = "https://haohuo.jinritemai.com/views/product/detail?id=" + upId; - GetHtml.OpenUrl(url); - } - } - - private void dgvViolateFileData_CellContentClick(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - - var douGoodsId = dgvViolateFileData.Rows[e.RowIndex].Cells["col_business_id"].Value.ToString(); - var upId = dgvViolateFileData.Rows[e.RowIndex].Cells["col_up_id"].Value.ToString(); - var from = dgvViolateFileData.Rows[e.RowIndex].Cells["col_from"].Value.ToString(); - var columnName = dgvViolateFileData.Columns[e.ColumnIndex].Name; - if (columnName == "col_business_id") - { - var url = "https://haohuo.jinritemai.com/views/product/detail?id=" + douGoodsId; - GetHtml.OpenUrl(url); - } - else if (columnName == "col_up_id") - { - var url = ""; - if (from == "淘宝") - url = "https://item.taobao.com/item.htm?id=" + upId; - else if (from == "阿里巴巴") - url = "https://detail.1688.com/offer/" + upId + ".html"; - else if (from == "微店") - url = "https://weidian.com/item.html?itemID=" + upId; - else if (from == "京喜") - url = "https://item.m.jd.com/product/" + upId + ".html"; - else if (from == "拼多多") - url = "http://mobile.yangkeduo.com/goods.html?goods_id=" + upId; - else if (from == "抖音" || from == "") - url = "https://haohuo.jinritemai.com/views/product/detail?id=" + upId; - GetHtml.OpenUrl(url); - } - } - - private void btnImport_Click(object sender, EventArgs e) - { - OpenFileDialog openFileDialog = new OpenFileDialog(); - openFileDialog.Filter = "商家罚单.csv文件(*.csv)|*.csv"; - openFileDialog.RestoreDirectory = true; - openFileDialog.FilterIndex = 1; - openFileDialog.Multiselect = true; - if (openFileDialog.ShowDialog() == DialogResult.OK) - { - this.ucTabControl1.SelectedTab = this.tabPageViolateFileList; - - Task.Run(() => - { - foreach (var fileName in openFileDialog.FileNames) - { - string lineStr = string.Empty; - string productUrl = string.Empty; - try - { - using (StreamReader sr = new StreamReader(fileName, Encoding.Default)) - { - int row = 0; - List tableHeader = new List(); - while ((lineStr = sr.ReadLine()) != null) - { - if (lineStr.StartsWith("罚单编号")) - tableHeader = lineStr.Split(',').ToList(); - if (tableHeader.Count == 0 || lineStr.StartsWith("罚单编号")) - continue; - List tableBody = FileBase.CsvStrToList(lineStr); - if (tableHeader.Count != tableBody.Count) - continue; - - Dictionary tableDic = new Dictionary(); - for (int i = 0; i < tableHeader.Count; i++) - { - tableDic[tableHeader[i]] = tableBody[i]; - } - ViolateInfo violateInfo = new ViolateInfo() - { - against_detail = tableDic["违规详情"]?.Trim(), - business_id = tableDic["订单/商品/店铺 编号"]?.Trim(), - penalize_id = tableDic["罚单编号"]?.Trim(), - rule_name = tableDic["违规类型"]?.Trim(), - fileName = fileName, - }; - if (LstViolateInfo.Any(v => v.penalize_id == violateInfo.penalize_id)) - continue; - - ShowViolateInfo(violateInfo); - LstViolateInfo.Add(violateInfo); - LstVioLateInfoTemp.Add(violateInfo); - - row++; - } - } - } - catch (Exception ex) - { - if (ex.Message.Contains("无法访问")) - { - BaseMsgForm.ShowInfo("文件" + fileName + "打开失败,请查看是否有其他应用正在使用。"); - } - } - } - SaveViolateInfoList(); - }); - } - } - - private void ShowViolateInfo(ViolateInfo violateInfo) - { - string fileShotName = violateInfo.fileName.Split(new string[] { "\\", ".csv" }, StringSplitOptions.RemoveEmptyEntries).LastOrDefault(); - string dir = violateInfo.fileName.Split(new string[] { fileShotName }, StringSplitOptions.RemoveEmptyEntries).FirstOrDefault(); - Invoke(new Action(() => - { - dgvViolateFileData.Rows.Add(false, dir, fileShotName, violateInfo.penalize_id, violateInfo.business_id, "", "", violateInfo.rule_name, violateInfo.against_detail, "删除"); - })); - } - - private void ucTabControl1_SelectedIndexChanged(object sender, EventArgs e) - { - if (ucTabControl1.SelectedTab == tabPageCheckResult) - { - btnClear.Text = "清空排查结果"; - } - else if (ucTabControl1.SelectedTab == tabPageViolateFileList) - { - btnClear.Text = "清空罚单"; - } - } - - private void btnClear_Click(object sender, EventArgs e) - { - if (btnClear.Text == "清空排查结果") - { - if (BaseMsgForm.ShowConfirm("确定要清空排查结果?清空后需要重新排查!").DialogResult == DialogResult.OK) - { - dgvCheck.Rows.Clear(); - LstViolateParam.Clear(); - SaveViolateParamWaitHandleList(); - } - } - else if (btnClear.Text == "清空罚单") - { - if (BaseMsgForm.ShowConfirm("确定要清空罚单列表?清空后再次导入需要重新分析罚单数据!").DialogResult == DialogResult.OK) - { - dgvViolateFileData.Rows.Clear(); - LstViolateInfo.Clear(); - LstVioLateInfoTemp.Clear(); - Task.Run(() => - { - SaveViolateInfoList(); - }); - } - } - } - - private void btnStartTroubleShooting_Click(object sender, EventArgs e) - { - var lstShopId = dgvShop.Rows.Cast() - .Where(r => r.Cells["colSelect"].Value.ParseToBool()) - .Select(r => r.Cells["colShopId"].Value?.ToString()).ToList(); - var shopList = GlobalConfig.ShopLoginList.Where(s => lstShopId.Contains(s.ShopId) && s.ApiAuthStatus == "授权成功").ToList(); - if (shopList.Count == 0 && (chkOperateOffSale.Checked || chkOperateOnSale.Checked)) - { - BaseMsgForm.ShowInfo("请选择要清理素材的店铺"); - return; - } - shopList = shopList.Where(s => s.ApiAuthStatus == "授权成功").ToList(); - if (shopList.Count == 0 && (chkOperateOffSale.Checked || chkOperateOnSale.Checked)) - { - BaseMsgForm.ShowInfo("请检查店铺是否授权"); - return; - } - - if (LstVioLateInfoTemp.Count > 0) - { - var result = BaseMsgForm.ShowConfirm("正在分析罚单数据,请问是否要继续?").DialogResult; - if (result != DialogResult.OK) - return; - } - - cancellationTokenSource = new CancellationTokenSource(); - Task.Run(() => - { - try - { - if (chkOperateDataBase.Checked && cancellationTokenSource?.IsCancellationRequested != true) - { - TroubleShootingDataBase(); - } - - if (chkOperateOnSale.Checked && cancellationTokenSource?.IsCancellationRequested != true) - { - TroubleShootingShopProduct(shopList, true); - } - - if (chkOperateOffSale.Checked && cancellationTokenSource?.IsCancellationRequested != true) - { - TroubleShootingShopProduct(shopList, false); - } - } - catch (Exception ex) - { - } - - // 排查完毕后防止数据丢失保存到本地磁盘 - SaveViolateParamWaitHandleList(); - - // 显示排查完毕 - Invoke(new Action(() => - { - if (cancellationTokenSource?.IsCancellationRequested != true) - BaseMsgForm.ShowInfo("排查完毕"); - else - BaseMsgForm.ShowInfo("排查中断"); - })); - - }, cancellationTokenSource.Token); - } - - private void TroubleShootingShopProduct(List shopList, bool isOperateOnline = true) - { - - - foreach (var shop in shopList) - { - int num = 0; - var total = shopList.Count(); - this.Invoke(new Action(() => - { - num++; - - this.statusBar.lblTaskStatus.Text = "排查店铺 " + shop.ShopAccount + " " + (isOperateOnline ? "在售" : "仓库") + "商品,当前第" + num + "个店铺/共" + total + "个店铺,获取店铺商品中"; - this.statusBar.pgbTaskProgress.Value = 0; - this.statusBar.pgbTaskProgress.Text = 0 + "/" + 0; - this.statusBar.pgbTaskProgress.Maximum = 0; - })); - - if (shop == null) - continue; - - DataGridViewRow row = null; - - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) - { - if (shop.PayStatus != 1) - { - row.Cells["colMessage"].Value = "当前为试用版,请购买专业版"; - return; - } - - if (isOperateOnline) - row.Cells["colMessage"].Value = "正在排查在售商品"; - else - row.Cells["colMessage"].Value = "正在排查仓库商品"; - } - })); - - - // 获取、显示商品数 - GetShopProduct(shop, false); - - int operateCount = 99999999; // 不限制操作数量 - int totalNumBase = shop.OnlineProductCount; // 删除开始时的在售商品数 - int totalNum = shop.OnlineProductCount; // 在售商品数 - if (!isOperateOnline) - { - totalNumBase = shop.OfflineProductCount; - totalNum = shop.OfflineProductCount; - } - int setNum = 0; // 设置商品数量 - int currentNum = 0; // 商品循环计数 - int page = 0; - int pageSize = 50; - string deleteProductMessage = ""; - List productList = new List(); - - var waitDeleteHtml = ""; - - while ((productList.Count < operateCount && currentNum < totalNumBase) || page == 0) - { - page += 1; - currentNum += pageSize; - if (cancellationTokenSource != null && cancellationTokenSource.IsCancellationRequested) - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { Invoke(new Action(() => { row.Cells["colMessage"].Value = "排查中断"; })); } - break; - } - - // 根据上下架信息,获取商品列表 - var productIsOnlineFlag = isOperateOnline ? 0 : 1; - waitDeleteHtml = GetShopProductListData(shop, productIsOnlineFlag, page, 50); - Thread.Sleep(Randomx.GetId(500, 1000)); - - if (waitDeleteHtml.Contains("\"code\":10000")) - { - totalNum = BaseRegex.GetIntJson(ref waitDeleteHtml, "total"); - if (isOperateOnline) - shop.OnlineProductCount = totalNum; - else - shop.OfflineProductCount = totalNum; - - if (operateCount > totalNumBase) - operateCount = totalNumBase; - if (currentNum > totalNumBase) - currentNum = totalNumBase; - - Invoke(new Action(() => - { - this.statusBar.pgbTaskProgress.Value = currentNum; - this.statusBar.pgbTaskProgress.Text = currentNum + "/" + operateCount; - this.statusBar.pgbTaskProgress.Maximum = operateCount; - })); - if (totalNum == 0) - { - deleteProductMessage = "排查结束,店铺没有在售商品"; - if (!isOperateOnline) - deleteProductMessage = "排查结束,店铺没有仓库商品"; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colMessage"].Value = deleteProductMessage; } - })); - break; - } - - try - { - JObject jObj = JObject.Parse(waitDeleteHtml); - var jObjDataStr = jObj["data"]?["data"]?.ToString(); - if (!string.IsNullOrEmpty(jObjDataStr)) - { - var addList = JsonHelper.DeserializeJsonToList(jObjDataStr); - if (addList != null) - { - productList.AddRange(addList); - } - } - deleteProductMessage = "已获取:" + currentNum + ",在售商品获取中..."; - if (!isOperateOnline) - deleteProductMessage = "已获取:" + currentNum + ",仓库商品获取中..."; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colMessage"].Value = deleteProductMessage; } - })); - } - catch (Exception ex) - { - BaseMsgForm.ShowError("获取商品发生错误:" + ex.Message); - } - } - else - { - var failMessage = BaseRegex.GetStringJson(ref waitDeleteHtml, "sub_msg"); - if (string.IsNullOrEmpty(failMessage)) - failMessage = waitDeleteHtml; - deleteProductMessage = ("排查遇到错误," + failMessage).TrimEnd(','); - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colMessage"].Value = deleteProductMessage; } - })); - } - } - - // 操作数大于满足筛选条件商品数时,操作数改为商品数 - if (operateCount > productList.Count) - operateCount = productList.Count; - - if (operateCount == 0) - { - deleteProductMessage = "店铺商品排查完成"; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colMessage"].Value = deleteProductMessage; } - })); - } - - if (productList.Count == 0) - { - deleteProductMessage = "店铺商品排查完成"; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colMessage"].Value = deleteProductMessage; } - })); - } - - List violateParamList = new List(); - - for (int i = 0; i < productList.Count && i < operateCount; i++) - { - if (cancellationTokenSource != null && cancellationTokenSource.IsCancellationRequested) - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { Invoke(new Action(() => { row.Cells["colMessage"].Value = "排查中断"; })); } - break; - } - - Invoke(new Action(() => - { - this.statusBar.lblTaskStatus.Text = "排查店铺 " + shop.ShopAccount + " " + (isOperateOnline ? "在售" : "仓库") + "商品,当前第" + num + "个店铺/共" + total + "个店铺,商品排查中"; - this.statusBar.pgbTaskProgress.Value = i + 1; - this.statusBar.pgbTaskProgress.Text = i + 1 + "/" + operateCount; - this.statusBar.pgbTaskProgress.Maximum = operateCount; - - deleteProductMessage = "正在排查在售商品,第 " + (i + 1) + " 件商品,共 " + operateCount + " 件商品"; - if (!isOperateOnline) - deleteProductMessage = "正在排查仓库商品,第 " + (i + 1) + " 件商品,共 " + operateCount + " 件商品"; - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colMessage"].Value = deleteProductMessage; } - })); - Thread.Sleep(Randomx.GetId(50, 150)); - - var product = productList[i]; - setNum++; - - ViolateParam violateParam = new ViolateParam() - { - DataFrom = isOperateOnline ? 2 : 3, - DouProductId = product.product_id.ToString(), - DouShopId = shop.ShopId, - }; - violateParamList.Add(violateParam); - - if (violateParamList.Count >= 50 || i >= productList.Count || i >= operateCount) - { - GetViolateUpIdList(violateParamList); - violateParamList = violateParamList.Where(v => !string.IsNullOrEmpty(v.UpId)).ToList(); - var upIds = violateParamList.Select(v => v.UpId).ToList(); - - var violateResultHtml = ViolateBLL.GetViolateList(upIds); - // 失败重试 - if (violateResultHtml?.Contains(",") != true) - violateResultHtml = ViolateBLL.GetViolateList(upIds); - if (violateResultHtml?.Contains(",") != true) - continue; - - var resultViolateList = violateResultHtml.Split(new string[] { "|" }, StringSplitOptions.RemoveEmptyEntries); - foreach (var resultViolate in resultViolateList) - { - var vParam = violateParamList.FirstOrDefault(v => resultViolate.StartsWith(v.UpId)); - if (vParam == null) - continue; - - if (resultViolate == null || resultViolate.EndsWith("none") == true) // 没有违规信息 - continue; - else // 有违规信息 - { - var violateHtml = resultViolate.Replace(vParam.UpId + ",", ""); - if (ViolateRuleParam.LstViolateRuleNameSelect.Any(v => ("^" + violateHtml + "^").Contains("^" + v + "^"))) - { - vParam.CheckTime = DateTime.Now; - vParam.RuleNames = violateHtml; - if (!LstViolateParam.Any(vp => vp.UpId == vParam.UpId && vp.DouProductId == vParam.DouProductId)) - { - LstViolateParam.Add(vParam); - - if (LstViolateParam.Count % 50 == 0) - SaveViolateParamWaitHandleList(); - - string dataFromDescribe = GetDataFromDescribe(vParam.DataFrom); - Invoke(new Action(() => - { - this.dgvCheck.Rows.Add(true, dataFromDescribe, vParam.DouShopId, shop.ShopAccount, vParam.DouProductId, - vParam.UpIdNumber, vParam.From, "货源网", vParam.RuleNames, vParam.CheckTime.ToString("yyyy-MM-dd HH:mm")); - })); - } - } - } - } - - violateParamList.Clear(); - } - } - } - Invoke(new Action(() => - { - if (cancellationTokenSource != null && cancellationTokenSource.IsCancellationRequested) - { - var text = "排查店铺商品中断!"; - this.statusBar.lblTaskStatus.Text = text; - } - else - { - var text = "排查店铺商品完成!"; - this.statusBar.lblTaskStatus.Text = text; - } - })); - // 排查在售/仓库后防止数据丢失保存到本地磁盘 - SaveViolateParamWaitHandleList(); - Thread.Sleep(5000); - } - - /// - /// 批量排查产品数据库违规 - /// - public void TroubleShootingDataBase() - { - Invoke(new Action(() => - { - this.statusBar.pgbTaskProgress.Maximum = 0; - this.statusBar.lblTaskStatus.Text = "排查产品数据库"; - this.statusBar.pgbTaskProgress.Value = 0; - this.statusBar.pgbTaskProgress.Text = 0 + "/" + 0; - })); - - int currentNum = 0; - int current_page = 1; - int totalCount = 99999999; - //string begainTime = "2000-01-01"; - //string endTime = DateTime.Now.AddDays(1).ToString("yyyy-MM-dd"); - List violateParamList = new List(); - while (true) - { - if (cancellationTokenSource != null && cancellationTokenSource.IsCancellationRequested) - { - break; - } - - string url = BaseClass.BuildFissionObjString("fession_api"); - string paraStr = "¤t_page=" + current_page - //+ "&begin_time=" + begainTime - //+ "&end_time=" + endTime - + "&pagesize=500"; - - string requestData = UserLogin.GetSignaturex() + "&act=get" + paraStr; - - try - { - string htmlData = GetHtml.PostUtf8(url, requestData); - if (htmlData.Contains("\"list\":[]")) - break; - - var FessionObj = JsonConvert.DeserializeObject(htmlData); // 反序列化 - if (FessionObj != null) - { - totalCount = FessionObj.count; - var fessionDataList = FessionObj.list; - foreach (var fessionData in fessionDataList) - { - if (cancellationTokenSource != null && cancellationTokenSource.IsCancellationRequested) - { - break; - } - - Thread.Sleep(Randomx.GetId(20, 50)); - - currentNum += 1; - - Invoke(new Action(() => - { - this.statusBar.pgbTaskProgress.Maximum = totalCount; - this.statusBar.lblTaskStatus.Text = "排查产品数据库"; - this.statusBar.pgbTaskProgress.Value = currentNum; - this.statusBar.pgbTaskProgress.Text = currentNum + "/" + totalCount; - })); - - string prev = ""; - if (fessionData.source == "拼多多") - prev = "pdd-"; - else if (fessionData.source == "淘宝") - prev = "tb-"; - else if (fessionData.source == "阿里") - prev = "al-"; - else if (fessionData.source == "抖音") - prev = "dy-"; - else if (fessionData.source == "京喜") - prev = "jx-"; - - ViolateParam violateParam = new ViolateParam() - { - DataFrom = 1, - UpId = prev + fessionData.fession_id - }; - violateParamList.Add(violateParam); - - if (violateParamList.Count >= 50 || currentNum >= totalCount) - { - var upIds = violateParamList.Select(v => v.UpId).ToList(); - var violateResultHtml = ViolateBLL.GetViolateList(upIds); - // 失败重试 - if (violateResultHtml?.Contains(",") != true) - violateResultHtml = ViolateBLL.GetViolateList(upIds); - if (violateResultHtml?.Contains(",") != true) - continue; - - var resultViolateList = violateResultHtml.Split(new string[] { "|" }, StringSplitOptions.RemoveEmptyEntries); - foreach (var resultViolate in resultViolateList) - { - - var vParam = violateParamList.FirstOrDefault(v => resultViolate.StartsWith(v.UpId)); - if (vParam == null) - continue; - - if (resultViolate == null || resultViolate.EndsWith("none")) // 没有违规信息 - continue; - else // 有违规信息 - { - var violateHtml = resultViolate.Replace(vParam.UpId + ",", ""); - if (ViolateRuleParam.LstViolateRuleNameSelect.Any(v => ("^" + violateHtml + "^").Contains("^" + v + "^"))) - { - vParam.CheckTime = DateTime.Now; - vParam.RuleNames = violateHtml; - if (!LstViolateParam.Any(vp => vp.UpId == vParam.UpId && vp.DouProductId == vParam.DouProductId)) - { - LstViolateParam.Add(vParam); - - if (LstViolateParam.Count % 50 == 0) - SaveViolateParamWaitHandleList(); - - string dataFromDescribe = GetDataFromDescribe(vParam.DataFrom); - Invoke(new Action(() => - { - this.dgvCheck.Rows.Add(true, dataFromDescribe, "", "", "", - vParam.UpIdNumber, vParam.From, "货源网", vParam.RuleNames, vParam.CheckTime.ToString("yyyy-MM-dd HH:mm")); - })); - } - } - } - } - violateParamList.Clear(); - } - } - } - - if (currentNum >= totalCount) - break; - current_page++; - } - catch (Exception ex) - { - LogSave.Add(Name, "访问产品数据库异常"); - - Invoke(new Action(() => - { - this.statusBar.pgbTaskProgress.Maximum = 0; - this.statusBar.lblTaskStatus.Text = "访问产品数据库异常"; - this.statusBar.pgbTaskProgress.Value = 0; - this.statusBar.pgbTaskProgress.Text = 0 + "/" + 0; - })); - - if (cancellationTokenSource != null) - cancellationTokenSource.Cancel(); - Thread.Sleep(30000); - break; - } - } - - Invoke(new Action(() => - { - this.statusBar.pgbTaskProgress.Maximum = 0; - this.statusBar.lblTaskStatus.Text = "产品数据库排查完毕"; - this.statusBar.pgbTaskProgress.Value = 0; - this.statusBar.pgbTaskProgress.Text = 0 + "/" + 0; - - if (cancellationTokenSource != null && cancellationTokenSource.IsCancellationRequested) - { - var text = "产品数据库排查中断!"; - this.statusBar.lblTaskStatus.Text = text; - } - })); - // 排查数据库后防止数据丢失保存到本地磁盘 - SaveViolateParamWaitHandleList(); - Thread.Sleep(5000); - } - - - private void btnStop_Click(object sender, EventArgs e) - { - if (cancellationTokenSource != null) - cancellationTokenSource.Cancel(); - } - - /// - /// 处理违规暂存列表获取上家Id并保存违规信息到服务端 - /// - private void OperateViolateListTemp() - { - Task.Run(() => - { - while (true) - { - try - { - var violateInfo = LstVioLateInfoTemp.FirstOrDefault(); - if (violateInfo != null) - { - LstVioLateInfoTemp.Remove(violateInfo); - - Invoke(new Action(() => - { - int totalCount = LstViolateInfo.Count; - int currentCount = LstViolateInfo.Count - LstVioLateInfoTemp.Count + 1; - if (currentCount < 0) - currentCount = 0; - this.statusBar.pgbTaskProgress.Maximum = LstViolateInfo.Count; - this.statusBar.lblTaskStatus.Text = "正在分析罚单数据"; - this.statusBar.pgbTaskProgress.Value = currentCount; - this.statusBar.pgbTaskProgress.Text = currentCount + "/" + totalCount; - })); - - if (violateInfo.up_product_id_number == 0) - { - Thread.Sleep(Randomx.GetId(50, 150)); - GetViolateUpId(violateInfo); - AddViolateToServer(violateInfo); - - if (LstVioLateInfoTemp.Count % 50 == 0) - { - SaveViolateInfoList(); - } - } - - if (violateInfo.up_product_id_number > 0) - { - Invoke(new Action(() => - { - string from = ""; - if (string.IsNullOrEmpty(violateInfo.up_product_id)) - from = ""; - else if (violateInfo.up_product_id.StartsWith("pd")) - from = "拼多多"; - else if (violateInfo.up_product_id.StartsWith("tb")) - from = "淘宝"; - else if (violateInfo.up_product_id.StartsWith("al")) - from = "阿里巴巴"; - else if (violateInfo.up_product_id.StartsWith("jx")) - from = "京喜"; - var row = dgvViolateFileData.Rows.Cast() - .FirstOrDefault(r => r.Cells["col_penalize_id"].Value?.ToString() == violateInfo.penalize_id); - if (row != null) - { - row.Cells["col_from"].Value = from; - row.Cells["col_from_fake"].Value = "货源网"; - row.Cells["col_up_id"].Value = violateInfo.up_product_id_number; - } - })); - } - - if (!ViolateRuleParam.LstViolateRuleName.Contains(violateInfo?.rule_name?.Trim())) - { - UpdateViolateRuleNameList(violateInfo); - SetViolateSelectList(flpViolate); - } - - if (LstVioLateInfoTemp.Count == 0) - { - Invoke(new Action(() => - { - if (this.statusBar.lblTaskStatus.Text == "正在分析罚单数据") - { - ResetStatusBar(); - } - })); - } - - if (LstVioLateInfoTemp.Count == 0) - { - SaveViolateInfoList(); - } - } - } - catch - { - } - } - }); - } - - /// - /// 获取所有违规信息规则名称列表 - /// - public static void GetAllViolateRuleName() - { - if (ViolateRuleParam.LstViolateRuleName != null) - return; - - string data = ViolateBLL.GetViolate("1", 1); - if (data == "none") - data = ""; - ViolateRuleParam.LstViolateRuleName = data.Split(new char[] { '^' }, StringSplitOptions.RemoveEmptyEntries).ToList(); - } - - public static void GetViolateUpIdList(List violateParamList) - { - string upIdUrl = BaseClass.LoginApiUrl + "?obj=upshopid/upid_dd&act=get_list"; - string upIdData = "&pids="; - foreach (var violateParam in violateParamList) - { - upIdData += violateParam.DouProductId + "," + violateParam.DouProductId.ParseToLong() % 1024 + ";"; - } - var Data = UserLogin.GetSignaturex() + upIdData; //.TrimEnd(';'); - string upIdsResult = GetHtml.PostUtf8(upIdUrl, Data); - if (upIdsResult.Contains("参数错误")) - return; - if (upIdsResult.Contains(",") != true) - upIdsResult = GetHtml.PostUtf8(upIdUrl, UserLogin.GetSignaturex() + upIdData); - if (upIdsResult?.Contains(",") != true) - upIdsResult = GetHtml.PostUtf8(upIdUrl, UserLogin.GetSignaturex() + upIdData); - if (upIdsResult?.Contains(",") != true) - return; - - var upIdsListResult = upIdsResult.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); - foreach (var upIdStr in upIdsListResult) - { - if (!upIdStr.Contains(',')) - continue; - - var violateParam = violateParamList.Find(v => v.DouProductId == upIdStr.Split(',').FirstOrDefault()); - if (violateParam != null) - violateParam.UpId = upIdStr.Split(',').LastOrDefault(); - } - } - - public static void GetViolateUpId(ViolateParam violateParam) - { - var violateInfo = new ViolateInfo() { business_id = violateParam.DouProductId }; - GetViolateUpId(violateInfo); - if (!string.IsNullOrEmpty(violateInfo.up_product_id)) - { - violateParam.UpId = violateInfo.up_product_id; - } - } - - /// - /// 获取违规商品上家Id - /// - /// - public static void GetViolateUpId(ViolateInfo violateInfo) - { - string upIdUrl = BaseClass.LoginApiUrl + "?obj=upshopid/upid_dd&act=get"; - string upIdData = "&pid=" + violateInfo.business_id + "&table=" + (violateInfo.business_id.ParseToLong() % 1024); - string upId = GetHtml.PostUtf8(upIdUrl, UserLogin.GetSignaturex() + upIdData); - if (!string.IsNullOrEmpty(upId) && upId != "none") - { - string upIdNumber = BaseRegex.GetMatchRegex(ref upId, "\\d{5,20}")[0]?.Groups[0]?.Value; - if (!string.IsNullOrEmpty(upIdNumber)) - { - violateInfo.up_product_id = upId; - violateInfo.up_product_id_number = upIdNumber.ParseToLong(); - } - } - if (violateInfo.up_product_id_number <= 0) - violateInfo.up_product_id_number = -1; - } - - /// - /// 将违规信息保存到云服务端 - /// - public static string AddViolateToServer(ViolateInfo violateInfo) - { - if (string.IsNullOrEmpty(violateInfo.up_product_id) || violateInfo.up_product_id_number <= 0) - return "无上家商品"; - - string address = BaseClass.BuildObjString("violate&act=add"); - string param = UserLogin.GetSignaturex() - + "&pid=" + violateInfo.up_product_id - + "&content=" + violateInfo.rule_name - + "&suffix=" + violateInfo.up_product_id_number % 1024; - string html = GetHtml.PostUtf8(address, param); - // 服务端无此违规记录,保存违规成功 - if (html.Contains("\"msg\":\"success\"") && html.Contains("\"data\":null")) - { - return "上家商品违规信息添加成功"; - } - // 服务端已记录此商品违规情况,根据是否有追加新违规信息,决定是否要更新违规信息 - else if (html.Contains("\"msg\":\"success\"")) - { - var dataStrOld = BaseRegex.GetStringJson(ref html, "data"); - if (!string.IsNullOrEmpty(dataStrOld)) - { - if (!("^" + dataStrOld + "^").Contains("^" + violateInfo.rule_name + "^")) - { - var dataStrNew = dataStrOld.Trim('^') + "^" + violateInfo.rule_name; - address = BaseClass.BuildObjString("violate&act=update"); - param = UserLogin.GetSignaturex() - + "&pid=" + violateInfo.up_product_id - + "&content=" + dataStrNew - + "&suffix=" + violateInfo.up_product_id_number % 1024; - html = GetHtml.PostUtf8(address, param); - if (html.Contains("\"msg\":\"success\"")) - return "上家商品违规信息修改成功"; - } - else - { - return "上家商品违规信息已存在"; - } - } - } - return "未知错误:" + html; - } - - public static void UpdateViolateRuleNameList(ViolateInfo violate) - { - var violateRuleName = new ViolateInfo { rule_name = violate.rule_name, up_product_id = "1", up_product_id_number = 1 }; - ViolateRuleParam.LstViolateRuleName.Add(violateRuleName.rule_name); - AddViolateToServer(violateRuleName); - } - - void GetShopProduct(ShopLoginInfo shop, bool isShowResult = true) - { - DataGridViewRow row = null; - Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) - { - if (isShowResult) - row.Cells["colMessage"].Value = "正在获取店铺商品数量"; - } - })); - - // 读取在售商品数量 - var resultOnline = GetShopProductListData(shop, 0, 1, 10); - if (resultOnline.Contains("\"code\":10000")) - { - if (row != null) - { - var text = BaseRegex.GetStringJson(ref resultOnline, "total"); - shop.OnlineProductCount = text.ParseToInt(); - } - } - // 读取下架商品数量 - var resultOffline = GetShopProductListData(shop, 1, 1, 10); - if (resultOffline.Contains("\"code\":10000")) - { - if (row != null) - { - var text = BaseRegex.GetStringJson(ref resultOffline, "total"); - shop.OfflineProductCount = text.ParseToInt(); - } - } - - string resultShowText = ""; - if (resultOnline.Contains("\"code\":10000") && resultOffline.Contains("\"code\":10000")) - { - resultShowText = "商品数量获取成功"; - } - else - { - resultShowText = "商品数量获取失败"; - if (!resultOnline.Contains("\"code\":10000")) - { - var html = BaseRegex.GetStringJson(ref resultOnline, "sub_msg"); - if (string.IsNullOrEmpty(html)) - html = resultOnline; - resultShowText += ",获取在售商品错误:" + html; - } - if (!resultOffline.Contains("\"code\":10000")) - { - var html = BaseRegex.GetStringJson(ref resultOffline, "sub_msg"); - if (string.IsNullOrEmpty(html)) - html = resultOffline; - resultShowText += ",获取仓库商品错误:" + html; - } - } - Invoke(new Action(() => - { - if (row != null) - { - if (isShowResult) - row.Cells["colMessage"].Value = resultShowText; - } - })); - } - - public string GetShopProductListData(ShopLoginInfo shop, int productStatus = 0, int page = 1, int pageSize = 50, long update_end_time = 0) - { - // 读取在售商品数量 - Dictionary dictionary = new Dictionary(); - dictionary.Add("page", page.ToString()); - dictionary.Add("size", pageSize.ToString()); - if (update_end_time > 0) - dictionary.Add("update_end_time", update_end_time.ToString()); - dictionary["status"] = productStatus.ToString(); - if (productStatus == 0) - dictionary["check_status"] = "3"; - DouyinApi douApi = new DouyinApi(shop); - douApi.JsonData = dictionary; - var resultOnline = douApi.GetProductList(); - return resultOnline; - } - - private void BtnDelViolate_Click(object sender, EventArgs e) - { - Task.Run(() => - { - int num = 0; - var selectRows = dgvCheck.Rows.Cast().Where(r => r.Cells["col_result_select"].Value?.ParseToBool() == true).ToList(); - try - { - foreach (DataGridViewRow row in selectRows) - { - num++; - Invoke(new Action(() => - { - this.statusBar.pgbTaskProgress.Maximum = selectRows.Count; - this.statusBar.lblTaskStatus.Text = "正在删除选中违规商品"; - this.statusBar.pgbTaskProgress.Value = num; - this.statusBar.pgbTaskProgress.Text = num + "/" + selectRows.Count; - })); - - - Thread.Sleep(Randomx.GetId(50, 100)); - - // 数据来源 1.产品数据库 2.店铺在售商品 3.店铺仓库商品 - var dataFrom = GetDataFrom(row.Cells["col_result_data_from"].Value?.ToString()); - var upId = row.Cells["col_result_up_id"].Value?.ToString(); - var shopId = row.Cells["col_result_shop_id"].Value?.ToString(); - var productId = row.Cells["col_result_product_id"].Value?.ToString(); - var violateParam = LstViolateParam.FirstOrDefault(vp => vp.UpIdNumber.ToString() == upId && vp.DouProductId == productId); - - if (dataFrom == 1) - { - string url = BaseClass.BuildFissionObjString("fession_api"); - string paraStr = "&fessiontitle=" + HttpUtility.UrlEncode(upId, Encoding.UTF8) - + "¤t_page=1" - + "&pagesize=500"; - string requestData = UserLogin.GetSignaturex("", "") + "&act=get" + paraStr; - try - { - string htmlData = GetHtml.PostUtf8(url, requestData); - var FessionObj = JsonConvert.DeserializeObject(htmlData); // 反序列化 - if (FessionObj != null && FessionObj.list != null && FessionObj.list.Count > 0) - { - var fessData = FessionObj.list.FirstOrDefault(f => f.fession_id == upId); - if (fessData != null) - { - //{\"code\":1,\"msg\":\"delete success!\"} - var result = new FissionDataBaseBLL().DelFessionData(fessData.id.ToString()); - if (result.Contains("\"msg\":\"delete success!\"")) - { - row.Cells["col_result_status"].Value = "删除成功"; - if (violateParam != null) - violateParam.HandleResult = "删除成功"; - continue; - } - } - } - } - catch (Exception ex) - { - LogSave.Add(Name, "访问服务器返回裂变数据异常"); - } - - row.Cells["col_result_status"].Value = "删除失败,请重试"; - if (violateParam != null) - violateParam.HandleResult = "删除失败,请重试"; - } - else - { - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId); - if (shop != null) - { - Dictionary dictionary = new Dictionary(); - dictionary.Add("product_id", productId); - DouyinApi douApi = new DouyinApi(shop); - douApi.JsonData = dictionary; - var result = douApi.DeleteProduct(); - if (result.Contains("\"code\":10000")) - { - row.Cells["col_result_status"].Value = "删除成功"; - if (violateParam != null) - violateParam.HandleResult = "删除成功"; - continue; - } - } - - row.Cells["col_result_status"].Value = "删除失败,请重试"; - if (violateParam != null) - violateParam.HandleResult = "删除失败,请重试"; - } - - if (num % 50 == 0) - { - SaveViolateParamWaitHandleList(); - } - } - } - catch (Exception ex) - { - } - - // 保存处理结果 - SaveViolateParamWaitHandleList(); - - Invoke(new Action(() => - { - var showText = "删除违规完成"; - if (cancellationTokenSource?.IsCancellationRequested == true) - showText = "删除违规中断"; - - this.statusBar.pgbTaskProgress.Maximum = 0; - this.statusBar.lblTaskStatus.Text = showText; - this.statusBar.pgbTaskProgress.Value = 0; - this.statusBar.pgbTaskProgress.Text = 0 + "/" + 0; - - BaseMsgForm.ShowInfo(showText); - })); - }); - } - - public void SaveViolateParamWaitHandleList() - { - var task = Task.Run(() => - { - LstViolateParam = LstViolateParam.Where(v => v.HandleResult != "删除成功").ToList(); - try - { - NaiBa.Util.Helper.ConfigHelper.SaveConfig>("violate_param_wait_handle_list", LstViolateParam); - } - catch - { - } - }); - task.Wait(); - } - - public void SaveViolateInfoList() - { - var task = Task.Run(() => - { - try - { - NaiBa.Util.Helper.ConfigHelper.SaveConfig>("violate_Info_list", LstViolateInfo); - } - catch - { - } - }); - task.Wait(); - } - - private string GetDataFromDescribe(int dataFrom) - { - string dataFromDescribe = null; - if (dataFrom == 1) - dataFromDescribe = "产品数据库"; - else if (dataFrom == 2) - dataFromDescribe = "店铺在售商品"; - else if (dataFrom == 3) - dataFromDescribe = "店铺仓库商品"; - return dataFromDescribe; - } - - private int GetDataFrom(string dataFromDescribe) - { - int dataFrom = 0; - if (dataFromDescribe == "产品数据库") - dataFrom = 1; - else if (dataFromDescribe == "店铺在售商品") - dataFrom = 2; - else if (dataFromDescribe == "店铺仓库商品") - dataFrom = 3; - return dataFrom; - } - - private void llSelectAllRule_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) - { - foreach (Control c in flpViolate.Controls) - { - var chk = c as CheckBox; - if (chk != null) - { - chk.Checked = true; - Cb_Click(chk, null); - } - } - } - - private void llSelectSerious_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) - { - foreach (Control c in flpViolate.Controls) - { - var chk = c as CheckBox; - if (chk != null) - { - if (chk.ForeColor == Color.FromArgb(240, 10, 0)) - { - chk.Checked = true; - } - else - { - chk.Checked = false; - } - Cb_Click(chk, null); - } - } - } - - private void llClear_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) - { - foreach (Control c in flpViolate.Controls) - { - var chk = c as CheckBox; - if (chk != null) - { - chk.Checked = false; - Cb_Click(chk, null); - } - } - } - } -} diff --git a/TEMUKJD/KJDForms/ProductForms/Old/ViolateManageForm.resx b/TEMUKJD/KJDForms/ProductForms/Old/ViolateManageForm.resx deleted file mode 100644 index 9faa20e..0000000 --- a/TEMUKJD/KJDForms/ProductForms/Old/ViolateManageForm.resx +++ /dev/null @@ -1,195 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductForms/ProductForm.cs b/TEMUKJD/KJDForms/ProductForms/ProductForm.cs index 6df39e0..e09464a 100644 --- a/TEMUKJD/KJDForms/ProductForms/ProductForm.cs +++ b/TEMUKJD/KJDForms/ProductForms/ProductForm.cs @@ -1,6 +1,5 @@ using TemuKJD.KJDForms.ProductForms; using TemuKJD.KJDForms.SalesCenterForms; -using TemuKJD.KJDForms.ShopOptimizeForms; using System; using System.Collections.Generic; using System.ComponentModel; @@ -26,19 +25,6 @@ namespace TemuKJD.KJDForms.ProductForms public Lazy userSelectThirdProductForm = new Lazy(); public Lazy marketingActivityForm = new Lazy(); - - public Lazy uploadProductForm = new Lazy(); - public Lazy commissionForm = new Lazy(); - public Lazy cleanDataForm = new Lazy(); - public Lazy fissionDataBaseForm = new Lazy(); - public Lazy shopProductForm = new Lazy(); - public Lazy stockSyncForm = new Lazy(); - public Lazy specialDelaySendForm = new Lazy(); - public Lazy getUpProductForm = new Lazy(); - public Lazy violateManageForm = new Lazy(); - public Lazy uploadProductErrorForm = new Lazy(); - public Lazy clearNoVisitorForm = new Lazy(); - public ProductForm() { InitializeComponent(); @@ -75,39 +61,6 @@ namespace TemuKJD.KJDForms.ProductForms case "活动报名": SetForm(marketingActivityForm.Value); break; - case "商品发布": - SetForm(uploadProductForm.Value); - break; - case "佣金设置": - SetForm(commissionForm.Value); - break; - case "净化数据": - SetForm(cleanDataForm.Value); - break; - case "产品数据库": - SetForm(fissionDataBaseForm.Value); - break; - case "商品上下架": - SetForm(shopProductForm.Value); - break; - case "清理无流量": - SetForm(clearNoVisitorForm.Value); - break; - case "库存管理": - SetForm(stockSyncForm.Value); - break; - case "特殊延迟发货": - SetForm(specialDelaySendForm.Value); - break; - case "云违规排查": - SetForm(violateManageForm.Value); - break; - case "跳转上家": - SetForm(getUpProductForm.Value); - break; - case "上传错误列表": - SetForm(uploadProductErrorForm.Value); - break; } })); }).Start(); diff --git a/TEMUKJD/KJDForms/ProductSelectForms/DbProductListForm.Designer.cs b/TEMUKJD/KJDForms/ProductSelectForms/DbProductListForm.Designer.cs index 59353b6..704feef 100644 --- a/TEMUKJD/KJDForms/ProductSelectForms/DbProductListForm.Designer.cs +++ b/TEMUKJD/KJDForms/ProductSelectForms/DbProductListForm.Designer.cs @@ -75,6 +75,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms this.colHeadWords = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colEndWords = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colFissionWords = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colAddTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.col_edit = new System.Windows.Forms.DataGridViewLinkColumn(); this.col_delete = new System.Windows.Forms.DataGridViewLinkColumn(); this.col_select_product = new System.Windows.Forms.DataGridViewLinkColumn(); @@ -368,6 +369,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms this.colHeadWords, this.colEndWords, this.colFissionWords, + this.colAddTime, this.col_edit, this.col_delete, this.col_select_product}); @@ -519,6 +521,12 @@ namespace TemuKJD.KJDForms.ProductSelectForms this.colFissionWords.ReadOnly = true; this.colFissionWords.Visible = false; // + // colAddTime + // + this.colAddTime.HeaderText = "入库时间"; + this.colAddTime.Name = "colAddTime"; + this.colAddTime.ReadOnly = true; + // // col_edit // this.col_edit.FillWeight = 60F; @@ -612,6 +620,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms private System.Windows.Forms.DataGridViewTextBoxColumn colHeadWords; private System.Windows.Forms.DataGridViewTextBoxColumn colEndWords; private System.Windows.Forms.DataGridViewTextBoxColumn colFissionWords; + private System.Windows.Forms.DataGridViewTextBoxColumn colAddTime; private System.Windows.Forms.DataGridViewLinkColumn col_edit; private System.Windows.Forms.DataGridViewLinkColumn col_delete; private System.Windows.Forms.DataGridViewLinkColumn col_select_product; diff --git a/TEMUKJD/KJDForms/ProductSelectForms/DbProductListForm.cs b/TEMUKJD/KJDForms/ProductSelectForms/DbProductListForm.cs index 6a01a54..1a3ba65 100644 --- a/TEMUKJD/KJDForms/ProductSelectForms/DbProductListForm.cs +++ b/TEMUKJD/KJDForms/ProductSelectForms/DbProductListForm.cs @@ -135,6 +135,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms prod.head_words, prod.end_words, prod.fission_words, + prod.add_time, "编辑", "删除", "认领"); diff --git a/TEMUKJD/KJDForms/ProductSelectForms/DbProductListForm.resx b/TEMUKJD/KJDForms/ProductSelectForms/DbProductListForm.resx index 4e07f5c..bcab5c3 100644 --- a/TEMUKJD/KJDForms/ProductSelectForms/DbProductListForm.resx +++ b/TEMUKJD/KJDForms/ProductSelectForms/DbProductListForm.resx @@ -162,6 +162,9 @@ True + + True + True diff --git a/TEMUKJD/KJDForms/ProductSelectForms/DbProductSelectListManageForm.Designer.cs b/TEMUKJD/KJDForms/ProductSelectForms/DbProductSelectListManageForm.Designer.cs index 1129aed..8e96fec 100644 --- a/TEMUKJD/KJDForms/ProductSelectForms/DbProductSelectListManageForm.Designer.cs +++ b/TEMUKJD/KJDForms/ProductSelectForms/DbProductSelectListManageForm.Designer.cs @@ -39,6 +39,7 @@ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DbProductSelectListManageForm)); this.splitContainer1 = new System.Windows.Forms.SplitContainer(); + this.btnDel = new DevComponents.DotNetBar.PanelEx(); this.btnReFission = new TemuKJD.UserControls.ButtonEx(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.label13 = new System.Windows.Forms.Label(); @@ -138,6 +139,7 @@ // // splitContainer1.Panel1 // + this.splitContainer1.Panel1.Controls.Add(this.btnDel); this.splitContainer1.Panel1.Controls.Add(this.btnReFission); this.splitContainer1.Panel1.Controls.Add(this.tableLayoutPanel1); this.splitContainer1.Panel1.Controls.Add(this.btnSetSubSa); @@ -150,6 +152,32 @@ this.splitContainer1.SplitterDistance = 70; this.splitContainer1.TabIndex = 2; // + // btnDel + // + this.btnDel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnDel.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnDel.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnDel.DisabledBackColor = System.Drawing.Color.Empty; + this.btnDel.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnDel.Location = new System.Drawing.Point(1280, 39); + this.btnDel.Name = "btnDel"; + this.btnDel.Size = new System.Drawing.Size(90, 26); + this.btnDel.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnDel.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnDel.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnDel.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnDel.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnDel.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnDel.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnDel.Style.GradientAngle = 90; + this.btnDel.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnDel.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnDel.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnDel.TabIndex = 473; + this.btnDel.Text = "批量删除选中"; + this.btnDel.Visible = false; + this.btnDel.Click += new System.EventHandler(this.btnDel_Click); + // // btnReFission // this.btnReFission.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); @@ -158,7 +186,7 @@ this.btnReFission.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnReFission.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnReFission.ForeColor = System.Drawing.Color.White; - this.btnReFission.Location = new System.Drawing.Point(1280, 19); + this.btnReFission.Location = new System.Drawing.Point(1280, 8); this.btnReFission.Margin = new System.Windows.Forms.Padding(2); this.btnReFission.Name = "btnReFission"; this.btnReFission.Size = new System.Drawing.Size(90, 26); @@ -712,7 +740,7 @@ this.btnSetSubSa.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSetSubSa.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnSetSubSa.ForeColor = System.Drawing.Color.White; - this.btnSetSubSa.Location = new System.Drawing.Point(1372, 19); + this.btnSetSubSa.Location = new System.Drawing.Point(1372, 8); this.btnSetSubSa.Margin = new System.Windows.Forms.Padding(2); this.btnSetSubSa.Name = "btnSetSubSa"; this.btnSetSubSa.Size = new System.Drawing.Size(90, 26); @@ -729,7 +757,7 @@ this.btnAdd.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnAdd.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnAdd.ForeColor = System.Drawing.Color.White; - this.btnAdd.Location = new System.Drawing.Point(1464, 19); + this.btnAdd.Location = new System.Drawing.Point(1464, 8); this.btnAdd.Margin = new System.Windows.Forms.Padding(2); this.btnAdd.Name = "btnAdd"; this.btnAdd.Size = new System.Drawing.Size(90, 26); @@ -1167,5 +1195,6 @@ private System.Windows.Forms.DataGridViewTextBoxColumn colOpResult; private System.Windows.Forms.Label label13; private System.Windows.Forms.ComboBox cmbNotes; + private DevComponents.DotNetBar.PanelEx btnDel; } } \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductSelectForms/DbProductSelectListManageForm.cs b/TEMUKJD/KJDForms/ProductSelectForms/DbProductSelectListManageForm.cs index cdcc08e..00e3dc8 100644 --- a/TEMUKJD/KJDForms/ProductSelectForms/DbProductSelectListManageForm.cs +++ b/TEMUKJD/KJDForms/ProductSelectForms/DbProductSelectListManageForm.cs @@ -436,7 +436,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms } } - private bool DeleteProduct(string dbId) + private bool DeleteProduct(string dbId, bool isShowErrMsg = true) { var url = BaseClass.BuildObjString("product/del_select_product"); var data = UserLogin.GetSignaturex() + @@ -448,7 +448,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms html = GetHtml.PostUtf8(url, data); if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200")) { - BaseMsgForm.ShowError("删除商品失败,请重试!" + BaseRegex.GetStringJson(ref html, "msg")); + if (isShowErrMsg) + BaseMsgForm.ShowError("删除失败,请重试!" + BaseRegex.GetStringJson(ref html, "msg")); return false; } return true; @@ -1401,6 +1402,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms private void chkShowDel_CheckedChanged(object sender, EventArgs e) { dgvSelectProduct.Columns["colDelete"].Visible = this.chkShowDel.Checked; + btnDel.Visible = this.chkShowDel.Checked; } private void btnReFission_Click(object sender, EventArgs e) @@ -1574,5 +1576,33 @@ namespace TemuKJD.KJDForms.ProductSelectForms public decimal numSkuRandomPrice { get; set; } = 0; } DbProdSelectConfig dbProdSelectConfig = new DbProdSelectConfig(); + + private void btnDel_Click(object sender, EventArgs e) + { + if (BaseMsgForm.ShowConfirm("确定删除认领商品吗?删除后不可恢复!").DialogResult == DialogResult.Cancel) + return; + + pbLoading.Visible = true; + var dbIds = dgvSelectProduct.Rows.Cast().Where(r => r.Cells["colSelect"].Value.ParseToBool() == true) + .Select(r => r.Cells["colSelectId"].Value.ParseToString()); + + Task.Run(() => + { + foreach (var dbId in dbIds) + { + Thread.Sleep(50); + var rst = DeleteProduct(dbId, false); + if (rst == false) + { + Invoke(new Action(() => + { + BaseMsgForm.ShowError("数据删除失败,请稍后重试!"); + })); + break; + } + }; + SearchDbProdSelect(this.ucSplitPage1.CurrentPage); + }); + } } } diff --git a/TEMUKJD/KJDForms/ProductSelectForms/Price/DbProductPriceMarkUpForm.Designer.cs b/TEMUKJD/KJDForms/ProductSelectForms/Price/DbProductPriceMarkUpForm.Designer.cs new file mode 100644 index 0000000..306255e --- /dev/null +++ b/TEMUKJD/KJDForms/ProductSelectForms/Price/DbProductPriceMarkUpForm.Designer.cs @@ -0,0 +1,714 @@ + +namespace TemuKJD.KJDForms.ProductSelectForms +{ + partial class DbPriceMarkUpForm + { + /// + /// 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 dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); + this.splitContainer1 = new System.Windows.Forms.SplitContainer(); + this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); + this.panel5 = new System.Windows.Forms.Panel(); + this.chkShowDelete = new TemuKJD.UserComponent.UcCheckBox(this.components); + this.btnDelete = new TemuKJD.UserControls.ButtonEx(); + this.panel4 = new System.Windows.Forms.Panel(); + this.loginPanel = new DevComponents.DotNetBar.PanelEx(); + this.numericUpDown6 = new System.Windows.Forms.NumericUpDown(); + this.numericUpDown5 = new System.Windows.Forms.NumericUpDown(); + this.label3 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.numericUpDown4 = new System.Windows.Forms.NumericUpDown(); + this.numericUpDown3 = new System.Windows.Forms.NumericUpDown(); + this.label2 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.numericUpDown2 = new System.Windows.Forms.NumericUpDown(); + this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); + this.txtExtCode = new System.Windows.Forms.TextBox(); + this.label5 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.pnlEmpty = new DevComponents.DotNetBar.PanelEx(); + this.txtNotes = new System.Windows.Forms.TextBox(); + this.label4 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.splitContainer2 = new System.Windows.Forms.SplitContainer(); + this.pbLoading = new System.Windows.Forms.PictureBox(); + this.dgvPrice = new TemuKJD.UserComponent.DataGridViewEx(); + this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.colExtCpde = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colOriginalPrice = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colMarkupTimes = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colExtraPrice = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.conNotes = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colEdit = new System.Windows.Forms.DataGridViewLinkColumn(); + this.colDelete = new System.Windows.Forms.DataGridViewLinkColumn(); + this.chkAutoDrag = new System.Windows.Forms.CheckBox(); + this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage(); + this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); + this.btnImport = new DevComponents.DotNetBar.PanelEx(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); + this.splitContainer1.Panel1.SuspendLayout(); + this.splitContainer1.Panel2.SuspendLayout(); + this.splitContainer1.SuspendLayout(); + this.tableLayoutPanel2.SuspendLayout(); + this.panel5.SuspendLayout(); + this.panel4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDown6)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDown5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDown4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); + this.splitContainer2.Panel1.SuspendLayout(); + this.splitContainer2.Panel2.SuspendLayout(); + this.splitContainer2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pbLoading)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dgvPrice)).BeginInit(); + this.SuspendLayout(); + // + // splitContainer1 + // + this.splitContainer1.BackColor = System.Drawing.Color.White; + 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.tableLayoutPanel2); + // + // splitContainer1.Panel2 + // + this.splitContainer1.Panel2.Controls.Add(this.splitContainer2); + this.splitContainer1.Panel2.Margin = new System.Windows.Forms.Padding(4); + this.splitContainer1.Size = new System.Drawing.Size(1307, 535); + this.splitContainer1.SplitterDistance = 46; + this.splitContainer1.TabIndex = 35; + // + // tableLayoutPanel2 + // + this.tableLayoutPanel2.ColumnCount = 2; + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + this.tableLayoutPanel2.Controls.Add(this.panel5, 1, 0); + this.tableLayoutPanel2.Controls.Add(this.panel4, 0, 0); + this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel2.Location = new System.Drawing.Point(0, 0); + this.tableLayoutPanel2.Name = "tableLayoutPanel2"; + this.tableLayoutPanel2.RowCount = 1; + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.tableLayoutPanel2.Size = new System.Drawing.Size(1307, 46); + this.tableLayoutPanel2.TabIndex = 37; + // + // panel5 + // + this.panel5.Controls.Add(this.chkShowDelete); + this.panel5.Controls.Add(this.btnDelete); + this.panel5.Location = new System.Drawing.Point(1096, 3); + this.panel5.Name = "panel5"; + this.panel5.Size = new System.Drawing.Size(208, 40); + this.panel5.TabIndex = 1; + // + // chkShowDelete + // + this.chkShowDelete.Anchor = System.Windows.Forms.AnchorStyles.Right; + this.chkShowDelete.AutoSize = true; + this.chkShowDelete.BackColor = System.Drawing.Color.White; + this.chkShowDelete.Location = new System.Drawing.Point(114, 11); + this.chkShowDelete.Name = "chkShowDelete"; + this.chkShowDelete.Size = new System.Drawing.Size(87, 21); + this.chkShowDelete.TabIndex = 374; + this.chkShowDelete.Text = "显示删除栏"; + this.chkShowDelete.UseVisualStyleBackColor = false; + this.chkShowDelete.CheckedChanged += new System.EventHandler(this.chkShowDelete_CheckedChanged); + // + // btnDelete + // + this.btnDelete.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnDelete.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnDelete.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnDelete.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnDelete.ForeColor = System.Drawing.Color.White; + this.btnDelete.Location = new System.Drawing.Point(37, 8); + this.btnDelete.Margin = new System.Windows.Forms.Padding(2); + this.btnDelete.Name = "btnDelete"; + this.btnDelete.Size = new System.Drawing.Size(66, 26); + this.btnDelete.TabIndex = 372; + this.btnDelete.Text = "删除选中"; + this.btnDelete.UseVisualStyleBackColor = false; + this.btnDelete.Visible = false; + // + // panel4 + // + this.panel4.Controls.Add(this.btnImport); + this.panel4.Controls.Add(this.loginPanel); + this.panel4.Controls.Add(this.numericUpDown6); + this.panel4.Controls.Add(this.numericUpDown5); + this.panel4.Controls.Add(this.label3); + this.panel4.Controls.Add(this.label8); + this.panel4.Controls.Add(this.numericUpDown4); + this.panel4.Controls.Add(this.numericUpDown3); + this.panel4.Controls.Add(this.label2); + this.panel4.Controls.Add(this.label7); + this.panel4.Controls.Add(this.numericUpDown2); + this.panel4.Controls.Add(this.numericUpDown1); + this.panel4.Controls.Add(this.txtExtCode); + this.panel4.Controls.Add(this.label5); + this.panel4.Controls.Add(this.label1); + this.panel4.Controls.Add(this.pnlEmpty); + this.panel4.Controls.Add(this.txtNotes); + this.panel4.Controls.Add(this.label4); + this.panel4.Controls.Add(this.label6); + this.panel4.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel4.Location = new System.Drawing.Point(3, 3); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(1087, 40); + this.panel4.TabIndex = 0; + // + // loginPanel + // + this.loginPanel.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.loginPanel.Cursor = System.Windows.Forms.Cursors.Hand; + this.loginPanel.DisabledBackColor = System.Drawing.Color.Empty; + this.loginPanel.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.loginPanel.Location = new System.Drawing.Point(967, 8); + this.loginPanel.Name = "loginPanel"; + this.loginPanel.Size = new System.Drawing.Size(48, 26); + this.loginPanel.Style.Alignment = System.Drawing.StringAlignment.Center; + this.loginPanel.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.loginPanel.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.loginPanel.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.loginPanel.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.loginPanel.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.loginPanel.Style.ForeColor.Color = System.Drawing.Color.White; + this.loginPanel.Style.GradientAngle = 90; + this.loginPanel.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.loginPanel.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.loginPanel.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.loginPanel.TabIndex = 441; + this.loginPanel.Text = "查询"; + this.loginPanel.Click += new System.EventHandler(this.btnSearch_Click); + // + // numericUpDown6 + // + this.numericUpDown6.Increment = new decimal(new int[] { + 1, + 0, + 0, + 65536}); + this.numericUpDown6.Location = new System.Drawing.Point(749, 10); + this.numericUpDown6.Maximum = new decimal(new int[] { + 10000, + 0, + 0, + 0}); + this.numericUpDown6.Name = "numericUpDown6"; + this.numericUpDown6.Size = new System.Drawing.Size(50, 23); + this.numericUpDown6.TabIndex = 433; + this.numericUpDown6.Value = new decimal(new int[] { + 1000, + 0, + 0, + 0}); + // + // numericUpDown5 + // + this.numericUpDown5.Increment = new decimal(new int[] { + 1, + 0, + 0, + 65536}); + this.numericUpDown5.Location = new System.Drawing.Point(690, 10); + this.numericUpDown5.Maximum = new decimal(new int[] { + 10000, + 0, + 0, + 0}); + this.numericUpDown5.Name = "numericUpDown5"; + this.numericUpDown5.Size = new System.Drawing.Size(50, 23); + this.numericUpDown5.TabIndex = 432; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(607, 14); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(92, 17); + this.label3.TabIndex = 431; + this.label3.Text = "额外加价范围:"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(737, 14); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(17, 17); + this.label8.TabIndex = 434; + this.label8.Text = "~"; + // + // numericUpDown4 + // + this.numericUpDown4.Increment = new decimal(new int[] { + 1, + 0, + 0, + 65536}); + this.numericUpDown4.Location = new System.Drawing.Point(541, 10); + this.numericUpDown4.Maximum = new decimal(new int[] { + 10000, + 0, + 0, + 0}); + this.numericUpDown4.Name = "numericUpDown4"; + this.numericUpDown4.Size = new System.Drawing.Size(50, 23); + this.numericUpDown4.TabIndex = 429; + this.numericUpDown4.Value = new decimal(new int[] { + 1000, + 0, + 0, + 0}); + // + // numericUpDown3 + // + this.numericUpDown3.Increment = new decimal(new int[] { + 1, + 0, + 0, + 65536}); + this.numericUpDown3.Location = new System.Drawing.Point(482, 10); + this.numericUpDown3.Maximum = new decimal(new int[] { + 10000, + 0, + 0, + 0}); + this.numericUpDown3.Name = "numericUpDown3"; + this.numericUpDown3.Size = new System.Drawing.Size(50, 23); + this.numericUpDown3.TabIndex = 428; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(399, 14); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(92, 17); + this.label2.TabIndex = 427; + this.label2.Text = "加价倍数范围:"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(529, 14); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(17, 17); + this.label7.TabIndex = 430; + this.label7.Text = "~"; + // + // numericUpDown2 + // + this.numericUpDown2.Increment = new decimal(new int[] { + 1, + 0, + 0, + 65536}); + this.numericUpDown2.Location = new System.Drawing.Point(333, 10); + this.numericUpDown2.Maximum = new decimal(new int[] { + 10000, + 0, + 0, + 0}); + this.numericUpDown2.Name = "numericUpDown2"; + this.numericUpDown2.Size = new System.Drawing.Size(50, 23); + this.numericUpDown2.TabIndex = 425; + this.numericUpDown2.Value = new decimal(new int[] { + 1000, + 0, + 0, + 0}); + // + // numericUpDown1 + // + this.numericUpDown1.Increment = new decimal(new int[] { + 1, + 0, + 0, + 65536}); + this.numericUpDown1.Location = new System.Drawing.Point(274, 10); + this.numericUpDown1.Maximum = new decimal(new int[] { + 10000, + 0, + 0, + 0}); + this.numericUpDown1.Name = "numericUpDown1"; + this.numericUpDown1.Size = new System.Drawing.Size(50, 23); + this.numericUpDown1.TabIndex = 424; + // + // txtExtCode + // + this.txtExtCode.Location = new System.Drawing.Point(98, 10); + this.txtExtCode.Name = "txtExtCode"; + this.txtExtCode.Size = new System.Drawing.Size(100, 23); + this.txtExtCode.TabIndex = 419; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(65, 14); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(44, 17); + this.label5.TabIndex = 420; + this.label5.Text = "货号:"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(215, 14); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(68, 17); + this.label1.TabIndex = 418; + this.label1.Text = "原价范围:"; + // + // pnlEmpty + // + this.pnlEmpty.CanvasColor = System.Drawing.SystemColors.Control; + this.pnlEmpty.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.pnlEmpty.DisabledBackColor = System.Drawing.Color.Empty; + this.pnlEmpty.Location = new System.Drawing.Point(1021, 8); + this.pnlEmpty.Name = "pnlEmpty"; + this.pnlEmpty.Size = new System.Drawing.Size(56, 26); + this.pnlEmpty.Style.Alignment = System.Drawing.StringAlignment.Center; + this.pnlEmpty.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.pnlEmpty.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); + this.pnlEmpty.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.pnlEmpty.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.pnlEmpty.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.pnlEmpty.Style.GradientAngle = 90; + this.pnlEmpty.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; + this.pnlEmpty.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.pnlEmpty.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.pnlEmpty.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.pnlEmpty.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; + this.pnlEmpty.TabIndex = 413; + this.pnlEmpty.Text = "清空条件"; + this.pnlEmpty.Click += new System.EventHandler(this.pnlEmpty_Click); + // + // txtNotes + // + this.txtNotes.Location = new System.Drawing.Point(844, 10); + this.txtNotes.Name = "txtNotes"; + this.txtNotes.Size = new System.Drawing.Size(100, 23); + this.txtNotes.TabIndex = 376; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(811, 14); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(44, 17); + this.label4.TabIndex = 377; + this.label4.Text = "备注:"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(321, 14); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(17, 17); + this.label6.TabIndex = 426; + this.label6.Text = "~"; + // + // splitContainer2 + // + this.splitContainer2.BackColor = System.Drawing.Color.White; + this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; + this.splitContainer2.Location = new System.Drawing.Point(0, 0); + this.splitContainer2.Name = "splitContainer2"; + this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; + // + // splitContainer2.Panel1 + // + this.splitContainer2.Panel1.BackColor = System.Drawing.Color.White; + this.splitContainer2.Panel1.Controls.Add(this.pbLoading); + this.splitContainer2.Panel1.Controls.Add(this.dgvPrice); + this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 4, 0); + // + // splitContainer2.Panel2 + // + this.splitContainer2.Panel2.Controls.Add(this.chkAutoDrag); + this.splitContainer2.Panel2.Controls.Add(this.ucSplitPage1); + this.splitContainer2.Panel2.Controls.Add(this.statusBar); + this.splitContainer2.Size = new System.Drawing.Size(1307, 485); + this.splitContainer2.SplitterDistance = 456; + this.splitContainer2.TabIndex = 0; + // + // 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(628, 203); + this.pbLoading.Name = "pbLoading"; + this.pbLoading.Size = new System.Drawing.Size(50, 50); + this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pbLoading.TabIndex = 6; + this.pbLoading.TabStop = false; + this.pbLoading.Visible = false; + // + // dgvShop + // + this.dgvPrice.AllowUserToAddRows = false; + this.dgvPrice.AllowUserToDeleteRows = false; + dataGridViewCellStyle5.BackColor = System.Drawing.Color.WhiteSmoke; + this.dgvPrice.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5; + this.dgvPrice.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dgvPrice.BackgroundColor = System.Drawing.Color.White; + this.dgvPrice.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgvPrice.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6; + this.dgvPrice.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dgvPrice.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.colSelect, + this.colExtCpde, + this.colOriginalPrice, + this.colMarkupTimes, + this.colExtraPrice, + this.conNotes, + this.colEdit, + this.colDelete}); + this.dgvPrice.Dock = System.Windows.Forms.DockStyle.Fill; + this.dgvPrice.Location = new System.Drawing.Point(4, 0); + this.dgvPrice.Name = "dgvShop"; + this.dgvPrice.ReadOnly = true; + this.dgvPrice.RowTemplate.Height = 23; + this.dgvPrice.Size = new System.Drawing.Size(1299, 456); + this.dgvPrice.TabIndex = 5; + // + // colSelect + // + this.colSelect.FillWeight = 26F; + 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; + // + // colExtCpde + // + this.colExtCpde.FillWeight = 69.42599F; + this.colExtCpde.HeaderText = "商品货号"; + this.colExtCpde.Name = "colExtCpde"; + this.colExtCpde.ReadOnly = true; + // + // colOriginalPrice + // + this.colOriginalPrice.FillWeight = 69.42599F; + this.colOriginalPrice.HeaderText = "商品原价"; + this.colOriginalPrice.Name = "colOriginalPrice"; + this.colOriginalPrice.ReadOnly = true; + // + // colMarkupTimes + // + this.colMarkupTimes.HeaderText = "加价倍数"; + this.colMarkupTimes.Name = "colMarkupTimes"; + this.colMarkupTimes.ReadOnly = true; + // + // colExtraPrice + // + this.colExtraPrice.HeaderText = "额外加价"; + this.colExtraPrice.Name = "colExtraPrice"; + this.colExtraPrice.ReadOnly = true; + // + // conNotes + // + this.conNotes.HeaderText = "备注"; + this.conNotes.Name = "conNotes"; + this.conNotes.ReadOnly = true; + // + // colEdit + // + this.colEdit.FillWeight = 46F; + this.colEdit.HeaderText = "编辑"; + this.colEdit.Name = "colEdit"; + this.colEdit.ReadOnly = true; + this.colEdit.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colEdit.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + // + // colDelete + // + this.colDelete.FillWeight = 46F; + this.colDelete.HeaderText = "删除"; + this.colDelete.Name = "colDelete"; + this.colDelete.ReadOnly = true; + this.colDelete.Visible = false; + // + // chkAutoDrag + // + this.chkAutoDrag.Anchor = System.Windows.Forms.AnchorStyles.Right; + this.chkAutoDrag.AutoSize = true; + this.chkAutoDrag.BackColor = System.Drawing.Color.White; + this.chkAutoDrag.Location = new System.Drawing.Point(631, 0); + this.chkAutoDrag.Name = "chkAutoDrag"; + this.chkAutoDrag.Size = new System.Drawing.Size(159, 21); + this.chkAutoDrag.TabIndex = 3; + this.chkAutoDrag.Text = "登录时自动滑动拼图验证"; + this.chkAutoDrag.UseVisualStyleBackColor = false; + this.chkAutoDrag.Visible = false; + // + // ucSplitPage1 + // + this.ucSplitPage1.CurrentPage = 1; + this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Right; + this.ucSplitPage1.Location = new System.Drawing.Point(945, 0); + this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0); + this.ucSplitPage1.Name = "ucSplitPage1"; + this.ucSplitPage1.Size = new System.Drawing.Size(362, 25); + this.ucSplitPage1.TabIndex = 4; + this.ucSplitPage1.TotalPage = 1; + // + // 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(1307, 25); + this.statusBar.TabIndex = 1; + // + // btnImport + // + this.btnImport.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnImport.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnImport.DisabledBackColor = System.Drawing.Color.Empty; + this.btnImport.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnImport.Location = new System.Drawing.Point(11, 8); + this.btnImport.Name = "btnImport"; + this.btnImport.Size = new System.Drawing.Size(48, 26); + this.btnImport.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnImport.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnImport.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnImport.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnImport.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnImport.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnImport.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnImport.Style.GradientAngle = 90; + this.btnImport.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnImport.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnImport.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnImport.TabIndex = 451; + this.btnImport.Text = "导入"; + this.btnImport.Click += new System.EventHandler(this.btnImport_Click); + // + // DbPriceMarkUpForm + // + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; + this.ClientSize = new System.Drawing.Size(1307, 535); + this.Controls.Add(this.splitContainer1); + this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.Name = "DbPriceMarkUpForm"; + this.Text = "产品加价"; + this.Load += new System.EventHandler(this.DbPriceMarkUpForm_Load); + this.VisibleChanged += new System.EventHandler(this.DbPriceMarkUpForm_VisibleChanged); + this.splitContainer1.Panel1.ResumeLayout(false); + this.splitContainer1.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); + this.splitContainer1.ResumeLayout(false); + this.tableLayoutPanel2.ResumeLayout(false); + this.panel5.ResumeLayout(false); + this.panel5.PerformLayout(); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDown6)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDown5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDown4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); + this.splitContainer2.Panel1.ResumeLayout(false); + this.splitContainer2.Panel2.ResumeLayout(false); + this.splitContainer2.Panel2.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); + this.splitContainer2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.pbLoading)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dgvPrice)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.SplitContainer splitContainer1; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; + private System.Windows.Forms.Panel panel5; + private UserComponent.UcCheckBox chkShowDelete; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.TextBox txtExtCode; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label1; + private DevComponents.DotNetBar.PanelEx pnlEmpty; + private System.Windows.Forms.TextBox txtNotes; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.SplitContainer splitContainer2; + private System.Windows.Forms.PictureBox pbLoading; + private UserComponent.DataGridViewEx dgvPrice; + private System.Windows.Forms.CheckBox chkAutoDrag; + private UserControls.UcSplitPage ucSplitPage1; + private UserControls.StatusBarUserControl statusBar; + private UserControls.ButtonEx btnDelete; + private System.Windows.Forms.NumericUpDown numericUpDown4; + private System.Windows.Forms.NumericUpDown numericUpDown3; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.NumericUpDown numericUpDown2; + private System.Windows.Forms.NumericUpDown numericUpDown1; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.NumericUpDown numericUpDown6; + private System.Windows.Forms.NumericUpDown numericUpDown5; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label8; + private DevComponents.DotNetBar.PanelEx loginPanel; + private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; + private System.Windows.Forms.DataGridViewTextBoxColumn colExtCpde; + private System.Windows.Forms.DataGridViewTextBoxColumn colOriginalPrice; + private System.Windows.Forms.DataGridViewTextBoxColumn colMarkupTimes; + private System.Windows.Forms.DataGridViewTextBoxColumn colExtraPrice; + private System.Windows.Forms.DataGridViewTextBoxColumn conNotes; + private System.Windows.Forms.DataGridViewLinkColumn colEdit; + private System.Windows.Forms.DataGridViewLinkColumn colDelete; + private DevComponents.DotNetBar.PanelEx btnImport; + } +} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductSelectForms/Price/DbProductPriceMarkUpForm.cs b/TEMUKJD/KJDForms/ProductSelectForms/Price/DbProductPriceMarkUpForm.cs new file mode 100644 index 0000000..ef830ab --- /dev/null +++ b/TEMUKJD/KJDForms/ProductSelectForms/Price/DbProductPriceMarkUpForm.cs @@ -0,0 +1,278 @@ +using AllBase; +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.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using TemuKJD.Extension; +using TemuKJD.KJDForms.BaseForms; +using Work; + +namespace TemuKJD.KJDForms.ProductSelectForms +{ + public partial class DbPriceMarkUpForm : Form + { + List lstPriceInfo = new List(); + + public DbPriceMarkUpForm() + { + InitializeComponent(); + } + + private void DbPriceMarkUpForm_Load(object sender, EventArgs e) + { + this.ucSplitPage1.PageChange += UcSplitPage1_PageChange; + this.dgvPrice.AddSelectorColumn("colSelect"); + + if (BaseClass.SaLevel != 1) + { + this.chkShowDelete.Visible = false; + } + } + + private void UcSplitPage1_PageChange(object obj) + { + SearchPrice(this.ucSplitPage1.CurrentPage); + } + + private void DbPriceMarkUpForm_VisibleChanged(object sender, EventArgs e) + { + if (this.Visible == true) + { + this.pbLoading.Visible = true; + SearchPrice(this.ucSplitPage1.CurrentPage); + } + } + + private void chkShowDelete_CheckedChanged(object sender, EventArgs e) + { + this.dgvPrice.Columns["colDelete"].Visible = chkShowDelete.Checked; + this.btnDelete.Visible = chkShowDelete.Checked; + } + + private void btnImport_Click(object sender, EventArgs e) + { + ImportShop(); + } + + void ImportShop() + { + this.btnImport.Enabled = false; + string text = "货号加价导入格式:\r\n\r\n" + + "1.货号,价格/元,申报价格倍数,额外加价金额/元\r\n" + + "2.货号,价格/元,申报价格倍数,额外加价金额/元,备注\r\n" + + "例如001-007,9,2,3\r\n\r\n" + + "多个货号请每个货号新起一行。"; + BaseMsgForm.ShowInfo(text, "", FormLevel.LARGE); + + OpenFileDialog openFileDialog = new OpenFileDialog(); + openFileDialog.Filter = "文本文件(*.txt)|*.txt|所有文件 (*.*)|*.*"; + openFileDialog.RestoreDirectory = true; + openFileDialog.FilterIndex = 1; + if (openFileDialog.ShowDialog() == DialogResult.OK) + { + using (StreamReader sr = new StreamReader(openFileDialog.FileName, System.Text.Encoding.UTF8)) + //using (StreamReader sr = new StreamReader(openFileDialog.FileName, Encoding.GetEncoding("gb2312"))) + { + string fileName = openFileDialog.FileName; + string importStr = sr.ReadToEnd().Trim(); + var strArr = importStr.Split(new string[] { "\r", "\n" }, StringSplitOptions.RemoveEmptyEntries); + for (int i = 0; i < strArr.Length; i++) + { + try + { + // 通用格式 + //货号,价格/元,申报价格(加价比例), + //001-007,9,2倍+3, + if (strArr[i].Contains("倍+")) + { + var productArr = strArr[i].Split(new string[] { " ", "\t", ",", "倍+" }, StringSplitOptions.RemoveEmptyEntries); + if (productArr.Length > 3) + { + TemuDBPriceInfo price = new TemuDBPriceInfo + { + ext_code = productArr[0], + original_price = (productArr[1].ParseToDecimal() * 100).ParseToInt(), + markup_times = productArr[2].ParseToInt(), + extra_price = (productArr[3].ParseToDecimal() * 100).ParseToInt(), + }; + if (productArr.Length > 4) + { + price.notes = productArr[4]; + } + + AddDbPrice(price); + } + } + } + catch (Exception ex) + { + } + } + } + } + this.btnImport.Enabled = true; + } + + public string AddDbPrice(TemuDBPriceInfo _price) + { + var url = BaseClass.BuildObjString("price/add_price"); + var data = UserLogin.GetSignaturex() + + "&ext_code=" + _price.ext_code + + "&original_price=" + _price.original_price + + "&markup_times=" + _price.markup_times + + "&extra_price=" + _price.extra_price + + "¬es=" + GetHtml.UrlEncodeUtf8(_price.notes); + + var result = GetHtml.PostUtf8(url, data); + if (!result.Contains("\"code\":200") && !result.Contains("已达上限") && !result.Contains("已存在")) + result = GetHtml.PostUtf8(url, data); + if (!result.Contains("\"code\":200") && !result.Contains("已达上限") && !result.Contains("已存在")) + result = GetHtml.PostUtf8(url, data); + if (!result.Contains("\"code\":200")) + { + var msg = BaseRegex.GetStringJson(ref result, "msg"); + if (string.IsNullOrEmpty(msg)) + msg = "加价保存失败!"; + BaseMsgForm.ShowError(msg); + } + return result; + } + + private void pnlEmpty_Click(object sender, EventArgs e) + { + this.txtNotes.Text = ""; + this.txtExtCode.Text = ""; + this.numericUpDown1.Value = 0; + this.numericUpDown2.Value = 1000; + this.numericUpDown3.Value = 0; + this.numericUpDown4.Value = 1000; + this.numericUpDown5.Value = 0; + this.numericUpDown6.Value = 1000; + } + + private void btnSearch_Click(object sender, EventArgs e) + { + if (this.ucSplitPage1.CurrentPage != 1) + this.ucSplitPage1.CurrentPage = 1; + else + SearchPrice(1); + } + + public void SearchPrice(int page) + { + List extCodeList = GetCheckedExtCodeList(); + if (InvokeRequired) + { + Invoke(new Action(() => + { + this.pbLoading.Visible = true; + this.dgvPrice.Rows.Clear(); + lstPriceInfo.Clear(); + })); + } + else + { + this.pbLoading.Visible = true; + this.dgvPrice.Rows.Clear(); + lstPriceInfo.Clear(); + } + Task.Run(() => + { + int pageCount; + var list = GetServerPriceLst(out pageCount, page); + lstPriceInfo.AddRange(list); + this.ucSplitPage1.TotalPage = pageCount; + + foreach (var price in lstPriceInfo) + { + Invoke(new Action(() => + { + int rowIndex = this.dgvPrice.Rows.Add( + extCodeList.Contains(price.ext_code), + price.ext_code, + price.original_price, + price.markup_times, + price.extra_price, + price.notes, + "编辑", + "删除"); + })); + } + + Invoke(new Action(() => + { + this.pbLoading.Visible = false; + })); + }); + } + + private List GetCheckedExtCodeList() + { + List extCodeList = new List(); + for (int i = 0; i < dgvPrice.Rows.Count; i++) + { + if (dgvPrice.Rows[i].Cells["colSelect"].Value.ParseToBool()) + { + string extCode = dgvPrice.Rows[i].Cells["colExtCode"].Value.ParseToString(); + extCodeList.Add(extCode); + } + } + return extCodeList; + } + + public List GetServerPriceLst(out int pageCount, int page = 1, int pageSize = 200) + { + List list = new List(); + pageCount = 1; + + var url = BaseClass.BuildObjString("price/get_price_list"); + var data = UserLogin.GetSignaturex(); + data += "&page=" + page; + data += "&page_size=" + pageSize; + if (numericUpDown1.Value > 0) + data += "&start_original_price=" + numericUpDown1.Value * 100; + data += "&end_original_price=" + numericUpDown2.Value * 100; + if (numericUpDown3.Value > 0) + data += "&start_markup_times=" + numericUpDown3.Value; + data += "&end_markup_times=" + numericUpDown4.Value; + if (numericUpDown5.Value > 0) + data += "&start_extra_price=" + numericUpDown5.Value * 100; + data += "&end_extra_price=" + numericUpDown6.Value * 100; + data += "&search_ext_code=" + txtExtCode.Text.Trim(); + data += "&search_notes=" + txtNotes.Text.Trim(); + if (BaseClass.SaLevel > 1) + data += "&operate_sub_sa_name=" + BaseClass.UserName; + 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")) + { + return list; + } + + int count = BaseRegex.GetIntJson(ref html, "count"); + pageCount = Math.Ceiling(1.0 * count / pageSize).ParseToInt(); + pageCount = Math.Max(pageCount, 1); + + if (!html.Contains("data")) + return list; + + var jArr = JObject.Parse(html)["data"]; + if (jArr.Count() == 0) + return list; + + return JsonHelper.DeserializeJsonToList(jArr.ToString()); + } + } +} diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyShopForm.resx b/TEMUKJD/KJDForms/ProductSelectForms/Price/DbProductPriceMarkUpForm.resx similarity index 90% rename from TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyShopForm.resx rename to TEMUKJD/KJDForms/ProductSelectForms/Price/DbProductPriceMarkUpForm.resx index d6ded80..af7c095 100644 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyShopForm.resx +++ b/TEMUKJD/KJDForms/ProductSelectForms/Price/DbProductPriceMarkUpForm.resx @@ -120,25 +120,25 @@ True - + True - + True - + True - + True - + True - + True - + True \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductThirdSelectForms/ProductThirdSelectListManageForm.Designer.cs b/TEMUKJD/KJDForms/ProductThirdSelectForms/ProductThirdSelectListManageForm.Designer.cs index 31c81e0..59f2f95 100644 --- a/TEMUKJD/KJDForms/ProductThirdSelectForms/ProductThirdSelectListManageForm.Designer.cs +++ b/TEMUKJD/KJDForms/ProductThirdSelectForms/ProductThirdSelectListManageForm.Designer.cs @@ -39,6 +39,7 @@ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ProductThirdSelectListManageForm)); this.splitContainer1 = new System.Windows.Forms.SplitContainer(); + this.btnDel = new DevComponents.DotNetBar.PanelEx(); this.pbFissionSetting = new System.Windows.Forms.PictureBox(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.cmbUserNotes = new System.Windows.Forms.ComboBox(); @@ -140,6 +141,7 @@ // // splitContainer1.Panel1 // + this.splitContainer1.Panel1.Controls.Add(this.btnDel); this.splitContainer1.Panel1.Controls.Add(this.pbFissionSetting); this.splitContainer1.Panel1.Controls.Add(this.tableLayoutPanel1); this.splitContainer1.Panel1.Controls.Add(this.btnReFission); @@ -153,11 +155,37 @@ this.splitContainer1.SplitterDistance = 70; this.splitContainer1.TabIndex = 2; // + // btnDel + // + this.btnDel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnDel.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnDel.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnDel.DisabledBackColor = System.Drawing.Color.Empty; + this.btnDel.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnDel.Location = new System.Drawing.Point(1280, 39); + this.btnDel.Name = "btnDel"; + this.btnDel.Size = new System.Drawing.Size(90, 26); + this.btnDel.Style.Alignment = System.Drawing.StringAlignment.Center; + this.btnDel.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnDel.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); + this.btnDel.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.btnDel.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + this.btnDel.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; + this.btnDel.Style.ForeColor.Color = System.Drawing.Color.White; + this.btnDel.Style.GradientAngle = 90; + this.btnDel.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; + this.btnDel.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnDel.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.btnDel.TabIndex = 445; + this.btnDel.Text = "批量删除选中"; + this.btnDel.Visible = false; + this.btnDel.Click += new System.EventHandler(this.btnDel_Click); + // // pbFissionSetting // this.pbFissionSetting.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.pbFissionSetting.Image = global::TemuKJD.Properties.Resources.齿轮; - this.pbFissionSetting.Location = new System.Drawing.Point(1260, 19); + this.pbFissionSetting.Location = new System.Drawing.Point(1260, 8); this.pbFissionSetting.Name = "pbFissionSetting"; this.pbFissionSetting.Size = new System.Drawing.Size(26, 26); this.pbFissionSetting.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; @@ -236,7 +264,7 @@ "全部", "重上", "已买"}); - this.cmbUserNotes.Location = new System.Drawing.Point(1044, 8); + this.cmbUserNotes.Location = new System.Drawing.Point(1044, 5); this.cmbUserNotes.Margin = new System.Windows.Forms.Padding(0); this.cmbUserNotes.Name = "cmbUserNotes"; this.cmbUserNotes.Size = new System.Drawing.Size(65, 25); @@ -253,7 +281,7 @@ "核价成功", "核价成功(重复)", "重复"}); - this.cmbNotes.Location = new System.Drawing.Point(917, 8); + this.cmbNotes.Location = new System.Drawing.Point(917, 5); this.cmbNotes.Margin = new System.Windows.Forms.Padding(0); this.cmbNotes.Name = "cmbNotes"; this.cmbNotes.Size = new System.Drawing.Size(65, 25); @@ -280,7 +308,7 @@ "已上传", "草稿箱", "全部"}); - this.cmbStatus.Location = new System.Drawing.Point(814, 8); + this.cmbStatus.Location = new System.Drawing.Point(814, 5); this.cmbStatus.Margin = new System.Windows.Forms.Padding(0); this.cmbStatus.Name = "cmbStatus"; this.cmbStatus.Size = new System.Drawing.Size(65, 25); @@ -705,7 +733,7 @@ this.btnReFission.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnReFission.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnReFission.ForeColor = System.Drawing.Color.White; - this.btnReFission.Location = new System.Drawing.Point(1280, 19); + this.btnReFission.Location = new System.Drawing.Point(1280, 8); this.btnReFission.Margin = new System.Windows.Forms.Padding(2); this.btnReFission.Name = "btnReFission"; this.btnReFission.Size = new System.Drawing.Size(90, 26); @@ -723,7 +751,7 @@ this.btnSetSubSa.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSetSubSa.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnSetSubSa.ForeColor = System.Drawing.Color.White; - this.btnSetSubSa.Location = new System.Drawing.Point(1372, 19); + this.btnSetSubSa.Location = new System.Drawing.Point(1372, 8); this.btnSetSubSa.Margin = new System.Windows.Forms.Padding(2); this.btnSetSubSa.Name = "btnSetSubSa"; this.btnSetSubSa.Size = new System.Drawing.Size(90, 26); @@ -740,7 +768,7 @@ this.btnAdd.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnAdd.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnAdd.ForeColor = System.Drawing.Color.White; - this.btnAdd.Location = new System.Drawing.Point(1464, 19); + this.btnAdd.Location = new System.Drawing.Point(1464, 8); this.btnAdd.Margin = new System.Windows.Forms.Padding(2); this.btnAdd.Name = "btnAdd"; this.btnAdd.Size = new System.Drawing.Size(90, 26); @@ -1181,5 +1209,6 @@ private System.Windows.Forms.ComboBox cmbUserNotes; private System.Windows.Forms.ComboBox cmbNotes; private System.Windows.Forms.ComboBox cmbStatus; + private DevComponents.DotNetBar.PanelEx btnDel; } } \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ProductThirdSelectForms/ProductThirdSelectListManageForm.cs b/TEMUKJD/KJDForms/ProductThirdSelectForms/ProductThirdSelectListManageForm.cs index e5c56d1..9d8c4e5 100644 --- a/TEMUKJD/KJDForms/ProductThirdSelectForms/ProductThirdSelectListManageForm.cs +++ b/TEMUKJD/KJDForms/ProductThirdSelectForms/ProductThirdSelectListManageForm.cs @@ -154,7 +154,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms prodSelect.add_time.ToString("yy/MM/dd\r\n HH:mm"), prodSelect.status == "待上传" ? "-" : prodSelect.mdy_time.ToString("yy/MM/dd\r\n HH:mm"), string.IsNullOrEmpty(prodSelect.operate_sub_sa_name) ? "-" : prodSelect.operate_sub_sa_name, - string.IsNullOrEmpty(prodSelect.operate_sub_sa_nick) ? "-" : prodSelect.operate_sub_sa_nick, + string.IsNullOrEmpty(prodSelect.operate_sub_sa_nick) ? "-" : prodSelect.operate_sub_sa_nick, prodSelect.user_notes, prodSelect.notes, "编辑", @@ -439,7 +439,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms } } - private bool DeleteProduct(string dbId) + private bool DeleteProduct(string dbId, bool showErrMsg=true) { var url = BaseClass.BuildObjString("product_third/del_select_product"); var data = UserLogin.GetSignaturex() + @@ -451,7 +451,8 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms html = GetHtml.PostUtf8(url, data); if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200")) { - BaseMsgForm.ShowError("删除商品失败,请重试!" + BaseRegex.GetStringJson(ref html, "msg")); + if (showErrMsg) + BaseMsgForm.ShowError("删除失败,请重试!" + BaseRegex.GetStringJson(ref html, "msg")); return false; } return true; @@ -597,7 +598,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms Invoke(new Action(() => { row.Cells["colOpResult"].Value = "选品数据库商品已被清除"; - if (temuDBProd?.id == 0) + if (temuDBProd?.id == 0) row.Cells["colStatus"].Value = "已清除"; })); continue; @@ -676,7 +677,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms })); } } - + Invoke(new Action(() => { BaseMsgForm.ShowInfo("上传" + (this.chkUploadProd.Checked ? "" : "草稿") + "完成!"); @@ -801,7 +802,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms prodInfo.goodsAdvantageLabelVOList : new List(); prodParam.goodsLayerDecorationCustomizeI18nReqs = prodInfo.goodsLayerDecorationCustomizeI18nVOList; prodParam.goodsLayerDecorationReqs = new List(); - foreach (var goodsLayerDecorationVOInfo in (prodInfo.goodsLayerDecorationVOList == null ? + foreach (var goodsLayerDecorationVOInfo in (prodInfo.goodsLayerDecorationVOList == null ? new List() : prodInfo.goodsLayerDecorationVOList)) { var goodsLayerDecorationItem = new GoodsLayerDecorationReqsItem() @@ -1404,6 +1405,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms private void chkShowDel_CheckedChanged(object sender, EventArgs e) { dgvSelectProduct.Columns["colDelete"].Visible = this.chkShowDel.Checked; + btnDel.Visible = this.chkShowDel.Checked; } private void btnReFission_Click(object sender, EventArgs e) @@ -1574,5 +1576,33 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms string centerWords = ","; return (headWords + prod.product_name + centerWords + endWords).Trim(','); } + + private void btnDel_Click(object sender, EventArgs e) + { + if (BaseMsgForm.ShowConfirm("确定删除库存商品吗?删除后不可恢复!").DialogResult == DialogResult.Cancel) + return; + + pbLoading.Visible = true; + var dbIds = dgvSelectProduct.Rows.Cast().Where(r => r.Cells["colSelect"].Value.ParseToBool() == true) + .Select(r => r.Cells["colSelectId"].Value.ParseToString()); + + Task.Run(() => + { + foreach (var dbId in dbIds) + { + Thread.Sleep(50); + var rst = DeleteProduct(dbId, false); + if (rst == false) + { + Invoke(new Action(() => + { + BaseMsgForm.ShowError("数据删除失败,请稍后重试!"); + })); + break; + } + }; + SearchDbProdSelect(this.ucSplitPage1.CurrentPage); + }); + } } } diff --git a/TEMUKJD/KJDForms/SalesCenterForms/MarketingActivityForm.Designer.cs b/TEMUKJD/KJDForms/SalesCenterForms/MarketingActivityForm.Designer.cs index 4921287..fc09652 100644 --- a/TEMUKJD/KJDForms/SalesCenterForms/MarketingActivityForm.Designer.cs +++ b/TEMUKJD/KJDForms/SalesCenterForms/MarketingActivityForm.Designer.cs @@ -36,7 +36,16 @@ namespace TemuKJD.KJDForms.SalesCenterForms 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(); this.splitContainer1 = new System.Windows.Forms.SplitContainer(); + this.splitContainer3 = new System.Windows.Forms.SplitContainer(); + this.splitContainer2 = new System.Windows.Forms.SplitContainer(); + this.splitContainer5 = new System.Windows.Forms.SplitContainer(); + this.splitContainer4 = new System.Windows.Forms.SplitContainer(); + this.panelEx1 = new DevComponents.DotNetBar.PanelEx(); + this.btnClear = new DevComponents.DotNetBar.PanelEx(); this.ucGroupBoxEx3 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); this.actDiscount80 = new TemuKJD.KJDForms.SalesCenterForms.UcActivityDiscountCtrl(); this.object_6dcc57fe_428d_475c_90c2_d99d71a7014f = new TemuKJD.UserComponent.UcCheckBox(this.components); @@ -64,8 +73,6 @@ namespace TemuKJD.KJDForms.SalesCenterForms this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); this.chkGetDiscount = new TemuKJD.UserComponent.UcCheckBox(this.components); this.btnSearchActivity = new DevComponents.DotNetBar.PanelEx(); - this.splitContainer3 = new System.Windows.Forms.SplitContainer(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx(); this.colSelect = new TemuKJD.UserComponent.UcDataGridViewCheckBoxColumn(this.components); this.colShopLoginName = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -74,8 +81,16 @@ namespace TemuKJD.KJDForms.SalesCenterForms this.colLoginStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colCanUse = new System.Windows.Forms.DataGridViewCheckBoxColumn(); this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.splitContainer5 = new System.Windows.Forms.SplitContainer(); this.dgvActivity = new TemuKJD.UserComponent.DataGridViewEx(); + this.colCheckActivity = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.colActivityType = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colActivityTypeName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colActivityThematicId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colActivityThematicName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colActivityTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colSignUpTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDiscount = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colActivityMsg = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dgvProduct = new TemuKJD.UserComponent.DataGridViewEx(); this.colCheckProduct = new System.Windows.Forms.DataGridViewCheckBoxColumn(); this.colSupplierId = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -92,23 +107,27 @@ namespace TemuKJD.KJDForms.SalesCenterForms this.colPrcie = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colInventory = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colMsg = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.splitContainer4 = new System.Windows.Forms.SplitContainer(); this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); - this.panelEx1 = new DevComponents.DotNetBar.PanelEx(); - this.btnClear = new DevComponents.DotNetBar.PanelEx(); - this.colCheckActivity = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colActivityType = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colActivityTypeName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colActivityThematicId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colActivityThematicName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colActivityTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colSignUpTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colDiscount = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colActivityMsg = new System.Windows.Forms.DataGridViewTextBoxColumn(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.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.splitContainer5)).BeginInit(); + this.splitContainer5.Panel1.SuspendLayout(); + this.splitContainer5.Panel2.SuspendLayout(); + this.splitContainer5.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).BeginInit(); + this.splitContainer4.Panel1.SuspendLayout(); + this.splitContainer4.Panel2.SuspendLayout(); + this.splitContainer4.SuspendLayout(); this.ucGroupBoxEx3.SuspendLayout(); this.actDiscount80.SuspendLayout(); this.actDiscount85.SuspendLayout(); @@ -118,25 +137,9 @@ namespace TemuKJD.KJDForms.SalesCenterForms ((System.ComponentModel.ISupportInitialize)(this.numOnSaleDays)).BeginInit(); this.ucGroupBoxEx1.SuspendLayout(); this.ucGroupBoxEx2.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.dgvShop)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer5)).BeginInit(); - this.splitContainer5.Panel1.SuspendLayout(); - this.splitContainer5.Panel2.SuspendLayout(); - this.splitContainer5.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvActivity)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dgvProduct)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).BeginInit(); - this.splitContainer4.Panel1.SuspendLayout(); - this.splitContainer4.Panel2.SuspendLayout(); - this.splitContainer4.SuspendLayout(); this.SuspendLayout(); // // splitContainer1 @@ -156,10 +159,136 @@ namespace TemuKJD.KJDForms.SalesCenterForms // splitContainer1.Panel2 // this.splitContainer1.Panel2.Controls.Add(this.splitContainer3); - this.splitContainer1.Size = new System.Drawing.Size(1425, 544); + this.splitContainer1.Size = new System.Drawing.Size(1425, 529); this.splitContainer1.SplitterDistance = 120; this.splitContainer1.TabIndex = 11; // + // 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(1425, 405); + this.splitContainer3.SplitterDistance = 375; + 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.dgvShop); + this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 0, 0); + // + // splitContainer2.Panel2 + // + this.splitContainer2.Panel2.Controls.Add(this.splitContainer5); + this.splitContainer2.Panel2.Padding = new System.Windows.Forms.Padding(0, 0, 4, 0); + this.splitContainer2.Size = new System.Drawing.Size(1425, 375); + this.splitContainer2.SplitterDistance = 270; + this.splitContainer2.TabIndex = 0; + // + // splitContainer5 + // + this.splitContainer5.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer5.Location = new System.Drawing.Point(0, 0); + this.splitContainer5.Name = "splitContainer5"; + this.splitContainer5.Orientation = System.Windows.Forms.Orientation.Horizontal; + // + // splitContainer5.Panel1 + // + this.splitContainer5.Panel1.Controls.Add(this.dgvActivity); + // + // splitContainer5.Panel2 + // + this.splitContainer5.Panel2.Controls.Add(this.dgvProduct); + this.splitContainer5.Size = new System.Drawing.Size(1147, 375); + this.splitContainer5.SplitterDistance = 128; + this.splitContainer5.TabIndex = 0; + // + // 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.panelEx1); + this.splitContainer4.Panel2.Controls.Add(this.btnClear); + this.splitContainer4.Size = new System.Drawing.Size(1425, 26); + this.splitContainer4.SplitterDistance = 1147; + this.splitContainer4.TabIndex = 3; + // + // 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(155, 0); + 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.Click += new System.EventHandler(this.btnStop_Click); + // + // 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(47, 0); + 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; + // // ucGroupBoxEx3 // this.ucGroupBoxEx3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) @@ -519,45 +648,6 @@ namespace TemuKJD.KJDForms.SalesCenterForms this.btnSearchActivity.Text = "查询活动"; this.btnSearchActivity.Click += new System.EventHandler(this.btnSearchActivity_Click); // - // 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(1425, 420); - this.splitContainer3.SplitterDistance = 390; - 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.dgvShop); - this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 0, 0); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Controls.Add(this.splitContainer5); - this.splitContainer2.Panel2.Padding = new System.Windows.Forms.Padding(0, 0, 4, 0); - this.splitContainer2.Size = new System.Drawing.Size(1425, 390); - this.splitContainer2.SplitterDistance = 270; - this.splitContainer2.TabIndex = 0; - // // dgvShop // this.dgvShop.AllowUserToAddRows = false; @@ -583,13 +673,21 @@ namespace TemuKJD.KJDForms.SalesCenterForms this.colLoginStatus, this.colCanUse, this.colMessage}); + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgvShop.DefaultCellStyle = dataGridViewCellStyle3; this.dgvShop.Dock = System.Windows.Forms.DockStyle.Fill; this.dgvShop.Location = new System.Drawing.Point(4, 0); this.dgvShop.Name = "dgvShop"; this.dgvShop.ReadOnly = true; this.dgvShop.RowHeadersWidth = 30; this.dgvShop.RowTemplate.Height = 23; - this.dgvShop.Size = new System.Drawing.Size(266, 390); + this.dgvShop.Size = new System.Drawing.Size(266, 375); this.dgvShop.TabIndex = 7; this.dgvShop.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellClick); this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick); @@ -650,41 +748,23 @@ namespace TemuKJD.KJDForms.SalesCenterForms this.colMessage.ReadOnly = true; this.colMessage.Width = 120; // - // splitContainer5 - // - this.splitContainer5.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer5.Location = new System.Drawing.Point(0, 0); - this.splitContainer5.Name = "splitContainer5"; - this.splitContainer5.Orientation = System.Windows.Forms.Orientation.Horizontal; - // - // splitContainer5.Panel1 - // - this.splitContainer5.Panel1.Controls.Add(this.dgvActivity); - // - // splitContainer5.Panel2 - // - this.splitContainer5.Panel2.Controls.Add(this.dgvProduct); - this.splitContainer5.Size = new System.Drawing.Size(1147, 390); - this.splitContainer5.SplitterDistance = 134; - this.splitContainer5.TabIndex = 0; - // // dgvActivity // this.dgvActivity.AllowUserToAddRows = false; this.dgvActivity.AllowUserToDeleteRows = false; - dataGridViewCellStyle3.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvActivity.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3; + dataGridViewCellStyle4.BackColor = System.Drawing.Color.WhiteSmoke; + this.dgvActivity.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4; this.dgvActivity.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; this.dgvActivity.BackgroundColor = System.Drawing.Color.White; this.dgvActivity.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.dgvActivity.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4; + dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgvActivity.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5; this.dgvActivity.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvActivity.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.colCheckActivity, @@ -696,31 +776,102 @@ namespace TemuKJD.KJDForms.SalesCenterForms this.colSignUpTime, this.colDiscount, this.colActivityMsg}); + dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle6.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgvActivity.DefaultCellStyle = dataGridViewCellStyle6; this.dgvActivity.Dock = System.Windows.Forms.DockStyle.Fill; this.dgvActivity.Location = new System.Drawing.Point(0, 0); this.dgvActivity.Name = "dgvActivity"; this.dgvActivity.ReadOnly = true; this.dgvActivity.RowTemplate.Height = 23; - this.dgvActivity.Size = new System.Drawing.Size(1147, 134); + this.dgvActivity.Size = new System.Drawing.Size(1147, 128); this.dgvActivity.TabIndex = 189; this.dgvActivity.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvActivity_CellContentClick); // + // colCheckActivity + // + this.colCheckActivity.FillWeight = 15F; + this.colCheckActivity.HeaderText = "选择"; + this.colCheckActivity.Name = "colCheckActivity"; + this.colCheckActivity.ReadOnly = true; + this.colCheckActivity.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colCheckActivity.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + // + // colActivityType + // + this.colActivityType.FillWeight = 50F; + this.colActivityType.HeaderText = "活动类型"; + this.colActivityType.Name = "colActivityType"; + this.colActivityType.ReadOnly = true; + // + // colActivityTypeName + // + this.colActivityTypeName.FillWeight = 70F; + this.colActivityTypeName.HeaderText = "活动类名"; + this.colActivityTypeName.Name = "colActivityTypeName"; + this.colActivityTypeName.ReadOnly = true; + // + // colActivityThematicId + // + this.colActivityThematicId.FillWeight = 50F; + this.colActivityThematicId.HeaderText = "活动编号"; + this.colActivityThematicId.Name = "colActivityThematicId"; + this.colActivityThematicId.ReadOnly = true; + this.colActivityThematicId.Visible = false; + // + // colActivityThematicName + // + this.colActivityThematicName.HeaderText = "活动主题"; + this.colActivityThematicName.Name = "colActivityThematicName"; + this.colActivityThematicName.ReadOnly = true; + // + // colActivityTime + // + this.colActivityTime.HeaderText = "活动时间"; + this.colActivityTime.Name = "colActivityTime"; + this.colActivityTime.ReadOnly = true; + // + // colSignUpTime + // + this.colSignUpTime.FillWeight = 60F; + this.colSignUpTime.HeaderText = "报名截止"; + this.colSignUpTime.Name = "colSignUpTime"; + this.colSignUpTime.ReadOnly = true; + // + // colDiscount + // + this.colDiscount.FillWeight = 50F; + this.colDiscount.HeaderText = "活动折扣"; + this.colDiscount.Name = "colDiscount"; + this.colDiscount.ReadOnly = true; + // + // colActivityMsg + // + this.colActivityMsg.HeaderText = "状态"; + this.colActivityMsg.Name = "colActivityMsg"; + this.colActivityMsg.ReadOnly = true; + // // dgvProduct // this.dgvProduct.AllowUserToAddRows = false; this.dgvProduct.AllowUserToDeleteRows = false; - dataGridViewCellStyle5.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5; + dataGridViewCellStyle7.BackColor = System.Drawing.Color.WhiteSmoke; + this.dgvProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle7; this.dgvProduct.BackgroundColor = System.Drawing.Color.White; this.dgvProduct.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dgvProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6; + dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle8.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgvProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8; this.dgvProduct.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvProduct.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.colCheckProduct, @@ -738,12 +889,20 @@ namespace TemuKJD.KJDForms.SalesCenterForms this.colPrcie, this.colInventory, this.colMsg}); + dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle9.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgvProduct.DefaultCellStyle = dataGridViewCellStyle9; this.dgvProduct.Dock = System.Windows.Forms.DockStyle.Fill; this.dgvProduct.Location = new System.Drawing.Point(0, 0); this.dgvProduct.Name = "dgvProduct"; this.dgvProduct.ReadOnly = true; this.dgvProduct.RowTemplate.Height = 23; - this.dgvProduct.Size = new System.Drawing.Size(1147, 252); + this.dgvProduct.Size = new System.Drawing.Size(1147, 243); this.dgvProduct.TabIndex = 188; // // colCheckProduct @@ -859,25 +1018,6 @@ namespace TemuKJD.KJDForms.SalesCenterForms this.colMsg.ReadOnly = true; this.colMsg.Width = 400; // - // 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.panelEx1); - this.splitContainer4.Panel2.Controls.Add(this.btnClear); - this.splitContainer4.Size = new System.Drawing.Size(1425, 26); - this.splitContainer4.SplitterDistance = 1147; - this.splitContainer4.TabIndex = 3; - // // statusBar // this.statusBar.BackColor = System.Drawing.Color.White; @@ -889,124 +1029,11 @@ namespace TemuKJD.KJDForms.SalesCenterForms this.statusBar.Size = new System.Drawing.Size(1147, 26); this.statusBar.TabIndex = 2; // - // 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(155, 0); - 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.Click += new System.EventHandler(this.btnStop_Click); - // - // 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(47, 0); - 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; - // - // colCheckActivity - // - this.colCheckActivity.FillWeight = 15F; - this.colCheckActivity.HeaderText = "选择"; - this.colCheckActivity.Name = "colCheckActivity"; - this.colCheckActivity.ReadOnly = true; - this.colCheckActivity.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colCheckActivity.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - // - // colActivityType - // - this.colActivityType.FillWeight = 50F; - this.colActivityType.HeaderText = "活动类型"; - this.colActivityType.Name = "colActivityType"; - this.colActivityType.ReadOnly = true; - // - // colActivityTypeName - // - this.colActivityTypeName.FillWeight = 70F; - this.colActivityTypeName.HeaderText = "活动类名"; - this.colActivityTypeName.Name = "colActivityTypeName"; - this.colActivityTypeName.ReadOnly = true; - // - // colActivityThematicId - // - this.colActivityThematicId.FillWeight = 50F; - this.colActivityThematicId.HeaderText = "活动编号"; - this.colActivityThematicId.Name = "colActivityThematicId"; - this.colActivityThematicId.ReadOnly = true; - this.colActivityThematicId.Visible = false; - // - // colActivityThematicName - // - this.colActivityThematicName.HeaderText = "活动主题"; - this.colActivityThematicName.Name = "colActivityThematicName"; - this.colActivityThematicName.ReadOnly = true; - // - // colActivityTime - // - this.colActivityTime.HeaderText = "活动时间"; - this.colActivityTime.Name = "colActivityTime"; - this.colActivityTime.ReadOnly = true; - // - // colSignUpTime - // - this.colSignUpTime.FillWeight = 60F; - this.colSignUpTime.HeaderText = "报名截止"; - this.colSignUpTime.Name = "colSignUpTime"; - this.colSignUpTime.ReadOnly = true; - // - // colDiscount - // - this.colDiscount.FillWeight = 50F; - this.colDiscount.HeaderText = "活动折扣"; - this.colDiscount.Name = "colDiscount"; - this.colDiscount.ReadOnly = true; - // - // colActivityMsg - // - this.colActivityMsg.HeaderText = "状态"; - this.colActivityMsg.Name = "colActivityMsg"; - this.colActivityMsg.ReadOnly = true; - // // MarketingActivityForm // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1425, 544); + this.ClientSize = new System.Drawing.Size(1425, 529); this.Controls.Add(this.splitContainer1); this.Name = "MarketingActivityForm"; this.Text = "店铺优化"; @@ -1016,6 +1043,22 @@ namespace TemuKJD.KJDForms.SalesCenterForms this.splitContainer1.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); this.splitContainer1.ResumeLayout(false); + 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); + this.splitContainer5.Panel1.ResumeLayout(false); + this.splitContainer5.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer5)).EndInit(); + this.splitContainer5.ResumeLayout(false); + this.splitContainer4.Panel1.ResumeLayout(false); + this.splitContainer4.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).EndInit(); + this.splitContainer4.ResumeLayout(false); this.ucGroupBoxEx3.ResumeLayout(false); this.ucGroupBoxEx3.PerformLayout(); this.actDiscount80.ResumeLayout(false); @@ -1031,25 +1074,9 @@ namespace TemuKJD.KJDForms.SalesCenterForms this.ucGroupBoxEx1.ResumeLayout(false); this.ucGroupBoxEx2.ResumeLayout(false); this.ucGroupBoxEx2.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.dgvShop)).EndInit(); - this.splitContainer5.Panel1.ResumeLayout(false); - this.splitContainer5.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer5)).EndInit(); - this.splitContainer5.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dgvActivity)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dgvProduct)).EndInit(); - this.splitContainer4.Panel1.ResumeLayout(false); - this.splitContainer4.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).EndInit(); - this.splitContainer4.ResumeLayout(false); this.ResumeLayout(false); } diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponForm.Designer.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponForm.Designer.cs deleted file mode 100644 index 83655d4..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponForm.Designer.cs +++ /dev/null @@ -1,1341 +0,0 @@ -namespace TemuKJD.KJDForms.SalesCenterForms -{ - partial class CouponForm - { - /// - /// 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(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.splitContainer5 = new System.Windows.Forms.SplitContainer(); - this.ucGroupBoxEx3 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.pbPaste2 = new System.Windows.Forms.PictureBox(); - this.pbPaste1 = new System.Windows.Forms.PictureBox(); - this.txtFilter = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.label14 = new System.Windows.Forms.Label(); - this.txtProductName = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.txtPriceMin = new System.Windows.Forms.TextBox(); - this.label12 = new System.Windows.Forms.Label(); - this.txtPriceMax = new System.Windows.Forms.TextBox(); - this.label1 = new System.Windows.Forms.Label(); - this.lblProductName = new System.Windows.Forms.Label(); - this.txtSaleMax = new System.Windows.Forms.TextBox(); - this.txtSaleMin = new System.Windows.Forms.TextBox(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.rbOnSale = new System.Windows.Forms.RadioButton(); - this.btnStopGetProduct = new DevComponents.DotNetBar.PanelEx(); - this.btnGetProduct = new DevComponents.DotNetBar.PanelEx(); - this.rbOffSale = new System.Windows.Forms.RadioButton(); - this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); - this.nudThresHold = new System.Windows.Forms.NumericUpDown(); - this.lblThresHold = new System.Windows.Forms.Label(); - this.nudCredit = new System.Windows.Forms.NumericUpDown(); - this.lblCreditText = new System.Windows.Forms.Label(); - this.pnlTimePeriod = new System.Windows.Forms.Panel(); - this.dtpStartUseTime = new System.Windows.Forms.DateTimePicker(); - this.dtpEndUseTime = new System.Windows.Forms.DateTimePicker(); - this.panel3 = new System.Windows.Forms.Panel(); - this.rbUseTypeDays = new System.Windows.Forms.RadioButton(); - this.rbUseTypePeriod = new System.Windows.Forms.RadioButton(); - this.label17 = new System.Windows.Forms.Label(); - this.panel2 = new System.Windows.Forms.Panel(); - this.rbAllProductEachCoupon = new System.Windows.Forms.RadioButton(); - this.rbOneProductEachCoupon = new System.Windows.Forms.RadioButton(); - this.cmbUserCountLimited = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.cbi1 = new DevComponents.Editors.ComboItem(); - this.nudTotalCount = new System.Windows.Forms.NumericUpDown(); - this.label15 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.lblDiscountText = new System.Windows.Forms.Label(); - this.cmbType = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.商品折扣券 = new DevComponents.Editors.ComboItem(); - this.商品直减券 = new DevComponents.Editors.ComboItem(); - this.商品满减券 = new DevComponents.Editors.ComboItem(); - this.label9 = new System.Windows.Forms.Label(); - this.panel1 = new System.Windows.Forms.Panel(); - this.rbNotReckonIn = new System.Windows.Forms.RadioButton(); - this.rbReckonIn = new System.Windows.Forms.RadioButton(); - this.label8 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.lblUseTypeText = new System.Windows.Forms.Label(); - this.dtpEndApplyTime = new System.Windows.Forms.DateTimePicker(); - this.dtpStartApplyTime = new System.Windows.Forms.DateTimePicker(); - this.label4 = new System.Windows.Forms.Label(); - this.btnOffLine = new DevComponents.DotNetBar.PanelEx(); - this.btnStopOperate = new DevComponents.DotNetBar.PanelEx(); - this.nudDays = new System.Windows.Forms.NumericUpDown(); - this.label7 = new System.Windows.Forms.Label(); - this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.btnRefreshShop = new TemuKJD.UserControls.ButtonEx(); - this.splitContainer3 = new System.Windows.Forms.SplitContainer(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colAuthStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colLoginStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colCanUse = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.panelEx1 = new DevComponents.DotNetBar.PanelEx(); - this.ucTabControl1 = new TemuKJD.UserComponent.UcTabControl(); - this.tabPageCheckResult = new System.Windows.Forms.TabPage(); - this.tabPageViolateFileList = new System.Windows.Forms.TabPage(); - this.splitContainer4 = new System.Windows.Forms.SplitContainer(); - this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); - this.btnClear = new DevComponents.DotNetBar.PanelEx(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer5)).BeginInit(); - this.splitContainer5.Panel1.SuspendLayout(); - this.splitContainer5.Panel2.SuspendLayout(); - this.splitContainer5.SuspendLayout(); - this.ucGroupBoxEx3.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pbPaste2)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pbPaste1)).BeginInit(); - this.ucGroupBoxEx2.SuspendLayout(); - this.flowLayoutPanel1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.nudThresHold)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.nudCredit)).BeginInit(); - this.pnlTimePeriod.SuspendLayout(); - this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.nudTotalCount)).BeginInit(); - this.panel1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.nudDays)).BeginInit(); - 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.dgvShop)).BeginInit(); - this.panelEx1.SuspendLayout(); - this.ucTabControl1.SuspendLayout(); - ((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.splitContainer5); - this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx1); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.splitContainer3); - this.splitContainer1.Size = new System.Drawing.Size(1266, 626); - this.splitContainer1.SplitterDistance = 150; - this.splitContainer1.TabIndex = 6; - // - // splitContainer5 - // - this.splitContainer5.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.splitContainer5.Location = new System.Drawing.Point(148, 3); - this.splitContainer5.Name = "splitContainer5"; - // - // splitContainer5.Panel1 - // - this.splitContainer5.Panel1.Controls.Add(this.ucGroupBoxEx3); - // - // splitContainer5.Panel2 - // - this.splitContainer5.Panel2.Controls.Add(this.ucGroupBoxEx2); - this.splitContainer5.Size = new System.Drawing.Size(1113, 149); - this.splitContainer5.SplitterDistance = 424; - this.splitContainer5.TabIndex = 400; - // - // 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.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.pbPaste2); - this.ucGroupBoxEx3.Controls.Add(this.pbPaste1); - this.ucGroupBoxEx3.Controls.Add(this.txtFilter); - this.ucGroupBoxEx3.Controls.Add(this.label14); - this.ucGroupBoxEx3.Controls.Add(this.txtProductName); - this.ucGroupBoxEx3.Controls.Add(this.txtPriceMin); - this.ucGroupBoxEx3.Controls.Add(this.label12); - this.ucGroupBoxEx3.Controls.Add(this.txtPriceMax); - this.ucGroupBoxEx3.Controls.Add(this.label1); - this.ucGroupBoxEx3.Controls.Add(this.lblProductName); - this.ucGroupBoxEx3.Controls.Add(this.txtSaleMax); - this.ucGroupBoxEx3.Controls.Add(this.txtSaleMin); - this.ucGroupBoxEx3.Controls.Add(this.label2); - this.ucGroupBoxEx3.Controls.Add(this.label3); - this.ucGroupBoxEx3.Controls.Add(this.rbOnSale); - this.ucGroupBoxEx3.Controls.Add(this.btnStopGetProduct); - this.ucGroupBoxEx3.Controls.Add(this.btnGetProduct); - this.ucGroupBoxEx3.Controls.Add(this.rbOffSale); - this.ucGroupBoxEx3.Location = new System.Drawing.Point(-1, -1); - this.ucGroupBoxEx3.Name = "ucGroupBoxEx3"; - this.ucGroupBoxEx3.Size = new System.Drawing.Size(427, 150); - this.ucGroupBoxEx3.TabIndex = 423; - this.ucGroupBoxEx3.TabStop = false; - this.ucGroupBoxEx3.Text = "商品查询"; - // - // pbPaste2 - // - this.pbPaste2.BackColor = System.Drawing.Color.White; - this.pbPaste2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pbPaste2.Image = global::TemuKJD.Properties.Resources.FullPaste; - this.pbPaste2.Location = new System.Drawing.Point(277, 81); - this.pbPaste2.Name = "pbPaste2"; - this.pbPaste2.Size = new System.Drawing.Size(23, 23); - this.pbPaste2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; - this.pbPaste2.TabIndex = 498; - this.pbPaste2.TabStop = false; - this.pbPaste2.Click += new System.EventHandler(this.pbPaste2_Click); - // - // pbPaste1 - // - this.pbPaste1.BackColor = System.Drawing.Color.White; - this.pbPaste1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pbPaste1.Image = global::TemuKJD.Properties.Resources.FullPaste; - this.pbPaste1.Location = new System.Drawing.Point(277, 52); - this.pbPaste1.Name = "pbPaste1"; - this.pbPaste1.Size = new System.Drawing.Size(23, 23); - this.pbPaste1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; - this.pbPaste1.TabIndex = 497; - this.pbPaste1.TabStop = false; - this.pbPaste1.Click += new System.EventHandler(this.pbPaste1_Click); - // - // txtFilter - // - // - // - // - this.txtFilter.Border.Class = "TextBoxBorder"; - this.txtFilter.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txtFilter.Location = new System.Drawing.Point(76, 81); - this.txtFilter.Name = "txtFilter"; - this.txtFilter.PreventEnterBeep = true; - this.txtFilter.Size = new System.Drawing.Size(202, 23); - this.txtFilter.TabIndex = 490; - this.txtFilter.WatermarkText = "请输入商品编号,多个用逗号隔开"; - // - // label14 - // - this.label14.AutoSize = true; - this.label14.Location = new System.Drawing.Point(8, 84); - this.label14.Name = "label14"; - this.label14.Size = new System.Drawing.Size(69, 17); - this.label14.TabIndex = 489; - this.label14.Text = "过滤商品ID"; - // - // txtProductName - // - // - // - // - this.txtProductName.Border.Class = "TextBoxBorder"; - this.txtProductName.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txtProductName.Location = new System.Drawing.Point(76, 52); - this.txtProductName.Name = "txtProductName"; - this.txtProductName.PreventEnterBeep = true; - this.txtProductName.Size = new System.Drawing.Size(202, 23); - this.txtProductName.TabIndex = 488; - this.txtProductName.WatermarkText = "请输入商品编号,多个用逗号隔开"; - // - // txtPriceMin - // - this.txtPriceMin.Location = new System.Drawing.Point(39, 22); - this.txtPriceMin.Name = "txtPriceMin"; - this.txtPriceMin.Size = new System.Drawing.Size(38, 23); - this.txtPriceMin.TabIndex = 472; - this.txtPriceMin.Text = "0"; - // - // label12 - // - this.label12.AutoSize = true; - this.label12.Location = new System.Drawing.Point(8, 25); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(32, 17); - this.label12.TabIndex = 473; - this.label12.Text = "价格"; - // - // txtPriceMax - // - this.txtPriceMax.Location = new System.Drawing.Point(89, 22); - this.txtPriceMax.Name = "txtPriceMax"; - this.txtPriceMax.Size = new System.Drawing.Size(50, 23); - this.txtPriceMax.TabIndex = 474; - this.txtPriceMax.Text = "99999"; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(77, 25); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(13, 17); - this.label1.TabIndex = 475; - this.label1.Text = "-"; - // - // lblProductName - // - this.lblProductName.AutoSize = true; - this.lblProductName.Location = new System.Drawing.Point(8, 55); - this.lblProductName.Name = "lblProductName"; - this.lblProductName.Size = new System.Drawing.Size(69, 17); - this.lblProductName.TabIndex = 481; - this.lblProductName.Text = "指定商品ID"; - this.lblProductName.Click += new System.EventHandler(this.lblProductName_Click); - this.lblProductName.DoubleClick += new System.EventHandler(this.lblProductName_DoubleClick); - // - // txtSaleMax - // - this.txtSaleMax.Location = new System.Drawing.Point(241, 22); - this.txtSaleMax.Name = "txtSaleMax"; - this.txtSaleMax.Size = new System.Drawing.Size(50, 23); - this.txtSaleMax.TabIndex = 478; - this.txtSaleMax.Text = "99999"; - // - // txtSaleMin - // - this.txtSaleMin.Location = new System.Drawing.Point(194, 22); - this.txtSaleMin.Name = "txtSaleMin"; - this.txtSaleMin.Size = new System.Drawing.Size(35, 23); - this.txtSaleMin.TabIndex = 476; - this.txtSaleMin.Text = "0"; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(163, 25); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(32, 17); - this.label2.TabIndex = 477; - this.label2.Text = "销量"; - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(229, 25); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(13, 17); - this.label3.TabIndex = 479; - this.label3.Text = "-"; - // - // rbOnSale - // - this.rbOnSale.AutoSize = true; - this.rbOnSale.Checked = true; - this.rbOnSale.Location = new System.Drawing.Point(11, 23); - this.rbOnSale.Name = "rbOnSale"; - this.rbOnSale.Size = new System.Drawing.Size(62, 21); - this.rbOnSale.TabIndex = 464; - this.rbOnSale.TabStop = true; - this.rbOnSale.Text = "出售中"; - this.rbOnSale.UseVisualStyleBackColor = true; - // - // btnStopGetProduct - // - this.btnStopGetProduct.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnStopGetProduct.CanvasColor = System.Drawing.SystemColors.Control; - this.btnStopGetProduct.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnStopGetProduct.DisabledBackColor = System.Drawing.Color.Empty; - this.btnStopGetProduct.Location = new System.Drawing.Point(338, 52); - this.btnStopGetProduct.Name = "btnStopGetProduct"; - this.btnStopGetProduct.Size = new System.Drawing.Size(80, 23); - this.btnStopGetProduct.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopGetProduct.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStopGetProduct.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStopGetProduct.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnStopGetProduct.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopGetProduct.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnStopGetProduct.Style.GradientAngle = 90; - this.btnStopGetProduct.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopGetProduct.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopGetProduct.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopGetProduct.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopGetProduct.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnStopGetProduct.TabIndex = 463; - this.btnStopGetProduct.Text = "停止获取"; - this.btnStopGetProduct.Click += new System.EventHandler(this.btnStopGetProduct_Click); - // - // btnGetProduct - // - this.btnGetProduct.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnGetProduct.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnGetProduct.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnGetProduct.DisabledBackColor = System.Drawing.Color.Empty; - this.btnGetProduct.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnGetProduct.Location = new System.Drawing.Point(338, 22); - this.btnGetProduct.Name = "btnGetProduct"; - this.btnGetProduct.Size = new System.Drawing.Size(80, 23); - this.btnGetProduct.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnGetProduct.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnGetProduct.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnGetProduct.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnGetProduct.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnGetProduct.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnGetProduct.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnGetProduct.Style.GradientAngle = 90; - this.btnGetProduct.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnGetProduct.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnGetProduct.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnGetProduct.TabIndex = 456; - this.btnGetProduct.Text = "获取商品"; - this.btnGetProduct.Click += new System.EventHandler(this.btnGetProduct_Click); - // - // rbOffSale - // - this.rbOffSale.AutoSize = true; - this.rbOffSale.Location = new System.Drawing.Point(74, 23); - this.rbOffSale.Name = "rbOffSale"; - this.rbOffSale.Size = new System.Drawing.Size(62, 21); - this.rbOffSale.TabIndex = 465; - this.rbOffSale.Text = "仓库中"; - this.rbOffSale.UseVisualStyleBackColor = true; - this.rbOffSale.Visible = false; - // - // ucGroupBoxEx2 - // - this.ucGroupBoxEx2.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.ucGroupBoxEx2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.ucGroupBoxEx2.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND; - this.ucGroupBoxEx2.Controls.Add(this.flowLayoutPanel1); - this.ucGroupBoxEx2.Controls.Add(this.pnlTimePeriod); - this.ucGroupBoxEx2.Controls.Add(this.panel3); - this.ucGroupBoxEx2.Controls.Add(this.label17); - this.ucGroupBoxEx2.Controls.Add(this.panel2); - this.ucGroupBoxEx2.Controls.Add(this.cmbUserCountLimited); - this.ucGroupBoxEx2.Controls.Add(this.nudTotalCount); - this.ucGroupBoxEx2.Controls.Add(this.label15); - this.ucGroupBoxEx2.Controls.Add(this.label13); - this.ucGroupBoxEx2.Controls.Add(this.label11); - this.ucGroupBoxEx2.Controls.Add(this.lblDiscountText); - this.ucGroupBoxEx2.Controls.Add(this.cmbType); - this.ucGroupBoxEx2.Controls.Add(this.label9); - this.ucGroupBoxEx2.Controls.Add(this.panel1); - this.ucGroupBoxEx2.Controls.Add(this.label8); - this.ucGroupBoxEx2.Controls.Add(this.label6); - this.ucGroupBoxEx2.Controls.Add(this.lblUseTypeText); - this.ucGroupBoxEx2.Controls.Add(this.dtpEndApplyTime); - this.ucGroupBoxEx2.Controls.Add(this.dtpStartApplyTime); - this.ucGroupBoxEx2.Controls.Add(this.label4); - this.ucGroupBoxEx2.Controls.Add(this.btnOffLine); - this.ucGroupBoxEx2.Controls.Add(this.btnStopOperate); - this.ucGroupBoxEx2.Controls.Add(this.nudDays); - this.ucGroupBoxEx2.Controls.Add(this.label7); - this.ucGroupBoxEx2.Location = new System.Drawing.Point(-2, -1); - this.ucGroupBoxEx2.Name = "ucGroupBoxEx2"; - this.ucGroupBoxEx2.Size = new System.Drawing.Size(689, 150); - this.ucGroupBoxEx2.TabIndex = 469; - this.ucGroupBoxEx2.TabStop = false; - this.ucGroupBoxEx2.Text = "商品操作"; - // - // flowLayoutPanel1 - // - this.flowLayoutPanel1.Controls.Add(this.nudThresHold); - this.flowLayoutPanel1.Controls.Add(this.lblThresHold); - this.flowLayoutPanel1.Controls.Add(this.nudCredit); - this.flowLayoutPanel1.Controls.Add(this.lblCreditText); - this.flowLayoutPanel1.Location = new System.Drawing.Point(352, 43); - this.flowLayoutPanel1.Name = "flowLayoutPanel1"; - this.flowLayoutPanel1.Size = new System.Drawing.Size(200, 23); - this.flowLayoutPanel1.TabIndex = 505; - // - // nudThresHold - // - this.nudThresHold.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.nudThresHold.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.nudThresHold.Location = new System.Drawing.Point(0, 0); - this.nudThresHold.Margin = new System.Windows.Forms.Padding(0); - this.nudThresHold.Maximum = new decimal(new int[] { - 99999, - 0, - 0, - 0}); - this.nudThresHold.Minimum = new decimal(new int[] { - 1, - 0, - 0, - 0}); - this.nudThresHold.Name = "nudThresHold"; - this.nudThresHold.Size = new System.Drawing.Size(55, 23); - this.nudThresHold.TabIndex = 560; - this.nudThresHold.Value = new decimal(new int[] { - 10, - 0, - 0, - 0}); - this.nudThresHold.Visible = false; - // - // lblThresHold - // - this.lblThresHold.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.lblThresHold.AutoSize = true; - this.lblThresHold.Location = new System.Drawing.Point(55, 3); - this.lblThresHold.Margin = new System.Windows.Forms.Padding(0); - this.lblThresHold.Name = "lblThresHold"; - this.lblThresHold.Size = new System.Drawing.Size(20, 17); - this.lblThresHold.TabIndex = 559; - this.lblThresHold.Text = "减"; - this.lblThresHold.Visible = false; - // - // nudCredit - // - this.nudCredit.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.nudCredit.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.nudCredit.DecimalPlaces = 1; - this.nudCredit.Increment = new decimal(new int[] { - 1, - 0, - 0, - 65536}); - this.nudCredit.Location = new System.Drawing.Point(75, 0); - this.nudCredit.Margin = new System.Windows.Forms.Padding(0); - this.nudCredit.Name = "nudCredit"; - this.nudCredit.Size = new System.Drawing.Size(55, 23); - this.nudCredit.TabIndex = 532; - this.nudCredit.Value = new decimal(new int[] { - 99, - 0, - 0, - 65536}); - // - // lblCreditText - // - this.lblCreditText.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.lblCreditText.AutoSize = true; - this.lblCreditText.Location = new System.Drawing.Point(130, 3); - this.lblCreditText.Margin = new System.Windows.Forms.Padding(0); - this.lblCreditText.Name = "lblCreditText"; - this.lblCreditText.Size = new System.Drawing.Size(20, 17); - this.lblCreditText.TabIndex = 531; - this.lblCreditText.Text = "折"; - // - // pnlTimePeriod - // - this.pnlTimePeriod.Controls.Add(this.dtpStartUseTime); - this.pnlTimePeriod.Controls.Add(this.dtpEndUseTime); - this.pnlTimePeriod.Location = new System.Drawing.Point(94, 92); - this.pnlTimePeriod.Name = "pnlTimePeriod"; - this.pnlTimePeriod.Size = new System.Drawing.Size(174, 25); - this.pnlTimePeriod.TabIndex = 552; - // - // dtpStartUseTime - // - this.dtpStartUseTime.CustomFormat = "yyyy\'/\'MM\'/\'dd"; - this.dtpStartUseTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dtpStartUseTime.Location = new System.Drawing.Point(0, 1); - this.dtpStartUseTime.Name = "dtpStartUseTime"; - this.dtpStartUseTime.Size = new System.Drawing.Size(86, 23); - this.dtpStartUseTime.TabIndex = 544; - // - // dtpEndUseTime - // - this.dtpEndUseTime.CustomFormat = "yyyy\'/\'MM\'/\'dd"; - this.dtpEndUseTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dtpEndUseTime.Location = new System.Drawing.Point(88, 1); - this.dtpEndUseTime.Name = "dtpEndUseTime"; - this.dtpEndUseTime.Size = new System.Drawing.Size(86, 23); - this.dtpEndUseTime.TabIndex = 551; - // - // panel3 - // - this.panel3.Controls.Add(this.rbUseTypeDays); - this.panel3.Controls.Add(this.rbUseTypePeriod); - this.panel3.Location = new System.Drawing.Point(94, 69); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(174, 21); - this.panel3.TabIndex = 543; - // - // rbUseTypeDays - // - this.rbUseTypeDays.AutoSize = true; - this.rbUseTypeDays.Location = new System.Drawing.Point(79, 0); - this.rbUseTypeDays.Name = "rbUseTypeDays"; - this.rbUseTypeDays.Size = new System.Drawing.Size(74, 21); - this.rbUseTypeDays.TabIndex = 466; - this.rbUseTypeDays.Text = "有效天数"; - this.rbUseTypeDays.UseVisualStyleBackColor = true; - // - // rbUseTypePeriod - // - this.rbUseTypePeriod.AutoSize = true; - this.rbUseTypePeriod.Checked = true; - this.rbUseTypePeriod.Location = new System.Drawing.Point(0, 0); - this.rbUseTypePeriod.Name = "rbUseTypePeriod"; - this.rbUseTypePeriod.Size = new System.Drawing.Size(74, 21); - this.rbUseTypePeriod.TabIndex = 465; - this.rbUseTypePeriod.TabStop = true; - this.rbUseTypePeriod.Text = "日期范围"; - this.rbUseTypePeriod.UseVisualStyleBackColor = true; - this.rbUseTypePeriod.CheckedChanged += new System.EventHandler(this.rbUseTypePeriod_CheckedChanged); - // - // label17 - // - this.label17.AutoSize = true; - this.label17.Location = new System.Drawing.Point(36, 71); - this.label17.Name = "label17"; - this.label17.Size = new System.Drawing.Size(56, 17); - this.label17.TabIndex = 542; - this.label17.Text = "使用时间"; - // - // panel2 - // - this.panel2.Controls.Add(this.rbAllProductEachCoupon); - this.panel2.Controls.Add(this.rbOneProductEachCoupon); - this.panel2.Location = new System.Drawing.Point(294, 92); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(559, 27); - this.panel2.TabIndex = 0; - // - // rbAllProductEachCoupon - // - this.rbAllProductEachCoupon.AutoSize = true; - this.rbAllProductEachCoupon.Checked = true; - this.rbAllProductEachCoupon.Location = new System.Drawing.Point(155, 3); - this.rbAllProductEachCoupon.Name = "rbAllProductEachCoupon"; - this.rbAllProductEachCoupon.Size = new System.Drawing.Size(307, 21); - this.rbAllProductEachCoupon.TabIndex = 572; - this.rbAllProductEachCoupon.TabStop = true; - this.rbAllProductEachCoupon.Text = "所有商品设置同一组优惠券(每200件商品一组优惠券)"; - this.rbAllProductEachCoupon.UseVisualStyleBackColor = true; - // - // rbOneProductEachCoupon - // - this.rbOneProductEachCoupon.AutoSize = true; - this.rbOneProductEachCoupon.Location = new System.Drawing.Point(3, 3); - this.rbOneProductEachCoupon.Name = "rbOneProductEachCoupon"; - this.rbOneProductEachCoupon.Size = new System.Drawing.Size(146, 21); - this.rbOneProductEachCoupon.TabIndex = 571; - this.rbOneProductEachCoupon.Text = "每件商品单独置优惠券"; - this.rbOneProductEachCoupon.UseVisualStyleBackColor = true; - // - // cmbUserCountLimited - // - this.cmbUserCountLimited.DisplayMember = "Text"; - this.cmbUserCountLimited.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbUserCountLimited.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbUserCountLimited.FormattingEnabled = true; - this.cmbUserCountLimited.ItemHeight = 18; - this.cmbUserCountLimited.Items.AddRange(new object[] { - this.cbi1}); - this.cmbUserCountLimited.Location = new System.Drawing.Point(488, 67); - this.cmbUserCountLimited.Name = "cmbUserCountLimited"; - this.cmbUserCountLimited.Size = new System.Drawing.Size(72, 24); - this.cmbUserCountLimited.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbUserCountLimited.TabIndex = 535; - // - // cbi1 - // - this.cbi1.Text = "1张"; - this.cbi1.Value = "5分钟"; - // - // nudTotalCount - // - this.nudTotalCount.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.nudTotalCount.Location = new System.Drawing.Point(352, 68); - this.nudTotalCount.Name = "nudTotalCount"; - this.nudTotalCount.Size = new System.Drawing.Size(55, 23); - this.nudTotalCount.TabIndex = 533; - this.nudTotalCount.Value = new decimal(new int[] { - 1, - 0, - 0, - 0}); - // - // label15 - // - this.label15.AutoSize = true; - this.label15.Location = new System.Drawing.Point(407, 71); - this.label15.Name = "label15"; - this.label15.Size = new System.Drawing.Size(20, 17); - this.label15.TabIndex = 530; - this.label15.Text = "张"; - // - // label13 - // - this.label13.AutoSize = true; - this.label13.Location = new System.Drawing.Point(430, 71); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(56, 17); - this.label13.TabIndex = 527; - this.label13.Text = "每人限领"; - // - // label11 - // - this.label11.AutoSize = true; - this.label11.Location = new System.Drawing.Point(306, 71); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(44, 17); - this.label11.TabIndex = 525; - this.label11.Text = "发放量"; - // - // lblDiscountText - // - this.lblDiscountText.AutoSize = true; - this.lblDiscountText.Location = new System.Drawing.Point(294, 46); - this.lblDiscountText.Name = "lblDiscountText"; - this.lblDiscountText.Size = new System.Drawing.Size(56, 17); - this.lblDiscountText.TabIndex = 523; - this.lblDiscountText.Text = "  折扣"; - // - // cmbType - // - this.cmbType.DisplayMember = "Text"; - this.cmbType.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbType.FormattingEnabled = true; - this.cmbType.ItemHeight = 18; - this.cmbType.Items.AddRange(new object[] { - this.商品折扣券, - this.商品直减券, - this.商品满减券}); - this.cmbType.Location = new System.Drawing.Point(352, 17); - this.cmbType.Name = "cmbType"; - this.cmbType.Size = new System.Drawing.Size(208, 24); - this.cmbType.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbType.TabIndex = 522; - this.cmbType.SelectedIndexChanged += new System.EventHandler(this.cmbType_SelectedIndexChanged); - // - // 商品折扣券 - // - this.商品折扣券.Text = "商品折扣券"; - this.商品折扣券.Value = "5分钟"; - // - // 商品直减券 - // - this.商品直减券.Text = "商品直减券"; - // - // 商品满减券 - // - this.商品满减券.Text = "商品满减券"; - // - // label9 - // - this.label9.AutoSize = true; - this.label9.Location = new System.Drawing.Point(294, 21); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(56, 17); - this.label9.TabIndex = 483; - this.label9.Text = "优惠内容"; - // - // panel1 - // - this.panel1.Controls.Add(this.rbNotReckonIn); - this.panel1.Controls.Add(this.rbReckonIn); - this.panel1.Location = new System.Drawing.Point(94, 119); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(174, 21); - this.panel1.TabIndex = 482; - // - // rbNotReckonIn - // - this.rbNotReckonIn.AutoSize = true; - this.rbNotReckonIn.Location = new System.Drawing.Point(57, 0); - this.rbNotReckonIn.Name = "rbNotReckonIn"; - this.rbNotReckonIn.Size = new System.Drawing.Size(62, 21); - this.rbNotReckonIn.TabIndex = 466; - this.rbNotReckonIn.Text = "不计入"; - this.rbNotReckonIn.UseVisualStyleBackColor = true; - // - // rbReckonIn - // - this.rbReckonIn.AutoSize = true; - this.rbReckonIn.Checked = true; - this.rbReckonIn.Location = new System.Drawing.Point(0, 0); - this.rbReckonIn.Name = "rbReckonIn"; - this.rbReckonIn.Size = new System.Drawing.Size(50, 21); - this.rbReckonIn.TabIndex = 465; - this.rbReckonIn.TabStop = true; - this.rbReckonIn.Text = "计入"; - this.rbReckonIn.UseVisualStyleBackColor = true; - // - // label8 - // - this.label8.AutoSize = true; - this.label8.Location = new System.Drawing.Point(12, 121); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(80, 17); - this.label8.TabIndex = 481; - this.label8.Text = "价格风险预警"; - // - // label6 - // - this.label6.AutoSize = true; - this.label6.Location = new System.Drawing.Point(36, 46); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(56, 17); - this.label6.TabIndex = 478; - this.label6.Text = "领取结束"; - // - // lblUseTypeText - // - this.lblUseTypeText.Location = new System.Drawing.Point(24, 96); - this.lblUseTypeText.Name = "lblUseTypeText"; - this.lblUseTypeText.Size = new System.Drawing.Size(68, 17); - this.lblUseTypeText.TabIndex = 477; - this.lblUseTypeText.Text = "日期范围"; - this.lblUseTypeText.TextAlign = System.Drawing.ContentAlignment.TopRight; - // - // dtpEndApplyTime - // - this.dtpEndApplyTime.CustomFormat = "yyyy\'/\'MM\'/\'dd HH:mm:ss"; - this.dtpEndApplyTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dtpEndApplyTime.Location = new System.Drawing.Point(94, 43); - this.dtpEndApplyTime.Name = "dtpEndApplyTime"; - this.dtpEndApplyTime.Size = new System.Drawing.Size(174, 23); - this.dtpEndApplyTime.TabIndex = 476; - // - // dtpStartApplyTime - // - this.dtpStartApplyTime.CustomFormat = "yyyy\'/\'MM\'/\'dd HH:mm:ss"; - this.dtpStartApplyTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dtpStartApplyTime.Location = new System.Drawing.Point(94, 18); - this.dtpStartApplyTime.Name = "dtpStartApplyTime"; - this.dtpStartApplyTime.Size = new System.Drawing.Size(174, 23); - this.dtpStartApplyTime.TabIndex = 475; - // - // label4 - // - this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(36, 21); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(56, 17); - this.label4.TabIndex = 474; - this.label4.Text = "领取开始"; - // - // btnOffLine - // - this.btnOffLine.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnOffLine.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnOffLine.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnOffLine.DisabledBackColor = System.Drawing.Color.Empty; - this.btnOffLine.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnOffLine.Location = new System.Drawing.Point(599, 22); - this.btnOffLine.Name = "btnOffLine"; - this.btnOffLine.Size = new System.Drawing.Size(80, 23); - this.btnOffLine.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnOffLine.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnOffLine.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnOffLine.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnOffLine.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnOffLine.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnOffLine.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnOffLine.Style.GradientAngle = 90; - this.btnOffLine.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnOffLine.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnOffLine.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnOffLine.TabIndex = 427; - this.btnOffLine.Text = "设置优惠券"; - this.btnOffLine.Click += new System.EventHandler(this.btnSet_Click); - // - // btnStopOperate - // - this.btnStopOperate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnStopOperate.CanvasColor = System.Drawing.SystemColors.Control; - this.btnStopOperate.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnStopOperate.DisabledBackColor = System.Drawing.Color.Empty; - this.btnStopOperate.Location = new System.Drawing.Point(599, 52); - this.btnStopOperate.Name = "btnStopOperate"; - this.btnStopOperate.Size = new System.Drawing.Size(80, 23); - this.btnStopOperate.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopOperate.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStopOperate.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStopOperate.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnStopOperate.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopOperate.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnStopOperate.Style.GradientAngle = 90; - this.btnStopOperate.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopOperate.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopOperate.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopOperate.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopOperate.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnStopOperate.TabIndex = 405; - this.btnStopOperate.Text = "停止操作"; - this.btnStopOperate.Click += new System.EventHandler(this.btnStopOperate_Click); - // - // nudDays - // - this.nudDays.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.nudDays.Location = new System.Drawing.Point(94, 93); - this.nudDays.Name = "nudDays"; - this.nudDays.Size = new System.Drawing.Size(49, 23); - this.nudDays.TabIndex = 534; - this.nudDays.Value = new decimal(new int[] { - 1, - 0, - 0, - 0}); - // - // label7 - // - this.label7.AutoSize = true; - this.label7.Location = new System.Drawing.Point(146, 96); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(68, 17); - this.label7.TabIndex = 480; - this.label7.Text = "天内可使用"; - // - // 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.btnRefreshShop); - this.ucGroupBoxEx1.Location = new System.Drawing.Point(3, 2); - this.ucGroupBoxEx1.Name = "ucGroupBoxEx1"; - this.ucGroupBoxEx1.Size = new System.Drawing.Size(144, 150); - this.ucGroupBoxEx1.TabIndex = 399; - this.ucGroupBoxEx1.TabStop = false; - this.ucGroupBoxEx1.Text = "基础"; - // - // btnRefreshShop - // - this.btnRefreshShop.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRefreshShop.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnRefreshShop.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnRefreshShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnRefreshShop.ForeColor = System.Drawing.Color.White; - this.btnRefreshShop.Location = new System.Drawing.Point(16, 30); - this.btnRefreshShop.Margin = new System.Windows.Forms.Padding(2); - this.btnRefreshShop.Name = "btnRefreshShop"; - this.btnRefreshShop.Size = new System.Drawing.Size(112, 26); - this.btnRefreshShop.TabIndex = 375; - this.btnRefreshShop.Text = "刷新店铺状态"; - this.btnRefreshShop.UseVisualStyleBackColor = false; - this.btnRefreshShop.Click += new System.EventHandler(this.btnRefreshShop_Click); - // - // 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(1266, 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.dgvShop); - this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 0, 0); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Controls.Add(this.panelEx1); - this.splitContainer2.Panel2.Padding = new System.Windows.Forms.Padding(0, 0, 4, 0); - this.splitContainer2.Size = new System.Drawing.Size(1266, 442); - this.splitContainer2.SplitterDistance = 269; - this.splitContainer2.TabIndex = 0; - // - // dgvShop - // - this.dgvShop.AllowUserToAddRows = false; - this.dgvShop.AllowUserToDeleteRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - 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.colShopId, - this.colShopName, - this.colAuthStatus, - this.colLoginStatus, - this.colCanUse, - this.colMessage}); - this.dgvShop.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvShop.Location = new System.Drawing.Point(4, 0); - this.dgvShop.Name = "dgvShop"; - this.dgvShop.ReadOnly = true; - this.dgvShop.RowHeadersWidth = 30; - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvShop.RowsDefaultCellStyle = dataGridViewCellStyle3; - this.dgvShop.RowTemplate.Height = 23; - this.dgvShop.Size = new System.Drawing.Size(265, 442); - this.dgvShop.TabIndex = 6; - this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick); - // - // colSelect - // - 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; - // - // colShopId - // - this.colShopId.HeaderText = "店铺"; - this.colShopId.Name = "colShopId"; - this.colShopId.ReadOnly = true; - this.colShopId.Visible = false; - this.colShopId.Width = 55; - // - // colShopName - // - this.colShopName.FillWeight = 150F; - this.colShopName.HeaderText = "店铺名称"; - this.colShopName.Name = "colShopName"; - this.colShopName.ReadOnly = true; - this.colShopName.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colShopName.Width = 75; - // - // colAuthStatus - // - this.colAuthStatus.HeaderText = "授权状态"; - this.colAuthStatus.Name = "colAuthStatus"; - this.colAuthStatus.ReadOnly = true; - this.colAuthStatus.Width = 65; - // - // colLoginStatus - // - this.colLoginStatus.HeaderText = "登录状态"; - this.colLoginStatus.Name = "colLoginStatus"; - this.colLoginStatus.ReadOnly = true; - this.colLoginStatus.Width = 65; - // - // 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; - // - // colMessage - // - this.colMessage.HeaderText = "消息"; - this.colMessage.Name = "colMessage"; - this.colMessage.ReadOnly = true; - this.colMessage.Visible = false; - this.colMessage.Width = 120; - // - // panelEx1 - // - this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control; - this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.panelEx1.Controls.Add(this.ucTabControl1); - this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty; - this.panelEx1.Dock = System.Windows.Forms.DockStyle.Fill; - this.panelEx1.Location = new System.Drawing.Point(0, 0); - this.panelEx1.Name = "panelEx1"; - this.panelEx1.Padding = new System.Windows.Forms.Padding(1); - this.panelEx1.Size = new System.Drawing.Size(989, 442); - this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center; - this.panelEx1.Style.BackColor1.Color = System.Drawing.Color.White; - this.panelEx1.Style.BackColor2.Color = System.Drawing.Color.White; - 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.TabIndex = 183; - // - // ucTabControl1 - // - this.ucTabControl1.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(251)))), ((int)(((byte)(251)))), ((int)(((byte)(251))))); - this.ucTabControl1.Controls.Add(this.tabPageCheckResult); - this.ucTabControl1.Controls.Add(this.tabPageViolateFileList); - this.ucTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.ucTabControl1.Location = new System.Drawing.Point(1, 1); - this.ucTabControl1.Name = "ucTabControl1"; - this.ucTabControl1.Padding = new System.Drawing.Point(10, 3); - this.ucTabControl1.SelectedIndex = 0; - this.ucTabControl1.ShowCloseButton = true; - this.ucTabControl1.Size = new System.Drawing.Size(987, 440); - this.ucTabControl1.TabIndex = 0; - this.ucTabControl1.TabSelectColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.ucTabControl1.TabTextColor = System.Drawing.Color.Gray; - // - // tabPageCheckResult - // - this.tabPageCheckResult.Location = new System.Drawing.Point(2, 26); - this.tabPageCheckResult.Name = "tabPageCheckResult"; - this.tabPageCheckResult.Padding = new System.Windows.Forms.Padding(3); - this.tabPageCheckResult.Size = new System.Drawing.Size(981, 410); - this.tabPageCheckResult.TabIndex = 0; - this.tabPageCheckResult.Text = "店铺1"; - this.tabPageCheckResult.UseVisualStyleBackColor = true; - // - // tabPageViolateFileList - // - this.tabPageViolateFileList.Location = new System.Drawing.Point(2, 26); - this.tabPageViolateFileList.Name = "tabPageViolateFileList"; - this.tabPageViolateFileList.Padding = new System.Windows.Forms.Padding(3); - this.tabPageViolateFileList.Size = new System.Drawing.Size(981, 410); - this.tabPageViolateFileList.TabIndex = 1; - this.tabPageViolateFileList.Text = "店铺2"; - this.tabPageViolateFileList.UseVisualStyleBackColor = true; - // - // 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.Size = new System.Drawing.Size(1266, 26); - this.splitContainer4.SplitterDistance = 1151; - 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(1151, 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(17, 0); - 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.Click += new System.EventHandler(this.btnClear_Click); - // - // CouponForm - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1266, 626); - this.Controls.Add(this.splitContainer1); - this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Name = "CouponForm"; - this.Text = "优惠券"; - this.Load += new System.EventHandler(this.CouponForm_Load); - this.VisibleChanged += new System.EventHandler(this.CouponForm_VisibleChanged); - this.splitContainer1.Panel1.ResumeLayout(false); - this.splitContainer1.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); - this.splitContainer1.ResumeLayout(false); - this.splitContainer5.Panel1.ResumeLayout(false); - this.splitContainer5.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer5)).EndInit(); - this.splitContainer5.ResumeLayout(false); - this.ucGroupBoxEx3.ResumeLayout(false); - this.ucGroupBoxEx3.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pbPaste2)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pbPaste1)).EndInit(); - this.ucGroupBoxEx2.ResumeLayout(false); - this.ucGroupBoxEx2.PerformLayout(); - this.flowLayoutPanel1.ResumeLayout(false); - this.flowLayoutPanel1.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.nudThresHold)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.nudCredit)).EndInit(); - this.pnlTimePeriod.ResumeLayout(false); - this.panel3.ResumeLayout(false); - this.panel3.PerformLayout(); - this.panel2.ResumeLayout(false); - this.panel2.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.nudTotalCount)).EndInit(); - this.panel1.ResumeLayout(false); - this.panel1.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.nudDays)).EndInit(); - this.ucGroupBoxEx1.ResumeLayout(false); - 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.dgvShop)).EndInit(); - this.panelEx1.ResumeLayout(false); - this.ucTabControl1.ResumeLayout(false); - 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 System.Windows.Forms.SplitContainer splitContainer5; - private UserComponent.UcGroupBoxEx ucGroupBoxEx3; - private System.Windows.Forms.Label lblProductName; - private System.Windows.Forms.TextBox txtSaleMax; - private System.Windows.Forms.TextBox txtSaleMin; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.TextBox txtPriceMax; - private System.Windows.Forms.TextBox txtPriceMin; - private System.Windows.Forms.Label label12; - private DevComponents.DotNetBar.PanelEx btnStopGetProduct; - private DevComponents.DotNetBar.PanelEx btnGetProduct; - private System.Windows.Forms.Label label1; - private UserComponent.UcGroupBoxEx ucGroupBoxEx2; - private DevComponents.DotNetBar.PanelEx btnOffLine; - private DevComponents.DotNetBar.PanelEx btnStopOperate; - private UserComponent.UcGroupBoxEx ucGroupBoxEx1; - private UserControls.ButtonEx btnRefreshShop; - private System.Windows.Forms.SplitContainer splitContainer3; - private System.Windows.Forms.SplitContainer splitContainer2; - private UserComponent.DataGridViewEx dgvShop; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopId; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopName; - private System.Windows.Forms.DataGridViewTextBoxColumn colAuthStatus; - private System.Windows.Forms.DataGridViewTextBoxColumn colLoginStatus; - private System.Windows.Forms.DataGridViewCheckBoxColumn colCanUse; - private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; - private DevComponents.DotNetBar.PanelEx panelEx1; - private UserComponent.UcTabControl ucTabControl1; - private System.Windows.Forms.TabPage tabPageCheckResult; - private System.Windows.Forms.TabPage tabPageViolateFileList; - private System.Windows.Forms.SplitContainer splitContainer4; - private UserControls.StatusBarUserControl statusBar; - private DevComponents.DotNetBar.PanelEx btnClear; - private System.Windows.Forms.RadioButton rbOffSale; - private System.Windows.Forms.RadioButton rbOnSale; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.RadioButton rbNotReckonIn; - private System.Windows.Forms.RadioButton rbReckonIn; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label lblUseTypeText; - private System.Windows.Forms.DateTimePicker dtpEndApplyTime; - private System.Windows.Forms.DateTimePicker dtpStartApplyTime; - private System.Windows.Forms.Label label9; - private DevComponents.DotNetBar.Controls.ComboBoxEx cmbUserCountLimited; - private DevComponents.Editors.ComboItem cbi1; - private System.Windows.Forms.NumericUpDown nudDays; - private System.Windows.Forms.NumericUpDown nudTotalCount; - private System.Windows.Forms.NumericUpDown nudCredit; - private System.Windows.Forms.Label lblCreditText; - private System.Windows.Forms.Label label15; - private System.Windows.Forms.Label label13; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label lblDiscountText; - private DevComponents.DotNetBar.Controls.ComboBoxEx cmbType; - private DevComponents.Editors.ComboItem 商品折扣券; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.RadioButton rbAllProductEachCoupon; - private System.Windows.Forms.RadioButton rbOneProductEachCoupon; - private DevComponents.DotNetBar.Controls.TextBoxX txtFilter; - private System.Windows.Forms.Label label14; - private DevComponents.DotNetBar.Controls.TextBoxX txtProductName; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.RadioButton rbUseTypeDays; - private System.Windows.Forms.RadioButton rbUseTypePeriod; - private System.Windows.Forms.Label label17; - private System.Windows.Forms.DateTimePicker dtpStartUseTime; - private System.Windows.Forms.Panel pnlTimePeriod; - private System.Windows.Forms.DateTimePicker dtpEndUseTime; - private System.Windows.Forms.PictureBox pbPaste2; - private System.Windows.Forms.PictureBox pbPaste1; - private DevComponents.Editors.ComboItem 商品直减券; - private DevComponents.Editors.ComboItem 商品满减券; - private System.Windows.Forms.NumericUpDown nudThresHold; - private System.Windows.Forms.Label lblThresHold; - private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponForm.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponForm.cs deleted file mode 100644 index ea9f600..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponForm.cs +++ /dev/null @@ -1,630 +0,0 @@ -using AllBase; -using AllBase.Helper; -using AllBase.Model.Result; -using CefSharp; -using CefSharp.WinForms; -using TemuKJD.Extension; -using TemuKJD.Helper; -using TemuKJD.KJDForms.BaseForms; -using NaiBa.CefHelper; -using NaiBa.CefHelper.Handler; -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.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace TemuKJD.KJDForms.SalesCenterForms -{ - public partial class CouponForm : BaseForm - { - private CheckBox chkSelectAll = null; - public ChromiumWebBrowser webBrowser = null; - private List lstShopId = new List(); - public List keywords = null; - public List filterWords = null; - public CancellationTokenSource cancellationTokenSource = null; - - public CouponForm() - { - InitializeComponent(); - } - - private void CouponForm_Load(object sender, EventArgs e) - { - this.ucTabControl1.TabPages.Clear(); - - chkSelectAll = dgvShop.Columns["colSelect"].AddHeaderCheckBox(HorizontalAlignment.Center, 0, 0, null, null, false); - dgvShop.Columns["colSelect"].HeaderText = ""; - chkSelectAll.Width = chkSelectAll.Height = 13; - chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged; - - this.cmbType.SelectedIndex = 0; - this.cmbUserCountLimited.SelectedIndex = 0; - this.dtpStartApplyTime.Value = DateTime.Now.Date; - this.dtpEndApplyTime.Value = this.dtpStartApplyTime.Value.AddDays(1).AddSeconds(-1); - } - - private void chkSelectAll_CheckedChanged(object sender, EventArgs e) - { - if (!chkSelectAll.Checked) - { - lstShopId.Clear(); - foreach (DataGridViewRow row in dgvShop.Rows) - { - row.Cells["colSelect"].Value = false; - } - } - else - { - lstShopId.Clear(); - var list = GlobalConfig.ShopLoginList.Where(s => s.ApiAuthStatus == "授权成功" && s.LoginStatus == "登录成功").Select(ss => ss.ShopId); - lstShopId.AddRange(list); - foreach (DataGridViewRow row in dgvShop.Rows) - { - if (list.Any(l => l == row.Cells["colShopId"]?.Value?.ToString())) - row.Cells["colSelect"].Value = true; - } - } - } - - private void CouponForm_VisibleChanged(object sender, EventArgs e) - { - if (Visible == true) - RefreshShop(); - } - - private void btnRefreshShop_Click(object sender, EventArgs e) - { - RefreshShop(); - } - - private void RefreshShop() - { - // 更新选中的上货店铺Id - lstShopId = lstShopId.Where(id => GlobalConfig.ShopLoginList.Any(s => s.ShopId == id && s.LoginStatus == "已授权")).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) - { - BindShop(shopEntity); - } - } - - private void BindShop(ShopLoginInfo shopEntity) - { - if (shopEntity == null) - return; - - bool canUse = shopEntity.ApiAuthStatus == "授权成功" && shopEntity.LoginStatus == "登录成功"; - var row = dgvShop.Rows.Cast().FirstOrDefault(p => p.Cells.GetCellValueFromColumnName("colShopId").ParseToString() == shopEntity.ShopId); - if (row == null) - { - this.dgvShop.Rows.Add( - lstShopId.Contains(shopEntity.ShopId) && canUse, - shopEntity.ShopId, - shopEntity.ShopAccount, - shopEntity.ApiAuthStatus, - shopEntity.LoginStatus, - canUse, - string.Empty - ); - } - else - { - row.Cells["colSelect"].Value = lstShopId.Contains(shopEntity.ShopId) && canUse; - row.Cells["colShopName"].Value = shopEntity.ShopAccount; - row.Cells["colAuthStatus"].Value = shopEntity.ApiAuthStatus; - row.Cells["colLoginStatus"].Value = shopEntity.LoginStatus; - row.Cells["colCanUse"].Value = canUse; - } - } - - private void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - string headerText = dgvShop.Columns[e.ColumnIndex].HeaderText; - string columnName = dgvShop.Columns[e.ColumnIndex].Name; - long shopId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToLong(); - string shopName = dgvShop.Rows[e.RowIndex].Cells["colShopId"].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.ParseToBool()) - { - row.Cells["colSelect"].Value = !row.Cells["colSelect"].Value.ParseToBool(); - if (dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value.ParseToBool()) - lstShopId.Add(shopId.ToString()); - else - lstShopId.Remove(shopId.ToString()); - if (dgvShop.Rows.Cast().All(r => r.Cells["colSelect"].Value.ParseToBool())) - chkSelectAll.Checked = true; - else - chkSelectAll.Checked = false; - } - else - { - BaseMsgForm.ShowInfo("店铺未授权或未登录!"); - } - break; - } - } - - private void btnGetProduct_Click(object sender, EventArgs e) - { - if (lstShopId.Count == 0) - { - BaseMsgForm.ShowInfo("请选择店铺!"); - return; - } - try - { - this.keywords = txtProductName.Text.Trim().Split(new string[] { "\r", "\n", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); - this.filterWords = txtFilter.Text.Trim().Split(new string[] { "\r", "\n", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); - } - catch (Exception ex) - { - } - - cancellationTokenSource = new CancellationTokenSource(); - Task.Run(() => - { - foreach (var shopId in lstShopId) - { - if (cancellationTokenSource.IsCancellationRequested) - break; - - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId); - if (shop == null) - continue; - - CouponShopForm couponShopForm = null; - Invoke(new Action(() => - { - var tab = this.ucTabControl1.TabPages.Cast().FirstOrDefault(t => t.Text == shop.ShopAccount && t.Name == "tab" + shop.ShopId); - if (tab == null) - { - tab = new TabPage(); - tab.Name = "tab" + shop.ShopId; - tab.Text = shop.ShopAccount; - this.ucTabControl1.TabPages.Add(tab); - - var form = new CouponShopForm(shop); - form.couponForm = this; - form.TopLevel = false; - form.Left = 0; - form.Top = 0; - form.FormBorderStyle = FormBorderStyle.None; - form.AutoSize = true; - form.Dock = DockStyle.Fill; - form.Show(); - tab.Controls.Add(form); - } - - if (tab.Controls.Count > 0) - couponShopForm = tab.Controls[0] as CouponShopForm; - })); - - if (couponShopForm != null) - { - couponShopForm.GetProduct( - txtPriceMin.Text.ParseToDecimal(), - txtPriceMax.Text.ParseToDecimal(), - txtSaleMin.Text.ParseToInt(), - txtSaleMax.Text.ParseToInt(), - this.keywords, - this.filterWords); - } - } - }, cancellationTokenSource.Token); - } - - public void GetSales(ShopLoginInfo shop, bool isSales = true) - { - if (webBrowser == null) - { - Invoke(new Action(() => - { - webBrowser = CEFBrowser.CreateChromiumWebBrowser("about:blank", false); - webBrowser.KeyboardHandler = new KeyboardHandler(); - webBrowser.Dock = DockStyle.Fill; - CustomResourceRequestHandlerLocal resourceRequestHandler = new Helper.CustomResourceRequestHandlerLocal(); - resourceRequestHandler.ResourceLoadCompleteEvent += RequestHandler_ResourceLoadCompleteEvent; - webBrowser.RequestHandler = new CustomRequestHandler(resourceRequestHandler); - webBrowser.LifeSpanHandler = new LifeSpanHandlerLocal(PopWindowType.SelfWindow); - webBrowser.SendToBack(); - this.splitContainer1.Panel2.Controls.Add(webBrowser); - })); - } - - while (webBrowser.Tag != null) - { - Thread.Sleep(Randomx.GetId(50, 100)); - } - if (cancellationTokenSource.IsCancellationRequested) - return; - - webBrowser.Tag = shop; - - while (!webBrowser.IsBrowserInitialized || webBrowser.IsLoading) - continue; - - var cookie = shop.Cookies; - CEFBrowser.DeleteCookie(webBrowser.RequestContext.GetCookieManager(null)); - var t = CEFBrowser.SetCookieAsync("jinritemai.com", cookie, webBrowser.RequestContext.GetCookieManager(null)); - t.Wait(2000); - Thread.Sleep(500); - - var targetUrl = "https://fxg.jinritemai.com/ffa/g/list"; - webBrowser.Load(targetUrl); - - while (webBrowser.IsLoading) - { - Thread.Sleep(1000); - } - Thread.Sleep(3000); - - if (!isSales) - { - Thread.Sleep(3000); - var jsStrBase = "function clickProductAnalysis(txt) {\r\n" - + "var child = document.body.firstElementChild;\r\n" - + "var element1 = null;\r\n" - + " while (child) {\r\n" - + " if (child.innerHTML.indexOf(txt) >= 0) {\r\n" - + " element1 = child;\r\n" - + " if (child.firstElementChild) {\r\n" - + " child = child.firstElementChild; continue;\r\n" - + " } else break;\r\n" - + " }\r\n" - + " child = child.nextElementSibling;\r\n" - + " }\r\n" - + " if (element1) {\r\n" - + " element1.click(); return 'success';\r\n" - + " } else return 'no_element';\r\n" - + "}\r\n"; - var jsStr = jsStrBase + "clickProductAnalysis('电商罗盘');\r\n"; - t = webBrowser.GetMainFrame().EvaluateScriptAsync(jsStr); - t.Wait(); - - while (webBrowser.IsLoading) - { - Thread.Sleep(1000); - } - Thread.Sleep(Randomx.GetId(1500, 2500)); - - jsStr = jsStrBase + "clickProductAnalysis('商品概览');\r\n"; - t = webBrowser.GetMainFrame().EvaluateScriptAsync(jsStr); - t.Wait(); - while (webBrowser.IsLoading) - { - Thread.Sleep(1000); - } - Thread.Sleep(Randomx.GetId(1500, 2500)); - } - while (webBrowser.Tag != null) - { - Thread.Sleep(Randomx.GetId(50, 100)); - } - Thread.Sleep(3000); - } - - private void RequestHandler_ResourceLoadCompleteEvent(object sender, string url, string postData, string responseData, CefSharp.IRequest iRequest) - { - if (url.StartsWith("https://fxg.jinritemai.com/product/tproduct/list?page=0") && url.Contains("&pay_type=")) - { - var listUrl = url; - var referrerUrl = iRequest.ReferrerUrl; - var result = responseData; - Dictionary Headers = new Dictionary(); - foreach (var hk in iRequest.Headers.AllKeys) - { - Headers[hk] = iRequest.Headers[hk]; - } - if (webBrowser.Tag != null) - { - var shop = webBrowser.Tag as ShopLoginInfo; - var tab = this.ucTabControl1.TabPages.Cast().FirstOrDefault(t => t.Text == shop.ShopAccount && t.Name == "tab" + shop.ShopId); - var clearForm = tab.Controls[0] as CouponShopForm; - - Task.Run(() => - { - int total = -1; - int number = 0; - for (int i = 0; i < 10000; i++) - { - number += 20; - result = ""; - for (int j = 0; j < 3 && !result.Contains("\"st\":0"); j++) - { - CommonSimRequest simRequest = new CommonSimRequest(); - simRequest.Accept = "application/json, text/plain, */*"; - if (Headers.ContainsKey("Accept")) - simRequest.Accept = Headers["Accept"]; - if (Headers.ContainsKey("UserAgent")) - simRequest.UserAgent = Headers["UserAgent"]; - var cookie = shop.Cookies; - - var rUrl = listUrl.Replace("page=0", "page=" + i) - .Replace("&pay_type=", "&pay_type=&sell_num_min=1"); - - result = simRequest.Request_Get(rUrl, referrerUrl, new Dictionary(), cookie); - if (j > 0) - { - Thread.Sleep(Randomx.GetId(2000, 3000)); - } - } - - if (result.Contains("\"st\":0") && !cancellationTokenSource.IsCancellationRequested) - { - clearForm.isGetProductSalesSuccess = true; - - if (total == -1) - { - total = BaseRegex.GetIntJson(ref result, "total"); - } - var jObj = JObject.Parse(result); - var jArr = jObj["data"] as JArray; - foreach (var productObj in jArr) - { - var prod = JsonHelper.SerializeObject(productObj); - var pId = BaseRegex.GetStringJson(ref prod, "product_id"); - var sales = BaseRegex.GetIntJson(ref prod, "sell_num"); - if (sales == 0) - { - number = 99999999; - break; - } - else - { - clearForm.dicProductSales[pId] = sales; - } - } - Thread.Sleep(Randomx.GetId(2000, 3000)); - } - else - { - clearForm.isGetProductSalesSuccess = false; - webBrowser.Tag = null; - break; - } - - if (number >= total) - break; - } - - webBrowser.Tag = null; - Thread.Sleep(1000); - }); - } - else - { - webBrowser.Tag = null; - } - } - } - - private void lblProductName_Click(object sender, EventArgs e) - { - if (this.webBrowser != null) - { - webBrowser.SendToBack(); - } - } - - private void lblProductName_DoubleClick(object sender, EventArgs e) - { - if (this.webBrowser != null) - { - webBrowser.BringToFront(); - } - } - - private void btnSet_Click(object sender, EventArgs e) - { - cancellationTokenSource = new CancellationTokenSource(); - - int periodType = this.rbUseTypePeriod.Checked ? 1 : 2; - int favouredType = 41; - if (this.cmbType.Text == "商品直减券") - favouredType = 42; - else if (this.cmbType.Text == "商品满减券") - favouredType = 43; - int days = this.nudDays.Text.ParseToInt(); - int startApplyTime = BaseClass.DateTimeToTimestampSeconds(this.dtpStartApplyTime.Value); - int endApplyTime = BaseClass.DateTimeToTimestampSeconds(this.dtpEndApplyTime.Value); - int startUseTime = BaseClass.DateTimeToTimestampSeconds(this.dtpStartUseTime.Value.Date); - int endUseTime = BaseClass.DateTimeToTimestampSeconds(this.dtpEndUseTime.Value.Date.AddDays(1).AddSeconds(-1)); - int totalCount = nudTotalCount.Value.ParseToInt(); - int countLimit = 1; - decimal discount = this.nudCredit.Value.ParseToDecimal(); // 折扣 - int thresHold = this.nudThresHold.Value.ParseToInt(); // 满x元 单位元 - int credit = this.nudCredit.Value.ParseToInt(); // 减x元 单位元 - bool igonre = rbNotReckonIn.Checked; - bool oneProductEachCoupon = this.rbOneProductEachCoupon.Checked; - - Task.Run(() => - { - int i = 0; - List tList = new List(); - foreach (TabPage tp in ucTabControl1.TabPages) - { - i++; - Invoke(new Action(() => - { - this.statusBar.lblTaskStatus.Text = "正在设置优惠券"; - this.statusBar.pgbTaskProgress.Value = i; - this.statusBar.pgbTaskProgress.Text = i + "/" + ucTabControl1.TabPages.Count; - this.statusBar.pgbTaskProgress.Maximum = ucTabControl1.TabPages.Count; - })); - - if (tp.Controls.Count > 0) - { - var cForm = tp.Controls[0] as CouponShopForm; - if (cForm != null) - { - var t = Task.Run(() => - { - cForm.SetCoupon(periodType, favouredType, startApplyTime, endApplyTime, startUseTime, endUseTime, days, totalCount, countLimit, discount, thresHold, credit, igonre, oneProductEachCoupon); - }); - tList.Add(t); - if (tList.Count >= 10) - Task.WaitAny(tList.ToArray()); - - var ts = tList.Where(t1 => t1.IsCompleted || t1.IsCanceled || t1.IsFaulted); - foreach (var t1 in ts) - { - tList.Remove(t1); - } - } - } - } - Task.WaitAll(tList.ToArray()); - tList.Clear(); - - Invoke(new Action(() => - { - if (cancellationTokenSource.IsCancellationRequested) - { - this.statusBar.lblTaskStatus.Text = "设置中断"; - } - else - { - this.statusBar.lblTaskStatus.Text = "设置完成"; - } - this.statusBar.pgbTaskProgress.Value = 0; - this.statusBar.pgbTaskProgress.Text = 0 + "/" + 0; - this.statusBar.pgbTaskProgress.Maximum = 0; - })); - }, cancellationTokenSource.Token); - } - - private void btnStopOperate_Click(object sender, EventArgs e) - { - if (cancellationTokenSource != null) - cancellationTokenSource.Cancel(); - } - - private void btnStopGetProduct_Click(object sender, EventArgs e) - { - if (cancellationTokenSource != null) - cancellationTokenSource.Cancel(); - } - - private void rbUseTypePeriod_CheckedChanged(object sender, EventArgs e) - { - if (rbUseTypePeriod.Checked) - { - pnlTimePeriod.Visible = true; - lblUseTypeText.Text = "日期范围"; - } - else - { - pnlTimePeriod.Visible = false; - lblUseTypeText.Text = "领券当日起"; - } - } - - private void pbPaste1_Click(object sender, EventArgs e) - { - IDataObject iData = Clipboard.GetDataObject(); - if (iData != null && iData.GetDataPresent(DataFormats.Text)) - { - txtProductName.Text = (string)iData.GetData(DataFormats.Text); - } - } - - private void pbPaste2_Click(object sender, EventArgs e) - { - IDataObject iData = Clipboard.GetDataObject(); - if (iData != null && iData.GetDataPresent(DataFormats.Text)) - { - txtFilter.Text = (string)iData.GetData(DataFormats.Text); - } - } - - private void btnClear_Click(object sender, EventArgs e) - { - if (BaseMsgForm.ShowConfirm("确定要清空结果吗?清空后需要重新获取!").DialogResult == DialogResult.OK) - { - foreach (TabPage tp in ucTabControl1.TabPages) - { - if (tp.Controls.Count > 0) - { - if (tp.Text.Contains("活动管理")) - { - //var managerActiveForm = tp.Controls[0] as LimitedSalesManagerActiveForm; - //if (managerActiveForm != null) - // managerActiveForm.ClearData(); - //if (splitContainer4.Panel1.Controls.Count == 2) - // splitContainer4.Panel1.Controls.RemoveAt(1); - } - else - { - var salesForm = tp.Controls[0] as CouponShopForm; - if (salesForm != null) - salesForm.ClearData(); - } - } - } - } - } - - private void cmbType_SelectedIndexChanged(object sender, EventArgs e) - { - if (cmbType.Text == "商品折扣券") - { - this.lblDiscountText.Text = "  折扣"; - nudCredit.Minimum = 0.1M; - nudCredit.Increment = 0.1M; - nudCredit.Maximum = 9.9M; - nudCredit.DecimalPlaces = 1; - nudCredit.Value = 9.9M; - lblCreditText.Text = "折"; - nudThresHold.Visible = false; - lblThresHold.Visible = false; - } - else if (cmbType.Text == "商品直减券") - { - this.lblDiscountText.Text = "直减面额"; - nudCredit.Minimum = 1; - nudCredit.Increment = 1; - nudCredit.Maximum = 1000; - nudCredit.DecimalPlaces = 0; - nudCredit.Value = 1; - lblCreditText.Text = "元"; - nudThresHold.Visible = false; - lblThresHold.Visible = false; - } - else - { - this.lblDiscountText.Text = "满减 满"; - nudCredit.Minimum = 1; - nudCredit.Increment = 1; - nudCredit.Maximum = 99999; - nudCredit.DecimalPlaces = 0; - nudCredit.Value = 1; - lblCreditText.Text = "元"; - nudThresHold.Visible = true; - lblThresHold.Visible = true; - } - } - } -} diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponForm.resx b/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponForm.resx deleted file mode 100644 index 82921c0..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponForm.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponMulitAddForm.Designer.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponMulitAddForm.Designer.cs deleted file mode 100644 index e4f76f3..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponMulitAddForm.Designer.cs +++ /dev/null @@ -1,335 +0,0 @@ -namespace TemuKJD.KJDForms.SalesCenterForms -{ - partial class CouponMulitAddForm - { - /// - /// 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() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CouponMulitAddForm)); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.rbUseTypeDays = new System.Windows.Forms.RadioButton(); - this.rbUseTypePeriod = new System.Windows.Forms.RadioButton(); - this.label17 = new System.Windows.Forms.Label(); - this.rbAllProductEachCoupon = new System.Windows.Forms.RadioButton(); - this.rbOneProductEachCoupon = new System.Windows.Forms.RadioButton(); - this.btnSet = new DevComponents.DotNetBar.PanelEx(); - this.label2 = new System.Windows.Forms.Label(); - this.label1 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.lblUseTypeText = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.panel3 = new System.Windows.Forms.Panel(); - this.lblAdd = new System.Windows.Forms.LinkLabel(); - this.ucCouponAddParam = new TemuKJD.KJDForms.SalesCenterForms.UcCouponAddParam(); - this.panel2.SuspendLayout(); - this.panel4.SuspendLayout(); - this.panel3.SuspendLayout(); - this.SuspendLayout(); - // - // panel2 - // - this.panel2.BackColor = System.Drawing.Color.White; - this.panel2.Controls.Add(this.panel4); - this.panel2.Controls.Add(this.label17); - this.panel2.Controls.Add(this.rbAllProductEachCoupon); - this.panel2.Controls.Add(this.rbOneProductEachCoupon); - this.panel2.Controls.Add(this.btnSet); - this.panel2.Controls.Add(this.label2); - this.panel2.Controls.Add(this.label1); - this.panel2.Controls.Add(this.label10); - this.panel2.Controls.Add(this.label9); - this.panel2.Controls.Add(this.label8); - this.panel2.Controls.Add(this.lblUseTypeText); - this.panel2.Controls.Add(this.label4); - this.panel2.Controls.Add(this.label13); - this.panel2.Controls.Add(this.label11); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.panel3); - this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel2.Location = new System.Drawing.Point(1, 33); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(1198, 666); - this.panel2.TabIndex = 1; - // - // panel4 - // - this.panel4.Controls.Add(this.rbUseTypeDays); - this.panel4.Controls.Add(this.rbUseTypePeriod); - this.panel4.Location = new System.Drawing.Point(621, 14); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(174, 21); - this.panel4.TabIndex = 575; - // - // rbUseTypeDays - // - this.rbUseTypeDays.AutoSize = true; - this.rbUseTypeDays.Location = new System.Drawing.Point(81, 0); - this.rbUseTypeDays.Name = "rbUseTypeDays"; - this.rbUseTypeDays.Size = new System.Drawing.Size(74, 21); - this.rbUseTypeDays.TabIndex = 466; - this.rbUseTypeDays.Text = "有效天数"; - this.rbUseTypeDays.UseVisualStyleBackColor = true; - // - // rbUseTypePeriod - // - this.rbUseTypePeriod.AutoSize = true; - this.rbUseTypePeriod.Checked = true; - this.rbUseTypePeriod.Location = new System.Drawing.Point(4, 0); - this.rbUseTypePeriod.Name = "rbUseTypePeriod"; - this.rbUseTypePeriod.Size = new System.Drawing.Size(74, 21); - this.rbUseTypePeriod.TabIndex = 465; - this.rbUseTypePeriod.TabStop = true; - this.rbUseTypePeriod.Text = "日期范围"; - this.rbUseTypePeriod.UseVisualStyleBackColor = true; - this.rbUseTypePeriod.CheckedChanged += new System.EventHandler(this.rbUseTypePeriod_CheckedChanged); - // - // label17 - // - this.label17.AutoSize = true; - this.label17.Location = new System.Drawing.Point(562, 16); - this.label17.Name = "label17"; - this.label17.Size = new System.Drawing.Size(68, 17); - this.label17.TabIndex = 574; - this.label17.Text = "使用时间:"; - // - // rbAllProductEachCoupon - // - this.rbAllProductEachCoupon.AutoSize = true; - this.rbAllProductEachCoupon.Checked = true; - this.rbAllProductEachCoupon.Location = new System.Drawing.Point(212, 14); - this.rbAllProductEachCoupon.Name = "rbAllProductEachCoupon"; - this.rbAllProductEachCoupon.Size = new System.Drawing.Size(307, 21); - this.rbAllProductEachCoupon.TabIndex = 570; - this.rbAllProductEachCoupon.TabStop = true; - this.rbAllProductEachCoupon.Text = "所有商品设置同一组优惠券(每200件商品一组优惠券)"; - this.rbAllProductEachCoupon.UseVisualStyleBackColor = true; - // - // rbOneProductEachCoupon - // - this.rbOneProductEachCoupon.AutoSize = true; - this.rbOneProductEachCoupon.Location = new System.Drawing.Point(52, 14); - this.rbOneProductEachCoupon.Name = "rbOneProductEachCoupon"; - this.rbOneProductEachCoupon.Size = new System.Drawing.Size(146, 21); - this.rbOneProductEachCoupon.TabIndex = 569; - this.rbOneProductEachCoupon.Text = "每件商品单独置优惠券"; - this.rbOneProductEachCoupon.UseVisualStyleBackColor = true; - // - // btnSet - // - this.btnSet.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnSet.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnSet.DisabledBackColor = System.Drawing.Color.Empty; - this.btnSet.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSet.Location = new System.Drawing.Point(23, 621); - this.btnSet.Name = "btnSet"; - this.btnSet.Size = new System.Drawing.Size(80, 23); - this.btnSet.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnSet.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSet.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSet.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnSet.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnSet.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnSet.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnSet.Style.GradientAngle = 90; - this.btnSet.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnSet.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSet.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSet.TabIndex = 565; - this.btnSet.Text = "批量设置"; - this.btnSet.Click += new System.EventHandler(this.btnGetProduct_Click); - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(32, 45); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(68, 17); - this.label2.TabIndex = 558; - this.label2.Text = "优惠券名称"; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(1127, 45); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(56, 17); - this.label1.TabIndex = 557; - this.label1.Text = "设置状态"; - // - // label10 - // - this.label10.AutoSize = true; - this.label10.Location = new System.Drawing.Point(851, 45); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(56, 17); - this.label10.TabIndex = 554; - this.label10.Text = "优惠条件"; - // - // label9 - // - this.label9.AutoSize = true; - this.label9.Location = new System.Drawing.Point(748, 45); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(56, 17); - this.label9.TabIndex = 553; - this.label9.Text = "优惠内容"; - // - // label8 - // - this.label8.AutoSize = true; - this.label8.Location = new System.Drawing.Point(640, 45); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(80, 17); - this.label8.TabIndex = 552; - this.label8.Text = "价格风险预警"; - // - // lblUseTypeText - // - this.lblUseTypeText.AutoSize = true; - this.lblUseTypeText.Location = new System.Drawing.Point(453, 45); - this.lblUseTypeText.Name = "lblUseTypeText"; - this.lblUseTypeText.Size = new System.Drawing.Size(56, 17); - this.lblUseTypeText.TabIndex = 550; - this.lblUseTypeText.Text = "日期范围"; - // - // label4 - // - this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(126, 45); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(56, 17); - this.label4.TabIndex = 549; - this.label4.Text = "领取开始"; - // - // label13 - // - this.label13.AutoSize = true; - this.label13.Location = new System.Drawing.Point(1057, 45); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(56, 17); - this.label13.TabIndex = 556; - this.label13.Text = "每人限领"; - // - // label11 - // - this.label11.AutoSize = true; - this.label11.Location = new System.Drawing.Point(990, 45); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(44, 17); - this.label11.TabIndex = 555; - this.label11.Text = "发放量"; - // - // label6 - // - this.label6.AutoSize = true; - this.label6.Location = new System.Drawing.Point(289, 45); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(56, 17); - this.label6.TabIndex = 551; - this.label6.Text = "领取结束"; - // - // panel3 - // - this.panel3.AutoScroll = true; - this.panel3.Controls.Add(this.lblAdd); - this.panel3.Controls.Add(this.ucCouponAddParam); - this.panel3.Location = new System.Drawing.Point(10, 70); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(1180, 545); - this.panel3.TabIndex = 1; - // - // lblAdd - // - this.lblAdd.AutoSize = true; - this.lblAdd.Location = new System.Drawing.Point(22, 56); - this.lblAdd.Name = "lblAdd"; - this.lblAdd.Size = new System.Drawing.Size(92, 17); - this.lblAdd.TabIndex = 1; - this.lblAdd.TabStop = true; - this.lblAdd.Text = "增加优惠券设置"; - this.lblAdd.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lblAdd_LinkClicked); - // - // ucCouponAddParam - // - this.ucCouponAddParam.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.ucCouponAddParam.Location = new System.Drawing.Point(0, 0); - this.ucCouponAddParam.Name = "ucCouponAddParam"; - this.ucCouponAddParam.Size = new System.Drawing.Size(1180, 40); - this.ucCouponAddParam.TabIndex = 0; - this.ucCouponAddParam.OnClose += new TemuKJD.KJDForms.SalesCenterForms.UcCouponAddParam.CloseCouponAdd(this.couponAddParamControl1_OnClose); - // - // CouponMulitAddForm - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.ClientSize = new System.Drawing.Size(1200, 700); - this.Controls.Add(this.panel2); - this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Name = "CouponMulitAddForm"; - this.Text = "批量设置"; - this.TitleText = "批量设置"; - this.Controls.SetChildIndex(this.panel2, 0); - this.panel2.ResumeLayout(false); - this.panel2.PerformLayout(); - this.panel4.ResumeLayout(false); - this.panel4.PerformLayout(); - this.panel3.ResumeLayout(false); - this.panel3.PerformLayout(); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel2; - private UcCouponAddParam ucCouponAddParam; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.LinkLabel lblAdd; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label lblUseTypeText; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label13; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private DevComponents.DotNetBar.PanelEx btnSet; - private System.Windows.Forms.RadioButton rbAllProductEachCoupon; - private System.Windows.Forms.RadioButton rbOneProductEachCoupon; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.RadioButton rbUseTypeDays; - private System.Windows.Forms.RadioButton rbUseTypePeriod; - private System.Windows.Forms.Label label17; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponMulitAddForm.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponMulitAddForm.cs deleted file mode 100644 index ac25961..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponMulitAddForm.cs +++ /dev/null @@ -1,163 +0,0 @@ -using AllBase; -using TemuKJD.KJDForms.BaseForms; -using NaiBa.Util.Extension; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace TemuKJD.KJDForms.SalesCenterForms -{ - public partial class CouponMulitAddForm : LRBaseForm - { - int number = 1; - public CouponShopForm couponShopForm = null; - - public CouponMulitAddForm() - { - InitializeComponent(); - } - - private void couponAddParamControl1_OnClose(object obj) - { - int i = 0; - foreach (var c in panel3.Controls) - { - var couponControl = c as UcCouponAddParam; - if (couponControl == null) - continue; - - couponControl.Location = new Point(0, i * (couponControl.Height + 2)); - lblAdd.Location = new Point(20, (i + 1) * (couponControl.Height + 2) + 10); - i++; - } - - if (panel3.Controls.Count == 1) - lblAdd.Location = new Point(20, 12); - } - - private void lblAdd_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) - { - this.number++; - - UcCouponAddParam co = new UcCouponAddParam(number); - if (rbUseTypePeriod.Checked) - co.pnlTimePeriod.Visible = true; - else - co.pnlTimePeriod.Visible = false; - - panel3.Controls.Add(co); - co.OnClose += couponAddParamControl1_OnClose; - - int i = 0; - foreach (var c in panel3.Controls) - { - var couponControl = c as UcCouponAddParam; - if (couponControl == null) - continue; - - couponControl.Location = new Point(0, i * (couponControl.Height + 2)); - lblAdd.Location = new Point(20, (i + 1) * (couponControl.Height + 2) + 10); - i++; - } - } - - private void btnGetProduct_Click(object sender, EventArgs e) - { - if (couponShopForm == null) - return; - - this.btnSet.Enabled = false; - Task.Run(() => - { - foreach (var c in this.panel3.Controls) - { - var couponControl = c as UcCouponAddParam; - if (couponControl == null) - continue; - - int periodType = this.rbUseTypePeriod.Checked ? 1 : 2; - int favouredType = 41; - Invoke(new Action(() => - { - if (couponControl.cmbType.Text == "商品直减券") - favouredType = 42; - else if (couponControl.cmbType.Text == "商品满减券") - favouredType = 43; - })); - int days = couponControl.nudDays.Text.ParseToInt(); - int startApplyTime = BaseClass.DateTimeToTimestampSeconds(couponControl.dtpStartApplyTime.Value); - int endApplyTime = BaseClass.DateTimeToTimestampSeconds(couponControl.dtpEndApplyTime.Value); - int startUseTime = BaseClass.DateTimeToTimestampSeconds(couponControl.dtpStartUseTime.Value.Date); - int endUseTime = BaseClass.DateTimeToTimestampSeconds(couponControl.dtpEndUseTime.Value.Date.AddDays(1).AddSeconds(-1)); - int totalCount = couponControl.nudTotalCount.Value.ParseToInt(); - int countLimit = 1; - decimal discount = couponControl.nudCredit.Value.ParseToDecimal(); - int thresHold = couponControl.nudThresHold.Value.ParseToInt(); // 满x元 单位元 - int credit = couponControl.nudCredit.Value.ParseToInt(); // 减x元 单位元 - bool ignore = couponControl.rbNotReckonIn.Checked; - string couponName = couponControl.txtName.Text; - bool oneProductEachCoupon = this.rbOneProductEachCoupon.Checked; - - var result = couponShopForm.SetCoupon(periodType, favouredType, startApplyTime, endApplyTime, startUseTime, endUseTime, days, totalCount, countLimit, discount, thresHold, credit, ignore, oneProductEachCoupon, couponName); - //if (result.Contains("\"msg\":\"成功\"")) - // Invoke(new Action(() => { couponControl.lblMsg.Text = "设置成功"; })); - //else - // Invoke(new Action(() => { couponControl.lblMsg.Text = "设置失败"; })); - if (result.Contains("success") && !result.Contains("error")) - Invoke(new Action(() => { couponControl.lblMsg.Text = "设置成功"; })); - else if (result.Contains("success") && result.Contains("error")) - Invoke(new Action(() => { couponControl.lblMsg.Text = "部分成功"; })); - else - Invoke(new Action(() => { couponControl.lblMsg.Text = "设置失败"; })); - - if ("18565722666,13928836672,18565722666,13928836672,18937517772,18135637272,18888888888".Contains(BaseClass.UserName)) - Thread.Sleep(Randomx.GetId(200, 700)); - else - Thread.Sleep(Randomx.GetId(1000, 2000)); - } - BaseMsgForm.ShowInfo("优惠券批量设置结束!"); - Invoke(new Action(() => - { - this.btnSet.Enabled = true; - })); - }); - } - - private void rbUseTypePeriod_CheckedChanged(object sender, EventArgs e) - { - if (rbUseTypePeriod.Checked) - { - lblUseTypeText.Text = "日期范围"; - - foreach (var c in this.panel3.Controls) - { - var couponControl = c as UcCouponAddParam; - if (couponControl == null) - continue; - - couponControl.pnlTimePeriod.Visible = true; - } - } - else - { - lblUseTypeText.Text = "领券当日起"; - - foreach (var c in this.panel3.Controls) - { - var couponControl = c as UcCouponAddParam; - if (couponControl == null) - continue; - - couponControl.pnlTimePeriod.Visible = false; - } - } - } - } -} diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponMulitAddForm.resx b/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponMulitAddForm.resx deleted file mode 100644 index 450d02b..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponMulitAddForm.resx +++ /dev/null @@ -1,298 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - - - AAABAAEAgIAQcwAAAABoKAAAFgAAACgAAACAAAAAAAEAAAEABAAAAAAAACgAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAgICAAMDAwAAAAP8AAP8AAAD//wD/AAAA/wD/AP// - AAD///8AAAAAAAAAAAAAAAAABEZmbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZmZkQAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAZszMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMxmAAAAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMxkAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzGQAAAAAAAAAAAAAAAAAAAbMzMzMzMzMzMzMzMzMzMzMzMzMd3d3d3d3d3 - d3d3fMzMzMzMzMzMzMzMzMzMzMzMzMYAAAAAAAAAAAAAAAAARszMzMzMzMzMzMzMzMzMzMd3d3iIiIiI - iIiIiIiIiIh3d3d8zMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAABszMzMzMzMzMzMzMzMzMx3eIiIiI - iIiIiIiIiIiIiIiIiIiIiHd8zMzMzMzMzMzMzMzMzMxgAAAAAAAAAAAAAGzMzMzMzMzMzMzMzMzMd4iI - iIiIiIiIiIiIiIiIiIiIiIiIiIiIiHfMzMzMzMzMzMzMzMzMxgAAAAAAAAAAAAbMzMzMzMzMzMzMzMzH - eIiIiIiIiIiHZmZmZmZmZmZmZ3eIiIiIiIiIiHzMzMzMzMzMzMzMzMxgAAAAAAAAAABszMzMzMzMzMzM - zMzHiIiIiIiHZmZmZmZmZmZmZmZmZmZmZmZmeIiIiIiIfMzMzMzMzMzMzMzMxgAAAAAAAAAGzMzMzMzM - zMzMzMzHiIiIiIdmZmZmZgAAAAAAAAAAAAZmZmZmZmZmeIiIiIh8zMzMzMzMzMzMzMxgAAAAAAAATMzM - zMzMzMzMzMzHiIiIiHZmZgAAAAAAAAAAAAEAAAAAAAAAAGZmZmZniIiIiHzMzMzMzMzMzMzMxAAAAAAA - AGzMzMzMzMzMzMzMeIiIiGZmAAAAAAERERmZmZmZmZmZkRERERAAAGZmZmZ4iIiIfMzMzMzMzMzMzMYA - AAAAAAbMzMzMzMzMzMzMeIiIiGZgAAAAERmZmZmZmZmZmZmZmZmZmZmZkREAAGZmZniIiIfMzMzMzMzM - zMzMYAAAAABMzMzMzMzMzMzMzIiIiHYAAAARGZmZiIiIj///////+IiIiIeZmZmZkREAZmZmiIiIfMzM - zMzMzMzMzMQAAAAAbMzMzMzMzMzMzO6IiIYAAAARmYiI/////////////////////4iHmZmZEQBmZmeI - iIh8zMzMzMzMzMzGAAAABMzMzMzMzMzMzMeIiIdgAAAZmI////////////////////////////iJmZmR - EGZmZ4iIh8zMzMzMzMzMzEAAAAbMzMzMzMzMzMzoiIhwAAAZeP////////////////////////////// - /4iZmZEAZmZ4iIh8zMzMzMzMzMxgAABMzMzMzMzMzMzOiIiGAAABiP////////////////////////// - ////////+JmZkQZmZ4iIh8zMzMzMzMzMxAAAbMzMzMzMzMzM7oiIYAABeP////////////////////// - ///////////////4mZkQZmZ4iIjMzMzMzMzMzMYAAMzMzMzMzMzMzu6IhwAAGP////////////////// - /////////////////////4iZmRZmZ4iIfMzMzMzMzMzMAAbMzMzMzMzMzM7oiHAAB4////////////// - ////////////////////////////iZmRBmZ4iIfMzMzMzMzMzGAGzMzMzMzMzMzuiIcAAHj///////// - //////////////////////////////////iZmRZmZ4iIzMzMzMzMzMxgDMzMzMzMzMzM7ohwAAf///// - ////////////////////////////////////////95mRZmaIiHzMzMzMzMzMwEzMzMzMzMzMzuiIEABo - //////////////////////////////////////////////95mRZmaIiMzMzMzMzMzMRszMzMzMzMzM7o - hwAGj///////////////////////////////////////////////95kQZmeIh8zMzMzMzMzGbMzMzMzM - zMzu6HEAB/////////////////////////////////////////////////+ZkQZmiIjMzMzMzMzMxmzM - zMzMzMzM7ohwAGj/////////////////////////////////////////////////iZkWZniIfMzMzMzM - zMZszMzMzMzMxu6HEAbv/4iI/////////////////////////////////////////4iP//iZEGZoiHzM - zMzMzMzGbMzMzMzMzM7uhxAGj/iIiIj//////////////////////////////////////4iIiI//mZFm - aIiMzMzMzMzMxszMzMzMzMzO6IEAbv+IiIiIj/////////////////////////////////////iIiIiP - /4mRBmeIh8zMzMzMzMbMzMzMzMzMbuhxAG7/iIiIiI////////////////iIj///j//////////////4 - iIiIiP/5mQZmiIfMzMzMzMzMzMzMzMzMzO7ocQDo+IiIiIiP///////////////u7u7u7u7o//////// - ////iIiIiIj/+JkWZoiHzMzMzMzMzMzMzMzMzMzu6BEG7/iIiIiIj/////////////+Hd3ju5maO7v// - /////////4iIiIiI//iZEGaIh8zMzMzMzMzMzMzMzMzM7ugRBu//iIiIiI//////////////kZmZdmAZ - mP/////////////4iIiIiP//mRBmeIjMzMzMzMzMzMzMzMzMzO7nEAbv/4iIiIiP////////////+HiI - mZEBd5n/////////////+IiIiIj//4mQZniIzMzMzMzMzMzMzMzMzMzu5xAO7//4iIiI//ju7o////// - //j//4mZeP/4//////////////iIiIiP//+JkGZ4iHzMzMzMzMzMzMzMzMzG7ocQDu///4iI//ju7u7u - j//////////4mP//////////////7u7uiIiI////iZBmaIh8zMzMzMzMzMzMzMzMzu6HEG7v//////+G - ZmZ47u7//////////4//////////////7u7u7u6P/////4mQBmiIfMzMzMzMzMzMzMzMzM7uhRBu7/// - ///3AAAAF37u7///////////////////////h2AABm7u7v/////5kAZ4iHzMzMzMzMzMzMzMzMzO7oUQ - bu//////gQAAZgEG7u//////////////////////+BAAAAAFfu6P////+ZAGeIjMzMzMzMzMzMzMzMzM - zu6FEG7v////+JEAAXhwAG7o/////////////////////4gAABEGARbu7/////kQBoiIzMzMzMzMzMzM - zMzMzM7uhRBu7/////iZABmZkQBm6P////////////////////+JABGZF2AAbo////+JEGaIiMzMzMzM - zMzMzMzMzMzO7ucRbu/////4mRZ4iZkQBu//////////////////////mQB5mZdgAG7/////iRBmiIfM - zMzMzMzMzMzMzMzMxu7nEQ7v////+Bl+j/iZEAaP/////////////////////5l2/4mRAABu/////4kQ - ZoiHzMzMzMzMzMzMzMzMzMzu5xEO6P//+Phgbu/4kQAI//////////////////////+Zfo/4kQAAeIiP - //+JEGaIh8zMzMzMzMzMzMzMzMzM7ucRBu7///iOYHiI+HAAf///////////////////////mYjv+BAA - BuiIj///iQBniIfMzMzMzMzMzMzMzMzMzO7nEQbu///3EAAG6IcRF4iP/////////////////////4GP - /4cQAAZnbv///5EAaIiMzMzMzMzMzMzMzMzMzMzu5xEW7v//iRF3dmZgAXjmj/////////////////// - ///3ePiBEQAHdm7///iRAGiIfMzMzMzMzMzMzMzMzMzM7u5xFu6P/5EZmXZmZmbmaP////////////// - ///////4/4d2cRAAFwbuj//4kQZoiHzMzMzMzMzMzMzMzMzMzG7ucRDu7/iXiZkQAAZmAH////////// - ////////////+IiIdmYABmAX//j/+BAGeIh8zMzMzMzMzMzMzMzMzMzO7nEQbu/4iP+BERkREZf///// - //////////////////+JmXdxEBEAB3////kQBoiIzMzMzMzMzMzMzMzMzMzMzu5xEW7o+P//gZmZmZmP - ////////////////////////+JmZmZmZl453//+JAGaIh8zMzMzMzMzMzMzMzMzMzM7u5xEO7vj/+IeP - iIj////////////////////////////4iZmZmZiPiP//cQBoiIfMzMzMzMzMzMzMzMzMzMzM7ucRFu6P - //iP//////////////////////////////////////+Jn/j/+JAAaIiMzMzMzMzMzMzMzMzMzMzMzO7n - ERbu7//4/////////////////////////////////////////4j///gQBoiIfMzMzMzMzMzMzMzMzMzM - zMzu7nERbuj////////////////////////////////////////////4//+BAAaIiMzMzMzMzMzMzMzM - zMzMzMzMzu5xEW7u////////////////////////////////////////////////cQBoiIfMzMzMzMzM - zMzMzMzMzMzMzM7u5xEW7u//////////////////////////////////////////////+BAAaIiMzMzM - zMzMzMzMzMzMzMzMzMzO7uYREO7o//7v//////////////////////////////////////////cABoiI - fMzMzMzMzMzMzMzMzMzMzMzMzO7ucRFu7oj/7o////////////////////////////////////////9x - AAeIiMzMzMzMzMzMzMzMzMzMzMzMzMzO7ucRFu7nePju7u7v//////////////////////////////// - 6P/4EAB4iIfMzMzMzMzMzMzMzMzMzMzMzMzMzu7nERBu7nmIiO7oj/////////////////////////// - ju7u7o//hwAGiIh8zMzMzMzMzMzMzMzMzMzMzMzMzMzu7nERbu7nmZl5eP////////////////////// - ///4iPiO5nj/+HAAaIiIzMzMzMzMzMzMzMzMzMzMzMzMzMzM7u7nERbu7oiZeI////////////////// - ////////+ImXd5mP/4cAAHiIh8zMzMzMzMzMzMzMzMzMzMzMzMzMzM7u53ERbu7v//////////////// - ///////////////4iZl4//hgAAeIiHzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM7u53ERBu7v////////// - //////////////////////////+GAAB4iI7MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzO7uiHEADujv//// - ///////////////////////////////3AAAGiIh8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzO7ohwABmP - ////////////////////////////////////iREAZniIjMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzuiI - EAB4f///////////////////////////////////+JmZkWZoiIfMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zO6IhwBo//////////////////////////////////////iImZl2ZoiIzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzuiHAA7////////////////////////////////////////4iZFmZ4iHzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzO6IgQBo/////4j///////////////////////////////////mZFmaIiMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzuiHAA7/////iIiP//////7o//////////////////iI/////4mRZmeIh8zMzMzM - zMzMzMzMzMzMzMzMzMzMzO6IcQBo////+IiIiI/////+7u7u7uiIiI7u7v////iIiI/////5mRZmiIjM - zMzMzMzMzMzMzMzMzMzMzMzMzMzuiHAA7////4iIiIiIj//3d2bu7u7u7u7u7u7//4iIiIiP////+JkW - ZniIfMzMzMzMzMzMzMzMzMzMzMzMzMzO6IcQBo////+IiIiIiI//+ZkAAGZmZmZmZmbv//iIiIiIiP// - //+ZkWZoiIzMzMzMzMzMzMzMzMzMzMzMzMzMzuiFAG7////4iIiIiIj///iZABEREREREBAG7//4iIiI - iIj/////iZFmaIiMzMzMzMzMzMzMzMzMzMzMzMzMzO6IcQBo////+IiIiIiI///4kQARERERERERDo// - +IiIiIiIj/////mZBmeIh8zMzMzMzMzMzMzMzMzMzMzMzMzuiHAG7////4iIiIiIiP//+JFmeHd3d3dx - EW6P//iIiIiIiI/////4mRZmiIfMzMzMzMzMzMzMzMzMzMzMzMzO7ocQBo////+IiIiIiIj///iQZoiO - 7u7u5xFu7//4iIiIiIiI////+JkWZniIzMzMzMzMzMzMzMzMzMzMzMzMzuiHEA7////4iIiIiIiP///5 - kGaIju7u7ucRbu///4iIiIiIiP////95kGZ4iHzMzMzMzMzMzMzMzMzMzMzMzM7ogQBu////+IiIiIiI - j///+RBmiI7u7u7nEW7v//+IiIiIiIiP////iZFmaIh8zMzMzMzMzMzMzMzMzMzMzMzu6HEAaP////iI - iIiIiI////kQZoiHzMzu5xEO6P//iIiIiIiIj////4mRZmiIjMzMzMzMzMzMzMzMzMzMzMzM7ugRBu// - ///4iIiIiIj///+JEGaIh8zM7ucRBu7//4iIiIiIiI/////5kQZniIzMzMzMzMzMzMzMzMzMzMzMzO6I - EAbv////iIiIiIiI////iQBniIzMzO7oERbu///4iIiIiIiP////+JkGZ4iHzMzMzMzMzMzMzMzMzMzM - zMbuhxAGj////4iIiIiIj////3kAaIiMzMzu7nEW7v//+IiIiIiIiP////iZFmaIh8zMzMzMzMzMzMzM - zMzMzMzO7oUQbv////+IiIiIiI////+RBmiIfMzMzu5xFu6P//+IiIiIiIj////4mRZmiIfMzMzMzMzM - zMzMzMzMzMzMzu6BAG7////4iIiIiIj////4kQZoiHzMzM7ucRDu7///iIiIiIiIj////5kQZoiHzMzM - zMzMzMzMzMzMzMzMzM7ocQBu////+IiIiIiI////+JAGeIh8zMzO7nERbu///4iIiIiIiI////95EGaI - h8zMzMzMzMzMzMzMzMzMzMxu6HEA7v////iIiIiIiP////cQBoiIzMzMzu7lEW7v///4iIiIiIiP//// - iRBmeIjMzMzMzMzMzMzMzMzMzMzM7uhxBuj////4iIiIiI/////5EAaIiMzMzMbu5xEO7v//+IiIiIiI - j////4kQZniIzMzMzMzMzMzMzMzMzMzMzO7oEQbv////+IiIiIj/////iQBmiIfMzMzM7ucRBu7///iI - iIiIiIj///+JkGZ4iMzMzMzMzMzMzMzMzMzMzMzu6BEG7/////iIiIiI/////4EAaIiHzMzMzO7nERbu - j///iIiIiIiI////iZBmaIh8zMzMzMzMzMzMzMzMzMzM7ucRBu/////4iIiIj/////+RAGiIjMzMzMzu - 7nEQ7u////iIiIiIiP///4mQBmiIfMzMzMzMzMzMzMzMzMzMzO7nEAbv////+IiIiP/////4EAZ4iHzM - zMzMzu5xEG7v///4iIiIiIj///+JkAZoiHzMzMzMzMzMxmzMzMzMzMzu5xAO7/////+IiI//////+RAG - iIjMzMzMzM7ucRFu7v///4iIiIiI////+ZAGaIh8zMzMzMzMzMZszMzMzMzG7ocQDu//////+I////// - /4EAZoiIzMzMzMzO7ucRBu7////4iIiIiP////mQBmiIfMzMzMzMzMzGbMzMzMzMzu6HEA7v//////// - //////9xAGiIh8zMzMzMzO7nERbu7///+IiIiI/////5kAZoiHzMzMzMzMzMxmzMzMzMzM7uhxAO7/// - ///////////4EABoiIzMzMzMzMzu7nEQbu////+IiIiP////+ZAGaIh8zMzMzMzMzMZszMzMzMzO7oUQ - Du//////////////9xAGiIh8zMzMzMzM7u5xEW7u/////4iI//////mQBmiIfMzMzMzMzMzGTMzMzMzM - zu6HEA7v/////////////4EABoiIzMzMzMzMzM7u5xEG7v/////////////5kAZoiHzMzMzMzMzMxAzM - zMzMzM7uhxEO7/////////////9wAGiIh8zMzMzMzMzO7ucRFu7v////////////+RAGeIh8zMzMzMzM - zMAGzMzMzMzO7ucRDuj////////////4EAB4iIzMzMzMzMzMzO7ucRBu6P///////////4kQBoiIzMzM - zMzMzMxgBszMzMzMxu7nEQbo////////////gQAGiIh8zMzMzMzMzMzu7nERDu7///////////+JEAaI - iMzMzMzMzMzMYADMzMzMzMzu5xEG7v///////////3EAZ4iIzMzMzMzMzMzMzu7nERbu7/////////// - gQBmiIfMzMzMzMzMzAAAbMzMzMzM7ucRBu7///////////gQAGiIh8zMzMzMzMzMzM7u5xEQbu7///// - /////5EAZ4iHzMzMzMzMzMYAAEzMzMzMzO7nERDu7/////////+HAAaIiIzMzMzMzMzMzMzM7u5xEQ7u - 7/////////gQAGiIjMzMzMzMzMzEAAAGzMzMzMzu7nEQbuj////////4cAAHiIh8zMzMzMzMzMzMzO7u - dxEW7uj////////3AAZoiHzMzMzMzMzMYAAABMzMzMzM7u5xEG7u////////hgAAeIiHzMzMzMzMzMzM - zMzO7ucREW7u7///////gQAGiIh8zMzMzMzMzEAAAABszMzMzM7ucREG7uj/////hmAAB4iI7MzMzMzM - zMzMzMzMzu7ucREG7u6P////+AAAB4iIzMzMzMzMzMYAAAAATMzMzMzO7ucREG7u7oiO7mAAAHiIiMzM - zMzMzMzMzMzMzMzu7ucREG7u7o//+HYAAHiIh8zMzMzMzMzEAAAAAAbMzMzMzu7nEREG7u7u5mAAAAeI - iIfMzMzMzMzMzMzMzMzMzu7ucREQbu7u7uYAAAeIiHzMzMzMzMzMYAAAAAAAbMzMzMzu7nEREAZmZgAA - AAF4iI58zMzMzMzMzMzMzMzMzMzu7ncREQZm7mZgAAB4iI7MzMzMzMzMxgAAAAAAAEzMzMzM7u7nEREQ - AAAAABF4iI7uzMzMzMzMzMzMzMzMzMzM7u7ucRERAAAAAAAHiIiMzMzMzMzMzMQAAAAAAAAGzMzMzM7u - 7nERERERERF3iIju7MzMzMzMzMzMzMzMzMzMzM7u7udREREQAAAReIiIfMzMzMzMzMxgAAAAAAAAAGzM - zMzM7u7udRERERV4iI7u7MzMzMzMzMzMzMzMzMzMzMzM7u7u5xEREREReIiO7MzMzMzMzMzGAAAAAAAA - AAAGzMzMzM7u7u53d3eIiO7u7szMzMzMzMzMzMzMzMzMzMzMzM7u7u7nd1F3eIiO7uzMzMzMzMzMYAAA - AAAAAAAAAGzMzMzM7u7u7u7u7u7u7szMzMzMzMzMzMzMzMzMzMzMzMzMzu7u7u6IiI7u7uzMzMzMzMzM - xgAAAAAAAAAAAAAGzMzMzMzu7u7u7u7u5szMzMzMzMzMzMzMzMzMzMzMzMzMzMzO7u7u7u7u7u7MzMzM - zMzMzGAAAAAAAAAAAAAAAEbMzMzMzG7u7u7ubMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM7u7u7u7uzM - zMzMzMzMzGQAAAAAAAAAAAAAAAAAbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzG7u - 7szMzMzMzMzMzMYAAAAAAAAAAAAAAAAAAARszMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAABGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAAAABmzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzGYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARGZmzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZmZEAAAAAAAAAAAAAAAAD////+AAAAAAAAAAD/////////AAAA - AAAAAAAAAP//////+AAAAAAAAAAAAAAf/////+AAAAAAAAAAAAAAB/////+AAAAAAAAAAAAAAAH////+ - AAAAAAAAAAAAAAAAf////AAAAAAAAAAAAAAAAD////AAAAAAAAAAAAAAAAAP///gAAAAAAAAAAAAAAAA - B///wAAAAAAAAAAAAAAAAAP//4AAAAAAAAAAAAAAAAAB//8AAAAAAAAAAAAAAAAAAP/+AAAAAAAAAAAA - AAAAAAB//gAAAAAAAAAAAAAAAAAAf/wAAAAAAAAAAAAAAAAAAD/4AAAAAAAAAAAAAAAAAAAf+AAAAAAA - AAAAAAAAAAAAH/AAAAAAAAAAAAAAAAAAAA/wAAAAAAAAAAAAAAAAAAAP4AAAAAAAAAAAAAAAAAAAB+AA - AAAAAAAAAAAAAAAAAAfAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAAAAA - AAOAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAA - AAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAABAAAAAAAA - AAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAA - AAGAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAA - AAAAAAABgAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAPAAAAAAAAAAAAAAAAAAAADwAAAAAAA - AAAAAAAAAAAAA+AAAAAAAAAAAAAAAAAAAAfgAAAAAAAAAAAAAAAAAAAH8AAAAAAAAAAAAAAAAAAAD/AA - AAAAAAAAAAAAAAAAAA/4AAAAAAAAAAAAAAAAAAAf+AAAAAAAAAAAAAAAAAAAH/wAAAAAAAAAAAAAAAAA - AD/+AAAAAAAAAAAAAAAAAAB//gAAAAAAAAAAAAAAAAAAf/8AAAAAAAAAAAAAAAAAAP//gAAAAAAAAAAA - AAAAAAH//8AAAAAAAAAAAAAAAAAD///gAAAAAAAAAAAAAAAAB///8AAAAAAAAAAAAAAAAA////wAAAAA - AAAAAAAAAAA////+AAAAAAAAAAAAAAAAf////4AAAAAAAAAAAAAAAf/////gAAAAAAAAAAAAAAf///// - +AAAAAAAAAAAAAAf//////8AAAAAAAAAAAAA/////////gAAAAAAAAAAf////w== - - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponShopForm.Designer.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponShopForm.Designer.cs deleted file mode 100644 index 34d46b4..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponShopForm.Designer.cs +++ /dev/null @@ -1,296 +0,0 @@ -namespace TemuKJD.KJDForms.SalesCenterForms -{ - partial class CouponShopForm - { - /// - /// 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(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.dgvProduct = new TemuKJD.UserComponent.DataGridViewEx(); - this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); - this.编辑ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.label1 = new System.Windows.Forms.Label(); - this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colProductId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colProductName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colSales = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colPrice = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colCreateTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colOrderCount = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colShowCount = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colShowPeopleCount = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colClickCount = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colClickPeopleCount = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); - this.splitContainer2.Panel1.SuspendLayout(); - this.splitContainer2.Panel2.SuspendLayout(); - this.splitContainer2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgvProduct)).BeginInit(); - this.contextMenuStrip1.SuspendLayout(); - this.SuspendLayout(); - // - // splitContainer2 - // - this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; - this.splitContainer2.Location = new System.Drawing.Point(0, 0); - this.splitContainer2.Name = "splitContainer2"; - this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; - // - // splitContainer2.Panel1 - // - this.splitContainer2.Panel1.Controls.Add(this.dgvProduct); - this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 4, 4, 0); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Controls.Add(this.label1); - this.splitContainer2.Panel2.Controls.Add(this.statusBar); - this.splitContainer2.Size = new System.Drawing.Size(1201, 634); - this.splitContainer2.SplitterDistance = 604; - this.splitContainer2.TabIndex = 9; - // - // dgvProduct - // - this.dgvProduct.AllowUserToAddRows = false; - this.dgvProduct.AllowUserToDeleteRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - this.dgvProduct.BackgroundColor = System.Drawing.Color.White; - this.dgvProduct.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dgvProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; - this.dgvProduct.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgvProduct.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.colSelect, - this.colProductId, - this.colProductName, - this.colSales, - this.colPrice, - this.colCreateTime, - this.colOrderCount, - this.colShowCount, - this.colShowPeopleCount, - this.colClickCount, - this.colClickPeopleCount, - this.colMessage}); - this.dgvProduct.ContextMenuStrip = this.contextMenuStrip1; - this.dgvProduct.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvProduct.Location = new System.Drawing.Point(4, 4); - this.dgvProduct.Name = "dgvProduct"; - this.dgvProduct.ReadOnly = true; - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvProduct.RowsDefaultCellStyle = dataGridViewCellStyle3; - this.dgvProduct.RowTemplate.Height = 23; - this.dgvProduct.Size = new System.Drawing.Size(1193, 600); - this.dgvProduct.TabIndex = 6; - this.dgvProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvProduct_CellContentClick); - this.dgvProduct.CellMouseDown += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvProduct_CellMouseDown); - this.dgvProduct.CellMouseEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvProduct_CellMouseEnter); - this.dgvProduct.CellMouseUp += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvProduct_CellMouseUp); - // - // contextMenuStrip1 - // - this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.编辑ToolStripMenuItem}); - this.contextMenuStrip1.Name = "contextMenuStrip1"; - this.contextMenuStrip1.Size = new System.Drawing.Size(209, 26); - // - // 编辑ToolStripMenuItem - // - this.编辑ToolStripMenuItem.Name = "编辑ToolStripMenuItem"; - this.编辑ToolStripMenuItem.Size = new System.Drawing.Size(208, 22); - this.编辑ToolStripMenuItem.Text = "选中商品批量设置优惠券"; - this.编辑ToolStripMenuItem.Click += new System.EventHandler(this.编辑ToolStripMenuItem_Click); - // - // label1 - // - this.label1.AutoSize = true; - this.label1.ForeColor = System.Drawing.Color.MidnightBlue; - this.label1.Location = new System.Drawing.Point(656, 2); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(43, 17); - this.label1.TabIndex = 3; - this.label1.Text = "label1"; - // - // 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(1201, 26); - this.statusBar.TabIndex = 2; - // - // colSelect - // - this.colSelect.FillWeight = 50F; - this.colSelect.HeaderText = "选"; - this.colSelect.Name = "colSelect"; - this.colSelect.ReadOnly = true; - this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.colSelect.Width = 41; - // - // colProductId - // - this.colProductId.HeaderText = "商品Id"; - this.colProductId.Name = "colProductId"; - this.colProductId.ReadOnly = true; - this.colProductId.Width = 150; - // - // colProductName - // - this.colProductName.HeaderText = "商品名称"; - this.colProductName.Name = "colProductName"; - this.colProductName.ReadOnly = true; - this.colProductName.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colProductName.Width = 250; - // - // colSales - // - this.colSales.HeaderText = "销量"; - this.colSales.Name = "colSales"; - this.colSales.ReadOnly = true; - this.colSales.Width = 60; - // - // colPrice - // - this.colPrice.HeaderText = "价格"; - this.colPrice.Name = "colPrice"; - this.colPrice.ReadOnly = true; - this.colPrice.Width = 60; - // - // colCreateTime - // - this.colCreateTime.HeaderText = "创建时间"; - this.colCreateTime.Name = "colCreateTime"; - this.colCreateTime.ReadOnly = true; - // - // colOrderCount - // - this.colOrderCount.HeaderText = "成交订单数"; - this.colOrderCount.Name = "colOrderCount"; - this.colOrderCount.ReadOnly = true; - this.colOrderCount.Visible = false; - this.colOrderCount.Width = 90; - // - // colShowCount - // - this.colShowCount.HeaderText = "商品曝光次数"; - this.colShowCount.Name = "colShowCount"; - this.colShowCount.ReadOnly = true; - this.colShowCount.Visible = false; - this.colShowCount.Width = 90; - // - // colShowPeopleCount - // - this.colShowPeopleCount.HeaderText = "商品曝光人数"; - this.colShowPeopleCount.Name = "colShowPeopleCount"; - this.colShowPeopleCount.ReadOnly = true; - this.colShowPeopleCount.Visible = false; - this.colShowPeopleCount.Width = 90; - // - // colClickCount - // - this.colClickCount.HeaderText = "商品点击次数"; - this.colClickCount.Name = "colClickCount"; - this.colClickCount.ReadOnly = true; - this.colClickCount.Visible = false; - this.colClickCount.Width = 90; - // - // colClickPeopleCount - // - this.colClickPeopleCount.HeaderText = "商品点击人数"; - this.colClickPeopleCount.Name = "colClickPeopleCount"; - this.colClickPeopleCount.ReadOnly = true; - this.colClickPeopleCount.Visible = false; - this.colClickPeopleCount.Width = 90; - // - // colMessage - // - this.colMessage.HeaderText = "消息"; - this.colMessage.Name = "colMessage"; - this.colMessage.ReadOnly = true; - this.colMessage.Width = 200; - // - // CouponShopForm - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1201, 634); - this.Controls.Add(this.splitContainer2); - this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Name = "CouponShopForm"; - this.Text = "CouponShopForm"; - this.Load += new System.EventHandler(this.CouponShopForm_Load); - this.splitContainer2.Panel1.ResumeLayout(false); - this.splitContainer2.Panel2.ResumeLayout(false); - this.splitContainer2.Panel2.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); - this.splitContainer2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.dgvProduct)).EndInit(); - this.contextMenuStrip1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.SplitContainer splitContainer2; - private UserComponent.DataGridViewEx dgvProduct; - private System.Windows.Forms.Label label1; - private UserControls.StatusBarUserControl statusBar; - private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; - private System.Windows.Forms.ToolStripMenuItem 编辑ToolStripMenuItem; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colProductId; - private System.Windows.Forms.DataGridViewTextBoxColumn colProductName; - private System.Windows.Forms.DataGridViewTextBoxColumn colSales; - private System.Windows.Forms.DataGridViewTextBoxColumn colPrice; - private System.Windows.Forms.DataGridViewTextBoxColumn colCreateTime; - private System.Windows.Forms.DataGridViewTextBoxColumn colOrderCount; - private System.Windows.Forms.DataGridViewTextBoxColumn colShowCount; - private System.Windows.Forms.DataGridViewTextBoxColumn colShowPeopleCount; - private System.Windows.Forms.DataGridViewTextBoxColumn colClickCount; - private System.Windows.Forms.DataGridViewTextBoxColumn colClickPeopleCount; - private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponShopForm.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponShopForm.cs deleted file mode 100644 index 07146bc..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponShopForm.cs +++ /dev/null @@ -1,518 +0,0 @@ -using AllBase; -using AllBase.Extension; -using AllBase.Helper; -using AllBase.Model.Result; -using TemuKJD.Extension; -using TemuKJD.KJDForms.BaseForms; -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.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; -using Work.BLL.Product; - -namespace TemuKJD.KJDForms.SalesCenterForms -{ - public partial class CouponShopForm : BaseForm - { - private CheckBox chkSelectAll = null; - - ShopLoginInfo shop = null; - public CouponForm couponForm = null; - public bool isGetProductSalesSuccess = false; - public Dictionary dicProductSales = new Dictionary(); - public List productList = new List(); - - public CouponShopForm(ShopLoginInfo _shop) - { - InitializeComponent(); - shop = _shop; - } - - private void CouponShopForm_Load(object sender, EventArgs e) - { - chkSelectAll = dgvProduct.Columns["colSelect"].AddHeaderCheckBox(HorizontalAlignment.Center, 0, 0, null, null, false); - dgvProduct.Columns["colSelect"].HeaderText = ""; - - chkSelectAll.Width = chkSelectAll.Height = 13; - chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged; - } - - private void chkSelectAll_CheckedChanged(object sender, EventArgs e) - { - if (!chkSelectAll.Checked) - { - foreach (DataGridViewRow row in dgvProduct.Rows) - { - row.Cells["colSelect"].Value = false; - } - } - else - { - foreach (DataGridViewRow row in dgvProduct.Rows) - { - row.Cells["colSelect"].Value = true; - } - } - } - - public void GetProduct(decimal priceMin, decimal priceMax, int salesMin, int salesMax, List productName = null, List filterWords = null) - { - if (shop == null) - return; - - ShowVisitorMessage(""); - foreach (DataGridViewRow r in this.dgvProduct.Rows) - { - r.Cells["colSales"].Value = "获取中"; - } - foreach (var p in productList) - { - p.sell_num = null; - } - - List tList = new List(); - - var t1 = Task.Run(() => - { - int page = 0; - int pageSize = 100; - int totalNum = 99999; - while (page < 100) - { - if (couponForm == null || couponForm.cancellationTokenSource.IsCancellationRequested) - break; - - page++; - var html = new ShopProductBLL().GetShopProductListData(shop, 0, page, pageSize); - //测试查找商品详情 - //Work.DouyinApiClass.DouyinApi api = new Work.DouyinApiClass.DouyinApi(shop); - //api.JsonData = new Dictionary(); - //api.JsonData["product_id"] = "3558439046600598747"; - //var detail = api.GetProductDetail(); - - while (!html.Contains("\"code\":10000")) - { - Thread.Sleep(1000); - html = new ShopProductBLL().GetShopProductListData(shop, 0, page, pageSize); - } - totalNum = BaseRegex.GetIntJson(ref html, "total"); - - try - { - JObject jObj = JObject.Parse(html); - var jObjDataStr = jObj["data"]?["data"]?.ToString(); - if (!string.IsNullOrEmpty(jObjDataStr)) - { - var addList = JsonHelper.DeserializeJsonToList(jObjDataStr); - if (addList != null) - { - // 有关键词或商品id的,过滤符合关键词 - if (productName != null && productName.Any()) - addList = addList.Where(p => productName.Any(n => p.name.Contains(n) || p.product_id.ToString().Contains(n))).ToList(); - - if (filterWords != null && filterWords.Any()) - addList = addList.Where(p => !filterWords.Any(f => p.name.Contains(f) || p.product_id.ToString().Contains(f))).ToList(); - - productList.AddRange(addList); - productList = productList.DistinctBy(p => p.product_id).ToList(); - } - foreach (var prod in addList) - { - var row = dgvProduct.Rows.Cast().FirstOrDefault(r => r.Cells["colProductId"].Value.ToString() == prod.product_id.ToString()); - Invoke(new Action(() => - { - if (row == null) - { - dgvProduct.Rows.Add( - false, - prod.product_id, - prod.name, - "获取中", - prod.discount_price / 100, - BaseClass.StampToDateTime((int)prod.create_time)); - } - else - { - row.Cells["colSales"].Value = "获取中"; - row.Cells["colPrice"].Value = prod.discount_price / 100; - row.Cells["colCreateTime"].Value = BaseClass.StampToDateTime((int)prod.create_time); - } - })); - } - } - var totalPage = Math.Ceiling(totalNum / (pageSize * 1M)); - var message = "已获取:" + page + "页,共" + Math.Ceiling(totalNum / (pageSize * 1M)) + "页,商品获取中..."; - Invoke(new Action(() => - { - this.statusBar.lblTaskStatus.Text = message; - this.statusBar.pgbTaskProgress.Value = page; - this.statusBar.pgbTaskProgress.Text = page + "/" + totalPage; - this.statusBar.pgbTaskProgress.Maximum = (int)totalPage; - })); - } - catch (Exception ex) - { - BaseMsgForm.ShowError("获取商品发生错误:" + ex.Message); - } - - if (page * pageSize >= totalNum) - break; - } - }); - tList.Add(t1); - - if (ShopForms.ShopListForm.Instance == null) - ShopForms.ShopListForm.Instance = new ShopForms.ShopListForm(); - ShopForms.ShopListForm.Instance.CheckShopLogin(new string[] { shop.ShopAccount }, false); - - var t2 = Task.Run(() => - { - if (shop.LoginStatus == "登录成功") - couponForm.GetSales(this.shop); - - var rowsTemp = dgvProduct.Rows.Cast().ToList(); - rowsTemp.Reverse(); - foreach (var r in rowsTemp) - { - try - { - if (r.Cells["colPrice"].Value.ParseToDecimal() < priceMin || r.Cells["colPrice"].Value.ParseToDecimal() > priceMax - || r.Cells["colSales"].Value.ParseToDecimal() < salesMin || r.Cells["colSales"].Value.ParseToDecimal() > salesMax - || (productName?.Count > 0 && !productName.Any(n => r.Cells["colProductName"].Value.ToString().Contains(n) || r.Cells["colProductId"].Value.ToString().Contains(n))) - || (filterWords?.Count > 0 && filterWords.Any(f => r.Cells["colProductName"].Value.ToString().Contains(f) || r.Cells["colProductId"].Value.ToString().Contains(f)))) - { - Invoke(new Action(() => - { - dgvProduct.Rows.Remove(r); - })); - } - } - catch (Exception ex) - { - } - } - }); - tList.Add(t2); - t2.Wait(); - - SetSalesCount(); - //SetVisitorCount(); - - productList = productList.Where(p => p.discount_price >= priceMin && p.discount_price <= priceMax && p.sell_num >= salesMin && p.sell_num <= salesMax - && (productName?.Count > 0 == false || productName.Any(n => p.name.Contains(n) || p.product_id.ToString().Contains(n))) - && (filterWords?.Count > 0 == false || !filterWords.Any(f => p.name.Contains(f) || p.product_id.ToString().Contains(f)))).ToList(); - - Invoke(new Action(() => - { - if (couponForm == null || couponForm.cancellationTokenSource.IsCancellationRequested) - { - this.statusBar.lblTaskStatus.Text = "获取中断"; - } - else - { - this.statusBar.lblTaskStatus.Text = "获取完成"; - } - this.statusBar.pgbTaskProgress.Value = 0; - this.statusBar.pgbTaskProgress.Text = 0 + "/" + 0; - this.statusBar.pgbTaskProgress.Maximum = 0; - })); - var errMsg = ""; - if (shop.LoginStatus != "登录成功") - errMsg += " 店铺掉线,请重新登录!"; - if (shop.ApiAuthStatus != "授权成功") - errMsg += " 授权过期,请重新授权!"; - ShowVisitorMessage(errMsg); - } - - public void ShowVisitorMessage(string msg) - { - Invoke(new Action(() => { this.label1.Text = msg; })); - } - - public void SetSalesCount() - { - foreach (var key in dicProductSales.Keys) - { - var row = this.dgvProduct.Rows.Cast().FirstOrDefault(r => r.Cells["colProductId"].Value.ToString() == key); - if (row != null) - { - Invoke(new Action(() => - { - row.Cells["colSales"].Value = dicProductSales[key]; - })); - } - var product = this.productList.Find(p => p.product_id.ToString() == key); - if (product != null) - product.sell_num = dicProductSales[key]; - } - - foreach (DataGridViewRow row in dgvProduct.Rows) - { - if (row.Cells["colSales"].Value.ToString() == "获取中") - { - Invoke(new Action(() => - { - if (isGetProductSalesSuccess) - { - row.Cells["colSales"].Value = 0; - } - else - { - row.Cells["colSales"].Value = "获取失败"; - } - })); - } - } - if (isGetProductSalesSuccess) - { - foreach (var prod in this.productList) - { - if (prod.sell_num == null) - prod.sell_num = 0; - } - } - } - - private void dgvProduct_CellContentClick(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - string headerText = dgvProduct.Columns[e.ColumnIndex].HeaderText; - string columnName = dgvProduct.Columns[e.ColumnIndex].Name; - var row = dgvProduct.Rows[e.RowIndex]; - switch (columnName) - { - case "colSelect": - //row.Cells["colSelect"].Value = !row.Cells["colSelect"].Value.ParseToBool(); - //chkSelectAll.CheckedChanged -= chkSelectAll_CheckedChanged; - //if (dgvProduct.Rows.Cast().All(r => r.Cells["colSelect"].Value.ParseToBool())) - // chkSelectAll.Checked = true; - //else - // chkSelectAll.Checked = false; - //chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged; - break; - } - } - - bool isSelecting = false; - bool isCheck = true; - private void dgvProduct_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - - var columnName = dgvProduct.Columns[e.ColumnIndex].Name; - if (MouseButtons == MouseButtons.Left) - { - if (columnName == "colSelect") - { - dgvProduct.Rows[e.RowIndex].Cells["colSelect"].Value = !dgvProduct.Rows[e.RowIndex].Cells["colSelect"].Value.ParseToBool(); - - isSelecting = true; - isCheck = dgvProduct.Rows[e.RowIndex].Cells["colSelect"].Value.ParseToBool(); - - chkSelectAll.CheckedChanged -= chkSelectAll_CheckedChanged; - if (dgvProduct.Rows.Cast().All(r => r.Cells["colSelect"].Value.ParseToBool())) - chkSelectAll.Checked = true; - else - chkSelectAll.Checked = false; - chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged; - } - } - } - - private void dgvProduct_CellMouseUp(object sender, DataGridViewCellMouseEventArgs e) - { - isSelecting = false; - } - - private void dgvProduct_CellMouseEnter(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - - var row = dgvProduct.Rows[e.RowIndex]; - if (MouseButtons == MouseButtons.Left) - { - var columnName = dgvProduct.Columns[e.ColumnIndex].Name; - if (isSelecting) - { - dgvProduct.Rows[e.RowIndex].Cells["colSelect"].Value = isCheck; - - chkSelectAll.CheckedChanged -= chkSelectAll_CheckedChanged; - if (dgvProduct.Rows.Cast().All(r => r.Cells["colSelect"].Value.ParseToBool())) - chkSelectAll.Checked = true; - else - chkSelectAll.Checked = false; - chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged; - } - } - } - - public string SetCoupon(int periodType, - int favouredType, - long startApplyStamps, - long endApplyStamps, - long startUseStamps, - long endUseStamps, - int validDays, - int totalCount, - int countLimit, - decimal discount, // (折扣券的)折扣 - int threshold, // 满x元 - int credit, // 减x元 - bool ignore, - bool oneProductEachCoupon, - string couponName = "") - { - List rows = this.dgvProduct.Rows.Cast().Where(r => r.Cells["colSelect"].Value?.ParseToBool() == true).ToList(); - var goodsIdList = rows.Select(r => r.Cells["colProductId"].Value?.ToString()).ToList(); - var goodsIds = "\"" + string.Join("\",\"", goodsIdList) + "\""; - if (!oneProductEachCoupon) - { - var goodsIdListTemp = new List(); - goodsIdListTemp.AddRange(goodsIdList); - goodsIdList.Clear(); - int numCount = 0; - goodsIds = ""; - foreach (var goodsId in goodsIdListTemp) - { - numCount++; - goodsIds += "\"" + goodsId + "\","; - if (numCount % 200 == 0 || numCount >= goodsIdListTemp.Count) - { - goodsIdList.Add(goodsIds.Trim(',')); - goodsIds = ""; - } - } - } - if (string.IsNullOrEmpty(couponName)) - couponName = DateTime.Now.ToString("yyMMddHHmm"); - string setResult = ""; - - foreach (var id in goodsIdList) - { - // 指定商品折扣券 - //string body = @"{""support_type"":4,""shop_omp_activity_id"":"""",""channel"":3,""coupon_name"":""优惠123"",""period_type"":2,""ignore"":false,""favoured_type"":41,""total_amount"":13,""max_apply_times"":1,""valid_period"":""3"",""discount"":95,""goods"":[""3552987839555832450"",""3552273829277663255"",""3552271209347574338""],""start_apply_time"":1654531200,""end_apply_time"":1654617599,""jump_type"":4}"; - //string body = @"{""support_type"":4,""shop_omp_activity_id"":""7086106181462163749"",""shop_omp_activity_type"":8,""channel"":3,""coupon_name"":""111"",""period_type"":1,""ignore"":false,""favoured_type"":41,""total_amount"":1,""max_apply_times"":1,""goods"":[""3554315317469660534"",""3553784680702692298""],""discount"":90,""start_time"":1655395200,""expire_time"":1655481599,""start_apply_time"":1655395200,""end_apply_time"":1655481599,""jump_type"":4}"; - // 指定商品直减券 - //string body = @"{""support_type"":4,""shop_omp_activity_id"":""7086106181462163749"",""shop_omp_activity_type"":8,""channel"":3,""coupon_name"":""2131"",""period_type"":1,""ignore"":false,""favoured_type"":42,""total_amount"":1,""max_apply_times"":1,""goods"":[""3557115286081690584""],""credit"":200,""start_time"":1657123200,""expire_time"":1657209599,""start_apply_time"":1657123200,""end_apply_time"":1657209599,""jump_type"":2,""jump_product_id"":""3557115286081690584""}"; - //string body = @"{""support_type"":4,""shop_omp_activity_id"":""7086106181462163749"",""shop_omp_activity_type"":8,""channel"":3,""coupon_name"":""1223"",""period_type"":1,""ignore"":false,""favoured_type"":42,""total_amount"":1,""max_apply_times"":1,""goods"":[""3554511661782200678""],""credit"":200,""start_time"":1657123200,""expire_time"":1657209599,""start_apply_time"":1657123200,""end_apply_time"":1657209599,""jump_type"":2,""jump_product_id"":""3554511661782200678""}"; - //string body = @"{""support_type"":4,""shop_omp_activity_id"":""7086106181462163749"",""shop_omp_activity_type"":8,""channel"":3,""coupon_name"":""2311"",""period_type"":1,""ignore"":false,""favoured_type"":42,""total_amount"":1,""max_apply_times"":1,""goods"":[""3554333221040862310"",""3554511661782200678""],""credit"":200,""start_time"":1657123200,""expire_time"":1657209599,""start_apply_time"":1657123200,""end_apply_time"":1657209599,""jump_type"":4}"; - // 指定商品满减券 - //string body = @"{""support_type"":4,""shop_omp_activity_id"":""7086106181462163749"",""shop_omp_activity_type"":8,""channel"":3,""coupon_name"":""1ad"",""period_type"":1,""ignore"":false,""favoured_type"":43,""total_amount"":1,""max_apply_times"":1,""goods"":[""3556136493124815095"",""3558423829472753852""],""threshold"":9900,""credit"":1100,""start_time"":1657123200,""expire_time"":1657209599,""start_apply_time"":1657123200,""end_apply_time"":1657209599,""jump_type"":4}"; - - string body = "{\"support_type\":4," + - "\"shop_omp_activity_id\":\"\"," + - "\"channel\":3," + - "\"coupon_name\":\"" + couponName + "\"," + // 优惠券名称 - "\"period_type\":" + periodType + "," + // 使用时间 1=限制日期范围 2=限制有效天数 - "\"ignore\":" + ignore.ToString().ToLower() + "," + // 价格风险预警 true=不计入 false=计入 - "\"favoured_type\":" + favouredType + "," + // 优惠内容 41=指定商品折扣券 42=指定商品直减券 43=指定商品满减券 - "\"total_amount\":" + totalCount + "," + // 发放量 - "\"max_apply_times\":" + countLimit + ","; // 每人限领 - if (periodType == 2) - body += "\"valid_period\":\"" + validDays + "\","; // 有效期天数 - if (periodType == 1) - { - body += "\"start_time\":" + startUseStamps + ","; // 开始日期 - body += "\"expire_time\":" + endUseStamps + ","; // 结束日期 - } - if (favouredType == 41) - { - body += "\"discount\":" + (int)(10 * discount) + ","; // 折扣 - } - else if (favouredType == 42) - { - body += "\"credit\":" + 100 * credit + ","; // 减x元 单位分 - } - else if (favouredType == 43) - { - body += "\"threshold\":" + 100 * threshold + ","; // 满x元 单位分 - body += "\"credit\":" + 100 * credit + ","; // 减x元 单位分 - } - body += "\"goods\":[" + id + "]," + // 商品编号 - "\"start_apply_time\":" + startApplyStamps + "," + // 领取开始时间 - "\"end_apply_time\":" + endApplyStamps + "," + // 领取结束时间 - "\"jump_type\":4}"; - - string url = "https://fxg.jinritemai.com/marketing/coupons/v1/check?_bid=ecom_market_shop&appid=1&_=" + BaseClass.DateTimeToTimestampSeconds(DateTime.Now); - string referer = "https://fxg.jinritemai.com/market/center/coupon/detail?type=4"; - - CommonSimRequest simRequest = new CommonSimRequest(); - simRequest.Accept = "application/json, text/plain, */*"; - simRequest.ContentType = "application/json"; - - var result = simRequest.Request_Post(url, referer, new Dictionary(), shop.Cookies, body); - if (!result.Contains("成功") && !result.Contains("Gateway Timeout")) - { - foreach (DataGridViewRow row in rows) - { - if (id.Contains(row.Cells["colProductId"].Value.ToString())) - Invoke(new Action(() => { row.Cells["colMessage"].Value = "优惠券 " + couponName + " 规则校验失败,无法设置。"; })); - } - setResult += id + "|error^"; - continue; - } - - if ("18565722666|13928836672,18565722666,13928836672,18937517772,18135637272,18888888888".Contains(BaseClass.UserName)) - Thread.Sleep(Randomx.GetId(10, 20)); - else - Thread.Sleep(Randomx.GetId(100, 500)); - url = "https://fxg.jinritemai.com/marketing/coupons/v1/shopcoupons?_bid=ecom_market_shop&appid=1&_=" + BaseClass.DateTimeToTimestampSeconds(DateTime.Now); - result = simRequest.Request_Post(url, referer, new Dictionary(), shop.Cookies, body); - if (!result.Contains("成功")) - { - var msg = BaseRegex.GetStringJson(ref result, "msg"); - foreach (DataGridViewRow row in rows) - { - if (id.Contains(row.Cells["colProductId"].Value.ToString())) - Invoke(new Action(() => { row.Cells["colMessage"].Value = "优惠券 " + couponName + " 设置失败。" + msg; })); - } - setResult += id + "|error^"; - continue; - } - foreach (DataGridViewRow row in rows) - { - if (id.Contains(row.Cells["colProductId"].Value.ToString())) - Invoke(new Action(() => { row.Cells["colMessage"].Value = "优惠券 " + couponName + " 设置成功。"; })); - } - setResult += id + "|success^"; - - if (goodsIdList.Count > 1) - { - if ("18565722666|13928836672,18565722666,13928836672,18937517772,18135637272,18888888888".Contains(BaseClass.UserName)) - Thread.Sleep(Randomx.GetId(50, 150)); - else - Thread.Sleep(Randomx.GetId(200, 700)); - } - } - return setResult; - } - - private void 编辑ToolStripMenuItem_Click(object sender, EventArgs e) - { - List rows = this.dgvProduct.Rows.Cast().Where(r => r.Cells["colSelect"].Value?.ParseToBool() == true).ToList(); - var goodsIdList = rows.Select(r => r.Cells["colProductId"].Value?.ToString()).ToList(); - var goodsIds = "\"" + string.Join("\",\"", goodsIdList) + "\""; - - CouponMulitAddForm form = new CouponMulitAddForm(); - form.couponShopForm = this; - form.Show(); - } - - public void ClearData() - { - this.dgvProduct.Rows.Clear(); - this.productList.Clear(); - } - } -} diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponShopForm.resx b/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponShopForm.resx deleted file mode 100644 index 8ba20b6..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponShopForm.resx +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - 17, 17 - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/DouProductProPromotionListSkuInfoForm.Designer.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/DouProductProPromotionListSkuInfoForm.Designer.cs deleted file mode 100644 index 189e7c3..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/DouProductProPromotionListSkuInfoForm.Designer.cs +++ /dev/null @@ -1,293 +0,0 @@ - -namespace TemuKJD.KJDForms.SalesCenterForms -{ - partial class DouProductProPromotionListSkuInfoForm - { - /// - /// 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.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colSkuId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colSku = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colOldPrice = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colSetPrice = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colNowStock = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colActiveStock = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colLimited = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.btnSave = new DevComponents.DotNetBar.PanelEx(); - this.panel6 = new System.Windows.Forms.Panel(); - this.cmbLimit = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.lblLimit = new System.Windows.Forms.Label(); - this.panel5 = new System.Windows.Forms.Panel(); - this.txtStock = new System.Windows.Forms.TextBox(); - this.lblStock = new System.Windows.Forms.Label(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); - this.splitContainer2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - this.panel6.SuspendLayout(); - this.panel5.SuspendLayout(); - this.SuspendLayout(); - // - // splitContainer2 - // - this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; - this.splitContainer2.Location = new System.Drawing.Point(0, 0); - this.splitContainer2.Name = "splitContainer2"; - this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; - // - // splitContainer2.Panel1 - // - this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.splitContainer2.Size = new System.Drawing.Size(1084, 521); - this.splitContainer2.SplitterDistance = 492; - this.splitContainer2.TabIndex = 10; - // - // colSelect - // - this.colSelect.FillWeight = 50F; - this.colSelect.HeaderText = "选择"; - this.colSelect.Name = "colSelect"; - this.colSelect.ReadOnly = true; - this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.colSelect.Width = 45; - // - // colSkuId - // - this.colSkuId.HeaderText = "SkuId"; - this.colSkuId.Name = "colSkuId"; - this.colSkuId.ReadOnly = true; - this.colSkuId.Visible = false; - this.colSkuId.Width = 150; - // - // colSku - // - this.colSku.HeaderText = "SKU"; - this.colSku.Name = "colSku"; - this.colSku.ReadOnly = true; - this.colSku.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colSku.Width = 300; - // - // colOldPrice - // - this.colOldPrice.HeaderText = "原价"; - this.colOldPrice.Name = "colOldPrice"; - this.colOldPrice.ReadOnly = true; - this.colOldPrice.Width = 90; - // - // colSetPrice - // - this.colSetPrice.HeaderText = "打折"; - this.colSetPrice.Name = "colSetPrice"; - this.colSetPrice.ReadOnly = true; - this.colSetPrice.Width = 80; - // - // colNowStock - // - this.colNowStock.HeaderText = "当前库存"; - this.colNowStock.Name = "colNowStock"; - this.colNowStock.ReadOnly = true; - this.colNowStock.Width = 90; - // - // colActiveStock - // - this.colActiveStock.HeaderText = "活动库存"; - this.colActiveStock.Name = "colActiveStock"; - this.colActiveStock.ReadOnly = true; - this.colActiveStock.Width = 80; - // - // colLimited - // - this.colLimited.HeaderText = "每人限购"; - this.colLimited.Name = "colLimited"; - this.colLimited.ReadOnly = true; - this.colLimited.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colLimited.Width = 80; - // - // colMessage - // - this.colMessage.HeaderText = "消息提示"; - this.colMessage.Name = "colMessage"; - this.colMessage.ReadOnly = true; - this.colMessage.Width = 200; - // - // 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.btnSave); - this.splitContainer1.Panel1.Controls.Add(this.panel6); - this.splitContainer1.Panel1.Controls.Add(this.lblLimit); - this.splitContainer1.Panel1.Controls.Add(this.panel5); - this.splitContainer1.Panel1.Controls.Add(this.lblStock); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.splitContainer2); - this.splitContainer1.Size = new System.Drawing.Size(1084, 561); - this.splitContainer1.SplitterDistance = 36; - this.splitContainer1.TabIndex = 12; - // - // btnSave - // - this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); - this.btnSave.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnSave.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnSave.DisabledBackColor = System.Drawing.Color.Empty; - this.btnSave.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSave.Location = new System.Drawing.Point(654, 7); - this.btnSave.Name = "btnSave"; - this.btnSave.Size = new System.Drawing.Size(80, 23); - this.btnSave.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnSave.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSave.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSave.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnSave.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnSave.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnSave.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnSave.Style.GradientAngle = 90; - this.btnSave.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnSave.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSave.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSave.TabIndex = 561; - this.btnSave.Text = "保存"; - this.btnSave.Click += new System.EventHandler(this.btnSave_Click); - // - // panel6 - // - this.panel6.Controls.Add(this.cmbLimit); - this.panel6.Location = new System.Drawing.Point(476, 6); - this.panel6.Name = "panel6"; - this.panel6.Size = new System.Drawing.Size(60, 24); - this.panel6.TabIndex = 547; - // - // cmbLimit - // - this.cmbLimit.DisplayMember = "Text"; - this.cmbLimit.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbLimit.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbLimit.FormattingEnabled = true; - this.cmbLimit.ItemHeight = 18; - this.cmbLimit.Location = new System.Drawing.Point(0, 0); - this.cmbLimit.Name = "cmbLimit"; - this.cmbLimit.Size = new System.Drawing.Size(57, 24); - this.cmbLimit.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbLimit.TabIndex = 520; - // - // lblLimit - // - this.lblLimit.AutoSize = true; - this.lblLimit.Location = new System.Drawing.Point(421, 13); - this.lblLimit.Name = "lblLimit"; - this.lblLimit.Size = new System.Drawing.Size(53, 12); - this.lblLimit.TabIndex = 546; - this.lblLimit.Text = "每人限购"; - // - // panel5 - // - this.panel5.Controls.Add(this.txtStock); - this.panel5.Location = new System.Drawing.Point(322, 8); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(82, 21); - this.panel5.TabIndex = 543; - // - // txtStock - // - this.txtStock.Location = new System.Drawing.Point(0, 0); - this.txtStock.Name = "txtStock"; - this.txtStock.Size = new System.Drawing.Size(80, 21); - this.txtStock.TabIndex = 481; - // - // lblStock - // - this.lblStock.AutoSize = true; - this.lblStock.Location = new System.Drawing.Point(263, 13); - this.lblStock.Name = "lblStock"; - this.lblStock.Size = new System.Drawing.Size(53, 12); - this.lblStock.TabIndex = 542; - this.lblStock.Text = "活动库存"; - // - // DouProductProPromotionListSkuInfoForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1084, 561); - this.Controls.Add(this.splitContainer1); - this.MaximizeBox = false; - this.MinimizeBox = false; - this.Name = "DouProductProPromotionListSkuInfoForm"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "设置单个SKU"; - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); - this.splitContainer2.ResumeLayout(false); - this.splitContainer1.Panel1.ResumeLayout(false); - this.splitContainer1.Panel1.PerformLayout(); - this.splitContainer1.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); - this.splitContainer1.ResumeLayout(false); - this.panel6.ResumeLayout(false); - this.panel5.ResumeLayout(false); - this.panel5.PerformLayout(); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.SplitContainer splitContainer2; - private System.Windows.Forms.SplitContainer splitContainer1; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.TextBox txtStock; - private System.Windows.Forms.Label lblStock; - private System.Windows.Forms.Panel panel6; - private DevComponents.DotNetBar.Controls.ComboBoxEx cmbLimit; - private System.Windows.Forms.Label lblLimit; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colSkuId; - private System.Windows.Forms.DataGridViewTextBoxColumn colSku; - private System.Windows.Forms.DataGridViewTextBoxColumn colOldPrice; - private System.Windows.Forms.DataGridViewTextBoxColumn colSetPrice; - private System.Windows.Forms.DataGridViewTextBoxColumn colNowStock; - private System.Windows.Forms.DataGridViewTextBoxColumn colActiveStock; - private System.Windows.Forms.DataGridViewTextBoxColumn colLimited; - private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; - private DevComponents.DotNetBar.PanelEx btnSave; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/DouProductProPromotionListSkuInfoForm.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/DouProductProPromotionListSkuInfoForm.cs deleted file mode 100644 index 1d0ce36..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/DouProductProPromotionListSkuInfoForm.cs +++ /dev/null @@ -1,27 +0,0 @@ -using AllBase; -using AllBase.Model.Result; -using TemuKJD.KJDForms.BaseForms; -using NaiBa.Util.Extension; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Windows.Forms; - -namespace TemuKJD.KJDForms.SalesCenterForms -{ - public partial class DouProductProPromotionListSkuInfoForm : BaseForm - { - public List skuList = null; - private List strList = new List(); - - public DouProductProPromotionListSkuInfoForm(string data, string shop_stype = "3", string setPrice = "95", int StockNum = 1, string limited = "1") - { - InitializeComponent(); - } - - private void btnSave_Click(object sender, EventArgs e) - { - this.DialogResult = DialogResult.OK; - } - } -} diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/DouProductProPromotionListSkuInfoForm.resx b/TEMUKJD/KJDForms/SalesCenterForms/Old/DouProductProPromotionListSkuInfoForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/DouProductProPromotionListSkuInfoForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/DouProductPromotionListSkuInfoEditForm.Designer.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/DouProductPromotionListSkuInfoEditForm.Designer.cs deleted file mode 100644 index b973dea..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/DouProductPromotionListSkuInfoEditForm.Designer.cs +++ /dev/null @@ -1,454 +0,0 @@ - -namespace TemuKJD.KJDForms.SalesCenterForms -{ - partial class DouProductPromotionListSkuInfoEditForm - { - /// - /// 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() - { - 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(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.btnSave = new DevComponents.DotNetBar.PanelEx(); - this.btnFill = new DevComponents.DotNetBar.PanelEx(); - this.panel6 = new System.Windows.Forms.Panel(); - this.cmbLimit = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.lblLimit = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.panel1 = new System.Windows.Forms.Panel(); - this.txtSetPrice = new System.Windows.Forms.TextBox(); - this.panel5 = new System.Windows.Forms.Panel(); - this.txtStock = new System.Windows.Forms.TextBox(); - this.lblStock = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.btnDelete = new DevComponents.DotNetBar.PanelEx(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.dgvActiveSku = new TemuKJD.UserComponent.DataGridViewEx(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colSkuId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colSku = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colOldPrice = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colSetPrice = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colNowStock = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colActiveStock = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colLeftStock = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colLimited = 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(); - this.splitContainer1.SuspendLayout(); - this.panel6.SuspendLayout(); - this.panel1.SuspendLayout(); - this.panel5.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); - this.splitContainer2.Panel1.SuspendLayout(); - this.splitContainer2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgvActiveSku)).BeginInit(); - 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.btnSave); - this.splitContainer1.Panel1.Controls.Add(this.btnFill); - this.splitContainer1.Panel1.Controls.Add(this.panel6); - this.splitContainer1.Panel1.Controls.Add(this.lblLimit); - this.splitContainer1.Panel1.Controls.Add(this.label3); - this.splitContainer1.Panel1.Controls.Add(this.panel1); - this.splitContainer1.Panel1.Controls.Add(this.panel5); - this.splitContainer1.Panel1.Controls.Add(this.lblStock); - this.splitContainer1.Panel1.Controls.Add(this.label2); - this.splitContainer1.Panel1.Controls.Add(this.btnDelete); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.splitContainer2); - this.splitContainer1.Size = new System.Drawing.Size(1084, 561); - this.splitContainer1.SplitterDistance = 36; - this.splitContainer1.TabIndex = 13; - // - // btnSave - // - this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); - this.btnSave.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnSave.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnSave.DisabledBackColor = System.Drawing.Color.Empty; - this.btnSave.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSave.Location = new System.Drawing.Point(654, 7); - this.btnSave.Name = "btnSave"; - this.btnSave.Size = new System.Drawing.Size(80, 23); - this.btnSave.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnSave.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSave.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSave.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnSave.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnSave.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnSave.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnSave.Style.GradientAngle = 90; - this.btnSave.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnSave.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSave.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSave.TabIndex = 561; - this.btnSave.Text = "保存"; - this.btnSave.Click += new System.EventHandler(this.btnSave_Click); - // - // btnFill - // - this.btnFill.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); - this.btnFill.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnFill.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnFill.DisabledBackColor = System.Drawing.Color.Empty; - this.btnFill.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnFill.Location = new System.Drawing.Point(557, 7); - this.btnFill.Name = "btnFill"; - this.btnFill.Size = new System.Drawing.Size(80, 23); - this.btnFill.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnFill.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnFill.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnFill.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnFill.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnFill.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnFill.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnFill.Style.GradientAngle = 90; - this.btnFill.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnFill.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnFill.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnFill.TabIndex = 551; - this.btnFill.Text = "批量填充"; - this.btnFill.Click += new System.EventHandler(this.btnFill_Click); - // - // panel6 - // - this.panel6.Controls.Add(this.cmbLimit); - this.panel6.Location = new System.Drawing.Point(476, 6); - this.panel6.Name = "panel6"; - this.panel6.Size = new System.Drawing.Size(60, 24); - this.panel6.TabIndex = 547; - // - // cmbLimit - // - this.cmbLimit.DisplayMember = "Text"; - this.cmbLimit.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbLimit.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbLimit.FormattingEnabled = true; - this.cmbLimit.ItemHeight = 18; - this.cmbLimit.Location = new System.Drawing.Point(0, 0); - this.cmbLimit.Name = "cmbLimit"; - this.cmbLimit.Size = new System.Drawing.Size(57, 24); - this.cmbLimit.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbLimit.TabIndex = 520; - // - // lblLimit - // - this.lblLimit.AutoSize = true; - this.lblLimit.Location = new System.Drawing.Point(421, 13); - this.lblLimit.Name = "lblLimit"; - this.lblLimit.Size = new System.Drawing.Size(53, 12); - this.lblLimit.TabIndex = 546; - this.lblLimit.Text = "每人限购"; - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(103, 13); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(29, 12); - this.label3.TabIndex = 545; - this.label3.Text = "优惠"; - // - // panel1 - // - this.panel1.Controls.Add(this.txtSetPrice); - this.panel1.Location = new System.Drawing.Point(138, 8); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(83, 21); - this.panel1.TabIndex = 544; - // - // txtSetPrice - // - this.txtSetPrice.Location = new System.Drawing.Point(0, 0); - this.txtSetPrice.Name = "txtSetPrice"; - this.txtSetPrice.Size = new System.Drawing.Size(83, 21); - this.txtSetPrice.TabIndex = 0; - // - // panel5 - // - this.panel5.Controls.Add(this.txtStock); - this.panel5.Location = new System.Drawing.Point(322, 8); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(82, 21); - this.panel5.TabIndex = 543; - // - // txtStock - // - this.txtStock.Location = new System.Drawing.Point(0, 0); - this.txtStock.Name = "txtStock"; - this.txtStock.Size = new System.Drawing.Size(80, 21); - this.txtStock.TabIndex = 481; - // - // lblStock - // - this.lblStock.AutoSize = true; - this.lblStock.Location = new System.Drawing.Point(263, 13); - this.lblStock.Name = "lblStock"; - this.lblStock.Size = new System.Drawing.Size(53, 12); - this.lblStock.TabIndex = 542; - this.lblStock.Text = "追加库存"; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(226, 13); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(17, 12); - this.label2.TabIndex = 541; - this.label2.Text = "折"; - // - // btnDelete - // - this.btnDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); - this.btnDelete.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnDelete.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnDelete.DisabledBackColor = System.Drawing.Color.Empty; - this.btnDelete.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnDelete.Location = new System.Drawing.Point(902, 7); - this.btnDelete.Name = "btnDelete"; - this.btnDelete.Size = new System.Drawing.Size(90, 23); - this.btnDelete.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnDelete.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnDelete.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnDelete.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnDelete.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnDelete.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnDelete.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnDelete.Style.GradientAngle = 90; - this.btnDelete.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnDelete.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnDelete.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnDelete.TabIndex = 536; - this.btnDelete.Text = "删除"; - this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click); - // - // splitContainer2 - // - this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; - this.splitContainer2.Location = new System.Drawing.Point(0, 0); - this.splitContainer2.Name = "splitContainer2"; - this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; - // - // splitContainer2.Panel1 - // - this.splitContainer2.Panel1.Controls.Add(this.dgvActiveSku); - this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.splitContainer2.Size = new System.Drawing.Size(1084, 521); - this.splitContainer2.SplitterDistance = 492; - this.splitContainer2.TabIndex = 10; - // - // dgvActiveSku - // - this.dgvActiveSku.AllowUserToAddRows = false; - this.dgvActiveSku.AllowUserToDeleteRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvActiveSku.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - this.dgvActiveSku.BackgroundColor = System.Drawing.Color.White; - this.dgvActiveSku.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.dgvActiveSku.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; - this.dgvActiveSku.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgvActiveSku.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.colSelect, - this.colSkuId, - this.colSku, - this.colOldPrice, - this.colSetPrice, - this.colNowStock, - this.colActiveStock, - this.colLeftStock, - this.colLimited, - this.colMessage}); - this.dgvActiveSku.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvActiveSku.Location = new System.Drawing.Point(4, 0); - this.dgvActiveSku.Name = "dgvActiveSku"; - this.dgvActiveSku.ReadOnly = true; - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvActiveSku.RowsDefaultCellStyle = dataGridViewCellStyle3; - this.dgvActiveSku.RowTemplate.Height = 23; - this.dgvActiveSku.Size = new System.Drawing.Size(1076, 492); - this.dgvActiveSku.TabIndex = 6; - this.dgvActiveSku.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvActiveSku_CellContentClick); - // - // colSelect - // - this.colSelect.FillWeight = 50F; - this.colSelect.HeaderText = "选择"; - this.colSelect.Name = "colSelect"; - this.colSelect.ReadOnly = true; - this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.colSelect.Width = 45; - // - // colSkuId - // - this.colSkuId.HeaderText = "SkuId"; - this.colSkuId.Name = "colSkuId"; - this.colSkuId.ReadOnly = true; - this.colSkuId.Visible = false; - this.colSkuId.Width = 150; - // - // colSku - // - this.colSku.HeaderText = "SKU"; - this.colSku.Name = "colSku"; - this.colSku.ReadOnly = true; - this.colSku.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colSku.Width = 300; - // - // colOldPrice - // - this.colOldPrice.HeaderText = "原价"; - this.colOldPrice.Name = "colOldPrice"; - this.colOldPrice.ReadOnly = true; - this.colOldPrice.Width = 75; - // - // colSetPrice - // - this.colSetPrice.HeaderText = "打折"; - this.colSetPrice.Name = "colSetPrice"; - this.colSetPrice.ReadOnly = true; - this.colSetPrice.Width = 80; - // - // colNowStock - // - this.colNowStock.HeaderText = "当前库存"; - this.colNowStock.Name = "colNowStock"; - this.colNowStock.ReadOnly = true; - this.colNowStock.Width = 75; - // - // colActiveStock - // - this.colActiveStock.HeaderText = "活动库存"; - this.colActiveStock.Name = "colActiveStock"; - this.colActiveStock.ReadOnly = true; - this.colActiveStock.Width = 80; - // - // colLeftStock - // - this.colLeftStock.HeaderText = "活动剩余库存"; - this.colLeftStock.Name = "colLeftStock"; - this.colLeftStock.ReadOnly = true; - this.colLeftStock.Width = 90; - // - // colLimited - // - this.colLimited.HeaderText = "每人限购"; - this.colLimited.Name = "colLimited"; - this.colLimited.ReadOnly = true; - this.colLimited.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colLimited.Width = 80; - // - // colMessage - // - this.colMessage.HeaderText = "消息提示"; - this.colMessage.Name = "colMessage"; - this.colMessage.ReadOnly = true; - this.colMessage.Width = 150; - // - // DouProductPromotionListSkuInfoEditForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1084, 561); - this.Controls.Add(this.splitContainer1); - this.MaximizeBox = false; - this.MinimizeBox = false; - this.Name = "DouProductPromotionListSkuInfoEditForm"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "活动编辑"; - this.splitContainer1.Panel1.ResumeLayout(false); - this.splitContainer1.Panel1.PerformLayout(); - this.splitContainer1.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); - this.splitContainer1.ResumeLayout(false); - this.panel6.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.panel1.PerformLayout(); - this.panel5.ResumeLayout(false); - this.panel5.PerformLayout(); - this.splitContainer2.Panel1.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); - this.splitContainer2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.dgvActiveSku)).EndInit(); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.SplitContainer splitContainer1; - private DevComponents.DotNetBar.PanelEx btnSave; - private DevComponents.DotNetBar.PanelEx btnFill; - private System.Windows.Forms.Panel panel6; - private DevComponents.DotNetBar.Controls.ComboBoxEx cmbLimit; - private System.Windows.Forms.Label lblLimit; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.TextBox txtSetPrice; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.TextBox txtStock; - private System.Windows.Forms.Label lblStock; - private System.Windows.Forms.Label label2; - private DevComponents.DotNetBar.PanelEx btnDelete; - private System.Windows.Forms.SplitContainer splitContainer2; - private UserComponent.DataGridViewEx dgvActiveSku; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colSkuId; - private System.Windows.Forms.DataGridViewTextBoxColumn colSku; - private System.Windows.Forms.DataGridViewTextBoxColumn colOldPrice; - private System.Windows.Forms.DataGridViewTextBoxColumn colSetPrice; - private System.Windows.Forms.DataGridViewTextBoxColumn colNowStock; - private System.Windows.Forms.DataGridViewTextBoxColumn colActiveStock; - private System.Windows.Forms.DataGridViewTextBoxColumn colLeftStock; - private System.Windows.Forms.DataGridViewTextBoxColumn colLimited; - private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/DouProductPromotionListSkuInfoEditForm.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/DouProductPromotionListSkuInfoEditForm.cs deleted file mode 100644 index 44a7818..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/DouProductPromotionListSkuInfoEditForm.cs +++ /dev/null @@ -1,315 +0,0 @@ -using TemuKJD.KJDForms.BaseForms; -using NaiBa.Util.Extension; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Windows.Forms; - -namespace TemuKJD.KJDForms.SalesCenterForms -{ - public partial class DouProductPromotionListSkuInfoEditForm : BaseForm - { - public List skuList = null; - private List strList = new List(); - private TextBox textBox = null; - private ComboBox comboBox = null; - - public DouProductPromotionListSkuInfoEditForm(Promotion_Goods goods, string shop_stype) - { - InitializeComponent(); - - if (shop_stype == "3") - { - this.dgvActiveSku.Columns["colSetPrice"].HeaderText = "打折"; - this.label2.Text = "折"; - } - else if (shop_stype == "2") - { - this.dgvActiveSku.Columns["colSetPrice"].HeaderText = "直降"; - this.label2.Text = "元"; - } - else if (shop_stype == "1") - { - this.dgvActiveSku.Columns["colSetPrice"].HeaderText = "一口价"; - this.label2.Text = "元"; - } - - this.txtSetPrice.Text = ""; - this.txtStock.Text = ""; - //设置限购数 - for (int x = 1; x <= 20; x++) - { - cmbLimit.Items.Add(x); - if (x == goods.promotion_skus[0].user_limit.ParseToInt()) - cmbLimit.SelectedIndex = x - 1; - } - - foreach (var sku in goods.promotion_skus) - { - if (shop_stype == "3") - this.dgvActiveSku.Rows.Add(false, sku.id, sku.specification, sku.origin_price.ParseToDecimal() / 100, sku.shop_svalue.ParseToDecimal() / 10, sku.stock, sku.camp_stock_num, sku.camp_left_stock_num, sku.user_limit); - else - this.dgvActiveSku.Rows.Add(false, sku.id, sku.specification, sku.origin_price.ParseToDecimal() / 100, sku.shop_svalue.ParseToDecimal() / 100, sku.stock, sku.camp_stock_num, sku.camp_left_stock_num, sku.user_limit); - } - dgvActiveSku.Sort(dgvActiveSku.Columns["colSkuId"], System.ComponentModel.ListSortDirection.Descending); - skuList = goods.promotion_skus; - } - - private void dgvActiveSku_CellContentClick(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - string headerText = dgvActiveSku.Columns[e.ColumnIndex].HeaderText; - string columnName = dgvActiveSku.Columns[e.ColumnIndex].Name; - long SkuId = dgvActiveSku.Rows[e.RowIndex].Cells["colSkuId"].Value.ParseToLong(); - var row = dgvActiveSku.Rows[e.RowIndex]; - switch (columnName) - { - case "colSelect": - row.Cells["colSelect"].Value = !row.Cells["colSelect"].Value.ParseToBool(); - if (dgvActiveSku.Rows[e.RowIndex].Cells["colSelect"].Value.ParseToBool()) - { - if (strList.Any(p => p == SkuId.ToString())) - strList.RemoveAll(p => p == SkuId.ToString()); - strList.Add(SkuId.ToString()); - } - else - strList.Remove(SkuId.ToString()); - break; - case "colSetPrice": - getTextBox(); - textBox.Visible = true; - textBox.Location = dgvActiveSku.GetCellDisplayRectangle(dgvActiveSku.CurrentCell.ColumnIndex, dgvActiveSku.CurrentCell.RowIndex, true).Location; - textBox.Location.Offset(0, 1); - textBox.Width = dgvActiveSku.GetCellDisplayRectangle(dgvActiveSku.CurrentCell.ColumnIndex, dgvActiveSku.CurrentCell.RowIndex, true).Width - 2; - textBox.Height = dgvActiveSku.GetCellDisplayRectangle(dgvActiveSku.CurrentCell.ColumnIndex, dgvActiveSku.CurrentCell.RowIndex, true).Height - 2; - textBox.Text = row.Cells["colSetPrice"].Value.ToString(); - textBox.Focus(); - textBox.LostFocus += new EventHandler((obj, ex) => { - var setPriceRes = (obj as TextBox).Text.Trim(); - if(setPriceRes != "") - { - var SetPrice = returnPrice(setPriceRes); - Promotion_Skus skuInfo = skuList.Where(x => x.id == SkuId.ToString()).FirstOrDefault(); - if (skuInfo != null) - skuInfo.shop_svalue = SetPrice.ParseToInt(); - row.Cells["colSetPrice"].Value = setPriceRes; - } - if (textBox != null) - { - dgvActiveSku.Controls.Remove(textBox); - textBox = null; - } - }); - break; - case "colActiveStock": - getTextBox(); - textBox.Visible = true; - textBox.Location = dgvActiveSku.GetCellDisplayRectangle(dgvActiveSku.CurrentCell.ColumnIndex, dgvActiveSku.CurrentCell.RowIndex, true).Location; - textBox.Location.Offset(0, 1); - textBox.Width = dgvActiveSku.GetCellDisplayRectangle(dgvActiveSku.CurrentCell.ColumnIndex, dgvActiveSku.CurrentCell.RowIndex, true).Width - 2; - textBox.Height = dgvActiveSku.GetCellDisplayRectangle(dgvActiveSku.CurrentCell.ColumnIndex, dgvActiveSku.CurrentCell.RowIndex, true).Height - 2; - textBox.Text = row.Cells["colActiveStock"].Value.ToString(); - textBox.Focus(); - textBox.LostFocus += new EventHandler((obj, ex) => { - var Stock = (obj as TextBox).Text.Trim(); - if (Stock != "") - { - Promotion_Skus skuInfo = skuList.Where(x => x.id == SkuId.ToString()).FirstOrDefault(); - if (skuInfo != null) - skuInfo.camp_stock_num = Stock.ParseToInt(); - row.Cells["colActiveStock"].Value = skuInfo.camp_stock_num; - } - if (textBox != null) - { - dgvActiveSku.Controls.Remove(textBox); - textBox = null; - } - }); - break; - case "colLimited": - getComboBox(); - comboBox.Visible = true; - comboBox.Location = dgvActiveSku.GetCellDisplayRectangle(dgvActiveSku.CurrentCell.ColumnIndex, dgvActiveSku.CurrentCell.RowIndex, true).Location; - comboBox.Width = dgvActiveSku.GetCellDisplayRectangle(dgvActiveSku.CurrentCell.ColumnIndex, dgvActiveSku.CurrentCell.RowIndex, true).Width - 2; - comboBox.Height = dgvActiveSku.GetCellDisplayRectangle(dgvActiveSku.CurrentCell.ColumnIndex, dgvActiveSku.CurrentCell.RowIndex, true).Height - 2; - for (int a = 0; a < comboBox.Items.Count; a++) - { - if (comboBox.Items[a].ToString() == row.Cells["colLimited"].Value.ToString()) - { - comboBox.SelectedIndex = a; - break; - } - } - comboBox.ItemHeight = 20; - comboBox.Focus(); - try - { - comboBox.LostFocus += new EventHandler((obj, ex) => { - var setLimit = (obj as ComboBox).Text; - Promotion_Skus skuInfo = skuList.Where(x => x.id == SkuId.ToString()).FirstOrDefault(); - if (skuInfo != null) - skuInfo.user_limit = setLimit; - if (comboBox != null) - { - dgvActiveSku.Controls.Remove(comboBox); - comboBox = null; - } - row.Cells["colLimited"].Value = setLimit; - }); - } - catch (Exception) - { - if (comboBox != null) - { - dgvActiveSku.Controls.Remove(comboBox); - comboBox = null; - } - Promotion_Skus skuInfo = skuList.Where(x => x.id == SkuId.ToString()).FirstOrDefault(); - row.Cells["colLimited"].Value = skuInfo.user_limit; - } - break; - default: - if (textBox != null) - { - dgvActiveSku.Controls.Remove(textBox); - textBox = null; - } - if (comboBox != null) - { - dgvActiveSku.Controls.Remove(comboBox); - comboBox = null; - } - break; - } - } - - private void btnFill_Click(object sender, System.EventArgs e) - { - var setPriceRes = txtSetPrice.Text.Trim(); - var ActiveStock = txtStock.Text.Trim(); - var LimitedNum = cmbLimit.Text; - foreach (DataGridViewRow row in dgvActiveSku.Rows) - { - var skuId = row.Cells["colSkuId"].Value.ToString(); - Promotion_Skus skuInfo = skuList.Where(x => x.id == skuId).FirstOrDefault(); - if (skuInfo != null) - { - if (setPriceRes != "") - { - row.Cells["colSetPrice"].Value = setPriceRes; - skuInfo.shop_svalue = returnPrice(setPriceRes).ParseToInt(); - } - if (ActiveStock != "") - { - skuInfo.camp_stock_num = skuInfo.camp_stock_num + ActiveStock.ParseToInt(); - row.Cells["colActiveStock"].Value = skuInfo.camp_stock_num; - } - row.Cells["colLimited"].Value = LimitedNum; - skuInfo.user_limit = LimitedNum; - } - } - } - public string returnPrice(string price) - { - var SetPrice = ""; - if (label2.Text == "折") - SetPrice = (price.ParseToDouble() * 10).ToString(); //打折精确到小数点后一位(0-10之间) - else if (label2.Text == "元") - SetPrice = (price.ParseToDouble() * 100).ToString(); //直降、一口价精确到小数点后两位(0-原价之间) - return SetPrice; - } - - private void btnDelete_Click(object sender, System.EventArgs e) - { - if (strList.Count == 0) - { - BaseMsgForm.ShowInfo("请选择待删除的单品!"); - return; - } - if (BaseMsgForm.ShowConfirm("确定要删除吗?").DialogResult == DialogResult.OK) - { - for (int i = 0; i < dgvActiveSku.Rows.Count; i++) - { - DataGridViewRow row = dgvActiveSku.Rows[i]; - long SkuId = row.Cells["colSkuId"].Value.ParseToLong(); - if (strList.Any(p => p == SkuId.ToString())) - { - dgvActiveSku.Rows.Remove(row); - strList.Remove(SkuId.ToString()); - skuList.Remove(skuList.Where(x => x.id == SkuId.ToString()).FirstOrDefault()); - i--; - } - } - } - } - - public void getTextBox() - { - textBox = new TextBox(); - textBox.Visible = false; - dgvActiveSku.Controls.Add(textBox); - } - - public void getComboBox() - { - comboBox = new ComboBox(); - for (int i = 1; i <= 20; i++) - { - comboBox.Items.Add(i); - } - comboBox.DropDownStyle = ComboBoxStyle.DropDownList; - comboBox.Visible = false; - dgvActiveSku.Controls.Add(comboBox); - } - - private void btnSave_Click(object sender, System.EventArgs e) - { - this.DialogResult = DialogResult.OK; - } - - } - public class ActiveInfoEdit - { - public string campaign_id { get; set; } - public int sub_stype { get; set; } - /// - /// 活动名称 - /// - public string title { get; set; } - public string pre_begin_time { get; set; } - public string begin_time { get; set; } - public string end_time { get; set; } - public string order_expire_time { get; set; } - /// - /// 优惠方式 - /// - public string shop_stype { get; set; } - public string time_set_type { get; set; } - public int status { get; set; } - public string stock_type { get; set; } - public string sold_out_type { get; set; } - public List promotion_goods { get; set; } - } - public class Promotion_Goods - { - public string product_id { get; set; } - public string title { get; set; } - public string cover { get; set; } - public int config_scope { get; set; } - public List promotion_skus { get; set; } - } - public class Promotion_Skus - { - public string id { get; set; } - public int camp_stock_num { get; set; } - public int camp_left_stock_num { get; set; } - public int price { get; set; } - public string user_limit { get; set; } - public int origin_price { get; set; } - public int stock { get; set; } - public string specification { get; set; } - public int shop_svalue { get; set; } - public int redline_price { get; set; } - } -} diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/DouProductPromotionListSkuInfoEditForm.resx b/TEMUKJD/KJDForms/SalesCenterForms/Old/DouProductPromotionListSkuInfoEditForm.resx deleted file mode 100644 index af6ddf9..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/DouProductPromotionListSkuInfoEditForm.resx +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/FullMinusActiveForm.Designer.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/FullMinusActiveForm.Designer.cs deleted file mode 100644 index 76711aa..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/FullMinusActiveForm.Designer.cs +++ /dev/null @@ -1,437 +0,0 @@ -namespace TemuKJD.KJDForms.SalesCenterForms -{ - partial class FullMinusActiveForm - { - /// - /// 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() - { - 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(); - this.panel1 = new System.Windows.Forms.Panel(); - this.cmbActState = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.comboItem1 = new DevComponents.Editors.ComboItem(); - this.comboItem2 = new DevComponents.Editors.ComboItem(); - this.comboItem3 = new DevComponents.Editors.ComboItem(); - this.comboItem4 = new DevComponents.Editors.ComboItem(); - this.comboItem5 = new DevComponents.Editors.ComboItem(); - this.btnFailed = new DevComponents.DotNetBar.PanelEx(); - this.btnSearch = new DevComponents.DotNetBar.PanelEx(); - this.label2 = new System.Windows.Forms.Label(); - this.panel4 = new System.Windows.Forms.Panel(); - this.txtActName = new System.Windows.Forms.TextBox(); - this.lblActivity = new System.Windows.Forms.Label(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.dgvActive = new TemuKJD.UserComponent.DataGridViewEx(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colActiveId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colActiveName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colPreStartTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colPrefereType = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colStartTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colEndTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colActiveState = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.label1 = new System.Windows.Forms.Label(); - this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); - this.panel1.SuspendLayout(); - this.panel4.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); - this.splitContainer2.Panel1.SuspendLayout(); - this.splitContainer2.Panel2.SuspendLayout(); - this.splitContainer2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgvActive)).BeginInit(); - this.SuspendLayout(); - // - // panel1 - // - this.panel1.Controls.Add(this.cmbActState); - this.panel1.Location = new System.Drawing.Point(368, 7); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(76, 24); - this.panel1.TabIndex = 522; - // - // cmbActState - // - this.cmbActState.DisplayMember = "Text"; - this.cmbActState.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbActState.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbActState.FormattingEnabled = true; - this.cmbActState.ItemHeight = 18; - this.cmbActState.Items.AddRange(new object[] { - this.comboItem1, - this.comboItem2, - this.comboItem3, - this.comboItem4, - this.comboItem5}); - this.cmbActState.Location = new System.Drawing.Point(0, 0); - this.cmbActState.Name = "cmbActState"; - this.cmbActState.Size = new System.Drawing.Size(75, 24); - this.cmbActState.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbActState.TabIndex = 520; - // - // comboItem1 - // - this.comboItem1.Text = "全部"; - // - // comboItem2 - // - this.comboItem2.Text = "未开始"; - this.comboItem2.Value = "1"; - // - // comboItem3 - // - this.comboItem3.Text = "进行中"; - this.comboItem3.Value = "2"; - // - // comboItem4 - // - this.comboItem4.Text = "已结束"; - this.comboItem4.Value = "3"; - // - // comboItem5 - // - this.comboItem5.Text = "已失效"; - this.comboItem5.Value = "4"; - // - // btnFailed - // - this.btnFailed.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnFailed.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnFailed.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnFailed.DisabledBackColor = System.Drawing.Color.Empty; - this.btnFailed.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnFailed.Location = new System.Drawing.Point(692, 9); - this.btnFailed.Name = "btnFailed"; - this.btnFailed.Size = new System.Drawing.Size(75, 21); - this.btnFailed.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnFailed.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnFailed.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnFailed.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnFailed.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnFailed.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnFailed.Style.ForeColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(8)))), ((int)(((byte)(55)))), ((int)(((byte)(114))))); - this.btnFailed.Style.GradientAngle = 90; - this.btnFailed.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnFailed.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnFailed.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnFailed.TabIndex = 546; - this.btnFailed.Text = "失效"; - this.btnFailed.Click += new System.EventHandler(this.btnFailed_Click); - // - // btnSearch - // - this.btnSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | 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(596, 9); - this.btnSearch.Name = "btnSearch"; - this.btnSearch.Size = new System.Drawing.Size(80, 21); - 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))))); - this.btnSearch.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnSearch.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnSearch.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnSearch.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnSearch.Style.GradientAngle = 90; - this.btnSearch.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnSearch.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSearch.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSearch.TabIndex = 536; - this.btnSearch.Text = "查询/刷新"; - this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click); - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(314, 11); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(56, 17); - this.label2.TabIndex = 521; - this.label2.Text = "活动状态"; - // - // panel4 - // - this.panel4.Controls.Add(this.txtActName); - this.panel4.Location = new System.Drawing.Point(195, 8); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(96, 23); - this.panel4.TabIndex = 516; - // - // txtActName - // - this.txtActName.Location = new System.Drawing.Point(0, 0); - this.txtActName.Name = "txtActName"; - this.txtActName.Size = new System.Drawing.Size(95, 23); - this.txtActName.TabIndex = 481; - // - // lblActivity - // - this.lblActivity.AutoSize = true; - this.lblActivity.Location = new System.Drawing.Point(141, 11); - this.lblActivity.Name = "lblActivity"; - this.lblActivity.Size = new System.Drawing.Size(56, 17); - this.lblActivity.TabIndex = 515; - this.lblActivity.Text = "活动名称"; - // - // 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.btnFailed); - this.splitContainer1.Panel1.Controls.Add(this.btnSearch); - this.splitContainer1.Panel1.Controls.Add(this.panel1); - this.splitContainer1.Panel1.Controls.Add(this.label2); - this.splitContainer1.Panel1.Controls.Add(this.panel4); - this.splitContainer1.Panel1.Controls.Add(this.lblActivity); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.splitContainer2); - this.splitContainer1.Size = new System.Drawing.Size(1034, 459); - this.splitContainer1.SplitterDistance = 38; - this.splitContainer1.TabIndex = 12; - // - // splitContainer2 - // - this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; - this.splitContainer2.Location = new System.Drawing.Point(0, 0); - this.splitContainer2.Name = "splitContainer2"; - this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; - // - // splitContainer2.Panel1 - // - this.splitContainer2.Panel1.Controls.Add(this.dgvActive); - this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 4, 0); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Controls.Add(this.label1); - this.splitContainer2.Panel2.Controls.Add(this.statusBar); - this.splitContainer2.Size = new System.Drawing.Size(1034, 417); - this.splitContainer2.SplitterDistance = 386; - this.splitContainer2.TabIndex = 10; - // - // dgvActive - // - this.dgvActive.AllowUserToAddRows = false; - this.dgvActive.AllowUserToDeleteRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvActive.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - this.dgvActive.BackgroundColor = System.Drawing.Color.White; - this.dgvActive.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.dgvActive.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; - this.dgvActive.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgvActive.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.colSelect, - this.colActiveId, - this.colActiveName, - this.colPreStartTime, - this.colPrefereType, - this.colStartTime, - this.colEndTime, - this.colActiveState, - this.colMessage}); - this.dgvActive.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvActive.Location = new System.Drawing.Point(4, 0); - this.dgvActive.Name = "dgvActive"; - this.dgvActive.ReadOnly = true; - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvActive.RowsDefaultCellStyle = dataGridViewCellStyle3; - this.dgvActive.RowTemplate.Height = 23; - this.dgvActive.Size = new System.Drawing.Size(1026, 386); - this.dgvActive.TabIndex = 6; - this.dgvActive.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvActive_CellContentClick); - // - // colSelect - // - this.colSelect.FillWeight = 50F; - this.colSelect.HeaderText = "选"; - this.colSelect.Name = "colSelect"; - this.colSelect.ReadOnly = true; - this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.colSelect.Width = 30; - // - // colActiveId - // - this.colActiveId.HeaderText = "活动Id"; - this.colActiveId.Name = "colActiveId"; - this.colActiveId.ReadOnly = true; - this.colActiveId.Visible = false; - // - // colActiveName - // - this.colActiveName.HeaderText = "活动名称"; - this.colActiveName.Name = "colActiveName"; - this.colActiveName.ReadOnly = true; - this.colActiveName.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colActiveName.Width = 75; - // - // colPreStartTime - // - this.colPreStartTime.HeaderText = "优惠信息"; - this.colPreStartTime.Name = "colPreStartTime"; - this.colPreStartTime.ReadOnly = true; - this.colPreStartTime.Width = 250; - // - // colPrefereType - // - this.colPrefereType.HeaderText = "活动商品"; - this.colPrefereType.Name = "colPrefereType"; - this.colPrefereType.ReadOnly = true; - this.colPrefereType.Width = 240; - // - // colStartTime - // - this.colStartTime.HeaderText = "活动开始时间"; - this.colStartTime.Name = "colStartTime"; - this.colStartTime.ReadOnly = true; - this.colStartTime.Width = 110; - // - // colEndTime - // - this.colEndTime.HeaderText = "活动结束时间"; - this.colEndTime.Name = "colEndTime"; - this.colEndTime.ReadOnly = true; - this.colEndTime.Width = 110; - // - // colActiveState - // - this.colActiveState.HeaderText = "活动状态"; - this.colActiveState.Name = "colActiveState"; - this.colActiveState.ReadOnly = true; - this.colActiveState.Width = 65; - // - // colMessage - // - this.colMessage.HeaderText = "消息提示"; - this.colMessage.Name = "colMessage"; - this.colMessage.ReadOnly = true; - this.colMessage.Width = 240; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.ForeColor = System.Drawing.Color.MidnightBlue; - this.label1.Location = new System.Drawing.Point(651, 5); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(43, 17); - this.label1.TabIndex = 5; - this.label1.Text = "label1"; - // - // 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(1034, 27); - this.statusBar.TabIndex = 4; - // - // FullMinusActiveForm - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1034, 459); - this.Controls.Add(this.splitContainer1); - this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Name = "FullMinusActiveForm"; - this.Text = "FullMinusActiveForm"; - this.Load += new System.EventHandler(this.FullMinusActiveForm_Load); - this.panel1.ResumeLayout(false); - this.panel4.ResumeLayout(false); - this.panel4.PerformLayout(); - this.splitContainer1.Panel1.ResumeLayout(false); - this.splitContainer1.Panel1.PerformLayout(); - this.splitContainer1.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); - this.splitContainer1.ResumeLayout(false); - this.splitContainer2.Panel1.ResumeLayout(false); - this.splitContainer2.Panel2.ResumeLayout(false); - this.splitContainer2.Panel2.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); - this.splitContainer2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.dgvActive)).EndInit(); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private DevComponents.DotNetBar.Controls.ComboBoxEx cmbActState; - private DevComponents.Editors.ComboItem comboItem1; - private DevComponents.Editors.ComboItem comboItem2; - private DevComponents.Editors.ComboItem comboItem3; - private DevComponents.Editors.ComboItem comboItem4; - private DevComponents.Editors.ComboItem comboItem5; - private DevComponents.DotNetBar.PanelEx btnFailed; - private DevComponents.DotNetBar.PanelEx btnSearch; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.TextBox txtActName; - private System.Windows.Forms.Label lblActivity; - private System.Windows.Forms.SplitContainer splitContainer1; - private System.Windows.Forms.SplitContainer splitContainer2; - private UserComponent.DataGridViewEx dgvActive; - private System.Windows.Forms.Label label1; - private UserControls.StatusBarUserControl statusBar; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colActiveId; - private System.Windows.Forms.DataGridViewTextBoxColumn colActiveName; - private System.Windows.Forms.DataGridViewTextBoxColumn colPreStartTime; - private System.Windows.Forms.DataGridViewTextBoxColumn colPrefereType; - private System.Windows.Forms.DataGridViewTextBoxColumn colStartTime; - private System.Windows.Forms.DataGridViewTextBoxColumn colEndTime; - private System.Windows.Forms.DataGridViewTextBoxColumn colActiveState; - private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/FullMinusActiveForm.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/FullMinusActiveForm.cs deleted file mode 100644 index c7abb17..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/FullMinusActiveForm.cs +++ /dev/null @@ -1,353 +0,0 @@ -using AllBase; -using AllBase.Helper; -using AllBase.Model.Result; -using TemuKJD.KJDForms.BaseForms; -using NaiBa.Util.Extension; -using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace TemuKJD.KJDForms.SalesCenterForms -{ - public partial class FullMinusActiveForm : BaseForm - { - private ShopLoginInfo shop = null; - public List lstActiveId = new List(); - public FullMinusForm fullMinusForm = null; - private string _signature = ""; - private string _underline = ""; - public bool isGetActiveSuccess = false; - public List activeList = new List(); - - public FullMinusActiveForm(ShopLoginInfo _shop = null) - { - InitializeComponent(); - - shop = _shop; - } - - private void FullMinusActiveForm_Load(object sender, EventArgs e) - { - cmbActState.SelectedIndex = 0; - txtActName.Focus(); - } - - private void dgvActive_CellContentClick(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - string columnName = dgvActive.Columns[e.ColumnIndex].Name; - long ActiveId = dgvActive.Rows[e.RowIndex].Cells["colActiveId"].Value.ParseToLong(); - var row = dgvActive.Rows[e.RowIndex]; - switch (columnName) - { - case "colSelect": - row.Cells["colSelect"].Value = !row.Cells["colSelect"].Value.ParseToBool(); - if (dgvActive.Rows[e.RowIndex].Cells["colSelect"].Value.ParseToBool()) - { - if (lstActiveId.Any(p => p == ActiveId)) - lstActiveId.RemoveAll(p => p == ActiveId); - lstActiveId.Add(ActiveId); - } - else - lstActiveId.Remove(ActiveId); - break; - } - } - - public void GetActive() - { - if (shop == null) - return; - - ShowVisitorMessage(""); - Task.Run(() => - { - if (shop.LoginStatus == "登录成功") - fullMinusForm.GetActiveByCef(this.shop); - - var rowsTemp = dgvActive.Rows.Cast().ToList(); - rowsTemp.Reverse(); - }); - } - - public void GetActiveSim(string listUrl, string referrerUrl, Dictionary headers, string firstPageData = "") - { - ShowVisitorMessage(""); - - int total = -1; - int number = 0; - string result = ""; - if (!string.IsNullOrEmpty(firstPageData)) - result = firstPageData; - - //获取所有活动 - if (string.IsNullOrEmpty(_underline)) - _underline = BaseRegex.GetMatchRegexString(ref listUrl, "&_=([\\s\\S]+?)&"); - if (string.IsNullOrEmpty(_underline)) - _underline = BaseRegex.GetMatchRegexString(ref listUrl, "&_=([\\s\\S]+?)"); - if (string.IsNullOrEmpty(_underline)) - _underline = BaseClass.DateTimeToTimestampMilliseconds(DateTime.Now).ToString(); - if (string.IsNullOrEmpty(_signature)) - _signature = BaseRegex.GetMatchRegexString(ref listUrl, "&_signature=([\\s\\S]+?)&"); - if (string.IsNullOrEmpty(_signature)) - { - var listUrl2 = listUrl + "&"; - _signature = BaseRegex.GetMatchRegexString(ref listUrl2, "&_signature=([\\s\\S]+?)&"); - } - listUrl = "https://fxg.jinritemai.com/marketing/activity/v1/query_full_discount_activity?activity_status=0&page=1&pageSize=20&_bid=ecom_market_shop&appid=1&_=" + _underline + "&_signature=" + _signature; - for (int i = 1; i < 9999; i++) - { - number += 20; - for (int j = 0; j < 3 && !result.Contains("\"st\":0"); j++) - { - CommonSimRequest simRequest = new CommonSimRequest(); - simRequest.Accept = "application/json, text/plain, */*"; - if (headers.ContainsKey("Accept")) - simRequest.Accept = headers["Accept"]; - if (headers.ContainsKey("UserAgent")) - simRequest.UserAgent = headers["UserAgent"]; - var cookie = shop.Cookies; - - var rUrl = listUrl.Replace("page=1", "page=" + i); - result = simRequest.Request_Get(rUrl, referrerUrl, new Dictionary(), cookie); - if (j > 0) - { - Thread.Sleep(Randomx.GetId(2000, 3000)); - } - } - - - if (result.Contains(",\"msg\":\"成功\",\"st\":0") && !fullMinusForm.cancellationTokenSource.IsCancellationRequested) - { - this.isGetActiveSuccess = true; - - if (total == -1) - { - total = BaseRegex.GetIntJson(ref result, "total"); - } - - var jObj = JObject.Parse(result); - var aList = JsonHelper.DeserializeJsonToList(jObj["data"]["data"]?.ToString()); - foreach (var info in aList) - { - if (this.activeList.Any(p => p.activity_id == info.activity_id)) - this.activeList.RemoveAll(p => p.activity_id == info.activity_id); - this.activeList.Add(info); - } - Thread.Sleep(Randomx.GetId(1500, 2000)); - } - else - { - isGetActiveSuccess = false; - break; - } - result = ""; - if (number >= total) - break; - } - Invoke(new Action(() => - { - if (fullMinusForm.cancellationTokenSource.IsCancellationRequested) - { - this.statusBar.lblTaskStatus.Text = "获取中断"; - } - else if (!isGetActiveSuccess) - { - this.statusBar.lblTaskStatus.Text = "获取活动信息失败"; - } - else - { - this.statusBar.lblTaskStatus.Text = "获取完成"; - } - this.statusBar.pgbTaskProgress.Value = 0; - this.statusBar.pgbTaskProgress.Text = 0 + "/" + 0; - this.statusBar.pgbTaskProgress.Maximum = 0; - })); - } - - public void ShowVisitorMessage(string msg) - { - Invoke(new Action(() => { this.label1.Text = msg; })); - } - - private void btnSearch_Click(object sender, EventArgs e) - { - ShowVisitorMessage(""); - ShowVisitorMessage("查询开始"); - if (this.activeList.Count == 0) - { - if (fullMinusForm.cancellationTokenSource.IsCancellationRequested) - fullMinusForm.cancellationTokenSource = new CancellationTokenSource(); - GetActiveSim("https://fxg.jinritemai.com/marketing/activity/v1/query_full_discount_activity?page=1&pageSize=20&activity_status=0&_bid=ecom_market_shop&appid=1&_=" + _underline + "&_signature=" + _signature, "https://fxg.jinritemai.com/market/center/tools/moneyoff", new Dictionary()); - } - var name = txtActName.Text.Trim(); - var stateText = cmbActState.SelectedItem.ToString(); - var stateVal = stateText == "全部" ? "0" : (stateText == "进行中" ? "2" : (stateText == "已结束" ? "3" : (stateText == "未开始" ? "1" : "4"))); - if ((name == "" && stateVal == "0" && this.dgvActive.Rows.Count == this.activeList.Count) || this.activeList.Count == 0) - { - ShowVisitorMessage("查询完成!"); - return; - } - Task.Run(() => { - List infos = new List(); - infos = this.activeList; - if (!string.IsNullOrEmpty(name)) - infos = infos.Where(x => x.activity_name == name).ToList(); - if (stateVal != "0") - infos = infos.Where(x => x.activity_status == stateVal.ParseToInt()).ToList(); - int totals = infos.Count; - Invoke(new Action(() => { - this.dgvActive.Rows.Clear(); - for (int j = 0; j < totals; j++) - { - var info = infos[j]; - var status = info.activity_status == 3 ? "已结束" : (info.activity_status == 2 ? "进行中" : (info.activity_status == 1 ? "未开始" : "已失效")); - string activeOff = string.Empty; - if (info.discounts != null) - { - if (info.activity_type == 1) - { - foreach (var dis in info.discounts) - { - activeOff += "满" + dis.condition_value.ParseToDecimal() / 100 + "元减" + dis.discount.ParseToDecimal() / 100 + "元;"; - } - } - else if (info.discount_type == 1) - { - foreach (var dis in info.discounts) - { - activeOff += "满" + dis.condition_value + "件打" + dis.discount.ParseToDecimal() / 10 + "折;"; - } - } - else - { - foreach (var dis in info.discounts) - { - activeOff += "满" + dis.condition_value + "件减" + dis.discount.ParseToDecimal() / 100 + "元;"; - } - } - activeOff = activeOff.TrimEnd(';'); - } - string activePro = string.Empty; - if (info.activity_products != null) - { - foreach (var pro in info.activity_products) - { - activePro += pro.name + ";"; - } - activePro = activePro.TrimEnd(';'); - } - if (lstActiveId.Contains(info.activity_id.ParseToLong())) - this.dgvActive.Rows.Add(true, info.activity_id, info.activity_name, activeOff, activePro, BaseClass.StampToDateTime(info.start_time.ParseToInt()), BaseClass.StampToDateTime(info.end_time.ParseToInt()), status); - else - this.dgvActive.Rows.Add(false, info.activity_id, info.activity_name, activeOff, activePro, BaseClass.StampToDateTime(info.start_time.ParseToInt()), BaseClass.StampToDateTime(info.end_time.ParseToInt()), status); - } - })); - ShowVisitorMessage("查询完成!"); - }); - } - - private void btnFailed_Click(object sender, EventArgs e) - { - if (dgvActive.Rows.Count == 0 || lstActiveId.Count == 0) - { - BaseMsgForm.ShowInfo("请选择待失效的活动!"); - return; - } - if (BaseMsgForm.ShowConfirm("确定将该活动设置为失效?").DialogResult == DialogResult.OK) - { - var failUrl = "https://fxg.jinritemai.com/marketing/activity/v1/disable_product_activity?activity_id={0}&_bid=ecom_market_shop&appid=1&_=" + _underline + "&_signature=" + _signature; - var cookies = shop.Cookies; - Task.Run(() => - { - for (int i = 0; i < dgvActive.Rows.Count; i++) - { - DataGridViewRow row = dgvActive.Rows[i]; - long ActiveId = row.Cells["colActiveId"].Value.ParseToLong(); - if (lstActiveId.Any(p => p == ActiveId)) - { - string name = row.Cells["colActiveName"].Value.ToString(); - var colActiveState = row.Cells["colActiveState"].Value.ToString(); - if (colActiveState != "进行中" && colActiveState != "未开始") - { - Invoke(new Action(() => { row.Cells["colMessage"].Value = name + "活动" + colActiveState + ",无需设置失效!"; })); - continue; - } - CommonSimRequest request = new CommonSimRequest(); - request.ContentType = "application/json"; - Dictionary dicts = new Dictionary(); - var reqUrl = string.Format(failUrl, ActiveId); - string result = request.Request_Get(reqUrl, "https://fxg.jinritemai.com/market/center/tools/moneyoff", dicts, cookies); - if (result.Contains(",\"msg\":\"成功\",\"st\":0")) - { - Invoke(new Action(() => - { - var activeInfo = activeList.Where(x => x.activity_id == ActiveId.ToString()).FirstOrDefault(); - if (activeInfo != null) - { - activeInfo.activity_status = 4; - row.Cells["colActiveState"].Value = "已失效"; - row.Cells["colMessage"].Value = "设置失效已完成!"; - } - })); - Thread.Sleep(1000); - } - else - { - Invoke(new Action(() => { row.Cells["colMessage"].Value = "设置失效失败 :" + BaseRegex.GetStringJson(ref result, "msg"); })); - } - } - } - }); - } - } - - public void ClearData() - { - this.lstActiveId.Clear(); - this.activeList.Clear(); - this.dgvActive.Rows.Clear(); - } - } - - public class FullMinusActiveInfo - { - public string activity_id { get; set; } - public int activity_type { get; set; } - public string activity_name { get; set; } - public long start_time { get; set; } - public long end_time { get; set; } - public int discount_type { get; set; } - public int activity_status { get; set; } - public string enable_use_coupon { get; set; } - public List discounts { get; set; } - public List activity_products { get; set; } - } - public class ActiveDiscounts - { - public long activity_id { get; set; } - public long discount_id { get; set; } - public int condition_type { get; set; } - public string condition_value { get; set; } - public int discount_type { get; set; } - public string discount { get; set; } - public int discount_level { get; set; } - } - public class ActiveProducts - { - public string activity_id { get; set; } - public long shop_id { get; set; } - public string product_id { get; set; } - public int status { get; set; } - public string name { get; set; } - public string img { get; set; } - public long stock_num { get; set; } - public long max_price { get; set; } - public long min_price { get; set; } - } -} diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/FullMinusActiveForm.resx b/TEMUKJD/KJDForms/SalesCenterForms/Old/FullMinusActiveForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/FullMinusActiveForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/FullMinusForm.Designer.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/FullMinusForm.Designer.cs deleted file mode 100644 index ba20e2d..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/FullMinusForm.Designer.cs +++ /dev/null @@ -1,2016 +0,0 @@ - -namespace TemuKJD.KJDForms.SalesCenterForms -{ - partial class FullMinusForm - { - /// - /// 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(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.ucGroupBoxEx4 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.panel12 = new System.Windows.Forms.Panel(); - this.panel15 = new System.Windows.Forms.Panel(); - this.btnRemove9 = new DevComponents.DotNetBar.PanelEx(); - this.label33 = new System.Windows.Forms.Label(); - this.txtP18 = new System.Windows.Forms.TextBox(); - this.txtP17 = new System.Windows.Forms.TextBox(); - this.label34 = new System.Windows.Forms.Label(); - this.label35 = new System.Windows.Forms.Label(); - this.panel13 = new System.Windows.Forms.Panel(); - this.btnRemove11 = new DevComponents.DotNetBar.PanelEx(); - this.label27 = new System.Windows.Forms.Label(); - this.txtP22 = new System.Windows.Forms.TextBox(); - this.txtP21 = new System.Windows.Forms.TextBox(); - this.label28 = new System.Windows.Forms.Label(); - this.label29 = new System.Windows.Forms.Label(); - this.btnAdd3 = new DevComponents.DotNetBar.PanelEx(); - this.panel14 = new System.Windows.Forms.Panel(); - this.btnRemove10 = new DevComponents.DotNetBar.PanelEx(); - this.label30 = new System.Windows.Forms.Label(); - this.txtP20 = new System.Windows.Forms.TextBox(); - this.txtP19 = new System.Windows.Forms.TextBox(); - this.label31 = new System.Windows.Forms.Label(); - this.label32 = new System.Windows.Forms.Label(); - this.panel16 = new System.Windows.Forms.Panel(); - this.panel8 = new System.Windows.Forms.Panel(); - this.btnRemove6 = new DevComponents.DotNetBar.PanelEx(); - this.label18 = new System.Windows.Forms.Label(); - this.txtP12 = new System.Windows.Forms.TextBox(); - this.txtP11 = new System.Windows.Forms.TextBox(); - this.label19 = new System.Windows.Forms.Label(); - this.label20 = new System.Windows.Forms.Label(); - this.btnAdd2 = new DevComponents.DotNetBar.PanelEx(); - this.panel11 = new System.Windows.Forms.Panel(); - this.btnRemove8 = new DevComponents.DotNetBar.PanelEx(); - this.label24 = new System.Windows.Forms.Label(); - this.txtP16 = new System.Windows.Forms.TextBox(); - this.txtP15 = new System.Windows.Forms.TextBox(); - this.label25 = new System.Windows.Forms.Label(); - this.label26 = new System.Windows.Forms.Label(); - this.panel10 = new System.Windows.Forms.Panel(); - this.btnRemove7 = new DevComponents.DotNetBar.PanelEx(); - this.label21 = new System.Windows.Forms.Label(); - this.txtP14 = new System.Windows.Forms.TextBox(); - this.txtP13 = new System.Windows.Forms.TextBox(); - this.label22 = new System.Windows.Forms.Label(); - this.label23 = new System.Windows.Forms.Label(); - this.panel9 = new System.Windows.Forms.Panel(); - this.rdoReduction = new System.Windows.Forms.RadioButton(); - this.rdoDiscount = new System.Windows.Forms.RadioButton(); - this.ucGroupBoxEx3 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.btnAdd1 = new DevComponents.DotNetBar.PanelEx(); - this.panel7 = new System.Windows.Forms.Panel(); - this.btnRemove5 = new DevComponents.DotNetBar.PanelEx(); - this.label15 = new System.Windows.Forms.Label(); - this.txtP10 = new System.Windows.Forms.TextBox(); - this.txtP9 = new System.Windows.Forms.TextBox(); - this.label16 = new System.Windows.Forms.Label(); - this.label17 = new System.Windows.Forms.Label(); - this.panel6 = new System.Windows.Forms.Panel(); - this.btnRemove4 = new DevComponents.DotNetBar.PanelEx(); - this.label12 = new System.Windows.Forms.Label(); - this.txtP8 = new System.Windows.Forms.TextBox(); - this.txtP7 = new System.Windows.Forms.TextBox(); - this.label13 = new System.Windows.Forms.Label(); - this.label14 = new System.Windows.Forms.Label(); - this.panel4 = new System.Windows.Forms.Panel(); - this.btnRemove3 = new DevComponents.DotNetBar.PanelEx(); - this.label9 = new System.Windows.Forms.Label(); - this.txtP6 = new System.Windows.Forms.TextBox(); - this.txtP5 = new System.Windows.Forms.TextBox(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.panel3 = new System.Windows.Forms.Panel(); - this.btnRemove2 = new DevComponents.DotNetBar.PanelEx(); - this.label6 = new System.Windows.Forms.Label(); - this.txtP4 = new System.Windows.Forms.TextBox(); - this.txtP3 = new System.Windows.Forms.TextBox(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.pnlDiscount = new System.Windows.Forms.Panel(); - this.btnRemove1 = new DevComponents.DotNetBar.PanelEx(); - this.label5 = new System.Windows.Forms.Label(); - this.txtP2 = new System.Windows.Forms.TextBox(); - this.txtP1 = new System.Windows.Forms.TextBox(); - this.label4 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.dptEndTime = new System.Windows.Forms.DateTimePicker(); - this.dptStartTime = new System.Windows.Forms.DateTimePicker(); - this.lblEndTime = new System.Windows.Forms.Label(); - this.lblStartTime = new System.Windows.Forms.Label(); - this.panel5 = new System.Windows.Forms.Panel(); - this.txtActName = new System.Windows.Forms.TextBox(); - this.lblName = new System.Windows.Forms.Label(); - this.label1 = new System.Windows.Forms.Label(); - this.panel1 = new System.Windows.Forms.Panel(); - this.rdoAllow = new System.Windows.Forms.RadioButton(); - this.rdoNotAllow = new System.Windows.Forms.RadioButton(); - this.panel2 = new System.Windows.Forms.Panel(); - this.rdoOverPieces = new System.Windows.Forms.RadioButton(); - this.rdoOverYuan = new System.Windows.Forms.RadioButton(); - this.lblType = new System.Windows.Forms.Label(); - this.btnManagerAct = new DevComponents.DotNetBar.PanelEx(); - this.btnSubAct = new DevComponents.DotNetBar.PanelEx(); - this.btnGetProduct = new DevComponents.DotNetBar.PanelEx(); - this.btnStopGetProduct = new DevComponents.DotNetBar.PanelEx(); - this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.btnRefreshShop = new TemuKJD.UserControls.ButtonEx(); - this.splitContainer3 = new System.Windows.Forms.SplitContainer(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colAuthStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colLoginStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colCanUse = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.panelEx1 = new DevComponents.DotNetBar.PanelEx(); - this.ucTabControl1 = new TemuKJD.UserComponent.UcTabControl(); - this.tabPageCheckResult = new System.Windows.Forms.TabPage(); - this.splitContainer4 = new System.Windows.Forms.SplitContainer(); - this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); - this.btnClear = new DevComponents.DotNetBar.PanelEx(); - this.tabPageViolateFileList = new System.Windows.Forms.TabPage(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - this.ucGroupBoxEx2.SuspendLayout(); - this.ucGroupBoxEx4.SuspendLayout(); - this.panel12.SuspendLayout(); - this.panel15.SuspendLayout(); - this.panel13.SuspendLayout(); - this.panel14.SuspendLayout(); - this.panel16.SuspendLayout(); - this.panel8.SuspendLayout(); - this.panel11.SuspendLayout(); - this.panel10.SuspendLayout(); - this.panel9.SuspendLayout(); - this.ucGroupBoxEx3.SuspendLayout(); - this.panel7.SuspendLayout(); - this.panel6.SuspendLayout(); - this.panel4.SuspendLayout(); - this.panel3.SuspendLayout(); - this.pnlDiscount.SuspendLayout(); - this.panel5.SuspendLayout(); - this.panel1.SuspendLayout(); - this.panel2.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.dgvShop)).BeginInit(); - this.panelEx1.SuspendLayout(); - this.ucTabControl1.SuspendLayout(); - ((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.ucGroupBoxEx2); - this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx1); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.splitContainer3); - this.splitContainer1.Size = new System.Drawing.Size(1350, 561); - this.splitContainer1.SplitterDistance = 160; - this.splitContainer1.TabIndex = 7; - // - // ucGroupBoxEx2 - // - this.ucGroupBoxEx2.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.ucGroupBoxEx2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.ucGroupBoxEx2.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND; - this.ucGroupBoxEx2.Controls.Add(this.ucGroupBoxEx4); - this.ucGroupBoxEx2.Controls.Add(this.ucGroupBoxEx3); - this.ucGroupBoxEx2.Controls.Add(this.label2); - this.ucGroupBoxEx2.Controls.Add(this.dptEndTime); - this.ucGroupBoxEx2.Controls.Add(this.dptStartTime); - this.ucGroupBoxEx2.Controls.Add(this.lblEndTime); - this.ucGroupBoxEx2.Controls.Add(this.lblStartTime); - this.ucGroupBoxEx2.Controls.Add(this.panel5); - this.ucGroupBoxEx2.Controls.Add(this.lblName); - this.ucGroupBoxEx2.Controls.Add(this.label1); - this.ucGroupBoxEx2.Controls.Add(this.panel1); - this.ucGroupBoxEx2.Controls.Add(this.panel2); - this.ucGroupBoxEx2.Controls.Add(this.lblType); - this.ucGroupBoxEx2.Controls.Add(this.btnManagerAct); - this.ucGroupBoxEx2.Controls.Add(this.btnSubAct); - this.ucGroupBoxEx2.Controls.Add(this.btnGetProduct); - this.ucGroupBoxEx2.Controls.Add(this.btnStopGetProduct); - this.ucGroupBoxEx2.Location = new System.Drawing.Point(146, 2); - this.ucGroupBoxEx2.Name = "ucGroupBoxEx2"; - this.ucGroupBoxEx2.Size = new System.Drawing.Size(1202, 160); - this.ucGroupBoxEx2.TabIndex = 423; - this.ucGroupBoxEx2.TabStop = false; - this.ucGroupBoxEx2.Text = "参数设置"; - // - // ucGroupBoxEx4 - // - this.ucGroupBoxEx4.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.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.panel12); - this.ucGroupBoxEx4.Controls.Add(this.panel16); - this.ucGroupBoxEx4.Controls.Add(this.panel9); - this.ucGroupBoxEx4.Location = new System.Drawing.Point(700, 10); - this.ucGroupBoxEx4.Name = "ucGroupBoxEx4"; - this.ucGroupBoxEx4.Size = new System.Drawing.Size(390, 146); - this.ucGroupBoxEx4.TabIndex = 570; - this.ucGroupBoxEx4.TabStop = false; - this.ucGroupBoxEx4.Text = "阶梯优惠"; - this.ucGroupBoxEx4.Visible = false; - // - // panel12 - // - this.panel12.Controls.Add(this.panel15); - this.panel12.Controls.Add(this.panel13); - this.panel12.Controls.Add(this.btnAdd3); - this.panel12.Controls.Add(this.panel14); - this.panel12.Location = new System.Drawing.Point(10, 50); - this.panel12.Name = "panel12"; - this.panel12.Size = new System.Drawing.Size(369, 90); - this.panel12.TabIndex = 563; - this.panel12.Visible = false; - // - // panel15 - // - this.panel15.Controls.Add(this.btnRemove9); - this.panel15.Controls.Add(this.label33); - this.panel15.Controls.Add(this.txtP18); - this.panel15.Controls.Add(this.txtP17); - this.panel15.Controls.Add(this.label34); - this.panel15.Controls.Add(this.label35); - this.panel15.Location = new System.Drawing.Point(0, 0); - this.panel15.Name = "panel15"; - this.panel15.Size = new System.Drawing.Size(275, 21); - this.panel15.TabIndex = 556; - // - // btnRemove9 - // - this.btnRemove9.CanvasColor = System.Drawing.SystemColors.Control; - this.btnRemove9.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnRemove9.DisabledBackColor = System.Drawing.Color.Empty; - this.btnRemove9.Enabled = false; - this.btnRemove9.Location = new System.Drawing.Point(223, 0); - this.btnRemove9.Name = "btnRemove9"; - this.btnRemove9.Size = new System.Drawing.Size(50, 21); - this.btnRemove9.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove9.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnRemove9.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnRemove9.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnRemove9.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove9.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnRemove9.Style.GradientAngle = 90; - this.btnRemove9.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove9.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove9.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove9.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove9.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnRemove9.TabIndex = 523; - this.btnRemove9.Text = "删除"; - this.btnRemove9.Click += new System.EventHandler(this.btnRemove9_Click); - // - // label33 - // - this.label33.AutoSize = true; - this.label33.Location = new System.Drawing.Point(200, 4); - this.label33.Name = "label33"; - this.label33.Size = new System.Drawing.Size(17, 12); - this.label33.TabIndex = 518; - this.label33.Text = "元"; - // - // txtP18 - // - this.txtP18.Location = new System.Drawing.Point(131, 0); - this.txtP18.Name = "txtP18"; - this.txtP18.Size = new System.Drawing.Size(65, 21); - this.txtP18.TabIndex = 480; - // - // txtP17 - // - this.txtP17.Location = new System.Drawing.Point(23, 0); - this.txtP17.Name = "txtP17"; - this.txtP17.Size = new System.Drawing.Size(65, 21); - this.txtP17.TabIndex = 480; - // - // label34 - // - this.label34.AutoSize = true; - this.label34.Location = new System.Drawing.Point(92, 4); - this.label34.Name = "label34"; - this.label34.Size = new System.Drawing.Size(35, 12); - this.label34.TabIndex = 517; - this.label34.Text = "件 减"; - // - // label35 - // - this.label35.AutoSize = true; - this.label35.Location = new System.Drawing.Point(3, 4); - this.label35.Name = "label35"; - this.label35.Size = new System.Drawing.Size(17, 12); - this.label35.TabIndex = 517; - this.label35.Text = "满"; - // - // panel13 - // - this.panel13.Controls.Add(this.btnRemove11); - this.panel13.Controls.Add(this.label27); - this.panel13.Controls.Add(this.txtP22); - this.panel13.Controls.Add(this.txtP21); - this.panel13.Controls.Add(this.label28); - this.panel13.Controls.Add(this.label29); - this.panel13.Location = new System.Drawing.Point(0, 68); - this.panel13.Name = "panel13"; - this.panel13.Size = new System.Drawing.Size(275, 21); - this.panel13.TabIndex = 556; - this.panel13.Visible = false; - // - // btnRemove11 - // - this.btnRemove11.CanvasColor = System.Drawing.SystemColors.Control; - this.btnRemove11.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnRemove11.DisabledBackColor = System.Drawing.Color.Empty; - this.btnRemove11.Location = new System.Drawing.Point(223, 0); - this.btnRemove11.Name = "btnRemove11"; - this.btnRemove11.Size = new System.Drawing.Size(50, 21); - this.btnRemove11.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove11.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnRemove11.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnRemove11.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnRemove11.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove11.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnRemove11.Style.GradientAngle = 90; - this.btnRemove11.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove11.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove11.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove11.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove11.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnRemove11.TabIndex = 523; - this.btnRemove11.Text = "删除"; - this.btnRemove11.Click += new System.EventHandler(this.btnRemove11_Click); - // - // label27 - // - this.label27.AutoSize = true; - this.label27.Location = new System.Drawing.Point(200, 4); - this.label27.Name = "label27"; - this.label27.Size = new System.Drawing.Size(17, 12); - this.label27.TabIndex = 518; - this.label27.Text = "元"; - // - // txtP22 - // - this.txtP22.Location = new System.Drawing.Point(131, 0); - this.txtP22.Name = "txtP22"; - this.txtP22.Size = new System.Drawing.Size(65, 21); - this.txtP22.TabIndex = 480; - // - // txtP21 - // - this.txtP21.Location = new System.Drawing.Point(23, 0); - this.txtP21.Name = "txtP21"; - this.txtP21.Size = new System.Drawing.Size(65, 21); - this.txtP21.TabIndex = 480; - // - // label28 - // - this.label28.AutoSize = true; - this.label28.Location = new System.Drawing.Point(92, 4); - this.label28.Name = "label28"; - this.label28.Size = new System.Drawing.Size(35, 12); - this.label28.TabIndex = 517; - this.label28.Text = "件 减"; - // - // label29 - // - this.label29.AutoSize = true; - this.label29.Location = new System.Drawing.Point(3, 4); - this.label29.Name = "label29"; - this.label29.Size = new System.Drawing.Size(17, 12); - this.label29.TabIndex = 517; - this.label29.Text = "满"; - // - // btnAdd3 - // - this.btnAdd3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnAdd3.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnAdd3.DisabledBackColor = System.Drawing.Color.Empty; - this.btnAdd3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnAdd3.Location = new System.Drawing.Point(280, 0); - this.btnAdd3.Name = "btnAdd3"; - this.btnAdd3.Size = new System.Drawing.Size(90, 21); - this.btnAdd3.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnAdd3.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnAdd3.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnAdd3.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnAdd3.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnAdd3.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnAdd3.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnAdd3.Style.GradientAngle = 90; - this.btnAdd3.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnAdd3.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnAdd3.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnAdd3.TabIndex = 557; - this.btnAdd3.Text = "增加规则(1/3)"; - this.btnAdd3.Click += new System.EventHandler(this.btnAdd3_Click); - // - // panel14 - // - this.panel14.Controls.Add(this.btnRemove10); - this.panel14.Controls.Add(this.label30); - this.panel14.Controls.Add(this.txtP20); - this.panel14.Controls.Add(this.txtP19); - this.panel14.Controls.Add(this.label31); - this.panel14.Controls.Add(this.label32); - this.panel14.Location = new System.Drawing.Point(0, 34); - this.panel14.Name = "panel14"; - this.panel14.Size = new System.Drawing.Size(275, 21); - this.panel14.TabIndex = 556; - this.panel14.Visible = false; - // - // btnRemove10 - // - this.btnRemove10.CanvasColor = System.Drawing.SystemColors.Control; - this.btnRemove10.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnRemove10.DisabledBackColor = System.Drawing.Color.Empty; - this.btnRemove10.Location = new System.Drawing.Point(223, 0); - this.btnRemove10.Name = "btnRemove10"; - this.btnRemove10.Size = new System.Drawing.Size(50, 21); - this.btnRemove10.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove10.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnRemove10.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnRemove10.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnRemove10.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove10.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnRemove10.Style.GradientAngle = 90; - this.btnRemove10.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove10.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove10.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove10.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove10.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnRemove10.TabIndex = 523; - this.btnRemove10.Text = "删除"; - this.btnRemove10.Click += new System.EventHandler(this.btnRemove10_Click); - // - // label30 - // - this.label30.AutoSize = true; - this.label30.Location = new System.Drawing.Point(200, 4); - this.label30.Name = "label30"; - this.label30.Size = new System.Drawing.Size(17, 12); - this.label30.TabIndex = 518; - this.label30.Text = "元"; - // - // txtP20 - // - this.txtP20.Location = new System.Drawing.Point(131, 0); - this.txtP20.Name = "txtP20"; - this.txtP20.Size = new System.Drawing.Size(65, 21); - this.txtP20.TabIndex = 480; - // - // txtP19 - // - this.txtP19.Location = new System.Drawing.Point(23, 0); - this.txtP19.Name = "txtP19"; - this.txtP19.Size = new System.Drawing.Size(65, 21); - this.txtP19.TabIndex = 480; - // - // label31 - // - this.label31.AutoSize = true; - this.label31.Location = new System.Drawing.Point(92, 4); - this.label31.Name = "label31"; - this.label31.Size = new System.Drawing.Size(35, 12); - this.label31.TabIndex = 517; - this.label31.Text = "件 减"; - // - // label32 - // - this.label32.AutoSize = true; - this.label32.Location = new System.Drawing.Point(3, 4); - this.label32.Name = "label32"; - this.label32.Size = new System.Drawing.Size(17, 12); - this.label32.TabIndex = 517; - this.label32.Text = "满"; - // - // panel16 - // - this.panel16.Controls.Add(this.panel8); - this.panel16.Controls.Add(this.btnAdd2); - this.panel16.Controls.Add(this.panel11); - this.panel16.Controls.Add(this.panel10); - this.panel16.Location = new System.Drawing.Point(10, 50); - this.panel16.Name = "panel16"; - this.panel16.Size = new System.Drawing.Size(370, 90); - this.panel16.TabIndex = 567; - // - // panel8 - // - this.panel8.Controls.Add(this.btnRemove6); - this.panel8.Controls.Add(this.label18); - this.panel8.Controls.Add(this.txtP12); - this.panel8.Controls.Add(this.txtP11); - this.panel8.Controls.Add(this.label19); - this.panel8.Controls.Add(this.label20); - this.panel8.Location = new System.Drawing.Point(0, 0); - this.panel8.Name = "panel8"; - this.panel8.Size = new System.Drawing.Size(275, 21); - this.panel8.TabIndex = 556; - // - // btnRemove6 - // - this.btnRemove6.CanvasColor = System.Drawing.SystemColors.Control; - this.btnRemove6.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnRemove6.DisabledBackColor = System.Drawing.Color.Empty; - this.btnRemove6.Enabled = false; - this.btnRemove6.Location = new System.Drawing.Point(223, 0); - this.btnRemove6.Name = "btnRemove6"; - this.btnRemove6.Size = new System.Drawing.Size(50, 21); - this.btnRemove6.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove6.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnRemove6.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnRemove6.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnRemove6.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove6.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnRemove6.Style.GradientAngle = 90; - this.btnRemove6.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove6.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove6.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove6.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove6.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnRemove6.TabIndex = 523; - this.btnRemove6.Text = "删除"; - this.btnRemove6.Click += new System.EventHandler(this.btnRemove6_Click); - // - // label18 - // - this.label18.AutoSize = true; - this.label18.Location = new System.Drawing.Point(200, 4); - this.label18.Name = "label18"; - this.label18.Size = new System.Drawing.Size(17, 12); - this.label18.TabIndex = 518; - this.label18.Text = "折"; - // - // txtP12 - // - this.txtP12.Location = new System.Drawing.Point(131, 0); - this.txtP12.Name = "txtP12"; - this.txtP12.Size = new System.Drawing.Size(65, 21); - this.txtP12.TabIndex = 480; - // - // txtP11 - // - this.txtP11.Location = new System.Drawing.Point(23, 0); - this.txtP11.Name = "txtP11"; - this.txtP11.Size = new System.Drawing.Size(65, 21); - this.txtP11.TabIndex = 480; - // - // label19 - // - this.label19.AutoSize = true; - this.label19.Location = new System.Drawing.Point(92, 4); - this.label19.Name = "label19"; - this.label19.Size = new System.Drawing.Size(35, 12); - this.label19.TabIndex = 517; - this.label19.Text = "件 打"; - // - // label20 - // - this.label20.AutoSize = true; - this.label20.Location = new System.Drawing.Point(3, 4); - this.label20.Name = "label20"; - this.label20.Size = new System.Drawing.Size(17, 12); - this.label20.TabIndex = 517; - this.label20.Text = "满"; - // - // btnAdd2 - // - this.btnAdd2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnAdd2.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnAdd2.DisabledBackColor = System.Drawing.Color.Empty; - this.btnAdd2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnAdd2.Location = new System.Drawing.Point(280, 0); - this.btnAdd2.Name = "btnAdd2"; - this.btnAdd2.Size = new System.Drawing.Size(90, 21); - this.btnAdd2.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnAdd2.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnAdd2.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnAdd2.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnAdd2.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnAdd2.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnAdd2.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnAdd2.Style.GradientAngle = 90; - this.btnAdd2.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnAdd2.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnAdd2.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnAdd2.TabIndex = 557; - this.btnAdd2.Text = "增加规则(1/3)"; - this.btnAdd2.Click += new System.EventHandler(this.btnAdd2_Click); - // - // panel11 - // - this.panel11.Controls.Add(this.btnRemove8); - this.panel11.Controls.Add(this.label24); - this.panel11.Controls.Add(this.txtP16); - this.panel11.Controls.Add(this.txtP15); - this.panel11.Controls.Add(this.label25); - this.panel11.Controls.Add(this.label26); - this.panel11.Location = new System.Drawing.Point(0, 68); - this.panel11.Name = "panel11"; - this.panel11.Size = new System.Drawing.Size(275, 21); - this.panel11.TabIndex = 556; - this.panel11.Visible = false; - // - // btnRemove8 - // - this.btnRemove8.CanvasColor = System.Drawing.SystemColors.Control; - this.btnRemove8.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnRemove8.DisabledBackColor = System.Drawing.Color.Empty; - this.btnRemove8.Location = new System.Drawing.Point(223, 0); - this.btnRemove8.Name = "btnRemove8"; - this.btnRemove8.Size = new System.Drawing.Size(50, 21); - this.btnRemove8.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove8.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnRemove8.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnRemove8.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnRemove8.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove8.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnRemove8.Style.GradientAngle = 90; - this.btnRemove8.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove8.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove8.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove8.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove8.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnRemove8.TabIndex = 523; - this.btnRemove8.Text = "删除"; - this.btnRemove8.Click += new System.EventHandler(this.btnRemove8_Click); - // - // label24 - // - this.label24.AutoSize = true; - this.label24.Location = new System.Drawing.Point(200, 4); - this.label24.Name = "label24"; - this.label24.Size = new System.Drawing.Size(17, 12); - this.label24.TabIndex = 518; - this.label24.Text = "折"; - // - // txtP16 - // - this.txtP16.Location = new System.Drawing.Point(131, 0); - this.txtP16.Name = "txtP16"; - this.txtP16.Size = new System.Drawing.Size(65, 21); - this.txtP16.TabIndex = 480; - // - // txtP15 - // - this.txtP15.Location = new System.Drawing.Point(23, 0); - this.txtP15.Name = "txtP15"; - this.txtP15.Size = new System.Drawing.Size(65, 21); - this.txtP15.TabIndex = 480; - // - // label25 - // - this.label25.AutoSize = true; - this.label25.Location = new System.Drawing.Point(92, 4); - this.label25.Name = "label25"; - this.label25.Size = new System.Drawing.Size(35, 12); - this.label25.TabIndex = 517; - this.label25.Text = "件 打"; - // - // label26 - // - this.label26.AutoSize = true; - this.label26.Location = new System.Drawing.Point(3, 4); - this.label26.Name = "label26"; - this.label26.Size = new System.Drawing.Size(17, 12); - this.label26.TabIndex = 517; - this.label26.Text = "满"; - // - // panel10 - // - this.panel10.Controls.Add(this.btnRemove7); - this.panel10.Controls.Add(this.label21); - this.panel10.Controls.Add(this.txtP14); - this.panel10.Controls.Add(this.txtP13); - this.panel10.Controls.Add(this.label22); - this.panel10.Controls.Add(this.label23); - this.panel10.Location = new System.Drawing.Point(0, 34); - this.panel10.Name = "panel10"; - this.panel10.Size = new System.Drawing.Size(275, 21); - this.panel10.TabIndex = 556; - this.panel10.Visible = false; - // - // btnRemove7 - // - this.btnRemove7.CanvasColor = System.Drawing.SystemColors.Control; - this.btnRemove7.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnRemove7.DisabledBackColor = System.Drawing.Color.Empty; - this.btnRemove7.Location = new System.Drawing.Point(223, 0); - this.btnRemove7.Name = "btnRemove7"; - this.btnRemove7.Size = new System.Drawing.Size(50, 21); - this.btnRemove7.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove7.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnRemove7.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnRemove7.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnRemove7.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove7.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnRemove7.Style.GradientAngle = 90; - this.btnRemove7.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove7.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove7.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove7.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove7.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnRemove7.TabIndex = 523; - this.btnRemove7.Text = "删除"; - this.btnRemove7.Click += new System.EventHandler(this.btnRemove7_Click); - // - // label21 - // - this.label21.AutoSize = true; - this.label21.Location = new System.Drawing.Point(200, 4); - this.label21.Name = "label21"; - this.label21.Size = new System.Drawing.Size(17, 12); - this.label21.TabIndex = 518; - this.label21.Text = "折"; - // - // txtP14 - // - this.txtP14.Location = new System.Drawing.Point(131, 0); - this.txtP14.Name = "txtP14"; - this.txtP14.Size = new System.Drawing.Size(65, 21); - this.txtP14.TabIndex = 480; - // - // txtP13 - // - this.txtP13.Location = new System.Drawing.Point(23, 0); - this.txtP13.Name = "txtP13"; - this.txtP13.Size = new System.Drawing.Size(65, 21); - this.txtP13.TabIndex = 480; - // - // label22 - // - this.label22.AutoSize = true; - this.label22.Location = new System.Drawing.Point(92, 4); - this.label22.Name = "label22"; - this.label22.Size = new System.Drawing.Size(35, 12); - this.label22.TabIndex = 517; - this.label22.Text = "件 打"; - // - // label23 - // - this.label23.AutoSize = true; - this.label23.Location = new System.Drawing.Point(3, 4); - this.label23.Name = "label23"; - this.label23.Size = new System.Drawing.Size(17, 12); - this.label23.TabIndex = 517; - this.label23.Text = "满"; - // - // panel9 - // - this.panel9.Controls.Add(this.rdoReduction); - this.panel9.Controls.Add(this.rdoDiscount); - this.panel9.Location = new System.Drawing.Point(65, 20); - this.panel9.Name = "panel9"; - this.panel9.Size = new System.Drawing.Size(233, 23); - this.panel9.TabIndex = 563; - // - // rdoReduction - // - this.rdoReduction.AutoSize = true; - this.rdoReduction.Location = new System.Drawing.Point(120, 3); - this.rdoReduction.Name = "rdoReduction"; - this.rdoReduction.Size = new System.Drawing.Size(89, 16); - this.rdoReduction.TabIndex = 467; - this.rdoReduction.Text = "满N件 减X元"; - this.rdoReduction.UseVisualStyleBackColor = true; - // - // rdoDiscount - // - this.rdoDiscount.AutoSize = true; - this.rdoDiscount.Checked = true; - this.rdoDiscount.Location = new System.Drawing.Point(3, 3); - this.rdoDiscount.Name = "rdoDiscount"; - this.rdoDiscount.Size = new System.Drawing.Size(89, 16); - this.rdoDiscount.TabIndex = 466; - this.rdoDiscount.TabStop = true; - this.rdoDiscount.Text = "满N件 打X折"; - this.rdoDiscount.UseVisualStyleBackColor = true; - this.rdoDiscount.CheckedChanged += new System.EventHandler(this.rdoDiscount_CheckedChanged); - // - // 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.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.btnAdd1); - this.ucGroupBoxEx3.Controls.Add(this.panel7); - this.ucGroupBoxEx3.Controls.Add(this.panel6); - this.ucGroupBoxEx3.Controls.Add(this.panel4); - this.ucGroupBoxEx3.Controls.Add(this.panel3); - this.ucGroupBoxEx3.Controls.Add(this.pnlDiscount); - this.ucGroupBoxEx3.Location = new System.Drawing.Point(300, 10); - this.ucGroupBoxEx3.Name = "ucGroupBoxEx3"; - this.ucGroupBoxEx3.Size = new System.Drawing.Size(390, 146); - this.ucGroupBoxEx3.TabIndex = 570; - this.ucGroupBoxEx3.TabStop = false; - this.ucGroupBoxEx3.Text = "阶梯满减"; - // - // btnAdd1 - // - this.btnAdd1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnAdd1.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnAdd1.DisabledBackColor = System.Drawing.Color.Empty; - this.btnAdd1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnAdd1.Location = new System.Drawing.Point(290, 20); - this.btnAdd1.Name = "btnAdd1"; - this.btnAdd1.Size = new System.Drawing.Size(90, 21); - this.btnAdd1.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnAdd1.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnAdd1.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnAdd1.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnAdd1.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnAdd1.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnAdd1.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnAdd1.Style.GradientAngle = 90; - this.btnAdd1.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnAdd1.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnAdd1.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnAdd1.TabIndex = 552; - this.btnAdd1.Text = "增加规则(1/5)"; - this.btnAdd1.Click += new System.EventHandler(this.btnAdd1_Click); - // - // panel7 - // - this.panel7.Controls.Add(this.btnRemove5); - this.panel7.Controls.Add(this.label15); - this.panel7.Controls.Add(this.txtP10); - this.panel7.Controls.Add(this.txtP9); - this.panel7.Controls.Add(this.label16); - this.panel7.Controls.Add(this.label17); - this.panel7.Location = new System.Drawing.Point(10, 116); - this.panel7.Name = "panel7"; - this.panel7.Size = new System.Drawing.Size(275, 21); - this.panel7.TabIndex = 519; - this.panel7.Visible = false; - // - // btnRemove5 - // - this.btnRemove5.CanvasColor = System.Drawing.SystemColors.Control; - this.btnRemove5.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnRemove5.DisabledBackColor = System.Drawing.Color.Empty; - this.btnRemove5.Location = new System.Drawing.Point(223, 0); - this.btnRemove5.Name = "btnRemove5"; - this.btnRemove5.Size = new System.Drawing.Size(50, 21); - this.btnRemove5.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove5.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnRemove5.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnRemove5.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnRemove5.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove5.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnRemove5.Style.GradientAngle = 90; - this.btnRemove5.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove5.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove5.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove5.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove5.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnRemove5.TabIndex = 523; - this.btnRemove5.Text = "删除"; - this.btnRemove5.Click += new System.EventHandler(this.btnRemove5_Click); - // - // label15 - // - this.label15.AutoSize = true; - this.label15.Location = new System.Drawing.Point(200, 4); - this.label15.Name = "label15"; - this.label15.Size = new System.Drawing.Size(17, 12); - this.label15.TabIndex = 518; - this.label15.Text = "元"; - // - // txtP10 - // - this.txtP10.Location = new System.Drawing.Point(131, 0); - this.txtP10.Name = "txtP10"; - this.txtP10.Size = new System.Drawing.Size(65, 21); - this.txtP10.TabIndex = 480; - // - // txtP9 - // - this.txtP9.Location = new System.Drawing.Point(23, 0); - this.txtP9.Name = "txtP9"; - this.txtP9.Size = new System.Drawing.Size(65, 21); - this.txtP9.TabIndex = 480; - // - // label16 - // - this.label16.AutoSize = true; - this.label16.Location = new System.Drawing.Point(92, 4); - this.label16.Name = "label16"; - this.label16.Size = new System.Drawing.Size(35, 12); - this.label16.TabIndex = 517; - this.label16.Text = "元 减"; - // - // label17 - // - this.label17.AutoSize = true; - this.label17.Location = new System.Drawing.Point(3, 4); - this.label17.Name = "label17"; - this.label17.Size = new System.Drawing.Size(17, 12); - this.label17.TabIndex = 517; - this.label17.Text = "满"; - // - // panel6 - // - this.panel6.Controls.Add(this.btnRemove4); - this.panel6.Controls.Add(this.label12); - this.panel6.Controls.Add(this.txtP8); - this.panel6.Controls.Add(this.txtP7); - this.panel6.Controls.Add(this.label13); - this.panel6.Controls.Add(this.label14); - this.panel6.Location = new System.Drawing.Point(10, 92); - this.panel6.Name = "panel6"; - this.panel6.Size = new System.Drawing.Size(275, 21); - this.panel6.TabIndex = 519; - this.panel6.Visible = false; - // - // btnRemove4 - // - this.btnRemove4.CanvasColor = System.Drawing.SystemColors.Control; - this.btnRemove4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnRemove4.DisabledBackColor = System.Drawing.Color.Empty; - this.btnRemove4.Location = new System.Drawing.Point(223, 0); - this.btnRemove4.Name = "btnRemove4"; - this.btnRemove4.Size = new System.Drawing.Size(50, 21); - this.btnRemove4.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove4.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnRemove4.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnRemove4.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnRemove4.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove4.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnRemove4.Style.GradientAngle = 90; - this.btnRemove4.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove4.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove4.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove4.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove4.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnRemove4.TabIndex = 523; - this.btnRemove4.Text = "删除"; - this.btnRemove4.Click += new System.EventHandler(this.btnRemove4_Click); - // - // label12 - // - this.label12.AutoSize = true; - this.label12.Location = new System.Drawing.Point(200, 4); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(17, 12); - this.label12.TabIndex = 518; - this.label12.Text = "元"; - // - // txtP8 - // - this.txtP8.Location = new System.Drawing.Point(131, 0); - this.txtP8.Name = "txtP8"; - this.txtP8.Size = new System.Drawing.Size(65, 21); - this.txtP8.TabIndex = 480; - // - // txtP7 - // - this.txtP7.Location = new System.Drawing.Point(23, 0); - this.txtP7.Name = "txtP7"; - this.txtP7.Size = new System.Drawing.Size(65, 21); - this.txtP7.TabIndex = 480; - // - // label13 - // - this.label13.AutoSize = true; - this.label13.Location = new System.Drawing.Point(92, 4); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(35, 12); - this.label13.TabIndex = 517; - this.label13.Text = "元 减"; - // - // label14 - // - this.label14.AutoSize = true; - this.label14.Location = new System.Drawing.Point(3, 4); - this.label14.Name = "label14"; - this.label14.Size = new System.Drawing.Size(17, 12); - this.label14.TabIndex = 517; - this.label14.Text = "满"; - // - // panel4 - // - this.panel4.Controls.Add(this.btnRemove3); - this.panel4.Controls.Add(this.label9); - this.panel4.Controls.Add(this.txtP6); - this.panel4.Controls.Add(this.txtP5); - this.panel4.Controls.Add(this.label10); - this.panel4.Controls.Add(this.label11); - this.panel4.Location = new System.Drawing.Point(10, 68); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(275, 21); - this.panel4.TabIndex = 519; - this.panel4.Visible = false; - // - // btnRemove3 - // - this.btnRemove3.CanvasColor = System.Drawing.SystemColors.Control; - this.btnRemove3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnRemove3.DisabledBackColor = System.Drawing.Color.Empty; - this.btnRemove3.Location = new System.Drawing.Point(223, 0); - this.btnRemove3.Name = "btnRemove3"; - this.btnRemove3.Size = new System.Drawing.Size(50, 21); - this.btnRemove3.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove3.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnRemove3.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnRemove3.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnRemove3.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove3.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnRemove3.Style.GradientAngle = 90; - this.btnRemove3.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove3.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove3.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove3.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove3.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnRemove3.TabIndex = 523; - this.btnRemove3.Text = "删除"; - this.btnRemove3.Click += new System.EventHandler(this.btnRemove3_Click); - // - // label9 - // - this.label9.AutoSize = true; - this.label9.Location = new System.Drawing.Point(200, 4); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(17, 12); - this.label9.TabIndex = 518; - this.label9.Text = "元"; - // - // txtP6 - // - this.txtP6.Location = new System.Drawing.Point(131, 0); - this.txtP6.Name = "txtP6"; - this.txtP6.Size = new System.Drawing.Size(65, 21); - this.txtP6.TabIndex = 480; - // - // txtP5 - // - this.txtP5.Location = new System.Drawing.Point(23, 0); - this.txtP5.Name = "txtP5"; - this.txtP5.Size = new System.Drawing.Size(65, 21); - this.txtP5.TabIndex = 480; - // - // label10 - // - this.label10.AutoSize = true; - this.label10.Location = new System.Drawing.Point(92, 4); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(35, 12); - this.label10.TabIndex = 517; - this.label10.Text = "元 减"; - // - // label11 - // - this.label11.AutoSize = true; - this.label11.Location = new System.Drawing.Point(3, 4); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(17, 12); - this.label11.TabIndex = 517; - this.label11.Text = "满"; - // - // panel3 - // - this.panel3.Controls.Add(this.btnRemove2); - this.panel3.Controls.Add(this.label6); - this.panel3.Controls.Add(this.txtP4); - this.panel3.Controls.Add(this.txtP3); - this.panel3.Controls.Add(this.label7); - this.panel3.Controls.Add(this.label8); - this.panel3.Location = new System.Drawing.Point(10, 44); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(275, 21); - this.panel3.TabIndex = 519; - this.panel3.Visible = false; - // - // btnRemove2 - // - this.btnRemove2.CanvasColor = System.Drawing.SystemColors.Control; - this.btnRemove2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnRemove2.DisabledBackColor = System.Drawing.Color.Empty; - this.btnRemove2.Location = new System.Drawing.Point(223, 0); - this.btnRemove2.Name = "btnRemove2"; - this.btnRemove2.Size = new System.Drawing.Size(50, 21); - this.btnRemove2.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove2.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnRemove2.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnRemove2.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnRemove2.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove2.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnRemove2.Style.GradientAngle = 90; - this.btnRemove2.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove2.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove2.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove2.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove2.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnRemove2.TabIndex = 523; - this.btnRemove2.Text = "删除"; - this.btnRemove2.Click += new System.EventHandler(this.btnRemove2_Click); - // - // label6 - // - this.label6.AutoSize = true; - this.label6.Location = new System.Drawing.Point(200, 4); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(17, 12); - this.label6.TabIndex = 518; - this.label6.Text = "元"; - // - // txtP4 - // - this.txtP4.Location = new System.Drawing.Point(131, 0); - this.txtP4.Name = "txtP4"; - this.txtP4.Size = new System.Drawing.Size(65, 21); - this.txtP4.TabIndex = 480; - // - // txtP3 - // - this.txtP3.Location = new System.Drawing.Point(23, 0); - this.txtP3.Name = "txtP3"; - this.txtP3.Size = new System.Drawing.Size(65, 21); - this.txtP3.TabIndex = 480; - // - // label7 - // - this.label7.AutoSize = true; - this.label7.Location = new System.Drawing.Point(92, 4); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(35, 12); - this.label7.TabIndex = 517; - this.label7.Text = "元 减"; - // - // label8 - // - this.label8.AutoSize = true; - this.label8.Location = new System.Drawing.Point(3, 4); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(17, 12); - this.label8.TabIndex = 517; - this.label8.Text = "满"; - // - // pnlDiscount - // - this.pnlDiscount.Controls.Add(this.btnRemove1); - this.pnlDiscount.Controls.Add(this.label5); - this.pnlDiscount.Controls.Add(this.txtP2); - this.pnlDiscount.Controls.Add(this.txtP1); - this.pnlDiscount.Controls.Add(this.label4); - this.pnlDiscount.Controls.Add(this.label3); - this.pnlDiscount.Location = new System.Drawing.Point(10, 20); - this.pnlDiscount.Name = "pnlDiscount"; - this.pnlDiscount.Size = new System.Drawing.Size(275, 21); - this.pnlDiscount.TabIndex = 519; - // - // btnRemove1 - // - this.btnRemove1.CanvasColor = System.Drawing.SystemColors.Control; - this.btnRemove1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnRemove1.DisabledBackColor = System.Drawing.Color.Empty; - this.btnRemove1.Enabled = false; - this.btnRemove1.Location = new System.Drawing.Point(223, 0); - this.btnRemove1.Name = "btnRemove1"; - this.btnRemove1.Size = new System.Drawing.Size(50, 21); - this.btnRemove1.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove1.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnRemove1.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnRemove1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnRemove1.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove1.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnRemove1.Style.GradientAngle = 90; - this.btnRemove1.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove1.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnRemove1.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove1.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRemove1.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnRemove1.TabIndex = 523; - this.btnRemove1.Text = "删除"; - this.btnRemove1.Click += new System.EventHandler(this.btnRemove1_Click); - // - // label5 - // - this.label5.AutoSize = true; - this.label5.Location = new System.Drawing.Point(200, 4); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(17, 12); - this.label5.TabIndex = 518; - this.label5.Text = "元"; - // - // txtP2 - // - this.txtP2.Location = new System.Drawing.Point(131, 0); - this.txtP2.Name = "txtP2"; - this.txtP2.Size = new System.Drawing.Size(65, 21); - this.txtP2.TabIndex = 480; - // - // txtP1 - // - this.txtP1.Location = new System.Drawing.Point(23, 0); - this.txtP1.Name = "txtP1"; - this.txtP1.Size = new System.Drawing.Size(65, 21); - this.txtP1.TabIndex = 480; - // - // label4 - // - this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(92, 4); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(35, 12); - this.label4.TabIndex = 517; - this.label4.Text = "元 减"; - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(3, 4); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(17, 12); - this.label3.TabIndex = 517; - this.label3.Text = "满"; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(8, 137); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(65, 12); - this.label2.TabIndex = 569; - this.label2.Text = "叠加店铺券"; - // - // dptEndTime - // - this.dptEndTime.CustomFormat = "yyyy\'/\'MM\'/\'dd HH:mm:ss"; - this.dptEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dptEndTime.Location = new System.Drawing.Point(77, 108); - this.dptEndTime.Name = "dptEndTime"; - this.dptEndTime.Size = new System.Drawing.Size(200, 21); - this.dptEndTime.TabIndex = 517; - // - // dptStartTime - // - this.dptStartTime.CustomFormat = "yyyy\'/\'MM\'/\'dd HH:mm:ss"; - this.dptStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dptStartTime.Location = new System.Drawing.Point(77, 84); - this.dptStartTime.Name = "dptStartTime"; - this.dptStartTime.Size = new System.Drawing.Size(200, 21); - this.dptStartTime.TabIndex = 568; - // - // lblEndTime - // - this.lblEndTime.AutoSize = true; - this.lblEndTime.Location = new System.Drawing.Point(20, 113); - this.lblEndTime.Name = "lblEndTime"; - this.lblEndTime.Size = new System.Drawing.Size(53, 12); - this.lblEndTime.TabIndex = 567; - this.lblEndTime.Text = "结束时间"; - // - // lblStartTime - // - this.lblStartTime.AutoSize = true; - this.lblStartTime.Location = new System.Drawing.Point(20, 89); - this.lblStartTime.Name = "lblStartTime"; - this.lblStartTime.Size = new System.Drawing.Size(53, 12); - this.lblStartTime.TabIndex = 567; - this.lblStartTime.Text = "开始时间"; - // - // panel5 - // - this.panel5.Controls.Add(this.txtActName); - this.panel5.Location = new System.Drawing.Point(77, 60); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(200, 21); - this.panel5.TabIndex = 566; - // - // txtActName - // - this.txtActName.Location = new System.Drawing.Point(0, 0); - this.txtActName.Name = "txtActName"; - this.txtActName.Size = new System.Drawing.Size(199, 21); - this.txtActName.TabIndex = 481; - // - // lblName - // - this.lblName.AutoSize = true; - this.lblName.Location = new System.Drawing.Point(20, 65); - this.lblName.Name = "lblName"; - this.lblName.Size = new System.Drawing.Size(53, 12); - this.lblName.TabIndex = 565; - this.lblName.Text = "活动名称"; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.ForeColor = System.Drawing.SystemColors.GrayText; - this.label1.Location = new System.Drawing.Point(77, 42); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(197, 12); - this.label1.TabIndex = 563; - this.label1.Text = "下一层级的【优惠】要大于上一层级"; - // - // panel1 - // - this.panel1.Controls.Add(this.rdoAllow); - this.panel1.Controls.Add(this.rdoNotAllow); - this.panel1.Location = new System.Drawing.Point(77, 132); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(200, 23); - this.panel1.TabIndex = 562; - // - // rdoAllow - // - this.rdoAllow.AutoSize = true; - this.rdoAllow.Location = new System.Drawing.Point(100, 3); - this.rdoAllow.Name = "rdoAllow"; - this.rdoAllow.Size = new System.Drawing.Size(47, 16); - this.rdoAllow.TabIndex = 467; - this.rdoAllow.Text = "允许"; - this.rdoAllow.UseVisualStyleBackColor = true; - // - // rdoNotAllow - // - this.rdoNotAllow.AutoSize = true; - this.rdoNotAllow.Checked = true; - this.rdoNotAllow.Location = new System.Drawing.Point(3, 3); - this.rdoNotAllow.Name = "rdoNotAllow"; - this.rdoNotAllow.Size = new System.Drawing.Size(59, 16); - this.rdoNotAllow.TabIndex = 466; - this.rdoNotAllow.TabStop = true; - this.rdoNotAllow.Text = "不允许"; - this.rdoNotAllow.UseVisualStyleBackColor = true; - // - // panel2 - // - this.panel2.Controls.Add(this.rdoOverPieces); - this.panel2.Controls.Add(this.rdoOverYuan); - this.panel2.Location = new System.Drawing.Point(77, 17); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(200, 23); - this.panel2.TabIndex = 562; - // - // rdoOverPieces - // - this.rdoOverPieces.AutoSize = true; - this.rdoOverPieces.Location = new System.Drawing.Point(100, 3); - this.rdoOverPieces.Name = "rdoOverPieces"; - this.rdoOverPieces.Size = new System.Drawing.Size(77, 16); - this.rdoOverPieces.TabIndex = 467; - this.rdoOverPieces.Text = "满N件优惠"; - this.rdoOverPieces.UseVisualStyleBackColor = true; - // - // rdoOverYuan - // - this.rdoOverYuan.AutoSize = true; - this.rdoOverYuan.Checked = true; - this.rdoOverYuan.Location = new System.Drawing.Point(3, 3); - this.rdoOverYuan.Name = "rdoOverYuan"; - this.rdoOverYuan.Size = new System.Drawing.Size(77, 16); - this.rdoOverYuan.TabIndex = 466; - this.rdoOverYuan.TabStop = true; - this.rdoOverYuan.Text = "满N元优惠"; - this.rdoOverYuan.UseVisualStyleBackColor = true; - this.rdoOverYuan.CheckedChanged += new System.EventHandler(this.rdoOverYuan_CheckedChanged); - // - // lblType - // - this.lblType.AutoSize = true; - this.lblType.Location = new System.Drawing.Point(20, 21); - this.lblType.Name = "lblType"; - this.lblType.Size = new System.Drawing.Size(53, 12); - this.lblType.TabIndex = 561; - this.lblType.Text = "活动类型"; - // - // btnManagerAct - // - this.btnManagerAct.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnManagerAct.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnManagerAct.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnManagerAct.DisabledBackColor = System.Drawing.Color.Empty; - this.btnManagerAct.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnManagerAct.Location = new System.Drawing.Point(1110, 127); - this.btnManagerAct.Name = "btnManagerAct"; - this.btnManagerAct.Size = new System.Drawing.Size(80, 23); - this.btnManagerAct.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnManagerAct.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnManagerAct.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnManagerAct.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnManagerAct.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnManagerAct.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnManagerAct.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnManagerAct.Style.GradientAngle = 90; - this.btnManagerAct.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnManagerAct.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnManagerAct.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnManagerAct.TabIndex = 548; - this.btnManagerAct.Text = "活动管理"; - this.btnManagerAct.Click += new System.EventHandler(this.btnManagerAct_Click); - // - // btnSubAct - // - this.btnSubAct.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnSubAct.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnSubAct.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnSubAct.DisabledBackColor = System.Drawing.Color.Empty; - this.btnSubAct.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSubAct.Location = new System.Drawing.Point(1110, 81); - this.btnSubAct.Name = "btnSubAct"; - this.btnSubAct.Size = new System.Drawing.Size(80, 27); - this.btnSubAct.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnSubAct.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSubAct.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSubAct.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnSubAct.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnSubAct.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnSubAct.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnSubAct.Style.GradientAngle = 90; - this.btnSubAct.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnSubAct.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSubAct.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSubAct.TabIndex = 532; - this.btnSubAct.Text = "提交活动"; - this.btnSubAct.Click += new System.EventHandler(this.btnSubAct_Click); - // - // btnGetProduct - // - this.btnGetProduct.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnGetProduct.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnGetProduct.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnGetProduct.DisabledBackColor = System.Drawing.Color.Empty; - this.btnGetProduct.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnGetProduct.Location = new System.Drawing.Point(1110, 17); - this.btnGetProduct.Name = "btnGetProduct"; - this.btnGetProduct.Size = new System.Drawing.Size(80, 23); - this.btnGetProduct.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnGetProduct.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnGetProduct.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnGetProduct.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnGetProduct.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnGetProduct.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnGetProduct.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnGetProduct.Style.GradientAngle = 90; - this.btnGetProduct.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnGetProduct.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnGetProduct.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnGetProduct.TabIndex = 456; - this.btnGetProduct.Text = "获取商品"; - this.btnGetProduct.Click += new System.EventHandler(this.btnGetProduct_Click); - // - // btnStopGetProduct - // - this.btnStopGetProduct.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnStopGetProduct.CanvasColor = System.Drawing.SystemColors.Control; - this.btnStopGetProduct.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnStopGetProduct.DisabledBackColor = System.Drawing.Color.Empty; - this.btnStopGetProduct.Location = new System.Drawing.Point(1110, 51); - this.btnStopGetProduct.Name = "btnStopGetProduct"; - this.btnStopGetProduct.Size = new System.Drawing.Size(80, 23); - this.btnStopGetProduct.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopGetProduct.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStopGetProduct.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStopGetProduct.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnStopGetProduct.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopGetProduct.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnStopGetProduct.Style.GradientAngle = 90; - this.btnStopGetProduct.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopGetProduct.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopGetProduct.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopGetProduct.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopGetProduct.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnStopGetProduct.TabIndex = 463; - this.btnStopGetProduct.Text = "停止获取"; - this.btnStopGetProduct.Click += new System.EventHandler(this.btnStopGetProduct_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.btnRefreshShop); - this.ucGroupBoxEx1.Location = new System.Drawing.Point(2, 2); - this.ucGroupBoxEx1.Name = "ucGroupBoxEx1"; - this.ucGroupBoxEx1.Size = new System.Drawing.Size(144, 160); - this.ucGroupBoxEx1.TabIndex = 399; - this.ucGroupBoxEx1.TabStop = false; - this.ucGroupBoxEx1.Text = "基础"; - // - // btnRefreshShop - // - this.btnRefreshShop.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRefreshShop.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnRefreshShop.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnRefreshShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnRefreshShop.ForeColor = System.Drawing.Color.White; - this.btnRefreshShop.Location = new System.Drawing.Point(16, 30); - this.btnRefreshShop.Margin = new System.Windows.Forms.Padding(2); - this.btnRefreshShop.Name = "btnRefreshShop"; - this.btnRefreshShop.Size = new System.Drawing.Size(112, 26); - this.btnRefreshShop.TabIndex = 375; - this.btnRefreshShop.Text = "刷新店铺状态"; - this.btnRefreshShop.UseVisualStyleBackColor = false; - // - // 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(1350, 397); - this.splitContainer3.SplitterDistance = 367; - 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.dgvShop); - this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 0, 0); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Controls.Add(this.panelEx1); - this.splitContainer2.Panel2.Padding = new System.Windows.Forms.Padding(0, 0, 4, 0); - this.splitContainer2.Size = new System.Drawing.Size(1350, 367); - this.splitContainer2.SplitterDistance = 269; - this.splitContainer2.TabIndex = 0; - // - // dgvShop - // - this.dgvShop.AllowUserToAddRows = false; - this.dgvShop.AllowUserToDeleteRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - 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.colShopId, - this.colShopName, - this.colAuthStatus, - this.colLoginStatus, - this.colCanUse, - this.colMessage}); - this.dgvShop.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvShop.Location = new System.Drawing.Point(4, 0); - this.dgvShop.Name = "dgvShop"; - this.dgvShop.ReadOnly = true; - this.dgvShop.RowHeadersWidth = 30; - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvShop.RowsDefaultCellStyle = dataGridViewCellStyle3; - this.dgvShop.RowTemplate.Height = 23; - this.dgvShop.Size = new System.Drawing.Size(265, 367); - this.dgvShop.TabIndex = 6; - this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick); - // - // colSelect - // - 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; - // - // colShopId - // - this.colShopId.HeaderText = "店铺"; - this.colShopId.Name = "colShopId"; - this.colShopId.ReadOnly = true; - this.colShopId.Visible = false; - this.colShopId.Width = 55; - // - // colShopName - // - this.colShopName.FillWeight = 150F; - this.colShopName.HeaderText = "店铺名称"; - this.colShopName.Name = "colShopName"; - this.colShopName.ReadOnly = true; - this.colShopName.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colShopName.Width = 75; - // - // colAuthStatus - // - this.colAuthStatus.HeaderText = "授权状态"; - this.colAuthStatus.Name = "colAuthStatus"; - this.colAuthStatus.ReadOnly = true; - this.colAuthStatus.Width = 65; - // - // colLoginStatus - // - this.colLoginStatus.HeaderText = "登录状态"; - this.colLoginStatus.Name = "colLoginStatus"; - this.colLoginStatus.ReadOnly = true; - this.colLoginStatus.Width = 65; - // - // 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; - // - // colMessage - // - this.colMessage.HeaderText = "消息"; - this.colMessage.Name = "colMessage"; - this.colMessage.ReadOnly = true; - this.colMessage.Visible = false; - this.colMessage.Width = 120; - // - // panelEx1 - // - this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control; - this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.panelEx1.Controls.Add(this.ucTabControl1); - this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty; - this.panelEx1.Dock = System.Windows.Forms.DockStyle.Fill; - this.panelEx1.Location = new System.Drawing.Point(0, 0); - this.panelEx1.Name = "panelEx1"; - this.panelEx1.Padding = new System.Windows.Forms.Padding(1); - this.panelEx1.Size = new System.Drawing.Size(1073, 367); - this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center; - this.panelEx1.Style.BackColor1.Color = System.Drawing.Color.White; - this.panelEx1.Style.BackColor2.Color = System.Drawing.Color.White; - 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.TabIndex = 183; - // - // ucTabControl1 - // - this.ucTabControl1.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(251)))), ((int)(((byte)(251)))), ((int)(((byte)(251))))); - this.ucTabControl1.Controls.Add(this.tabPageCheckResult); - this.ucTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.ucTabControl1.Location = new System.Drawing.Point(1, 1); - this.ucTabControl1.Name = "ucTabControl1"; - this.ucTabControl1.Padding = new System.Drawing.Point(10, 3); - this.ucTabControl1.SelectedIndex = 0; - this.ucTabControl1.ShowCloseButton = true; - this.ucTabControl1.Size = new System.Drawing.Size(1071, 365); - this.ucTabControl1.TabIndex = 0; - this.ucTabControl1.TabSelectColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.ucTabControl1.TabTextColor = System.Drawing.Color.Gray; - // - // tabPageCheckResult - // - this.tabPageCheckResult.Location = new System.Drawing.Point(2, 26); - this.tabPageCheckResult.Name = "tabPageCheckResult"; - this.tabPageCheckResult.Padding = new System.Windows.Forms.Padding(3); - this.tabPageCheckResult.Size = new System.Drawing.Size(1065, 335); - this.tabPageCheckResult.TabIndex = 0; - this.tabPageCheckResult.Text = "店铺1"; - this.tabPageCheckResult.UseVisualStyleBackColor = true; - // - // 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.Size = new System.Drawing.Size(1350, 26); - this.splitContainer4.SplitterDistance = 1235; - 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(1235, 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(17, 0); - 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.Click += new System.EventHandler(this.btnClear_Click); - // - // tabPageViolateFileList - // - this.tabPageViolateFileList.Location = new System.Drawing.Point(2, 26); - this.tabPageViolateFileList.Name = "tabPageViolateFileList"; - this.tabPageViolateFileList.Padding = new System.Windows.Forms.Padding(3); - this.tabPageViolateFileList.Size = new System.Drawing.Size(1065, 335); - this.tabPageViolateFileList.TabIndex = 1; - this.tabPageViolateFileList.Text = "店铺2"; - this.tabPageViolateFileList.UseVisualStyleBackColor = true; - // - // FullMinusForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1350, 561); - this.Controls.Add(this.splitContainer1); - this.Name = "FullMinusForm"; - this.Text = "FullMinusForm"; - this.Load += new System.EventHandler(this.FullMinusForm_Load); - this.VisibleChanged += new System.EventHandler(this.FullMinusForm_VisibleChanged); - this.splitContainer1.Panel1.ResumeLayout(false); - this.splitContainer1.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); - this.splitContainer1.ResumeLayout(false); - this.ucGroupBoxEx2.ResumeLayout(false); - this.ucGroupBoxEx2.PerformLayout(); - this.ucGroupBoxEx4.ResumeLayout(false); - this.panel12.ResumeLayout(false); - this.panel15.ResumeLayout(false); - this.panel15.PerformLayout(); - this.panel13.ResumeLayout(false); - this.panel13.PerformLayout(); - this.panel14.ResumeLayout(false); - this.panel14.PerformLayout(); - this.panel16.ResumeLayout(false); - this.panel8.ResumeLayout(false); - this.panel8.PerformLayout(); - this.panel11.ResumeLayout(false); - this.panel11.PerformLayout(); - this.panel10.ResumeLayout(false); - this.panel10.PerformLayout(); - this.panel9.ResumeLayout(false); - this.panel9.PerformLayout(); - this.ucGroupBoxEx3.ResumeLayout(false); - this.panel7.ResumeLayout(false); - this.panel7.PerformLayout(); - this.panel6.ResumeLayout(false); - this.panel6.PerformLayout(); - this.panel4.ResumeLayout(false); - this.panel4.PerformLayout(); - this.panel3.ResumeLayout(false); - this.panel3.PerformLayout(); - this.pnlDiscount.ResumeLayout(false); - this.pnlDiscount.PerformLayout(); - this.panel5.ResumeLayout(false); - this.panel5.PerformLayout(); - this.panel1.ResumeLayout(false); - this.panel1.PerformLayout(); - this.panel2.ResumeLayout(false); - this.panel2.PerformLayout(); - this.ucGroupBoxEx1.ResumeLayout(false); - 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.dgvShop)).EndInit(); - this.panelEx1.ResumeLayout(false); - this.ucTabControl1.ResumeLayout(false); - 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 ucGroupBoxEx2; - private DevComponents.DotNetBar.PanelEx btnManagerAct; - private DevComponents.DotNetBar.PanelEx btnSubAct; - private DevComponents.DotNetBar.PanelEx btnGetProduct; - private DevComponents.DotNetBar.PanelEx btnStopGetProduct; - private UserComponent.UcGroupBoxEx ucGroupBoxEx1; - private UserControls.ButtonEx btnRefreshShop; - private System.Windows.Forms.SplitContainer splitContainer3; - private System.Windows.Forms.SplitContainer splitContainer2; - private UserComponent.DataGridViewEx dgvShop; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopId; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopName; - private System.Windows.Forms.DataGridViewTextBoxColumn colAuthStatus; - private System.Windows.Forms.DataGridViewTextBoxColumn colLoginStatus; - private System.Windows.Forms.DataGridViewCheckBoxColumn colCanUse; - private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; - private DevComponents.DotNetBar.PanelEx panelEx1; - private UserComponent.UcTabControl ucTabControl1; - private System.Windows.Forms.TabPage tabPageCheckResult; - private System.Windows.Forms.TabPage tabPageViolateFileList; - private System.Windows.Forms.SplitContainer splitContainer4; - private UserControls.StatusBarUserControl statusBar; - private DevComponents.DotNetBar.PanelEx btnClear; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.RadioButton rdoOverPieces; - private System.Windows.Forms.RadioButton rdoOverYuan; - private System.Windows.Forms.Label lblType; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.TextBox txtActName; - private System.Windows.Forms.Label lblName; - private System.Windows.Forms.DateTimePicker dptEndTime; - private System.Windows.Forms.Label lblStartTime; - private System.Windows.Forms.DateTimePicker dptStartTime; - private System.Windows.Forms.Label lblEndTime; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.RadioButton rdoAllow; - private System.Windows.Forms.RadioButton rdoNotAllow; - private UserComponent.UcGroupBoxEx ucGroupBoxEx3; - private UserComponent.UcGroupBoxEx ucGroupBoxEx4; - private System.Windows.Forms.Panel pnlDiscount; - private System.Windows.Forms.TextBox txtP1; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.TextBox txtP2; - private System.Windows.Forms.Label label5; - private DevComponents.DotNetBar.PanelEx btnRemove1; - private DevComponents.DotNetBar.PanelEx btnAdd1; - private System.Windows.Forms.Panel panel7; - private DevComponents.DotNetBar.PanelEx btnRemove5; - private System.Windows.Forms.Label label15; - private System.Windows.Forms.TextBox txtP10; - private System.Windows.Forms.TextBox txtP9; - private System.Windows.Forms.Label label16; - private System.Windows.Forms.Label label17; - private System.Windows.Forms.Panel panel6; - private DevComponents.DotNetBar.PanelEx btnRemove4; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.TextBox txtP8; - private System.Windows.Forms.TextBox txtP7; - private System.Windows.Forms.Label label13; - private System.Windows.Forms.Label label14; - private System.Windows.Forms.Panel panel4; - private DevComponents.DotNetBar.PanelEx btnRemove3; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.TextBox txtP6; - private System.Windows.Forms.TextBox txtP5; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Panel panel3; - private DevComponents.DotNetBar.PanelEx btnRemove2; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.TextBox txtP4; - private System.Windows.Forms.TextBox txtP3; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label8; - private DevComponents.DotNetBar.PanelEx btnAdd2; - private System.Windows.Forms.Panel panel8; - private DevComponents.DotNetBar.PanelEx btnRemove6; - private System.Windows.Forms.Label label18; - private System.Windows.Forms.TextBox txtP12; - private System.Windows.Forms.TextBox txtP11; - private System.Windows.Forms.Label label19; - private System.Windows.Forms.Label label20; - private System.Windows.Forms.Panel panel9; - private System.Windows.Forms.RadioButton rdoReduction; - private System.Windows.Forms.RadioButton rdoDiscount; - private System.Windows.Forms.Panel panel11; - private DevComponents.DotNetBar.PanelEx btnRemove8; - private System.Windows.Forms.Label label24; - private System.Windows.Forms.TextBox txtP16; - private System.Windows.Forms.TextBox txtP15; - private System.Windows.Forms.Label label25; - private System.Windows.Forms.Label label26; - private System.Windows.Forms.Panel panel10; - private DevComponents.DotNetBar.PanelEx btnRemove7; - private System.Windows.Forms.Label label21; - private System.Windows.Forms.TextBox txtP14; - private System.Windows.Forms.TextBox txtP13; - private System.Windows.Forms.Label label22; - private System.Windows.Forms.Label label23; - private System.Windows.Forms.Panel panel12; - private DevComponents.DotNetBar.PanelEx btnAdd3; - private System.Windows.Forms.Panel panel13; - private DevComponents.DotNetBar.PanelEx btnRemove11; - private System.Windows.Forms.Label label27; - private System.Windows.Forms.TextBox txtP22; - private System.Windows.Forms.TextBox txtP21; - private System.Windows.Forms.Label label28; - private System.Windows.Forms.Label label29; - private System.Windows.Forms.Panel panel14; - private DevComponents.DotNetBar.PanelEx btnRemove10; - private System.Windows.Forms.Label label30; - private System.Windows.Forms.TextBox txtP20; - private System.Windows.Forms.TextBox txtP19; - private System.Windows.Forms.Label label31; - private System.Windows.Forms.Label label32; - private System.Windows.Forms.Panel panel15; - private DevComponents.DotNetBar.PanelEx btnRemove9; - private System.Windows.Forms.Label label33; - private System.Windows.Forms.TextBox txtP18; - private System.Windows.Forms.TextBox txtP17; - private System.Windows.Forms.Label label34; - private System.Windows.Forms.Label label35; - private System.Windows.Forms.Panel panel16; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/FullMinusForm.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/FullMinusForm.cs deleted file mode 100644 index c6d0793..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/FullMinusForm.cs +++ /dev/null @@ -1,1055 +0,0 @@ -using AllBase; -using AllBase.Helper; -using AllBase.Model.Result; -using CefSharp.WinForms; -using TemuKJD.Extension; -using TemuKJD.Helper; -using TemuKJD.KJDForms.BaseForms; -using TemuKJD.KJDForms.ShopForms; -using NaiBa.CefHelper; -using NaiBa.CefHelper.Handler; -using NaiBa.Util.Extension; -using System; -using System.Collections.Generic; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace TemuKJD.KJDForms.SalesCenterForms -{ - public partial class FullMinusForm : BaseForm - { - public FullMinusForm() - { - InitializeComponent(); - } - - private CheckBox chkSelectAll = null; - private List lstShopId = new List(); - public ChromiumWebBrowser webBrowser = null; - public CancellationTokenSource cancellationTokenSource = null; - - private void FullMinusForm_Load(object sender, EventArgs e) - { - this.ucTabControl1.TabPages.Clear(); - - chkSelectAll = dgvShop.Columns["colSelect"].AddHeaderCheckBox(HorizontalAlignment.Center, 0, 0, null, null, false); - dgvShop.Columns["colSelect"].HeaderText = ""; - chkSelectAll.Width = chkSelectAll.Height = 13; - chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged; - - dptStartTime.Value = DateTime.Now; - dptEndTime.Value = dptStartTime.Value.AddDays(1).AddSeconds(-1); - } - - private void chkSelectAll_CheckedChanged(object sender, EventArgs e) - { - if (!chkSelectAll.Checked) - { - lstShopId.Clear(); - foreach (DataGridViewRow row in dgvShop.Rows) - { - row.Cells["colSelect"].Value = false; - } - } - else - { - lstShopId.Clear(); - var list = GlobalConfig.ShopLoginList.Where(s => s.ApiAuthStatus == "授权成功" && s.LoginStatus == "登录成功").Select(ss => ss.ShopId); - lstShopId.AddRange(list); - foreach (DataGridViewRow row in dgvShop.Rows) - { - if (list.Any(l => l == row.Cells["colShopId"]?.Value?.ToString())) - row.Cells["colSelect"].Value = true; - } - } - } - - private void FullMinusForm_VisibleChanged(object sender, EventArgs e) - { - if (Visible == true) - RefreshShop(); - } - private void RefreshShop() - { - // 更新选中的上货店铺Id - lstShopId = lstShopId.Where(id => GlobalConfig.ShopLoginList.Any(s => s.ShopId == id && s.LoginStatus == "已授权")).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) - { - BindShop(shopEntity); - } - } - private void BindShop(ShopLoginInfo shopEntity) - { - if (shopEntity == null) - return; - - bool canUse = shopEntity.ApiAuthStatus == "授权成功" && shopEntity.LoginStatus == "登录成功"; - var row = dgvShop.Rows.Cast().FirstOrDefault(p => p.Cells.GetCellValueFromColumnName("colShopId").ParseToString() == shopEntity.ShopId); - if (row == null) - { - this.dgvShop.Rows.Add( - lstShopId.Contains(shopEntity.ShopId) && canUse, - shopEntity.ShopId, - shopEntity.ShopAccount, - shopEntity.ApiAuthStatus, - shopEntity.LoginStatus, - canUse, - string.Empty - ); - } - else - { - row.Cells["colSelect"].Value = lstShopId.Contains(shopEntity.ShopId) && canUse; - if (!row.Cells["colSelect"].Value.ParseToBool()) - chkSelectAll.Checked = false; - row.Cells["colShopName"].Value = shopEntity.ShopAccount; - row.Cells["colAuthStatus"].Value = shopEntity.ApiAuthStatus; - row.Cells["colLoginStatus"].Value = shopEntity.LoginStatus; - row.Cells["colCanUse"].Value = canUse; - } - } - - private void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - string headerText = dgvShop.Columns[e.ColumnIndex].HeaderText; - string columnName = dgvShop.Columns[e.ColumnIndex].Name; - long shopId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToLong(); - string shopName = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ToString(); - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId.ToString()); - var row = dgvShop.Rows[e.RowIndex]; - switch (columnName) - { - case "colSelect": - if (row.Cells["colCanUse"].Value.ParseToBool()) - { - row.Cells["colSelect"].Value = !row.Cells["colSelect"].Value.ParseToBool(); - if (dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value.ParseToBool()) - { - if (lstShopId.Any(p => p == shopId.ToString())) - lstShopId.RemoveAll(p => p == shopId.ToString()); - lstShopId.Add(shopId.ToString()); - } - else - lstShopId.Remove(shopId.ToString()); - if (dgvShop.Rows.Cast().All(r => r.Cells["colSelect"].Value.ParseToBool())) - chkSelectAll.Checked = true; - else - chkSelectAll.Checked = false; - } - else - { - BaseMsgForm.ShowInfo("店铺未授权或未登录!"); - } - break; - } - } - - private void rdoOverYuan_CheckedChanged(object sender, EventArgs e) - { - if (rdoOverPieces.Checked) - { - ucGroupBoxEx3.Visible = false; - ucGroupBoxEx4.Location = new Point(ucGroupBoxEx3.Location.X, ucGroupBoxEx3.Location.Y); - ucGroupBoxEx4.Visible = true; - if (rdoDiscount.Checked) - { - panel12.Visible = false; - panel16.Visible = true; - } - else if (rdoReduction.Checked) - { - panel12.Visible = true; - panel16.Visible = false; - } - } - else if (rdoOverYuan.Checked) - { - ucGroupBoxEx3.Visible = true; - ucGroupBoxEx4.Visible = false; - } - } - - private void btnAdd1_Click(object sender, EventArgs e) - { - if (btnAdd1.Text == "增加规则(1/5)") - { - panel3.Visible = true; - btnRemove1.Enabled = true; - btnAdd1.Text = "增加规则(2/5)"; - } - else if (btnAdd1.Text == "增加规则(2/5)") - { - panel4.Visible = true; - btnAdd1.Text = "增加规则(3/5)"; - } - else if (btnAdd1.Text == "增加规则(3/5)") - { - panel6.Visible = true; - btnAdd1.Text = "增加规则(4/5)"; - } - else if (btnAdd1.Text == "增加规则(4/5)") - { - panel7.Visible = true; - btnAdd1.Text = "增加规则(5/5)"; - btnAdd1.Enabled = false; - } - } - - public string getbtnAdd1(string str) - { - var res = "增加规则(1/5)"; - if (str == "增加规则(5/5)") - res = "增加规则(4/5)"; - else if (str == "增加规则(4/5)") - res = "增加规则(3/5)"; - else if (str == "增加规则(3/5)") - res = "增加规则(2/5)"; - return res; - } - - private void btnRemove1_Click(object sender, EventArgs e) - { - if (panel7.Visible) - { - txtP1.Text = txtP3.Text; - txtP2.Text = txtP4.Text; - txtP3.Text = txtP5.Text; - txtP4.Text = txtP6.Text; - txtP5.Text = txtP7.Text; - txtP6.Text = txtP8.Text; - txtP7.Text = txtP9.Text; - txtP8.Text = txtP10.Text; - txtP9.Text = txtP10.Text = string.Empty; - panel7.Visible = false; - } - else if (panel6.Visible) - { - txtP1.Text = txtP3.Text; - txtP2.Text = txtP4.Text; - txtP3.Text = txtP5.Text; - txtP4.Text = txtP6.Text; - txtP5.Text = txtP7.Text; - txtP6.Text = txtP8.Text; - txtP7.Text = txtP8.Text = string.Empty; - panel6.Visible = false; - } - else if (panel4.Visible) - { - txtP1.Text = txtP3.Text; - txtP2.Text = txtP4.Text; - txtP3.Text = txtP5.Text; - txtP4.Text = txtP6.Text; - txtP5.Text = txtP6.Text = string.Empty; - panel4.Visible = false; - } - else if (panel3.Visible) - { - txtP1.Text = txtP3.Text; - txtP2.Text = txtP4.Text; - txtP3.Text = txtP4.Text = string.Empty; - panel3.Visible = false; - btnRemove1.Enabled = false; - } - - btnAdd1.Text = getbtnAdd1(btnAdd1.Text); - if (!btnAdd1.Enabled) - btnAdd1.Enabled = true; - } - - private void btnRemove2_Click(object sender, EventArgs e) - { - if (panel7.Visible) - { - txtP3.Text = txtP5.Text; - txtP4.Text = txtP6.Text; - txtP5.Text = txtP7.Text; - txtP6.Text = txtP8.Text; - txtP7.Text = txtP9.Text; - txtP8.Text = txtP10.Text; - txtP9.Text = txtP10.Text = string.Empty; - panel7.Visible = false; - } - else if (panel6.Visible) - { - txtP3.Text = txtP5.Text; - txtP4.Text = txtP6.Text; - txtP5.Text = txtP7.Text; - txtP6.Text = txtP8.Text; - txtP7.Text = txtP8.Text = string.Empty; - panel6.Visible = false; - } - else if (panel4.Visible) - { - txtP3.Text = txtP5.Text; - txtP4.Text = txtP6.Text; - txtP5.Text = txtP6.Text = string.Empty; - panel4.Visible = false; - } - else - { - txtP3.Text = txtP4.Text = string.Empty; - panel3.Visible = false; - } - - btnAdd1.Text = getbtnAdd1(btnAdd1.Text); - if (!btnAdd1.Enabled) - btnAdd1.Enabled = true; - } - - private void btnRemove3_Click(object sender, EventArgs e) - { - if (panel7.Visible) - { - txtP5.Text = txtP7.Text; - txtP6.Text = txtP8.Text; - txtP7.Text = txtP9.Text; - txtP8.Text = txtP10.Text; - txtP9.Text = txtP10.Text = string.Empty; - panel7.Visible = false; - } - else if (panel6.Visible) - { - txtP5.Text = txtP7.Text; - txtP6.Text = txtP8.Text; - txtP7.Text = txtP8.Text = string.Empty; - panel6.Visible = false; - } - else - { - txtP5.Text = txtP6.Text = string.Empty; - panel4.Visible = false; - } - - btnAdd1.Text = getbtnAdd1(btnAdd1.Text); - if (!btnAdd1.Enabled) - btnAdd1.Enabled = true; - } - - private void btnRemove4_Click(object sender, EventArgs e) - { - if (panel7.Visible) - { - txtP7.Text = txtP9.Text; - txtP8.Text = txtP10.Text; - txtP9.Text = txtP10.Text = string.Empty; - panel7.Visible = false; - } - else - { - txtP7.Text = txtP8.Text = string.Empty; - panel6.Visible = false; - } - - btnAdd1.Text = getbtnAdd1(btnAdd1.Text); - if (!btnAdd1.Enabled) - btnAdd1.Enabled = true; - } - - private void btnRemove5_Click(object sender, EventArgs e) - { - txtP9.Text = txtP10.Text = string.Empty; - panel7.Visible = false; - - btnAdd1.Text = "增加规则(4/5)"; - if (!btnAdd1.Enabled) - btnAdd1.Enabled = true; - } - - private void btnAdd2_Click(object sender, EventArgs e) - { - if (btnAdd2.Text == "增加规则(1/3)") - { - panel10.Visible = true; - btnRemove6.Enabled = true; - btnAdd2.Text = "增加规则(2/3)"; - } - else if (btnAdd2.Text == "增加规则(2/3)") - { - panel11.Visible = true; - btnAdd2.Text = "增加规则(3/3)"; - btnAdd2.Enabled = false; - } - } - - public string getbtnAdd2(string str) - { - var res = "增加规则(1/3)"; - if (str == "增加规则(3/3)") - res = "增加规则(2/3)"; - return res; - } - - private void btnRemove6_Click(object sender, EventArgs e) - { - if (panel11.Visible) - { - txtP11.Text = txtP13.Text; - txtP12.Text = txtP14.Text; - txtP13.Text = txtP15.Text; - txtP14.Text = txtP16.Text; - txtP15.Text = txtP16.Text = string.Empty; - panel11.Visible = false; - } - else if (panel10.Visible) - { - txtP11.Text = txtP13.Text; - txtP12.Text = txtP14.Text; - txtP13.Text = txtP14.Text = string.Empty; - panel10.Visible = false; - btnRemove6.Enabled = false; - } - btnAdd2.Text = getbtnAdd2(btnAdd2.Text); - if (!btnAdd2.Enabled) - btnAdd2.Enabled = true; - } - - private void btnRemove7_Click(object sender, EventArgs e) - { - if (panel11.Visible) - { - txtP13.Text = txtP15.Text; - txtP14.Text = txtP16.Text; - txtP15.Text = txtP16.Text = string.Empty; - panel11.Visible = false; - } - else - { - txtP13.Text = txtP14.Text = string.Empty; - panel10.Visible = false; - btnRemove6.Enabled = false; - } - btnAdd2.Text = getbtnAdd2(btnAdd2.Text); - if (!btnAdd2.Enabled) - btnAdd2.Enabled = true; - } - - private void btnRemove8_Click(object sender, EventArgs e) - { - txtP15.Text = txtP16.Text = string.Empty; - panel11.Visible = false; - - btnAdd2.Text = "增加规则(2/3)"; - if (!btnAdd2.Enabled) - btnAdd2.Enabled = true; - } - - private void btnAdd3_Click(object sender, EventArgs e) - { - if (btnAdd3.Text == "增加规则(1/3)") - { - panel14.Visible = true; - btnRemove9.Enabled = true; - btnAdd3.Text = "增加规则(2/3)"; - } - else if (btnAdd3.Text == "增加规则(2/3)") - { - panel13.Visible = true; - btnAdd3.Text = "增加规则(3/3)"; - btnAdd3.Enabled = false; - } - } - - private void btnRemove9_Click(object sender, EventArgs e) - { - if (panel13.Visible) - { - txtP17.Text = txtP19.Text; - txtP18.Text = txtP20.Text; - txtP19.Text = txtP21.Text; - txtP20.Text = txtP22.Text; - txtP21.Text = txtP22.Text = string.Empty; - panel13.Visible = false; - } - else if (panel14.Visible) - { - txtP17.Text = txtP19.Text; - txtP18.Text = txtP20.Text; - txtP19.Text = txtP20.Text = string.Empty; - panel14.Visible = false; - btnRemove9.Enabled = false; - } - btnAdd3.Text = getbtnAdd2(btnAdd3.Text); - if (!btnAdd3.Enabled) - btnAdd3.Enabled = true; - } - - private void btnRemove10_Click(object sender, EventArgs e) - { - if (panel13.Visible) - { - txtP19.Text = txtP21.Text; - txtP20.Text = txtP22.Text; - txtP21.Text = txtP22.Text = string.Empty; - panel13.Visible = false; - } - else - { - txtP19.Text = txtP20.Text = string.Empty; - panel14.Visible = false; - btnRemove9.Enabled = false; - } - btnAdd3.Text = getbtnAdd2(btnAdd3.Text); - if (!btnAdd3.Enabled) - btnAdd3.Enabled = true; - } - - private void btnRemove11_Click(object sender, EventArgs e) - { - txtP21.Text = txtP22.Text = string.Empty; - panel13.Visible = false; - - btnAdd3.Text = "增加规则(2/3)"; - if (!btnAdd3.Enabled) - btnAdd3.Enabled = true; - } - - private void rdoDiscount_CheckedChanged(object sender, EventArgs e) - { - if (rdoReduction.Checked) - { - panel12.Visible = true; - panel16.Visible = false; - } - else - { - panel12.Visible = false; - panel16.Visible = true; - } - } - - private void btnGetProduct_Click(object sender, EventArgs e) - { - if (lstShopId.Count == 0) - { - BaseMsgForm.ShowInfo("请选择店铺!"); - return; - } - btnManagerAct.Enabled = false; - cancellationTokenSource = new CancellationTokenSource(); - Task.Run(() => - { - foreach (var shopId in lstShopId) - { - if (cancellationTokenSource.IsCancellationRequested) - break; - - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId); - if (shop == null) - continue; - - if (ShopListForm.Instance == null) - ShopListForm.Instance = new ShopListForm(); - ShopListForm.Instance.CheckShopLogin(new string[] { shop.ShopAccount }, false); - if (shop.LoginStatus != "登录成功") - { - Invoke(new Action(() => - { - var row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) - { - row.Cells["colLoginStatus"].Value = "未登录"; - row.Cells["colCanUse"].Value = false; - } - })); - continue; - } - - FullMinusShopForm fullMinusShopForm = null; - Invoke(new Action(() => - { - var tab = this.ucTabControl1.TabPages.Cast().FirstOrDefault(t => t.Text == shop.ShopAccount && t.Name == "tab" + shop.ShopId); - if (tab == null) - { - tab = new TabPage(); - tab.Name = "tab" + shop.ShopId; - tab.Text = shop.ShopAccount; - ucTabControl1.TabPages.Add(tab); - - FullMinusShopForm fullMinusShop = new FullMinusShopForm(shop); - fullMinusShop.fullMinusForm = this; - fullMinusShop.TopLevel = false; - fullMinusShop.Left = 0; - fullMinusShop.Top = 0; - fullMinusShop.FormBorderStyle = FormBorderStyle.None; - fullMinusShop.AutoSize = true; - fullMinusShop.Dock = DockStyle.Fill; - fullMinusShop.Show(); - tab.Controls.Add(fullMinusShop); - } - if (tab.Controls.Count > 0) - { - fullMinusShopForm = tab.Controls[0] as FullMinusShopForm; - ucTabControl1.SelectedTab = tab; - } - })); - if (fullMinusShopForm != null) - { - fullMinusShopForm.GetProduct(); - } - } - Invoke(new Action(() => { btnManagerAct.Enabled = true; })); - }, cancellationTokenSource.Token); - } - - public void GetProductByCef(ShopLoginInfo shop) - { - if (webBrowser == null) - { - Invoke(new Action(() => - { - webBrowser = CEFBrowser.CreateChromiumWebBrowser("about:blank", false); - webBrowser.KeyboardHandler = new KeyboardHandler(); - webBrowser.Dock = DockStyle.Fill; - Helper.CustomResourceRequestHandlerLocal resourceRequestHandler = new Helper.CustomResourceRequestHandlerLocal(); - resourceRequestHandler.ResourceLoadCompleteEvent += RequestHandler_ResourceLoadCompleteEvent; - webBrowser.RequestHandler = new CustomRequestHandler(resourceRequestHandler); - webBrowser.LifeSpanHandler = new LifeSpanHandlerLocal(PopWindowType.SelfWindow); - webBrowser.SendToBack(); - splitContainer3.Panel1.Controls.Add(webBrowser); - })); - } - while (webBrowser.Tag != null) - Thread.Sleep(Randomx.GetId(50, 100)); - - if (cancellationTokenSource.IsCancellationRequested) - return; - - webBrowser.Tag = shop; - - while (!webBrowser.IsBrowserInitialized || webBrowser.IsLoading) - continue; - - var cookie = shop.Cookies; - CEFBrowser.DeleteCookie(webBrowser.RequestContext.GetCookieManager(null)); - var t = CEFBrowser.SetCookieAsync("jinritemai.com", cookie, webBrowser.RequestContext.GetCookieManager(null)); - t.Wait(2000); - Thread.Sleep(500); - - var targetUrl = "https://fxg.jinritemai.com/market/center/tools/moneyoff"; - webBrowser.Load(targetUrl); - - while (webBrowser.IsLoading) - { - Thread.Sleep(1000); - } - Thread.Sleep(3000); - - while (webBrowser.Tag != null) - { - Thread.Sleep(Randomx.GetId(50, 100)); - } - Thread.Sleep(3000); - } - - private void RequestHandler_ResourceLoadCompleteEvent(object sender, string url, string postData, string responseData, CefSharp.IRequest iRequest) - { - if (url.StartsWith("https://fxg.jinritemai.com/marketing/activity/v1/query_full_discount_activity?activity_status=")) - { - if (webBrowser.Tag != null) - { - var listUrl = url; - var referrerUrl = iRequest.ReferrerUrl; - var result = responseData; - Dictionary headers = new Dictionary(); - foreach (var hk in iRequest.Headers.AllKeys) - { - headers[hk] = iRequest.Headers[hk]; - } - - var shop = webBrowser.Tag as ShopLoginInfo; - var tab = this.ucTabControl1.TabPages.Cast().FirstOrDefault(t => t.Text == shop.ShopAccount && t.Name == "tab" + shop.ShopId); - if (tab != null && this.btnManagerAct.Enabled == false) - { - var minusShopForm = tab.Controls[0] as FullMinusShopForm; - Task.Run(() => - { - var cookies = CEFBrowser.GetCookie("", webBrowser.RequestContext.GetCookieManager(null)); - if (minusShopForm != null) - minusShopForm.GetProductSim(listUrl, referrerUrl, headers, result, dptStartTime.Value.ToString(), dptEndTime.Value.ToString()); - - webBrowser.Tag = null; - Thread.Sleep(1000); - }); - } - else - { - tab = this.ucTabControl1.TabPages.Cast().FirstOrDefault(t => t.Text == shop.ShopAccount + "活动管理" && t.Name == "tab" + shop.ShopId + "Active"); - if (tab != null) - { - var activeForm = tab.Controls[0] as FullMinusActiveForm; - - Task.Run(() => - { - if (activeForm != null) - activeForm.GetActiveSim(listUrl, referrerUrl, headers, result); - - webBrowser.Tag = null; - Thread.Sleep(1000); - }); - } - } - } - } - } - - private void btnStopGetProduct_Click(object sender, EventArgs e) - { - if (cancellationTokenSource != null) - cancellationTokenSource.Cancel(); - webBrowser.Tag = null; - } - - private void btnSubAct_Click(object sender, EventArgs e) - { - if (lstShopId.Count <= 0) - { - BaseMsgForm.ShowInfo("请选择要设置的店铺!"); - return; - } - //活动名称 - var actName = txtActName.Text.Trim(); - if (actName == string.Empty) - actName = "活动" + "-" + DateTime.Now.ToString("ssffff"); - else if (actName.Length > 10) - { - if (BaseMsgForm.ShowConfirm("活动名称不能超过十个字,确定继续使用该名称吗?").DialogResult == DialogResult.OK) - actName = actName.Substring(0, 10); - else - return; - } - var enable_use_coupon = rdoAllow.Checked; - if (dptStartTime.Value >= dptEndTime.Value) - { - BaseMsgForm.ShowInfo("活动时间设置有误!"); - return; - } - - Task.Run(() => - { - foreach (var shopId in lstShopId) - { - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId); - if (shop == null) - continue; - - var cookies = shop.Cookies; - if (ucTabControl1.TabPages["tab" + shopId] != null && ucTabControl1.TabPages["tab" + shopId].Controls.Count > 0) - { - var minusForm = ucTabControl1.TabPages["tab" + shopId].Controls[0] as FullMinusShopForm; - if (minusForm != null) - { - Invoke(new Action(() => { minusForm.statusBar.lblTaskStatus.Text = "正在创建活动"; })); - List strList = minusForm.lstProductId; - if (strList.Count == 0) - { - BaseMsgForm.ShowInfo("请选择店铺 " + shop.ShopAccount + " 参加活动的商品!"); - return; - } - else - { - try - { - var postData = string.Empty; - int activity_type = 1; - int discount_type = 3; - if (rdoOverPieces.Checked) - { - activity_type = 2; - if (rdoDiscount.Checked) - discount_type = 1; - } - postData = postData + "{\"full_discount_activity\":{\"activity_type\":" + activity_type + ",\"discount_type\":" + discount_type + ",\"start_time\":" + BaseClass.DateTimeToTimestampSeconds(dptStartTime.Value) + ",\"end_time\":" + BaseClass.DateTimeToTimestampSeconds(dptEndTime.Value) + ",\"discounts\":["; - if (rdoOverYuan.Checked) - { - var overP1 = txtP1.Text.Trim(); var disP2 = txtP2.Text.Trim(); - if (overP1 == string.Empty || overP1.ParseToDouble() <= 0 || overP1.ParseToDouble() > 99999 || disP2 == string.Empty || disP2.ParseToDouble() <= 0 || disP2.ParseToDouble() >= overP1.ParseToDouble()) - { - Invoke(new Action(() => { minusForm.ShowVisitorMessage("优惠设置有误,金额需大于0小于100000,小数点后最多2位,!"); })); - return; - } - postData = postData + "{\"condition_value\":\"" + overP1.ParseToDouble() * 100 + "\",\"discount\":\"" + disP2.ParseToDouble() * 100 + "\"}"; - if (panel3.Visible && txtP3.Text.Trim() != string.Empty && txtP4.Text.Trim() != string.Empty) - { - var overP3 = txtP3.Text.Trim().ParseToDouble(); var disP4 = txtP4.Text.Trim().ParseToDouble(); - if (overP3 <= overP1.ParseToDouble() || overP3 > 99999 || disP4 <= disP2.ParseToDouble() || disP4 >= overP3) - { - Invoke(new Action(() => { minusForm.ShowVisitorMessage("优惠设置有误,金额需大于0小于100000,小数点后最多2位,下一层级的【优惠】要大于上一层级!"); })); - return; - } - postData = postData + ",{\"condition_value\":\"" + overP3 * 100 + "\",\"discount\":\"" + disP4 * 100 + "\"}"; - - if (panel4.Visible && txtP5.Text.Trim() != string.Empty && txtP6.Text.Trim() != string.Empty) - { - var overP5 = txtP5.Text.Trim().ParseToDouble(); var disP6 = txtP6.Text.Trim().ParseToDouble(); - if (overP5 <= overP3 || overP5 > 99999 || disP6 <= disP4 || disP6 >= overP5) - { - Invoke(new Action(() => { minusForm.ShowVisitorMessage("优惠设置有误,金额需大于0小于100000,小数点后最多2位,下一层级的【优惠】要大于上一层级!"); })); - return; - } - postData = postData + ",{\"condition_value\":\"" + overP5 * 100 + "\",\"discount\":\"" + disP6 * 100 + "\"}"; - - if (panel6.Visible && txtP7.Text.Trim() != string.Empty && txtP8.Text.Trim() != string.Empty) - { - var overP7 = txtP7.Text.Trim().ParseToDouble(); var disP8 = txtP8.Text.Trim().ParseToDouble(); - if (overP7 <= overP5 || overP7 > 99999 || disP8 <= disP6 || disP8 >= overP7) - { - Invoke(new Action(() => { minusForm.ShowVisitorMessage("优惠设置有误,金额需大于0小于100000,小数点后最多2位,下一层级的【优惠】要大于上一层级!"); })); - return; - } - postData = postData + ",{\"condition_value\":\"" + overP7 * 100 + "\",\"discount\":\"" + disP8 * 100 + "\"}"; - - if (panel7.Visible && txtP9.Text.Trim() != string.Empty && txtP10.Text.Trim() != string.Empty) - { - var overP9 = txtP9.Text.Trim().ParseToDouble(); var disP10 = txtP10.Text.Trim().ParseToDouble(); - if (overP9 <= overP7 || overP9 > 99999 || disP10 <= disP8 || disP10 >= overP9) - { - Invoke(new Action(() => { minusForm.ShowVisitorMessage("优惠设置有误,金额需大于0小于100000,小数点后最多2位,下一层级的【优惠】要大于上一层级!"); })); - return; - } - postData = postData + ",{\"condition_value\":\"" + overP9 * 100 + "\",\"discount\":\"" + disP10 * 100 + "\"}"; - } - } - } - } - } - else - { - if (rdoDiscount.Checked) - { - var overP11 = txtP11.Text.Trim(); var disP12 = txtP12.Text.Trim(); - if (overP11 == string.Empty || disP12 == string.Empty || overP11.ParseToLong() < 2 || overP11.ParseToLong() > 999 || disP12.ParseToDouble() <= 0 || disP12.ParseToDouble() >= 10) - { - Invoke(new Action(() => { minusForm.ShowVisitorMessage("优惠设置有误,件数需大于1小于1000,打折需大于0小于10,小数点后最多1位!"); })); - return; - } - postData = postData + "{\"condition_value\":\"" + overP11 + "\",\"discount\":\"" + disP12.ParseToDouble() * 10 + "\"}"; - - if (panel10.Visible && txtP13.Text.Trim() != string.Empty && txtP14.Text.Trim() != string.Empty) - { - var overP13 = txtP13.Text.Trim().ParseToLong(); var disP14 = txtP14.Text.Trim().ParseToDouble(); - if (overP13 <= overP11.ParseToLong() || overP13 > 999 || disP14 >= disP12.ParseToDouble() || disP14 <= 0) - { - Invoke(new Action(() => { minusForm.ShowVisitorMessage("优惠设置有误,件数需大于1小于1000,打折需大于0小于10,小数点后最多1位,下一层级的【优惠】要大于上一层级!"); })); - return; - } - postData = postData + ",{\"condition_value\":\"" + overP13 + "\",\"discount\":\"" + disP14 * 10 + "\"}"; - - if (panel11.Visible && txtP15.Text.Trim() != string.Empty && txtP16.Text.Trim() != string.Empty) - { - var overP15 = txtP15.Text.Trim().ParseToLong(); var disP16 = txtP16.Text.Trim().ParseToDouble(); - if (overP15 <= overP13 || overP15 > 999 || disP16 >= disP14 || disP16 <= 0) - { - Invoke(new Action(() => { minusForm.ShowVisitorMessage("优惠设置有误,件数需大于1小于1000,打折需大于0小于10,小数点后最多1位,下一层级的【优惠】要大于上一层级!"); })); - return; - } - postData = postData + ",{\"condition_value\":\"" + overP15 + "\",\"discount\":\"" + disP16 * 10 + "\"}"; - } - } - } - else - { - var overP17 = txtP17.Text.Trim(); var disP18 = txtP18.Text.Trim(); - if (overP17 == string.Empty || disP18 == string.Empty || overP17.ParseToLong() < 2 || overP17.ParseToLong() > 999 || disP18.ParseToDouble() <= 0 || disP18.ParseToDouble() > 99999) - { - Invoke(new Action(() => { minusForm.ShowVisitorMessage("优惠设置有误,件数需大于1小于1000,金额需大于0小于100000,小数点后最多2位!"); })); - return; - } - postData = postData + "{\"condition_value\":\"" + overP17 + "\",\"discount\":\"" + disP18.ParseToDouble() * 100 + "\"}"; - - if (panel14.Visible && txtP19.Text.Trim() != string.Empty && txtP20.Text.Trim() != string.Empty) - { - var overP19 = txtP19.Text.Trim().ParseToLong(); var disP20 = txtP20.Text.Trim().ParseToDouble(); - if (overP19 <= overP17.ParseToLong() || overP19 > 999 || disP20 <= disP18.ParseToDouble() || disP20 > 99999) - { - Invoke(new Action(() => { minusForm.ShowVisitorMessage("优惠设置有误,件数需大于1小于1000,金额需大于0小于100000,小数点后最多2位,下一层级的【优惠】要大于上一层级!"); })); - return; - } - postData = postData + ",{\"condition_value\":\"" + overP19 + "\",\"discount\":\"" + disP20 * 100 + "\"}"; - - if (panel13.Visible && txtP21.Text.Trim() != string.Empty && txtP22.Text.Trim() != string.Empty) - { - var overP21 = txtP21.Text.Trim().ParseToLong(); var disP22 = txtP22.Text.Trim().ParseToDouble(); - if (overP21 <= overP19 || overP21 > 999 || disP22 <= disP20 || disP22 > 99999) - { - Invoke(new Action(() => { minusForm.ShowVisitorMessage("优惠设置有误,件数需大于1小于1000,金额需大于0小于100000,小数点后最多2位,下一层级的【优惠】要大于上一层级!"); })); - return; - } - postData = postData + ",{\"condition_value\":\"" + overP21 + "\",\"discount\":\"" + disP22 * 100 + "\"}"; - } - } - } - } - postData = postData + "],\"activity_name\":\"" + actName + "\",\"enable_use_coupon\":" + enable_use_coupon.ToString().ToLower() + ",\"activity_products\":["; - if (strList.Count > 100) - strList = strList.Take(100).ToList(); - - foreach (var id in strList) - { - DouProductPromotionListInfo info = minusForm.productList.FirstOrDefault(q => q.product_id == id); - if (info != null) - { - postData = postData + "{\"product_id\":\"" + info.product_id + "\",\"name\":\"" + info.name + "\",\"img\":\"" + info.img + "\",\"stock_num\":" + info.stock_num + ",\"max_price\":" + info.max_price + ",\"min_price\":" + info.min_price + "},"; - } - } - postData = postData.TrimEnd(',') + "]}}"; - - string checkPro = minusForm.checkFullDiscountActivity(postData, cookies); - if (checkPro.Contains(",\"msg\":\"成功\",\"st\":0")) - { - string createPro = minusForm.createFullDiscountActivity(postData, cookies); - if (createPro.Contains(",\"msg\":\"成功\",\"st\":0")) - { - Invoke(new Action(() => { minusForm.ShowVisitorMessage("活动" + actName + "创建成功。"); })); - if (dptStartTime.Value <= DateTime.Now && dptEndTime.Value > DateTime.Now) - minusForm.RefreshdgvProduct(strList); - - var tab1 = this.ucTabControl1.TabPages.Cast().FirstOrDefault(t => t.Text == shop.ShopAccount + "活动管理" && t.Name == "tab" + shop.ShopId + "Active"); - if (tab1 != null) - { - FullMinusActiveForm actForm = tab1.Controls[0] as FullMinusActiveForm; - actForm.activeList.Clear(); - } - } - else - { - Invoke(new Action(() => { minusForm.ShowVisitorMessage(actName + "活动创建失败!原因:" + BaseRegex.GetStringJson(ref createPro, "msg")); })); - } - } - else - { - Invoke(new Action(() => { minusForm.ShowVisitorMessage(actName + "活动创建失败!原因:" + BaseRegex.GetStringJson(ref checkPro, "msg")); })); - } - } - catch (Exception ex) - { - Invoke(new Action(() => { minusForm.ShowVisitorMessage(actName + "活动创建失败!原因:" + ex.Message); })); - } - } - Invoke(new Action(() => { minusForm.statusBar.lblTaskStatus.Text = "活动创建结束"; })); - } - } - } - }); - } - - private void btnManagerAct_Click(object sender, EventArgs e) - { - if (lstShopId.Count == 0) - { - BaseMsgForm.ShowInfo("请选择店铺!"); - return; - } - btnGetProduct.Enabled = false; - cancellationTokenSource = new CancellationTokenSource(); - Task.Run(() => - { - foreach (var shopId in lstShopId) - { - if (cancellationTokenSource.IsCancellationRequested) - break; - - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId); - if (shop == null) - continue; - - if (ShopListForm.Instance == null) - ShopListForm.Instance = new ShopListForm(); - ShopListForm.Instance.CheckShopLogin(new string[] { shop.ShopAccount }, false); - if (shop.LoginStatus != "登录成功") - { - Invoke(new Action(() => - { - var row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) - { - row.Cells["colLoginStatus"].Value = "未登录"; - row.Cells["colCanUse"].Value = false; - } - })); - continue; - } - - FullMinusActiveForm actForm = null; - Invoke(new Action(() => - { - var tab = this.ucTabControl1.TabPages.Cast().FirstOrDefault(t => t.Text == shop.ShopAccount + "活动管理" && t.Name == "tab" + shop.ShopId + "Active"); - if (tab == null) - { - tab = new TabPage(); - tab.Name = "tab" + shop.ShopId + "Active"; - tab.Text = shop.ShopAccount + "活动管理"; - this.ucTabControl1.TabPages.Add(tab); - - var minusActiveForm = new FullMinusActiveForm(shop); - minusActiveForm.fullMinusForm = this; - minusActiveForm.TopLevel = false; - minusActiveForm.Left = 0; - minusActiveForm.Top = 0; - minusActiveForm.FormBorderStyle = FormBorderStyle.None; - minusActiveForm.AutoSize = true; - minusActiveForm.Dock = DockStyle.Fill; - minusActiveForm.Show(); - tab.Controls.Add(minusActiveForm); - } - - if (tab.Controls.Count > 0) - { - actForm = tab.Controls[0] as FullMinusActiveForm; - this.ucTabControl1.SelectedTab = tab; - } - })); - if (actForm != null) - { - actForm.GetActive(); - } - } - Invoke(new Action(() => { btnGetProduct.Enabled = true; })); - }, cancellationTokenSource.Token); - } - - public void GetActiveByCef(ShopLoginInfo shop) - { - GetProductByCef(shop); - } - - private void btnClear_Click(object sender, EventArgs e) - { - if (BaseMsgForm.ShowConfirm("确定要清空结果吗?清空后需要重新获取!").DialogResult == DialogResult.OK) - { - foreach (TabPage tp in ucTabControl1.TabPages) - { - if (tp.Controls.Count > 0) - { - if (tp.Text.Contains("活动管理")) - { - var managerActiveForm = tp.Controls[0] as FullMinusActiveForm; - if (managerActiveForm != null) - managerActiveForm.ClearData(); - } - else - { - var salesForm = tp.Controls[0] as FullMinusShopForm; - if (salesForm != null) - salesForm.ClearData(); - } - } - } - } - } - } -} diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/FullMinusForm.resx b/TEMUKJD/KJDForms/SalesCenterForms/Old/FullMinusForm.resx deleted file mode 100644 index 82921c0..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/FullMinusForm.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/FullMinusShopForm.Designer.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/FullMinusShopForm.Designer.cs deleted file mode 100644 index 940be46..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/FullMinusShopForm.Designer.cs +++ /dev/null @@ -1,206 +0,0 @@ - -namespace TemuKJD.KJDForms.SalesCenterForms -{ - partial class FullMinusShopForm - { - /// - /// 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() - { - 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(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.dgvProduct = new TemuKJD.UserComponent.DataGridViewEx(); - this.label1 = new System.Windows.Forms.Label(); - this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colProductId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colProductName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colStock = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colPrice = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); - this.splitContainer2.Panel1.SuspendLayout(); - this.splitContainer2.Panel2.SuspendLayout(); - this.splitContainer2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgvProduct)).BeginInit(); - this.SuspendLayout(); - // - // splitContainer2 - // - this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; - this.splitContainer2.Location = new System.Drawing.Point(0, 0); - this.splitContainer2.Name = "splitContainer2"; - this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; - // - // splitContainer2.Panel1 - // - this.splitContainer2.Panel1.Controls.Add(this.dgvProduct); - this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 4, 4, 0); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Controls.Add(this.label1); - this.splitContainer2.Panel2.Controls.Add(this.statusBar); - this.splitContainer2.Size = new System.Drawing.Size(1021, 469); - this.splitContainer2.SplitterDistance = 439; - this.splitContainer2.TabIndex = 10; - // - // dgvProduct - // - this.dgvProduct.AllowUserToAddRows = false; - this.dgvProduct.AllowUserToDeleteRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - this.dgvProduct.BackgroundColor = System.Drawing.Color.White; - this.dgvProduct.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dgvProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; - this.dgvProduct.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgvProduct.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.colSelect, - this.colProductId, - this.colProductName, - this.colStock, - this.colPrice, - this.colMessage}); - this.dgvProduct.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvProduct.Location = new System.Drawing.Point(4, 4); - this.dgvProduct.Name = "dgvProduct"; - this.dgvProduct.ReadOnly = true; - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvProduct.RowsDefaultCellStyle = dataGridViewCellStyle3; - this.dgvProduct.RowTemplate.Height = 23; - this.dgvProduct.Size = new System.Drawing.Size(1013, 435); - this.dgvProduct.TabIndex = 6; - this.dgvProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvProduct_CellContentClick); - // - // label1 - // - this.label1.AutoSize = true; - this.label1.ForeColor = System.Drawing.Color.MidnightBlue; - this.label1.Location = new System.Drawing.Point(536, 2); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(41, 12); - this.label1.TabIndex = 3; - this.label1.Text = "label1"; - // - // 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(1021, 26); - this.statusBar.TabIndex = 2; - // - // colSelect - // - this.colSelect.FillWeight = 50F; - this.colSelect.HeaderText = "选"; - this.colSelect.Name = "colSelect"; - this.colSelect.ReadOnly = true; - this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.colSelect.Width = 41; - // - // colProductId - // - this.colProductId.HeaderText = "商品Id"; - this.colProductId.Name = "colProductId"; - this.colProductId.ReadOnly = true; - this.colProductId.Width = 150; - // - // colProductName - // - this.colProductName.HeaderText = "商品名称"; - this.colProductName.Name = "colProductName"; - this.colProductName.ReadOnly = true; - this.colProductName.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colProductName.Width = 450; - // - // colStock - // - this.colStock.HeaderText = "库存"; - this.colStock.Name = "colStock"; - this.colStock.ReadOnly = true; - this.colStock.Width = 60; - // - // colPrice - // - this.colPrice.HeaderText = "价格(¥)"; - this.colPrice.Name = "colPrice"; - this.colPrice.ReadOnly = true; - // - // colMessage - // - this.colMessage.HeaderText = "提示消息"; - this.colMessage.Name = "colMessage"; - this.colMessage.ReadOnly = true; - this.colMessage.Width = 300; - // - // FullMinusShopForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1021, 469); - this.Controls.Add(this.splitContainer2); - this.Name = "FullMinusShopForm"; - this.Text = "FullMinusShopForm"; - this.splitContainer2.Panel1.ResumeLayout(false); - this.splitContainer2.Panel2.ResumeLayout(false); - this.splitContainer2.Panel2.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); - this.splitContainer2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.dgvProduct)).EndInit(); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.SplitContainer splitContainer2; - private UserComponent.DataGridViewEx dgvProduct; - private System.Windows.Forms.Label label1; - public UserControls.StatusBarUserControl statusBar; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colProductId; - private System.Windows.Forms.DataGridViewTextBoxColumn colProductName; - private System.Windows.Forms.DataGridViewTextBoxColumn colStock; - private System.Windows.Forms.DataGridViewTextBoxColumn colPrice; - private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/FullMinusShopForm.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/FullMinusShopForm.cs deleted file mode 100644 index 2898987..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/FullMinusShopForm.cs +++ /dev/null @@ -1,308 +0,0 @@ -using AllBase; -using AllBase.Helper; -using AllBase.Model.Result; -using TemuKJD.Extension; -using NaiBa.Util.Extension; -using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; -using TemuKJD.KJDForms.BaseForms; - -namespace TemuKJD.KJDForms.SalesCenterForms -{ - public partial class FullMinusShopForm : BaseForm - { - private ShopLoginInfo shop = null; - private CheckBox chkSelectAll = null; - public List lstProductId = new List(); - public FullMinusForm fullMinusForm = null; - public List productList = new List(); - private string _signature = ""; - private string _underline = ""; - public bool isGetProductSuccess = false; - - public FullMinusShopForm(ShopLoginInfo _shop = null) - { - InitializeComponent(); - - shop = _shop; - //设置全选按钮 - chkSelectAll = dgvProduct.Columns["colSelect"].AddHeaderCheckBox(HorizontalAlignment.Center, 0, 0, null, null, false); - dgvProduct.Columns["colSelect"].HeaderText = ""; - chkSelectAll.Width = chkSelectAll.Height = 13; - chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged; //全选事件 - } - private void chkSelectAll_CheckedChanged(object sender, EventArgs e) - { - if (!chkSelectAll.Checked) - { - lstProductId.Clear(); - foreach (DataGridViewRow row in dgvProduct.Rows) - { - row.Cells["colSelect"].Value = false; - } - } - else - { - lstProductId.Clear(); //先清空,然后把id加入list - foreach (DataGridViewRow row in dgvProduct.Rows) - { - row.Cells["colSelect"].Value = true; - long ProductId = row.Cells["colProductId"].Value.ParseToLong(); - lstProductId.Add(ProductId.ToString()); - } - } - } - public void ShowVisitorMessage(string msg) - { - Invoke(new Action(() => { this.label1.Text = msg; })); - } - - public void GetProduct() - { - if (shop == null) - return; - - ShowVisitorMessage(""); - foreach (DataGridViewRow r in dgvProduct.Rows) - { - r.Cells["colStock"].Value = "获取中"; - r.Cells["colMessage"].Value = ""; - } - - Task.Run(() => - { - if (shop.LoginStatus == "登录成功") - fullMinusForm.GetProductByCef(shop); - - var rowsTemp = dgvProduct.Rows.Cast().ToList(); - rowsTemp.Reverse(); - }).Wait(); - } - - public void GetProductSim(string listUrl, string referrerUrl, Dictionary headers, string firstPageData = "", string campaign_start_time = "", string campaign_end_time = "") - { - ShowVisitorMessage(""); - foreach (DataGridViewRow r in dgvProduct.Rows) - { - Invoke(new Action(() => - { - r.Cells["colStock"].Value = "获取中"; - r.Cells["colMessage"].Value = ""; - })); - } - - ShowVisitorMessage("正在准备获取商品"); - int total = -1; - int number = 0; - string result = ""; - if (!string.IsNullOrEmpty(firstPageData)) - result = firstPageData; - - referrerUrl = "https://fxg.jinritemai.com/market/center/tools/moneyoff"; - _underline = BaseRegex.GetMatchRegexString(ref listUrl, "&_=([\\s\\S]+?)&"); - if (string.IsNullOrEmpty(_underline)) - _underline = BaseRegex.GetMatchRegexString(ref listUrl, "&_=([\\s\\S]+?)"); - if (string.IsNullOrEmpty(_underline)) - _underline = BaseClass.DateTimeToTimestampMilliseconds(DateTime.Now).ToString(); - _signature = BaseRegex.GetMatchRegexString(ref listUrl, "&_signature=([\\s\\S]+?)&"); - if (string.IsNullOrEmpty(_signature)) - { - var listUrl2 = listUrl + "&"; - _signature = BaseRegex.GetMatchRegexString(ref listUrl2, "&_signature=([\\s\\S]+?)&"); - } - listUrl = "https://fxg.jinritemai.com/marketing/activity/v1/query_product?name=&page=1&pageSize=15&start_time=" + BaseClass.DateTimeToTimestampSeconds(campaign_start_time.ParseToDateTime()) + "&end_time=" + BaseClass.DateTimeToTimestampSeconds(campaign_end_time.ParseToDateTime()) + "&_bid=ecom_market_shop&appid=1&_=" + _underline + "&_signature=" + _signature; - - for (int i = 1; i < 9999; i++) - { - if (i == 666) - { - } - result = ""; - number += 15; - for (int j = 0; j < 3 && !result.Contains("\"st\":0"); j++) - { - CommonSimRequest simRequest = new CommonSimRequest(); - simRequest.Accept = "application/json, text/plain, */*"; - if (headers.ContainsKey("Accept")) - simRequest.Accept = headers["Accept"]; - if (headers.ContainsKey("UserAgent")) - simRequest.UserAgent = headers["UserAgent"]; - - var cookie = shop.Cookies; - var rUrl = listUrl.Replace("page=1", "page=" + i); - int pageSize = 15; - if (number > 10000) - { - pageSize = 15 - (number - 10000); - if (pageSize < 0) - pageSize = 0; - rUrl = rUrl.Replace("pageSize=15", "pageSize=" + pageSize); - } - result = simRequest.Request_Get(rUrl, referrerUrl, new Dictionary(), cookie); - if (j > 0) - { - Thread.Sleep(Randomx.GetId(250, 500)); - } - ShowVisitorMessage("正在获取商品第" + i + "页"); - } - - if (result.Contains("\"st\":0") && !fullMinusForm.cancellationTokenSource.IsCancellationRequested) - { - this.isGetProductSuccess = true; - if (total == -1) - total = BaseRegex.GetIntJson(ref result, "total"); - - int totalPage = Math.Ceiling(total / 15M).ParseToInt(); - string message = "正在获取商品第" + i + "页,共" + totalPage + "页"; - ShowVisitorMessage(""); - - Invoke(new Action(() => - { - this.statusBar.lblTaskStatus.Text = message; - this.statusBar.pgbTaskProgress.Value = i; - this.statusBar.pgbTaskProgress.Text = i + "/" + totalPage; - this.statusBar.pgbTaskProgress.Maximum = totalPage; - })); - - try - { - var jObj = JObject.Parse(result); - var pList = JsonHelper.DeserializeJsonToList(jObj["data"]["data"]?.ToString()); - - foreach (var product in pList) - { - if (product.allow == false) - continue; - - if (productList.Any(p => p.product_id == product.product_id)) - productList.RemoveAll(p => p.product_id == product.product_id); - productList.Add(product); - - Invoke(new Action(() => - { - if (this.dgvProduct.Rows.Count >= productList.Count) - { - DataGridViewRow row = dgvProduct.Rows.Cast().FirstOrDefault(x => x.Cells["colProductId"].Value.ToString() == product.product_id); - if (row != null) - { - row.Cells["colStock"].Value = product.stock_num; - row.Cells["colMessage"].Value = ""; - } - else - dgvProduct.Rows.Add(false, product.product_id, product.name, product.stock_num, - product.min_price / 100M + " - " + product.max_price / 100M); - } - else - dgvProduct.Rows.Add(false, product.product_id, product.name, product.stock_num, - product.min_price / 100M + " - " + product.max_price / 100M); - })); - } - Thread.Sleep(Randomx.GetId(250, 500)); - } - catch (Exception) - { - isGetProductSuccess = false; - break; - } - } - else - { - isGetProductSuccess = false; - break; - } - - if (number >= total) - break; - } - Invoke(new Action(() => - { - if (fullMinusForm.cancellationTokenSource.IsCancellationRequested) - { - this.statusBar.lblTaskStatus.Text = "获取中断"; - } - else if (!isGetProductSuccess) - { - this.statusBar.lblTaskStatus.Text = "获取商品信息失败"; - } - else - { - this.statusBar.lblTaskStatus.Text = "获取完成"; - } - //this.statusBar.pgbTaskProgress.Value = 0; - //this.statusBar.pgbTaskProgress.Text = 0 + "/" + 0; - //this.statusBar.pgbTaskProgress.Maximum = 0; - })); - } - - private void dgvProduct_CellContentClick(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - string columnName = dgvProduct.Columns[e.ColumnIndex].Name; - long ProductId = dgvProduct.Rows[e.RowIndex].Cells["colProductId"].Value.ParseToLong(); - var row = dgvProduct.Rows[e.RowIndex]; - switch (columnName) - { - case "colSelect": - row.Cells["colSelect"].Value = !row.Cells["colSelect"].Value.ParseToBool(); - if (dgvProduct.Rows[e.RowIndex].Cells["colSelect"].Value.ParseToBool()) - lstProductId.Add(ProductId.ToString()); - else - lstProductId.Remove(ProductId.ToString()); - break; - } - } - - public void ClearData() - { - this.productList.Clear(); - this.lstProductId.Clear(); - this.dgvProduct.Rows.Clear(); - } - - public string checkFullDiscountActivity(string postData, string cookies) - { - CommonSimRequest request = new CommonSimRequest(); - request.ContentType = "application/json"; - Dictionary dicts = new Dictionary(); - string reqUrl = "https://fxg.jinritemai.com/marketing/activity/v1/check_full_discount_activity?_bid=ecom_market_shop&appid=1&_=" + _underline + "&_signature=" + _signature; - string result = request.Request_PostByBigLength(reqUrl, "https://fxg.jinritemai.com/market/center/tools/moneyoffCreate?refer=1&newFeature=true", dicts, cookies, postData); - return result; - } - - public string createFullDiscountActivity(string postData, string cookies) - { - CommonSimRequest request = new CommonSimRequest(); - request.ContentType = "application/json"; - Dictionary dicts = new Dictionary(); - string reqUrl = "https://fxg.jinritemai.com/marketing/activity/v1/create_full_discount_activity?_bid=ecom_market_shop&appid=1&_=" + _underline + "&_signature=" + _signature; - string result = request.Request_PostByBigLength(reqUrl, "https://fxg.jinritemai.com/market/center/tools/moneyoffCreate?refer=1&newFeature=true", dicts, cookies, postData); - return result; - } - - public void RefreshdgvProduct(List strList) - { - if (strList != null && strList.Count > 0) - { - Invoke(new Action(() => - { - for (int i = 0; i < dgvProduct.Rows.Count; i++) - { - DataGridViewRow row = dgvProduct.Rows[i]; - long ActiveId = row.Cells["colProductId"].Value.ParseToLong(); - if (strList.Any(p => p == ActiveId.ToString())) - { - dgvProduct.Rows.Remove(row); - lstProductId.Remove(ActiveId.ToString()); - } - } - })); - } - } - } -} diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/FullMinusShopForm.resx b/TEMUKJD/KJDForms/SalesCenterForms/Old/FullMinusShopForm.resx deleted file mode 100644 index 0fcc52d..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/FullMinusShopForm.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyCustomActivityNameForm.Designer.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyCustomActivityNameForm.Designer.cs deleted file mode 100644 index 6085250..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyCustomActivityNameForm.Designer.cs +++ /dev/null @@ -1,131 +0,0 @@ -namespace TemuKJD.KJDForms.SalesCenterForms -{ - partial class GroupBuyCustomActivityNameForm - { - /// - /// 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() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(GroupBuyCustomActivityNameForm)); - this.panel2 = new System.Windows.Forms.Panel(); - this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.btnSave = new DevComponents.DotNetBar.PanelEx(); - this.panel2.SuspendLayout(); - this.SuspendLayout(); - // - // panel2 - // - this.panel2.BackColor = System.Drawing.Color.White; - this.panel2.Controls.Add(this.labelX1); - this.panel2.Controls.Add(this.textBoxX1); - this.panel2.Controls.Add(this.btnSave); - this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel2.Location = new System.Drawing.Point(1, 33); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(383, 416); - this.panel2.TabIndex = 1; - // - // labelX1 - // - this.labelX1.AutoSize = true; - // - // - // - this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX1.ForeColor = System.Drawing.Color.Gray; - this.labelX1.Location = new System.Drawing.Point(16, 11); - this.labelX1.Name = "labelX1"; - this.labelX1.Size = new System.Drawing.Size(359, 18); - this.labelX1.TabIndex = 462; - this.labelX1.Text = "请输入自定义活动名称,一行一个(长度1-5个字,必须为中文):"; - // - // textBoxX1 - // - this.textBoxX1.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.textBoxX1.Border.Class = "TextBoxBorder"; - this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxX1.Location = new System.Drawing.Point(16, 35); - this.textBoxX1.Multiline = true; - this.textBoxX1.Name = "textBoxX1"; - this.textBoxX1.PreventEnterBeep = true; - this.textBoxX1.Size = new System.Drawing.Size(351, 338); - this.textBoxX1.TabIndex = 461; - // - // btnSave - // - this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnSave.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnSave.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnSave.DisabledBackColor = System.Drawing.Color.Empty; - this.btnSave.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSave.Location = new System.Drawing.Point(309, 379); - this.btnSave.Name = "btnSave"; - this.btnSave.Size = new System.Drawing.Size(58, 23); - this.btnSave.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnSave.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSave.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSave.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnSave.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnSave.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnSave.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnSave.Style.GradientAngle = 90; - this.btnSave.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnSave.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSave.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSave.TabIndex = 460; - this.btnSave.Text = "保存"; - this.btnSave.Click += new System.EventHandler(this.btnSave_Click); - // - // GroupBuyCustomActivityNameForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.ClientSize = new System.Drawing.Size(385, 450); - this.Controls.Add(this.panel2); - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Name = "GroupBuyCustomActivityNameForm"; - this.Text = "自定义拼团活动名称"; - this.TitleText = "自定义拼团活动名称"; - this.Controls.SetChildIndex(this.panel2, 0); - this.panel2.ResumeLayout(false); - this.panel2.PerformLayout(); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel2; - private DevComponents.DotNetBar.LabelX labelX1; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; - private DevComponents.DotNetBar.PanelEx btnSave; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyCustomActivityNameForm.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyCustomActivityNameForm.cs deleted file mode 100644 index 727560e..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyCustomActivityNameForm.cs +++ /dev/null @@ -1,36 +0,0 @@ -using TemuKJD.KJDForms.BaseForms; -using NaiBa.Util; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace TemuKJD.KJDForms.SalesCenterForms -{ - public partial class GroupBuyCustomActivityNameForm : LRBaseForm - { - public GroupBuyCustomActivityNameForm() - { - InitializeComponent(); - - this.Load += GroupBuyCustomActivityNameForm_Load; - } - - private void GroupBuyCustomActivityNameForm_Load(object sender, EventArgs e) - { - this.textBoxX1.Text = string.Join("\r\n", GroupBuyForm.CustomActivityNames) + "\r\n"; - } - - private void btnSave_Click(object sender, EventArgs e) - { - GroupBuyForm.CustomActivityNames = this.textBoxX1.Text.Trim().Split(new string[] { "\r", "\n" }, StringSplitOptions.RemoveEmptyEntries).ToList(); - NaiBa.Util.Helper.ConfigHelper.SaveConfig>("group_buy_custom_names", GroupBuyForm.CustomActivityNames); - this.Close(); - } - } -} diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyCustomActivityNameForm.resx b/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyCustomActivityNameForm.resx deleted file mode 100644 index e330b8a..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyCustomActivityNameForm.resx +++ /dev/null @@ -1,298 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - - - AAABAAEAgIAQcgAAAABoKAAAFgAAACgAAACAAAAAAAEAAAEABAAAAAAAACgAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAgICAAMDAwAAAAP8AAP8AAAD//wD/AAAA/wD/AP// - AAD///8AAAAAAAAAAAAAAAAABEZmbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZmZkQAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAZszMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMxmAAAAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMxkAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzGQAAAAAAAAAAAAAAAAAAAbMzMzMzMzMzMzMzMzMzMzMzMzMd3d3d3d3d3 - d3d3fMzMzMzMzMzMzMzMzMzMzMzMzMYAAAAAAAAAAAAAAAAARszMzMzMzMzMzMzMzMzMzMd3d3iIiIiI - iIiIiIiIiIh3d3d8zMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAABszMzMzMzMzMzMzMzMzMx3eIiIiI - iIiIiIiIiIiIiIiIiIiIiHd8zMzMzMzMzMzMzMzMzMxgAAAAAAAAAAAAAGzMzMzMzMzMzMzMzMzMd4iI - iIiIiIiIiIiIiIiIiIiIiIiIiIiIiHfMzMzMzMzMzMzMzMzMxgAAAAAAAAAAAAbMzMzMzMzMzMzMzMzH - eIiIiIiIiIiHZmZmZmZmZmZmZ3eIiIiIiIiIiHzMzMzMzMzMzMzMzMxgAAAAAAAAAABszMzMzMzMzMzM - zMzHiIiIiIiHZmZmZmZmZmZmZmZmZmZmZmZmeIiIiIiIfMzMzMzMzMzMzMzMxgAAAAAAAAAGzMzMzMzM - zMzMzMzHiIiIiIdmZmZmZgAAAAAAAAAAAAZmZmZmZmZmeIiIiIh8zMzMzMzMzMzMzMxgAAAAAAAATMzM - zMzMzMzMzMzHiIiIiHZmZgAAAAAAAAAAAAEAAAAAAAAAAGZmZmZniIiIiHzMzMzMzMzMzMzMxAAAAAAA - AGzMzMzMzMzMzMzMeIiIiGZmAAAAAAERERmZmZmZmZmZkRERERAAAGZmZmZ4iIiIfMzMzMzMzMzMzMYA - AAAAAAbMzMzMzMzMzMzMeIiIiGZgAAAAERmZmZmZmZmZmZmZmZmZmZmZkREAAGZmZniIiIfMzMzMzMzM - zMzMYAAAAABMzMzMzMzMzMzMzIiIiHYAAAARGZmZiIiIj///////+IiIiIeZmZmZkREAZmZmiIiIfMzM - zMzMzMzMzMQAAAAAbMzMzMzMzMzMzO6IiIYAAAARmYiI/////////////////////4iHmZmZEQBmZmeI - iIh8zMzMzMzMzMzGAAAABMzMzMzMzMzMzMeIiIdgAAAZmI////////////////////////////iJmZmR - EGZmZ4iIh8zMzMzMzMzMzEAAAAbMzMzMzMzMzMzoiIhwAAAZeP////////////////////////////// - /4iZmZEAZmZ4iIh8zMzMzMzMzMxgAABMzMzMzMzMzMzOiIiGAAABiP////////////////////////// - ////////+JmZkQZmZ4iIh8zMzMzMzMzMxAAAbMzMzMzMzMzM7oiIYAABeP////////////////////// - ///////////////4mZkQZmZ4iIjMzMzMzMzMzMYAAMzMzMzMzMzMzu6IhwAAGP////////////////// - /////////////////////4iZmRZmZ4iIfMzMzMzMzMzMAAbMzMzMzMzMzM7oiHAAB4////////////// - ////////////////////////////iZmRBmZ4iIfMzMzMzMzMzGAGzMzMzMzMzMzuiIcAAHj///////// - //////////////////////////////////iZmRZmZ4iIzMzMzMzMzMxgDMzMzMzMzMzM7ohwAAf///// - ////////////////////////////////////////95mRZmaIiHzMzMzMzMzMwEzMzMzMzMzMzuiIEABo - //////////////////////////////////////////////95mRZmaIiMzMzMzMzMzMRszMzMzMzMzM7o - hwAGj///////////////////////////////////////////////95kQZmeIh8zMzMzMzMzGbMzMzMzM - zMzu6HEAB/////////////////////////////////////////////////+ZkQZmiIjMzMzMzMzMxmzM - zMzMzMzM7ohwAGj/////////////////////////////////////////////////iZkWZniIfMzMzMzM - zMZszMzMzMzMxu6HEAbv/4iI/////////////////////////////////////////4iP//iZEGZoiHzM - zMzMzMzGbMzMzMzMzM7uhxAGj/iIiIj//////////////////////////////////////4iIiI//mZFm - aIiMzMzMzMzMxszMzMzMzMzO6IEAbv+IiIiIj/////////////////////////////////////iIiIiP - /4mRBmeIh8zMzMzMzMbMzMzMzMzMbuhxAG7/iIiIiI////////////////iIj///j//////////////4 - iIiIiP/5mQZmiIfMzMzMzMzMzMzMzMzMzO7ocQDo+IiIiIiP///////////////u7u7u7u7o//////// - ////iIiIiIj/+JkWZoiHzMzMzMzMzMzMzMzMzMzu6BEG7/iIiIiIj/////////////+Hd3ju5maO7v// - /////////4iIiIiI//iZEGaIh8zMzMzMzMzMzMzMzMzM7ugRBu//iIiIiI//////////////kZmZdmAZ - mP/////////////4iIiIiP//mRBmeIjMzMzMzMzMzMzMzMzMzO7nEAbv/4iIiIiP////////////+HiI - mZEBd5n/////////////+IiIiIj//4mQZniIzMzMzMzMzMzMzMzMzMzu5xAO7//4iIiI//ju7o////// - //j//4mZeP/4//////////////iIiIiP//+JkGZ4iHzMzMzMzMzMzMzMzMzG7ocQDu///4iI//ju7u7u - j//////////4mP//////////////7u7uiIiI////iZBmaIh8zMzMzMzMzMzMzMzMzu6HEG7v//////+G - ZmZ47u7//////////4//////////////7u7u7u6P/////4mQBmiIfMzMzMzMzMzMzMzMzM7uhRBu7/// - ///3AAAAF37u7///////////////////////h2AABm7u7v/////5kAZ4iHzMzMzMzMzMzMzMzMzO7oUQ - bu//////gQAAZgEG7u//////////////////////+BAAAAAFfu6P////+ZAGeIjMzMzMzMzMzMzMzMzM - zu6FEG7v////+JEAAXhwAG7o/////////////////////4gAABEGARbu7/////kQBoiIzMzMzMzMzMzM - zMzMzM7uhRBu7/////iZABmZkQBm6P////////////////////+JABGZF2AAbo////+JEGaIiMzMzMzM - zMzMzMzMzMzO7ucRbu/////4mRZ4iZkQBu//////////////////////mQB5mZdgAG7/////iRBmiIfM - zMzMzMzMzMzMzMzMxu7nEQ7v////+Bl+j/iZEAaP/////////////////////5l2/4mRAABu/////4kQ - ZoiHzMzMzMzMzMzMzMzMzMzu5xEO6P//+Phgbu/4kQAI//////////////////////+Zfo/4kQAAeIiP - //+JEGaIh8zMzMzMzMzMzMzMzMzM7ucRBu7///iOYHiI+HAAf///////////////////////mYjv+BAA - BuiIj///iQBniIfMzMzMzMzMzMzMzMzMzO7nEQbu///3EAAG6IcRF4iP/////////////////////4GP - /4cQAAZnbv///5EAaIiMzMzMzMzMzMzMzMzMzMzu5xEW7v//iRF3dmZgAXjmj/////////////////// - ///3ePiBEQAHdm7///iRAGiIfMzMzMzMzMzMzMzMzMzM7u5xFu6P/5EZmXZmZmbmaP////////////// - ///////4/4d2cRAAFwbuj//4kQZoiHzMzMzMzMzMzMzMzMzMzG7ucRDu7/iXiZkQAAZmAH////////// - ////////////+IiIdmYABmAX//j/+BAGeIh8zMzMzMzMzMzMzMzMzMzO7nEQbu/4iP+BERkREZf///// - //////////////////+JmXdxEBEAB3////kQBoiIzMzMzMzMzMzMzMzMzMzMzu5xEW7o+P//gZmZmZmP - ////////////////////////+JmZmZmZl453//+JAGaIh8zMzMzMzMzMzMzMzMzMzM7u5xEO7vj/+IeP - iIj////////////////////////////4iZmZmZiPiP//cQBoiIfMzMzMzMzMzMzMzMzMzMzM7ucRFu6P - //iP//////////////////////////////////////+Jn/j/+JAAaIiMzMzMzMzMzMzMzMzMzMzMzO7n - ERbu7//4/////////////////////////////////////////4j///gQBoiIfMzMzMzMzMzMzMzMzMzM - zMzu7nERbuj////////////////////////////////////////////4//+BAAaIiMzMzMzMzMzMzMzM - zMzMzMzMzu5xEW7u////////////////////////////////////////////////cQBoiIfMzMzMzMzM - zMzMzMzMzMzMzM7u5xEW7u//////////////////////////////////////////////+BAAaIiMzMzM - zMzMzMzMzMzMzMzMzMzO7uYREO7o//7v//////////////////////////////////////////cABoiI - fMzMzMzMzMzMzMzMzMzMzMzMzO7ucRFu7oj/7o////////////////////////////////////////9x - AAeIiMzMzMzMzMzMzMzMzMzMzMzMzMzO7ucRFu7nePju7u7v//////////////////////////////// - 6P/4EAB4iIfMzMzMzMzMzMzMzMzMzMzMzMzMzu7nERBu7nmIiO7oj/////////////////////////// - ju7u7o//hwAGiIh8zMzMzMzMzMzMzMzMzMzMzMzMzMzu7nERbu7nmZl5eP////////////////////// - ///4iPiO5nj/+HAAaIiIzMzMzMzMzMzMzMzMzMzMzMzMzMzM7u7nERbu7oiZeI////////////////// - ////////+ImXd5mP/4cAAHiIh8zMzMzMzMzMzMzMzMzMzMzMzMzMzM7u53ERbu7v//////////////// - ///////////////4iZl4//hgAAeIiHzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM7u53ERBu7v////////// - //////////////////////////+GAAB4iI7MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzO7uiHEADujv//// - ///////////////////////////////3AAAGiIh8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzO7ohwABmP - ////////////////////////////////////iREAZniIjMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzuiI - EAB4f///////////////////////////////////+JmZkWZoiIfMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zO6IhwBo//////////////////////////////////////iImZl2ZoiIzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzuiHAA7////////////////////////////////////////4iZFmZ4iHzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzO6IgQBo/////4j///////////////////////////////////mZFmaIiMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzuiHAA7/////iIiP//////7o//////////////////iI/////4mRZmeIh8zMzMzM - zMzMzMzMzMzMzMzMzMzMzO6IcQBo////+IiIiI/////+7u7u7uiIiI7u7v////iIiI/////5mRZmiIjM - zMzMzMzMzMzMzMzMzMzMzMzMzMzuiHAA7////4iIiIiIj//3d2bu7u7u7u7u7u7//4iIiIiP////+JkW - ZniIfMzMzMzMzMzMzMzMzMzMzMzMzMzO6IcQBo////+IiIiIiI//+ZkAAGZmZmZmZmbv//iIiIiIiP// - //+ZkWZoiIzMzMzMzMzMzMzMzMzMzMzMzMzMzuiFAG7////4iIiIiIj///iZABEREREREBAG7//4iIiI - iIj/////iZFmaIiMzMzMzMzMzMzMzMzMzMzMzMzMzO6IcQBo////+IiIiIiI///4kQARERERERERDo// - +IiIiIiIj/////mZBmeIh8zMzMzMzMzMzMzMzMzMzMzMzMzuiHAG7////4iIiIiIiP//+JFmeHd3d3dx - EW6P//iIiIiIiI/////4mRZmiIfMzMzMzMzMzMzMzMzMzMzMzMzO7ocQBo////+IiIiIiIj///iQZoiO - 7u7u5xFu7//4iIiIiIiI////+JkWZniIzMzMzMzMzMzMzMzMzMzMzMzMzuiHEA7////4iIiIiIiP///5 - kGaIju7u7ucRbu///4iIiIiIiP////95kGZ4iHzMzMzMzMzMzMzMzMzMzMzMzM7ogQBu////+IiIiIiI - j///+RBmiI7u7u7nEW7v//+IiIiIiIiP////iZFmaIh8zMzMzMzMzMzMzMzMzMzMzMzu6HEAaP////iI - iIiIiI////kQZoiHzMzu5xEO6P//iIiIiIiIj////4mRZmiIjMzMzMzMzMzMzMzMzMzMzMzM7ugRBu// - ///4iIiIiIj///+JEGaIh8zM7ucRBu7//4iIiIiIiI/////5kQZniIzMzMzMzMzMzMzMzMzMzMzMzO6I - EAbv////iIiIiIiI////iQBniIzMzO7oERbu///4iIiIiIiP////+JkGZ4iHzMzMzMzMzMzMzMzMzMzM - zMbuhxAGj////4iIiIiIj////3kAaIiMzMzu7nEW7v//+IiIiIiIiP////iZFmaIh8zMzMzMzMzMzMzM - zMzMzMzO7oUQbv////+IiIiIiI////+RBmiIfMzMzu5xFu6P//+IiIiIiIj////4mRZmiIfMzMzMzMzM - zMzMzMzMzMzMzu6BAG7////4iIiIiIj////4kQZoiHzMzM7ucRDu7///iIiIiIiIj////5kQZoiHzMzM - zMzMzMzMzMzMzMzMzM7ocQBu////+IiIiIiI////+JAGeIh8zMzO7nERbu///4iIiIiIiI////95EGaI - h8zMzMzMzMzMzMzMzMzMzMxu6HEA7v////iIiIiIiP////cQBoiIzMzMzu7lEW7v///4iIiIiIiP//// - iRBmeIjMzMzMzMzMzMzMzMzMzMzM7uhxBuj////4iIiIiI/////5EAaIiMzMzMbu5xEO7v//+IiIiIiI - j////4kQZniIzMzMzMzMzMzMzMzMzMzMzO7oEQbv////+IiIiIj/////iQBmiIfMzMzM7ucRBu7///iI - iIiIiIj///+JkGZ4iMzMzMzMzMzMzMzMzMzMzMzu6BEG7/////iIiIiI/////4EAaIiHzMzMzO7nERbu - j///iIiIiIiI////iZBmaIh8zMzMzMzMzMzMzMzMzMzM7ucRBu/////4iIiIj/////+RAGiIjMzMzMzu - 7nEQ7u////iIiIiIiP///4mQBmiIfMzMzMzMzMzMzMzMzMzMzO7nEAbv////+IiIiP/////4EAZ4iHzM - zMzMzu5xEG7v///4iIiIiIj///+JkAZoiHzMzMzMzMzMxmzMzMzMzMzu5xAO7/////+IiI//////+RAG - iIjMzMzMzM7ucRFu7v///4iIiIiI////+ZAGaIh8zMzMzMzMzMZszMzMzMzG7ocQDu//////+I////// - /4EAZoiIzMzMzMzO7ucRBu7////4iIiIiP////mQBmiIfMzMzMzMzMzGbMzMzMzMzu6HEA7v//////// - //////9xAGiIh8zMzMzMzO7nERbu7///+IiIiI/////5kAZoiHzMzMzMzMzMxmzMzMzMzM7uhxAO7/// - ///////////4EABoiIzMzMzMzMzu7nEQbu////+IiIiP////+ZAGaIh8zMzMzMzMzMZszMzMzMzO7oUQ - Du//////////////9xAGiIh8zMzMzMzM7u5xEW7u/////4iI//////mQBmiIfMzMzMzMzMzGTMzMzMzM - zu6HEA7v/////////////4EABoiIzMzMzMzMzM7u5xEG7v/////////////5kAZoiHzMzMzMzMzMxAzM - zMzMzM7uhxEO7/////////////9wAGiIh8zMzMzMzMzO7ucRFu7v////////////+RAGeIh8zMzMzMzM - zMAGzMzMzMzO7ucRDuj////////////4EAB4iIzMzMzMzMzMzO7ucRBu6P///////////4kQBoiIzMzM - zMzMzMxgBszMzMzMxu7nEQbo////////////gQAGiIh8zMzMzMzMzMzu7nERDu7///////////+JEAaI - iMzMzMzMzMzMYADMzMzMzMzu5xEG7v///////////3EAZ4iIzMzMzMzMzMzMzu7nERbu7/////////// - gQBmiIfMzMzMzMzMzAAAbMzMzMzM7ucRBu7///////////gQAGiIh8zMzMzMzMzMzM7u5xEQbu7///// - /////5EAZ4iHzMzMzMzMzMYAAEzMzMzMzO7nERDu7/////////+HAAaIiIzMzMzMzMzMzMzM7u5xEQ7u - 7/////////gQAGiIjMzMzMzMzMzEAAAGzMzMzMzu7nEQbuj////////4cAAHiIh8zMzMzMzMzMzMzO7u - dxEW7uj////////3AAZoiHzMzMzMzMzMYAAABMzMzMzM7u5xEG7u////////hgAAeIiHzMzMzMzMzMzM - zMzO7ucREW7u7///////gQAGiIh8zMzMzMzMzEAAAABszMzMzM7ucREG7uj/////hmAAB4iI7MzMzMzM - zMzMzMzMzu7ucREG7u6P////+AAAB4iIzMzMzMzMzMYAAAAATMzMzMzO7ucREG7u7oiO7mAAAHiIiMzM - zMzMzMzMzMzMzMzu7ucREG7u7o//+HYAAHiIh8zMzMzMzMzEAAAAAAbMzMzMzu7nEREG7u7u5mAAAAeI - iIfMzMzMzMzMzMzMzMzMzu7ucREQbu7u7uYAAAeIiHzMzMzMzMzMYAAAAAAAbMzMzMzu7nEREAZmZgAA - AAF4iI58zMzMzMzMzMzMzMzMzMzu7ncREQZm7mZgAAB4iI7MzMzMzMzMxgAAAAAAAEzMzMzM7u7nEREQ - AAAAABF4iI7uzMzMzMzMzMzMzMzMzMzM7u7ucRERAAAAAAAHiIiMzMzMzMzMzMQAAAAAAAAGzMzMzM7u - 7nERERERERF3iIju7MzMzMzMzMzMzMzMzMzMzM7u7udREREQAAAReIiIfMzMzMzMzMxgAAAAAAAAAGzM - zMzM7u7udRERERV4iI7u7MzMzMzMzMzMzMzMzMzMzMzM7u7u5xEREREReIiO7MzMzMzMzMzGAAAAAAAA - AAAGzMzMzM7u7u53d3eIiO7u7szMzMzMzMzMzMzMzMzMzMzMzM7u7u7nd1F3eIiO7uzMzMzMzMzMYAAA - AAAAAAAAAGzMzMzM7u7u7u7u7u7u7szMzMzMzMzMzMzMzMzMzMzMzMzMzu7u7u6IiI7u7uzMzMzMzMzM - xgAAAAAAAAAAAAAGzMzMzMzu7u7u7u7u5szMzMzMzMzMzMzMzMzMzMzMzMzMzMzO7u7u7u7u7u7MzMzM - zMzMzGAAAAAAAAAAAAAAAEbMzMzMzG7u7u7ubMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM7u7u7u7uzM - zMzMzMzMzGQAAAAAAAAAAAAAAAAAbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzG7u - 7szMzMzMzMzMzMYAAAAAAAAAAAAAAAAAAARszMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAABGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAAAABmzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzGYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARGZmzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZmZEAAAAAAAAAAAAAAAAD////+AAAAAAAAAAD/////////AAAA - AAAAAAAAAP//////+AAAAAAAAAAAAAAf/////+AAAAAAAAAAAAAAB/////+AAAAAAAAAAAAAAAH////+ - AAAAAAAAAAAAAAAAf////AAAAAAAAAAAAAAAAD////AAAAAAAAAAAAAAAAAP///gAAAAAAAAAAAAAAAA - B///wAAAAAAAAAAAAAAAAAP//4AAAAAAAAAAAAAAAAAB//8AAAAAAAAAAAAAAAAAAP/+AAAAAAAAAAAA - AAAAAAB//gAAAAAAAAAAAAAAAAAAf/wAAAAAAAAAAAAAAAAAAD/4AAAAAAAAAAAAAAAAAAAf+AAAAAAA - AAAAAAAAAAAAH/AAAAAAAAAAAAAAAAAAAA/wAAAAAAAAAAAAAAAAAAAP4AAAAAAAAAAAAAAAAAAAB+AA - AAAAAAAAAAAAAAAAAAfAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAAAAA - AAOAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAA - AAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAABAAAAAAAA - AAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAA - AAGAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAA - AAAAAAABgAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAPAAAAAAAAAAAAAAAAAAAADwAAAAAAA - AAAAAAAAAAAAA+AAAAAAAAAAAAAAAAAAAAfgAAAAAAAAAAAAAAAAAAAH8AAAAAAAAAAAAAAAAAAAD/AA - AAAAAAAAAAAAAAAAAA/4AAAAAAAAAAAAAAAAAAAf+AAAAAAAAAAAAAAAAAAAH/wAAAAAAAAAAAAAAAAA - AD/+AAAAAAAAAAAAAAAAAAB//gAAAAAAAAAAAAAAAAAAf/8AAAAAAAAAAAAAAAAAAP//gAAAAAAAAAAA - AAAAAAH//8AAAAAAAAAAAAAAAAAD///gAAAAAAAAAAAAAAAAB///8AAAAAAAAAAAAAAAAA////wAAAAA - AAAAAAAAAAA////+AAAAAAAAAAAAAAAAf////4AAAAAAAAAAAAAAAf/////gAAAAAAAAAAAAAAf///// - +AAAAAAAAAAAAAAf//////8AAAAAAAAAAAAA/////////gAAAAAAAAAAf////w== - - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyForm.Designer.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyForm.Designer.cs deleted file mode 100644 index 6a1bba6..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyForm.Designer.cs +++ /dev/null @@ -1,1446 +0,0 @@ -namespace TemuKJD.KJDForms.SalesCenterForms -{ - partial class GroupBuyForm - { - /// - /// 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(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.splitContainer5 = new System.Windows.Forms.SplitContainer(); - this.ucGroupBoxEx3 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.label15 = new System.Windows.Forms.Label(); - this.txtGetPage = new System.Windows.Forms.TextBox(); - this.pbPaste2 = new System.Windows.Forms.PictureBox(); - this.pbPaste1 = new System.Windows.Forms.PictureBox(); - this.txtFilter = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.label14 = new System.Windows.Forms.Label(); - this.txtProductName = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.lblProductName = new System.Windows.Forms.Label(); - this.txtPriceMin = new System.Windows.Forms.TextBox(); - this.label12 = new System.Windows.Forms.Label(); - this.txtPriceMax = new System.Windows.Forms.TextBox(); - this.label1 = new System.Windows.Forms.Label(); - this.txtSaleMax = new System.Windows.Forms.TextBox(); - this.txtSaleMin = new System.Windows.Forms.TextBox(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.rbOnSale = new System.Windows.Forms.RadioButton(); - this.btnStopGetProduct = new DevComponents.DotNetBar.PanelEx(); - this.btnGetProduct = new DevComponents.DotNetBar.PanelEx(); - this.rbOffSale = new System.Windows.Forms.RadioButton(); - this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.cmbSkuOptionType = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.第一个 = new DevComponents.Editors.ComboItem(); - this.最后一个 = new DevComponents.Editors.ComboItem(); - this.最便宜 = new DevComponents.Editors.ComboItem(); - this.最贵 = new DevComponents.Editors.ComboItem(); - this.不设置最便宜 = new DevComponents.Editors.ComboItem(); - this.不设置最贵 = new DevComponents.Editors.ComboItem(); - this.chkSetSkuOption = new System.Windows.Forms.CheckBox(); - this.label13 = new System.Windows.Forms.Label(); - this.panel2 = new System.Windows.Forms.Panel(); - this.btnSetName = new DevComponents.DotNetBar.PanelEx(); - this.rbCustomNames = new System.Windows.Forms.RadioButton(); - this.rbRandomNames = new System.Windows.Forms.RadioButton(); - this.lblPercentSign = new System.Windows.Forms.Label(); - this.dtpEndTime = new System.Windows.Forms.DateTimePicker(); - this.label10 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.nudEachActivityProductNum = new System.Windows.Forms.NumericUpDown(); - this.label8 = new System.Windows.Forms.Label(); - this.nudStockValue = new System.Windows.Forms.NumericUpDown(); - this.cmbDiscountType = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.打折 = new DevComponents.Editors.ComboItem(); - this.直降 = new DevComponents.Editors.ComboItem(); - this.一口价 = new DevComponents.Editors.ComboItem(); - this.cmbStockType = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.全部库存 = new DevComponents.Editors.ComboItem(); - this.百分比库存 = new DevComponents.Editors.ComboItem(); - this.统一库存 = new DevComponents.Editors.ComboItem(); - this.label5 = new System.Windows.Forms.Label(); - this.cmbLimitCount = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.不限购 = new DevComponents.Editors.ComboItem(); - this.label7 = new System.Windows.Forms.Label(); - this.nudDiscountValue = new System.Windows.Forms.NumericUpDown(); - this.cmbCancelTime = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.comboItem1 = new DevComponents.Editors.ComboItem(); - this.comboItem2 = new DevComponents.Editors.ComboItem(); - this.comboItem3 = new DevComponents.Editors.ComboItem(); - this.comboItem4 = new DevComponents.Editors.ComboItem(); - this.comboItem5 = new DevComponents.Editors.ComboItem(); - this.comboItem6 = new DevComponents.Editors.ComboItem(); - this.label6 = new System.Windows.Forms.Label(); - this.chkAutoGroup = new System.Windows.Forms.CheckBox(); - this.label17 = new System.Windows.Forms.Label(); - this.nudGroupCount = new System.Windows.Forms.NumericUpDown(); - this.label11 = new System.Windows.Forms.Label(); - this.dtpStartTime = new System.Windows.Forms.DateTimePicker(); - this.label4 = new System.Windows.Forms.Label(); - this.btnSetActivity = new DevComponents.DotNetBar.PanelEx(); - this.btnStopOperate = new DevComponents.DotNetBar.PanelEx(); - this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.btnRefreshShop = new TemuKJD.UserControls.ButtonEx(); - this.splitContainer3 = new System.Windows.Forms.SplitContainer(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colAuthStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colLoginStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colCanUse = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.panelEx1 = new DevComponents.DotNetBar.PanelEx(); - this.ucTabControl1 = new TemuKJD.UserComponent.UcTabControl(); - this.tabPage1 = new System.Windows.Forms.TabPage(); - this.tabPage2 = new System.Windows.Forms.TabPage(); - this.splitContainer4 = new System.Windows.Forms.SplitContainer(); - this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); - this.btnClear = new DevComponents.DotNetBar.PanelEx(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer5)).BeginInit(); - this.splitContainer5.Panel1.SuspendLayout(); - this.splitContainer5.Panel2.SuspendLayout(); - this.splitContainer5.SuspendLayout(); - this.ucGroupBoxEx3.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pbPaste2)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pbPaste1)).BeginInit(); - this.ucGroupBoxEx2.SuspendLayout(); - this.panel2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.nudEachActivityProductNum)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.nudStockValue)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.nudDiscountValue)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.nudGroupCount)).BeginInit(); - 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.dgvShop)).BeginInit(); - this.panelEx1.SuspendLayout(); - this.ucTabControl1.SuspendLayout(); - ((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.splitContainer5); - this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx1); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.splitContainer3); - this.splitContainer1.Size = new System.Drawing.Size(1184, 703); - this.splitContainer1.SplitterDistance = 150; - this.splitContainer1.TabIndex = 7; - // - // splitContainer5 - // - this.splitContainer5.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.splitContainer5.Location = new System.Drawing.Point(148, 3); - this.splitContainer5.Name = "splitContainer5"; - // - // splitContainer5.Panel1 - // - this.splitContainer5.Panel1.Controls.Add(this.ucGroupBoxEx3); - // - // splitContainer5.Panel2 - // - this.splitContainer5.Panel2.Controls.Add(this.ucGroupBoxEx2); - this.splitContainer5.Size = new System.Drawing.Size(1031, 149); - this.splitContainer5.SplitterDistance = 273; - this.splitContainer5.TabIndex = 400; - // - // 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.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.label15); - this.ucGroupBoxEx3.Controls.Add(this.txtGetPage); - this.ucGroupBoxEx3.Controls.Add(this.pbPaste2); - this.ucGroupBoxEx3.Controls.Add(this.pbPaste1); - this.ucGroupBoxEx3.Controls.Add(this.txtFilter); - this.ucGroupBoxEx3.Controls.Add(this.label14); - this.ucGroupBoxEx3.Controls.Add(this.txtProductName); - this.ucGroupBoxEx3.Controls.Add(this.lblProductName); - this.ucGroupBoxEx3.Controls.Add(this.txtPriceMin); - this.ucGroupBoxEx3.Controls.Add(this.label12); - this.ucGroupBoxEx3.Controls.Add(this.txtPriceMax); - this.ucGroupBoxEx3.Controls.Add(this.label1); - this.ucGroupBoxEx3.Controls.Add(this.txtSaleMax); - this.ucGroupBoxEx3.Controls.Add(this.txtSaleMin); - this.ucGroupBoxEx3.Controls.Add(this.label2); - this.ucGroupBoxEx3.Controls.Add(this.label3); - this.ucGroupBoxEx3.Controls.Add(this.rbOnSale); - this.ucGroupBoxEx3.Controls.Add(this.btnStopGetProduct); - this.ucGroupBoxEx3.Controls.Add(this.btnGetProduct); - this.ucGroupBoxEx3.Controls.Add(this.rbOffSale); - this.ucGroupBoxEx3.Location = new System.Drawing.Point(-1, -1); - this.ucGroupBoxEx3.Name = "ucGroupBoxEx3"; - this.ucGroupBoxEx3.Size = new System.Drawing.Size(276, 150); - this.ucGroupBoxEx3.TabIndex = 423; - this.ucGroupBoxEx3.TabStop = false; - this.ucGroupBoxEx3.Text = "商品查询"; - // - // label15 - // - this.label15.AutoSize = true; - this.label15.Location = new System.Drawing.Point(160, 56); - this.label15.Name = "label15"; - this.label15.Size = new System.Drawing.Size(56, 17); - this.label15.TabIndex = 514; - this.label15.Text = "获取页数"; - // - // txtGetPage - // - this.txtGetPage.Location = new System.Drawing.Point(217, 53); - this.txtGetPage.Name = "txtGetPage"; - this.txtGetPage.Size = new System.Drawing.Size(50, 23); - this.txtGetPage.TabIndex = 513; - this.txtGetPage.Text = "99999"; - // - // pbPaste2 - // - this.pbPaste2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.pbPaste2.BackColor = System.Drawing.Color.White; - this.pbPaste2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pbPaste2.Image = global::TemuKJD.Properties.Resources.FullPaste; - this.pbPaste2.Location = new System.Drawing.Point(231, 113); - this.pbPaste2.Name = "pbPaste2"; - this.pbPaste2.Size = new System.Drawing.Size(23, 23); - this.pbPaste2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; - this.pbPaste2.TabIndex = 504; - this.pbPaste2.TabStop = false; - this.pbPaste2.Click += new System.EventHandler(this.pbPaste2_Click); - // - // pbPaste1 - // - this.pbPaste1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.pbPaste1.BackColor = System.Drawing.Color.White; - this.pbPaste1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pbPaste1.Image = global::TemuKJD.Properties.Resources.FullPaste; - this.pbPaste1.Location = new System.Drawing.Point(231, 84); - this.pbPaste1.Name = "pbPaste1"; - this.pbPaste1.Size = new System.Drawing.Size(23, 23); - this.pbPaste1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; - this.pbPaste1.TabIndex = 503; - this.pbPaste1.TabStop = false; - this.pbPaste1.Click += new System.EventHandler(this.pbPaste1_Click); - // - // txtFilter - // - this.txtFilter.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - // - // - // - this.txtFilter.Border.Class = "TextBoxBorder"; - this.txtFilter.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txtFilter.Location = new System.Drawing.Point(76, 113); - this.txtFilter.Name = "txtFilter"; - this.txtFilter.PreventEnterBeep = true; - this.txtFilter.Size = new System.Drawing.Size(156, 23); - this.txtFilter.TabIndex = 502; - this.txtFilter.WatermarkText = "请输入商品编号,多个用逗号隔开"; - // - // label14 - // - this.label14.AutoSize = true; - this.label14.Location = new System.Drawing.Point(8, 116); - this.label14.Name = "label14"; - this.label14.Size = new System.Drawing.Size(69, 17); - this.label14.TabIndex = 501; - this.label14.Text = "过滤商品ID"; - this.label14.Click += new System.EventHandler(this.label14_Click); - this.label14.DoubleClick += new System.EventHandler(this.label14_DoubleClick); - // - // txtProductName - // - this.txtProductName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - // - // - // - this.txtProductName.Border.Class = "TextBoxBorder"; - this.txtProductName.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txtProductName.Location = new System.Drawing.Point(76, 84); - this.txtProductName.Name = "txtProductName"; - this.txtProductName.PreventEnterBeep = true; - this.txtProductName.Size = new System.Drawing.Size(156, 23); - this.txtProductName.TabIndex = 500; - this.txtProductName.WatermarkText = "请输入商品编号,多个用逗号隔开"; - // - // lblProductName - // - this.lblProductName.AutoSize = true; - this.lblProductName.Location = new System.Drawing.Point(8, 87); - this.lblProductName.Name = "lblProductName"; - this.lblProductName.Size = new System.Drawing.Size(69, 17); - this.lblProductName.TabIndex = 499; - this.lblProductName.Text = "指定商品ID"; - // - // txtPriceMin - // - this.txtPriceMin.Location = new System.Drawing.Point(39, 22); - this.txtPriceMin.Name = "txtPriceMin"; - this.txtPriceMin.Size = new System.Drawing.Size(38, 23); - this.txtPriceMin.TabIndex = 472; - this.txtPriceMin.Text = "0"; - // - // label12 - // - this.label12.AutoSize = true; - this.label12.Location = new System.Drawing.Point(8, 25); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(32, 17); - this.label12.TabIndex = 473; - this.label12.Text = "价格"; - // - // txtPriceMax - // - this.txtPriceMax.Location = new System.Drawing.Point(89, 22); - this.txtPriceMax.Name = "txtPriceMax"; - this.txtPriceMax.Size = new System.Drawing.Size(50, 23); - this.txtPriceMax.TabIndex = 474; - this.txtPriceMax.Text = "99999"; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(77, 25); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(13, 17); - this.label1.TabIndex = 475; - this.label1.Text = "-"; - // - // txtSaleMax - // - this.txtSaleMax.Location = new System.Drawing.Point(89, 52); - this.txtSaleMax.Name = "txtSaleMax"; - this.txtSaleMax.Size = new System.Drawing.Size(50, 23); - this.txtSaleMax.TabIndex = 478; - this.txtSaleMax.Text = "99999"; - // - // txtSaleMin - // - this.txtSaleMin.Location = new System.Drawing.Point(39, 52); - this.txtSaleMin.Name = "txtSaleMin"; - this.txtSaleMin.Size = new System.Drawing.Size(38, 23); - this.txtSaleMin.TabIndex = 476; - this.txtSaleMin.Text = "0"; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(8, 55); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(32, 17); - this.label2.TabIndex = 477; - this.label2.Text = "销量"; - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(77, 55); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(13, 17); - this.label3.TabIndex = 479; - this.label3.Text = "-"; - // - // rbOnSale - // - this.rbOnSale.AutoSize = true; - this.rbOnSale.Checked = true; - this.rbOnSale.Location = new System.Drawing.Point(11, 23); - this.rbOnSale.Name = "rbOnSale"; - this.rbOnSale.Size = new System.Drawing.Size(62, 21); - this.rbOnSale.TabIndex = 464; - this.rbOnSale.TabStop = true; - this.rbOnSale.Text = "出售中"; - this.rbOnSale.UseVisualStyleBackColor = true; - // - // btnStopGetProduct - // - this.btnStopGetProduct.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnStopGetProduct.CanvasColor = System.Drawing.SystemColors.Control; - this.btnStopGetProduct.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnStopGetProduct.DisabledBackColor = System.Drawing.Color.Empty; - this.btnStopGetProduct.Location = new System.Drawing.Point(226, 22); - this.btnStopGetProduct.Name = "btnStopGetProduct"; - this.btnStopGetProduct.Size = new System.Drawing.Size(41, 23); - this.btnStopGetProduct.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopGetProduct.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStopGetProduct.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStopGetProduct.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnStopGetProduct.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopGetProduct.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnStopGetProduct.Style.GradientAngle = 90; - this.btnStopGetProduct.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopGetProduct.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopGetProduct.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopGetProduct.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopGetProduct.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnStopGetProduct.TabIndex = 463; - this.btnStopGetProduct.Text = "停止"; - this.btnStopGetProduct.Click += new System.EventHandler(this.btnStopGetProduct_Click); - // - // btnGetProduct - // - this.btnGetProduct.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnGetProduct.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnGetProduct.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnGetProduct.DisabledBackColor = System.Drawing.Color.Empty; - this.btnGetProduct.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnGetProduct.Location = new System.Drawing.Point(163, 22); - this.btnGetProduct.Name = "btnGetProduct"; - this.btnGetProduct.Size = new System.Drawing.Size(58, 23); - this.btnGetProduct.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnGetProduct.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnGetProduct.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnGetProduct.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnGetProduct.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnGetProduct.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnGetProduct.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnGetProduct.Style.GradientAngle = 90; - this.btnGetProduct.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnGetProduct.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnGetProduct.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnGetProduct.TabIndex = 456; - this.btnGetProduct.Text = "获取商品"; - this.btnGetProduct.Click += new System.EventHandler(this.btnGetProduct_Click); - // - // rbOffSale - // - this.rbOffSale.AutoSize = true; - this.rbOffSale.Location = new System.Drawing.Point(74, 23); - this.rbOffSale.Name = "rbOffSale"; - this.rbOffSale.Size = new System.Drawing.Size(62, 21); - this.rbOffSale.TabIndex = 465; - this.rbOffSale.Text = "仓库中"; - this.rbOffSale.UseVisualStyleBackColor = true; - this.rbOffSale.Visible = false; - // - // ucGroupBoxEx2 - // - this.ucGroupBoxEx2.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.ucGroupBoxEx2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.ucGroupBoxEx2.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND; - this.ucGroupBoxEx2.Controls.Add(this.cmbSkuOptionType); - this.ucGroupBoxEx2.Controls.Add(this.chkSetSkuOption); - this.ucGroupBoxEx2.Controls.Add(this.label13); - this.ucGroupBoxEx2.Controls.Add(this.panel2); - this.ucGroupBoxEx2.Controls.Add(this.lblPercentSign); - this.ucGroupBoxEx2.Controls.Add(this.dtpEndTime); - this.ucGroupBoxEx2.Controls.Add(this.label10); - this.ucGroupBoxEx2.Controls.Add(this.label9); - this.ucGroupBoxEx2.Controls.Add(this.nudEachActivityProductNum); - this.ucGroupBoxEx2.Controls.Add(this.label8); - this.ucGroupBoxEx2.Controls.Add(this.nudStockValue); - this.ucGroupBoxEx2.Controls.Add(this.cmbDiscountType); - this.ucGroupBoxEx2.Controls.Add(this.cmbStockType); - this.ucGroupBoxEx2.Controls.Add(this.label5); - this.ucGroupBoxEx2.Controls.Add(this.cmbLimitCount); - this.ucGroupBoxEx2.Controls.Add(this.label7); - this.ucGroupBoxEx2.Controls.Add(this.nudDiscountValue); - this.ucGroupBoxEx2.Controls.Add(this.cmbCancelTime); - this.ucGroupBoxEx2.Controls.Add(this.label6); - this.ucGroupBoxEx2.Controls.Add(this.chkAutoGroup); - this.ucGroupBoxEx2.Controls.Add(this.label17); - this.ucGroupBoxEx2.Controls.Add(this.nudGroupCount); - this.ucGroupBoxEx2.Controls.Add(this.label11); - this.ucGroupBoxEx2.Controls.Add(this.dtpStartTime); - this.ucGroupBoxEx2.Controls.Add(this.label4); - this.ucGroupBoxEx2.Controls.Add(this.btnSetActivity); - this.ucGroupBoxEx2.Controls.Add(this.btnStopOperate); - this.ucGroupBoxEx2.Location = new System.Drawing.Point(-2, -1); - this.ucGroupBoxEx2.Name = "ucGroupBoxEx2"; - this.ucGroupBoxEx2.Size = new System.Drawing.Size(758, 150); - this.ucGroupBoxEx2.TabIndex = 469; - this.ucGroupBoxEx2.TabStop = false; - this.ucGroupBoxEx2.Text = "商品操作"; - // - // cmbSkuOptionType - // - this.cmbSkuOptionType.DisplayMember = "Text"; - this.cmbSkuOptionType.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbSkuOptionType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbSkuOptionType.FormattingEnabled = true; - this.cmbSkuOptionType.ItemHeight = 18; - this.cmbSkuOptionType.Items.AddRange(new object[] { - this.第一个, - this.最后一个, - this.最便宜, - this.最贵, - this.不设置最便宜, - this.不设置最贵}); - this.cmbSkuOptionType.Location = new System.Drawing.Point(513, 49); - this.cmbSkuOptionType.Name = "cmbSkuOptionType"; - this.cmbSkuOptionType.Size = new System.Drawing.Size(135, 24); - this.cmbSkuOptionType.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbSkuOptionType.TabIndex = 587; - // - // 第一个 - // - this.第一个.Text = "第一个"; - // - // 最后一个 - // - this.最后一个.Text = "最后一个"; - // - // 最便宜 - // - this.最便宜.Text = "最便宜"; - // - // 最贵 - // - this.最贵.Text = "最贵"; - // - // 不设置最便宜 - // - this.不设置最便宜.Text = "不设置最便宜"; - // - // 不设置最贵 - // - this.不设置最贵.Text = "不设置最贵"; - // - // chkSetSkuOption - // - this.chkSetSkuOption.AutoSize = true; - this.chkSetSkuOption.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chkSetSkuOption.Location = new System.Drawing.Point(421, 51); - this.chkSetSkuOption.Name = "chkSetSkuOption"; - this.chkSetSkuOption.Size = new System.Drawing.Size(93, 21); - this.chkSetSkuOption.TabIndex = 586; - this.chkSetSkuOption.Text = "设置Sku选项"; - this.chkSetSkuOption.UseVisualStyleBackColor = true; - // - // label13 - // - this.label13.AutoSize = true; - this.label13.Location = new System.Drawing.Point(418, 22); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(56, 17); - this.label13.TabIndex = 585; - this.label13.Text = "活动名称"; - // - // panel2 - // - this.panel2.Controls.Add(this.btnSetName); - this.panel2.Controls.Add(this.rbCustomNames); - this.panel2.Controls.Add(this.rbRandomNames); - this.panel2.Location = new System.Drawing.Point(477, 17); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(180, 27); - this.panel2.TabIndex = 584; - // - // btnSetName - // - this.btnSetName.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnSetName.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnSetName.DisabledBackColor = System.Drawing.Color.Empty; - this.btnSetName.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSetName.Location = new System.Drawing.Point(115, 4); - this.btnSetName.Name = "btnSetName"; - this.btnSetName.Size = new System.Drawing.Size(56, 19); - this.btnSetName.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnSetName.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSetName.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSetName.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnSetName.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnSetName.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnSetName.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnSetName.Style.GradientAngle = 90; - this.btnSetName.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnSetName.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSetName.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSetName.TabIndex = 576; - this.btnSetName.Text = "设置名称"; - this.btnSetName.Click += new System.EventHandler(this.btnSetName_Click); - // - // rbCustomNames - // - this.rbCustomNames.AutoSize = true; - this.rbCustomNames.Location = new System.Drawing.Point(54, 3); - this.rbCustomNames.Name = "rbCustomNames"; - this.rbCustomNames.Size = new System.Drawing.Size(62, 21); - this.rbCustomNames.TabIndex = 572; - this.rbCustomNames.Text = "自定义"; - this.rbCustomNames.UseVisualStyleBackColor = true; - // - // rbRandomNames - // - this.rbRandomNames.AutoSize = true; - this.rbRandomNames.Checked = true; - this.rbRandomNames.Location = new System.Drawing.Point(3, 3); - this.rbRandomNames.Name = "rbRandomNames"; - this.rbRandomNames.Size = new System.Drawing.Size(50, 21); - this.rbRandomNames.TabIndex = 571; - this.rbRandomNames.TabStop = true; - this.rbRandomNames.Text = "随机"; - this.rbRandomNames.UseVisualStyleBackColor = true; - // - // lblPercentSign - // - this.lblPercentSign.AutoSize = true; - this.lblPercentSign.Location = new System.Drawing.Point(217, 115); - this.lblPercentSign.Name = "lblPercentSign"; - this.lblPercentSign.Size = new System.Drawing.Size(19, 17); - this.lblPercentSign.TabIndex = 577; - this.lblPercentSign.Text = "%"; - // - // dtpEndTime - // - this.dtpEndTime.CustomFormat = "yyyy\'/\'MM\'/\'dd HH:mm:ss"; - this.dtpEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dtpEndTime.Location = new System.Drawing.Point(248, 19); - this.dtpEndTime.Name = "dtpEndTime"; - this.dtpEndTime.Size = new System.Drawing.Size(155, 23); - this.dtpEndTime.TabIndex = 476; - // - // label10 - // - this.label10.AutoSize = true; - this.label10.Location = new System.Drawing.Point(234, 22); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(13, 17); - this.label10.TabIndex = 570; - this.label10.Text = "-"; - // - // label9 - // - this.label9.AutoSize = true; - this.label9.Location = new System.Drawing.Point(363, 115); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(44, 17); - this.label9.TabIndex = 569; - this.label9.Text = "个商品"; - // - // nudEachActivityProductNum - // - this.nudEachActivityProductNum.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.nudEachActivityProductNum.Location = new System.Drawing.Point(304, 112); - this.nudEachActivityProductNum.Maximum = new decimal(new int[] { - 20, - 0, - 0, - 0}); - this.nudEachActivityProductNum.Minimum = new decimal(new int[] { - 1, - 0, - 0, - 0}); - this.nudEachActivityProductNum.Name = "nudEachActivityProductNum"; - this.nudEachActivityProductNum.Size = new System.Drawing.Size(56, 23); - this.nudEachActivityProductNum.TabIndex = 568; - this.nudEachActivityProductNum.Value = new decimal(new int[] { - 10, - 0, - 0, - 0}); - // - // label8 - // - this.label8.AutoSize = true; - this.label8.Location = new System.Drawing.Point(245, 115); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(56, 17); - this.label8.TabIndex = 567; - this.label8.Text = "一个活动"; - // - // nudStockValue - // - this.nudStockValue.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.nudStockValue.Location = new System.Drawing.Point(167, 112); - this.nudStockValue.Minimum = new decimal(new int[] { - 1, - 0, - 0, - 0}); - this.nudStockValue.Name = "nudStockValue"; - this.nudStockValue.Size = new System.Drawing.Size(48, 23); - this.nudStockValue.TabIndex = 566; - this.nudStockValue.Value = new decimal(new int[] { - 50, - 0, - 0, - 0}); - // - // cmbDiscountType - // - this.cmbDiscountType.DisplayMember = "Text"; - this.cmbDiscountType.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbDiscountType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbDiscountType.FormattingEnabled = true; - this.cmbDiscountType.ItemHeight = 18; - this.cmbDiscountType.Items.AddRange(new object[] { - this.打折, - this.直降, - this.一口价}); - this.cmbDiscountType.Location = new System.Drawing.Point(77, 80); - this.cmbDiscountType.Name = "cmbDiscountType"; - this.cmbDiscountType.Size = new System.Drawing.Size(84, 24); - this.cmbDiscountType.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbDiscountType.TabIndex = 565; - this.cmbDiscountType.SelectedIndexChanged += new System.EventHandler(this.cmbDiscountType_SelectedIndexChanged); - this.cmbDiscountType.SelectedValueChanged += new System.EventHandler(this.cmbDiscountType_SelectedValueChanged); - // - // 打折 - // - this.打折.Text = "打折"; - // - // 直降 - // - this.直降.Text = "直降"; - // - // 一口价 - // - this.一口价.Text = "一口价"; - // - // cmbStockType - // - this.cmbStockType.DisplayMember = "Text"; - this.cmbStockType.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbStockType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbStockType.FormattingEnabled = true; - this.cmbStockType.ItemHeight = 18; - this.cmbStockType.Items.AddRange(new object[] { - this.全部库存, - this.百分比库存, - this.统一库存}); - this.cmbStockType.Location = new System.Drawing.Point(77, 111); - this.cmbStockType.Name = "cmbStockType"; - this.cmbStockType.Size = new System.Drawing.Size(84, 24); - this.cmbStockType.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbStockType.TabIndex = 564; - this.cmbStockType.SelectedIndexChanged += new System.EventHandler(this.cmbStockType_SelectedIndexChanged); - // - // 全部库存 - // - this.全部库存.Text = "全部库存"; - // - // 百分比库存 - // - this.百分比库存.Text = "百分比库存"; - // - // 统一库存 - // - this.统一库存.Text = "统一库存"; - // - // label5 - // - this.label5.AutoSize = true; - this.label5.Location = new System.Drawing.Point(18, 115); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(56, 17); - this.label5.TabIndex = 563; - this.label5.Text = "活动库存"; - // - // cmbLimitCount - // - this.cmbLimitCount.DisplayMember = "Text"; - this.cmbLimitCount.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbLimitCount.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbLimitCount.FormattingEnabled = true; - this.cmbLimitCount.ItemHeight = 18; - this.cmbLimitCount.Items.AddRange(new object[] { - this.不限购}); - this.cmbLimitCount.Location = new System.Drawing.Point(280, 80); - this.cmbLimitCount.Name = "cmbLimitCount"; - this.cmbLimitCount.Size = new System.Drawing.Size(123, 24); - this.cmbLimitCount.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbLimitCount.TabIndex = 556; - // - // 不限购 - // - this.不限购.Text = "不限购"; - // - // label7 - // - this.label7.AutoSize = true; - this.label7.Location = new System.Drawing.Point(245, 84); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(32, 17); - this.label7.TabIndex = 555; - this.label7.Text = "限购"; - // - // nudDiscountValue - // - this.nudDiscountValue.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.nudDiscountValue.DecimalPlaces = 1; - this.nudDiscountValue.Increment = new decimal(new int[] { - 1, - 0, - 0, - 65536}); - this.nudDiscountValue.Location = new System.Drawing.Point(167, 81); - this.nudDiscountValue.Maximum = new decimal(new int[] { - 99, - 0, - 0, - 65536}); - this.nudDiscountValue.Minimum = new decimal(new int[] { - 1, - 0, - 0, - 65536}); - this.nudDiscountValue.Name = "nudDiscountValue"; - this.nudDiscountValue.Size = new System.Drawing.Size(65, 23); - this.nudDiscountValue.TabIndex = 554; - this.nudDiscountValue.Value = new decimal(new int[] { - 99, - 0, - 0, - 65536}); - // - // cmbCancelTime - // - this.cmbCancelTime.DisplayMember = "Text"; - this.cmbCancelTime.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbCancelTime.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbCancelTime.FormattingEnabled = true; - this.cmbCancelTime.ItemHeight = 18; - this.cmbCancelTime.Items.AddRange(new object[] { - this.comboItem1, - this.comboItem2, - this.comboItem3, - this.comboItem4, - this.comboItem5, - this.comboItem6}); - this.cmbCancelTime.Location = new System.Drawing.Point(327, 49); - this.cmbCancelTime.Name = "cmbCancelTime"; - this.cmbCancelTime.Size = new System.Drawing.Size(76, 24); - this.cmbCancelTime.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbCancelTime.TabIndex = 553; - // - // comboItem1 - // - this.comboItem1.Text = "3分钟"; - // - // comboItem2 - // - this.comboItem2.Text = "5分钟"; - // - // comboItem3 - // - this.comboItem3.Text = "10分钟"; - // - // comboItem4 - // - this.comboItem4.Text = "15分钟"; - // - // comboItem5 - // - this.comboItem5.Text = "20分钟"; - // - // comboItem6 - // - this.comboItem6.Text = "30分钟"; - // - // label6 - // - this.label6.AutoSize = true; - this.label6.Location = new System.Drawing.Point(244, 53); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(80, 17); - this.label6.TabIndex = 552; - this.label6.Text = "订单取消时间"; - // - // chkAutoGroup - // - this.chkAutoGroup.AutoSize = true; - this.chkAutoGroup.Checked = true; - this.chkAutoGroup.CheckState = System.Windows.Forms.CheckState.Checked; - this.chkAutoGroup.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chkAutoGroup.Location = new System.Drawing.Point(152, 51); - this.chkAutoGroup.Name = "chkAutoGroup"; - this.chkAutoGroup.Size = new System.Drawing.Size(72, 21); - this.chkAutoGroup.TabIndex = 551; - this.chkAutoGroup.Text = "自动成团"; - this.chkAutoGroup.UseVisualStyleBackColor = true; - this.chkAutoGroup.CheckedChanged += new System.EventHandler(this.chkAutoGroup_CheckedChanged); - // - // label17 - // - this.label17.AutoSize = true; - this.label17.Location = new System.Drawing.Point(18, 84); - this.label17.Name = "label17"; - this.label17.Size = new System.Drawing.Size(56, 17); - this.label17.TabIndex = 542; - this.label17.Text = "优惠方式"; - // - // nudGroupCount - // - this.nudGroupCount.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.nudGroupCount.Location = new System.Drawing.Point(77, 50); - this.nudGroupCount.Maximum = new decimal(new int[] { - 50, - 0, - 0, - 0}); - this.nudGroupCount.Minimum = new decimal(new int[] { - 1, - 0, - 0, - 0}); - this.nudGroupCount.Name = "nudGroupCount"; - this.nudGroupCount.Size = new System.Drawing.Size(63, 23); - this.nudGroupCount.TabIndex = 533; - this.nudGroupCount.Value = new decimal(new int[] { - 5, - 0, - 0, - 0}); - this.nudGroupCount.ValueChanged += new System.EventHandler(this.nudGroupCount_ValueChanged); - this.nudGroupCount.KeyDown += new System.Windows.Forms.KeyEventHandler(this.nudGroupCount_KeyDown); - // - // label11 - // - this.label11.AutoSize = true; - this.label11.Location = new System.Drawing.Point(18, 53); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(56, 17); - this.label11.TabIndex = 525; - this.label11.Text = "成团数量"; - // - // dtpStartTime - // - this.dtpStartTime.CustomFormat = "yyyy\'/\'MM\'/\'dd HH:mm:ss"; - this.dtpStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dtpStartTime.Location = new System.Drawing.Point(77, 19); - this.dtpStartTime.Name = "dtpStartTime"; - this.dtpStartTime.Size = new System.Drawing.Size(155, 23); - this.dtpStartTime.TabIndex = 475; - this.dtpStartTime.ValueChanged += new System.EventHandler(this.dtpStartTime_ValueChanged); - // - // label4 - // - this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(18, 22); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(56, 17); - this.label4.TabIndex = 474; - this.label4.Text = "活动时间"; - // - // 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(668, 22); - this.btnSetActivity.Name = "btnSetActivity"; - this.btnSetActivity.Size = new System.Drawing.Size(80, 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 = 427; - this.btnSetActivity.Text = "设置拼团"; - this.btnSetActivity.Click += new System.EventHandler(this.btnSetActivity_Click); - // - // btnStopOperate - // - this.btnStopOperate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnStopOperate.CanvasColor = System.Drawing.SystemColors.Control; - this.btnStopOperate.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnStopOperate.DisabledBackColor = System.Drawing.Color.Empty; - this.btnStopOperate.Location = new System.Drawing.Point(668, 52); - this.btnStopOperate.Name = "btnStopOperate"; - this.btnStopOperate.Size = new System.Drawing.Size(80, 23); - this.btnStopOperate.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopOperate.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStopOperate.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStopOperate.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnStopOperate.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopOperate.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnStopOperate.Style.GradientAngle = 90; - this.btnStopOperate.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopOperate.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopOperate.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopOperate.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopOperate.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnStopOperate.TabIndex = 405; - this.btnStopOperate.Text = "停止设置"; - this.btnStopOperate.Click += new System.EventHandler(this.btnStopOperate_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.btnRefreshShop); - this.ucGroupBoxEx1.Location = new System.Drawing.Point(3, 2); - this.ucGroupBoxEx1.Name = "ucGroupBoxEx1"; - this.ucGroupBoxEx1.Size = new System.Drawing.Size(144, 150); - this.ucGroupBoxEx1.TabIndex = 399; - this.ucGroupBoxEx1.TabStop = false; - this.ucGroupBoxEx1.Text = "基础"; - // - // btnRefreshShop - // - this.btnRefreshShop.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRefreshShop.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnRefreshShop.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnRefreshShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnRefreshShop.ForeColor = System.Drawing.Color.White; - this.btnRefreshShop.Location = new System.Drawing.Point(16, 30); - this.btnRefreshShop.Margin = new System.Windows.Forms.Padding(2); - this.btnRefreshShop.Name = "btnRefreshShop"; - this.btnRefreshShop.Size = new System.Drawing.Size(112, 26); - this.btnRefreshShop.TabIndex = 375; - this.btnRefreshShop.Text = "刷新店铺状态"; - this.btnRefreshShop.UseVisualStyleBackColor = false; - this.btnRefreshShop.Click += new System.EventHandler(this.btnRefreshShop_Click); - // - // 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(1184, 549); - this.splitContainer3.SplitterDistance = 519; - 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.dgvShop); - this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 0, 0); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Controls.Add(this.panelEx1); - this.splitContainer2.Panel2.Padding = new System.Windows.Forms.Padding(0, 0, 4, 0); - this.splitContainer2.Size = new System.Drawing.Size(1184, 519); - this.splitContainer2.SplitterDistance = 270; - this.splitContainer2.TabIndex = 0; - // - // dgvShop - // - this.dgvShop.AllowUserToAddRows = false; - this.dgvShop.AllowUserToDeleteRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - 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.colShopId, - this.colShopName, - this.colAuthStatus, - this.colLoginStatus, - this.colCanUse, - this.colMessage}); - this.dgvShop.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvShop.Location = new System.Drawing.Point(4, 0); - this.dgvShop.Name = "dgvShop"; - this.dgvShop.ReadOnly = true; - this.dgvShop.RowHeadersWidth = 30; - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvShop.RowsDefaultCellStyle = dataGridViewCellStyle3; - this.dgvShop.RowTemplate.Height = 23; - this.dgvShop.Size = new System.Drawing.Size(266, 519); - this.dgvShop.TabIndex = 6; - this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick); - // - // colSelect - // - 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; - // - // colShopId - // - this.colShopId.HeaderText = "店铺"; - this.colShopId.Name = "colShopId"; - this.colShopId.ReadOnly = true; - this.colShopId.Visible = false; - this.colShopId.Width = 55; - // - // colShopName - // - this.colShopName.FillWeight = 150F; - this.colShopName.HeaderText = "店铺名称"; - this.colShopName.Name = "colShopName"; - this.colShopName.ReadOnly = true; - this.colShopName.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colShopName.Width = 75; - // - // colAuthStatus - // - this.colAuthStatus.HeaderText = "授权状态"; - this.colAuthStatus.Name = "colAuthStatus"; - this.colAuthStatus.ReadOnly = true; - this.colAuthStatus.Width = 65; - // - // colLoginStatus - // - this.colLoginStatus.HeaderText = "登录状态"; - this.colLoginStatus.Name = "colLoginStatus"; - this.colLoginStatus.ReadOnly = true; - this.colLoginStatus.Width = 65; - // - // 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; - // - // colMessage - // - this.colMessage.HeaderText = "消息"; - this.colMessage.Name = "colMessage"; - this.colMessage.ReadOnly = true; - this.colMessage.Visible = false; - this.colMessage.Width = 120; - // - // panelEx1 - // - this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control; - this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.panelEx1.Controls.Add(this.ucTabControl1); - this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty; - this.panelEx1.Dock = System.Windows.Forms.DockStyle.Fill; - this.panelEx1.Location = new System.Drawing.Point(0, 0); - this.panelEx1.Name = "panelEx1"; - this.panelEx1.Padding = new System.Windows.Forms.Padding(1); - this.panelEx1.Size = new System.Drawing.Size(906, 519); - this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center; - this.panelEx1.Style.BackColor1.Color = System.Drawing.Color.White; - this.panelEx1.Style.BackColor2.Color = System.Drawing.Color.White; - 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.TabIndex = 183; - // - // ucTabControl1 - // - this.ucTabControl1.BackgroundColor = System.Drawing.Color.White; - this.ucTabControl1.Controls.Add(this.tabPage1); - this.ucTabControl1.Controls.Add(this.tabPage2); - this.ucTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.ucTabControl1.Location = new System.Drawing.Point(1, 1); - this.ucTabControl1.Name = "ucTabControl1"; - this.ucTabControl1.Padding = new System.Drawing.Point(10, 3); - this.ucTabControl1.SelectedIndex = 0; - this.ucTabControl1.ShowCloseButton = true; - this.ucTabControl1.Size = new System.Drawing.Size(904, 517); - this.ucTabControl1.TabIndex = 0; - this.ucTabControl1.TabSelectColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.ucTabControl1.TabTextColor = System.Drawing.Color.Gray; - // - // tabPage1 - // - this.tabPage1.Location = new System.Drawing.Point(2, 26); - this.tabPage1.Name = "tabPage1"; - this.tabPage1.Padding = new System.Windows.Forms.Padding(3); - this.tabPage1.Size = new System.Drawing.Size(898, 487); - this.tabPage1.TabIndex = 0; - this.tabPage1.Text = "店铺1"; - this.tabPage1.UseVisualStyleBackColor = true; - // - // tabPage2 - // - this.tabPage2.Location = new System.Drawing.Point(2, 26); - this.tabPage2.Name = "tabPage2"; - this.tabPage2.Padding = new System.Windows.Forms.Padding(3); - this.tabPage2.Size = new System.Drawing.Size(898, 487); - this.tabPage2.TabIndex = 1; - this.tabPage2.Text = "店铺2"; - this.tabPage2.UseVisualStyleBackColor = true; - // - // 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.Size = new System.Drawing.Size(1184, 26); - this.splitContainer4.SplitterDistance = 1069; - 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(1069, 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(17, 0); - 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.Click += new System.EventHandler(this.btnClear_Click); - // - // GroupBuyForm - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1184, 703); - this.Controls.Add(this.splitContainer1); - this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Name = "GroupBuyForm"; - this.Text = "GroupBuyFrom"; - this.Load += new System.EventHandler(this.GroupBuyFrom_Load); - this.VisibleChanged += new System.EventHandler(this.GroupBuyForm_VisibleChanged); - this.splitContainer1.Panel1.ResumeLayout(false); - this.splitContainer1.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); - this.splitContainer1.ResumeLayout(false); - this.splitContainer5.Panel1.ResumeLayout(false); - this.splitContainer5.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer5)).EndInit(); - this.splitContainer5.ResumeLayout(false); - this.ucGroupBoxEx3.ResumeLayout(false); - this.ucGroupBoxEx3.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pbPaste2)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pbPaste1)).EndInit(); - this.ucGroupBoxEx2.ResumeLayout(false); - this.ucGroupBoxEx2.PerformLayout(); - this.panel2.ResumeLayout(false); - this.panel2.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.nudEachActivityProductNum)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.nudStockValue)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.nudDiscountValue)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.nudGroupCount)).EndInit(); - this.ucGroupBoxEx1.ResumeLayout(false); - 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.dgvShop)).EndInit(); - this.panelEx1.ResumeLayout(false); - this.ucTabControl1.ResumeLayout(false); - 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 System.Windows.Forms.SplitContainer splitContainer5; - private UserComponent.UcGroupBoxEx ucGroupBoxEx3; - private System.Windows.Forms.TextBox txtPriceMin; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.TextBox txtPriceMax; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.TextBox txtSaleMax; - private System.Windows.Forms.TextBox txtSaleMin; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.RadioButton rbOnSale; - private DevComponents.DotNetBar.PanelEx btnStopGetProduct; - private DevComponents.DotNetBar.PanelEx btnGetProduct; - private System.Windows.Forms.RadioButton rbOffSale; - private UserComponent.UcGroupBoxEx ucGroupBoxEx2; - private System.Windows.Forms.Label label17; - private System.Windows.Forms.NumericUpDown nudGroupCount; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.DateTimePicker dtpEndTime; - private System.Windows.Forms.DateTimePicker dtpStartTime; - private System.Windows.Forms.Label label4; - private DevComponents.DotNetBar.PanelEx btnSetActivity; - private DevComponents.DotNetBar.PanelEx btnStopOperate; - private UserComponent.UcGroupBoxEx ucGroupBoxEx1; - private UserControls.ButtonEx btnRefreshShop; - private System.Windows.Forms.SplitContainer splitContainer3; - private System.Windows.Forms.SplitContainer splitContainer2; - private UserComponent.DataGridViewEx dgvShop; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopId; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopName; - private System.Windows.Forms.DataGridViewTextBoxColumn colAuthStatus; - private System.Windows.Forms.DataGridViewTextBoxColumn colLoginStatus; - private System.Windows.Forms.DataGridViewCheckBoxColumn colCanUse; - private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; - private DevComponents.DotNetBar.PanelEx panelEx1; - private System.Windows.Forms.SplitContainer splitContainer4; - private UserControls.StatusBarUserControl statusBar; - private DevComponents.DotNetBar.PanelEx btnClear; - private System.Windows.Forms.CheckBox chkAutoGroup; - private DevComponents.DotNetBar.Controls.ComboBoxEx cmbCancelTime; - private DevComponents.Editors.ComboItem comboItem1; - private DevComponents.Editors.ComboItem comboItem2; - private DevComponents.Editors.ComboItem comboItem3; - private DevComponents.Editors.ComboItem comboItem4; - private DevComponents.Editors.ComboItem comboItem5; - private DevComponents.Editors.ComboItem comboItem6; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.NumericUpDown nudDiscountValue; - private DevComponents.DotNetBar.Controls.ComboBoxEx cmbLimitCount; - private DevComponents.Editors.ComboItem 不限购; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.NumericUpDown nudEachActivityProductNum; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.NumericUpDown nudStockValue; - private DevComponents.DotNetBar.Controls.ComboBoxEx cmbDiscountType; - private DevComponents.Editors.ComboItem 打折; - private DevComponents.Editors.ComboItem 直降; - private DevComponents.Editors.ComboItem 一口价; - private DevComponents.DotNetBar.Controls.ComboBoxEx cmbStockType; - private DevComponents.Editors.ComboItem 全部库存; - private DevComponents.Editors.ComboItem 百分比库存; - private DevComponents.Editors.ComboItem 统一库存; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label lblPercentSign; - private System.Windows.Forms.PictureBox pbPaste2; - private System.Windows.Forms.PictureBox pbPaste1; - private DevComponents.DotNetBar.Controls.TextBoxX txtFilter; - private System.Windows.Forms.Label label14; - private DevComponents.DotNetBar.Controls.TextBoxX txtProductName; - private System.Windows.Forms.Label lblProductName; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.RadioButton rbCustomNames; - private System.Windows.Forms.RadioButton rbRandomNames; - private System.Windows.Forms.Label label13; - private DevComponents.DotNetBar.PanelEx btnSetName; - private DevComponents.DotNetBar.Controls.ComboBoxEx cmbSkuOptionType; - private DevComponents.Editors.ComboItem 第一个; - private DevComponents.Editors.ComboItem 最后一个; - private DevComponents.Editors.ComboItem 最便宜; - private DevComponents.Editors.ComboItem 最贵; - private System.Windows.Forms.CheckBox chkSetSkuOption; - private System.Windows.Forms.Label label15; - private System.Windows.Forms.TextBox txtGetPage; - private UserComponent.UcTabControl ucTabControl1; - private System.Windows.Forms.TabPage tabPage1; - private System.Windows.Forms.TabPage tabPage2; - private DevComponents.Editors.ComboItem 不设置最便宜; - private DevComponents.Editors.ComboItem 不设置最贵; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyForm.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyForm.cs deleted file mode 100644 index a1c50ae..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyForm.cs +++ /dev/null @@ -1,902 +0,0 @@ -using AllBase; -using AllBase.Helper; -using AllBase.Model.Result; -using CefSharp; -using CefSharp.WinForms; -using TemuKJD.Extension; -using TemuKJD.Helper; -using TemuKJD.KJDForms.BaseForms; -using TemuKJD.KJDForms.ShopForms; -using NaiBa.CefHelper; -using NaiBa.CefHelper.Handler; -using NaiBa.Util; -using NaiBa.Util.Extension; -using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace TemuKJD.KJDForms.SalesCenterForms -{ - public partial class GroupBuyForm : BaseForm - { - public static List CustomActivityNames = new List(); - - private CheckBox chkSelectAll = null; - public ChromiumWebBrowser webBrowser = null; - private List lstShopId = new List(); - public List keywords = null; - public List filterWords = null; - public decimal priceMin; - public decimal priceMax; - public int saleMin; - public int saleMax; - public int getPage; - - public CancellationTokenSource cancellationTokenSource = null; - - public GroupBuyForm() - { - InitializeComponent(); - } - - private void GroupBuyFrom_Load(object sender, EventArgs e) - { - dtpStartTime.Value = DateTime.Now; - dtpEndTime.Value = dtpStartTime.Value.AddDays(1); - - CustomActivityNames = NaiBa.Util.Helper.ConfigHelper.LoadConfig>("group_buy_custom_names"); - if (CustomActivityNames == null) - { - CustomActivityNames = new List(); - } - - for (int i = 1; i <= 20; i++) - { - this.cmbLimitCount.Items.Add(i + "个"); - } - this.cmbLimitCount.SelectedIndex = 0; - this.cmbCancelTime.SelectedIndex = 1; - this.cmbStockType.SelectedIndex = 1; - this.cmbDiscountType.SelectedIndex = 0; - this.cmbSkuOptionType.SelectedIndex = 0; - - this.ucTabControl1.TabPages.Clear(); - - chkSelectAll = dgvShop.Columns["colSelect"].AddHeaderCheckBox(HorizontalAlignment.Center, 0, 0, null, null, false); - dgvShop.Columns["colSelect"].HeaderText = ""; - chkSelectAll.Width = chkSelectAll.Height = 13; - chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged; - } - - private void chkSelectAll_CheckedChanged(object sender, EventArgs e) - { - if (!chkSelectAll.Checked) - { - lstShopId.Clear(); - foreach (DataGridViewRow row in dgvShop.Rows) - { - row.Cells["colSelect"].Value = false; - } - } - else - { - lstShopId.Clear(); - var list = GlobalConfig.ShopLoginList.Where(s => s.ApiAuthStatus == "授权成功" && s.LoginStatus == "登录成功").Select(ss => ss.ShopId); - lstShopId.AddRange(list); - foreach (DataGridViewRow row in dgvShop.Rows) - { - if (list.Any(l => l == row.Cells["colShopId"]?.Value?.ToString())) - row.Cells["colSelect"].Value = true; - } - } - } - - private void chkAutoGroup_CheckedChanged(object sender, EventArgs e) - { - - } - - private void cmbDiscountType_SelectedValueChanged(object sender, EventArgs e) - { - } - - private void GroupBuyForm_VisibleChanged(object sender, EventArgs e) - { - if (Visible == true) - RefreshShop(); - } - - private void btnRefreshShop_Click(object sender, EventArgs e) - { - RefreshShop(); - } - - - private void RefreshShop() - { - // 更新选中的上货店铺Id - lstShopId = lstShopId.Where(id => GlobalConfig.ShopLoginList.Any(s => s.ShopId == id && s.LoginStatus == "已授权")).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) - { - BindShop(shopEntity); - } - } - - private void BindShop(ShopLoginInfo shopEntity) - { - if (shopEntity == null) - return; - - bool canUse = shopEntity.ApiAuthStatus == "授权成功" && shopEntity.LoginStatus == "登录成功"; - var row = dgvShop.Rows.Cast().FirstOrDefault(p => p.Cells.GetCellValueFromColumnName("colShopId").ParseToString() == shopEntity.ShopId); - if (row == null) - { - this.dgvShop.Rows.Add( - lstShopId.Contains(shopEntity.ShopId) && canUse, - shopEntity.ShopId, - shopEntity.ShopAccount, - shopEntity.ApiAuthStatus, - shopEntity.LoginStatus, - canUse, - string.Empty - ); - } - else - { - row.Cells["colSelect"].Value = lstShopId.Contains(shopEntity.ShopId) && canUse; - row.Cells["colShopName"].Value = shopEntity.ShopAccount; - row.Cells["colAuthStatus"].Value = shopEntity.ApiAuthStatus; - row.Cells["colLoginStatus"].Value = shopEntity.LoginStatus; - row.Cells["colCanUse"].Value = canUse; - } - } - - private void cmbDiscountType_SelectedIndexChanged(object sender, EventArgs e) - { - if (cmbDiscountType.Text == "打折") - { - nudDiscountValue.Maximum = 9.9m; - nudDiscountValue.Minimum = 0.1m; - nudDiscountValue.Increment = 0.1m; - nudDiscountValue.DecimalPlaces = 1; - nudDiscountValue.Value = 9.9m; - } - else if (cmbDiscountType.Text == "直降") - { - nudDiscountValue.Maximum = 10000m; - nudDiscountValue.Minimum = 0.00m; - nudDiscountValue.Increment = 1m; - nudDiscountValue.DecimalPlaces = 2; - nudDiscountValue.Value = 1m; - } - else if (cmbDiscountType.Text == "一口价") - { - BaseMsgForm.ShowInfo("确定所有商品及Sku价格都按照统一价格设置,请谨慎操作!"); - nudDiscountValue.Maximum = 10000m; - nudDiscountValue.Minimum = 0.00m; - nudDiscountValue.Increment = 1m; - nudDiscountValue.DecimalPlaces = 2; - nudDiscountValue.Value = 100m; - } - } - - private void cmbStockType_SelectedIndexChanged(object sender, EventArgs e) - { - if (cmbStockType.Text == "全部库存") - { - nudStockValue.Enabled = false; - nudStockValue.Value = 100; - nudStockValue.Width = 48; - lblPercentSign.Visible = true; - } - else if (cmbStockType.Text == "百分比库存") - { - nudStockValue.Enabled = true; - nudStockValue.Maximum = 100m; - nudStockValue.Minimum = 1m; - nudStockValue.Increment = 1m; - nudStockValue.DecimalPlaces = 0; - nudStockValue.Value = 50m; - nudStockValue.Width = 48; - lblPercentSign.Visible = true; - } - else if (cmbStockType.Text == "统一库存") - { - nudStockValue.Enabled = true; - nudStockValue.Maximum = 10000m; - nudStockValue.Minimum = 1m; - nudStockValue.Increment = 1m; - nudStockValue.DecimalPlaces = 0; - nudStockValue.Value = 100m; - nudStockValue.Width = 65; - lblPercentSign.Visible = false; - } - } - - private void btnGetProduct_Click(object sender, EventArgs e) - { - if (lstShopId.Count == 0) - { - BaseMsgForm.ShowInfo("请选择店铺!"); - return; - } - try - { - this.keywords = txtProductName.Text.Trim().Split(new string[] { "\r", "\n", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); - this.filterWords = txtFilter.Text.Trim().Split(new string[] { "\r", "\n", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); - this.priceMin = txtPriceMin.Text.ParseToDecimal(); - this.priceMax = txtPriceMax.Text.ParseToDecimal(); - this.saleMin = txtSaleMin.Text.ParseToInt(); - this.saleMax = txtSaleMax.Text.ParseToInt(); - this.getPage = txtGetPage.Text.ParseToInt(); - } - catch (Exception ex) - { - BaseMsgForm.ShowError("请正确填写搜索参数!"); - return; - } - - btnGetProduct.Enabled = false; - cancellationTokenSource = new CancellationTokenSource(); - Task.Run(() => - { - foreach (var shopId in lstShopId) - { - if (cancellationTokenSource.IsCancellationRequested) - break; - - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId); - if (shop == null) - continue; - - if (ShopListForm.Instance == null) - ShopListForm.Instance = new ShopListForm(); - ShopListForm.Instance.CheckShopLogin(new string[] { shop.ShopAccount }, false); - if (shop.LoginStatus != "登录成功") - { - Invoke(new Action(() => - { - var row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) - { - row.Cells["colLoginStatus"].Value = "未登录"; - row.Cells["colCanUse"].Value = false; - } - })); - continue; - } - - GroupBuyShopForm groupBuyShopForm = null; - Invoke(new Action(() => - { - var tab = this.ucTabControl1.TabPages.Cast().FirstOrDefault(t => t.Text == shop.ShopAccount && t.Name == "tab" + shop.ShopId); - if (tab == null) - { - tab = new TabPage(); - tab.Name = "tab" + shop.ShopId; - tab.Text = shop.ShopAccount; - this.ucTabControl1.TabPages.Add(tab); - - var form = new GroupBuyShopForm(shop); - form.groupBuyForm = this; - form.TopLevel = false; - form.Left = 0; - form.Top = 0; - form.FormBorderStyle = FormBorderStyle.None; - form.AutoSize = true; - form.Dock = DockStyle.Fill; - form.Show(); - tab.Controls.Add(form); - } - - if (tab.Controls.Count > 0) - { - groupBuyShopForm = tab.Controls[0] as GroupBuyShopForm; - this.ucTabControl1.SelectedTab = tab; - } - })); - - if (groupBuyShopForm != null) - { - groupBuyShopForm.InitGetProduct(); - GetProductByCef(shop); - } - } - Invoke(new Action(() => { btnGetProduct.Enabled = true; })); - }, cancellationTokenSource.Token); - } - - public void GetSales(ShopLoginInfo shop, bool isSales = true) - { - if (webBrowser == null) - { - Invoke(new Action(() => - { - webBrowser = CEFBrowser.CreateChromiumWebBrowser("about:blank", false); - webBrowser.KeyboardHandler = new KeyboardHandler(); - webBrowser.Dock = DockStyle.Fill; - Helper.CustomResourceRequestHandlerLocal resourceRequestHandler = new Helper.CustomResourceRequestHandlerLocal(); - resourceRequestHandler.ResourceLoadCompleteEvent += RequestHandler_ResourceLoadCompleteEvent; - webBrowser.RequestHandler = new CustomRequestHandler(resourceRequestHandler); - webBrowser.LifeSpanHandler = new LifeSpanHandlerLocal(PopWindowType.SelfWindow); - webBrowser.SendToBack(); - this.splitContainer1.Panel2.Controls.Add(webBrowser); - })); - } - - while (webBrowser.Tag != null) - { - Thread.Sleep(Randomx.GetId(50, 100)); - } - if (cancellationTokenSource.IsCancellationRequested) - return; - - webBrowser.Tag = shop; - - while (!webBrowser.IsBrowserInitialized || webBrowser.IsLoading) - continue; - - var cookie = shop.Cookies; - CEFBrowser.DeleteCookie(webBrowser.RequestContext.GetCookieManager(null)); - var t = CEFBrowser.SetCookieAsync("jinritemai.com", cookie, webBrowser.RequestContext.GetCookieManager(null)); - t.Wait(2000); - Thread.Sleep(500); - - var targetUrl = "https://fxg.jinritemai.com/ffa/g/list"; - webBrowser.Load(targetUrl); - - while (webBrowser.IsLoading) - { - Thread.Sleep(1000); - } - Thread.Sleep(3000); - - if (!isSales) - { - Thread.Sleep(3000); - var jsStrBase = "function clickProductAnalysis(txt) {\r\n" - + "var child = document.body.firstElementChild;\r\n" - + "var element1 = null;\r\n" - + " while (child) {\r\n" - + " if (child.innerHTML.indexOf(txt) >= 0) {\r\n" - + " element1 = child;\r\n" - + " if (child.firstElementChild) {\r\n" - + " child = child.firstElementChild; continue;\r\n" - + " } else break;\r\n" - + " }\r\n" - + " child = child.nextElementSibling;\r\n" - + " }\r\n" - + " if (element1) {\r\n" - + " element1.click(); return 'success';\r\n" - + " } else return 'no_element';\r\n" - + "}\r\n"; - var jsStr = jsStrBase + "clickProductAnalysis('电商罗盘');\r\n"; - t = webBrowser.GetMainFrame().EvaluateScriptAsync(jsStr); - t.Wait(); - - while (webBrowser.IsLoading) - { - Thread.Sleep(1000); - } - Thread.Sleep(Randomx.GetId(1500, 2500)); - - jsStr = jsStrBase + "clickProductAnalysis('商品概览');\r\n"; - t = webBrowser.GetMainFrame().EvaluateScriptAsync(jsStr); - t.Wait(); - while (webBrowser.IsLoading) - { - Thread.Sleep(1000); - } - Thread.Sleep(Randomx.GetId(1500, 2500)); - } - while (webBrowser.Tag != null) - { - Thread.Sleep(Randomx.GetId(50, 100)); - } - Thread.Sleep(3000); - } - - public void GetProductByCef(ShopLoginInfo shop) - { - if (webBrowser == null) - { - Invoke(new Action(() => - { - webBrowser = CEFBrowser.CreateChromiumWebBrowser("about:blank", false); - webBrowser.KeyboardHandler = new KeyboardHandler(); - webBrowser.Dock = DockStyle.Fill; - CustomResourceRequestHandlerLocal resourceRequestHandler = new CustomResourceRequestHandlerLocal(); - resourceRequestHandler.ResourceLoadCompleteEvent += RequestHandler_ResourceLoadCompleteEvent; - webBrowser.RequestHandler = new CustomRequestHandler(resourceRequestHandler); - webBrowser.LifeSpanHandler = new LifeSpanHandlerLocal(PopWindowType.SelfWindow); - webBrowser.SendToBack(); - this.splitContainer1.Panel2.Controls.Add(webBrowser); - })); - } - - while (webBrowser.Tag != null) - { - Thread.Sleep(Randomx.GetId(50, 100)); - } - if (cancellationTokenSource.IsCancellationRequested) - return; - - webBrowser.Tag = shop; - - while (!webBrowser.IsBrowserInitialized || webBrowser.IsLoading) - continue; - - var cookie = shop.Cookies; - CEFBrowser.DeleteCookie(webBrowser.RequestContext.GetCookieManager(null)); - var t = CEFBrowser.SetCookieAsync("jinritemai.com", cookie, webBrowser.RequestContext.GetCookieManager(null)); - t.Wait(2000); - Thread.Sleep(500); - - var targetUrl = "https://fxg.jinritemai.com/ffa/g/list"; - webBrowser.Load(targetUrl); - - while (webBrowser.IsLoading) - { - Thread.Sleep(1000); - } - Thread.Sleep(3000); - - while (webBrowser.Tag != null) - { - Thread.Sleep(Randomx.GetId(50, 100)); - } - Thread.Sleep(3000); - } - - private void RequestHandler_ResourceLoadCompleteEvent(object sender, string url, string postData, string responseData, CefSharp.IRequest iRequest) - { - if (url.StartsWith("https://fxg.jinritemai.com/product/tproduct/list?page=0") && url.Contains("&pay_type=")) - { - if (webBrowser.Tag != null) - { - var listUrl = url; - var referrerUrl = iRequest.ReferrerUrl; - var result = responseData; - - Dictionary headers = new Dictionary(); - foreach (var hk in iRequest.Headers.AllKeys) - { - headers[hk] = iRequest.Headers[hk]; - } - - Task.Run(() => - { - var cookies = CEFBrowser.GetCookie("", webBrowser.RequestContext.GetCookieManager(null)); - GroupBuyShopForm salesForm = null; - Invoke(new Action(() => - { - var shop = webBrowser.Tag as ShopLoginInfo; - var tab = this.ucTabControl1.TabPages.Cast().FirstOrDefault(t => t.Text == shop.ShopAccount && t.Name == "tab" + shop.ShopId); - salesForm = tab.Controls[0] as GroupBuyShopForm; - })); - - if (salesForm != null) - salesForm.GetProductSim(listUrl, referrerUrl, headers, ""); - - Invoke(new Action(() => - { - webBrowser.Tag = null; - })); - Thread.Sleep(1000); - }); - } - } - } - - private void btnSetName_Click(object sender, EventArgs e) - { - GroupBuyCustomActivityNameForm customNameForm = new GroupBuyCustomActivityNameForm(); - customNameForm.ShowDialog(); - } - - private void label14_Click(object sender, EventArgs e) - { - if (this.webBrowser != null) - { - webBrowser.SendToBack(); - } - } - - private void label14_DoubleClick(object sender, EventArgs e) - { - if (this.webBrowser != null) - { - webBrowser.BringToFront(); - } - } - - private void btnStopGetProduct_Click(object sender, EventArgs e) - { - if (cancellationTokenSource != null) - cancellationTokenSource.Cancel(); - webBrowser.Tag = null; - } - - private void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - string headerText = dgvShop.Columns[e.ColumnIndex].HeaderText; - string columnName = dgvShop.Columns[e.ColumnIndex].Name; - long shopId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToLong(); - string shopName = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ToString(); - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId.ToString()); - var row = dgvShop.Rows[e.RowIndex]; - switch (columnName) - { - case "colSelect": - if (row.Cells["colCanUse"].Value.ParseToBool()) - { - row.Cells["colSelect"].Value = !row.Cells["colSelect"].Value.ParseToBool(); - if (dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value.ParseToBool()) - { - if (lstShopId.Any(p => p == shopId.ToString())) - lstShopId.RemoveAll(p => p == shopId.ToString()); - lstShopId.Add(shopId.ToString()); - } - else - lstShopId.Remove(shopId.ToString()); - if (dgvShop.Rows.Cast().All(r => r.Cells["colSelect"].Value.ParseToBool())) - chkSelectAll.Checked = true; - else - chkSelectAll.Checked = false; - } - else - { - BaseMsgForm.ShowInfo("店铺未授权或未登录!"); - } - break; - } - } - - private void btnSetActivity_Click(object sender, EventArgs e) - { - // 每个活动商品数量 - var eachActivityProductNum = nudEachActivityProductNum.Text.ParseToInt(); - // 是否使用自定义活动名称 - var isUseCustomActivityNames = rbCustomNames.Checked; - // 自定义活动名称临时列表 - List customNamesTemp = new List(CustomActivityNames); - if (rbCustomNames.Checked && customNamesTemp.Count == 0) - { - BaseMsgForm.ShowInfo("请设置自定义活动名称!"); - return; - } - // 开始时间 - var startTime = dtpStartTime.Value.ToString("yyyy-MM-dd HH:mm:ss"); - // 结束时间 - var endTime = dtpEndTime.Value.ToString("yyyy-MM-dd HH:mm:ss"); - // 订单取消时间 - var orderExpireTime = cmbCancelTime.Text.Replace("分钟", "").ParseToInt() * 60; - // 成团数量 - var groupNum = nudGroupCount.Value.ToString(); - if (nudGroupCount.Value < 5) - { - nudGroupCount.Value = 5; - BaseMsgForm.ShowError("成团数量需大于等于5,已为您自动修改"); - return; - } - // 自动成团 - var autoGroup = this.chkAutoGroup.Checked ? "1" : "0"; - // 设置单个sku - var isSetSkuOption = this.chkSetSkuOption.Checked; - var skuOptionType = this.cmbSkuOptionType.Text; - // 库存类型 - var stockType = this.cmbStockType.Text; - // 库存数量 - var stockValue = nudStockValue.Text.ParseToInt(); - // 每人限购 - var userLimit = this.cmbLimitCount.Text.Replace("个", "").Replace("不限购", "0"); - // 折扣类型 - var discountType = this.cmbDiscountType.Text; - // 折扣数值 - var discountValue = this.nudDiscountValue.Text.ParseToDecimal(); - - cancellationTokenSource = new CancellationTokenSource(); - Task.Run(() => - { - foreach (var shopId in lstShopId) - { - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId); - if (shop == null) - continue; - - if (ucTabControl1.TabPages["tab" + shopId] != null && ucTabControl1.TabPages["tab" + shopId].Controls.Count > 0) - { - var salesForm = ucTabControl1.TabPages["tab" + shopId].Controls[0] as GroupBuyShopForm; - if (salesForm == null) - continue; - - Invoke(new Action(() => - { - salesForm.statusBar.lblTaskStatus.Text = "正在创建拼团活动"; - })); - - List productIdList = salesForm.lstProductId; - if (productIdList.Count == 0) - { - BaseMsgForm.ShowInfo("请选择店铺 " + shop.ShopAccount + " 参加活动的商品!"); - continue; - } - else - { - List pIdListTemp = new List(); - for (int i = 0; i < productIdList.Count; i++) - { - var pid = productIdList[i]; - pIdListTemp.Add(pid); - if ((i + 1) % eachActivityProductNum == 0 || i == productIdList.Count - 1) - { - var pIdsStrTemp = "\"" + string.Join("\",\"", pIdListTemp) + "\""; - pIdListTemp.Clear(); - - #region 获取活动商品的所有Sku - string pIdData = @"{ ""product_ids"":[" + pIdsStrTemp + "]}"; - var cookies = shop.Cookies; - var result = salesForm.GetSkusByProductIds(pIdData, cookies); - #endregion - - #region 生成活动名称 - string activityId = Math.Ceiling((i + 1m) / eachActivityProductNum).ToString(); - activityId = activityId.Replace("1", "一").Replace("2", "二").Replace("3", "三").Replace("4", "四").Replace("5", "五"); - activityId = activityId.Replace("6", "六").Replace("7", "七").Replace("8", "八").Replace("9", "九").Replace("0", "零"); - var actvityName = "活动" + activityId; - - #region 自定义活动 - if (isUseCustomActivityNames) - { - if (customNamesTemp != null && customNamesTemp.Count > 0) - { - actvityName = customNamesTemp[0]; - customNamesTemp.RemoveAt(0); - } - else - { - Invoke(new Action(() => { salesForm.ShowVisitorMessage("活动创建中断,自定义名称活动数量不足!"); })); - break; - } - } - #endregion - #endregion - - //string postData = "{\"stype\":\"120\",\"title\":\"活动一\", - //\"begin_time\":\"2022-06-23 13:49:54\",\"end_time\":\"2022-06-24 13:49:54\",\"order_expire_time\":\"300\", - //\"group_num\":\"9\",\"auto_group\":\"1\",\"promotion_goods\":[ - //{\"product_id\":\"3556136493124815095\",\"promotion_skus\":[ - // {\"camp_stock_num\":\"33\",\"id\":\"1736394771542030\",\"price\":\"27100\",\"user_limit\":\"19\",\"spec_detail_id1\":\"1736394770390024\",\"spec_detail_id2\":\"1736394770391096\",\"spec_detail_id3\":\"0\"},{\"camp_stock_num\":\"44\",\"id\":\"1736394771275831\",\"price\":\"26100\",\"user_limit\":\"14\",\"spec_detail_id1\":\"1736394770390024\",\"spec_detail_id2\":\"1736394770391080\",\"spec_detail_id3\":\"0\"}]},{\"product_id\":\"3554645628321712559\",\"promotion_skus\":[{\"camp_stock_num\":\"11\",\"id\":\"1735666808135704\",\"price\":\"3700\",\"user_limit\":\"0\",\"spec_detail_id1\":\"1735666809832616\",\"spec_detail_id2\":\"0\",\"spec_detail_id3\":\"0\"},{\"camp_stock_num\":\"22\",\"id\":\"1735666808135688\",\"price\":\"4100\",\"user_limit\":\"0\",\"spec_detail_id1\":\"1735666809832600\",\"spec_detail_id2\":\"0\",\"spec_detail_id3\":\"0\"}]}]}"; - var postData = "{\"stype\":\"120\",\"title\":\"" + actvityName + "\"," + - "\"begin_time\":\"" + startTime + "\",\"end_time\":\"" + endTime + "\",\"order_expire_time\":\"" + orderExpireTime + "\"," + - "\"group_num\":\"" + groupNum + "\",\"auto_group\":\"" + autoGroup + "\",\"promotion_goods\":["; - - JObject jObj = JObject.Parse(result); - foreach (JProperty jProp in jObj["data"]) - { - var id = jProp.Name; - DouProductPromotionListInfo info = salesForm.productList.FirstOrDefault(q => q.product_id == id); - if (info != null) - { - postData = postData + "{\"product_id\":\"" + id + "\",\"promotion_skus\":["; - if (isSetSkuOption) - { - JArray arr = jObj["data"][id] as JArray; - var objs = new List() { arr.FirstOrDefault(o => o["stock"]?.ParseToInt() > 0) }; - if (skuOptionType == "最后一个") - objs = new List() { arr.LastOrDefault(o => o["stock"]?.ParseToInt() > 0) }; - if (skuOptionType == "最贵") - objs = new List() { arr.OrderBy(o => o["origin_price"]).LastOrDefault(o => o["stock"]?.ParseToInt() > 0) }; - if (skuOptionType == "最便宜") - objs = new List() { arr.OrderBy(o => o["origin_price"]).FirstOrDefault(o => o["stock"]?.ParseToInt() > 0) }; - if (skuOptionType == "不设置最便宜") - { - objs = arr.OrderBy(o => o["origin_price"]).Skip(1).ToList(); - } - if (skuOptionType == "不设置最贵") - { - objs = arr.OrderBy(o => o["origin_price"]).Take(objs.Count).ToList(); - } - foreach (var obj in objs) - { - var totalStock = obj["stock"].ParseToInt(); - var stock = totalStock; - if (stockType == "百分比库存") - { - stock = stockValue * totalStock / 100; - } - else if (stockType == "统一库存") - { - stock = stockValue; - } - if (stock <= groupNum.ParseToInt()) - stock = groupNum.ParseToInt(); - if (stock > totalStock) - stock = totalStock; - if (stock < 5) // 跳过库存不足的sku - continue; - - var newPrice = obj["origin_price"].ParseToInt() * discountValue / 10; // 打折 - if (discountType == "直降") - { - newPrice = obj["origin_price"].ParseToInt() - discountValue * 100; - } - else if (discountType == "一口价") - { - newPrice = discountValue * 100; - } - postData = postData + "{\"camp_stock_num\":\"" + stock + - "\",\"id\":\"" + obj["id"] + "\",\"price\":\"" + (int)newPrice + - "\",\"user_limit\":\"" + userLimit + "\",\"spec_detail_id1\":\"" + obj["spec_detail_id1"] + - "\",\"spec_detail_id2\":\"" + obj["spec_detail_id2"] + "\",\"spec_detail_id3\":\"" + obj["spec_detail_id3"] + "\"},"; - } - } - else - { - JArray arr = jObj["data"][id] as JArray; - foreach (JObject obj in arr) - { - var totalStock = obj["stock"].ParseToInt(); - var stock = totalStock; - if (stockType == "百分比库存") - { - stock = stockValue * totalStock / 100; - } - else if (stockType == "统一库存") - { - stock = stockValue; - } - if (stock <= groupNum.ParseToInt()) - stock = groupNum.ParseToInt(); - if (stock > totalStock) - stock = totalStock; - if (stock < 5) // 跳过库存不足的sku - continue; - - var newPrice = obj["origin_price"].ParseToInt() * discountValue / 10; // 打折 - if (discountType == "直降") - { - newPrice = obj["origin_price"].ParseToInt() - discountValue * 100; - } - else if (discountType == "一口价") - { - newPrice = discountValue * 100; - } - postData = postData + "{\"camp_stock_num\":\"" + stock + - "\",\"id\":\"" + obj["id"] + "\",\"price\":\"" + (int)newPrice + - "\",\"user_limit\":\"" + userLimit + "\",\"spec_detail_id1\":\"" + obj["spec_detail_id1"] + - "\",\"spec_detail_id2\":\"" + obj["spec_detail_id2"] + "\",\"spec_detail_id3\":\"" + obj["spec_detail_id3"] + "\"},"; - } - } - postData = postData.TrimEnd(',') + "]},"; - } - } - postData = postData.TrimEnd(',') + "]}"; - - string checkPro = salesForm.checkGroupBuyGoods(postData, cookies); - if (checkPro.Contains("{\"st\":0,\"msg\":\"\",\"code\":0,")) - { - string createPro = salesForm.createGroupBuyGoods(postData, cookies); - if (createPro.Contains("{\"st\":0,\"msg\":\"\",\"code\":0,")) - { - Invoke(new Action(() => { salesForm.ShowVisitorMessage("活动 " + actvityName + " 创建成功!", pIdsStrTemp); })); - } - else - { - Invoke(new Action(() => { salesForm.ShowVisitorMessage(actvityName + "拼团创建失败!原因:" + BaseRegex.GetStringJson(ref createPro, "msg"), pIdsStrTemp); })); - } - } - else - { - Invoke(new Action(() => { salesForm.ShowVisitorMessage(actvityName + "拼团创建失败!原因:" + BaseRegex.GetStringJson(ref checkPro, "msg"), pIdsStrTemp); })); - } - Thread.Sleep(Randomx.GetId(1500, 3500)); - } - } - } - Invoke(new Action(() => { salesForm.statusBar.lblTaskStatus.Text = "创建拼团活动完成"; })); - } - } - }, cancellationTokenSource.Token); - } - - private void dtpStartTime_ValueChanged(object sender, EventArgs e) - { - if (dtpEndTime.Value > dtpStartTime.Value.AddDays(1) || dtpEndTime.Value <= dtpStartTime.Value) - dtpEndTime.Value = dtpStartTime.Value.AddDays(1); - } - - private void btnClear_Click(object sender, EventArgs e) - { - if (BaseMsgForm.ShowConfirm("确定要清空结果吗?清空后需要重新获取!").DialogResult == DialogResult.OK) - { - foreach (TabPage tp in ucTabControl1.TabPages) - { - if (tp.Controls.Count > 0) - { - if (tp.Text.Contains("活动管理")) - { - //var managerActiveForm = tp.Controls[0] as LimitedSalesManagerActiveForm; - //if (managerActiveForm != null) - // managerActiveForm.ClearData(); - //if (splitContainer4.Panel1.Controls.Count == 2) - // splitContainer4.Panel1.Controls.RemoveAt(1); - } - else - { - var salesForm = tp.Controls[0] as GroupBuyShopForm; - if (salesForm != null) - salesForm.ClearData(); - } - } - } - } - } - - private void btnStopOperate_Click(object sender, EventArgs e) - { - if (cancellationTokenSource != null) - cancellationTokenSource.Cancel(); - webBrowser.Tag = null; - } - - private void pbPaste1_Click(object sender, EventArgs e) - { - IDataObject iData = Clipboard.GetDataObject(); - if (iData != null && iData.GetDataPresent(DataFormats.Text)) - { - txtProductName.Text = (string)iData.GetData(DataFormats.Text); - } - } - - private void pbPaste2_Click(object sender, EventArgs e) - { - IDataObject iData = Clipboard.GetDataObject(); - if (iData != null && iData.GetDataPresent(DataFormats.Text)) - { - txtFilter.Text = (string)iData.GetData(DataFormats.Text); - } - } - - private void nudGroupCount_ValueChanged(object sender, EventArgs e) - { - } - - List keyList = new List(); - private void nudGroupCount_KeyDown(object sender, KeyEventArgs e) - { - var x = nudGroupCount.Value; - //if (e.KeyData == (Keys.Alt | Keys.Add)) - //{ - // this.nudGroupCount.Maximum = 10000m; - //} - - if (keyList.LastOrDefault() != e.KeyData) - keyList.Clear(); - - keyList.Add(e.KeyData); - - if (keyList.Count >= 5 && e.KeyData == (Keys.Menu | Keys.Alt)) - this.nudGroupCount.Maximum = 10000m; - } - } -} diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyForm.resx b/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyForm.resx deleted file mode 100644 index 82921c0..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyForm.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyMonitorForm.Designer.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyMonitorForm.Designer.cs deleted file mode 100644 index fae112e..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyMonitorForm.Designer.cs +++ /dev/null @@ -1,906 +0,0 @@ - -namespace TemuKJD.KJDForms.SalesCenterForms -{ - partial class GroupBuyMonitorForm - { - /// - /// 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(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.panelEx2 = new DevComponents.DotNetBar.PanelEx(); - this.label2 = new System.Windows.Forms.Label(); - this.numericUpDown2 = new System.Windows.Forms.NumericUpDown(); - this.label1 = new System.Windows.Forms.Label(); - this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); - this.checkBox1 = new System.Windows.Forms.CheckBox(); - this.cmbSkuOptionType = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.第一个 = new DevComponents.Editors.ComboItem(); - this.最后一个 = new DevComponents.Editors.ComboItem(); - this.最便宜 = new DevComponents.Editors.ComboItem(); - this.最贵 = new DevComponents.Editors.ComboItem(); - this.不设置最便宜 = new DevComponents.Editors.ComboItem(); - this.不设置最贵 = new DevComponents.Editors.ComboItem(); - this.lblPercentSign = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.nudEachActivityProductNum = new System.Windows.Forms.NumericUpDown(); - this.label8 = new System.Windows.Forms.Label(); - this.nudStockValue = new System.Windows.Forms.NumericUpDown(); - this.cmbDiscountType = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.打折 = new DevComponents.Editors.ComboItem(); - this.直降 = new DevComponents.Editors.ComboItem(); - this.一口价 = new DevComponents.Editors.ComboItem(); - this.cmbStockType = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.全部库存 = new DevComponents.Editors.ComboItem(); - this.百分比库存 = new DevComponents.Editors.ComboItem(); - this.统一库存 = new DevComponents.Editors.ComboItem(); - this.label5 = new System.Windows.Forms.Label(); - this.cmbLimitCount = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.不限购 = new DevComponents.Editors.ComboItem(); - this.label7 = new System.Windows.Forms.Label(); - this.nudDiscountValue = new System.Windows.Forms.NumericUpDown(); - this.label17 = new System.Windows.Forms.Label(); - this.nudGroupCount = new System.Windows.Forms.NumericUpDown(); - this.label11 = new System.Windows.Forms.Label(); - this.btnSetActivity = new DevComponents.DotNetBar.PanelEx(); - this.btnStopOperate = new DevComponents.DotNetBar.PanelEx(); - this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.btnRefreshShop = new TemuKJD.UserControls.ButtonEx(); - this.splitContainer3 = new System.Windows.Forms.SplitContainer(); - this.splitContainer4 = new System.Windows.Forms.SplitContainer(); - this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); - this.btnClear = new DevComponents.DotNetBar.PanelEx(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colAuthStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colLoginStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colCanUse = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - this.ucGroupBoxEx2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.nudEachActivityProductNum)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.nudStockValue)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.nudDiscountValue)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.nudGroupCount)).BeginInit(); - this.ucGroupBoxEx1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).BeginInit(); - this.splitContainer3.Panel1.SuspendLayout(); - this.splitContainer3.Panel2.SuspendLayout(); - this.splitContainer3.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).BeginInit(); - this.splitContainer4.Panel1.SuspendLayout(); - this.splitContainer4.Panel2.SuspendLayout(); - this.splitContainer4.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); - this.splitContainer2.Panel1.SuspendLayout(); - this.splitContainer2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgvShop)).BeginInit(); - 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.ucGroupBoxEx2); - this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx1); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.splitContainer3); - this.splitContainer1.Size = new System.Drawing.Size(1246, 552); - this.splitContainer1.SplitterDistance = 150; - this.splitContainer1.TabIndex = 8; - // - // ucGroupBoxEx2 - // - this.ucGroupBoxEx2.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.ucGroupBoxEx2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.ucGroupBoxEx2.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND; - this.ucGroupBoxEx2.Controls.Add(this.panelEx2); - this.ucGroupBoxEx2.Controls.Add(this.label2); - this.ucGroupBoxEx2.Controls.Add(this.numericUpDown2); - this.ucGroupBoxEx2.Controls.Add(this.label1); - this.ucGroupBoxEx2.Controls.Add(this.numericUpDown1); - this.ucGroupBoxEx2.Controls.Add(this.checkBox1); - this.ucGroupBoxEx2.Controls.Add(this.cmbSkuOptionType); - this.ucGroupBoxEx2.Controls.Add(this.lblPercentSign); - this.ucGroupBoxEx2.Controls.Add(this.label9); - this.ucGroupBoxEx2.Controls.Add(this.nudEachActivityProductNum); - this.ucGroupBoxEx2.Controls.Add(this.label8); - this.ucGroupBoxEx2.Controls.Add(this.nudStockValue); - this.ucGroupBoxEx2.Controls.Add(this.cmbDiscountType); - this.ucGroupBoxEx2.Controls.Add(this.cmbStockType); - this.ucGroupBoxEx2.Controls.Add(this.label5); - this.ucGroupBoxEx2.Controls.Add(this.cmbLimitCount); - this.ucGroupBoxEx2.Controls.Add(this.label7); - this.ucGroupBoxEx2.Controls.Add(this.nudDiscountValue); - this.ucGroupBoxEx2.Controls.Add(this.label17); - this.ucGroupBoxEx2.Controls.Add(this.nudGroupCount); - this.ucGroupBoxEx2.Controls.Add(this.label11); - this.ucGroupBoxEx2.Controls.Add(this.btnSetActivity); - this.ucGroupBoxEx2.Controls.Add(this.btnStopOperate); - this.ucGroupBoxEx2.Location = new System.Drawing.Point(147, 2); - this.ucGroupBoxEx2.Name = "ucGroupBoxEx2"; - this.ucGroupBoxEx2.Size = new System.Drawing.Size(1097, 150); - this.ucGroupBoxEx2.TabIndex = 469; - this.ucGroupBoxEx2.TabStop = false; - this.ucGroupBoxEx2.Text = "商品操作"; - // - // panelEx2 - // - this.panelEx2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.panelEx2.CanvasColor = System.Drawing.SystemColors.Control; - this.panelEx2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.panelEx2.DisabledBackColor = System.Drawing.Color.Empty; - this.panelEx2.Location = new System.Drawing.Point(153, 56); - this.panelEx2.Name = "panelEx2"; - this.panelEx2.Size = new System.Drawing.Size(84, 23); - this.panelEx2.Style.Alignment = System.Drawing.StringAlignment.Center; - this.panelEx2.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.panelEx2.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.panelEx2.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.panelEx2.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.panelEx2.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.panelEx2.Style.GradientAngle = 90; - this.panelEx2.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.panelEx2.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.panelEx2.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.panelEx2.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.panelEx2.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.panelEx2.TabIndex = 602; - this.panelEx2.Text = "获取运费模板"; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(118, 59); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(20, 17); - this.label2.TabIndex = 598; - this.label2.Text = "秒"; - // - // numericUpDown2 - // - this.numericUpDown2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.numericUpDown2.Location = new System.Drawing.Point(72, 56); - this.numericUpDown2.Maximum = new decimal(new int[] { - 10000, - 0, - 0, - 0}); - this.numericUpDown2.Minimum = new decimal(new int[] { - 1, - 0, - 0, - 0}); - this.numericUpDown2.Name = "numericUpDown2"; - this.numericUpDown2.Size = new System.Drawing.Size(46, 23); - this.numericUpDown2.TabIndex = 597; - this.numericUpDown2.Value = new decimal(new int[] { - 5, - 0, - 0, - 0}); - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(16, 59); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(56, 17); - this.label1.TabIndex = 596; - this.label1.Text = "刷新间隔"; - // - // numericUpDown1 - // - this.numericUpDown1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.numericUpDown1.Location = new System.Drawing.Point(241, 27); - this.numericUpDown1.Maximum = new decimal(new int[] { - 10000, - 0, - 0, - 0}); - this.numericUpDown1.Minimum = new decimal(new int[] { - 1, - 0, - 0, - 0}); - this.numericUpDown1.Name = "numericUpDown1"; - this.numericUpDown1.Size = new System.Drawing.Size(46, 23); - this.numericUpDown1.TabIndex = 595; - this.numericUpDown1.Value = new decimal(new int[] { - 5, - 0, - 0, - 0}); - // - // checkBox1 - // - this.checkBox1.AutoSize = true; - this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.checkBox1.Location = new System.Drawing.Point(153, 28); - this.checkBox1.Name = "checkBox1"; - this.checkBox1.Size = new System.Drawing.Size(90, 21); - this.checkBox1.TabIndex = 594; - this.checkBox1.Text = "支付订单>="; - this.checkBox1.UseVisualStyleBackColor = true; - // - // cmbSkuOptionType - // - this.cmbSkuOptionType.DisplayMember = "Text"; - this.cmbSkuOptionType.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbSkuOptionType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbSkuOptionType.FormattingEnabled = true; - this.cmbSkuOptionType.ItemHeight = 18; - this.cmbSkuOptionType.Items.AddRange(new object[] { - this.第一个, - this.最后一个, - this.最便宜, - this.最贵, - this.不设置最便宜, - this.不设置最贵}); - this.cmbSkuOptionType.Location = new System.Drawing.Point(241, 56); - this.cmbSkuOptionType.Name = "cmbSkuOptionType"; - this.cmbSkuOptionType.Size = new System.Drawing.Size(135, 24); - this.cmbSkuOptionType.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbSkuOptionType.TabIndex = 587; - // - // 第一个 - // - this.第一个.Text = "第一个"; - // - // 最后一个 - // - this.最后一个.Text = "最后一个"; - // - // 最便宜 - // - this.最便宜.Text = "最便宜"; - // - // 最贵 - // - this.最贵.Text = "最贵"; - // - // 不设置最便宜 - // - this.不设置最便宜.Text = "不设置最便宜"; - // - // 不设置最贵 - // - this.不设置最贵.Text = "不设置最贵"; - // - // lblPercentSign - // - this.lblPercentSign.AutoSize = true; - this.lblPercentSign.Location = new System.Drawing.Point(826, 120); - this.lblPercentSign.Name = "lblPercentSign"; - this.lblPercentSign.Size = new System.Drawing.Size(19, 17); - this.lblPercentSign.TabIndex = 577; - this.lblPercentSign.Text = "%"; - // - // label9 - // - this.label9.AutoSize = true; - this.label9.Location = new System.Drawing.Point(972, 120); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(44, 17); - this.label9.TabIndex = 569; - this.label9.Text = "个商品"; - // - // nudEachActivityProductNum - // - this.nudEachActivityProductNum.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.nudEachActivityProductNum.Location = new System.Drawing.Point(913, 117); - this.nudEachActivityProductNum.Maximum = new decimal(new int[] { - 20, - 0, - 0, - 0}); - this.nudEachActivityProductNum.Minimum = new decimal(new int[] { - 1, - 0, - 0, - 0}); - this.nudEachActivityProductNum.Name = "nudEachActivityProductNum"; - this.nudEachActivityProductNum.Size = new System.Drawing.Size(56, 23); - this.nudEachActivityProductNum.TabIndex = 568; - this.nudEachActivityProductNum.Value = new decimal(new int[] { - 10, - 0, - 0, - 0}); - // - // label8 - // - this.label8.AutoSize = true; - this.label8.Location = new System.Drawing.Point(854, 120); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(56, 17); - this.label8.TabIndex = 567; - this.label8.Text = "一个活动"; - // - // nudStockValue - // - this.nudStockValue.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.nudStockValue.Location = new System.Drawing.Point(776, 117); - this.nudStockValue.Minimum = new decimal(new int[] { - 1, - 0, - 0, - 0}); - this.nudStockValue.Name = "nudStockValue"; - this.nudStockValue.Size = new System.Drawing.Size(48, 23); - this.nudStockValue.TabIndex = 566; - this.nudStockValue.Value = new decimal(new int[] { - 50, - 0, - 0, - 0}); - // - // cmbDiscountType - // - this.cmbDiscountType.DisplayMember = "Text"; - this.cmbDiscountType.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbDiscountType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbDiscountType.FormattingEnabled = true; - this.cmbDiscountType.ItemHeight = 18; - this.cmbDiscountType.Items.AddRange(new object[] { - this.打折, - this.直降, - this.一口价}); - this.cmbDiscountType.Location = new System.Drawing.Point(686, 85); - this.cmbDiscountType.Name = "cmbDiscountType"; - this.cmbDiscountType.Size = new System.Drawing.Size(84, 24); - this.cmbDiscountType.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbDiscountType.TabIndex = 565; - // - // 打折 - // - this.打折.Text = "打折"; - // - // 直降 - // - this.直降.Text = "直降"; - // - // 一口价 - // - this.一口价.Text = "一口价"; - // - // cmbStockType - // - this.cmbStockType.DisplayMember = "Text"; - this.cmbStockType.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbStockType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbStockType.FormattingEnabled = true; - this.cmbStockType.ItemHeight = 18; - this.cmbStockType.Items.AddRange(new object[] { - this.全部库存, - this.百分比库存, - this.统一库存}); - this.cmbStockType.Location = new System.Drawing.Point(686, 116); - this.cmbStockType.Name = "cmbStockType"; - this.cmbStockType.Size = new System.Drawing.Size(84, 24); - this.cmbStockType.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbStockType.TabIndex = 564; - // - // 全部库存 - // - this.全部库存.Text = "全部库存"; - // - // 百分比库存 - // - this.百分比库存.Text = "百分比库存"; - // - // 统一库存 - // - this.统一库存.Text = "统一库存"; - // - // label5 - // - this.label5.AutoSize = true; - this.label5.Location = new System.Drawing.Point(627, 120); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(56, 17); - this.label5.TabIndex = 563; - this.label5.Text = "活动库存"; - // - // cmbLimitCount - // - this.cmbLimitCount.DisplayMember = "Text"; - this.cmbLimitCount.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbLimitCount.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbLimitCount.FormattingEnabled = true; - this.cmbLimitCount.ItemHeight = 18; - this.cmbLimitCount.Items.AddRange(new object[] { - this.不限购}); - this.cmbLimitCount.Location = new System.Drawing.Point(889, 85); - this.cmbLimitCount.Name = "cmbLimitCount"; - this.cmbLimitCount.Size = new System.Drawing.Size(123, 24); - this.cmbLimitCount.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbLimitCount.TabIndex = 556; - // - // 不限购 - // - this.不限购.Text = "不限购"; - // - // label7 - // - this.label7.AutoSize = true; - this.label7.Location = new System.Drawing.Point(854, 89); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(32, 17); - this.label7.TabIndex = 555; - this.label7.Text = "限购"; - // - // nudDiscountValue - // - this.nudDiscountValue.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.nudDiscountValue.DecimalPlaces = 1; - this.nudDiscountValue.Increment = new decimal(new int[] { - 1, - 0, - 0, - 65536}); - this.nudDiscountValue.Location = new System.Drawing.Point(776, 86); - this.nudDiscountValue.Maximum = new decimal(new int[] { - 99, - 0, - 0, - 65536}); - this.nudDiscountValue.Minimum = new decimal(new int[] { - 1, - 0, - 0, - 65536}); - this.nudDiscountValue.Name = "nudDiscountValue"; - this.nudDiscountValue.Size = new System.Drawing.Size(65, 23); - this.nudDiscountValue.TabIndex = 554; - this.nudDiscountValue.Value = new decimal(new int[] { - 99, - 0, - 0, - 65536}); - // - // label17 - // - this.label17.AutoSize = true; - this.label17.Location = new System.Drawing.Point(627, 89); - this.label17.Name = "label17"; - this.label17.Size = new System.Drawing.Size(56, 17); - this.label17.TabIndex = 542; - this.label17.Text = "优惠方式"; - // - // nudGroupCount - // - this.nudGroupCount.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.nudGroupCount.Location = new System.Drawing.Point(72, 27); - this.nudGroupCount.Maximum = new decimal(new int[] { - 10000, - 0, - 0, - 0}); - this.nudGroupCount.Minimum = new decimal(new int[] { - 1, - 0, - 0, - 0}); - this.nudGroupCount.Name = "nudGroupCount"; - this.nudGroupCount.Size = new System.Drawing.Size(46, 23); - this.nudGroupCount.TabIndex = 533; - this.nudGroupCount.Value = new decimal(new int[] { - 20, - 0, - 0, - 0}); - // - // label11 - // - this.label11.AutoSize = true; - this.label11.Location = new System.Drawing.Point(18, 30); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(54, 17); - this.label11.TabIndex = 525; - this.label11.Text = "数量 <="; - // - // 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(1007, 22); - this.btnSetActivity.Name = "btnSetActivity"; - this.btnSetActivity.Size = new System.Drawing.Size(80, 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 = 427; - this.btnSetActivity.Text = "设置拼团"; - this.btnSetActivity.Click += new System.EventHandler(this.btnSetActivity_Click); - // - // btnStopOperate - // - this.btnStopOperate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnStopOperate.CanvasColor = System.Drawing.SystemColors.Control; - this.btnStopOperate.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnStopOperate.DisabledBackColor = System.Drawing.Color.Empty; - this.btnStopOperate.Location = new System.Drawing.Point(1007, 52); - this.btnStopOperate.Name = "btnStopOperate"; - this.btnStopOperate.Size = new System.Drawing.Size(80, 23); - this.btnStopOperate.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopOperate.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStopOperate.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStopOperate.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnStopOperate.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopOperate.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnStopOperate.Style.GradientAngle = 90; - this.btnStopOperate.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopOperate.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopOperate.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopOperate.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopOperate.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnStopOperate.TabIndex = 405; - this.btnStopOperate.Text = "停止设置"; - // - // 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.btnRefreshShop); - this.ucGroupBoxEx1.Location = new System.Drawing.Point(3, 2); - this.ucGroupBoxEx1.Name = "ucGroupBoxEx1"; - this.ucGroupBoxEx1.Size = new System.Drawing.Size(144, 150); - this.ucGroupBoxEx1.TabIndex = 399; - this.ucGroupBoxEx1.TabStop = false; - this.ucGroupBoxEx1.Text = "基础"; - // - // btnRefreshShop - // - this.btnRefreshShop.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRefreshShop.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnRefreshShop.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnRefreshShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnRefreshShop.ForeColor = System.Drawing.Color.White; - this.btnRefreshShop.Location = new System.Drawing.Point(16, 30); - this.btnRefreshShop.Margin = new System.Windows.Forms.Padding(2); - this.btnRefreshShop.Name = "btnRefreshShop"; - this.btnRefreshShop.Size = new System.Drawing.Size(112, 26); - this.btnRefreshShop.TabIndex = 375; - this.btnRefreshShop.Text = "刷新店铺状态"; - this.btnRefreshShop.UseVisualStyleBackColor = false; - // - // 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(1246, 398); - this.splitContainer3.SplitterDistance = 368; - this.splitContainer3.TabIndex = 1; - // - // 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.Size = new System.Drawing.Size(1246, 26); - this.splitContainer4.SplitterDistance = 1131; - 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(1131, 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(17, 0); - 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 = "清空结果"; - // - // 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.dgvShop); - this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 0, 0); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Padding = new System.Windows.Forms.Padding(0, 0, 4, 0); - this.splitContainer2.Size = new System.Drawing.Size(1246, 368); - this.splitContainer2.SplitterDistance = 270; - this.splitContainer2.TabIndex = 0; - // - // dgvShop - // - this.dgvShop.AllowUserToAddRows = false; - this.dgvShop.AllowUserToDeleteRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - 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.colShopId, - this.colShopName, - this.colAuthStatus, - this.colLoginStatus, - this.colCanUse, - this.colMessage}); - this.dgvShop.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvShop.Location = new System.Drawing.Point(4, 0); - this.dgvShop.Name = "dgvShop"; - this.dgvShop.ReadOnly = true; - this.dgvShop.RowHeadersWidth = 30; - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvShop.RowsDefaultCellStyle = dataGridViewCellStyle3; - this.dgvShop.RowTemplate.Height = 23; - this.dgvShop.Size = new System.Drawing.Size(266, 368); - this.dgvShop.TabIndex = 6; - this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick); - // - // colSelect - // - 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; - // - // colShopId - // - this.colShopId.HeaderText = "店铺"; - this.colShopId.Name = "colShopId"; - this.colShopId.ReadOnly = true; - this.colShopId.Visible = false; - this.colShopId.Width = 55; - // - // colShopName - // - this.colShopName.FillWeight = 150F; - this.colShopName.HeaderText = "店铺名称"; - this.colShopName.Name = "colShopName"; - this.colShopName.ReadOnly = true; - this.colShopName.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colShopName.Width = 75; - // - // colAuthStatus - // - this.colAuthStatus.HeaderText = "授权状态"; - this.colAuthStatus.Name = "colAuthStatus"; - this.colAuthStatus.ReadOnly = true; - this.colAuthStatus.Width = 65; - // - // colLoginStatus - // - this.colLoginStatus.HeaderText = "登录状态"; - this.colLoginStatus.Name = "colLoginStatus"; - this.colLoginStatus.ReadOnly = true; - this.colLoginStatus.Width = 65; - // - // 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; - // - // colMessage - // - this.colMessage.HeaderText = "消息"; - this.colMessage.Name = "colMessage"; - this.colMessage.ReadOnly = true; - this.colMessage.Visible = false; - this.colMessage.Width = 120; - // - // GroupBuyMonitorForm - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1246, 552); - this.Controls.Add(this.splitContainer1); - this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Name = "GroupBuyMonitorForm"; - this.Text = "GroupBuyMonitorForm"; - this.splitContainer1.Panel1.ResumeLayout(false); - this.splitContainer1.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); - this.splitContainer1.ResumeLayout(false); - this.ucGroupBoxEx2.ResumeLayout(false); - this.ucGroupBoxEx2.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.nudEachActivityProductNum)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.nudStockValue)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.nudDiscountValue)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.nudGroupCount)).EndInit(); - this.ucGroupBoxEx1.ResumeLayout(false); - this.splitContainer3.Panel1.ResumeLayout(false); - this.splitContainer3.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).EndInit(); - this.splitContainer3.ResumeLayout(false); - this.splitContainer4.Panel1.ResumeLayout(false); - this.splitContainer4.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).EndInit(); - this.splitContainer4.ResumeLayout(false); - this.splitContainer2.Panel1.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); - this.splitContainer2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.dgvShop)).EndInit(); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.SplitContainer splitContainer1; - private UserComponent.UcGroupBoxEx ucGroupBoxEx2; - private DevComponents.DotNetBar.Controls.ComboBoxEx cmbSkuOptionType; - private DevComponents.Editors.ComboItem 第一个; - private DevComponents.Editors.ComboItem 最后一个; - private DevComponents.Editors.ComboItem 最便宜; - private DevComponents.Editors.ComboItem 最贵; - private DevComponents.Editors.ComboItem 不设置最便宜; - private DevComponents.Editors.ComboItem 不设置最贵; - private System.Windows.Forms.Label lblPercentSign; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.NumericUpDown nudEachActivityProductNum; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.NumericUpDown nudStockValue; - private DevComponents.DotNetBar.Controls.ComboBoxEx cmbDiscountType; - private DevComponents.Editors.ComboItem 打折; - private DevComponents.Editors.ComboItem 直降; - private DevComponents.Editors.ComboItem 一口价; - private DevComponents.DotNetBar.Controls.ComboBoxEx cmbStockType; - private DevComponents.Editors.ComboItem 全部库存; - private DevComponents.Editors.ComboItem 百分比库存; - private DevComponents.Editors.ComboItem 统一库存; - private System.Windows.Forms.Label label5; - private DevComponents.DotNetBar.Controls.ComboBoxEx cmbLimitCount; - private DevComponents.Editors.ComboItem 不限购; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.NumericUpDown nudDiscountValue; - private System.Windows.Forms.Label label17; - private System.Windows.Forms.NumericUpDown nudGroupCount; - private System.Windows.Forms.Label label11; - private DevComponents.DotNetBar.PanelEx btnSetActivity; - private DevComponents.DotNetBar.PanelEx btnStopOperate; - private UserComponent.UcGroupBoxEx ucGroupBoxEx1; - private UserControls.ButtonEx btnRefreshShop; - private System.Windows.Forms.SplitContainer splitContainer3; - private System.Windows.Forms.SplitContainer splitContainer4; - private UserControls.StatusBarUserControl statusBar; - private DevComponents.DotNetBar.PanelEx btnClear; - private System.Windows.Forms.NumericUpDown numericUpDown1; - private System.Windows.Forms.CheckBox checkBox1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.NumericUpDown numericUpDown2; - private System.Windows.Forms.Label label1; - private DevComponents.DotNetBar.PanelEx panelEx2; - private System.Windows.Forms.SplitContainer splitContainer2; - private UserComponent.DataGridViewEx dgvShop; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopId; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopName; - private System.Windows.Forms.DataGridViewTextBoxColumn colAuthStatus; - private System.Windows.Forms.DataGridViewTextBoxColumn colLoginStatus; - private System.Windows.Forms.DataGridViewCheckBoxColumn colCanUse; - private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyMonitorForm.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyMonitorForm.cs deleted file mode 100644 index dfb1558..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyMonitorForm.cs +++ /dev/null @@ -1,51 +0,0 @@ -using NaiBa.Util.Extension; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; -using TemuKJD.KJDForms.BaseForms; - -namespace TemuKJD.KJDForms.SalesCenterForms -{ - public partial class GroupBuyMonitorForm : BaseForm - { - public GroupBuyMonitorForm() - { - InitializeComponent(); - } - - private void btnSetActivity_Click(object sender, EventArgs e) - { - - } - - private void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - - var colName = dgvShop.Columns[e.ColumnIndex].Name; - if (colName == "colSelect") - { - // 只允许单选 - if (dgvShop.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ParseToBool() == true) - { - dgvShop.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = false; - } - else - { - foreach (DataGridViewRow row in dgvShop.Rows) - { - row.Cells[e.ColumnIndex].Value = false; - } - dgvShop.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = true; - } - } - } - } -} diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyMonitorForm.resx b/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyMonitorForm.resx deleted file mode 100644 index 82921c0..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyMonitorForm.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyShopForm.Designer.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyShopForm.Designer.cs deleted file mode 100644 index a4d536b..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyShopForm.Designer.cs +++ /dev/null @@ -1,232 +0,0 @@ -namespace TemuKJD.KJDForms.SalesCenterForms -{ - partial class GroupBuyShopForm - { - /// - /// 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() - { - 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(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.dgvProduct = new TemuKJD.UserComponent.DataGridViewEx(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colProductId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colProductName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colStock = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colSales = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colPrice = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colCreateTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.label1 = new System.Windows.Forms.Label(); - this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); - this.splitContainer2.Panel1.SuspendLayout(); - this.splitContainer2.Panel2.SuspendLayout(); - this.splitContainer2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgvProduct)).BeginInit(); - this.SuspendLayout(); - // - // splitContainer2 - // - this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; - this.splitContainer2.Location = new System.Drawing.Point(0, 0); - this.splitContainer2.Name = "splitContainer2"; - this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; - // - // splitContainer2.Panel1 - // - this.splitContainer2.Panel1.Controls.Add(this.dgvProduct); - this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 4, 4, 0); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Controls.Add(this.label1); - this.splitContainer2.Panel2.Controls.Add(this.statusBar); - this.splitContainer2.Size = new System.Drawing.Size(1160, 597); - this.splitContainer2.SplitterDistance = 567; - this.splitContainer2.TabIndex = 10; - this.splitContainer2.SplitterMoved += new System.Windows.Forms.SplitterEventHandler(this.splitContainer2_SplitterMoved); - // - // dgvProduct - // - this.dgvProduct.AllowUserToAddRows = false; - this.dgvProduct.AllowUserToDeleteRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - this.dgvProduct.BackgroundColor = System.Drawing.Color.White; - this.dgvProduct.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dgvProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; - this.dgvProduct.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgvProduct.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.colSelect, - this.colProductId, - this.colProductName, - this.colStock, - this.colSales, - this.colPrice, - this.colCreateTime, - this.colMessage}); - this.dgvProduct.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvProduct.Location = new System.Drawing.Point(4, 4); - this.dgvProduct.Name = "dgvProduct"; - this.dgvProduct.ReadOnly = true; - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvProduct.RowsDefaultCellStyle = dataGridViewCellStyle3; - this.dgvProduct.RowTemplate.Height = 23; - this.dgvProduct.Size = new System.Drawing.Size(1152, 563); - this.dgvProduct.TabIndex = 6; - this.dgvProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvProduct_CellContentClick); - this.dgvProduct.CellMouseDown += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvProduct_CellMouseDown); - this.dgvProduct.CellMouseEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvProduct_CellMouseEnter); - this.dgvProduct.CellMouseUp += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvProduct_CellMouseUp); - // - // colSelect - // - this.colSelect.FillWeight = 50F; - this.colSelect.HeaderText = "选"; - this.colSelect.Name = "colSelect"; - this.colSelect.ReadOnly = true; - this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.colSelect.Width = 41; - // - // colProductId - // - this.colProductId.HeaderText = "商品Id"; - this.colProductId.Name = "colProductId"; - this.colProductId.ReadOnly = true; - this.colProductId.Width = 150; - // - // colProductName - // - this.colProductName.HeaderText = "商品名称"; - this.colProductName.Name = "colProductName"; - this.colProductName.ReadOnly = true; - this.colProductName.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colProductName.Width = 350; - // - // colStock - // - this.colStock.HeaderText = "库存"; - this.colStock.Name = "colStock"; - this.colStock.ReadOnly = true; - this.colStock.Width = 60; - // - // colSales - // - this.colSales.HeaderText = "销量"; - this.colSales.Name = "colSales"; - this.colSales.ReadOnly = true; - this.colSales.Width = 60; - // - // colPrice - // - this.colPrice.HeaderText = "价格"; - this.colPrice.Name = "colPrice"; - this.colPrice.ReadOnly = true; - this.colPrice.Width = 60; - // - // colCreateTime - // - this.colCreateTime.HeaderText = "创建时间"; - this.colCreateTime.Name = "colCreateTime"; - this.colCreateTime.ReadOnly = true; - // - // colMessage - // - this.colMessage.HeaderText = "消息"; - this.colMessage.Name = "colMessage"; - this.colMessage.ReadOnly = true; - this.colMessage.Width = 300; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.ForeColor = System.Drawing.Color.MidnightBlue; - this.label1.Location = new System.Drawing.Point(656, 2); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(43, 17); - this.label1.TabIndex = 3; - this.label1.Text = "label1"; - this.label1.Click += new System.EventHandler(this.label1_Click); - // - // 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(1160, 26); - this.statusBar.TabIndex = 2; - this.statusBar.Load += new System.EventHandler(this.statusBar_Load); - // - // GroupBuyShopForm - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1160, 597); - this.Controls.Add(this.splitContainer2); - this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Name = "GroupBuyShopForm"; - this.Text = "GroupBuyShopForm"; - this.Load += new System.EventHandler(this.GroupBuyShopForm_Load); - this.splitContainer2.Panel1.ResumeLayout(false); - this.splitContainer2.Panel2.ResumeLayout(false); - this.splitContainer2.Panel2.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); - this.splitContainer2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.dgvProduct)).EndInit(); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.SplitContainer splitContainer2; - private UserComponent.DataGridViewEx dgvProduct; - private System.Windows.Forms.Label label1; - public UserControls.StatusBarUserControl statusBar; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colProductId; - private System.Windows.Forms.DataGridViewTextBoxColumn colProductName; - private System.Windows.Forms.DataGridViewTextBoxColumn colStock; - private System.Windows.Forms.DataGridViewTextBoxColumn colSales; - private System.Windows.Forms.DataGridViewTextBoxColumn colPrice; - private System.Windows.Forms.DataGridViewTextBoxColumn colCreateTime; - private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyShopForm.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyShopForm.cs deleted file mode 100644 index 9dde57b..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/GroupBuyShopForm.cs +++ /dev/null @@ -1,560 +0,0 @@ -using AllBase; -using AllBase.Extension; -using AllBase.Helper; -using AllBase.Model.Result; -using TemuKJD.Extension; -using TemuKJD.KJDForms.BaseForms; -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.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; -using Work.BLL.Product; - -namespace TemuKJD.KJDForms.SalesCenterForms -{ - public partial class GroupBuyShopForm : BaseForm - { - public List lstProductId - { - get - { - return this.dgvProduct.Rows.Cast().Where(r => r.Cells["colSelect"].Value.ParseToBool() == true && r.Visible == true) - .Select(r => r.Cells["colProductId"].Value.ToString()).ToList(); - } - } - private CheckBox chkSelectAll = null; - - ShopLoginInfo shop = null; - public GroupBuyForm groupBuyForm = null; - public bool isGetProductSuccess = false; - public bool isGetSalesSuccess = false; - string _signature = ""; - string _timeSpan = ""; - public Dictionary dicProductSales = new Dictionary(); - public List productList = new List(); - - public GroupBuyShopForm(ShopLoginInfo _shop = null) - { - InitializeComponent(); - - shop = _shop; - } - - private void GroupBuyShopForm_Load(object sender, EventArgs e) - { - chkSelectAll = dgvProduct.Columns["colSelect"].AddHeaderCheckBox(HorizontalAlignment.Center, 0, 0, null, null, false); - dgvProduct.Columns["colSelect"].HeaderText = ""; - - chkSelectAll.Width = chkSelectAll.Height = 13; - chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged; - } - - private void chkSelectAll_CheckedChanged(object sender, EventArgs e) - { - if (!chkSelectAll.Checked) - { - foreach (DataGridViewRow row in dgvProduct.Rows) - { - row.Cells["colSelect"].Value = false; - } - } - else - { - foreach (DataGridViewRow row in dgvProduct.Rows) - { - row.Cells["colSelect"].Value = true; - } - } - } - - public void InitGetProduct() - { - if (shop == null) - return; - - ShowVisitorMessage(""); - foreach (DataGridViewRow r in this.dgvProduct.Rows) - { - r.Cells["colSales"].Value = "获取中"; - r.Cells["colStock"].Value = "获取中"; - r.Cells["colMessage"].Value = ""; - } - foreach (var p in productList) - { - p.sell_num = null; - } - } - - public void GetProductSim(string listUrl, string referrerUrl, Dictionary headers, string firstPageData = "", string campaign_start_time = "", string campaign_end_time = "") - { - ShowVisitorMessage(""); - var salesUrl = listUrl; - foreach (DataGridViewRow r in this.dgvProduct.Rows) - { - Invoke(new Action(() => - { - r.Cells["colSales"].Value = "获取中"; - r.Cells["colStock"].Value = "获取中"; - r.Cells["colMessage"].Value = ""; - })); - } - foreach (var p in productList) - { - p.sell_num = null; - } - - bool isGetSalesOver = false; - - var t1 = Task.Run(() => - { - int totalx = -1; - int totalPagex = 0; - int numberx = 0; - string resultx = ""; - if (!string.IsNullOrEmpty(firstPageData)) - resultx = firstPageData; - - ShowVisitorMessage("正在初始化商品获取"); - - // 获取有销量的商品 - for (int i = 0; i < 10000; i++) - { - numberx += 20; - for (int j = 0; j < 3 && !resultx.Contains("\"st\":0"); j++) - { - CommonSimRequest simRequest = new CommonSimRequest(); - simRequest.Accept = "application/json, text/plain, */*"; - if (headers.ContainsKey("Accept")) - simRequest.Accept = headers["Accept"]; - if (headers.ContainsKey("UserAgent")) - simRequest.UserAgent = headers["UserAgent"]; - var cookie = shop.Cookies; - - ShowVisitorMessage("商品销量获取中,第 " + (i + 1) + " 页"); - var rUrl = salesUrl.Replace("page=0", "page=" + i).Replace("&pay_type=", "&pay_type=&sell_num_min=1"); // 获取所有有销量的商品,Replace不可注释!! - resultx = simRequest.Request_Get(rUrl, referrerUrl, new Dictionary(), cookie); - if (j > 0) - { - Thread.Sleep(Randomx.GetId(250, 750)); - Thread.Sleep(Randomx.GetId(250, 750)); - } - } - - if (resultx.Contains("\"st\":0") && !groupBuyForm.cancellationTokenSource.IsCancellationRequested) - { - this.isGetSalesSuccess = true; - - if (totalx == -1) - { - totalx = BaseRegex.GetIntJson(ref resultx, "total"); - } - var jObj = JObject.Parse(resultx); - var jArr = jObj["data"] as JArray; - foreach (var productObj in jArr) - { - var prod = JsonHelper.SerializeObject(productObj); - - var product_id = BaseRegex.GetLongJson(ref prod, "product_id"); - var sell_num = BaseRegex.GetIntJson(ref prod, "sell_num"); - this.dicProductSales[product_id] = sell_num; - } - Thread.Sleep(Randomx.GetId(250, 750)); - Thread.Sleep(Randomx.GetId(250, 750)); - resultx = ""; - } - else - { - isGetSalesSuccess = false; - ShowVisitorMessage("获取商品销量完成"); - isGetSalesOver = true; - break; - } - - if (numberx >= totalx) - { - ShowVisitorMessage("获取商品销量完成"); - isGetSalesOver = true; - break; - } - } - }); - - var total = -1; - var totalPage = 1; - var number = 0; - var result = ""; - referrerUrl = "https://fxg.jinritemai.com/market/center/group/create?type=1"; - DateTime date = DateTime.Now.Date; - if (string.IsNullOrEmpty(campaign_start_time)) - campaign_start_time = date.ToString("yyyy-MM-dd") + "+00:00:00"; - if (string.IsNullOrEmpty(campaign_end_time)) - campaign_end_time = date.ToString("yyyy-MM-dd") + "+23:59:59"; - _timeSpan = BaseRegex.GetMatchRegexString(ref listUrl, "&_=([\\s\\S]+?)&"); - if (string.IsNullOrEmpty(_timeSpan)) - _timeSpan = BaseRegex.GetMatchRegexString(ref listUrl, "&_=([\\s\\S]+?)"); - if (string.IsNullOrEmpty(_timeSpan)) - _timeSpan = BaseClass.DateTimeToTimestampMilliseconds(DateTime.Now).ToString(); - _signature = BaseRegex.GetMatchRegexString(ref listUrl, "&_signature=([\\s\\S]+?)&"); - if (string.IsNullOrEmpty(_signature)) - { - var listUrl2 = listUrl + "&"; - _signature = BaseRegex.GetMatchRegexString(ref listUrl2, "&_signature=([\\s\\S]+?)&"); - } - //https://fxg.jinritemai.com/byteshop/promotion/queryAvailableGoods?pageSize=15&page=2&page_size=15&campaign_start_time=2022-06-21+19:14:51&campaign_end_time=2022-06-22+19:14:51&_bid=ecom_market_shop&appid=1&_=1655887384070&_signature=_02B4Z6wo001018eSLdwAAIDCpJjttu0f6uPHlilAAJNfj1ao1TeKBkwmWorJ02UXEJ65nOUW80KDl7BCnks4QRQn4NSiCgbDAn0lDv-DZLnjG2jU-ZN-lFYs9ZV8k8yacuCAeWC7HN1lMk3576"); - listUrl = "https://fxg.jinritemai.com/byteshop/promotion/queryAvailableGoods?pageSize=15&page=0&page_size=15&campaign_start_time=" - + campaign_start_time + "&campaign_end_time=" + campaign_end_time + "&_bid=ecom_market_shop&appid=1" - + "&_=" + _timeSpan + "&_signature=" + _signature; - for (int i = 1; i <= groupBuyForm.getPage; i++) - { - if (i > totalPage) - break; - - result = ""; - number += 15; - for (int j = 0; j < 3 && !result.Contains("\"st\":0") || result.Contains("\"msg\":\"账号未登录\""); j++) - { - CommonSimRequest simRequest = new CommonSimRequest(); - simRequest.Accept = "application/json, text/plain, */*"; - if (headers.ContainsKey("Accept")) - simRequest.Accept = headers["Accept"]; - if (headers.ContainsKey("UserAgent")) - simRequest.UserAgent = headers["UserAgent"]; - var cookie = shop.Cookies; - - var rUrl = listUrl.Replace("page=0", "page=" + i); - result = simRequest.Request_Get(rUrl, referrerUrl, new Dictionary(), cookie); - if (j > 0) - { - Thread.Sleep(Randomx.GetId(250, 500)); - } - - ShowVisitorMessage("正在获取商品第" + i + "页"); - } - - if (result.Contains("\"st\":0") && !groupBuyForm.cancellationTokenSource.IsCancellationRequested) - { - this.isGetProductSuccess = true; - - if (total == -1) - { - total = BaseRegex.GetIntJson(ref result, "total"); - } - - totalPage = Math.Ceiling(total / 15M).ParseToInt(); - if (totalPage > groupBuyForm.getPage) - totalPage = groupBuyForm.getPage; - string message = "正在获取商品第 " + i + " 页,共获取 " + totalPage + " 页"; - ShowVisitorMessage(""); - - Invoke(new Action(() => - { - this.statusBar.lblTaskStatus.Text = message; - this.statusBar.pgbTaskProgress.Value = i; - this.statusBar.pgbTaskProgress.Text = i + "/" + totalPage; - this.statusBar.pgbTaskProgress.Maximum = totalPage; - })); - - try - { - var jObj = JObject.Parse(result); - var pList = JsonHelper.DeserializeJsonToList(jObj["data"]?.ToString()); - - foreach (var product in pList) - { - if (product.allow == false) - continue; - if (dicProductSales.ContainsKey(product.product_id.ParseToLong())) - product.sell_num = dicProductSales[product.product_id.ParseToLong()]; - else if (isGetSalesOver && isGetSalesSuccess) - product.sell_num = 0; - else if (isGetSalesOver) - product.sell_num = -1; - - if (this.productList.Any(p => p.product_id == product.product_id)) - this.productList.RemoveAll(p => p.product_id == product.product_id); - this.productList.Add(product); - - Invoke(new Action(() => - { - var rowId = -1; - var rowExist = this.dgvProduct.Rows.Cast().FirstOrDefault(r => r.Cells["colProductId"].Value.ToString() == product.product_id); - if (rowExist != null) - { - rowId = rowExist.Index; - dgvProduct.Rows.Insert(rowExist.Index, false, product.product_id, product.name, product.stock_num, product.sell_num, - product.min_price / 100M + " - " + product.max_price / 100M); - dgvProduct.Rows.Remove(rowExist); - } - else - rowId = dgvProduct.Rows.Add(false, product.product_id, product.name, product.stock_num, product.sell_num, - product.min_price / 100M + " - " + product.max_price / 100M); - - // 过滤数据 - if (groupBuyForm.keywords?.Count > 0 && !groupBuyForm.keywords.Any(k => product.name.Contains(k) || product.product_id.Contains(k))) - dgvProduct.Rows[rowId].Visible = false; - if (groupBuyForm.filterWords?.Count > 0 && groupBuyForm.filterWords.Any(k => product.name.Contains(k) || product.product_id.Contains(k))) - dgvProduct.Rows[rowId].Visible = false; - if (groupBuyForm.priceMin > product.max_price || groupBuyForm.priceMax < product.min_price) - dgvProduct.Rows[rowId].Visible = false; - if (groupBuyForm.saleMin > product.sell_num || groupBuyForm.saleMax < product.sell_num) - dgvProduct.Rows[rowId].Visible = false; - })); - } - Thread.Sleep(Randomx.GetId(250, 500)); - } - catch (Exception) - { - isGetProductSuccess = false; - break; - } - } - else - { - isGetProductSuccess = false; - break; - } - - if (number >= total) - break; - } - - t1.Wait(); - - // 最后填写商品销量 - foreach (var product in this.productList) - { - if (dicProductSales.ContainsKey(product.product_id.ParseToLong())) - product.sell_num = dicProductSales[product.product_id.ParseToLong()]; - else if (isGetSalesSuccess) - product.sell_num = 0; - else - product.sell_num = -1; - - var row = this.dgvProduct.Rows.Cast().FirstOrDefault(r => r.Cells["colProductId"].Value.ToString() == product.product_id); - if (row != null && row.Cells["colSales"].Value?.ToString() == "获取中") - { - if (product.sell_num >= 0) - row.Cells["colSales"].Value = product.sell_num; - if (product.sell_num >= 0) - row.Cells["colSales"].Value = product.sell_num; - } - } - - Invoke(new Action(() => - { - if (groupBuyForm.cancellationTokenSource.IsCancellationRequested) - { - this.statusBar.lblTaskStatus.Text = "获取中断"; - } - else if (!isGetSalesSuccess) - { - this.statusBar.lblTaskStatus.Text = "获取完成,但获取销量信息失败"; - } - else if (!isGetProductSuccess) - { - this.statusBar.lblTaskStatus.Text = "获取商品信息失败"; - } - else - { - this.statusBar.lblTaskStatus.Text = "获取完成"; - } - //this.statusBar.pgbTaskProgress.Value = 0; - //this.statusBar.pgbTaskProgress.Text = 0 + "/" + 0; - //this.statusBar.pgbTaskProgress.Maximum = 0; - })); - } - - - public void SetSalesCount() - { - foreach (var key in dicProductSales.Keys) - { - var row = this.dgvProduct.Rows.Cast().FirstOrDefault(r => r.Cells["colProductId"].Value.ToString() == key.ToString()); - if (row != null) - { - Invoke(new Action(() => - { - row.Cells["colSales"].Value = dicProductSales[key]; - })); - } - var product = this.productList.Find(p => p.product_id.ToString() == key.ToString()); - if (product != null) - product.sell_num = dicProductSales[key]; - } - - foreach (DataGridViewRow row in dgvProduct.Rows) - { - if (row.Cells["colSales"].Value.ToString() == "获取中") - { - Invoke(new Action(() => - { - if (isGetSalesSuccess) - { - row.Cells["colSales"].Value = 0; - } - else - { - row.Cells["colSales"].Value = "获取失败"; - } - })); - } - } - if (isGetSalesSuccess) - { - foreach (var prod in this.productList) - { - if (prod.sell_num == null) - prod.sell_num = 0; - } - } - } - - public void ShowVisitorMessage(string msg, string ids = "") - { - Invoke(new Action(() => - { - this.label1.Text = msg; - if (!string.IsNullOrEmpty(ids)) - { - var idList = ids.Split(new string[] { "\",\"", "\"" }, StringSplitOptions.RemoveEmptyEntries); - var rows = this.dgvProduct.Rows.Cast().Where(r => idList.Contains(r.Cells["colProductId"].Value?.ToString())); - foreach (var row in rows) - { - row.Cells["colMessage"].Value = msg; - } - } - })); - } - - private void dgvProduct_CellContentClick(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - string headerText = dgvProduct.Columns[e.ColumnIndex].HeaderText; - string columnName = dgvProduct.Columns[e.ColumnIndex].Name; - var row = dgvProduct.Rows[e.RowIndex]; - switch (columnName) - { - case "colSelect": - break; - } - } - - private void label1_Click(object sender, EventArgs e) - { - - } - - private void splitContainer2_SplitterMoved(object sender, SplitterEventArgs e) - { - - } - - private void statusBar_Load(object sender, EventArgs e) - { - - } - - bool isSelecting = false; - bool isCheck = true; - private void dgvProduct_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - - var columnName = dgvProduct.Columns[e.ColumnIndex].Name; - if (MouseButtons == MouseButtons.Left) - { - if (columnName == "colSelect") - { - dgvProduct.Rows[e.RowIndex].Cells["colSelect"].Value = !dgvProduct.Rows[e.RowIndex].Cells["colSelect"].Value.ParseToBool(); - - isSelecting = true; - isCheck = dgvProduct.Rows[e.RowIndex].Cells["colSelect"].Value.ParseToBool(); - - chkSelectAll.CheckedChanged -= chkSelectAll_CheckedChanged; - if (dgvProduct.Rows.Cast().All(r => r.Cells["colSelect"].Value.ParseToBool())) - chkSelectAll.Checked = true; - else - chkSelectAll.Checked = false; - chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged; - } - } - } - - private void dgvProduct_CellMouseEnter(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - - var row = dgvProduct.Rows[e.RowIndex]; - if (MouseButtons == MouseButtons.Left) - { - var columnName = dgvProduct.Columns[e.ColumnIndex].Name; - if (isSelecting) - { - dgvProduct.Rows[e.RowIndex].Cells["colSelect"].Value = isCheck; - - chkSelectAll.CheckedChanged -= chkSelectAll_CheckedChanged; - if (dgvProduct.Rows.Cast().All(r => r.Cells["colSelect"].Value.ParseToBool())) - chkSelectAll.Checked = true; - else - chkSelectAll.Checked = false; - chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged; - } - } - } - - private void dgvProduct_CellMouseUp(object sender, DataGridViewCellMouseEventArgs e) - { - isSelecting = false; - } - - //根据id获取sku - public string GetSkusByProductIds(string postData, string cookies) - { - CommonSimRequest request = new CommonSimRequest(); - request.ContentType = "application/json"; - Dictionary dicts = new Dictionary(); - string reqUrl = "https://fxg.jinritemai.com/byteshop/promotion/batchGetSkuByProductIds?_bid=ecom_market_shop&appid=1&_=" + _timeSpan + "&_signature=" + _signature; - string referer = "https://fxg.jinritemai.com/market/center/group/create?type=1"; - string result = request.Request_PostByBigLength(reqUrl, referer, dicts, cookies, postData); - return result; - } - - public string checkGroupBuyGoods(string postData, string cookies) - { - CommonSimRequest request = new CommonSimRequest(); - request.ContentType = "application/json"; - Dictionary dicts = new Dictionary(); - string reqUrl = "https://fxg.jinritemai.com/byteshop/promotion/checkGroupBuy?_bid=ecom_market_shop&appid=1&_=" + _timeSpan + "&_signature=" + _signature; - string referer = "https://fxg.jinritemai.com/market/center/group/create?type=1"; - string result = request.Request_PostByBigLength(reqUrl, referer, dicts, cookies, postData); - return result; - } - - public string createGroupBuyGoods(string postData, string cookies) - { - CommonSimRequest request = new CommonSimRequest(); - request.ContentType = "application/json"; - Dictionary dicts = new Dictionary(); - string reqUrl = "https://fxg.jinritemai.com/byteshop/promotion/createGroupBuy?_bid=ecom_market_shop&appid=1&_=" + _timeSpan + "&_signature=" + _signature; - string result = request.Request_PostByBigLength(reqUrl, "https://fxg.jinritemai.com/market/center/tools/limitsales/detail?refer=new", dicts, cookies, postData); - return result; - } - - public void ClearData() - { - this.dgvProduct.Rows.Clear(); - this.productList.Clear(); - } - } -} diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/LimitedSalesActivityNameForm.Designer.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/LimitedSalesActivityNameForm.Designer.cs deleted file mode 100644 index ee6b7fe..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/LimitedSalesActivityNameForm.Designer.cs +++ /dev/null @@ -1,131 +0,0 @@ -namespace TemuKJD.KJDForms.SalesCenterForms -{ - partial class LimitedSalesActivityNameForm - { - /// - /// 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() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LimitedSalesActivityNameForm)); - this.panel2 = new System.Windows.Forms.Panel(); - this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.btnSave = new DevComponents.DotNetBar.PanelEx(); - this.panel2.SuspendLayout(); - this.SuspendLayout(); - // - // panel2 - // - this.panel2.BackColor = System.Drawing.Color.White; - this.panel2.Controls.Add(this.labelX1); - this.panel2.Controls.Add(this.textBoxX1); - this.panel2.Controls.Add(this.btnSave); - this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel2.Location = new System.Drawing.Point(1, 33); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(383, 416); - this.panel2.TabIndex = 1; - // - // labelX1 - // - this.labelX1.AutoSize = true; - // - // - // - this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX1.ForeColor = System.Drawing.Color.Gray; - this.labelX1.Location = new System.Drawing.Point(16, 11); - this.labelX1.Name = "labelX1"; - this.labelX1.Size = new System.Drawing.Size(303, 18); - this.labelX1.TabIndex = 462; - this.labelX1.Text = "请输入自定义活动名称,一行一个(长度1-10个字符):"; - // - // textBoxX1 - // - this.textBoxX1.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.textBoxX1.Border.Class = "TextBoxBorder"; - this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxX1.Location = new System.Drawing.Point(16, 35); - this.textBoxX1.Multiline = true; - this.textBoxX1.Name = "textBoxX1"; - this.textBoxX1.PreventEnterBeep = true; - this.textBoxX1.Size = new System.Drawing.Size(351, 338); - this.textBoxX1.TabIndex = 461; - // - // btnSave - // - this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnSave.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnSave.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnSave.DisabledBackColor = System.Drawing.Color.Empty; - this.btnSave.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSave.Location = new System.Drawing.Point(309, 379); - this.btnSave.Name = "btnSave"; - this.btnSave.Size = new System.Drawing.Size(58, 23); - this.btnSave.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnSave.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSave.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSave.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnSave.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnSave.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnSave.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnSave.Style.GradientAngle = 90; - this.btnSave.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnSave.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSave.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSave.TabIndex = 460; - this.btnSave.Text = "保存"; - this.btnSave.Click += new System.EventHandler(this.btnSave_Click); - // - // LimitedSalesActivityNameForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.ClientSize = new System.Drawing.Size(385, 450); - this.Controls.Add(this.panel2); - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Name = "LimitedSalesActivityNameForm"; - this.Text = "自定义限时限量购活动名称"; - this.TitleText = "自定义限时限量购活动名称"; - this.Controls.SetChildIndex(this.panel2, 0); - this.panel2.ResumeLayout(false); - this.panel2.PerformLayout(); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel2; - private DevComponents.DotNetBar.LabelX labelX1; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; - private DevComponents.DotNetBar.PanelEx btnSave; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/LimitedSalesActivityNameForm.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/LimitedSalesActivityNameForm.cs deleted file mode 100644 index 58e6ebd..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/LimitedSalesActivityNameForm.cs +++ /dev/null @@ -1,36 +0,0 @@ -using TemuKJD.KJDForms.BaseForms; -using NaiBa.Util; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace TemuKJD.KJDForms.SalesCenterForms -{ - public partial class LimitedSalesActivityNameForm : LRBaseForm - { - public LimitedSalesActivityNameForm() - { - InitializeComponent(); - - this.Load += GroupBuyCustomActivityNameForm_Load; - } - - private void GroupBuyCustomActivityNameForm_Load(object sender, EventArgs e) - { - this.textBoxX1.Text = string.Join("\r\n", SeckillingAndLimitedSalesForm.CustomActivityNames) + "\r\n"; - } - - private void btnSave_Click(object sender, EventArgs e) - { - SeckillingAndLimitedSalesForm.CustomActivityNames = this.textBoxX1.Text.Trim().Split(new string[] { "\r", "\n" }, StringSplitOptions.RemoveEmptyEntries).ToList(); - NaiBa.Util.Helper.ConfigHelper.SaveConfig>("limited_sales_custom_names", SeckillingAndLimitedSalesForm.CustomActivityNames); - this.Close(); - } - } -} diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/LimitedSalesActivityNameForm.resx b/TEMUKJD/KJDForms/SalesCenterForms/Old/LimitedSalesActivityNameForm.resx deleted file mode 100644 index e330b8a..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/LimitedSalesActivityNameForm.resx +++ /dev/null @@ -1,298 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - - - AAABAAEAgIAQcgAAAABoKAAAFgAAACgAAACAAAAAAAEAAAEABAAAAAAAACgAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAgICAAMDAwAAAAP8AAP8AAAD//wD/AAAA/wD/AP// - AAD///8AAAAAAAAAAAAAAAAABEZmbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZmZkQAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAZszMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMxmAAAAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMxkAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzGQAAAAAAAAAAAAAAAAAAAbMzMzMzMzMzMzMzMzMzMzMzMzMd3d3d3d3d3 - d3d3fMzMzMzMzMzMzMzMzMzMzMzMzMYAAAAAAAAAAAAAAAAARszMzMzMzMzMzMzMzMzMzMd3d3iIiIiI - iIiIiIiIiIh3d3d8zMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAABszMzMzMzMzMzMzMzMzMx3eIiIiI - iIiIiIiIiIiIiIiIiIiIiHd8zMzMzMzMzMzMzMzMzMxgAAAAAAAAAAAAAGzMzMzMzMzMzMzMzMzMd4iI - iIiIiIiIiIiIiIiIiIiIiIiIiIiIiHfMzMzMzMzMzMzMzMzMxgAAAAAAAAAAAAbMzMzMzMzMzMzMzMzH - eIiIiIiIiIiHZmZmZmZmZmZmZ3eIiIiIiIiIiHzMzMzMzMzMzMzMzMxgAAAAAAAAAABszMzMzMzMzMzM - zMzHiIiIiIiHZmZmZmZmZmZmZmZmZmZmZmZmeIiIiIiIfMzMzMzMzMzMzMzMxgAAAAAAAAAGzMzMzMzM - zMzMzMzHiIiIiIdmZmZmZgAAAAAAAAAAAAZmZmZmZmZmeIiIiIh8zMzMzMzMzMzMzMxgAAAAAAAATMzM - zMzMzMzMzMzHiIiIiHZmZgAAAAAAAAAAAAEAAAAAAAAAAGZmZmZniIiIiHzMzMzMzMzMzMzMxAAAAAAA - AGzMzMzMzMzMzMzMeIiIiGZmAAAAAAERERmZmZmZmZmZkRERERAAAGZmZmZ4iIiIfMzMzMzMzMzMzMYA - AAAAAAbMzMzMzMzMzMzMeIiIiGZgAAAAERmZmZmZmZmZmZmZmZmZmZmZkREAAGZmZniIiIfMzMzMzMzM - zMzMYAAAAABMzMzMzMzMzMzMzIiIiHYAAAARGZmZiIiIj///////+IiIiIeZmZmZkREAZmZmiIiIfMzM - zMzMzMzMzMQAAAAAbMzMzMzMzMzMzO6IiIYAAAARmYiI/////////////////////4iHmZmZEQBmZmeI - iIh8zMzMzMzMzMzGAAAABMzMzMzMzMzMzMeIiIdgAAAZmI////////////////////////////iJmZmR - EGZmZ4iIh8zMzMzMzMzMzEAAAAbMzMzMzMzMzMzoiIhwAAAZeP////////////////////////////// - /4iZmZEAZmZ4iIh8zMzMzMzMzMxgAABMzMzMzMzMzMzOiIiGAAABiP////////////////////////// - ////////+JmZkQZmZ4iIh8zMzMzMzMzMxAAAbMzMzMzMzMzM7oiIYAABeP////////////////////// - ///////////////4mZkQZmZ4iIjMzMzMzMzMzMYAAMzMzMzMzMzMzu6IhwAAGP////////////////// - /////////////////////4iZmRZmZ4iIfMzMzMzMzMzMAAbMzMzMzMzMzM7oiHAAB4////////////// - ////////////////////////////iZmRBmZ4iIfMzMzMzMzMzGAGzMzMzMzMzMzuiIcAAHj///////// - //////////////////////////////////iZmRZmZ4iIzMzMzMzMzMxgDMzMzMzMzMzM7ohwAAf///// - ////////////////////////////////////////95mRZmaIiHzMzMzMzMzMwEzMzMzMzMzMzuiIEABo - //////////////////////////////////////////////95mRZmaIiMzMzMzMzMzMRszMzMzMzMzM7o - hwAGj///////////////////////////////////////////////95kQZmeIh8zMzMzMzMzGbMzMzMzM - zMzu6HEAB/////////////////////////////////////////////////+ZkQZmiIjMzMzMzMzMxmzM - zMzMzMzM7ohwAGj/////////////////////////////////////////////////iZkWZniIfMzMzMzM - zMZszMzMzMzMxu6HEAbv/4iI/////////////////////////////////////////4iP//iZEGZoiHzM - zMzMzMzGbMzMzMzMzM7uhxAGj/iIiIj//////////////////////////////////////4iIiI//mZFm - aIiMzMzMzMzMxszMzMzMzMzO6IEAbv+IiIiIj/////////////////////////////////////iIiIiP - /4mRBmeIh8zMzMzMzMbMzMzMzMzMbuhxAG7/iIiIiI////////////////iIj///j//////////////4 - iIiIiP/5mQZmiIfMzMzMzMzMzMzMzMzMzO7ocQDo+IiIiIiP///////////////u7u7u7u7o//////// - ////iIiIiIj/+JkWZoiHzMzMzMzMzMzMzMzMzMzu6BEG7/iIiIiIj/////////////+Hd3ju5maO7v// - /////////4iIiIiI//iZEGaIh8zMzMzMzMzMzMzMzMzM7ugRBu//iIiIiI//////////////kZmZdmAZ - mP/////////////4iIiIiP//mRBmeIjMzMzMzMzMzMzMzMzMzO7nEAbv/4iIiIiP////////////+HiI - mZEBd5n/////////////+IiIiIj//4mQZniIzMzMzMzMzMzMzMzMzMzu5xAO7//4iIiI//ju7o////// - //j//4mZeP/4//////////////iIiIiP//+JkGZ4iHzMzMzMzMzMzMzMzMzG7ocQDu///4iI//ju7u7u - j//////////4mP//////////////7u7uiIiI////iZBmaIh8zMzMzMzMzMzMzMzMzu6HEG7v//////+G - ZmZ47u7//////////4//////////////7u7u7u6P/////4mQBmiIfMzMzMzMzMzMzMzMzM7uhRBu7/// - ///3AAAAF37u7///////////////////////h2AABm7u7v/////5kAZ4iHzMzMzMzMzMzMzMzMzO7oUQ - bu//////gQAAZgEG7u//////////////////////+BAAAAAFfu6P////+ZAGeIjMzMzMzMzMzMzMzMzM - zu6FEG7v////+JEAAXhwAG7o/////////////////////4gAABEGARbu7/////kQBoiIzMzMzMzMzMzM - zMzMzM7uhRBu7/////iZABmZkQBm6P////////////////////+JABGZF2AAbo////+JEGaIiMzMzMzM - zMzMzMzMzMzO7ucRbu/////4mRZ4iZkQBu//////////////////////mQB5mZdgAG7/////iRBmiIfM - zMzMzMzMzMzMzMzMxu7nEQ7v////+Bl+j/iZEAaP/////////////////////5l2/4mRAABu/////4kQ - ZoiHzMzMzMzMzMzMzMzMzMzu5xEO6P//+Phgbu/4kQAI//////////////////////+Zfo/4kQAAeIiP - //+JEGaIh8zMzMzMzMzMzMzMzMzM7ucRBu7///iOYHiI+HAAf///////////////////////mYjv+BAA - BuiIj///iQBniIfMzMzMzMzMzMzMzMzMzO7nEQbu///3EAAG6IcRF4iP/////////////////////4GP - /4cQAAZnbv///5EAaIiMzMzMzMzMzMzMzMzMzMzu5xEW7v//iRF3dmZgAXjmj/////////////////// - ///3ePiBEQAHdm7///iRAGiIfMzMzMzMzMzMzMzMzMzM7u5xFu6P/5EZmXZmZmbmaP////////////// - ///////4/4d2cRAAFwbuj//4kQZoiHzMzMzMzMzMzMzMzMzMzG7ucRDu7/iXiZkQAAZmAH////////// - ////////////+IiIdmYABmAX//j/+BAGeIh8zMzMzMzMzMzMzMzMzMzO7nEQbu/4iP+BERkREZf///// - //////////////////+JmXdxEBEAB3////kQBoiIzMzMzMzMzMzMzMzMzMzMzu5xEW7o+P//gZmZmZmP - ////////////////////////+JmZmZmZl453//+JAGaIh8zMzMzMzMzMzMzMzMzMzM7u5xEO7vj/+IeP - iIj////////////////////////////4iZmZmZiPiP//cQBoiIfMzMzMzMzMzMzMzMzMzMzM7ucRFu6P - //iP//////////////////////////////////////+Jn/j/+JAAaIiMzMzMzMzMzMzMzMzMzMzMzO7n - ERbu7//4/////////////////////////////////////////4j///gQBoiIfMzMzMzMzMzMzMzMzMzM - zMzu7nERbuj////////////////////////////////////////////4//+BAAaIiMzMzMzMzMzMzMzM - zMzMzMzMzu5xEW7u////////////////////////////////////////////////cQBoiIfMzMzMzMzM - zMzMzMzMzMzMzM7u5xEW7u//////////////////////////////////////////////+BAAaIiMzMzM - zMzMzMzMzMzMzMzMzMzO7uYREO7o//7v//////////////////////////////////////////cABoiI - fMzMzMzMzMzMzMzMzMzMzMzMzO7ucRFu7oj/7o////////////////////////////////////////9x - AAeIiMzMzMzMzMzMzMzMzMzMzMzMzMzO7ucRFu7nePju7u7v//////////////////////////////// - 6P/4EAB4iIfMzMzMzMzMzMzMzMzMzMzMzMzMzu7nERBu7nmIiO7oj/////////////////////////// - ju7u7o//hwAGiIh8zMzMzMzMzMzMzMzMzMzMzMzMzMzu7nERbu7nmZl5eP////////////////////// - ///4iPiO5nj/+HAAaIiIzMzMzMzMzMzMzMzMzMzMzMzMzMzM7u7nERbu7oiZeI////////////////// - ////////+ImXd5mP/4cAAHiIh8zMzMzMzMzMzMzMzMzMzMzMzMzMzM7u53ERbu7v//////////////// - ///////////////4iZl4//hgAAeIiHzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM7u53ERBu7v////////// - //////////////////////////+GAAB4iI7MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzO7uiHEADujv//// - ///////////////////////////////3AAAGiIh8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzO7ohwABmP - ////////////////////////////////////iREAZniIjMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzuiI - EAB4f///////////////////////////////////+JmZkWZoiIfMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zO6IhwBo//////////////////////////////////////iImZl2ZoiIzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzuiHAA7////////////////////////////////////////4iZFmZ4iHzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzO6IgQBo/////4j///////////////////////////////////mZFmaIiMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzuiHAA7/////iIiP//////7o//////////////////iI/////4mRZmeIh8zMzMzM - zMzMzMzMzMzMzMzMzMzMzO6IcQBo////+IiIiI/////+7u7u7uiIiI7u7v////iIiI/////5mRZmiIjM - zMzMzMzMzMzMzMzMzMzMzMzMzMzuiHAA7////4iIiIiIj//3d2bu7u7u7u7u7u7//4iIiIiP////+JkW - ZniIfMzMzMzMzMzMzMzMzMzMzMzMzMzO6IcQBo////+IiIiIiI//+ZkAAGZmZmZmZmbv//iIiIiIiP// - //+ZkWZoiIzMzMzMzMzMzMzMzMzMzMzMzMzMzuiFAG7////4iIiIiIj///iZABEREREREBAG7//4iIiI - iIj/////iZFmaIiMzMzMzMzMzMzMzMzMzMzMzMzMzO6IcQBo////+IiIiIiI///4kQARERERERERDo// - +IiIiIiIj/////mZBmeIh8zMzMzMzMzMzMzMzMzMzMzMzMzuiHAG7////4iIiIiIiP//+JFmeHd3d3dx - EW6P//iIiIiIiI/////4mRZmiIfMzMzMzMzMzMzMzMzMzMzMzMzO7ocQBo////+IiIiIiIj///iQZoiO - 7u7u5xFu7//4iIiIiIiI////+JkWZniIzMzMzMzMzMzMzMzMzMzMzMzMzuiHEA7////4iIiIiIiP///5 - kGaIju7u7ucRbu///4iIiIiIiP////95kGZ4iHzMzMzMzMzMzMzMzMzMzMzMzM7ogQBu////+IiIiIiI - j///+RBmiI7u7u7nEW7v//+IiIiIiIiP////iZFmaIh8zMzMzMzMzMzMzMzMzMzMzMzu6HEAaP////iI - iIiIiI////kQZoiHzMzu5xEO6P//iIiIiIiIj////4mRZmiIjMzMzMzMzMzMzMzMzMzMzMzM7ugRBu// - ///4iIiIiIj///+JEGaIh8zM7ucRBu7//4iIiIiIiI/////5kQZniIzMzMzMzMzMzMzMzMzMzMzMzO6I - EAbv////iIiIiIiI////iQBniIzMzO7oERbu///4iIiIiIiP////+JkGZ4iHzMzMzMzMzMzMzMzMzMzM - zMbuhxAGj////4iIiIiIj////3kAaIiMzMzu7nEW7v//+IiIiIiIiP////iZFmaIh8zMzMzMzMzMzMzM - zMzMzMzO7oUQbv////+IiIiIiI////+RBmiIfMzMzu5xFu6P//+IiIiIiIj////4mRZmiIfMzMzMzMzM - zMzMzMzMzMzMzu6BAG7////4iIiIiIj////4kQZoiHzMzM7ucRDu7///iIiIiIiIj////5kQZoiHzMzM - zMzMzMzMzMzMzMzMzM7ocQBu////+IiIiIiI////+JAGeIh8zMzO7nERbu///4iIiIiIiI////95EGaI - h8zMzMzMzMzMzMzMzMzMzMxu6HEA7v////iIiIiIiP////cQBoiIzMzMzu7lEW7v///4iIiIiIiP//// - iRBmeIjMzMzMzMzMzMzMzMzMzMzM7uhxBuj////4iIiIiI/////5EAaIiMzMzMbu5xEO7v//+IiIiIiI - j////4kQZniIzMzMzMzMzMzMzMzMzMzMzO7oEQbv////+IiIiIj/////iQBmiIfMzMzM7ucRBu7///iI - iIiIiIj///+JkGZ4iMzMzMzMzMzMzMzMzMzMzMzu6BEG7/////iIiIiI/////4EAaIiHzMzMzO7nERbu - j///iIiIiIiI////iZBmaIh8zMzMzMzMzMzMzMzMzMzM7ucRBu/////4iIiIj/////+RAGiIjMzMzMzu - 7nEQ7u////iIiIiIiP///4mQBmiIfMzMzMzMzMzMzMzMzMzMzO7nEAbv////+IiIiP/////4EAZ4iHzM - zMzMzu5xEG7v///4iIiIiIj///+JkAZoiHzMzMzMzMzMxmzMzMzMzMzu5xAO7/////+IiI//////+RAG - iIjMzMzMzM7ucRFu7v///4iIiIiI////+ZAGaIh8zMzMzMzMzMZszMzMzMzG7ocQDu//////+I////// - /4EAZoiIzMzMzMzO7ucRBu7////4iIiIiP////mQBmiIfMzMzMzMzMzGbMzMzMzMzu6HEA7v//////// - //////9xAGiIh8zMzMzMzO7nERbu7///+IiIiI/////5kAZoiHzMzMzMzMzMxmzMzMzMzM7uhxAO7/// - ///////////4EABoiIzMzMzMzMzu7nEQbu////+IiIiP////+ZAGaIh8zMzMzMzMzMZszMzMzMzO7oUQ - Du//////////////9xAGiIh8zMzMzMzM7u5xEW7u/////4iI//////mQBmiIfMzMzMzMzMzGTMzMzMzM - zu6HEA7v/////////////4EABoiIzMzMzMzMzM7u5xEG7v/////////////5kAZoiHzMzMzMzMzMxAzM - zMzMzM7uhxEO7/////////////9wAGiIh8zMzMzMzMzO7ucRFu7v////////////+RAGeIh8zMzMzMzM - zMAGzMzMzMzO7ucRDuj////////////4EAB4iIzMzMzMzMzMzO7ucRBu6P///////////4kQBoiIzMzM - zMzMzMxgBszMzMzMxu7nEQbo////////////gQAGiIh8zMzMzMzMzMzu7nERDu7///////////+JEAaI - iMzMzMzMzMzMYADMzMzMzMzu5xEG7v///////////3EAZ4iIzMzMzMzMzMzMzu7nERbu7/////////// - gQBmiIfMzMzMzMzMzAAAbMzMzMzM7ucRBu7///////////gQAGiIh8zMzMzMzMzMzM7u5xEQbu7///// - /////5EAZ4iHzMzMzMzMzMYAAEzMzMzMzO7nERDu7/////////+HAAaIiIzMzMzMzMzMzMzM7u5xEQ7u - 7/////////gQAGiIjMzMzMzMzMzEAAAGzMzMzMzu7nEQbuj////////4cAAHiIh8zMzMzMzMzMzMzO7u - dxEW7uj////////3AAZoiHzMzMzMzMzMYAAABMzMzMzM7u5xEG7u////////hgAAeIiHzMzMzMzMzMzM - zMzO7ucREW7u7///////gQAGiIh8zMzMzMzMzEAAAABszMzMzM7ucREG7uj/////hmAAB4iI7MzMzMzM - zMzMzMzMzu7ucREG7u6P////+AAAB4iIzMzMzMzMzMYAAAAATMzMzMzO7ucREG7u7oiO7mAAAHiIiMzM - zMzMzMzMzMzMzMzu7ucREG7u7o//+HYAAHiIh8zMzMzMzMzEAAAAAAbMzMzMzu7nEREG7u7u5mAAAAeI - iIfMzMzMzMzMzMzMzMzMzu7ucREQbu7u7uYAAAeIiHzMzMzMzMzMYAAAAAAAbMzMzMzu7nEREAZmZgAA - AAF4iI58zMzMzMzMzMzMzMzMzMzu7ncREQZm7mZgAAB4iI7MzMzMzMzMxgAAAAAAAEzMzMzM7u7nEREQ - AAAAABF4iI7uzMzMzMzMzMzMzMzMzMzM7u7ucRERAAAAAAAHiIiMzMzMzMzMzMQAAAAAAAAGzMzMzM7u - 7nERERERERF3iIju7MzMzMzMzMzMzMzMzMzMzM7u7udREREQAAAReIiIfMzMzMzMzMxgAAAAAAAAAGzM - zMzM7u7udRERERV4iI7u7MzMzMzMzMzMzMzMzMzMzMzM7u7u5xEREREReIiO7MzMzMzMzMzGAAAAAAAA - AAAGzMzMzM7u7u53d3eIiO7u7szMzMzMzMzMzMzMzMzMzMzMzM7u7u7nd1F3eIiO7uzMzMzMzMzMYAAA - AAAAAAAAAGzMzMzM7u7u7u7u7u7u7szMzMzMzMzMzMzMzMzMzMzMzMzMzu7u7u6IiI7u7uzMzMzMzMzM - xgAAAAAAAAAAAAAGzMzMzMzu7u7u7u7u5szMzMzMzMzMzMzMzMzMzMzMzMzMzMzO7u7u7u7u7u7MzMzM - zMzMzGAAAAAAAAAAAAAAAEbMzMzMzG7u7u7ubMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM7u7u7u7uzM - zMzMzMzMzGQAAAAAAAAAAAAAAAAAbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzG7u - 7szMzMzMzMzMzMYAAAAAAAAAAAAAAAAAAARszMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAABGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAAAABmzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzGYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARGZmzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZmZEAAAAAAAAAAAAAAAAD////+AAAAAAAAAAD/////////AAAA - AAAAAAAAAP//////+AAAAAAAAAAAAAAf/////+AAAAAAAAAAAAAAB/////+AAAAAAAAAAAAAAAH////+ - AAAAAAAAAAAAAAAAf////AAAAAAAAAAAAAAAAD////AAAAAAAAAAAAAAAAAP///gAAAAAAAAAAAAAAAA - B///wAAAAAAAAAAAAAAAAAP//4AAAAAAAAAAAAAAAAAB//8AAAAAAAAAAAAAAAAAAP/+AAAAAAAAAAAA - AAAAAAB//gAAAAAAAAAAAAAAAAAAf/wAAAAAAAAAAAAAAAAAAD/4AAAAAAAAAAAAAAAAAAAf+AAAAAAA - AAAAAAAAAAAAH/AAAAAAAAAAAAAAAAAAAA/wAAAAAAAAAAAAAAAAAAAP4AAAAAAAAAAAAAAAAAAAB+AA - AAAAAAAAAAAAAAAAAAfAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAAAAA - AAOAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAA - AAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAABAAAAAAAA - AAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAA - AAGAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAA - AAAAAAABgAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAPAAAAAAAAAAAAAAAAAAAADwAAAAAAA - AAAAAAAAAAAAA+AAAAAAAAAAAAAAAAAAAAfgAAAAAAAAAAAAAAAAAAAH8AAAAAAAAAAAAAAAAAAAD/AA - AAAAAAAAAAAAAAAAAA/4AAAAAAAAAAAAAAAAAAAf+AAAAAAAAAAAAAAAAAAAH/wAAAAAAAAAAAAAAAAA - AD/+AAAAAAAAAAAAAAAAAAB//gAAAAAAAAAAAAAAAAAAf/8AAAAAAAAAAAAAAAAAAP//gAAAAAAAAAAA - AAAAAAH//8AAAAAAAAAAAAAAAAAD///gAAAAAAAAAAAAAAAAB///8AAAAAAAAAAAAAAAAA////wAAAAA - AAAAAAAAAAA////+AAAAAAAAAAAAAAAAf////4AAAAAAAAAAAAAAAf/////gAAAAAAAAAAAAAAf///// - +AAAAAAAAAAAAAAf//////8AAAAAAAAAAAAA/////////gAAAAAAAAAAf////w== - - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/LimitedSalesManagerActiveForm.Designer.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/LimitedSalesManagerActiveForm.Designer.cs deleted file mode 100644 index bea16c4..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/LimitedSalesManagerActiveForm.Designer.cs +++ /dev/null @@ -1,576 +0,0 @@ - -namespace TemuKJD.KJDForms.SalesCenterForms -{ - partial class LimitedSalesManagerActiveForm - { - /// - /// 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() - { - 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(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.dgvActive = new TemuKJD.UserComponent.DataGridViewEx(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colActivityId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colActivityName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colPreStartTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colStartTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colEndTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colPrefereType = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colActiveState = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.label1 = new System.Windows.Forms.Label(); - this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.txtProID = new System.Windows.Forms.TextBox(); - this.cmbType = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.comboItem6 = new DevComponents.Editors.ComboItem(); - this.comboItem7 = new DevComponents.Editors.ComboItem(); - this.comboItem8 = new DevComponents.Editors.ComboItem(); - this.comboItem9 = new DevComponents.Editors.ComboItem(); - this.cmbActState = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.comboItem1 = new DevComponents.Editors.ComboItem(); - this.comboItem2 = new DevComponents.Editors.ComboItem(); - this.comboItem3 = new DevComponents.Editors.ComboItem(); - this.comboItem4 = new DevComponents.Editors.ComboItem(); - this.comboItem5 = new DevComponents.Editors.ComboItem(); - this.txtActivity = new System.Windows.Forms.TextBox(); - this.btnReload = new DevComponents.DotNetBar.PanelEx(); - this.btnEdit = new DevComponents.DotNetBar.PanelEx(); - this.btnInvalid = new DevComponents.DotNetBar.PanelEx(); - this.btnDelete = new DevComponents.DotNetBar.PanelEx(); - this.btnSearch = new DevComponents.DotNetBar.PanelEx(); - this.label3 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.lblLimit = new System.Windows.Forms.Label(); - this.lblActivity = new System.Windows.Forms.Label(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); - this.splitContainer2.Panel1.SuspendLayout(); - this.splitContainer2.Panel2.SuspendLayout(); - this.splitContainer2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgvActive)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - this.SuspendLayout(); - // - // splitContainer2 - // - this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; - this.splitContainer2.Location = new System.Drawing.Point(0, 0); - this.splitContainer2.Name = "splitContainer2"; - this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; - // - // splitContainer2.Panel1 - // - this.splitContainer2.Panel1.Controls.Add(this.dgvActive); - this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 4, 0); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Controls.Add(this.label1); - this.splitContainer2.Panel2.Controls.Add(this.statusBar); - this.splitContainer2.Size = new System.Drawing.Size(1021, 417); - this.splitContainer2.SplitterDistance = 387; - this.splitContainer2.TabIndex = 10; - // - // dgvActive - // - this.dgvActive.AllowUserToAddRows = false; - this.dgvActive.AllowUserToDeleteRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvActive.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - this.dgvActive.BackgroundColor = System.Drawing.Color.White; - this.dgvActive.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.dgvActive.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; - this.dgvActive.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgvActive.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.colSelect, - this.colActivityId, - this.colActivityName, - this.colPreStartTime, - this.colStartTime, - this.colEndTime, - this.colPrefereType, - this.colActiveState, - this.colMessage}); - this.dgvActive.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvActive.Location = new System.Drawing.Point(4, 0); - this.dgvActive.Name = "dgvActive"; - this.dgvActive.ReadOnly = true; - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvActive.RowsDefaultCellStyle = dataGridViewCellStyle3; - this.dgvActive.RowTemplate.Height = 23; - this.dgvActive.Size = new System.Drawing.Size(1013, 387); - this.dgvActive.TabIndex = 6; - this.dgvActive.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvActive_CellContentClick); - // - // colSelect - // - this.colSelect.FillWeight = 50F; - this.colSelect.HeaderText = "选"; - this.colSelect.Name = "colSelect"; - this.colSelect.ReadOnly = true; - this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.colSelect.Width = 40; - // - // colActivityId - // - this.colActivityId.HeaderText = "活动Id"; - this.colActivityId.Name = "colActivityId"; - this.colActivityId.ReadOnly = true; - this.colActivityId.Visible = false; - // - // colActivityName - // - this.colActivityName.HeaderText = "活动名称"; - this.colActivityName.Name = "colActivityName"; - this.colActivityName.ReadOnly = true; - this.colActivityName.Resizable = System.Windows.Forms.DataGridViewTriState.True; - // - // colPreStartTime - // - this.colPreStartTime.HeaderText = "预热开始时间"; - this.colPreStartTime.Name = "colPreStartTime"; - this.colPreStartTime.ReadOnly = true; - this.colPreStartTime.Width = 130; - // - // colStartTime - // - this.colStartTime.HeaderText = "活动开始时间"; - this.colStartTime.Name = "colStartTime"; - this.colStartTime.ReadOnly = true; - this.colStartTime.Width = 130; - // - // colEndTime - // - this.colEndTime.HeaderText = "活动结束时间"; - this.colEndTime.Name = "colEndTime"; - this.colEndTime.ReadOnly = true; - this.colEndTime.Width = 130; - // - // colPrefereType - // - this.colPrefereType.HeaderText = "优惠类型"; - this.colPrefereType.Name = "colPrefereType"; - this.colPrefereType.ReadOnly = true; - this.colPrefereType.Width = 85; - // - // colActiveState - // - this.colActiveState.HeaderText = "活动状态"; - this.colActiveState.Name = "colActiveState"; - this.colActiveState.ReadOnly = true; - this.colActiveState.Width = 85; - // - // colMessage - // - this.colMessage.HeaderText = "消息提示"; - this.colMessage.Name = "colMessage"; - this.colMessage.ReadOnly = true; - this.colMessage.Width = 250; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.ForeColor = System.Drawing.Color.MidnightBlue; - this.label1.Location = new System.Drawing.Point(651, 7); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(43, 17); - this.label1.TabIndex = 5; - this.label1.Text = "label1"; - // - // 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(1021, 26); - this.statusBar.TabIndex = 4; - // - // 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.txtProID); - this.splitContainer1.Panel1.Controls.Add(this.cmbType); - this.splitContainer1.Panel1.Controls.Add(this.cmbActState); - this.splitContainer1.Panel1.Controls.Add(this.txtActivity); - this.splitContainer1.Panel1.Controls.Add(this.btnReload); - this.splitContainer1.Panel1.Controls.Add(this.btnEdit); - this.splitContainer1.Panel1.Controls.Add(this.btnInvalid); - this.splitContainer1.Panel1.Controls.Add(this.btnDelete); - this.splitContainer1.Panel1.Controls.Add(this.btnSearch); - this.splitContainer1.Panel1.Controls.Add(this.label3); - this.splitContainer1.Panel1.Controls.Add(this.label2); - this.splitContainer1.Panel1.Controls.Add(this.lblLimit); - this.splitContainer1.Panel1.Controls.Add(this.lblActivity); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.splitContainer2); - this.splitContainer1.Size = new System.Drawing.Size(1021, 459); - this.splitContainer1.SplitterDistance = 38; - this.splitContainer1.TabIndex = 11; - // - // txtProID - // - this.txtProID.Location = new System.Drawing.Point(470, 7); - this.txtProID.Name = "txtProID"; - this.txtProID.Size = new System.Drawing.Size(95, 23); - this.txtProID.TabIndex = 481; - // - // cmbType - // - this.cmbType.DisplayMember = "Text"; - this.cmbType.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbType.FormattingEnabled = true; - this.cmbType.ItemHeight = 18; - this.cmbType.Items.AddRange(new object[] { - this.comboItem6, - this.comboItem7, - this.comboItem8, - this.comboItem9}); - this.cmbType.Location = new System.Drawing.Point(348, 6); - this.cmbType.Name = "cmbType"; - this.cmbType.Size = new System.Drawing.Size(75, 24); - this.cmbType.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbType.TabIndex = 520; - // - // comboItem6 - // - this.comboItem6.Text = "全部"; - // - // comboItem7 - // - this.comboItem7.Text = "打折"; - this.comboItem7.Value = "3"; - // - // comboItem8 - // - this.comboItem8.Text = "直降"; - this.comboItem8.Value = "2"; - // - // comboItem9 - // - this.comboItem9.Text = "一口价"; - this.comboItem9.Value = "1"; - // - // cmbActState - // - this.cmbActState.DisplayMember = "Text"; - this.cmbActState.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbActState.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbActState.FormattingEnabled = true; - this.cmbActState.ItemHeight = 18; - this.cmbActState.Items.AddRange(new object[] { - this.comboItem1, - this.comboItem2, - this.comboItem3, - this.comboItem4, - this.comboItem5}); - this.cmbActState.Location = new System.Drawing.Point(218, 6); - this.cmbActState.Name = "cmbActState"; - this.cmbActState.Size = new System.Drawing.Size(75, 24); - this.cmbActState.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbActState.TabIndex = 520; - // - // comboItem1 - // - this.comboItem1.Text = "全部"; - // - // comboItem2 - // - this.comboItem2.Text = "未开始"; - this.comboItem2.Value = "0"; - // - // comboItem3 - // - this.comboItem3.Text = "进行中"; - this.comboItem3.Value = "1"; - // - // comboItem4 - // - this.comboItem4.Text = "已结束"; - this.comboItem4.Value = "2"; - // - // comboItem5 - // - this.comboItem5.Text = "已失效"; - this.comboItem5.Value = "3"; - // - // txtActivity - // - this.txtActivity.Location = new System.Drawing.Point(66, 7); - this.txtActivity.Name = "txtActivity"; - this.txtActivity.Size = new System.Drawing.Size(95, 23); - this.txtActivity.TabIndex = 481; - // - // btnReload - // - this.btnReload.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnReload.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnReload.DisabledBackColor = System.Drawing.Color.Empty; - this.btnReload.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnReload.Location = new System.Drawing.Point(577, 7); - this.btnReload.Name = "btnReload"; - this.btnReload.Size = new System.Drawing.Size(75, 23); - this.btnReload.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnReload.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnReload.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnReload.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnReload.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnReload.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnReload.Style.ForeColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(8)))), ((int)(((byte)(55)))), ((int)(((byte)(114))))); - this.btnReload.Style.GradientAngle = 90; - this.btnReload.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnReload.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnReload.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnReload.TabIndex = 575; - this.btnReload.Text = "重填"; - this.btnReload.Click += new System.EventHandler(this.btnReload_Click); - // - // btnEdit - // - this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnEdit.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnEdit.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnEdit.DisabledBackColor = System.Drawing.Color.Empty; - this.btnEdit.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnEdit.Location = new System.Drawing.Point(767, 7); - this.btnEdit.Name = "btnEdit"; - this.btnEdit.Size = new System.Drawing.Size(80, 23); - this.btnEdit.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnEdit.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnEdit.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnEdit.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnEdit.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnEdit.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnEdit.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnEdit.Style.GradientAngle = 90; - this.btnEdit.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnEdit.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnEdit.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnEdit.TabIndex = 559; - this.btnEdit.Text = "编辑"; - this.btnEdit.Visible = false; - this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click); - // - // btnInvalid - // - this.btnInvalid.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnInvalid.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnInvalid.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnInvalid.DisabledBackColor = System.Drawing.Color.Empty; - this.btnInvalid.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnInvalid.Location = new System.Drawing.Point(935, 7); - this.btnInvalid.Name = "btnInvalid"; - this.btnInvalid.Size = new System.Drawing.Size(75, 23); - this.btnInvalid.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnInvalid.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnInvalid.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnInvalid.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnInvalid.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnInvalid.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnInvalid.Style.ForeColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(8)))), ((int)(((byte)(55)))), ((int)(((byte)(114))))); - this.btnInvalid.Style.GradientAngle = 90; - this.btnInvalid.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnInvalid.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnInvalid.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnInvalid.TabIndex = 546; - this.btnInvalid.Text = "失效"; - this.btnInvalid.Click += new System.EventHandler(this.btnInvalid_Click); - // - // btnDelete - // - this.btnDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnDelete.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnDelete.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnDelete.DisabledBackColor = System.Drawing.Color.Empty; - this.btnDelete.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnDelete.Location = new System.Drawing.Point(851, 7); - this.btnDelete.Name = "btnDelete"; - this.btnDelete.Size = new System.Drawing.Size(80, 23); - this.btnDelete.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnDelete.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnDelete.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnDelete.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnDelete.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnDelete.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnDelete.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnDelete.Style.GradientAngle = 90; - this.btnDelete.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnDelete.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnDelete.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnDelete.TabIndex = 536; - this.btnDelete.Text = "删除"; - this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click); - // - // btnSearch - // - 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(656, 7); - this.btnSearch.Name = "btnSearch"; - this.btnSearch.Size = new System.Drawing.Size(80, 23); - 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))))); - this.btnSearch.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnSearch.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnSearch.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnSearch.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnSearch.Style.GradientAngle = 90; - this.btnSearch.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnSearch.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSearch.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSearch.TabIndex = 536; - this.btnSearch.Text = "查询/刷新"; - this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click); - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(428, 10); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(45, 17); - this.label3.TabIndex = 517; - this.label3.Text = "商品ID"; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(163, 10); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(56, 17); - this.label2.TabIndex = 521; - this.label2.Text = "活动状态"; - // - // lblLimit - // - this.lblLimit.AutoSize = true; - this.lblLimit.Location = new System.Drawing.Point(295, 10); - this.lblLimit.Name = "lblLimit"; - this.lblLimit.Size = new System.Drawing.Size(56, 17); - this.lblLimit.TabIndex = 517; - this.lblLimit.Text = "优惠类型"; - // - // lblActivity - // - this.lblActivity.AutoSize = true; - this.lblActivity.Location = new System.Drawing.Point(11, 10); - this.lblActivity.Name = "lblActivity"; - this.lblActivity.Size = new System.Drawing.Size(56, 17); - this.lblActivity.TabIndex = 515; - this.lblActivity.Text = "活动名称"; - // - // LimitedSalesManagerActiveForm - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1021, 459); - this.Controls.Add(this.splitContainer1); - this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Name = "LimitedSalesManagerActiveForm"; - this.Text = "活动管理"; - this.Load += new System.EventHandler(this.LimitedSalesManagerActiveForm_Load); - this.splitContainer2.Panel1.ResumeLayout(false); - this.splitContainer2.Panel2.ResumeLayout(false); - this.splitContainer2.Panel2.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); - this.splitContainer2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.dgvActive)).EndInit(); - this.splitContainer1.Panel1.ResumeLayout(false); - this.splitContainer1.Panel1.PerformLayout(); - this.splitContainer1.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); - this.splitContainer1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - private System.Windows.Forms.SplitContainer splitContainer2; - private UserComponent.DataGridViewEx dgvActive; - private System.Windows.Forms.SplitContainer splitContainer1; - private System.Windows.Forms.TextBox txtActivity; - private System.Windows.Forms.Label lblActivity; - private DevComponents.DotNetBar.Controls.ComboBoxEx cmbActState; - private System.Windows.Forms.Label label2; - private DevComponents.DotNetBar.Controls.ComboBoxEx cmbType; - private System.Windows.Forms.Label lblLimit; - private System.Windows.Forms.TextBox txtProID; - private System.Windows.Forms.Label label3; - private DevComponents.DotNetBar.PanelEx btnDelete; - private DevComponents.DotNetBar.PanelEx btnSearch; - private DevComponents.Editors.ComboItem comboItem1; - private DevComponents.Editors.ComboItem comboItem2; - private DevComponents.Editors.ComboItem comboItem3; - private DevComponents.Editors.ComboItem comboItem4; - private DevComponents.Editors.ComboItem comboItem5; - private DevComponents.Editors.ComboItem comboItem6; - private DevComponents.Editors.ComboItem comboItem7; - private DevComponents.Editors.ComboItem comboItem8; - private DevComponents.Editors.ComboItem comboItem9; - private System.Windows.Forms.Label label1; - private DevComponents.DotNetBar.PanelEx btnInvalid; - private DevComponents.DotNetBar.PanelEx btnEdit; - private DevComponents.DotNetBar.PanelEx btnReload; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colActivityId; - private System.Windows.Forms.DataGridViewTextBoxColumn colActivityName; - private System.Windows.Forms.DataGridViewTextBoxColumn colPreStartTime; - private System.Windows.Forms.DataGridViewTextBoxColumn colStartTime; - private System.Windows.Forms.DataGridViewTextBoxColumn colEndTime; - private System.Windows.Forms.DataGridViewTextBoxColumn colPrefereType; - private System.Windows.Forms.DataGridViewTextBoxColumn colActiveState; - private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; - public UserControls.StatusBarUserControl statusBar; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/LimitedSalesManagerActiveForm.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/LimitedSalesManagerActiveForm.cs deleted file mode 100644 index ac23abe..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/LimitedSalesManagerActiveForm.cs +++ /dev/null @@ -1,694 +0,0 @@ -using AllBase; -using AllBase.Helper; -using AllBase.Model.Result; -using TemuKJD.Extension; -using TemuKJD.KJDForms.BaseForms; -using NaiBa.Util.Extension; -using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace TemuKJD.KJDForms.SalesCenterForms -{ - public partial class LimitedSalesManagerActiveForm : BaseForm - { - private ShopLoginInfo shop = null; - private CheckBox chkSelectAll = null; - public List lstActiveId = new List(); - public SeckillingAndLimitedSalesForm seckillingAndLimitedSalesForm = null; - string _signature = ""; - string _timeSpan = ""; - public bool isGetActiveSuccess = false; - public List activeList = new List(); - bool isAll = true; - - public LimitedSalesManagerActiveForm(ShopLoginInfo _shop = null) - { - InitializeComponent(); - - shop = _shop; - cmbActState.SelectedIndex = 0; - cmbType.SelectedIndex = 0; - txtActivity.Focus(); - - //设置全选按钮 - chkSelectAll = dgvActive.Columns["colSelect"].AddHeaderCheckBox(HorizontalAlignment.Center, 0, 0, null, null, false); - dgvActive.Columns["colSelect"].HeaderText = ""; - chkSelectAll.Width = chkSelectAll.Height = 13; - chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged; //全选事件 - } - - private void LimitedSalesManagerActiveForm_Load(object sender, EventArgs e) - { - Task.Run(() => - { - this.SearchActivitys(); - }); - } - - private void chkSelectAll_CheckedChanged(object sender, EventArgs e) - { - if (!chkSelectAll.Checked) - { - if (isAll) - { - foreach (DataGridViewRow row in dgvActive.Rows) - { - long ActiveId = row.Cells["colActivityId"].Value.ParseToLong(); - row.Cells["colSelect"].Value = false; - lstActiveId.Remove(ActiveId.ToString()); - } - } - else - { - isAll = true; - foreach (DataGridViewRow row in dgvActive.Rows) - { - long ActiveId = row.Cells["colActivityId"].Value.ParseToLong(); - if (lstActiveId.Contains(ActiveId.ToString())) - row.Cells["colSelect"].Value = true; - else - row.Cells["colSelect"].Value = false; - } - } - } - else - { - foreach (DataGridViewRow row in dgvActive.Rows) - { - row.Cells["colSelect"].Value = true; - long ActiveId = row.Cells["colActivityId"].Value.ParseToLong(); - if (!lstActiveId.Any(p => p == ActiveId.ToString())) - lstActiveId.Add(ActiveId.ToString()); - } - } - } - - private void dgvActive_CellContentClick(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - string headerText = dgvActive.Columns[e.ColumnIndex].HeaderText; - string columnName = dgvActive.Columns[e.ColumnIndex].Name; - long ActiveId = dgvActive.Rows[e.RowIndex].Cells["colActivityId"].Value.ParseToLong(); - var row = dgvActive.Rows[e.RowIndex]; - switch (columnName) - { - case "colSelect": - row.Cells["colSelect"].Value = !row.Cells["colSelect"].Value.ParseToBool(); - if (dgvActive.Rows[e.RowIndex].Cells["colSelect"].Value.ParseToBool()) - { - if (lstActiveId.Any(p => p == ActiveId.ToString())) - lstActiveId.RemoveAll(p => p == ActiveId.ToString()); - lstActiveId.Add(ActiveId.ToString()); - } - else - lstActiveId.Remove(ActiveId.ToString()); - if (dgvActive.Rows.Cast().All(r => r.Cells["colSelect"].Value.ParseToBool())) - chkSelectAll.Checked = true; - else - { - isAll = false; - chkSelectAll.Checked = false; - } - break; - } - } - - public void GetActive() - { - if (shop == null) - return; - - ShowVisitorMessage(""); - Task.Run(() => - { - if (shop.LoginStatus == "登录成功") - seckillingAndLimitedSalesForm.GetActiveByCef(this.shop); - - var rowsTemp = dgvActive.Rows.Cast().ToList(); - rowsTemp.Reverse(); - }); - } - - public void GetActiveSim(string listUrl, string referrerUrl, Dictionary headers, string firstPageData = "") - { - ShowVisitorMessage(""); - - int total = -1; - int number = 0; - string result = ""; - if (!string.IsNullOrEmpty(firstPageData)) - result = firstPageData; - - //获取所有活动 - DateTime date = DateTime.Now.Date; - _timeSpan = BaseRegex.GetMatchRegexString(ref listUrl, "&_=([\\s\\S]+?)&"); - if (string.IsNullOrEmpty(_timeSpan)) - _timeSpan = BaseRegex.GetMatchRegexString(ref listUrl, "&_=([\\s\\S]+?)"); - if (string.IsNullOrEmpty(_timeSpan)) - _timeSpan = BaseClass.DateTimeToTimestampMilliseconds(DateTime.Now).ToString(); - _signature = BaseRegex.GetMatchRegexString(ref listUrl, "&_signature=([\\s\\S]+?)&"); - if (string.IsNullOrEmpty(_signature)) - { - var listUrl2 = listUrl + "&"; - _signature = BaseRegex.GetMatchRegexString(ref listUrl2, "&_signature=([\\s\\S]+?)&"); - } - listUrl = "https://fxg.jinritemai.com/shop/promotion/listFlashWithTimeLimit?campaign_status=&shop_stype=&page=1&pageSize=20&_bid=ecom_market_shop&appid=1&_=" + _timeSpan + "&_signature=" + _signature; - for (int i = 1; i < 9999; i++) - { - result = ""; - number += 20; - for (int j = 0; j < 3 && !result.Contains("\"st\":0"); j++) - { - CommonSimRequest simRequest = new CommonSimRequest(); - simRequest.Accept = "application/json, text/plain, */*"; - if (headers.ContainsKey("Accept")) - simRequest.Accept = headers["Accept"]; - if (headers.ContainsKey("UserAgent")) - simRequest.UserAgent = headers["UserAgent"]; - var cookie = shop.Cookies; - - var rUrl = listUrl.Replace("page=1", "page=" + i); - result = simRequest.Request_Get(rUrl, referrerUrl, new Dictionary(), cookie); - if (j > 0) - { - Thread.Sleep(Randomx.GetId(2000, 3000)); - } - } - - if (result.Contains("\"st\":0,\"msg\":\"\",\"code\":0,") && !seckillingAndLimitedSalesForm.cancellationTokenSource.IsCancellationRequested) - { - this.isGetActiveSuccess = true; - - var jObj = JObject.Parse(result); - var aList = JsonHelper.DeserializeJsonToList(jObj["data"]["flash_list"]?.ToString()); - - foreach (var info in aList) - { - if (this.activeList.Any(p => p.campaign_id == info.campaign_id)) - this.activeList.RemoveAll(p => p.campaign_id == info.campaign_id); - this.activeList.Add(info); - } - Thread.Sleep(Randomx.GetId(1500, 2000)); - } - else - { - isGetActiveSuccess = false; - break; - } - - if (number >= total) - break; - } - Invoke(new Action(() => - { - if (seckillingAndLimitedSalesForm.cancellationTokenSource.IsCancellationRequested) - { - this.statusBar.lblTaskStatus.Text = "获取中断"; - } - else if (!isGetActiveSuccess) - { - this.statusBar.lblTaskStatus.Text = "获取活动信息失败"; - } - else - { - this.statusBar.lblTaskStatus.Text = "获取完成"; - } - this.statusBar.pgbTaskProgress.Value = 0; - this.statusBar.pgbTaskProgress.Text = 0 + "/" + 0; - this.statusBar.pgbTaskProgress.Maximum = 0; - })); - } - - public void ShowVisitorMessage(string msg, string activityId = "") - { - Invoke(new Action(() => - { - this.label1.Text = msg; - if (!string.IsNullOrEmpty(activityId)) - { - var row = this.dgvActive.Rows.Cast().FirstOrDefault(r => activityId == r.Cells["colActivityId"].Value?.ToString()); - if (row != null) - { - row.Cells["colMessage"].Value = msg; - if (msg.EndsWith("修改成功!")) { - row.Cells["colActiveState"].Value = "待查询"; - row.Cells["colPreStartTime"].Value = "待查询"; - row.Cells["colStartTime"].Value = "待查询"; - row.Cells["colEndTime"].Value = "待查询"; - row.Cells["colPrefereType"].Value = "待查询"; - } - } - } - })); - } - - public void ClearData() - { - this.lstActiveId.Clear(); - this.activeList.Clear(); - this.dgvActive.Rows.Clear(); - } - - private void btnSearch_Click(object sender, EventArgs e) - { - SearchActivitys(); - } - - private void SearchActivitys() - { - ClearData(); - - ShowVisitorMessage(""); - ShowVisitorMessage("查询开始"); - if (this.activeList.Count == 0) - { - if (seckillingAndLimitedSalesForm.cancellationTokenSource.IsCancellationRequested) - seckillingAndLimitedSalesForm.cancellationTokenSource = new CancellationTokenSource(); - GetActiveSim("https://fxg.jinritemai.com/shop/promotion/listFlashWithTimeLimit?campaign_status=&shop_stype=&page=1&pageSize=20&_bid=ecom_market_shop&appid=1&_=" + _timeSpan + "&_signature=" + _signature, "https://fxg.jinritemai.com/market/center/tools/limitsales", new Dictionary()); - } - string name = "", id = "", stateText = "", stateVal = "", typeText = "", typeVal = ""; - Invoke(new Action(() => - { - name = txtActivity.Text.Trim(); - id = txtProID.Text.Trim(); - stateText = cmbActState.SelectedItem.ToString(); - stateVal = stateText == "全部" ? "" : (stateText == "进行中" ? "1" : (stateText == "已结束" ? "2" : (stateText == "未开始" ? "0" : "3"))); - typeText = cmbType.SelectedItem.ToString(); - typeVal = typeText == "全部" ? "" : (typeText == "打折" ? "3" : (typeText == "直降" ? "2" : "1")); - })); - if ((name == "" && id == "" && stateVal == "" && typeVal == "" && this.dgvActive.Rows.Count == activeList.Count) || activeList.Count == 0) - { - ShowVisitorMessage("查询完成!"); - return; - } - Task.Run(() => - { - List infos = new List(); - - var listUrl = "https://fxg.jinritemai.com/shop/promotion/listFlashWithTimeLimit?title=&campaign_status=&shop_stype=&product_id=" + id + "&page=1&pageSize=20&_bid=ecom_market_shop&appid=1&_=" + _timeSpan + "&_signature=" + _signature; - int total = -1; - int number = 0; - string result = ""; - for (int i = 1; i < 9999; i++) - { - result = ""; - number += 20; - for (int j = 0; j < 3 && !result.Contains("\"st\":0"); j++) - { - CommonSimRequest simRequest = new CommonSimRequest(); - simRequest.Accept = "application/json, text/plain, */*"; - var cookie = shop.Cookies; - - var rUrl = listUrl.Replace("page=1", "page=" + i); - result = simRequest.Request_Get(rUrl, "https://fxg.jinritemai.com/market/center/tools/limitsales", new Dictionary(), cookie); - if (j > 0) - { - Thread.Sleep(Randomx.GetId(1000, 2000)); - } - } - if (result.Contains("\"st\":0") && !seckillingAndLimitedSalesForm.cancellationTokenSource.IsCancellationRequested) - { - if (total == -1) - { - total = BaseRegex.GetIntJson(ref result, "total"); - } - - var jObj = JObject.Parse(result); - var aList = JsonHelper.DeserializeJsonToList(jObj["data"]["flash_list"]?.ToString()); - - if (!string.IsNullOrEmpty(name)) - aList = aList.Where(x => x.title == name).ToList(); - if (!string.IsNullOrEmpty(stateVal)) - aList = aList.Where(x => x.campaign_status == stateVal).ToList(); - if (!string.IsNullOrEmpty(typeVal)) - aList = aList.Where(x => x.shop_stype == typeVal).ToList(); - int totals = aList.Count; - Invoke(new Action(() => - { - //dgvActive.Rows.Clear(); - isAll = false; - for (int j = 0; j < totals; j++) - { - var info = aList[j]; - var shop_stype = info.shop_stype == "1" ? "一口价" : (info.shop_stype == "3" ? "打折" : "直降"); - var status = info.campaign_status == "2" ? "已结束" : (info.campaign_status == "1" ? "进行中" : (info.campaign_status == "0" ? "未开始" : "已失效")); - if (lstActiveId.Contains(info.campaign_id)) - this.dgvActive.Rows.Add(true, info.campaign_id, info.title, info.pre_begin_time, info.begin_time, info.end_time, shop_stype, status); - else - this.dgvActive.Rows.Add(false, info.campaign_id, info.title, info.pre_begin_time, info.begin_time, info.end_time, shop_stype, status); - } - })); - - foreach (var info in aList) - { - infos.Add(info); - } - Thread.Sleep(Randomx.GetId(1500, 2000)); - } - if (number >= total) - break; - } - - ShowVisitorMessage("查询完成!"); - }); - } - - private void btnReload_Click(object sender, EventArgs e) - { - this.txtActivity.Text = string.Empty; - this.txtProID.Text = string.Empty; - this.cmbActState.SelectedIndex = 0; - this.cmbType.SelectedIndex = 0; - } - - private void btnDelete_Click(object sender, EventArgs e) - { - lstActiveId = dgvActive.Rows.Cast() - .Where(r => r.Cells["colSelect"].Value.ParseToBool() == true) - .Select(r => r.Cells["colActivityId"].Value.ToString()).ToList(); - - if (lstActiveId.Count == 0 || dgvActive.Rows.Count == 0) - { - BaseMsgForm.ShowInfo("请选择待删除的活动!"); - return; - } - if (BaseMsgForm.ShowConfirm("确定要删除活动吗?确认删除后,将永久删除,无法恢复!").DialogResult == DialogResult.OK) - { - ShowVisitorMessage(""); - - Task.Run(() => - { - List lstActiveIdTemp = new List(); - lstActiveIdTemp.AddRange(lstActiveId); - foreach (var id in lstActiveIdTemp) - { - long ActiveId = id.ParseToLong(); - DelActive(ActiveId); - } - }); - } - } - - public void DelActive(long ActiveId, bool isRemoveInDgv = true) - { - var deleteUrl = "https://fxg.jinritemai.com/shop/promotion/setFlashStatus?_bid=ecom_market_shop&appid=1&_=" + _timeSpan + "&_signature=" + _signature; - var cookies = shop.Cookies; - - DataGridViewRow row = null; - row = dgvActive.Rows.Cast().FirstOrDefault(r => r.Cells["colActivityId"].Value.ParseToLong() == ActiveId); - if (row == null) - return; - - string name = row.Cells["colActivityName"].Value.ToString(); - var colActiveState = row.Cells["colActiveState"].Value.ToString(); - // 未失效活动先设置失效 - if (colActiveState == "进行中" || colActiveState == "未开始") - { - //Invoke(new Action(() => { row.Cells["colMessage"].Value = name + "活动" + colActiveState + ",请先设置失效,再删除!"; })); - //continue; - SetActiveInvalid(ActiveId.ToString()); - Thread.Sleep(Randomx.GetId(250, 500)); - } - - CommonSimRequest request = new CommonSimRequest(); - request.ContentType = "application/json"; - Dictionary dicts = new Dictionary(); - var postData = "{\"campaign_id\":\"" + ActiveId + "\",\"status\":3}"; - string result = request.Request_PostByBigLength(deleteUrl, "https://fxg.jinritemai.com/market/center/tools/limitsales", dicts, cookies, postData, false); - if (result.Contains("{\"st\":0,\"msg\":\"\",\"code\":0,")) - { - if (isRemoveInDgv) - { - Invoke(new Action(() => { row.Cells["colMessage"].Value = "删除完成,活动已删除!"; })); - ShowVisitorMessage("删除完成,活动" + name + "已删除!"); - } - Thread.Sleep(Randomx.GetId(250, 500)); - if (isRemoveInDgv) - { - lstActiveId.Remove(ActiveId.ToString()); - activeList.Remove(activeList.Where(x => x.campaign_id == ActiveId.ToString()).FirstOrDefault()); - } - } - else - { - Invoke(new Action(() => { row.Cells["colMessage"].Value = "删除失败:" + BaseRegex.GetStringJson(ref result, "msg"); })); - } - } - - private void btnInvalid_Click(object sender, EventArgs e) - { - if (lstActiveId.Count == 0 || dgvActive.Rows.Count == 0) - { - BaseMsgForm.ShowInfo("请选择待失效的活动!"); - return; - } - if (BaseMsgForm.ShowConfirm("确定要把活动设置为失效吗?").DialogResult == DialogResult.OK) - { - Task.Run(() => - { - for (int i = 0; i < dgvActive.Rows.Count; i++) - { - DataGridViewRow row = dgvActive.Rows[i]; - SetActiveInvalid(row.Cells["colActivityId"].Value.ToString()); - } - }); - } - } - - private void SetActiveInvalid(string activityId) - { - var row = this.dgvActive.Rows.Cast().FirstOrDefault(r => r.Cells["colActivityId"].Value.ToString() == activityId); - if (row == null) - return; - - var failUrl = "https://fxg.jinritemai.com/shop/promotion/setFlashStatus?_bid=ecom_market_shop&appid=1&_=" + _timeSpan + "&_signature=" + _signature; - var cookies = shop.Cookies; - - long ActiveId = row.Cells["colActivityId"].Value.ParseToLong(); - if (lstActiveId.Any(p => p == ActiveId.ToString())) - { - string name = row.Cells["colActivityName"].Value.ToString(); - var colActiveState = row.Cells["colActiveState"].Value.ToString(); - if (colActiveState != "进行中" && colActiveState != "未开始") - { - Invoke(new Action(() => { row.Cells["colMessage"].Value = name + "活动" + colActiveState + ",无需再设置失效!"; })); - return; - } - CommonSimRequest request = new CommonSimRequest(); - request.ContentType = "application/json"; - Dictionary dicts = new Dictionary(); - var postData = "{\"campaign_id\":\"" + ActiveId + "\",\"status\":2}"; - string result = request.Request_PostByBigLength(failUrl, "https://fxg.jinritemai.com/market/center/tools/limitsales", dicts, cookies, postData, false); - if (result.Contains("{\"st\":0,\"msg\":\"\",\"code\":0,")) - { - Invoke(new Action(() => - { - var activeInfo = activeList.Where(x => x.campaign_id == ActiveId.ToString()).FirstOrDefault(); - if (activeInfo != null) - { - activeInfo.campaign_status = "3"; - row.Cells["colActiveState"].Value = "已失效"; - row.Cells["colMessage"].Value = "设置失效已完成!"; - } - })); - Thread.Sleep(Randomx.GetId(250, 500)); - } - else - { - Invoke(new Action(() => { row.Cells["colMessage"].Value = "设置失效失败 :" + BaseRegex.GetStringJson(ref result, "msg"); })); - } - } - } - - private void btnEdit_Click(object sender, EventArgs e) - { - //if (dgvActive.Rows.Count == 0) - //{ - // BaseMsgForm.ShowInfo("请先获取活动列表!"); - // return; - //} - //if (lstActiveId.Count == 0) - //{ - // BaseMsgForm.ShowInfo("请选择待失效的活动!"); - // return; - //} - - //var cookies = shop.Cookies; - //for (int i = 0; i < dgvActive.Rows.Count; i++) - //{ - // DataGridViewRow row = dgvActive.Rows[i]; - // long ActiveId = row.Cells["colActivityId"].Value.ParseToLong(); - // if (lstActiveId.Any(p => p == ActiveId.ToString())) - // { - // string name = row.Cells["colActivityName"].Value.ToString(); - // var colActiveState = row.Cells["colActiveState"].Value.ToString(); - // if (colActiveState != "进行中" && colActiveState != "未开始") - // { - // BaseMsgForm.ShowInfo("只能编辑进行中或者未开始的活动," + name + "活动" + colActiveState + "!"); - // continue; - // } - // ShowVisitorMessage(""); - // var status = 1; - // if (colActiveState == "未开始") - // status = 0; - // CommonSimRequest simRequest = new CommonSimRequest(); - // var rUrl = "https://fxg.jinritemai.com/byteshop/promotion/detailFlashAndGoods?campaign_id=" + ActiveId + "&filter_unable_product=0&_bid=ecom_market_shop&appid=1&_= " + _underline + " & _signature = " + _signature; - // var result = simRequest.Request_Get(rUrl, "https://fxg.jinritemai.com/market/center/tools/limitsales/detail?id=" + ActiveId + "&refer=edit&status=" + status, new Dictionary(), cookies); - // if (result.Contains("{\"st\":0,\"msg\":\"\",\"code\":0,")) - // { - // ActiveInfoEdit infoEdit = new ActiveInfoEdit(); - // infoEdit.campaign_id = ActiveId.ToString(); - // JObject o1 = JObject.Parse(result); - // JObject o2 = JObject.Parse(o1["data"]?.ToString()); - - // infoEdit.sub_stype = o2["sub_stype"].ToString().ParseToInt(); - // infoEdit.title = o2["title"].ToString(); - // infoEdit.pre_begin_time = o2["pre_begin_time"].ToString(); - // infoEdit.begin_time = o2["begin_time"].ToString(); - // infoEdit.end_time = o2["end_time"].ToString(); - // infoEdit.order_expire_time = o2["order_expire_time"].ToString(); - // infoEdit.shop_stype = o2["shop_stype"].ToString(); - // infoEdit.time_set_type = o2["time_set_type"].ToString(); - // infoEdit.status = o2["status"].ToString().ParseToInt(); - // infoEdit.stock_type = o2["stock_type"].ToString(); - // infoEdit.sold_out_type = o2["sold_out_type"].ToString(); - // infoEdit.promotion_goods = new List(); - - // JArray arr = JArray.Parse(o2["promotion_goods"].ToString()); - // for (int x = 0; x < arr.Count; x++) - // { - // JObject ox = JObject.Parse(arr[x].ToString()); - // Promotion_Goods _Goods = new Promotion_Goods(); - // _Goods.product_id = ox["product_id"].ToString(); - // _Goods.title = ox["title"].ToString(); - // _Goods.cover = ox["cover"].ToString(); - // _Goods.config_scope = ox["config_scope"].ToString().ParseToInt(); - // _Goods.promotion_skus = new List(); - - // JArray arrSku = JArray.Parse(ox["promotion_skus"].ToString()); - // for (int j = 0; j < arrSku.Count; j++) - // { - // JObject oj = JObject.Parse(arrSku[j].ToString()); - // Promotion_Skus skus = new Promotion_Skus(); - // skus.id = oj["id"].ToString(); - // skus.camp_stock_num = oj["camp_stock_num"].ToString().ParseToInt(); - // skus.camp_left_stock_num = oj["camp_left_stock_num"].ToString().ParseToInt(); - // skus.price = oj["price"].ToString().ParseToInt(); - // skus.user_limit = oj["user_limit"].ToString(); - // skus.origin_price = oj["origin_price"].ToString().ParseToInt(); - // skus.stock = oj["stock"].ToString().ParseToInt(); - // skus.specification = oj["specification"].ToString(); - // skus.shop_svalue = oj["shop_svalue"].ToString().ParseToInt(); - // skus.redline_price = oj["redline_price"].ToString().ParseToInt(); - // _Goods.promotion_skus.Add(skus); - // } - // infoEdit.promotion_goods.Add(_Goods); - // } - - // var editUrl = "https://fxg.jinritemai.com/byteshop/promotion/editFlashAndGoods?_bid=ecom_market_shop&appid=1&_= " + _underline + " & _signature = " + _signature; - // var postProData = string.Empty; - // postProData = postProData + "{\"sub_stype\":\"" + infoEdit.sub_stype + "\",\"shop_stype\":\"" + infoEdit.shop_stype + "\",\"title\":\"" + infoEdit.title + "\",\"time_set_type\":\"" + infoEdit.time_set_type + "\",\"promotion_goods\":["; - // foreach (var goods in infoEdit.promotion_goods) - // { - // postProData = postProData + "{\"product_id\":\"" + goods.product_id + "\",\"title\":\"" + goods.title + "\",\"cover\":\"" + goods.cover + "\",\"config_scope\":\"" + goods.config_scope + "\",\"promotion_skus\":["; - // if (goods.promotion_skus.Count > 0) - // { - // DouProductPromotionListSkuInfoEditForm skuInfoEdit = new DouProductPromotionListSkuInfoEditForm(goods, infoEdit.shop_stype); - // skuInfoEdit.ShowDialog(); - // if (skuInfoEdit.DialogResult == DialogResult.OK) - // { - // foreach (var skus in skuInfoEdit.skuList) - // { - // postProData = postProData + "{\"id\":\"" + skus.id + "\",\"camp_stock_num\":\"" + skus.camp_stock_num + "\",\"user_limit\":\"" + skus.user_limit + "\",\"price\":\"" + skus.price + "\",\"shop_svalue\":\"" + skus.shop_svalue + "\"},"; - // } - // } - // } - // postProData = postProData.Trim(',') + "]},"; - // } - // postProData = postProData.Trim(',') + "],\"order_expire_time\":\"" + infoEdit.order_expire_time + "\",\"pre_begin_time\":\"" + infoEdit.pre_begin_time + "\",\"begin_time\":\"" + infoEdit.begin_time + "\",\"end_time\":\"" + infoEdit.end_time + "\",\"sold_out_type\":\"" + infoEdit.sold_out_type + "\",\"create_action_type\":\"0\",\"campaign_id\":\"" + infoEdit.campaign_id + "\"}"; - - // CommonSimRequest simRequest1 = new CommonSimRequest(); - // simRequest1.ContentType = "application/json"; - // var editResult = simRequest1.Request_PostByBigLength(editUrl, "https://fxg.jinritemai.com/market/center/tools/limitsales/detail?id=" + ActiveId + "&refer=edit&status=" + status, new Dictionary(), cookies, postProData, false); - // if (editResult.Contains("{\"st\":0,\"msg\":\"\",\"code\":0,")) - // { - // ShowVisitorMessage("修改完成,活动已修改!"); - // Thread.Sleep(1000); - // } - // else - // { - // Invoke(new Action(() => { row.Cells["colMessage"].Value = "修改失败:" + BaseRegex.GetStringJson(ref editResult, "msg"); })); - // } - // } - // } - //} - } - - public string GetProductByActivityId(string activityId, string cookies) - { - - CommonSimRequest request = new CommonSimRequest(); - request.ContentType = "application/json"; - Dictionary dicts = new Dictionary(); - string reqUrl = "https://fxg.jinritemai.com/byteshop/promotion/detailFlashAndGoods?campaign_id=" + activityId + "&filter_unable_product=0&_bid=ecom_market_shop&appid=1&_=" + _timeSpan + "&_signature=" + _signature; - string refUrl = "https://fxg.jinritemai.com/market/center/tools/limitsales/detail?id=" + activityId + "&refer=edit&status=1"; - string result = request.Request_Get(reqUrl, refUrl, dicts, cookies); - return result; - - //https://fxg.jinritemai.com/byteshop/promotion/detailFlashAndGoods?campaign_id=7129422311865811232&filter_unable_product=0&_bid=ecom_market_shop&appid=1 - //https://fxg.jinritemai.com/market/center/tools/limitsales/detail?id=7129422311865811232&refer=edit&status=1 - } - - //根据id获取sku - public string GetSkusByProductIds(string postData, string cookies) - { - CommonSimRequest request = new CommonSimRequest(); - request.ContentType = "application/json"; - Dictionary dicts = new Dictionary(); - string reqUrl = "https://fxg.jinritemai.com/byteshop/promotion/batchGetSkuByProductIds?_bid=ecom_market_shop&appid=1&_=" + _timeSpan + "&_signature=" + _signature; - string result = request.Request_PostByBigLength(reqUrl, "https://fxg.jinritemai.com/market/center/tools/limitsales/detail?refer=new", dicts, cookies, postData); - return result; - } - - public string checkFlashAndGoods(string postData, string cookies) - { - CommonSimRequest request = new CommonSimRequest(); - request.ContentType = "application/json"; - Dictionary dicts = new Dictionary(); - string reqUrl = "https://fxg.jinritemai.com/byteshop/promotion/checkFlashAndGoods?_bid=ecom_market_shop&appid=1&_=" + _timeSpan + "&_signature=" + _signature; - string result = request.Request_PostByBigLength(reqUrl, "https://fxg.jinritemai.com/market/center/tools/limitsales/detail?refer=new", dicts, cookies, postData); - return result; - } - - public string createFlashAndGoods(string postData, string cookies) - { - CommonSimRequest request = new CommonSimRequest(); - request.ContentType = "application/json"; - Dictionary dicts = new Dictionary(); - string reqUrl = "https://fxg.jinritemai.com/byteshop/promotion/createFlashAndGoods?_bid=ecom_market_shop&appid=1&_=" + _timeSpan + "&_signature=" + _signature; - string result = request.Request_PostByBigLength(reqUrl, "https://fxg.jinritemai.com/market/center/tools/limitsales/detail?refer=new", dicts, cookies, postData); - return result; - } - } - - public class ActiveInfo - { - public string campaign_id { get; set; } - public string stype { get; set; } - public string title { get; set; } - public string pre_begin_time { get; set; } - public string begin_time { get; set; } - public string end_time { get; set; } - public string status { get; set; } - public string shop_stype { get; set; } - public string intro { get; set; } - public string campaign_status { get; set; } - public string warm_up { get; set; } - } -} diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/LimitedSalesManagerActiveForm.resx b/TEMUKJD/KJDForms/SalesCenterForms/Old/LimitedSalesManagerActiveForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/LimitedSalesManagerActiveForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/SeckillingAndLimitedSalesForm.Designer.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/SeckillingAndLimitedSalesForm.Designer.cs deleted file mode 100644 index 057d478..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/SeckillingAndLimitedSalesForm.Designer.cs +++ /dev/null @@ -1,1696 +0,0 @@ -namespace TemuKJD.KJDForms.SalesCenterForms -{ - partial class SeckillingAndLimitedSalesForm - { - /// - /// 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(); - this.splitContainer3 = new System.Windows.Forms.SplitContainer(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colAuthStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colLoginStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colCanUse = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.panelEx1 = new DevComponents.DotNetBar.PanelEx(); - this.ucTabControl1 = new TemuKJD.UserComponent.UcTabControl(); - this.tabPageCheckResult = new System.Windows.Forms.TabPage(); - this.lblProductName = new System.Windows.Forms.Label(); - this.txtProductName = new System.Windows.Forms.TextBox(); - this.chkSkipHasSale = new System.Windows.Forms.CheckBox(); - this.tabPageViolateFileList = new System.Windows.Forms.TabPage(); - this.splitContainer4 = new System.Windows.Forms.SplitContainer(); - this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); - this.btnClear = new DevComponents.DotNetBar.PanelEx(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.ucGroupBoxEx3 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.btnMdyAct = new DevComponents.DotNetBar.PanelEx(); - this.btnStopMdyAct = new DevComponents.DotNetBar.PanelEx(); - this.btnCancelGet = new DevComponents.DotNetBar.PanelEx(); - this.cmbSkuOptionType = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.第一个 = new DevComponents.Editors.ComboItem(); - this.最后一个 = new DevComponents.Editors.ComboItem(); - this.最便宜 = new DevComponents.Editors.ComboItem(); - this.最贵 = new DevComponents.Editors.ComboItem(); - this.不设置最便宜 = new DevComponents.Editors.ComboItem(); - this.不设置最贵 = new DevComponents.Editors.ComboItem(); - this.chkSetSkuOption = new System.Windows.Forms.CheckBox(); - this.lblPercentSign = new System.Windows.Forms.Label(); - this.cmbStockType = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.全部库存 = new DevComponents.Editors.ComboItem(); - this.百分比库存 = new DevComponents.Editors.ComboItem(); - this.统一库存 = new DevComponents.Editors.ComboItem(); - this.nudStockValue = new System.Windows.Forms.NumericUpDown(); - this.cmbLimit = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.txtContainsId = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.label2 = new System.Windows.Forms.Label(); - this.flpPrice = new System.Windows.Forms.FlowLayoutPanel(); - this.pnlSkuPriceMin = new System.Windows.Forms.Panel(); - this.lblSKUPriceMin3 = new System.Windows.Forms.Label(); - this.lblSKUPriceMin2 = new System.Windows.Forms.Label(); - this.lblSKUPriceCommon1 = new System.Windows.Forms.Label(); - this.txtSKUPriceMin = new System.Windows.Forms.TextBox(); - this.lblSKUPriceMin1 = new System.Windows.Forms.Label(); - this.lblSKUPriceCommon2 = new System.Windows.Forms.Label(); - this.txtSKUPriceCommon = new System.Windows.Forms.TextBox(); - this.lblSKUPriceCommon3 = new System.Windows.Forms.Label(); - this.panel9 = new System.Windows.Forms.Panel(); - this.label13 = new System.Windows.Forms.Label(); - this.cmbSetPro = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.label10 = new System.Windows.Forms.Label(); - this.panel7 = new System.Windows.Forms.Panel(); - this.label8 = new System.Windows.Forms.Label(); - this.cmbActCont = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.comboItem7 = new DevComponents.Editors.ComboItem(); - this.comboItem8 = new DevComponents.Editors.ComboItem(); - this.comboItem9 = new DevComponents.Editors.ComboItem(); - this.comboItem10 = new DevComponents.Editors.ComboItem(); - this.comboItem11 = new DevComponents.Editors.ComboItem(); - this.comboItem12 = new DevComponents.Editors.ComboItem(); - this.comboItem13 = new DevComponents.Editors.ComboItem(); - this.comboItem14 = new DevComponents.Editors.ComboItem(); - this.comboItem15 = new DevComponents.Editors.ComboItem(); - this.label5 = new System.Windows.Forms.Label(); - this.btnManageAct = new DevComponents.DotNetBar.PanelEx(); - this.btnSubAct = new DevComponents.DotNetBar.PanelEx(); - this.pnlPreheat = new System.Windows.Forms.Panel(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.cmbDays = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.cmbHours = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.pnlDiscount = new System.Windows.Forms.Panel(); - this.rbBuyoutPrice = new System.Windows.Forms.RadioButton(); - this.rbReducePrice = new System.Windows.Forms.RadioButton(); - this.rbDiscount = new System.Windows.Forms.RadioButton(); - this.btnGetProduct = new DevComponents.DotNetBar.PanelEx(); - this.lblDiscount = new System.Windows.Forms.Label(); - this.cmbCancelTime = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.comboItem1 = new DevComponents.Editors.ComboItem(); - this.comboItem2 = new DevComponents.Editors.ComboItem(); - this.comboItem3 = new DevComponents.Editors.ComboItem(); - this.comboItem4 = new DevComponents.Editors.ComboItem(); - this.comboItem5 = new DevComponents.Editors.ComboItem(); - this.comboItem6 = new DevComponents.Editors.ComboItem(); - this.dtpEndTime = new System.Windows.Forms.DateTimePicker(); - this.btnStopGetProduct = new DevComponents.DotNetBar.PanelEx(); - this.dtpStartTime = new System.Windows.Forms.DateTimePicker(); - this.label4 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.panel8 = new System.Windows.Forms.Panel(); - this.btnSetName = new DevComponents.DotNetBar.PanelEx(); - this.chkSetName = new System.Windows.Forms.CheckBox(); - this.panel3 = new System.Windows.Forms.Panel(); - this.rbPreheat = new System.Windows.Forms.RadioButton(); - this.rbNotPreheat = new System.Windows.Forms.RadioButton(); - this.lblLimit = new System.Windows.Forms.Label(); - this.lblStock = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.panel2 = new System.Windows.Forms.Panel(); - this.rbSoldOut = new System.Windows.Forms.RadioButton(); - this.rbNormalPrice = new System.Windows.Forms.RadioButton(); - this.label11 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.panel1 = new System.Windows.Forms.Panel(); - this.rbStartEndTime = new System.Windows.Forms.RadioButton(); - this.rbTimePeriod = new System.Windows.Forms.RadioButton(); - this.lblTime = new System.Windows.Forms.Label(); - this.label1 = new System.Windows.Forms.Label(); - this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.btnRefreshShop = new TemuKJD.UserControls.ButtonEx(); - ((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.dgvShop)).BeginInit(); - this.panelEx1.SuspendLayout(); - this.ucTabControl1.SuspendLayout(); - this.tabPageCheckResult.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).BeginInit(); - this.splitContainer4.Panel1.SuspendLayout(); - this.splitContainer4.Panel2.SuspendLayout(); - this.splitContainer4.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - this.ucGroupBoxEx3.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.nudStockValue)).BeginInit(); - this.flpPrice.SuspendLayout(); - this.pnlSkuPriceMin.SuspendLayout(); - this.panel9.SuspendLayout(); - this.panel7.SuspendLayout(); - this.pnlPreheat.SuspendLayout(); - this.pnlDiscount.SuspendLayout(); - this.panel8.SuspendLayout(); - this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.ucGroupBoxEx1.SuspendLayout(); - this.SuspendLayout(); - // - // 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(1350, 397); - this.splitContainer3.SplitterDistance = 367; - 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.dgvShop); - this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 0, 0); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Controls.Add(this.panelEx1); - this.splitContainer2.Panel2.Padding = new System.Windows.Forms.Padding(0, 0, 4, 0); - this.splitContainer2.Size = new System.Drawing.Size(1350, 367); - this.splitContainer2.SplitterDistance = 269; - this.splitContainer2.TabIndex = 0; - // - // dgvShop - // - this.dgvShop.AllowUserToAddRows = false; - this.dgvShop.AllowUserToDeleteRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - 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.colShopId, - this.colShopName, - this.colAuthStatus, - this.colLoginStatus, - this.colCanUse, - this.colMessage}); - this.dgvShop.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvShop.Location = new System.Drawing.Point(4, 0); - this.dgvShop.Name = "dgvShop"; - this.dgvShop.ReadOnly = true; - this.dgvShop.RowHeadersWidth = 30; - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvShop.RowsDefaultCellStyle = dataGridViewCellStyle3; - this.dgvShop.RowTemplate.Height = 23; - this.dgvShop.Size = new System.Drawing.Size(265, 367); - this.dgvShop.TabIndex = 6; - this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick); - // - // colSelect - // - 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; - // - // colShopId - // - this.colShopId.HeaderText = "店铺"; - this.colShopId.Name = "colShopId"; - this.colShopId.ReadOnly = true; - this.colShopId.Visible = false; - this.colShopId.Width = 55; - // - // colShopName - // - this.colShopName.FillWeight = 150F; - this.colShopName.HeaderText = "店铺名称"; - this.colShopName.Name = "colShopName"; - this.colShopName.ReadOnly = true; - this.colShopName.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colShopName.Width = 75; - // - // colAuthStatus - // - this.colAuthStatus.HeaderText = "授权状态"; - this.colAuthStatus.Name = "colAuthStatus"; - this.colAuthStatus.ReadOnly = true; - this.colAuthStatus.Width = 65; - // - // colLoginStatus - // - this.colLoginStatus.HeaderText = "登录状态"; - this.colLoginStatus.Name = "colLoginStatus"; - this.colLoginStatus.ReadOnly = true; - this.colLoginStatus.Width = 65; - // - // 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; - // - // colMessage - // - this.colMessage.HeaderText = "消息"; - this.colMessage.Name = "colMessage"; - this.colMessage.ReadOnly = true; - this.colMessage.Visible = false; - this.colMessage.Width = 120; - // - // panelEx1 - // - this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control; - this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.panelEx1.Controls.Add(this.ucTabControl1); - this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty; - this.panelEx1.Dock = System.Windows.Forms.DockStyle.Fill; - this.panelEx1.Location = new System.Drawing.Point(0, 0); - this.panelEx1.Name = "panelEx1"; - this.panelEx1.Padding = new System.Windows.Forms.Padding(1); - this.panelEx1.Size = new System.Drawing.Size(1073, 367); - this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center; - this.panelEx1.Style.BackColor1.Color = System.Drawing.Color.White; - this.panelEx1.Style.BackColor2.Color = System.Drawing.Color.White; - 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.TabIndex = 183; - // - // ucTabControl1 - // - this.ucTabControl1.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(251)))), ((int)(((byte)(251)))), ((int)(((byte)(251))))); - this.ucTabControl1.Controls.Add(this.tabPageCheckResult); - this.ucTabControl1.Controls.Add(this.tabPageViolateFileList); - this.ucTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.ucTabControl1.Location = new System.Drawing.Point(1, 1); - this.ucTabControl1.Name = "ucTabControl1"; - this.ucTabControl1.Padding = new System.Drawing.Point(10, 3); - this.ucTabControl1.SelectedIndex = 0; - this.ucTabControl1.ShowCloseButton = true; - this.ucTabControl1.Size = new System.Drawing.Size(1071, 365); - this.ucTabControl1.TabIndex = 0; - this.ucTabControl1.TabSelectColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.ucTabControl1.TabTextColor = System.Drawing.Color.Gray; - // - // tabPageCheckResult - // - this.tabPageCheckResult.Controls.Add(this.lblProductName); - this.tabPageCheckResult.Controls.Add(this.txtProductName); - this.tabPageCheckResult.Controls.Add(this.chkSkipHasSale); - this.tabPageCheckResult.Location = new System.Drawing.Point(2, 26); - this.tabPageCheckResult.Name = "tabPageCheckResult"; - this.tabPageCheckResult.Padding = new System.Windows.Forms.Padding(3); - this.tabPageCheckResult.Size = new System.Drawing.Size(1065, 335); - this.tabPageCheckResult.TabIndex = 0; - this.tabPageCheckResult.Text = "店铺1"; - this.tabPageCheckResult.UseVisualStyleBackColor = true; - // - // lblProductName - // - this.lblProductName.AutoSize = true; - this.lblProductName.Location = new System.Drawing.Point(213, 224); - this.lblProductName.Name = "lblProductName"; - this.lblProductName.Size = new System.Drawing.Size(56, 17); - this.lblProductName.TabIndex = 481; - this.lblProductName.Text = "商品名称"; - // - // txtProductName - // - this.txtProductName.Location = new System.Drawing.Point(269, 221); - this.txtProductName.Name = "txtProductName"; - this.txtProductName.Size = new System.Drawing.Size(202, 23); - this.txtProductName.TabIndex = 480; - // - // chkSkipHasSale - // - this.chkSkipHasSale.AutoSize = true; - this.chkSkipHasSale.Checked = true; - this.chkSkipHasSale.CheckState = System.Windows.Forms.CheckState.Checked; - this.chkSkipHasSale.Location = new System.Drawing.Point(216, 194); - this.chkSkipHasSale.Name = "chkSkipHasSale"; - this.chkSkipHasSale.Size = new System.Drawing.Size(111, 21); - this.chkSkipHasSale.TabIndex = 434; - this.chkSkipHasSale.Text = "跳过有销量商品"; - this.chkSkipHasSale.UseVisualStyleBackColor = true; - // - // tabPageViolateFileList - // - this.tabPageViolateFileList.Location = new System.Drawing.Point(2, 26); - this.tabPageViolateFileList.Name = "tabPageViolateFileList"; - this.tabPageViolateFileList.Padding = new System.Windows.Forms.Padding(3); - this.tabPageViolateFileList.Size = new System.Drawing.Size(1065, 335); - this.tabPageViolateFileList.TabIndex = 1; - this.tabPageViolateFileList.Text = "店铺2"; - this.tabPageViolateFileList.UseVisualStyleBackColor = true; - // - // 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.Size = new System.Drawing.Size(1350, 26); - this.splitContainer4.SplitterDistance = 1235; - 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(1235, 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(17, 0); - 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.Click += new System.EventHandler(this.btnClear_Click); - // - // 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.ucGroupBoxEx1); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.splitContainer3); - this.splitContainer1.Size = new System.Drawing.Size(1350, 561); - this.splitContainer1.SplitterDistance = 160; - this.splitContainer1.TabIndex = 6; - // - // 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.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.btnMdyAct); - this.ucGroupBoxEx3.Controls.Add(this.btnStopMdyAct); - this.ucGroupBoxEx3.Controls.Add(this.btnCancelGet); - this.ucGroupBoxEx3.Controls.Add(this.cmbSkuOptionType); - this.ucGroupBoxEx3.Controls.Add(this.chkSetSkuOption); - this.ucGroupBoxEx3.Controls.Add(this.lblPercentSign); - this.ucGroupBoxEx3.Controls.Add(this.cmbStockType); - this.ucGroupBoxEx3.Controls.Add(this.nudStockValue); - this.ucGroupBoxEx3.Controls.Add(this.cmbLimit); - this.ucGroupBoxEx3.Controls.Add(this.txtContainsId); - this.ucGroupBoxEx3.Controls.Add(this.label2); - this.ucGroupBoxEx3.Controls.Add(this.flpPrice); - this.ucGroupBoxEx3.Controls.Add(this.panel9); - this.ucGroupBoxEx3.Controls.Add(this.panel7); - this.ucGroupBoxEx3.Controls.Add(this.btnManageAct); - this.ucGroupBoxEx3.Controls.Add(this.btnSubAct); - this.ucGroupBoxEx3.Controls.Add(this.pnlPreheat); - this.ucGroupBoxEx3.Controls.Add(this.pnlDiscount); - this.ucGroupBoxEx3.Controls.Add(this.btnGetProduct); - this.ucGroupBoxEx3.Controls.Add(this.lblDiscount); - this.ucGroupBoxEx3.Controls.Add(this.cmbCancelTime); - this.ucGroupBoxEx3.Controls.Add(this.dtpEndTime); - this.ucGroupBoxEx3.Controls.Add(this.btnStopGetProduct); - this.ucGroupBoxEx3.Controls.Add(this.dtpStartTime); - this.ucGroupBoxEx3.Controls.Add(this.label4); - this.ucGroupBoxEx3.Controls.Add(this.label12); - this.ucGroupBoxEx3.Controls.Add(this.panel8); - this.ucGroupBoxEx3.Controls.Add(this.panel3); - this.ucGroupBoxEx3.Controls.Add(this.lblLimit); - this.ucGroupBoxEx3.Controls.Add(this.lblStock); - this.ucGroupBoxEx3.Controls.Add(this.label9); - this.ucGroupBoxEx3.Controls.Add(this.panel2); - this.ucGroupBoxEx3.Controls.Add(this.label11); - this.ucGroupBoxEx3.Controls.Add(this.label3); - this.ucGroupBoxEx3.Controls.Add(this.panel1); - this.ucGroupBoxEx3.Controls.Add(this.lblTime); - this.ucGroupBoxEx3.Controls.Add(this.label1); - this.ucGroupBoxEx3.Location = new System.Drawing.Point(146, 2); - this.ucGroupBoxEx3.Name = "ucGroupBoxEx3"; - this.ucGroupBoxEx3.Size = new System.Drawing.Size(1202, 160); - this.ucGroupBoxEx3.TabIndex = 423; - this.ucGroupBoxEx3.TabStop = false; - this.ucGroupBoxEx3.Text = "参数设置"; - // - // btnMdyAct - // - this.btnMdyAct.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnMdyAct.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnMdyAct.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnMdyAct.DisabledBackColor = System.Drawing.Color.Empty; - this.btnMdyAct.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnMdyAct.Location = new System.Drawing.Point(1062, 118); - this.btnMdyAct.Name = "btnMdyAct"; - this.btnMdyAct.Size = new System.Drawing.Size(60, 23); - this.btnMdyAct.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnMdyAct.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnMdyAct.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnMdyAct.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnMdyAct.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnMdyAct.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnMdyAct.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnMdyAct.Style.GradientAngle = 90; - this.btnMdyAct.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnMdyAct.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnMdyAct.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnMdyAct.TabIndex = 685; - this.btnMdyAct.Text = "修改活动"; - this.btnMdyAct.Click += new System.EventHandler(this.btnMdyAct_Click); - // - // btnStopMdyAct - // - this.btnStopMdyAct.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnStopMdyAct.CanvasColor = System.Drawing.SystemColors.Control; - this.btnStopMdyAct.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnStopMdyAct.DisabledBackColor = System.Drawing.Color.Empty; - this.btnStopMdyAct.Location = new System.Drawing.Point(1128, 118); - this.btnStopMdyAct.Name = "btnStopMdyAct"; - this.btnStopMdyAct.Size = new System.Drawing.Size(60, 23); - this.btnStopMdyAct.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopMdyAct.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStopMdyAct.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStopMdyAct.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnStopMdyAct.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopMdyAct.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnStopMdyAct.Style.GradientAngle = 90; - this.btnStopMdyAct.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopMdyAct.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopMdyAct.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopMdyAct.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopMdyAct.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnStopMdyAct.TabIndex = 684; - this.btnStopMdyAct.Text = "停止修改"; - // - // btnCancelGet - // - this.btnCancelGet.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancelGet.CanvasColor = System.Drawing.SystemColors.Control; - this.btnCancelGet.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnCancelGet.DisabledBackColor = System.Drawing.Color.Empty; - this.btnCancelGet.Location = new System.Drawing.Point(1128, 17); - this.btnCancelGet.Name = "btnCancelGet"; - this.btnCancelGet.Size = new System.Drawing.Size(60, 23); - this.btnCancelGet.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnCancelGet.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnCancelGet.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnCancelGet.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnCancelGet.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnCancelGet.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnCancelGet.Style.GradientAngle = 90; - this.btnCancelGet.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnCancelGet.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnCancelGet.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnCancelGet.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnCancelGet.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnCancelGet.TabIndex = 662; - this.btnCancelGet.Text = "停止获取"; - this.btnCancelGet.Click += new System.EventHandler(this.btnCancelGet_Click); - // - // cmbSkuOptionType - // - this.cmbSkuOptionType.DisplayMember = "Text"; - this.cmbSkuOptionType.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbSkuOptionType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbSkuOptionType.FormattingEnabled = true; - this.cmbSkuOptionType.ItemHeight = 18; - this.cmbSkuOptionType.Items.AddRange(new object[] { - this.第一个, - this.最后一个, - this.最便宜, - this.最贵, - this.不设置最便宜, - this.不设置最贵}); - this.cmbSkuOptionType.Location = new System.Drawing.Point(934, 42); - this.cmbSkuOptionType.Name = "cmbSkuOptionType"; - this.cmbSkuOptionType.Size = new System.Drawing.Size(118, 24); - this.cmbSkuOptionType.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbSkuOptionType.TabIndex = 646; - // - // 第一个 - // - this.第一个.Text = "第一个"; - // - // 最后一个 - // - this.最后一个.Text = "最后一个"; - // - // 最便宜 - // - this.最便宜.Text = "最便宜"; - // - // 最贵 - // - this.最贵.Text = "最贵"; - // - // 不设置最便宜 - // - this.不设置最便宜.Text = "不设置最便宜"; - // - // 不设置最贵 - // - this.不设置最贵.Text = "不设置最贵"; - // - // chkSetSkuOption - // - this.chkSetSkuOption.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.chkSetSkuOption.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chkSetSkuOption.ForeColor = System.Drawing.Color.Red; - this.chkSetSkuOption.Location = new System.Drawing.Point(844, 44); - this.chkSetSkuOption.Name = "chkSetSkuOption"; - this.chkSetSkuOption.Size = new System.Drawing.Size(100, 21); - this.chkSetSkuOption.TabIndex = 645; - this.chkSetSkuOption.Text = "设置Sku选项"; - this.chkSetSkuOption.UseVisualStyleBackColor = true; - this.chkSetSkuOption.CheckedChanged += new System.EventHandler(this.chkSetOneSku_CheckedChanged); - // - // lblPercentSign - // - this.lblPercentSign.AutoSize = true; - this.lblPercentSign.Location = new System.Drawing.Point(630, 17); - this.lblPercentSign.Name = "lblPercentSign"; - this.lblPercentSign.Size = new System.Drawing.Size(19, 17); - this.lblPercentSign.TabIndex = 644; - this.lblPercentSign.Text = "%"; - // - // cmbStockType - // - this.cmbStockType.DisplayMember = "Text"; - this.cmbStockType.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbStockType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbStockType.FormattingEnabled = true; - this.cmbStockType.ItemHeight = 18; - this.cmbStockType.Items.AddRange(new object[] { - this.全部库存, - this.百分比库存, - this.统一库存}); - this.cmbStockType.Location = new System.Drawing.Point(490, 13); - this.cmbStockType.Name = "cmbStockType"; - this.cmbStockType.Size = new System.Drawing.Size(84, 24); - this.cmbStockType.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbStockType.TabIndex = 643; - this.cmbStockType.SelectedIndexChanged += new System.EventHandler(this.cmbStockType_SelectedIndexChanged); - // - // 全部库存 - // - this.全部库存.Text = "全部库存"; - // - // 百分比库存 - // - this.百分比库存.Text = "百分比库存"; - // - // 统一库存 - // - this.统一库存.Text = "统一库存"; - // - // nudStockValue - // - this.nudStockValue.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.nudStockValue.Location = new System.Drawing.Point(580, 14); - this.nudStockValue.Minimum = new decimal(new int[] { - 1, - 0, - 0, - 0}); - this.nudStockValue.Name = "nudStockValue"; - this.nudStockValue.Size = new System.Drawing.Size(48, 23); - this.nudStockValue.TabIndex = 642; - this.nudStockValue.Value = new decimal(new int[] { - 50, - 0, - 0, - 0}); - // - // cmbLimit - // - this.cmbLimit.DisplayMember = "Text"; - this.cmbLimit.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbLimit.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbLimit.FormattingEnabled = true; - this.cmbLimit.ItemHeight = 18; - this.cmbLimit.Location = new System.Drawing.Point(720, 42); - this.cmbLimit.Name = "cmbLimit"; - this.cmbLimit.Size = new System.Drawing.Size(55, 24); - this.cmbLimit.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbLimit.TabIndex = 520; - // - // txtContainsId - // - // - // - // - this.txtContainsId.Border.Class = "TextBoxBorder"; - this.txtContainsId.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txtContainsId.Location = new System.Drawing.Point(844, 89); - this.txtContainsId.Multiline = true; - this.txtContainsId.Name = "txtContainsId"; - this.txtContainsId.PreventEnterBeep = true; - this.txtContainsId.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; - this.txtContainsId.Size = new System.Drawing.Size(208, 62); - this.txtContainsId.TabIndex = 629; - this.txtContainsId.WatermarkText = "请输入商品编号,一行一个"; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(842, 71); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(105, 17); - this.label2.TabIndex = 628; - this.label2.Text = "获取指定商品ID:"; - // - // flpPrice - // - this.flpPrice.Controls.Add(this.pnlSkuPriceMin); - this.flpPrice.Controls.Add(this.lblSKUPriceCommon2); - this.flpPrice.Controls.Add(this.txtSKUPriceCommon); - this.flpPrice.Controls.Add(this.lblSKUPriceCommon3); - this.flpPrice.Location = new System.Drawing.Point(490, 128); - this.flpPrice.Name = "flpPrice"; - this.flpPrice.Size = new System.Drawing.Size(335, 23); - this.flpPrice.TabIndex = 614; - // - // pnlSkuPriceMin - // - this.pnlSkuPriceMin.Controls.Add(this.lblSKUPriceMin3); - this.pnlSkuPriceMin.Controls.Add(this.lblSKUPriceMin2); - this.pnlSkuPriceMin.Controls.Add(this.lblSKUPriceCommon1); - this.pnlSkuPriceMin.Controls.Add(this.txtSKUPriceMin); - this.pnlSkuPriceMin.Controls.Add(this.lblSKUPriceMin1); - this.pnlSkuPriceMin.Location = new System.Drawing.Point(0, 0); - this.pnlSkuPriceMin.Margin = new System.Windows.Forms.Padding(0); - this.pnlSkuPriceMin.Name = "pnlSkuPriceMin"; - this.pnlSkuPriceMin.Size = new System.Drawing.Size(212, 23); - this.pnlSkuPriceMin.TabIndex = 469; - // - // lblSKUPriceMin3 - // - this.lblSKUPriceMin3.AutoSize = true; - this.lblSKUPriceMin3.Location = new System.Drawing.Point(130, 3); - this.lblSKUPriceMin3.Name = "lblSKUPriceMin3"; - this.lblSKUPriceMin3.Size = new System.Drawing.Size(20, 17); - this.lblSKUPriceMin3.TabIndex = 522; - this.lblSKUPriceMin3.Text = "元"; - // - // lblSKUPriceMin2 - // - this.lblSKUPriceMin2.AutoSize = true; - this.lblSKUPriceMin2.Location = new System.Drawing.Point(56, 3); - this.lblSKUPriceMin2.Name = "lblSKUPriceMin2"; - this.lblSKUPriceMin2.Size = new System.Drawing.Size(20, 17); - this.lblSKUPriceMin2.TabIndex = 521; - this.lblSKUPriceMin2.Text = "减"; - // - // lblSKUPriceCommon1 - // - this.lblSKUPriceCommon1.AutoSize = true; - this.lblSKUPriceCommon1.Location = new System.Drawing.Point(154, 3); - this.lblSKUPriceCommon1.Name = "lblSKUPriceCommon1"; - this.lblSKUPriceCommon1.Size = new System.Drawing.Size(56, 17); - this.lblSKUPriceCommon1.TabIndex = 520; - this.lblSKUPriceCommon1.Text = "常规SKU"; - // - // txtSKUPriceMin - // - this.txtSKUPriceMin.Location = new System.Drawing.Point(78, 0); - this.txtSKUPriceMin.Name = "txtSKUPriceMin"; - this.txtSKUPriceMin.Size = new System.Drawing.Size(50, 23); - this.txtSKUPriceMin.TabIndex = 519; - // - // lblSKUPriceMin1 - // - this.lblSKUPriceMin1.AutoSize = true; - this.lblSKUPriceMin1.Location = new System.Drawing.Point(1, 3); - this.lblSKUPriceMin1.Name = "lblSKUPriceMin1"; - this.lblSKUPriceMin1.Size = new System.Drawing.Size(56, 17); - this.lblSKUPriceMin1.TabIndex = 518; - this.lblSKUPriceMin1.Text = "最低SKU"; - // - // lblSKUPriceCommon2 - // - this.lblSKUPriceCommon2.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.lblSKUPriceCommon2.AutoSize = true; - this.lblSKUPriceCommon2.Location = new System.Drawing.Point(212, 3); - this.lblSKUPriceCommon2.Margin = new System.Windows.Forms.Padding(0); - this.lblSKUPriceCommon2.Name = "lblSKUPriceCommon2"; - this.lblSKUPriceCommon2.Size = new System.Drawing.Size(20, 17); - this.lblSKUPriceCommon2.TabIndex = 524; - this.lblSKUPriceCommon2.Text = "减"; - // - // txtSKUPriceCommon - // - this.txtSKUPriceCommon.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.txtSKUPriceCommon.Location = new System.Drawing.Point(232, 0); - this.txtSKUPriceCommon.Margin = new System.Windows.Forms.Padding(0); - this.txtSKUPriceCommon.Name = "txtSKUPriceCommon"; - this.txtSKUPriceCommon.Size = new System.Drawing.Size(50, 23); - this.txtSKUPriceCommon.TabIndex = 523; - // - // lblSKUPriceCommon3 - // - this.lblSKUPriceCommon3.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.lblSKUPriceCommon3.AutoSize = true; - this.lblSKUPriceCommon3.Location = new System.Drawing.Point(282, 3); - this.lblSKUPriceCommon3.Margin = new System.Windows.Forms.Padding(0); - this.lblSKUPriceCommon3.Name = "lblSKUPriceCommon3"; - this.lblSKUPriceCommon3.Size = new System.Drawing.Size(20, 17); - this.lblSKUPriceCommon3.TabIndex = 525; - this.lblSKUPriceCommon3.Text = "元"; - // - // panel9 - // - this.panel9.Controls.Add(this.label13); - this.panel9.Controls.Add(this.cmbSetPro); - this.panel9.Controls.Add(this.label10); - this.panel9.Location = new System.Drawing.Point(660, 13); - this.panel9.Name = "panel9"; - this.panel9.Size = new System.Drawing.Size(165, 24); - this.panel9.TabIndex = 588; - // - // label13 - // - this.label13.AutoSize = true; - this.label13.Location = new System.Drawing.Point(118, 3); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(44, 17); - this.label13.TabIndex = 564; - this.label13.Text = "个商品"; - // - // cmbSetPro - // - this.cmbSetPro.DisplayMember = "Text"; - this.cmbSetPro.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbSetPro.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbSetPro.FormattingEnabled = true; - this.cmbSetPro.ItemHeight = 18; - this.cmbSetPro.Location = new System.Drawing.Point(60, 0); - this.cmbSetPro.Name = "cmbSetPro"; - this.cmbSetPro.Size = new System.Drawing.Size(55, 24); - this.cmbSetPro.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbSetPro.TabIndex = 563; - // - // label10 - // - this.label10.AutoSize = true; - this.label10.Location = new System.Drawing.Point(2, 3); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(56, 17); - this.label10.TabIndex = 562; - this.label10.Text = "一个活动"; - // - // panel7 - // - this.panel7.Controls.Add(this.label8); - this.panel7.Controls.Add(this.cmbActCont); - this.panel7.Controls.Add(this.label5); - this.panel7.Location = new System.Drawing.Point(105, 38); - this.panel7.Name = "panel7"; - this.panel7.Size = new System.Drawing.Size(319, 24); - this.panel7.TabIndex = 515; - this.panel7.Visible = false; - // - // label8 - // - this.label8.AutoSize = true; - this.label8.Location = new System.Drawing.Point(131, 4); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(184, 17); - this.label8.TabIndex = 522; - this.label8.Text = "后结束(创建成功后活动立即生效)"; - // - // cmbActCont - // - this.cmbActCont.DisplayMember = "Text"; - this.cmbActCont.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbActCont.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbActCont.FormattingEnabled = true; - this.cmbActCont.ItemHeight = 18; - this.cmbActCont.Items.AddRange(new object[] { - this.comboItem7, - this.comboItem8, - this.comboItem9, - this.comboItem10, - this.comboItem11, - this.comboItem12, - this.comboItem13, - this.comboItem14, - this.comboItem15}); - this.cmbActCont.Location = new System.Drawing.Point(55, 0); - this.cmbActCont.Name = "cmbActCont"; - this.cmbActCont.Size = new System.Drawing.Size(75, 24); - this.cmbActCont.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbActCont.TabIndex = 521; - // - // comboItem7 - // - this.comboItem7.Text = "5分钟"; - this.comboItem7.Value = "5分钟"; - // - // comboItem8 - // - this.comboItem8.Text = "10分钟"; - this.comboItem8.Value = "10分钟"; - // - // comboItem9 - // - this.comboItem9.Text = "15分钟"; - this.comboItem9.Value = "15分钟"; - // - // comboItem10 - // - this.comboItem10.Text = "30分钟"; - this.comboItem10.Value = "30分钟"; - // - // comboItem11 - // - this.comboItem11.Text = "1小时"; - this.comboItem11.Value = "1小时"; - // - // comboItem12 - // - this.comboItem12.Text = "2小时"; - this.comboItem12.Value = "2小时"; - // - // comboItem13 - // - this.comboItem13.Text = "6小时"; - this.comboItem13.Value = "6小时"; - // - // comboItem14 - // - this.comboItem14.Text = "12小时"; - this.comboItem14.Value = "12小时"; - // - // comboItem15 - // - this.comboItem15.Text = "24小时"; - this.comboItem15.Value = "24小时"; - // - // label5 - // - this.label5.AutoSize = true; - this.label5.Location = new System.Drawing.Point(-2, 3); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(56, 17); - this.label5.TabIndex = 520; - this.label5.Text = "活动持续"; - // - // btnManageAct - // - this.btnManageAct.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnManageAct.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnManageAct.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnManageAct.DisabledBackColor = System.Drawing.Color.Empty; - this.btnManageAct.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnManageAct.Location = new System.Drawing.Point(1062, 89); - this.btnManageAct.Name = "btnManageAct"; - this.btnManageAct.Size = new System.Drawing.Size(60, 23); - this.btnManageAct.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnManageAct.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnManageAct.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnManageAct.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnManageAct.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnManageAct.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnManageAct.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnManageAct.Style.GradientAngle = 90; - this.btnManageAct.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnManageAct.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnManageAct.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnManageAct.TabIndex = 548; - this.btnManageAct.Text = "活动管理"; - this.btnManageAct.Click += new System.EventHandler(this.btnManageAct_Click); - // - // btnSubAct - // - this.btnSubAct.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnSubAct.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnSubAct.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnSubAct.DisabledBackColor = System.Drawing.Color.Empty; - this.btnSubAct.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSubAct.Location = new System.Drawing.Point(1062, 46); - this.btnSubAct.Name = "btnSubAct"; - this.btnSubAct.Size = new System.Drawing.Size(60, 23); - this.btnSubAct.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnSubAct.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSubAct.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSubAct.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnSubAct.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnSubAct.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnSubAct.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnSubAct.Style.GradientAngle = 90; - this.btnSubAct.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnSubAct.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSubAct.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSubAct.TabIndex = 532; - this.btnSubAct.Text = "提交活动"; - this.btnSubAct.Click += new System.EventHandler(this.btnSubAct_Click); - // - // pnlPreheat - // - this.pnlPreheat.Controls.Add(this.label6); - this.pnlPreheat.Controls.Add(this.label7); - this.pnlPreheat.Controls.Add(this.cmbDays); - this.pnlPreheat.Controls.Add(this.cmbHours); - this.pnlPreheat.Location = new System.Drawing.Point(490, 72); - this.pnlPreheat.Name = "pnlPreheat"; - this.pnlPreheat.Size = new System.Drawing.Size(335, 24); - this.pnlPreheat.TabIndex = 522; - // - // label6 - // - this.label6.AutoSize = true; - this.label6.Location = new System.Drawing.Point(2, 3); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(68, 17); - this.label6.TabIndex = 519; - this.label6.Text = "活动开始前"; - // - // label7 - // - this.label7.AutoSize = true; - this.label7.Location = new System.Drawing.Point(200, 3); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(56, 17); - this.label7.TabIndex = 521; - this.label7.Text = "进行预热"; - // - // cmbDays - // - this.cmbDays.DisplayMember = "Text"; - this.cmbDays.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbDays.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbDays.FormattingEnabled = true; - this.cmbDays.ItemHeight = 18; - this.cmbDays.Location = new System.Drawing.Point(70, 0); - this.cmbDays.Name = "cmbDays"; - this.cmbDays.Size = new System.Drawing.Size(47, 24); - this.cmbDays.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbDays.TabIndex = 519; - // - // cmbHours - // - this.cmbHours.DisplayMember = "Text"; - this.cmbHours.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbHours.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbHours.FormattingEnabled = true; - this.cmbHours.ItemHeight = 18; - this.cmbHours.Location = new System.Drawing.Point(120, 0); - this.cmbHours.Name = "cmbHours"; - this.cmbHours.Size = new System.Drawing.Size(80, 24); - this.cmbHours.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbHours.TabIndex = 520; - // - // pnlDiscount - // - this.pnlDiscount.Controls.Add(this.rbBuyoutPrice); - this.pnlDiscount.Controls.Add(this.rbReducePrice); - this.pnlDiscount.Controls.Add(this.rbDiscount); - this.pnlDiscount.Location = new System.Drawing.Point(490, 101); - this.pnlDiscount.Name = "pnlDiscount"; - this.pnlDiscount.Size = new System.Drawing.Size(335, 23); - this.pnlDiscount.TabIndex = 518; - // - // rbBuyoutPrice - // - this.rbBuyoutPrice.AutoSize = true; - this.rbBuyoutPrice.Location = new System.Drawing.Point(114, 1); - this.rbBuyoutPrice.Name = "rbBuyoutPrice"; - this.rbBuyoutPrice.Size = new System.Drawing.Size(62, 21); - this.rbBuyoutPrice.TabIndex = 468; - this.rbBuyoutPrice.Text = "一口价"; - this.rbBuyoutPrice.UseVisualStyleBackColor = true; - this.rbBuyoutPrice.Click += new System.EventHandler(this.rbBuyoutPrice_Click); - // - // rbReducePrice - // - this.rbReducePrice.AutoSize = true; - this.rbReducePrice.Checked = true; - this.rbReducePrice.Location = new System.Drawing.Point(58, 1); - this.rbReducePrice.Name = "rbReducePrice"; - this.rbReducePrice.Size = new System.Drawing.Size(50, 21); - this.rbReducePrice.TabIndex = 467; - this.rbReducePrice.TabStop = true; - this.rbReducePrice.Text = "直降"; - this.rbReducePrice.UseVisualStyleBackColor = true; - this.rbReducePrice.Click += new System.EventHandler(this.rbReducePrice_Click); - // - // rbDiscount - // - this.rbDiscount.AutoSize = true; - this.rbDiscount.Location = new System.Drawing.Point(1, 1); - this.rbDiscount.Name = "rbDiscount"; - this.rbDiscount.Size = new System.Drawing.Size(50, 21); - this.rbDiscount.TabIndex = 466; - this.rbDiscount.Text = "打折"; - this.rbDiscount.UseVisualStyleBackColor = true; - this.rbDiscount.Click += new System.EventHandler(this.rbDiscount_Click); - // - // btnGetProduct - // - this.btnGetProduct.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnGetProduct.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnGetProduct.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnGetProduct.DisabledBackColor = System.Drawing.Color.Empty; - this.btnGetProduct.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnGetProduct.Location = new System.Drawing.Point(1062, 17); - this.btnGetProduct.Name = "btnGetProduct"; - this.btnGetProduct.Size = new System.Drawing.Size(60, 23); - this.btnGetProduct.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnGetProduct.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnGetProduct.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnGetProduct.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnGetProduct.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnGetProduct.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnGetProduct.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnGetProduct.Style.GradientAngle = 90; - this.btnGetProduct.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnGetProduct.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnGetProduct.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnGetProduct.TabIndex = 456; - this.btnGetProduct.Text = "获取商品"; - this.btnGetProduct.Click += new System.EventHandler(this.btnGetProduct_Click); - // - // lblDiscount - // - this.lblDiscount.AutoSize = true; - this.lblDiscount.Location = new System.Drawing.Point(430, 104); - this.lblDiscount.Name = "lblDiscount"; - this.lblDiscount.Size = new System.Drawing.Size(56, 17); - this.lblDiscount.TabIndex = 517; - this.lblDiscount.Text = "优惠方式"; - // - // cmbCancelTime - // - this.cmbCancelTime.DisplayMember = "Text"; - this.cmbCancelTime.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbCancelTime.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbCancelTime.FormattingEnabled = true; - this.cmbCancelTime.ItemHeight = 18; - this.cmbCancelTime.Items.AddRange(new object[] { - this.comboItem1, - this.comboItem2, - this.comboItem3, - this.comboItem4, - this.comboItem5, - this.comboItem6}); - this.cmbCancelTime.Location = new System.Drawing.Point(104, 84); - this.cmbCancelTime.Name = "cmbCancelTime"; - this.cmbCancelTime.Size = new System.Drawing.Size(320, 24); - this.cmbCancelTime.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbCancelTime.TabIndex = 511; - // - // comboItem1 - // - this.comboItem1.Text = "3分钟"; - // - // comboItem2 - // - this.comboItem2.Text = "5分钟"; - // - // comboItem3 - // - this.comboItem3.Text = "10分钟"; - // - // comboItem4 - // - this.comboItem4.Text = "15分钟"; - // - // comboItem5 - // - this.comboItem5.Text = "20分钟"; - // - // comboItem6 - // - this.comboItem6.Text = "30分钟"; - // - // dtpEndTime - // - this.dtpEndTime.CustomFormat = "yyyy\'/\'MM\'/\'dd HH:mm:ss"; - this.dtpEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dtpEndTime.Location = new System.Drawing.Point(271, 38); - this.dtpEndTime.Name = "dtpEndTime"; - this.dtpEndTime.Size = new System.Drawing.Size(153, 23); - this.dtpEndTime.TabIndex = 468; - // - // btnStopGetProduct - // - this.btnStopGetProduct.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnStopGetProduct.CanvasColor = System.Drawing.SystemColors.Control; - this.btnStopGetProduct.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnStopGetProduct.DisabledBackColor = System.Drawing.Color.Empty; - this.btnStopGetProduct.Location = new System.Drawing.Point(1128, 46); - this.btnStopGetProduct.Name = "btnStopGetProduct"; - this.btnStopGetProduct.Size = new System.Drawing.Size(60, 23); - this.btnStopGetProduct.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopGetProduct.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStopGetProduct.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStopGetProduct.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnStopGetProduct.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopGetProduct.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnStopGetProduct.Style.GradientAngle = 90; - this.btnStopGetProduct.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopGetProduct.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopGetProduct.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopGetProduct.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopGetProduct.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnStopGetProduct.TabIndex = 463; - this.btnStopGetProduct.Text = "停止提交"; - this.btnStopGetProduct.Click += new System.EventHandler(this.btnStopGetProduct_Click); - // - // dtpStartTime - // - this.dtpStartTime.CustomFormat = "yyyy\'/\'MM\'/\'dd HH:mm:ss"; - this.dtpStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dtpStartTime.Location = new System.Drawing.Point(105, 38); - this.dtpStartTime.Name = "dtpStartTime"; - this.dtpStartTime.Size = new System.Drawing.Size(155, 23); - this.dtpStartTime.TabIndex = 467; - // - // label4 - // - this.label4.AutoSize = true; - this.label4.ForeColor = System.Drawing.SystemColors.GrayText; - this.label4.Location = new System.Drawing.Point(102, 61); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(274, 17); - this.label4.TabIndex = 516; - this.label4.Text = "活动时间超过24小时,用户端将不展示活动倒计时"; - // - // label12 - // - this.label12.AutoSize = true; - this.label12.ForeColor = System.Drawing.SystemColors.GrayText; - this.label12.Location = new System.Drawing.Point(101, 107); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(231, 17); - this.label12.TabIndex = 515; - this.label12.Text = "促销活动的订单取消时间建议设置为5分钟"; - // - // panel8 - // - this.panel8.Controls.Add(this.btnSetName); - this.panel8.Controls.Add(this.chkSetName); - this.panel8.Location = new System.Drawing.Point(844, 14); - this.panel8.Name = "panel8"; - this.panel8.Size = new System.Drawing.Size(208, 23); - this.panel8.TabIndex = 514; - // - // btnSetName - // - this.btnSetName.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnSetName.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnSetName.DisabledBackColor = System.Drawing.Color.Empty; - this.btnSetName.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSetName.Location = new System.Drawing.Point(106, 2); - this.btnSetName.Name = "btnSetName"; - this.btnSetName.Size = new System.Drawing.Size(56, 19); - this.btnSetName.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnSetName.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSetName.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSetName.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnSetName.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnSetName.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnSetName.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnSetName.Style.GradientAngle = 90; - this.btnSetName.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnSetName.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSetName.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSetName.TabIndex = 630; - this.btnSetName.Text = "设置名称"; - this.btnSetName.Click += new System.EventHandler(this.btnSetName_Click); - // - // chkSetName - // - this.chkSetName.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.chkSetName.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.chkSetName.Location = new System.Drawing.Point(0, 2); - this.chkSetName.Name = "chkSetName"; - this.chkSetName.Size = new System.Drawing.Size(125, 19); - this.chkSetName.TabIndex = 561; - this.chkSetName.Text = "自定义活动名称"; - this.chkSetName.UseVisualStyleBackColor = true; - this.chkSetName.CheckedChanged += new System.EventHandler(this.chkSetName_CheckedChanged); - // - // panel3 - // - this.panel3.Controls.Add(this.rbPreheat); - this.panel3.Controls.Add(this.rbNotPreheat); - this.panel3.Location = new System.Drawing.Point(490, 43); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(120, 23); - this.panel3.TabIndex = 514; - // - // rbPreheat - // - this.rbPreheat.AutoSize = true; - this.rbPreheat.Location = new System.Drawing.Point(66, 1); - this.rbPreheat.Name = "rbPreheat"; - this.rbPreheat.Size = new System.Drawing.Size(50, 21); - this.rbPreheat.TabIndex = 467; - this.rbPreheat.Text = "预热"; - this.rbPreheat.UseVisualStyleBackColor = true; - // - // rbNotPreheat - // - this.rbNotPreheat.AutoSize = true; - this.rbNotPreheat.Checked = true; - this.rbNotPreheat.Location = new System.Drawing.Point(1, 1); - this.rbNotPreheat.Name = "rbNotPreheat"; - this.rbNotPreheat.Size = new System.Drawing.Size(62, 21); - this.rbNotPreheat.TabIndex = 466; - this.rbNotPreheat.TabStop = true; - this.rbNotPreheat.Text = "不预热"; - this.rbNotPreheat.UseVisualStyleBackColor = true; - this.rbNotPreheat.CheckedChanged += new System.EventHandler(this.rbNotPreheat_CheckedChanged); - // - // lblLimit - // - this.lblLimit.AutoSize = true; - this.lblLimit.Location = new System.Drawing.Point(662, 46); - this.lblLimit.Name = "lblLimit"; - this.lblLimit.Size = new System.Drawing.Size(56, 17); - this.lblLimit.TabIndex = 513; - this.lblLimit.Text = "每人限购"; - // - // lblStock - // - this.lblStock.AutoSize = true; - this.lblStock.Location = new System.Drawing.Point(432, 17); - this.lblStock.Name = "lblStock"; - this.lblStock.Size = new System.Drawing.Size(56, 17); - this.lblStock.TabIndex = 513; - this.lblStock.Text = "活动库存"; - // - // label9 - // - this.label9.AutoSize = true; - this.label9.Location = new System.Drawing.Point(431, 46); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(56, 17); - this.label9.TabIndex = 513; - this.label9.Text = "是否预热"; - // - // panel2 - // - this.panel2.Controls.Add(this.rbSoldOut); - this.panel2.Controls.Add(this.rbNormalPrice); - this.panel2.Location = new System.Drawing.Point(104, 128); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(320, 23); - this.panel2.TabIndex = 512; - // - // rbSoldOut - // - this.rbSoldOut.AutoSize = true; - this.rbSoldOut.Location = new System.Drawing.Point(126, 1); - this.rbSoldOut.Name = "rbSoldOut"; - this.rbSoldOut.Size = new System.Drawing.Size(194, 21); - this.rbSoldOut.TabIndex = 467; - this.rbSoldOut.Text = "停止售卖,商品标示“已抢光”"; - this.rbSoldOut.UseVisualStyleBackColor = true; - // - // rbNormalPrice - // - this.rbNormalPrice.AutoSize = true; - this.rbNormalPrice.Checked = true; - this.rbNormalPrice.Location = new System.Drawing.Point(1, 1); - this.rbNormalPrice.Name = "rbNormalPrice"; - this.rbNormalPrice.Size = new System.Drawing.Size(122, 21); - this.rbNormalPrice.TabIndex = 466; - this.rbNormalPrice.TabStop = true; - this.rbNormalPrice.Text = "恢复原价继续售卖"; - this.rbNormalPrice.UseVisualStyleBackColor = true; - // - // label11 - // - this.label11.AutoSize = true; - this.label11.Location = new System.Drawing.Point(9, 131); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(92, 17); - this.label11.TabIndex = 510; - this.label11.Text = "活动库存售罄时"; - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(21, 87); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(80, 17); - this.label3.TabIndex = 509; - this.label3.Text = "订单取消时间"; - // - // panel1 - // - this.panel1.Controls.Add(this.rbStartEndTime); - this.panel1.Controls.Add(this.rbTimePeriod); - this.panel1.Location = new System.Drawing.Point(104, 14); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(320, 23); - this.panel1.TabIndex = 508; - // - // rbStartEndTime - // - this.rbStartEndTime.AutoSize = true; - this.rbStartEndTime.Checked = true; - this.rbStartEndTime.Location = new System.Drawing.Point(3, 1); - this.rbStartEndTime.Name = "rbStartEndTime"; - this.rbStartEndTime.Size = new System.Drawing.Size(134, 21); - this.rbStartEndTime.TabIndex = 464; - this.rbStartEndTime.TabStop = true; - this.rbStartEndTime.Text = "按开始结束时间设置"; - this.rbStartEndTime.UseVisualStyleBackColor = true; - this.rbStartEndTime.CheckedChanged += new System.EventHandler(this.rbStartEndTime_CheckedChanged); - // - // rbTimePeriod - // - this.rbTimePeriod.AutoSize = true; - this.rbTimePeriod.Location = new System.Drawing.Point(140, 1); - this.rbTimePeriod.Name = "rbTimePeriod"; - this.rbTimePeriod.Size = new System.Drawing.Size(98, 21); - this.rbTimePeriod.TabIndex = 465; - this.rbTimePeriod.Text = "按时间段选择"; - this.rbTimePeriod.UseVisualStyleBackColor = true; - // - // lblTime - // - this.lblTime.AutoSize = true; - this.lblTime.Location = new System.Drawing.Point(45, 17); - this.lblTime.Name = "lblTime"; - this.lblTime.Size = new System.Drawing.Size(56, 17); - this.lblTime.TabIndex = 507; - this.lblTime.Text = "活动时间"; - this.lblTime.Click += new System.EventHandler(this.lblTime_Click); - this.lblTime.DoubleClick += new System.EventHandler(this.lblTime_DoubleClick); - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(260, 41); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(13, 17); - this.label1.TabIndex = 506; - this.label1.Text = "-"; - // - // 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.btnRefreshShop); - this.ucGroupBoxEx1.Location = new System.Drawing.Point(2, 2); - this.ucGroupBoxEx1.Name = "ucGroupBoxEx1"; - this.ucGroupBoxEx1.Size = new System.Drawing.Size(144, 160); - this.ucGroupBoxEx1.TabIndex = 399; - this.ucGroupBoxEx1.TabStop = false; - this.ucGroupBoxEx1.Text = "基础"; - // - // btnRefreshShop - // - this.btnRefreshShop.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRefreshShop.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnRefreshShop.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnRefreshShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnRefreshShop.ForeColor = System.Drawing.Color.White; - this.btnRefreshShop.Location = new System.Drawing.Point(16, 30); - this.btnRefreshShop.Margin = new System.Windows.Forms.Padding(2); - this.btnRefreshShop.Name = "btnRefreshShop"; - this.btnRefreshShop.Size = new System.Drawing.Size(112, 26); - this.btnRefreshShop.TabIndex = 375; - this.btnRefreshShop.Text = "刷新店铺状态"; - this.btnRefreshShop.UseVisualStyleBackColor = false; - this.btnRefreshShop.Click += new System.EventHandler(this.btnRefreshShop_Click); - // - // SeckillingAndLimitedSalesForm - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1350, 561); - this.Controls.Add(this.splitContainer1); - this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Name = "SeckillingAndLimitedSalesForm"; - this.Text = "LimitSaleForm"; - this.Load += new System.EventHandler(this.SeckillingAndLimitedSalesForm_Load); - this.VisibleChanged += new System.EventHandler(this.SeckillingAndLimitedSalesForm_VisibleChanged); - 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.dgvShop)).EndInit(); - this.panelEx1.ResumeLayout(false); - this.ucTabControl1.ResumeLayout(false); - this.tabPageCheckResult.ResumeLayout(false); - this.tabPageCheckResult.PerformLayout(); - this.splitContainer4.Panel1.ResumeLayout(false); - this.splitContainer4.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).EndInit(); - this.splitContainer4.ResumeLayout(false); - 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(); - ((System.ComponentModel.ISupportInitialize)(this.nudStockValue)).EndInit(); - this.flpPrice.ResumeLayout(false); - this.flpPrice.PerformLayout(); - this.pnlSkuPriceMin.ResumeLayout(false); - this.pnlSkuPriceMin.PerformLayout(); - this.panel9.ResumeLayout(false); - this.panel9.PerformLayout(); - this.panel7.ResumeLayout(false); - this.panel7.PerformLayout(); - this.pnlPreheat.ResumeLayout(false); - this.pnlPreheat.PerformLayout(); - this.pnlDiscount.ResumeLayout(false); - this.pnlDiscount.PerformLayout(); - this.panel8.ResumeLayout(false); - this.panel3.ResumeLayout(false); - this.panel3.PerformLayout(); - this.panel2.ResumeLayout(false); - this.panel2.PerformLayout(); - this.panel1.ResumeLayout(false); - this.panel1.PerformLayout(); - this.ucGroupBoxEx1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private DevComponents.DotNetBar.PanelEx btnGetProduct; - private System.Windows.Forms.CheckBox chkSkipHasSale; - private System.Windows.Forms.TabPage tabPageCheckResult; - private UserComponent.UcGroupBoxEx ucGroupBoxEx1; - private UserControls.ButtonEx btnRefreshShop; - private System.Windows.Forms.SplitContainer splitContainer3; - private System.Windows.Forms.SplitContainer splitContainer2; - private UserComponent.DataGridViewEx dgvShop; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopId; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopName; - private System.Windows.Forms.DataGridViewTextBoxColumn colAuthStatus; - private System.Windows.Forms.DataGridViewTextBoxColumn colLoginStatus; - private System.Windows.Forms.DataGridViewCheckBoxColumn colCanUse; - private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; - private DevComponents.DotNetBar.PanelEx panelEx1; - private UserComponent.UcTabControl ucTabControl1; - private System.Windows.Forms.TabPage tabPageViolateFileList; - private System.Windows.Forms.SplitContainer splitContainer4; - private UserControls.StatusBarUserControl statusBar; - private DevComponents.DotNetBar.PanelEx btnClear; - private System.Windows.Forms.Label lblProductName; - private UserComponent.UcGroupBoxEx ucGroupBoxEx3; - private System.Windows.Forms.TextBox txtProductName; - private System.Windows.Forms.RadioButton rbTimePeriod; - private System.Windows.Forms.RadioButton rbStartEndTime; - private DevComponents.DotNetBar.PanelEx btnStopGetProduct; - private System.Windows.Forms.SplitContainer splitContainer1; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.DateTimePicker dtpEndTime; - private System.Windows.Forms.DateTimePicker dtpStartTime; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Label lblTime; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.RadioButton rbSoldOut; - private System.Windows.Forms.RadioButton rbNormalPrice; - private DevComponents.DotNetBar.Controls.ComboBoxEx cmbCancelTime; - private DevComponents.Editors.ComboItem comboItem1; - private DevComponents.Editors.ComboItem comboItem2; - private DevComponents.Editors.ComboItem comboItem3; - private DevComponents.Editors.ComboItem comboItem4; - private DevComponents.Editors.ComboItem comboItem5; - private DevComponents.Editors.ComboItem comboItem6; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.RadioButton rbPreheat; - private System.Windows.Forms.RadioButton rbNotPreheat; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Panel pnlDiscount; - private System.Windows.Forms.RadioButton rbBuyoutPrice; - private System.Windows.Forms.RadioButton rbReducePrice; - private System.Windows.Forms.RadioButton rbDiscount; - private System.Windows.Forms.Label lblDiscount; - private DevComponents.DotNetBar.Controls.ComboBoxEx cmbDays; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; - private DevComponents.DotNetBar.Controls.ComboBoxEx cmbHours; - private System.Windows.Forms.Panel pnlPreheat; - private DevComponents.DotNetBar.Controls.ComboBoxEx cmbLimit; - private System.Windows.Forms.Label lblLimit; - private System.Windows.Forms.Label lblStock; - private DevComponents.DotNetBar.PanelEx btnSubAct; - private DevComponents.DotNetBar.PanelEx btnManageAct; - private System.Windows.Forms.Panel panel7; - private DevComponents.DotNetBar.Controls.ComboBoxEx cmbActCont; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label8; - private DevComponents.Editors.ComboItem comboItem7; - private DevComponents.Editors.ComboItem comboItem8; - private DevComponents.Editors.ComboItem comboItem9; - private DevComponents.Editors.ComboItem comboItem10; - private DevComponents.Editors.ComboItem comboItem11; - private DevComponents.Editors.ComboItem comboItem12; - private DevComponents.Editors.ComboItem comboItem13; - private DevComponents.Editors.ComboItem comboItem14; - private DevComponents.Editors.ComboItem comboItem15; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Panel panel8; - private System.Windows.Forms.CheckBox chkSetName; - private System.Windows.Forms.Panel panel9; - private System.Windows.Forms.Label label13; - private DevComponents.DotNetBar.Controls.ComboBoxEx cmbSetPro; - private System.Windows.Forms.Panel pnlSkuPriceMin; - private System.Windows.Forms.Label lblSKUPriceMin1; - private System.Windows.Forms.TextBox txtSKUPriceMin; - private System.Windows.Forms.Label lblSKUPriceCommon1; - private System.Windows.Forms.Label lblSKUPriceMin3; - private System.Windows.Forms.Label lblSKUPriceMin2; - private System.Windows.Forms.Label lblSKUPriceCommon3; - private System.Windows.Forms.Label lblSKUPriceCommon2; - private System.Windows.Forms.TextBox txtSKUPriceCommon; - private System.Windows.Forms.FlowLayoutPanel flpPrice; - private DevComponents.DotNetBar.PanelEx btnSetName; - private System.Windows.Forms.Label label2; - private DevComponents.DotNetBar.Controls.TextBoxX txtContainsId; - private System.Windows.Forms.NumericUpDown nudStockValue; - private System.Windows.Forms.Label lblPercentSign; - private DevComponents.DotNetBar.Controls.ComboBoxEx cmbStockType; - private DevComponents.Editors.ComboItem 全部库存; - private DevComponents.Editors.ComboItem 百分比库存; - private DevComponents.Editors.ComboItem 统一库存; - private System.Windows.Forms.CheckBox chkSetSkuOption; - private DevComponents.DotNetBar.Controls.ComboBoxEx cmbSkuOptionType; - private DevComponents.Editors.ComboItem 第一个; - private DevComponents.Editors.ComboItem 最后一个; - private DevComponents.Editors.ComboItem 最便宜; - private DevComponents.Editors.ComboItem 最贵; - private DevComponents.DotNetBar.PanelEx btnCancelGet; - private DevComponents.DotNetBar.PanelEx btnMdyAct; - private DevComponents.DotNetBar.PanelEx btnStopMdyAct; - private DevComponents.Editors.ComboItem 不设置最便宜; - private DevComponents.Editors.ComboItem 不设置最贵; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/SeckillingAndLimitedSalesForm.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/SeckillingAndLimitedSalesForm.cs deleted file mode 100644 index 387b1ea..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/SeckillingAndLimitedSalesForm.cs +++ /dev/null @@ -1,1546 +0,0 @@ -using AllBase; -using AllBase.Helper; -using AllBase.Model.Result; -using CefSharp.WinForms; -using TemuKJD.Extension; -using TemuKJD.Helper; -using TemuKJD.KJDForms.BaseForms; -using TemuKJD.KJDForms.ShopForms; -using NaiBa.CefHelper; -using NaiBa.CefHelper.Handler; -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.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace TemuKJD.KJDForms.SalesCenterForms -{ - public partial class SeckillingAndLimitedSalesForm : BaseForm - { - public static List CustomActivityNames { get; set; } = new List(); - public CancellationTokenSource cancellationTokenSource { get; set; } = null; - public CancellationTokenSource addActiveCancellationTokenSource { get; set; } = null; - public ChromiumWebBrowser webBrowser { get; set; } = null; - - private CheckBox chkSelectAll = null; - private List customActivityNamesTemp = null; - private List lstShopId = new List(); - private string shop_stype = "2"; // 1一口价 2直降 3打折 - private string campaign_start_time; - private string campaign_end_time; - // 每个活动商品数量 - int eachActivityProductNum = 1; - // 每人限购 - string userLimit = "1"; - // 活动时间类型 // 按开始结束时间 或 按时间段 - string timeSetType = "1"; - // 活动库存售完后如何操作 - string soldOutType = "1"; - // 开始时间 - DateTime startTime = new DateTime(); - // 结束时间 - DateTime endTime = new DateTime(); - // (按时间段类型活动的)活动持续时间 - int actDuration = 0; - // 预热提前天 - string preDayStr = ""; - // 预热提前小时 - string pteHourStr = ""; - // 取消订单时间 - string cancelTime = ""; - // 是否预热 - bool isPreheat = false; - // 只设置一个或设设置指定sku - bool isSetSkuOption = false; - // 设置一个sku的类型(第一个,最后一个,价格最高,最低) - string skuOptionType = ""; - // 批量设置自定义名称 - bool isUseCustomActivityNames = false; - // 库存类型 - string stockType = ""; - // 库存数量 - int stockValue = 1; - // 最低折扣 - decimal maxDiscount = 0.95M; - // 最少降价金额 - decimal minReducePrice = 1M; - // 普通sku折扣/降价 - string strPrice = string.Empty; - // 最低sku折扣/降价 - string strPriceMin = string.Empty; - /// - /// 普通sku换算后用于设置的折扣/降价 - /// - string strSetPrice = string.Empty; - /// - /// 最低sku换算后用于设置的折扣/降价 - /// - string strSetPriceMin = string.Empty; - - /// - /// 搜索指定商品列表 - /// - public List LstSearthProductId { get; set; } = new List(); - - public SeckillingAndLimitedSalesForm() - { - InitializeComponent(); - } - - private void SeckillingAndLimitedSalesForm_Load(object sender, EventArgs e) - { - this.ucTabControl1.TabPages.Clear(); - - CustomActivityNames = NaiBa.Util.Helper.ConfigHelper.LoadConfig>("limited_sales_custom_names"); - if (CustomActivityNames == null && FileBase.Exists("SetActiveNames.txt")) - { - var namesStr = FileBase.ReadAllText("SetActiveNames.txt"); - CustomActivityNames = namesStr.Split(new string[] { "\r", "\n", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); - } - if (CustomActivityNames == null) - { - CustomActivityNames = new List(); - } - - chkSelectAll = dgvShop.Columns["colSelect"].AddHeaderCheckBox(HorizontalAlignment.Center, 0, 0, null, null, false); - dgvShop.Columns["colSelect"].HeaderText = ""; - chkSelectAll.Width = chkSelectAll.Height = 13; - chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged; - - dtpStartTime.Value = DateTime.Now.Date; - dtpEndTime.Value = DateTime.Now.Date.AddDays(1).AddSeconds(-1); - - if (cmbCancelTime.Items.Count > 1) - cmbCancelTime.SelectedIndex = 1; - - for (int i = 0; i <= 10; i++) - { - cmbDays.Items.Add(i + "天"); - } - cmbDays.SelectedIndex = 0; - - cmbHours.Items.Add("0.25小时"); - cmbHours.Items.Add("0.5小时"); - cmbHours.Items.Add("1小时"); - cmbHours.Items.Add("1.5小时"); - cmbHours.Items.Add("2小时"); - cmbHours.Items.Add("2.5小时"); - cmbHours.Items.Add("3小时"); - cmbHours.Items.Add("3.5小时"); - for (int i = 4; i <= 12; i++) - { - cmbHours.Items.Add(i + "小时"); - } - cmbHours.SelectedIndex = 0; - //设置限购数 - for (int x = 1; x <= 20; x++) - { - cmbLimit.Items.Add(x); - } - cmbLimit.SelectedIndex = 0; - //设置一个活动多少产品 - for (int a = 1; a <= 20; a++) - { - cmbSetPro.Items.Add(a); - } - cmbSetPro.SelectedIndex = 0; - - nudStockValue.Text = "1"; //参与活动库存 - txtSKUPriceMin.Text = "1"; //设置打折数 - txtSKUPriceCommon.Text = "1"; - cmbActCont.SelectedIndex = 3; //按时间段选择默认30分钟 - this.cmbStockType.SelectedIndex = 1; - this.cmbSkuOptionType.SelectedIndex = 0; - - rbNotPreheat_CheckedChanged(null, null); - } - - private void SeckillingAndLimitedSalesForm_VisibleChanged(object sender, EventArgs e) - { - if (Visible == true) - RefreshShop(); - } - - private void chkSelectAll_CheckedChanged(object sender, EventArgs e) - { - if (!chkSelectAll.Checked) - { - lstShopId.Clear(); - foreach (DataGridViewRow row in dgvShop.Rows) - { - row.Cells["colSelect"].Value = false; - } - } - else - { - lstShopId.Clear(); - var list = GlobalConfig.ShopLoginList.Where(s => s.ApiAuthStatus == "授权成功" && s.LoginStatus == "登录成功").Select(ss => ss.ShopId); - lstShopId.AddRange(list); - foreach (DataGridViewRow row in dgvShop.Rows) - { - if (list.Any(l => l == row.Cells["colShopId"]?.Value?.ToString())) - row.Cells["colSelect"].Value = true; - } - } - } - - private void rbNotPreheat_CheckedChanged(object sender, EventArgs e) - { - if (!rbNotPreheat.Checked) - { - pnlPreheat.Visible = true; - pnlDiscount.Location = new Point(pnlDiscount.Location.X, pnlPreheat.Location.Y + pnlPreheat.Height + 5); - lblDiscount.Location = new Point(lblDiscount.Location.X, pnlPreheat.Location.Y + pnlPreheat.Height + 8); - flpPrice.Location = new Point(flpPrice.Location.X, pnlDiscount.Location.Y + pnlPreheat.Height); - } - else - { - pnlPreheat.Visible = false; - pnlDiscount.Location = new Point(pnlDiscount.Location.X, pnlPreheat.Location.Y + 5); - lblDiscount.Location = new Point(lblDiscount.Location.X, pnlPreheat.Location.Y + 8); - flpPrice.Location = new Point(flpPrice.Location.X, pnlDiscount.Location.Y + pnlDiscount.Height); - } - } - private void rbStartEndTime_CheckedChanged(object sender, EventArgs e) - { - if (rbStartEndTime.Checked) - { - dtpStartTime.Visible = true; - label1.Visible = true; - dtpEndTime.Visible = true; - this.panel7.Visible = false; - } - else - { - dtpStartTime.Visible = false; - label1.Visible = false; - dtpEndTime.Visible = false; - this.panel7.Visible = true; - } - } - - private void btnRefreshShop_Click(object sender, EventArgs e) - { - RefreshShop(); - } - - private void RefreshShop() - { - // 更新选中的上货店铺Id - lstShopId = lstShopId.Where(id => GlobalConfig.ShopLoginList.Any(s => s.ShopId == id && s.LoginStatus == "已授权")).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) - { - BindShop(shopEntity); - } - } - - private void BindShop(ShopLoginInfo shopEntity) - { - if (shopEntity == null) - return; - - bool canUse = shopEntity.ApiAuthStatus == "授权成功" && shopEntity.LoginStatus == "登录成功"; - var row = dgvShop.Rows.Cast().FirstOrDefault(p => p.Cells.GetCellValueFromColumnName("colShopId").ParseToString() == shopEntity.ShopId); - if (row == null) - { - this.dgvShop.Rows.Add( - lstShopId.Contains(shopEntity.ShopId) && canUse, - shopEntity.ShopId, - shopEntity.ShopAccount, - shopEntity.ApiAuthStatus, - shopEntity.LoginStatus, - canUse, - string.Empty - ); - } - else - { - row.Cells["colSelect"].Value = lstShopId.Contains(shopEntity.ShopId) && canUse; - row.Cells["colShopName"].Value = shopEntity.ShopAccount; - row.Cells["colAuthStatus"].Value = shopEntity.ApiAuthStatus; - row.Cells["colLoginStatus"].Value = shopEntity.LoginStatus; - row.Cells["colCanUse"].Value = canUse; - } - } - - private void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - string headerText = dgvShop.Columns[e.ColumnIndex].HeaderText; - string columnName = dgvShop.Columns[e.ColumnIndex].Name; - long shopId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToLong(); - string shopName = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ToString(); - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId.ToString()); - var row = dgvShop.Rows[e.RowIndex]; - switch (columnName) - { - case "colSelect": - if (row.Cells["colCanUse"].Value.ParseToBool()) - { - row.Cells["colSelect"].Value = !row.Cells["colSelect"].Value.ParseToBool(); - if (dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value.ParseToBool()) - { - if (lstShopId.Any(p => p == shopId.ToString())) - lstShopId.RemoveAll(p => p == shopId.ToString()); - lstShopId.Add(shopId.ToString()); - } - else - lstShopId.RemoveAll(p => p == shopId.ToString()); - if (dgvShop.Rows.Cast().All(r => r.Cells["colSelect"].Value.ParseToBool())) - chkSelectAll.Checked = true; - else - chkSelectAll.Checked = false; - } - else - { - BaseMsgForm.ShowInfo("店铺未授权或未登录!"); - } - break; - } - } - - private void btnGetProduct_Click(object sender, EventArgs e) - { - if (lstShopId.Count == 0) - { - BaseMsgForm.ShowInfo("请选择店铺!"); - return; - } - - LstSearthProductId = txtContainsId.Text.Split(new string[] { "\r", "\n", "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); - campaign_start_time = dtpStartTime.Value.ToString("yyyy-MM-dd+HH:mm:ss"); - campaign_end_time = dtpEndTime.Value.ToString("yyyy-MM-dd+HH:mm:ss"); - if (rbTimePeriod.Checked) - { - var time = DateTime.Now; - var actDuration = cmbActCont.Text.Replace("小时", "").Replace("分钟", "").ParseToInt() * (cmbActCont.Text.Contains("小时") ? 60 : 1); - campaign_start_time = time.ToString("yyyy-MM-dd+HH:mm:ss"); - campaign_end_time = time.AddMinutes(actDuration).ToString("yyyy-MM-dd+HH:mm:ss"); - } - - btnGetProduct.Enabled = false; - - cancellationTokenSource = new CancellationTokenSource(); - Task.Run(() => - { - var lstShopIdTemp = new List(); - lstShopIdTemp.AddRange(lstShopId); - - foreach (var shopId in lstShopIdTemp) - { - if (cancellationTokenSource.IsCancellationRequested) - break; - - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId); - if (shop == null) - continue; - - if (ShopListForm.Instance == null) - ShopListForm.Instance = new ShopListForm(); - ShopListForm.Instance.CheckShopLogin(new string[] { shop.ShopAccount }, false); - if (shop.LoginStatus != "登录成功") - { - Invoke(new Action(() => - { - var row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) - { - row.Cells["colLoginStatus"].Value = "未登录"; - row.Cells["colCanUse"].Value = false; - } - })); - continue; - } - - SeckillingAndLimitedSalesShopForm salesShopForm = null; - Invoke(new Action(() => - { - var tab = this.ucTabControl1.TabPages.Cast().FirstOrDefault(t => t.Text == shop.ShopAccount && t.Name == "tab" + shop.ShopId); - if (tab == null) - { - tab = new TabPage(); - tab.Name = "tab" + shop.ShopId; - tab.Text = shop.ShopAccount; - this.ucTabControl1.TabPages.Add(tab); - - var SeckillingAndLimitedSalesShopForm = new SeckillingAndLimitedSalesShopForm(shop); - SeckillingAndLimitedSalesShopForm.SeckillingAndLimitedSalesForm = this; - SeckillingAndLimitedSalesShopForm.TopLevel = false; - SeckillingAndLimitedSalesShopForm.Left = 0; - SeckillingAndLimitedSalesShopForm.Top = 0; - SeckillingAndLimitedSalesShopForm.FormBorderStyle = FormBorderStyle.None; - SeckillingAndLimitedSalesShopForm.AutoSize = true; - SeckillingAndLimitedSalesShopForm.Dock = DockStyle.Fill; - SeckillingAndLimitedSalesShopForm.Show(); - tab.Controls.Add(SeckillingAndLimitedSalesShopForm); - } - - if (tab.Controls.Count > 0) - { - salesShopForm = tab.Controls[0] as SeckillingAndLimitedSalesShopForm; - this.ucTabControl1.SelectedTab = tab; - } - })); - - if (salesShopForm != null) - { - salesShopForm.GetProduct(); - } - } - Invoke(new Action(() => - { - btnManageAct.Enabled = btnGetProduct.Enabled = btnSubAct.Enabled = btnMdyAct.Enabled = true; - })); - }, cancellationTokenSource.Token); - } - - public void GetProductByCef(ShopLoginInfo shop) - { - if (webBrowser == null) - { - Invoke(new Action(() => - { - webBrowser = CEFBrowser.CreateChromiumWebBrowser("about:blank", false); - webBrowser.KeyboardHandler = new KeyboardHandler(); - webBrowser.Dock = DockStyle.Fill; - Helper.CustomResourceRequestHandlerLocal resourceRequestHandler = new Helper.CustomResourceRequestHandlerLocal(); - resourceRequestHandler.ResourceLoadCompleteEvent += RequestHandler_ResourceLoadCompleteEvent; - webBrowser.RequestHandler = new CustomRequestHandler(resourceRequestHandler); - webBrowser.LifeSpanHandler = new LifeSpanHandlerLocal(PopWindowType.SelfWindow); - webBrowser.SendToBack(); - this.splitContainer1.Panel2.Controls.Add(webBrowser); - })); - } - - while (webBrowser.Tag != null) - { - Thread.Sleep(Randomx.GetId(50, 100)); - } - if (cancellationTokenSource.IsCancellationRequested) - return; - - webBrowser.Tag = shop; - - while (!webBrowser.IsBrowserInitialized || webBrowser.IsLoading) - continue; - - var cookie = shop.Cookies; - CEFBrowser.DeleteCookie(webBrowser.RequestContext.GetCookieManager(null)); - var t = CEFBrowser.SetCookieAsync("jinritemai.com", cookie, webBrowser.RequestContext.GetCookieManager(null)); - t.Wait(2000); - Thread.Sleep(500); - - var targetUrl = "https://fxg.jinritemai.com/ffa/g/list"; - webBrowser.Load(targetUrl); - - while (webBrowser.IsLoading) - { - Thread.Sleep(1000); - } - Thread.Sleep(3000); - - while (webBrowser.Tag != null) - { - Thread.Sleep(Randomx.GetId(50, 100)); - } - Thread.Sleep(3000); - } - - private void RequestHandler_ResourceLoadCompleteEvent(object sender, string url, string postData, string responseData, CefSharp.IRequest iRequest) - { - // 商品列表界面 - if (url.StartsWith("https://fxg.jinritemai.com/product/tproduct/list?page=0") && url.Contains("&pay_type=")) - { - if (webBrowser.Tag != null) - { - var listUrl = url; - var referrerUrl = iRequest.ReferrerUrl; - var result = responseData; - Dictionary headers = new Dictionary(); - foreach (var hk in iRequest.Headers.AllKeys) - { - headers[hk] = iRequest.Headers[hk]; - } - - var shop = webBrowser.Tag as ShopLoginInfo; - var tab = this.ucTabControl1.TabPages.Cast().FirstOrDefault(t => t.Text == shop.ShopAccount && t.Name == "tab" + shop.ShopId); - var salesForm = tab.Controls[0] as SeckillingAndLimitedSalesShopForm; - - Task.Run(() => - { - var cookies = CEFBrowser.GetCookie("", webBrowser.RequestContext.GetCookieManager(null)); - - if (salesForm != null) - salesForm.GetProductSim(listUrl, referrerUrl, headers, "", campaign_start_time, campaign_end_time); - - webBrowser.Tag = null; - Thread.Sleep(1000); - }); - } - } - // 活动管理界面 - else if (url.StartsWith("https://fxg.jinritemai.com/shop/promotion/listFlashWithTimeLimit?campaign_status=") && url.Contains("&shop_stype=")) - { - if (webBrowser.Tag != null) - { - var listUrl = url; - var referrerUrl = iRequest.ReferrerUrl; - var result = responseData; - Dictionary headers = new Dictionary(); - foreach (var hk in iRequest.Headers.AllKeys) - { - headers[hk] = iRequest.Headers[hk]; - } - - var shop = webBrowser.Tag as ShopLoginInfo; - var tab = this.ucTabControl1.TabPages.Cast().FirstOrDefault(t => t.Text == shop.ShopAccount + "活动管理" && t.Name == "tab" + shop.ShopId + "Active"); - var managerActiveForm = tab.Controls[0] as LimitedSalesManagerActiveForm; - - Task.Run(() => - { - var cookies = CEFBrowser.GetCookie("", webBrowser.RequestContext.GetCookieManager(null)); - if (managerActiveForm != null) - managerActiveForm.GetActiveSim(listUrl, referrerUrl, headers, result); - - webBrowser.Tag = null; - Thread.Sleep(1000); - }); - } - } - } - - private void lblTime_Click(object sender, EventArgs e) - { - if (this.webBrowser != null) - { - webBrowser.SendToBack(); - } - } - - private void lblTime_DoubleClick(object sender, EventArgs e) - { - if (this.webBrowser != null) - { - webBrowser.BringToFront(); - } - } - - private void btnSubAct_Click(object sender, EventArgs e) - { - 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; - } - - var initResult = InitParams(); - if (!initResult) - return; - - addActiveCancellationTokenSource = new CancellationTokenSource(); - btnGetProduct.Enabled = false; - btnSubAct.Enabled = false; - btnMdyAct.Enabled = false; - - Task.Run(() => - { - var lstShopIdTemp = new List(); - lstShopIdTemp.AddRange(lstShopId); - - foreach (var shopId in lstShopIdTemp) - { - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId); - if (shop == null) - continue; - - if (ucTabControl1.TabPages["tab" + shopId] != null && ucTabControl1.TabPages["tab" + shopId].Controls.Count > 0) - { - var salesForm = ucTabControl1.TabPages["tab" + shopId].Controls[0] as SeckillingAndLimitedSalesShopForm; - if (salesForm == null) - continue; - - Invoke(new Action(() => - { - salesForm.statusBar.lblTaskStatus.Text = "正在创建活动"; - })); - - List productIdList = salesForm.LstProductId; - if (productIdList.Count == 0) - { - BaseMsgForm.ShowInfo("请选择店铺 " + shop.ShopAccount + " 参加活动的商品!"); - continue; - } - else - { - var productList = salesForm.ProductList.Where(p => productIdList.Contains(p.product_id)).ToList(); - AddOrMdyActivity(shop, productList, null, salesForm); - } - Invoke(new Action(() => - { - if (addActiveCancellationTokenSource.IsCancellationRequested) - salesForm.statusBar.lblTaskStatus.Text = "活动创建中断"; - else - salesForm.statusBar.lblTaskStatus.Text = "活动创建结束"; - })); - } - } - Invoke(new Action(() => - { - btnManageAct.Enabled = btnGetProduct.Enabled = btnSubAct.Enabled = btnMdyAct.Enabled = true; - })); - }, addActiveCancellationTokenSource.Token); - } - - private void AddOrMdyActivity(ShopLoginInfo shop, List productList, ActiveInfo active, - SeckillingAndLimitedSalesShopForm salesForm = null, LimitedSalesManagerActiveForm manageForm = null) - { - string activityName = ""; - - string pIdData = @"{""product_ids"":["; - List pIdList = new List(); - int nameId = 1; - for (int i = 0; i < productList.Count; i++) - { - if (addActiveCancellationTokenSource.IsCancellationRequested) - break; - - activityName = ""; - if (active != null) - activityName = active.title; - - DouProductPromotionListInfo info = productList[i]; - string pid = info.product_id; - pIdList.Add(pid); - - if ((i + 1) % eachActivityProductNum == 0 || i == productList.Count - 1) - { - string pIdStr = "\"" + string.Join("\",\"", pIdList) + "\""; - pIdData = pIdData + pIdStr.TrimEnd(',') + "]}"; - pIdList.Clear(); - string cookies = shop.Cookies; - string result = ""; - if (salesForm != null) - result = salesForm.GetSkusByProductIds(pIdData, cookies); - else if (manageForm != null) - result = manageForm.GetSkusByProductIds(pIdData, cookies); - - if (!result.Contains("\"st\":0")) - continue; - - // 还原商品详情查询字段 - pIdData = @"{""product_ids"":["; - - // 设置活动名称 - if (string.IsNullOrEmpty(activityName)) - { - activityName = "限时限量" + nameId + "-" + DateTime.Now.ToString("MMddHHmmss"); - nameId++; - - if (isUseCustomActivityNames) - { - if (customActivityNamesTemp != null && customActivityNamesTemp.Count > 0) - { - activityName = customActivityNamesTemp[0]; - customActivityNamesTemp.RemoveAt(0); - } - else - { - Invoke(new Action(() => - { - if (salesForm != null) - salesForm.ShowVisitorMessage("活动创建失败,自定义名称数量不足!", pIdStr); - })); - break; - } - } - } - - string postData = "{\"sub_stype\":\"0\",\"shop_stype\":\"" + shop_stype + "\",\"title\":\"" + activityName + "\",\"time_set_type\":\"" + timeSetType + "\",\"promotion_goods\":["; - JObject jObj = JObject.Parse(result); - foreach (JProperty jp in jObj["data"]) - { - string errorMsg = ""; - - var id = jp.Name; - var productJson = "{\"product_id\":\"" + id + "\",\"title\":\"" + info.name + "\",\"cover\":\"" + info.img + "\",\"config_scope\":\"0\",\"promotion_skus\":["; - - JArray arr = jp.Value as JArray; - // 处理指定sku下商品的逻辑 - if (isSetSkuOption) - { - // 默认第一个 - var objs = new List() { arr.FirstOrDefault(o => o["stock"]?.ParseToInt() > 0) }; - if (skuOptionType == "最后一个") - objs = new List() { arr.LastOrDefault(o => o["stock"]?.ParseToInt() > 0) }; - if (skuOptionType == "最贵") - objs = new List() { arr.OrderBy(o => o["origin_price"]).LastOrDefault(o => o["stock"]?.ParseToInt() > 0) }; - if (skuOptionType == "最便宜") - objs = new List() { arr.OrderBy(o => o["origin_price"]).FirstOrDefault(o => o["stock"]?.ParseToInt() > 0) }; - if (skuOptionType == "不设置最便宜") - { - objs = arr.OrderBy(o => o["origin_price"]).Skip(1).ToList(); - } - if (skuOptionType == "不设置最贵") - { - objs = arr.OrderBy(o => o["origin_price"]).Take(objs.Count).ToList(); - } - - if (objs == null || objs.Count == 0) - { - errorMsg = "满足条件的商品库存为0"; - pIdStr = pIdStr.Replace(id, ""); - break; - } - - foreach (var obj in objs) - { - int totalStock = obj["stock"].ParseToInt(); - int origin_price = obj["origin_price"].ParseToInt(); - var stockNum = totalStock; - if (stockType == "百分比库存") - { - stockNum = stockValue * totalStock / 100; - } - else if (stockType == "统一库存") - { - stockNum = stockValue; - } - if (stockNum > totalStock) - { - //stockNum = totalStock; - errorMsg = "商品Sku库存不足"; - pIdStr = pIdStr.Replace(id, ""); - break; - } - if (stockNum < 1) - stockNum = 1; - - if (shop_stype == "1") - productJson = productJson + "{\"id\":\"" + obj["id"] + "\",\"camp_stock_num\":\"" + stockNum + "\",\"user_limit\":\"" + userLimit + "\",\"price\":\"" + strSetPrice + "\"},"; - else - { - if (shop_stype == "2" && strSetPrice.ParseToDecimal() / origin_price < 1 - maxDiscount) - { - errorMsg = "商品优惠力度不足" + (maxDiscount * 10).ToString() + "折"; - pIdStr = pIdStr.Replace(id, ""); - break; - } - if (shop_stype == "3" && origin_price * (1 - strSetPrice.ParseToDecimal() / 100) < 100) - { - errorMsg = "商品优惠力度不足" + minReducePrice + "元"; - pIdStr = pIdStr.Replace(id, ""); - break; - } - - productJson = productJson + "{\"id\":\"" + obj["id"] + "\",\"camp_stock_num\":\"" + stockNum + "\",\"user_limit\":\"" + userLimit + "\",\"price\":\"undefined\",\"shop_svalue\":\"" + strSetPrice + "\"},"; - } - } - } - else - { - bool isSetMin = false; - var minPrice = arr.Where(s => s["stock"].ParseToInt() > 0).Min(s => s["origin_price"]?.ParseToInt()); - if (minPrice == null) - { - errorMsg = "商品库存为0"; - pIdStr = pIdStr.Replace("\"" + id + "\"", ""); - } - foreach (JObject obj in arr) - { - int totalStock = obj["stock"].ParseToInt(); - int origin_price = obj["origin_price"].ParseToInt(); - if (totalStock > 0) - { - var stockNum = totalStock; - if (stockType == "百分比库存") - { - stockNum = stockValue * totalStock / 100; - } - else if (stockType == "统一库存") - { - stockNum = stockValue; - } - if (stockNum > totalStock) - { - //stockNum = totalStock; - errorMsg = "商品Sku库存不足"; - pIdStr = pIdStr.Replace(id, ""); - break; - } - if (stockNum < 1) - stockNum = 1; - - if (shop_stype != "1" && !isSetMin && obj["origin_price"].ParseToInt() == minPrice) - { - if (shop_stype == "2" && strSetPriceMin.ParseToDecimal() / origin_price < 1 - maxDiscount) - { - errorMsg = "商品优惠力度不足" + (maxDiscount * 10).ToString() + "折"; - pIdStr = pIdStr.Replace(id, ""); - break; - } - if (shop_stype == "3" && origin_price * (1 - strSetPriceMin.ParseToDecimal() / 100) < 100) - { - errorMsg = "商品优惠力度不足" + minReducePrice + "元"; - pIdStr = pIdStr.Replace(id, ""); - break; - } - - productJson = productJson + "{\"id\":\"" + obj["id"] + "\",\"camp_stock_num\":\"" + stockNum + "\",\"user_limit\":\"" + userLimit + "\",\"price\":\"undefined\",\"shop_svalue\":\"" + strSetPriceMin + "\"},"; - isSetMin = true; - } - else - { - - if (shop_stype == "1") - productJson = productJson + "{\"id\":\"" + obj["id"] + "\",\"camp_stock_num\":\"" + stockNum + "\",\"user_limit\":\"" + userLimit + "\",\"price\":\"" + strSetPrice + "\"},"; - else - { - if (shop_stype == "2" && strSetPrice.ParseToDecimal() / origin_price < 1 - maxDiscount) - { - errorMsg = "商品优惠力度不足" + (maxDiscount * 10).ToString() + "折"; - pIdStr = pIdStr.Replace(id, ""); - break; - } - if (shop_stype == "3" && origin_price * (1 - strSetPrice.ParseToDecimal() / 100) < 100) - { - errorMsg = "商品优惠力度不足" + minReducePrice + "元"; - pIdStr = pIdStr.Replace(id, ""); - break; - } - - productJson = productJson + "{\"id\":\"" + obj["id"] + "\",\"camp_stock_num\":\"" + stockNum + "\",\"user_limit\":\"" + userLimit + "\",\"price\":\"undefined\",\"shop_svalue\":\"" + strSetPrice + "\"},"; - } - } - } - } - } - if (errorMsg == "") - { - // 结束sku列表 - postData = postData + productJson.TrimEnd(',') + "]},"; - } - else - { - if (salesForm != null) - salesForm.ShowVisitorMessage(activityName + "活动创建失败!原因:" + errorMsg, id, true); - else if (manageForm != null) - manageForm.ShowVisitorMessage(activityName + "活动创建失败!原因:" + errorMsg, active?.campaign_id); - } - } - - if (pIdStr.Trim(',') == "") - { - Invoke(new Action(() => - { - if (salesForm != null) - salesForm.ShowVisitorMessage(activityName + "活动创建失败!原因:没有满足设置条件的商品", pIdStr); - else if (manageForm != null) - manageForm.ShowVisitorMessage(activityName + "活动创建失败!原因:没有满足设置条件的商品", active?.campaign_id); - })); - Thread.Sleep(Randomx.GetId(1500, 3500)); - } - else - { - DateTime begin_time = startTime; - DateTime end_time = endTime; - if (timeSetType != "0") - { - begin_time = DateTime.Now; - end_time = begin_time.AddMinutes(actDuration); - } - var pre_begin_time = begin_time; - if (isPreheat) - { - var day = preDayStr.Replace("天", "").ParseToInt(); - var hour = pteHourStr.Replace("小时", "").ParseToDouble(); - if (day > 0) - pre_begin_time = pre_begin_time.AddDays(-day); - if (hour > 0) - pre_begin_time = pre_begin_time.AddHours(-hour); - } - postData = postData.TrimEnd(',') + "],\"order_expire_time\":\"" + cancelTime.Replace("分钟", "").ParseToInt() * 60 + "\",\"pre_begin_time\":\"" + pre_begin_time.ToString("yyyy-MM-dd HH:mm:ss") + "\",\"begin_time\":\"" + begin_time.ToString("yyyy-MM-dd HH:mm:ss") + "\",\"end_time\":\"" + end_time.ToString("yyyy-MM-dd HH:mm:ss") + "\",\"sold_out_type\":\"" + soldOutType + "\",\"create_action_type\":\"0\"}"; - string checkPro = ""; - for (int times = 0; !checkPro.Contains("{\"st\":0,\"msg\"") && !checkPro.Contains("Gateway Timeout") && times < 3; times++) - { - if (salesForm != null) - checkPro = salesForm.checkFlashAndGoods(postData, cookies); - else if (manageForm != null) - checkPro = manageForm.checkFlashAndGoods(postData, cookies); - } - if (checkPro == "" || checkPro.Contains("Gateway Timeout") || checkPro.Contains("{\"st\":0,\"msg\":\"\",\"code\":0,")) - { - string createPro = ""; - if (salesForm != null) - { - createPro = salesForm.createFlashAndGoods(postData, cookies); - for (int times = 0; times < 2 && (!createPro.Contains("{\"st\":0,\"msg\"") || createPro.Contains("系统内部错误")); times++) - { - checkPro = salesForm.checkFlashAndGoods(postData, cookies); - if (checkPro.Contains("已参加同时段")) - { - createPro = "{\"st\":0,\"msg\":\"\",\"code\":0,"; - break; - } - else - createPro = salesForm.createFlashAndGoods(postData, cookies); - } - // 如果商品sku过多导致失败则分开建相同名称的活动 - if (createPro.Contains("Gateway Timeout") || createPro.Contains("系统内部错误")) - { - JObject parentObj = JObject.Parse(postData); - var goodsArr = parentObj["promotion_goods"]; - - JArray goodsJArr = new JArray(); - foreach (JObject prodObj in goodsArr) - { - goodsJArr.Add(prodObj); - if (goodsJArr.Count() >= 10 || goodsArr.LastOrDefault() == prodObj) - { - parentObj["promotion_goods"] = goodsJArr; - goodsJArr = new JArray(); - - createPro = ""; - for (int num = 0; num < 3 && !createPro.Contains("{\"st\":0,\"msg\":\"\",\"code\":0,"); num++) - { - checkPro = salesForm.checkFlashAndGoods(JsonHelper.SerializeObject(parentObj), cookies); - if (checkPro.Contains("已参加同时段")) - { - createPro = "{\"st\":0,\"msg\":\"\",\"code\":0,"; - break; - } - createPro = salesForm.createFlashAndGoods(JsonHelper.SerializeObject(parentObj), cookies); - } - if (!createPro.Contains("{\"st\":0,\"msg\":\"\",\"code\":0,")) - break; - } - } - } - } - else if (manageForm != null) - { - createPro = manageForm.createFlashAndGoods(postData, cookies); - if (!createPro.Contains("{\"st\":0,\"msg\"")) - createPro = manageForm.createFlashAndGoods(postData, cookies); - if (!createPro.Contains("{\"st\":0,\"msg\"")) - createPro = manageForm.createFlashAndGoods(postData, cookies); - } - - if (createPro.Contains("{\"st\":0,\"msg\":\"\",\"code\":0,")) - { - Invoke(new Action(() => - { - if (salesForm != null) - salesForm.ShowVisitorMessage("活动 " + activityName + " 创建成功!", pIdStr); - else if (manageForm != null) - manageForm.ShowVisitorMessage("活动 " + activityName + " 修改成功!", active?.campaign_id); - })); - } - else - { - if (createPro.Contains("Gateway Timeout")) - createPro = "{\"msg\":\"接口调用超时\"}"; - Invoke(new Action(() => - { - if (salesForm != null) - salesForm.ShowVisitorMessage(activityName + "活动创建失败!原因:" + BaseRegex.GetStringJson(ref createPro, "msg"), pIdStr); - else if (manageForm != null) - manageForm.ShowVisitorMessage(activityName + "活动创建失败!原因:" + BaseRegex.GetStringJson(ref createPro, "msg"), active?.campaign_id); - })); - } - } - else - { - Invoke(new Action(() => - { - if (salesForm != null) - salesForm.ShowVisitorMessage(activityName + "活动创建失败!原因:" + BaseRegex.GetStringJson(ref checkPro, "msg"), pIdStr); - else if (manageForm != null) - manageForm.ShowVisitorMessage(activityName + "活动创建失败!原因:" + BaseRegex.GetStringJson(ref checkPro, "msg"), active?.campaign_id); - })); - } - Thread.Sleep(Randomx.GetId(1500, 3500)); - } - } - - //var tab1 = this.ucTabControl1.TabPages.Cast().FirstOrDefault(t => t.Text == shop.ShopName + "活动管理" && t.Name == "tab" + shop.ShopId + "Active"); - //if (tab1 != null) - //{ - // LimitedSalesManagerActiveForm actForm = tab1.Controls[0] as LimitedSalesManagerActiveForm; - // actForm.activeList.Clear(); - //} - } - } - - private bool InitParams(bool isModify = false) - { - customActivityNamesTemp = new List(); - //活动名称 - if (chkSetName.Checked && !isModify) - { - customActivityNamesTemp.AddRange(CustomActivityNames); - - if (customActivityNamesTemp.Count == 0) - { - BaseMsgForm.ShowInfo("请设置自定义活动名称!"); - return false; - } - } - // 每个活动商品数量 - eachActivityProductNum = cmbSetPro.Text.ParseToInt(); - if (isModify) - eachActivityProductNum = 20; - // 每人限购 - userLimit = cmbLimit.Text; - // 活动时间类型 - timeSetType = rbTimePeriod.Checked ? "1" : "0"; // 按开始结束时间 或 按时间段 - // 活动库存售完后如何操作 - soldOutType = rbSoldOut.Checked ? "1" : "0"; - // 开始时间 - startTime = dtpStartTime.Value; - // 结束时间 - endTime = dtpEndTime.Value; - // (按时间段类型活动的)活动持续时间 - actDuration = cmbActCont.Text.Replace("小时", "").Replace("分钟", "").ParseToInt() * (cmbActCont.Text.Contains("小时") ? 60 : 1); - // 预热提前天 - preDayStr = cmbDays.Text.Trim(); - // 预热提前小时 - pteHourStr = cmbHours.Text.Trim(); - // 取消订单时间 - cancelTime = cmbCancelTime.Text.Trim(); - // 是否预热 - isPreheat = rbPreheat.Checked; - // 只设置一个sku - isSetSkuOption = chkSetSkuOption.Checked; - // 设置一个sku的类型(第一个,最后一个,价格最高,最低) - skuOptionType = this.cmbSkuOptionType.Text; - // 批量设置自定义名称 - isUseCustomActivityNames = chkSetName.Checked; - // 库存类型 - stockType = this.cmbStockType.Text; - // 库存数量 - stockValue = nudStockValue.Text.ParseToInt(); - // 最低折扣 - maxDiscount = 0.95M; - // 最少降价金额 - minReducePrice = 1M; - // 普通sku折扣/降价 - strPrice = string.Empty; - // 最低sku折扣/降价 - strPriceMin = string.Empty; - if (rbBuyoutPrice.Checked || isSetSkuOption) - { - strPrice = txtSKUPriceCommon.Text.Trim(); - if (strPrice == string.Empty || !BaseRegex.IsNumber(strPrice)) - { - BaseMsgForm.ShowError("请认真填写一口价的优惠数值!"); - txtSKUPriceCommon.Focus(); - return false; - } - //判断打折的数字是否正确 - if (rbDiscount.Checked) - { - if (strPrice.Length > 3 || strPrice.EndsWith(".") || strPrice.ParseToDecimal() > 9.5M || strPrice.ParseToDecimal() < 0.1M) - { - BaseMsgForm.ShowError("参加活动的商品打折数必须在0.1-9.5之间,且小数点后只能有一位!"); - return false; - } - } - else if (rbReducePrice.Checked) - { - if (strPrice.ParseToDecimal() < 1M) - { - BaseMsgForm.ShowError("参加活动的商品优惠金额最少1元!"); - return false; - } - } - } - else - { - strPriceMin = txtSKUPriceMin.Text.Trim(); - strPrice = txtSKUPriceCommon.Text.Trim(); - if (strPrice == string.Empty || !BaseRegex.IsNumber(strPrice) || strPriceMin == string.Empty || !BaseRegex.IsNumber(strPriceMin)) - { - BaseMsgForm.ShowInfo("请认真填写活动的优惠数值!"); - return false; - } - //判断打折的数字是否正确 - if (rbDiscount.Checked) - { - if (strPrice.Length > 3 || strPrice.EndsWith(".") || strPriceMin.Length > 3 || strPriceMin.EndsWith(".") - || strPrice.ParseToDecimal() > 9.5M || strPrice.ParseToDecimal() < 0.1M || strPriceMin.ParseToDecimal() > 9.5M || strPriceMin.ParseToDecimal() < 0.1M) - { - BaseMsgForm.ShowInfo("参加活动的商品打折数必须在0-10之间,且小数点后只能有一位!"); - return false; - } - } - else if (rbReducePrice.Checked) - { - if (strPrice.ParseToDecimal() < 1M) - { - BaseMsgForm.ShowError("参加活动的商品优惠金额最少1元!"); - return false; - } - } - } - - if (isSetSkuOption || shop_stype == "1") - { - if (shop_stype == "3") - strSetPrice = (strPrice.ParseToDouble() * 10).ToString(); //打折精确到小数点后一位(0-10之间) - else - strSetPrice = (strPrice.ParseToDouble() * 100).ToString(); //一口价、直降精确到小数点后两位(0-原价之间) - } - else - { - if (shop_stype == "3") - { - strSetPrice = (strPrice.ParseToDouble() * 10).ToString(); //打折精确到小数点后一位(0-10之间) - strSetPriceMin = (strPriceMin.ParseToDouble() * 10).ToString(); - } - else if (shop_stype == "2") - { - strSetPrice = (strPrice.ParseToDouble() * 100).ToString(); //直降精确到小数点后两位(0-原价之间) - strSetPriceMin = (strPriceMin.ParseToDouble() * 100).ToString(); - } - } - - return true; - } - - private void btnClear_Click(object sender, EventArgs e) - { - if (BaseMsgForm.ShowConfirm("确定要清空结果吗?清空后需要重新获取!").DialogResult == DialogResult.OK) - { - foreach (TabPage tp in ucTabControl1.TabPages) - { - if (tp.Controls.Count > 0) - { - if (tp.Text.Contains("活动管理")) - { - var managerActiveForm = tp.Controls[0] as LimitedSalesManagerActiveForm; - if (managerActiveForm != null) - managerActiveForm.ClearData(); - } - else - { - var salesForm = tp.Controls[0] as SeckillingAndLimitedSalesShopForm; - if (salesForm != null) - salesForm.ClearData(); - } - } - } - } - } - - private void btnStopGetProduct_Click(object sender, EventArgs e) - { - if (cancellationTokenSource != null) - cancellationTokenSource.Cancel(); - if (addActiveCancellationTokenSource != null) - addActiveCancellationTokenSource.Cancel(); - - webBrowser.Tag = null; - Task.Run(() => - { - Thread.Sleep(10000); - if (cancellationTokenSource == null || cancellationTokenSource.IsCancellationRequested) - { - Invoke(new Action(() => - { - btnGetProduct.Enabled = btnSubAct.Enabled = btnMdyAct.Enabled = btnManageAct.Enabled = true; - })); - } - }); - } - - private void rbDiscount_Click(object sender, EventArgs e) - { - if (shop_stype == "3" && rbDiscount.Checked) - return; - - if (chkSetSkuOption.Checked) - { - pnlSkuPriceMin.Visible = false; - } - else - { - pnlSkuPriceMin.Visible = true; - } - this.lblSKUPriceMin2.Text = "打"; - this.lblSKUPriceMin3.Text = "折"; - this.lblSKUPriceCommon2.Text = "打"; - this.lblSKUPriceCommon3.Text = "折"; - this.txtSKUPriceMin.Text = "9"; - this.txtSKUPriceCommon.Text = "9.5"; - shop_stype = "3"; - this.rbDiscount.Checked = true; - } - - private void rbReducePrice_Click(object sender, EventArgs e) - { - if (shop_stype == "2" && rbReducePrice.Checked) - return; - - if (chkSetSkuOption.Checked) - { - pnlSkuPriceMin.Visible = false; - } - else - { - pnlSkuPriceMin.Visible = true; - } - this.lblSKUPriceMin2.Text = "减"; - this.lblSKUPriceMin3.Text = "元"; - this.lblSKUPriceCommon2.Text = "减"; - this.lblSKUPriceCommon3.Text = "元"; - this.txtSKUPriceMin.Text = "1"; - this.txtSKUPriceCommon.Text = "1"; - shop_stype = "2"; - this.rbReducePrice.Checked = true; - } - - private void rbBuyoutPrice_Click(object sender, EventArgs e) - { - if (shop_stype == "1" && rbBuyoutPrice.Checked) - return; - - if (BaseMsgForm.ShowConfirm("确定所有商品的价格都按照统一的价格来设置?建议谨慎操作!").DialogResult == DialogResult.OK) - { - this.txtSKUPriceCommon.Text = "100"; - this.lblSKUPriceCommon2.Text = ""; - this.lblSKUPriceCommon3.Text = "元"; - shop_stype = "1"; - pnlSkuPriceMin.Visible = false; - this.rbBuyoutPrice.Checked = true; - } - else - { - if (shop_stype == "2") - rbReducePrice_Click(sender, e); - else - rbDiscount_Click(sender, e); - } - } - - private void btnManageAct_Click(object sender, EventArgs e) - { - if (lstShopId.Count == 0) - { - BaseMsgForm.ShowInfo("请选择店铺!"); - return; - } - btnGetProduct.Enabled = false; - cancellationTokenSource = new CancellationTokenSource(); - Task.Run(() => - { - foreach (var shopId in lstShopId) - { - if (cancellationTokenSource.IsCancellationRequested) - break; - - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId); - if (shop == null) - continue; - - if (ShopListForm.Instance == null) - ShopListForm.Instance = new ShopListForm(); - ShopListForm.Instance.CheckShopLogin(new string[] { shop.ShopAccount }, false); - if (shop.LoginStatus != "登录成功") - { - Invoke(new Action(() => - { - var row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) - { - row.Cells["colLoginStatus"].Value = "未登录"; - row.Cells["colCanUse"].Value = false; - } - })); - continue; - } - - LimitedSalesManagerActiveForm managerActiveForm = null; - Invoke(new Action(() => - { - var tab = this.ucTabControl1.TabPages.Cast().FirstOrDefault(t => t.Text == shop.ShopAccount + "活动管理" && t.Name == "tab" + shop.ShopId + "Active"); - if (tab == null) - { - tab = new TabPage(); - tab.Name = "tab" + shop.ShopId + "Active"; - tab.Text = shop.ShopAccount + "活动管理"; - this.ucTabControl1.TabPages.Add(tab); - - var limitedSalesManagerActiveForm = new LimitedSalesManagerActiveForm(shop); - limitedSalesManagerActiveForm.seckillingAndLimitedSalesForm = this; - limitedSalesManagerActiveForm.TopLevel = false; - limitedSalesManagerActiveForm.Left = 0; - limitedSalesManagerActiveForm.Top = 0; - limitedSalesManagerActiveForm.FormBorderStyle = FormBorderStyle.None; - limitedSalesManagerActiveForm.AutoSize = true; - limitedSalesManagerActiveForm.Dock = DockStyle.Fill; - limitedSalesManagerActiveForm.Show(); - tab.Controls.Add(limitedSalesManagerActiveForm); - } - - if (tab.Controls.Count > 0) - { - managerActiveForm = tab.Controls[0] as LimitedSalesManagerActiveForm; - this.ucTabControl1.SelectedTab = tab; - } - })); - - if (managerActiveForm != null) - { - managerActiveForm.GetActive(); - } - } - Invoke(new Action(() => { btnGetProduct.Enabled = true; })); - }, cancellationTokenSource.Token); - } - - public void GetActiveByCef(ShopLoginInfo shop) - { - if (webBrowser == null) - { - Invoke(new Action(() => - { - webBrowser = CEFBrowser.CreateChromiumWebBrowser("about:blank", false); - webBrowser.KeyboardHandler = new KeyboardHandler(); - webBrowser.Dock = DockStyle.Fill; - CustomResourceRequestHandlerLocal resourceRequestHandler = new CustomResourceRequestHandlerLocal(); - resourceRequestHandler.ResourceLoadCompleteEvent += RequestHandler_ResourceLoadCompleteEvent; - webBrowser.RequestHandler = new CustomRequestHandler(resourceRequestHandler); - webBrowser.LifeSpanHandler = new LifeSpanHandlerLocal(PopWindowType.SelfWindow); - webBrowser.SendToBack(); - splitContainer4.Panel1.Controls.Add(webBrowser); - })); - } - - while (webBrowser.Tag != null) - { - Thread.Sleep(Randomx.GetId(50, 100)); - } - if (cancellationTokenSource.IsCancellationRequested) - return; - - webBrowser.Tag = shop; - - while (!webBrowser.IsBrowserInitialized || webBrowser.IsLoading) - continue; - - var cookie = shop.Cookies; - CEFBrowser.DeleteCookie(webBrowser.RequestContext.GetCookieManager(null)); - var t = CEFBrowser.SetCookieAsync("jinritemai.com", cookie, webBrowser.RequestContext.GetCookieManager(null)); - t.Wait(2000); - Thread.Sleep(500); - - var targetUrl = "https://fxg.jinritemai.com/market/center/tools/limitsales"; - webBrowser.Load(targetUrl); - - while (webBrowser.IsLoading) - { - Thread.Sleep(1000); - } - Thread.Sleep(3000); - - while (webBrowser.Tag != null) - { - Thread.Sleep(Randomx.GetId(50, 100)); - } - Thread.Sleep(3000); - } - - private void chkSetName_CheckedChanged(object sender, EventArgs e) - { - } - - private void chkSetOneSku_CheckedChanged(object sender, EventArgs e) - { - if (rbBuyoutPrice.Checked) - return; - - if (chkSetSkuOption.Checked) - { - pnlSkuPriceMin.Visible = false; - } - else - { - pnlSkuPriceMin.Visible = true; - } - } - - private void btnSetName_Click(object sender, EventArgs e) - { - LimitedSalesActivityNameForm customNameForm = new LimitedSalesActivityNameForm(); - customNameForm.ShowDialog(); - } - - private void cmbStockType_SelectedIndexChanged(object sender, EventArgs e) - { - if (cmbStockType.Text == "全部库存") - { - nudStockValue.Enabled = false; - nudStockValue.Value = 100; - nudStockValue.Width = 48; - lblPercentSign.Visible = true; - } - else if (cmbStockType.Text == "百分比库存") - { - nudStockValue.Enabled = true; - nudStockValue.Maximum = 100m; - nudStockValue.Minimum = 1m; - nudStockValue.Increment = 1m; - nudStockValue.DecimalPlaces = 0; - nudStockValue.Value = 50m; - nudStockValue.Width = 48; - lblPercentSign.Visible = true; - } - else if (cmbStockType.Text == "统一库存") - { - nudStockValue.Enabled = true; - nudStockValue.Maximum = 10000m; - nudStockValue.Minimum = 1m; - nudStockValue.Increment = 1m; - nudStockValue.DecimalPlaces = 0; - nudStockValue.Value = 100m; - nudStockValue.Width = 65; - lblPercentSign.Visible = false; - } - } - - private void btnCancelGet_Click(object sender, EventArgs e) - { - if (cancellationTokenSource != null) - cancellationTokenSource.Cancel(); - if (addActiveCancellationTokenSource != null) - addActiveCancellationTokenSource.Cancel(); - - webBrowser.Tag = null; - Task.Run(() => - { - Thread.Sleep(10000); - if (cancellationTokenSource == null || cancellationTokenSource.IsCancellationRequested) - { - Invoke(new Action(() => - { - btnGetProduct.Enabled = btnSubAct.Enabled = btnMdyAct.Enabled = btnManageAct.Enabled = true; - })); - } - }); - } - - private void btnMdyAct_Click(object sender, EventArgs e) - { - //https://fxg.jinritemai.com/byteshop/promotion/detailFlashAndGoods?campaign_id=7129422311865811232&filter_unable_product=0&_bid=ecom_market_shop&appid=1&_=1660017441378&_signature=_02B4Z6wo00d01iVfrVQAAIDDRlVtPWgRUO4lW6nAAOu0sAsG56mTgW-GugrVNIvOFK.nRZ2WI7FAQvOEAM7Akj1ERBjJAOPHQWw72Qx1eAqWHCS9zJ6RFjCyrannBvRvfpJr6aNhuwjX.UjXab - - if (lstShopId.Count <= 0) - { - BaseMsgForm.ShowInfo("请选择要修改活动的店铺!"); - return; - } - - var initResult = InitParams(true); - if (!initResult) - return; - - addActiveCancellationTokenSource = new CancellationTokenSource(); - btnGetProduct.Enabled = false; - btnSubAct.Enabled = false; - btnMdyAct.Enabled = false; - - Task.Run(() => - { - var lstShopIdTemp = new List(); - lstShopIdTemp.AddRange(lstShopId); - - foreach (var shopId in lstShopIdTemp) - { - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId); - if (shop == null) - continue; - - if (ucTabControl1.TabPages["tab" + shopId + "Active"] != null && ucTabControl1.TabPages["tab" + shopId + "Active"].Controls.Count > 0) - { - var manageForm = ucTabControl1.TabPages["tab" + shopId + "Active"].Controls[0] as LimitedSalesManagerActiveForm; - if (manageForm == null) - continue; - - Invoke(new Action(() => - { - manageForm.statusBar.lblTaskStatus.Text = "正在修改活动"; - })); - - List activityList = manageForm.activeList.Where(a => manageForm.lstActiveId.Contains(a.campaign_id)).ToList(); - if (activityList.Count == 0) - { - BaseMsgForm.ShowInfo("请选择店铺 " + shop.ShopAccount + " 要修改的活动!"); - continue; - } - else - { - foreach (ActiveInfo activity in activityList) - { - List productList = new List(); - var activity_product_result = manageForm.GetProductByActivityId(activity.campaign_id, shop.Cookies); - if (activity_product_result.Contains("\"st\":0,\"msg\":\"\"")) - { - JObject obj = JObject.Parse(activity_product_result); - JArray arr = obj["data"]?["promotion_goods"] as JArray; - if (arr != null) - { - foreach (JObject token in arr) - { - var tokenStr = token.ToString(); - - DouProductPromotionListInfo douProduct = new DouProductPromotionListInfo(); - douProduct.product_id = BaseRegex.GetStringJson(ref tokenStr, "product_id"); - douProduct.name = BaseRegex.GetStringJson(ref tokenStr, "title"); - douProduct.img = BaseRegex.GetStringJson(ref tokenStr, "cover"); - productList.Add(douProduct); - } - } - } - manageForm.DelActive(activity.campaign_id.ParseToLong(), false); - AddOrMdyActivity(shop, productList, activity, null, manageForm); - } - } - - Invoke(new Action(() => - { - if (addActiveCancellationTokenSource.IsCancellationRequested) - manageForm.statusBar.lblTaskStatus.Text = "活动修改中断"; - else - manageForm.statusBar.lblTaskStatus.Text = "活动修改结束"; - })); - } - } - - Invoke(new Action(() => - { - btnManageAct.Enabled = btnGetProduct.Enabled = btnSubAct.Enabled = btnMdyAct.Enabled = true; - })); - }, addActiveCancellationTokenSource.Token); - } - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/SeckillingAndLimitedSalesForm.resx b/TEMUKJD/KJDForms/SalesCenterForms/Old/SeckillingAndLimitedSalesForm.resx deleted file mode 100644 index 82921c0..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/SeckillingAndLimitedSalesForm.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/SeckillingAndLimitedSalesShopForm.Designer.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/SeckillingAndLimitedSalesShopForm.Designer.cs deleted file mode 100644 index 370e8a2..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/SeckillingAndLimitedSalesShopForm.Designer.cs +++ /dev/null @@ -1,235 +0,0 @@ -namespace TemuKJD.KJDForms.SalesCenterForms -{ - partial class SeckillingAndLimitedSalesShopForm - { - /// - /// 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() - { - 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(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.dgvProduct = new TemuKJD.UserComponent.DataGridViewEx(); - this.label1 = new System.Windows.Forms.Label(); - this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colProductId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colProductName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colStock = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colSales = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colPrice = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colCreateTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colAllow = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); - this.splitContainer2.Panel1.SuspendLayout(); - this.splitContainer2.Panel2.SuspendLayout(); - this.splitContainer2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgvProduct)).BeginInit(); - this.SuspendLayout(); - // - // splitContainer2 - // - this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; - this.splitContainer2.Location = new System.Drawing.Point(0, 0); - this.splitContainer2.Name = "splitContainer2"; - this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; - // - // splitContainer2.Panel1 - // - this.splitContainer2.Panel1.Controls.Add(this.dgvProduct); - this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 4, 4, 0); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Controls.Add(this.label1); - this.splitContainer2.Panel2.Controls.Add(this.statusBar); - this.splitContainer2.Size = new System.Drawing.Size(1021, 469); - this.splitContainer2.SplitterDistance = 439; - this.splitContainer2.TabIndex = 9; - // - // dgvProduct - // - this.dgvProduct.AllowUserToAddRows = false; - this.dgvProduct.AllowUserToDeleteRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - this.dgvProduct.BackgroundColor = System.Drawing.Color.White; - this.dgvProduct.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dgvProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; - this.dgvProduct.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgvProduct.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.colSelect, - this.colProductId, - this.colProductName, - this.colStock, - this.colSales, - this.colPrice, - this.colCreateTime, - this.colAllow, - this.colMessage}); - this.dgvProduct.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvProduct.Location = new System.Drawing.Point(4, 4); - this.dgvProduct.Name = "dgvProduct"; - this.dgvProduct.ReadOnly = true; - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvProduct.RowsDefaultCellStyle = dataGridViewCellStyle3; - this.dgvProduct.RowTemplate.Height = 23; - this.dgvProduct.Size = new System.Drawing.Size(1013, 435); - this.dgvProduct.TabIndex = 6; - this.dgvProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvProduct_CellContentClick); - // - // label1 - // - this.label1.AutoSize = true; - this.label1.ForeColor = System.Drawing.Color.MidnightBlue; - this.label1.Location = new System.Drawing.Point(656, 2); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(43, 17); - this.label1.TabIndex = 3; - this.label1.Text = "label1"; - // - // 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(1021, 26); - this.statusBar.TabIndex = 2; - // - // colSelect - // - this.colSelect.FillWeight = 50F; - this.colSelect.HeaderText = "选"; - this.colSelect.Name = "colSelect"; - this.colSelect.ReadOnly = true; - this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.colSelect.Width = 41; - // - // colProductId - // - this.colProductId.HeaderText = "商品Id"; - this.colProductId.Name = "colProductId"; - this.colProductId.ReadOnly = true; - this.colProductId.Width = 150; - // - // colProductName - // - this.colProductName.HeaderText = "商品名称"; - this.colProductName.Name = "colProductName"; - this.colProductName.ReadOnly = true; - this.colProductName.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colProductName.Width = 350; - // - // colStock - // - this.colStock.HeaderText = "库存"; - this.colStock.Name = "colStock"; - this.colStock.ReadOnly = true; - this.colStock.Width = 60; - // - // colSales - // - this.colSales.HeaderText = "销量"; - this.colSales.Name = "colSales"; - this.colSales.ReadOnly = true; - this.colSales.Width = 60; - // - // colPrice - // - this.colPrice.HeaderText = "价格"; - this.colPrice.Name = "colPrice"; - this.colPrice.ReadOnly = true; - this.colPrice.Width = 60; - // - // colCreateTime - // - this.colCreateTime.HeaderText = "创建时间"; - this.colCreateTime.Name = "colCreateTime"; - this.colCreateTime.ReadOnly = true; - this.colCreateTime.Visible = false; - // - // colAllow - // - this.colAllow.HeaderText = "可用"; - this.colAllow.Name = "colAllow"; - this.colAllow.ReadOnly = true; - // - // colMessage - // - this.colMessage.HeaderText = "消息"; - this.colMessage.Name = "colMessage"; - this.colMessage.ReadOnly = true; - this.colMessage.Width = 300; - // - // SeckillingAndLimitedSalesShopForm - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1021, 469); - this.Controls.Add(this.splitContainer2); - this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Name = "SeckillingAndLimitedSalesShopForm"; - this.Text = "SeckillingAndLimitedSalesShopForm"; - this.splitContainer2.Panel1.ResumeLayout(false); - this.splitContainer2.Panel2.ResumeLayout(false); - this.splitContainer2.Panel2.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); - this.splitContainer2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.dgvProduct)).EndInit(); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.SplitContainer splitContainer2; - private UserComponent.DataGridViewEx dgvProduct; - private System.Windows.Forms.Label label1; - public UserControls.StatusBarUserControl statusBar; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colProductId; - private System.Windows.Forms.DataGridViewTextBoxColumn colProductName; - private System.Windows.Forms.DataGridViewTextBoxColumn colStock; - private System.Windows.Forms.DataGridViewTextBoxColumn colSales; - private System.Windows.Forms.DataGridViewTextBoxColumn colPrice; - private System.Windows.Forms.DataGridViewTextBoxColumn colCreateTime; - private System.Windows.Forms.DataGridViewTextBoxColumn colAllow; - private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/SeckillingAndLimitedSalesShopForm.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/SeckillingAndLimitedSalesShopForm.cs deleted file mode 100644 index fe49925..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/SeckillingAndLimitedSalesShopForm.cs +++ /dev/null @@ -1,563 +0,0 @@ -using AllBase; -using AllBase.Extension; -using AllBase.Helper; -using AllBase.Model.Result; -using TemuKJD.Extension; -using TemuKJD.KJDForms.BaseForms; -using NaiBa.Util.Extension; -using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.IO; -using System.Linq; -using System.Net; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; -using Work.BLL.Product; - -namespace TemuKJD.KJDForms.SalesCenterForms -{ - public partial class SeckillingAndLimitedSalesShopForm : BaseForm - { - private ShopLoginInfo shop = null; - private CheckBox chkSelectAll = null; - private string _signature = ""; - private string _timeSpan = ""; - private bool isGetSalesSuccess = false; - private bool isGetProductSuccess = false; - private Dictionary dicProductSales = new Dictionary(); - public SeckillingAndLimitedSalesForm SeckillingAndLimitedSalesForm { get; set; } = null; - public List ProductList { get; set; } = new List(); - public List LstProductId - { - get - { - return this.dgvProduct.Rows.Cast().Where(r => r.Cells["colSelect"].Value.ParseToBool()).Select(r => r.Cells["colProductId"].Value.ToString()).ToList(); - } - } - - public SeckillingAndLimitedSalesShopForm(ShopLoginInfo _shop = null) - { - InitializeComponent(); - - shop = _shop; - //设置全选按钮 - chkSelectAll = dgvProduct.Columns["colSelect"].AddHeaderCheckBox(HorizontalAlignment.Center, 0, 0, null, null, false); - dgvProduct.Columns["colSelect"].HeaderText = ""; - chkSelectAll.Width = chkSelectAll.Height = 13; - chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged; //全选事件 - } - - private void chkSelectAll_CheckedChanged(object sender, EventArgs e) - { - if (!chkSelectAll.Checked) - { - foreach (DataGridViewRow row in dgvProduct.Rows) - { - row.Cells["colSelect"].Value = false; - } - } - else - { - foreach (DataGridViewRow row in dgvProduct.Rows) - { - if (row.Cells["colAllow"].Value?.ToString() == "可用") - row.Cells["colSelect"].Value = true; - } - } - } - - public void GetProductSim(string listUrl, string referrerUrl, Dictionary headers, string firstPageData = "", string campaign_start_time = "", string campaign_end_time = "") - { - ShowVisitorMessage(""); - string salesUrl = listUrl; - foreach (DataGridViewRow r in this.dgvProduct.Rows) - { - Invoke(new Action(() => - { - r.Cells["colSales"].Value = "获取中"; - r.Cells["colStock"].Value = "获取中"; - r.Cells["colAllow"].Value = "获取中"; - r.Cells["colMessage"].Value = ""; - })); - } - foreach (var p in ProductList) - { - p.sell_num = null; - } - - bool isGetSalesOver = false; - - Task t1 = Task.Run(() => - { - int totalT1 = -1; - int numberT1 = 0; - string resultT1 = ""; - if (!string.IsNullOrEmpty(firstPageData)) - resultT1 = firstPageData; - - ShowVisitorMessage("正在准备获取商品销量"); - // 获取有销量的商品 - for (int i = 0; i < 10000; i++) - { - numberT1 += 20; - for (int j = 0; j < 3 && !resultT1.Contains("\"st\":0"); j++) - { - CommonSimRequest simRequest = new CommonSimRequest(); - simRequest.Accept = "application/json, text/plain, */*"; - if (headers.ContainsKey("Accept")) - simRequest.Accept = headers["Accept"]; - if (headers.ContainsKey("UserAgent")) - simRequest.UserAgent = headers["UserAgent"]; - var cookie = shop.Cookies; - - ShowVisitorMessage("商品销量获取中,第 " + (i + 1) + " 页"); - var rUrl = salesUrl.Replace("page=0", "page=" + i).Replace("&pay_type=", "&pay_type=&sell_num_min=1"); // 获取所有有销量的商品,Replace不可注释!! - resultT1 = simRequest.Request_Get(rUrl, referrerUrl, new Dictionary(), cookie); - if (j > 0) - { - Thread.Sleep(Randomx.GetId(250, 750)); - Thread.Sleep(Randomx.GetId(250, 750)); - } - } - - if (resultT1.Contains("\"st\":0") && !SeckillingAndLimitedSalesForm.cancellationTokenSource.IsCancellationRequested) - { - this.isGetSalesSuccess = true; - - if (totalT1 == -1) - { - totalT1 = BaseRegex.GetIntJson(ref resultT1, "total"); - } - var jObj = JObject.Parse(resultT1); - var jArr = jObj["data"] as JArray; - foreach (var productObj in jArr) - { - //DouProductWithSalesListInfo product = new DouProductWithSalesListInfo(); - var prod = JsonHelper.SerializeObject(productObj); - //product.product_id = BaseRegex.GetLongJson(ref prod, "product_id"); - //product.sell_num = BaseRegex.GetIntJson(ref prod, "sell_num"); - //product.stock_num = BaseRegex.GetIntJson(ref prod, "stock_num"); - //product.name = BaseRegex.GetStringJson(ref prod, "name"); - //product.discount_price = BaseRegex.GetDecimalJson(ref prod, "discount_price") / 100; - //product.create_time_str = BaseRegex.GetStringJson(ref prod, "create_time"); - //product.create_time = BaseClass.DateTimeToTimestampSeconds(product.create_time_str.ParseToDateTime()); - //Invoke(new Action(() => - //{ - // this.dgvProduct.Rows.Add(false, product.product_id, product.name, product.stock_num, product.sell_num, product.discount_price, product.create_time_str); - //})); - - var product_id = BaseRegex.GetLongJson(ref prod, "product_id"); - var sell_num = BaseRegex.GetIntJson(ref prod, "sell_num"); - this.dicProductSales[product_id] = sell_num; - } - Thread.Sleep(Randomx.GetId(250, 750)); - Thread.Sleep(Randomx.GetId(250, 750)); - resultT1 = ""; - } - else - { - isGetSalesSuccess = false; - ShowVisitorMessage("获取商品销量失败"); - isGetSalesOver = true; - break; - } - - if (numberT1 >= totalT1) - { - ShowVisitorMessage("获取商品销量完成"); - isGetSalesOver = true; - - // 填写商品销量 - foreach (var product in this.ProductList) - { - if (dicProductSales.ContainsKey(product.product_id.ParseToLong())) - product.sell_num = dicProductSales[product.product_id.ParseToLong()]; - else if (isGetSalesSuccess) - product.sell_num = 0; - else - product.sell_num = -1; - - var row = this.dgvProduct.Rows.Cast().FirstOrDefault(r => r.Cells["colProductId"].Value.ToString() == product.product_id); - if (row != null && row.Cells["colSales"].Value.ToString() == "获取中") - { - if (product.sell_num >= 0) - row.Cells["colSales"].Value = product.sell_num; - if (product.sell_num >= 0) - row.Cells["colSales"].Value = product.sell_num; - } - } - - break; - } - } - }); - - var total = -1; - var number = 0; - var result = ""; - referrerUrl = "https://fxg.jinritemai.com/market/center/tools/limitsales/detail?refer=new"; - DateTime date = DateTime.Now.Date; - if (string.IsNullOrEmpty(campaign_start_time)) - campaign_start_time = date.ToString("yyyy-MM-dd") + "+00:00:00"; - if (string.IsNullOrEmpty(campaign_end_time)) - campaign_end_time = date.ToString("yyyy-MM-dd") + "+23:59:59"; - _timeSpan = BaseRegex.GetMatchRegexString(ref listUrl, "&_=([\\s\\S]+?)&"); - if (string.IsNullOrEmpty(_timeSpan)) - _timeSpan = BaseRegex.GetMatchRegexString(ref listUrl, "&_=([\\s\\S]+?)"); - if (string.IsNullOrEmpty(_timeSpan)) - _timeSpan = BaseClass.DateTimeToTimestampMilliseconds(DateTime.Now).ToString(); - _signature = BaseRegex.GetMatchRegexString(ref listUrl, "&_signature=([\\s\\S]+?)&"); - if (string.IsNullOrEmpty(_signature)) - { - var listUrl2 = listUrl + "&"; - _signature = BaseRegex.GetMatchRegexString(ref listUrl2, "&_signature=([\\s\\S]+?)&"); - } - // 查询单件商品 - // https://fxg.jinritemai.com/byteshop/promotion/queryAvailableGoods?name=3550481296776157865&page=1&pageSize=15&campaign_start_time=2022-07-12+13:53:58&campaign_end_time=2022-07-13+13:53:58&stype=7&_bid=ecom_market_shop&appid=1&_=1657605277264&_signature=_02B4Z6wo00901vPj2jgAAIDAgf3-u.2wcb7z596AAN5DTpZAb6P6BWjbWf6p.E8w0icSl9d8vqMw9VdyRVtMyHUP25-fyQJA9.JSE1OQhQnubxfnISMkVfqQ0u80uuh3ezzpRpzTvt0UVyVyfa - // 查询列表 - listUrl = "https://fxg.jinritemai.com/byteshop/promotion/queryAvailableGoods?name=&page=0&pageSize=15&campaign_start_time=" + campaign_start_time + - "&campaign_end_time=" + campaign_end_time + "&stype=7&_bid=ecom_market_shop&appid=1" + - "&_=" + _timeSpan + "&_signature=" + _signature; - int num = 9999; - // 是否获取指定商品 - bool getWithName = false; - if (SeckillingAndLimitedSalesForm.LstSearthProductId.Count > 0 && !string.IsNullOrEmpty(SeckillingAndLimitedSalesForm.LstSearthProductId[0])) - { - num = SeckillingAndLimitedSalesForm.LstSearthProductId.Count; - getWithName = true; - } - for (int i = 1; i <= num; i++) - { - result = ""; - number += 15; - // {\"st\":0,\"msg\":\"账号未登录\",\"code\":10008,\"data\":{},\"page\":0,\"size\":0,\"total\":0} - for (int j = 0; j < 3 && !result.Contains("\"st\":0") || result.Contains("\"msg\":\"账号未登录\""); j++) - { - CommonSimRequest simRequest = new CommonSimRequest(); - simRequest.Accept = "application/json, text/plain, */*"; - if (headers.ContainsKey("Accept")) - simRequest.Accept = headers["Accept"]; - if (headers.ContainsKey("UserAgent")) - simRequest.UserAgent = headers["UserAgent"]; - var cookie = shop.Cookies; - - var rUrl = ""; - //int pageSize = 15; - //if (number > 10000) - //{ - // pageSize = 15 - (number - 10000); - // if (pageSize < 0) - // pageSize = 0; - // rUrl = rUrl.Replace("pageSize=15", "pageSize=" + pageSize); - //} - // 获取列表商品 - if (!getWithName) - { - rUrl = listUrl.Replace("page=0", "page=" + i); - } - // 获取指定商品 - else - { - rUrl = listUrl.Replace("page=0", "page=1").Replace("name=&", "name=" + SeckillingAndLimitedSalesForm.LstSearthProductId[i - 1] + "&"); - } - result = simRequest.Request_Get(rUrl, referrerUrl, new Dictionary(), cookie); - if (result.Contains("账号未登录")) - { - } - if (j > 0) - { - Thread.Sleep(Randomx.GetId(200, 500)); - } - } - - if (!result.Contains("\"st\":0")) - { - } - - if (result.Contains("\"st\":0") && !SeckillingAndLimitedSalesForm.cancellationTokenSource.IsCancellationRequested) - { - this.isGetProductSuccess = true; - - if (total == -1) - { - total = BaseRegex.GetIntJson(ref result, "total"); - } - - int totalPage = Math.Ceiling(total / 15M).ParseToInt(); - string message = ""; - if (!getWithName) - message = "正在获取商品第" + i + "页,共" + totalPage + "页"; - else - message = "正在获取商品第" + i + "条,共" + num + "条"; - - Invoke(new Action(() => - { - this.statusBar.lblTaskStatus.Text = message; - this.statusBar.pgbTaskProgress.Value = i; - if (!getWithName) - { - this.statusBar.pgbTaskProgress.Text = i + "/" + totalPage; - this.statusBar.pgbTaskProgress.Maximum = totalPage; - } - else - { - this.statusBar.pgbTaskProgress.Text = i + "/" + num; - this.statusBar.pgbTaskProgress.Maximum = num; - } - })); - - try - { - var jObj = JObject.Parse(result); - var pList = JsonHelper.DeserializeJsonToList(jObj["data"]?.ToString()); - - foreach (var product in pList) - { - if (product.allow == false && product.reject_msg == "不可售卖商品") - { - continue; - } - if (dicProductSales.ContainsKey(product.product_id.ParseToLong())) - product.sell_num = dicProductSales[product.product_id.ParseToLong()]; - else if (isGetSalesOver && isGetSalesSuccess) - product.sell_num = 0; - else if (isGetSalesOver) - product.sell_num = -1; - - if (this.ProductList.Any(p => p.product_id == product.product_id)) - this.ProductList.RemoveAll(p => p.product_id == product.product_id); - this.ProductList.Add(product); - - var row = this.dgvProduct.Rows.Cast().FirstOrDefault(r => r.Cells["colProductId"].Value.ToString() == product.product_id); - Invoke(new Action(() => - { - if (row != null) - { - dgvProduct.Rows.Remove(row); - } - var priceText = product.min_price / 100M + " - " + product.max_price / 100M; - object sellNum = "获取中"; - if (product.sell_num != null && product.sell_num != -1) - sellNum = product.sell_num; - else if (product.sell_num == -1) - sellNum = "获取失败"; - var rejectMsg = "可用"; - if (product.allow == false) - rejectMsg = product.reject_msg; - DataGridViewRow r = new DataGridViewRow(); - r.Cells.Add(new DataGridViewCheckBoxCell() { Value = false, }); - r.Cells.Add(new DataGridViewTextBoxCell() { Value = product.product_id, }); - r.Cells.Add(new DataGridViewTextBoxCell() { Value = product.name, }); - r.Cells.Add(new DataGridViewTextBoxCell() { Value = product.stock_num, }); // 库存 - r.Cells.Add(new DataGridViewTextBoxCell() { Value = sellNum, }); // 销量 - r.Cells.Add(new DataGridViewTextBoxCell() { Value = priceText, }); // 价格区间 - r.Cells.Add(new DataGridViewTextBoxCell() { Value = "", }); // 创建时间 - r.Cells.Add(new DataGridViewTextBoxCell() { Value = rejectMsg }); - this.dgvProduct.Rows.Add(r); - if (product.allow == false) - { - r.Cells["colSelect"].ReadOnly = true; - r.Cells["colAllow"].Style.ForeColor = Color.Red; - } - else - { - r.Cells["colSelect"].ReadOnly = false; - r.Cells["colAllow"].Style.ForeColor = Color.Green; - } - })); - } - Thread.Sleep(Randomx.GetId(100, 250)); - } - catch (Exception ex) - { - isGetProductSuccess = false; - break; - } - } - else - { - isGetProductSuccess = false; - break; - } - - // 列表获取超过最大数值后跳出 - if (!getWithName && number >= total) - break; - } - - t1.Wait(); - - // 最后填写商品销量 - foreach (var product in this.ProductList) - { - if (dicProductSales.ContainsKey(product.product_id.ParseToLong())) - product.sell_num = dicProductSales[product.product_id.ParseToLong()]; - else if (isGetSalesSuccess) - product.sell_num = 0; - else - product.sell_num = -1; - - var row = this.dgvProduct.Rows.Cast().FirstOrDefault(r => r.Cells["colProductId"].Value.ToString() == product.product_id); - if (row != null && row.Cells["colSales"].Value.ToString() == "获取中") - { - if (product.sell_num >= 0) - row.Cells["colSales"].Value = product.sell_num; - if (product.sell_num >= 0) - row.Cells["colSales"].Value = product.sell_num; - } - } - - Invoke(new Action(() => - { - if (SeckillingAndLimitedSalesForm.cancellationTokenSource.IsCancellationRequested) - { - this.statusBar.lblTaskStatus.Text = "获取中断"; - } - else if (!isGetSalesSuccess) - { - this.statusBar.lblTaskStatus.Text = "获取完成,但获取销量信息失败"; - } - else if (!isGetProductSuccess) - { - this.statusBar.lblTaskStatus.Text = "获取商品信息失败"; - } - else - { - this.statusBar.lblTaskStatus.Text = "获取完成"; - } - ShowVisitorMessage(""); - //this.statusBar.pgbTaskProgress.Value = 0; - //this.statusBar.pgbTaskProgress.Text = 0 + "/" + 0; - //this.statusBar.pgbTaskProgress.Maximum = 0; - })); - } - - public void GetProduct() - { - if (shop == null) - return; - - ShowVisitorMessage(""); - foreach (DataGridViewRow r in this.dgvProduct.Rows) - { - r.Cells["colSales"].Value = "获取中"; - r.Cells["colStock"].Value = "获取中"; - r.Cells["colMessage"].Value = ""; - } - foreach (var p in ProductList) - { - p.sell_num = null; - } - - List tList = new List(); - - var t2 = Task.Run(() => - { - if (shop.LoginStatus == "登录成功") - SeckillingAndLimitedSalesForm.GetProductByCef(this.shop); - - var rowsTemp = dgvProduct.Rows.Cast().ToList(); - rowsTemp.Reverse(); - foreach (var r in rowsTemp) - { - try - { - //if (r.Cells["colPrice"].Value.ParseToDecimal() < priceMin || r.Cells["colPrice"].Value.ParseToDecimal() > priceMax - // || r.Cells["colSales"].Value.ParseToDecimal() < salesMin || r.Cells["colSales"].Value.ParseToDecimal() > salesMax - // || (productName?.Count > 0 && !productName.Any(n => r.Cells["colProductName"].Value.ToString().Contains(n)))) - //{ - // Invoke(new Action(() => - // { - // dgvProduct.Rows.Remove(r); - // })); - //} - } - catch (Exception ex) - { - } - } - }); - tList.Add(t2); - t2.Wait(); - } - //根据id获取sku - public string GetSkusByProductIds(string postData, string cookies) - { - CommonSimRequest request = new CommonSimRequest(); - request.ContentType = "application/json"; - Dictionary dicts = new Dictionary(); - string reqUrl = "https://fxg.jinritemai.com/byteshop/promotion/batchGetSkuByProductIds?_bid=ecom_market_shop&appid=1&_=" + _timeSpan + "&_signature=" + _signature; - string result = request.Request_PostByBigLength(reqUrl, "https://fxg.jinritemai.com/market/center/tools/limitsales/detail?refer=new", dicts, cookies, postData); - return result; - } - - public string checkFlashAndGoods(string postData, string cookies) - { - CommonSimRequest request = new CommonSimRequest(); - request.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36"; - request.ContentType = "application/json"; - Dictionary dicts = new Dictionary(); - string reqUrl = "https://fxg.jinritemai.com/byteshop/promotion/checkFlashAndGoods?_bid=ecom_market_shop&appid=1&_=" + _timeSpan + "&_signature=" + _signature; - string result = request.Request_PostByBigLength(reqUrl, "https://fxg.jinritemai.com/market/center/tools/limitsales/detail?refer=new", dicts, cookies, postData); - return result; - } - - public string createFlashAndGoods(string postData, string cookies) - { - CommonSimRequest request = new CommonSimRequest(); - request.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36"; - request.ContentType = "application/json"; - Dictionary dicts = new Dictionary(); - string reqUrl = "https://fxg.jinritemai.com/byteshop/promotion/createFlashAndGoods?_bid=ecom_market_shop&appid=1&_=" + _timeSpan + "&_signature=" + _signature; - string result = request.Request_PostByBigLength(reqUrl, "https://fxg.jinritemai.com/market/center/tools/limitsales/detail?refer=new", dicts, cookies, postData); - return result; - } - - public void ShowVisitorMessage(string msg, string ids = "", bool onlyShowInGrid = false) - { - Invoke(new Action(() => - { - - this.label1.Text = msg; - if (!string.IsNullOrEmpty(ids)) - { - var idList = ids.Split(new string[] { "\",\"", "\"" }, StringSplitOptions.RemoveEmptyEntries); - var rows = this.dgvProduct.Rows.Cast().Where(r => idList.Contains(r.Cells["colProductId"].Value?.ToString())); - foreach (var row in rows) - { - row.Cells["colMessage"].Value = msg; - } - } - })); - } - - public void ClearData() - { - this.ProductList.Clear(); - this.dicProductSales.Clear(); - this.dgvProduct.Rows.Clear(); - } - //选择参与活动的商品 - private void dgvProduct_CellContentClick(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - string headerText = dgvProduct.Columns[e.ColumnIndex].HeaderText; - string columnName = dgvProduct.Columns[e.ColumnIndex].Name; - long ProductId = dgvProduct.Rows[e.RowIndex].Cells["colProductId"].Value.ParseToLong(); - var row = dgvProduct.Rows[e.RowIndex]; - switch (columnName) - { - case "colSelect": - row.Cells["colSelect"].Value = !row.Cells["colSelect"].Value.ParseToBool(); - break; - } - } - } -} diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/SeckillingAndLimitedSalesShopForm.resx b/TEMUKJD/KJDForms/SalesCenterForms/Old/SeckillingAndLimitedSalesShopForm.resx deleted file mode 100644 index 584a64e..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/SeckillingAndLimitedSalesShopForm.resx +++ /dev/null @@ -1,147 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/UcCouponAddParam.Designer.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/UcCouponAddParam.Designer.cs deleted file mode 100644 index 5e46c62..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/UcCouponAddParam.Designer.cs +++ /dev/null @@ -1,528 +0,0 @@ -namespace TemuKJD.KJDForms.SalesCenterForms -{ - partial class UcCouponAddParam - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.cmbUserCountLimited = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.cbi1 = new DevComponents.Editors.ComboItem(); - this.nudDays = new System.Windows.Forms.NumericUpDown(); - this.nudTotalCount = new System.Windows.Forms.NumericUpDown(); - this.label15 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.cmbType = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.商品折扣券 = new DevComponents.Editors.ComboItem(); - this.label9 = new System.Windows.Forms.Label(); - this.rbNotReckonIn = new System.Windows.Forms.RadioButton(); - this.rbReckonIn = new System.Windows.Forms.RadioButton(); - this.label8 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.dtpEndApplyTime = new System.Windows.Forms.DateTimePicker(); - this.dtpStartApplyTime = new System.Windows.Forms.DateTimePicker(); - this.label4 = new System.Windows.Forms.Label(); - this.lblClose = new System.Windows.Forms.Label(); - this.line1 = new DevComponents.DotNetBar.Controls.Line(); - this.lblMsg = new System.Windows.Forms.Label(); - this.txtName = new System.Windows.Forms.TextBox(); - this.pnlTimePeriod = new System.Windows.Forms.Panel(); - this.dtpStartUseTime = new System.Windows.Forms.DateTimePicker(); - this.dtpEndUseTime = new System.Windows.Forms.DateTimePicker(); - this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); - this.nudThresHold = new System.Windows.Forms.NumericUpDown(); - this.lblThresHold = new System.Windows.Forms.Label(); - this.nudCredit = new System.Windows.Forms.NumericUpDown(); - this.lblCreditText = new System.Windows.Forms.Label(); - this.lblDiscountText = new System.Windows.Forms.Label(); - this.商品直减券 = new DevComponents.Editors.ComboItem(); - this.商品满减券 = new DevComponents.Editors.ComboItem(); - ((System.ComponentModel.ISupportInitialize)(this.nudDays)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.nudTotalCount)).BeginInit(); - this.pnlTimePeriod.SuspendLayout(); - this.flowLayoutPanel1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.nudThresHold)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.nudCredit)).BeginInit(); - this.SuspendLayout(); - // - // cmbUserCountLimited - // - this.cmbUserCountLimited.DisplayMember = "Text"; - this.cmbUserCountLimited.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbUserCountLimited.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbUserCountLimited.FormattingEnabled = true; - this.cmbUserCountLimited.ItemHeight = 18; - this.cmbUserCountLimited.Items.AddRange(new object[] { - this.cbi1}); - this.cmbUserCountLimited.Location = new System.Drawing.Point(1050, 7); - this.cmbUserCountLimited.Name = "cmbUserCountLimited"; - this.cmbUserCountLimited.Size = new System.Drawing.Size(60, 24); - this.cmbUserCountLimited.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbUserCountLimited.TabIndex = 554; - // - // cbi1 - // - this.cbi1.Text = "1张"; - this.cbi1.Value = "5分钟"; - // - // nudDays - // - this.nudDays.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.nudDays.Location = new System.Drawing.Point(446, 8); - this.nudDays.Name = "nudDays"; - this.nudDays.Size = new System.Drawing.Size(86, 23); - this.nudDays.TabIndex = 553; - this.nudDays.Value = new decimal(new int[] { - 1, - 0, - 0, - 0}); - // - // nudTotalCount - // - this.nudTotalCount.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.nudTotalCount.Location = new System.Drawing.Point(983, 8); - this.nudTotalCount.Name = "nudTotalCount"; - this.nudTotalCount.Size = new System.Drawing.Size(40, 23); - this.nudTotalCount.TabIndex = 552; - this.nudTotalCount.Value = new decimal(new int[] { - 1, - 0, - 0, - 0}); - // - // label15 - // - this.label15.AutoSize = true; - this.label15.Location = new System.Drawing.Point(1025, 11); - this.label15.Name = "label15"; - this.label15.Size = new System.Drawing.Size(20, 17); - this.label15.TabIndex = 549; - this.label15.Text = "张"; - // - // label13 - // - this.label13.AutoSize = true; - this.label13.Location = new System.Drawing.Point(1048, -2); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(56, 17); - this.label13.TabIndex = 548; - this.label13.Text = "每人限领"; - this.label13.Visible = false; - // - // label11 - // - this.label11.AutoSize = true; - this.label11.Location = new System.Drawing.Point(981, -2); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(44, 17); - this.label11.TabIndex = 547; - this.label11.Text = "发放量"; - this.label11.Visible = false; - // - // label10 - // - this.label10.AutoSize = true; - this.label10.Location = new System.Drawing.Point(838, -2); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(32, 17); - this.label10.TabIndex = 546; - this.label10.Text = "折扣"; - this.label10.Visible = false; - // - // cmbType - // - this.cmbType.DisplayMember = "Text"; - this.cmbType.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbType.FormattingEnabled = true; - this.cmbType.ItemHeight = 18; - this.cmbType.Items.AddRange(new object[] { - this.商品折扣券, - this.商品直减券, - this.商品满减券}); - this.cmbType.Location = new System.Drawing.Point(741, 7); - this.cmbType.Name = "cmbType"; - this.cmbType.Size = new System.Drawing.Size(90, 24); - this.cmbType.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbType.TabIndex = 545; - this.cmbType.SelectedIndexChanged += new System.EventHandler(this.cmbType_SelectedIndexChanged); - // - // 商品折扣券 - // - this.商品折扣券.Text = "商品折扣券"; - this.商品折扣券.Value = "5分钟"; - // - // label9 - // - this.label9.AutoSize = true; - this.label9.Location = new System.Drawing.Point(738, -2); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(56, 17); - this.label9.TabIndex = 544; - this.label9.Text = "优惠内容"; - this.label9.Visible = false; - // - // rbNotReckonIn - // - this.rbNotReckonIn.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.rbNotReckonIn.Location = new System.Drawing.Point(677, 8); - this.rbNotReckonIn.Name = "rbNotReckonIn"; - this.rbNotReckonIn.Size = new System.Drawing.Size(60, 22); - this.rbNotReckonIn.TabIndex = 466; - this.rbNotReckonIn.Text = "不计入"; - this.rbNotReckonIn.UseVisualStyleBackColor = true; - // - // rbReckonIn - // - this.rbReckonIn.Checked = true; - this.rbReckonIn.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.rbReckonIn.Location = new System.Drawing.Point(632, 8); - this.rbReckonIn.Name = "rbReckonIn"; - this.rbReckonIn.Size = new System.Drawing.Size(50, 22); - this.rbReckonIn.TabIndex = 465; - this.rbReckonIn.TabStop = true; - this.rbReckonIn.Text = "计入"; - this.rbReckonIn.UseVisualStyleBackColor = true; - // - // label8 - // - this.label8.AutoSize = true; - this.label8.Location = new System.Drawing.Point(629, -2); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(80, 17); - this.label8.TabIndex = 542; - this.label8.Text = "价格风险预警"; - this.label8.Visible = false; - // - // label7 - // - this.label7.AutoSize = true; - this.label7.Location = new System.Drawing.Point(531, 11); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(68, 17); - this.label7.TabIndex = 541; - this.label7.Text = "天内可使用"; - // - // label6 - // - this.label6.AutoSize = true; - this.label6.Location = new System.Drawing.Point(281, -2); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(56, 17); - this.label6.TabIndex = 540; - this.label6.Text = "领取结束"; - this.label6.Visible = false; - // - // label5 - // - this.label5.AutoSize = true; - this.label5.Location = new System.Drawing.Point(445, -2); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(56, 17); - this.label5.TabIndex = 539; - this.label5.Text = "日期范围"; - this.label5.Visible = false; - // - // dtpEndApplyTime - // - this.dtpEndApplyTime.CustomFormat = "yyyy\'/\'MM\'/\'dd HH:mm:ss"; - this.dtpEndApplyTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dtpEndApplyTime.Location = new System.Drawing.Point(283, 8); - this.dtpEndApplyTime.Name = "dtpEndApplyTime"; - this.dtpEndApplyTime.Size = new System.Drawing.Size(155, 23); - this.dtpEndApplyTime.TabIndex = 538; - // - // dtpStartApplyTime - // - this.dtpStartApplyTime.CustomFormat = "yyyy\'/\'MM\'/\'dd HH:mm:ss"; - this.dtpStartApplyTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dtpStartApplyTime.Location = new System.Drawing.Point(119, 8); - this.dtpStartApplyTime.Name = "dtpStartApplyTime"; - this.dtpStartApplyTime.Size = new System.Drawing.Size(155, 23); - this.dtpStartApplyTime.TabIndex = 537; - // - // label4 - // - this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(117, -2); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(56, 17); - this.label4.TabIndex = 536; - this.label4.Text = "领取开始"; - this.label4.Visible = false; - // - // lblClose - // - this.lblClose.AutoSize = true; - this.lblClose.Cursor = System.Windows.Forms.Cursors.Hand; - this.lblClose.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.lblClose.ForeColor = System.Drawing.Color.RoyalBlue; - this.lblClose.Location = new System.Drawing.Point(7, 12); - this.lblClose.Name = "lblClose"; - this.lblClose.Size = new System.Drawing.Size(16, 16); - this.lblClose.TabIndex = 555; - this.lblClose.Text = "X"; - this.lblClose.Click += new System.EventHandler(this.lblClose_Click); - // - // line1 - // - this.line1.Dock = System.Windows.Forms.DockStyle.Bottom; - this.line1.ForeColor = System.Drawing.Color.LightGray; - this.line1.Location = new System.Drawing.Point(0, 38); - this.line1.Name = "line1"; - this.line1.Size = new System.Drawing.Size(1180, 2); - this.line1.TabIndex = 556; - this.line1.Text = "line1"; - // - // lblMsg - // - this.lblMsg.AutoSize = true; - this.lblMsg.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.lblMsg.Location = new System.Drawing.Point(1118, 11); - this.lblMsg.Name = "lblMsg"; - this.lblMsg.Size = new System.Drawing.Size(44, 17); - this.lblMsg.TabIndex = 557; - this.lblMsg.Text = "待设置"; - // - // txtName - // - this.txtName.Location = new System.Drawing.Point(25, 8); - this.txtName.Name = "txtName"; - this.txtName.Size = new System.Drawing.Size(85, 23); - this.txtName.TabIndex = 558; - this.txtName.Text = "新人券1"; - // - // pnlTimePeriod - // - this.pnlTimePeriod.Controls.Add(this.dtpStartUseTime); - this.pnlTimePeriod.Controls.Add(this.dtpEndUseTime); - this.pnlTimePeriod.Location = new System.Drawing.Point(446, 7); - this.pnlTimePeriod.Name = "pnlTimePeriod"; - this.pnlTimePeriod.Size = new System.Drawing.Size(174, 25); - this.pnlTimePeriod.TabIndex = 559; - // - // dtpStartUseTime - // - this.dtpStartUseTime.CustomFormat = "yyyy\'/\'MM\'/\'dd"; - this.dtpStartUseTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dtpStartUseTime.Location = new System.Drawing.Point(0, 1); - this.dtpStartUseTime.Name = "dtpStartUseTime"; - this.dtpStartUseTime.Size = new System.Drawing.Size(86, 23); - this.dtpStartUseTime.TabIndex = 544; - // - // dtpEndUseTime - // - this.dtpEndUseTime.CustomFormat = "yyyy\'/\'MM\'/\'dd"; - this.dtpEndUseTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dtpEndUseTime.Location = new System.Drawing.Point(88, 1); - this.dtpEndUseTime.Name = "dtpEndUseTime"; - this.dtpEndUseTime.Size = new System.Drawing.Size(86, 23); - this.dtpEndUseTime.TabIndex = 551; - // - // flowLayoutPanel1 - // - this.flowLayoutPanel1.Controls.Add(this.lblDiscountText); - this.flowLayoutPanel1.Controls.Add(this.nudThresHold); - this.flowLayoutPanel1.Controls.Add(this.lblThresHold); - this.flowLayoutPanel1.Controls.Add(this.nudCredit); - this.flowLayoutPanel1.Controls.Add(this.lblCreditText); - this.flowLayoutPanel1.Location = new System.Drawing.Point(840, 8); - this.flowLayoutPanel1.Name = "flowLayoutPanel1"; - this.flowLayoutPanel1.Size = new System.Drawing.Size(205, 23); - this.flowLayoutPanel1.TabIndex = 560; - // - // nudThresHold - // - this.nudThresHold.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.nudThresHold.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.nudThresHold.Location = new System.Drawing.Point(32, 0); - this.nudThresHold.Margin = new System.Windows.Forms.Padding(0); - this.nudThresHold.Maximum = new decimal(new int[] { - 99999, - 0, - 0, - 0}); - this.nudThresHold.Minimum = new decimal(new int[] { - 1, - 0, - 0, - 0}); - this.nudThresHold.Name = "nudThresHold"; - this.nudThresHold.Size = new System.Drawing.Size(50, 23); - this.nudThresHold.TabIndex = 560; - this.nudThresHold.Value = new decimal(new int[] { - 10, - 0, - 0, - 0}); - this.nudThresHold.Visible = false; - // - // lblThresHold - // - this.lblThresHold.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.lblThresHold.Location = new System.Drawing.Point(82, 3); - this.lblThresHold.Margin = new System.Windows.Forms.Padding(0); - this.lblThresHold.Name = "lblThresHold"; - this.lblThresHold.Size = new System.Drawing.Size(16, 17); - this.lblThresHold.TabIndex = 559; - this.lblThresHold.Text = "减"; - this.lblThresHold.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.lblThresHold.Visible = false; - // - // nudCredit - // - this.nudCredit.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.nudCredit.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.nudCredit.DecimalPlaces = 1; - this.nudCredit.Increment = new decimal(new int[] { - 1, - 0, - 0, - 65536}); - this.nudCredit.Location = new System.Drawing.Point(98, 0); - this.nudCredit.Margin = new System.Windows.Forms.Padding(0); - this.nudCredit.Name = "nudCredit"; - this.nudCredit.Size = new System.Drawing.Size(50, 23); - this.nudCredit.TabIndex = 532; - this.nudCredit.Value = new decimal(new int[] { - 99, - 0, - 0, - 65536}); - // - // lblCreditText - // - this.lblCreditText.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.lblCreditText.Location = new System.Drawing.Point(148, 3); - this.lblCreditText.Margin = new System.Windows.Forms.Padding(0); - this.lblCreditText.Name = "lblCreditText"; - this.lblCreditText.Size = new System.Drawing.Size(16, 17); - this.lblCreditText.TabIndex = 531; - this.lblCreditText.Text = "折"; - this.lblCreditText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // lblDiscountText - // - this.lblDiscountText.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.lblDiscountText.Location = new System.Drawing.Point(0, 3); - this.lblDiscountText.Margin = new System.Windows.Forms.Padding(0); - this.lblDiscountText.Name = "lblDiscountText"; - this.lblDiscountText.Size = new System.Drawing.Size(32, 17); - this.lblDiscountText.TabIndex = 561; - this.lblDiscountText.Text = "折扣"; - this.lblDiscountText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // 商品直减券 - // - this.商品直减券.Text = "商品直减券"; - // - // 商品满减券 - // - this.商品满减券.Text = "商品满减券"; - // - // UcCouponAddParam - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.Controls.Add(this.label5); - this.Controls.Add(this.pnlTimePeriod); - this.Controls.Add(this.txtName); - this.Controls.Add(this.label8); - this.Controls.Add(this.rbNotReckonIn); - this.Controls.Add(this.lblMsg); - this.Controls.Add(this.rbReckonIn); - this.Controls.Add(this.line1); - this.Controls.Add(this.lblClose); - this.Controls.Add(this.label10); - this.Controls.Add(this.label9); - this.Controls.Add(this.label4); - this.Controls.Add(this.label13); - this.Controls.Add(this.label11); - this.Controls.Add(this.label6); - this.Controls.Add(this.cmbUserCountLimited); - this.Controls.Add(this.nudDays); - this.Controls.Add(this.nudTotalCount); - this.Controls.Add(this.label15); - this.Controls.Add(this.cmbType); - this.Controls.Add(this.label7); - this.Controls.Add(this.dtpEndApplyTime); - this.Controls.Add(this.dtpStartApplyTime); - this.Controls.Add(this.flowLayoutPanel1); - this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Name = "UcCouponAddParam"; - this.Size = new System.Drawing.Size(1180, 40); - ((System.ComponentModel.ISupportInitialize)(this.nudDays)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.nudTotalCount)).EndInit(); - this.pnlTimePeriod.ResumeLayout(false); - this.flowLayoutPanel1.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.nudThresHold)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.nudCredit)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - private DevComponents.Editors.ComboItem cbi1; - private System.Windows.Forms.Label label15; - private System.Windows.Forms.Label label13; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label10; - private DevComponents.Editors.ComboItem 商品折扣券; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label lblClose; - private DevComponents.DotNetBar.Controls.Line line1; - public DevComponents.DotNetBar.Controls.ComboBoxEx cmbUserCountLimited; - public System.Windows.Forms.NumericUpDown nudDays; - public System.Windows.Forms.NumericUpDown nudTotalCount; - public DevComponents.DotNetBar.Controls.ComboBoxEx cmbType; - public System.Windows.Forms.RadioButton rbNotReckonIn; - public System.Windows.Forms.RadioButton rbReckonIn; - public System.Windows.Forms.DateTimePicker dtpEndApplyTime; - public System.Windows.Forms.DateTimePicker dtpStartApplyTime; - public System.Windows.Forms.Label lblMsg; - public System.Windows.Forms.TextBox txtName; - public System.Windows.Forms.Panel pnlTimePeriod; - public System.Windows.Forms.DateTimePicker dtpStartUseTime; - public System.Windows.Forms.DateTimePicker dtpEndUseTime; - private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; - public System.Windows.Forms.NumericUpDown nudThresHold; - public System.Windows.Forms.Label lblThresHold; - public System.Windows.Forms.NumericUpDown nudCredit; - public System.Windows.Forms.Label lblCreditText; - public System.Windows.Forms.Label lblDiscountText; - private DevComponents.Editors.ComboItem 商品直减券; - private DevComponents.Editors.ComboItem 商品满减券; - } -} diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/UcCouponAddParam.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/UcCouponAddParam.cs deleted file mode 100644 index 36f255d..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/UcCouponAddParam.cs +++ /dev/null @@ -1,101 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Drawing; -using System.Data; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace TemuKJD.KJDForms.SalesCenterForms -{ - public partial class UcCouponAddParam : UserControl - { - int number = 1; - - public UcCouponAddParam() - { - InitializeComponent(); - - this.Load += CouponAddParamControl_Load; - } - - public UcCouponAddParam(int _number) - { - InitializeComponent(); - - number = _number; - this.Load += CouponAddParamControl_Load; - } - - public delegate void CloseCouponAdd(object obj); - public event CloseCouponAdd OnClose; - - private void CouponAddParamControl_Load(object sender, EventArgs e) - { - cmbType.SelectedIndex = cmbUserCountLimited.SelectedIndex = 0; - txtName.Text = "新人券" + number; - this.dtpStartApplyTime.Value = DateTime.Now.Date; - this.dtpEndApplyTime.Value = this.dtpStartApplyTime.Value.AddDays(1).AddSeconds(-1); - } - - private void lblClose_Click(object sender, EventArgs e) - { - if (this.Parent != null) - { - this.Parent.Controls.Remove(this); - OnClose?.Invoke(this); - } - } - - private void cmbType_SelectedIndexChanged(object sender, EventArgs e) - { - if (cmbType.Text == "商品折扣券") - { - this.lblDiscountText.Text = "折扣"; - this.lblDiscountText.AutoSize = true; - this.lblDiscountText.Width = 32; - nudCredit.Minimum = 0.1M; - nudCredit.Increment = 0.1M; - nudCredit.Maximum = 9.9M; - nudCredit.DecimalPlaces = 1; - nudCredit.Value = 9.9M; - lblCreditText.Text = "折"; - lblCreditText.Visible = true; - nudThresHold.Visible = false; - lblThresHold.Visible = false; - } - else if (cmbType.Text == "商品直减券") - { - this.lblDiscountText.Text = "直减"; - this.lblDiscountText.AutoSize = true; - this.lblDiscountText.Width = 32; - nudCredit.Minimum = 1; - nudCredit.Increment = 1; - nudCredit.Maximum = 1000; - nudCredit.DecimalPlaces = 0; - nudCredit.Value = 1; - lblCreditText.Text = "元"; - lblCreditText.Visible = true; - nudThresHold.Visible = false; - lblThresHold.Visible = false; - } - else - { - this.lblDiscountText.Text = "满"; - this.lblDiscountText.AutoSize = false; - this.lblDiscountText.Width = 16; - nudCredit.Minimum = 1; - nudCredit.Increment = 1; - nudCredit.Maximum = 99999; - nudCredit.DecimalPlaces = 0; - nudCredit.Value = 1; - lblCreditText.Text = "元"; - lblCreditText.Visible = false; - nudThresHold.Visible = true; - lblThresHold.Visible = true; - } - } - } -} diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/UcCouponAddParam.resx b/TEMUKJD/KJDForms/SalesCenterForms/Old/UcCouponAddParam.resx deleted file mode 100644 index 1af7de1..0000000 --- a/TEMUKJD/KJDForms/SalesCenterForms/Old/UcCouponAddParam.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/SalesCenterForms/SalesCenterForm.cs b/TEMUKJD/KJDForms/SalesCenterForms/SalesCenterForm.cs index 8d167af..5a1edc8 100644 --- a/TEMUKJD/KJDForms/SalesCenterForms/SalesCenterForm.cs +++ b/TEMUKJD/KJDForms/SalesCenterForms/SalesCenterForm.cs @@ -14,10 +14,6 @@ namespace TemuKJD.KJDForms.SalesCenterForms { public partial class SalesCenterForm : BaseForm { - public Lazy seckillingAndLimitedSalesForm = new Lazy(); - public Lazy fullMinusForm = new Lazy(); - public Lazy groupBuyFrom = new Lazy(); - public Lazy couponForm = new Lazy(); public Lazy marketingActivityForm = new Lazy(); public SalesCenterForm() @@ -115,18 +111,6 @@ namespace TemuKJD.KJDForms.SalesCenterForms case "店铺优化": SetForm(marketingActivityForm.Value); break; - case "新人券": - SetForm(couponForm.Value); - break; - case "限时限量购": - SetForm(seckillingAndLimitedSalesForm.Value); - break; - case "满减": - SetForm(fullMinusForm.Value); - break; - case "拼团": - SetForm(groupBuyFrom.Value); - break; } })); }).Start(); diff --git a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateAddForm.Designer.cs b/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateAddForm.Designer.cs deleted file mode 100644 index a9a2189..0000000 --- a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateAddForm.Designer.cs +++ /dev/null @@ -1,572 +0,0 @@ -namespace TemuKJD.KJDForms.ShopForms -{ - partial class FreightTemplateAddForm - { - /// - /// 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(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.label12 = new System.Windows.Forms.Label(); - this.panel2 = new System.Windows.Forms.Panel(); - this.rbcost0 = new System.Windows.Forms.RadioButton(); - this.rbcost1 = new System.Windows.Forms.RadioButton(); - this.rbcost2 = new System.Windows.Forms.RadioButton(); - this.panel1 = new System.Windows.Forms.Panel(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.txtFixCost = new System.Windows.Forms.TextBox(); - this.groupTemplate = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.label4 = new System.Windows.Forms.Label(); - this.rbtype1 = new System.Windows.Forms.RadioButton(); - this.rbtype2 = new System.Windows.Forms.RadioButton(); - this.txtNum = new System.Windows.Forms.TextBox(); - this.label5 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.txtPrice = new System.Windows.Forms.TextBox(); - this.txtAddPrcie = new System.Windows.Forms.TextBox(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.txtAddNum = new System.Windows.Forms.TextBox(); - this.cobCity = new System.Windows.Forms.ComboBox(); - this.cobProvince = new System.Windows.Forms.ComboBox(); - this.label9 = new System.Windows.Forms.Label(); - this.btnSave = new TemuKJD.UserControls.ButtonEx(); - this.label2 = new System.Windows.Forms.Label(); - this.txtTemplate = new System.Windows.Forms.TextBox(); - this.label1 = new System.Windows.Forms.Label(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.groupTemplate.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); - this.splitContainer2.Panel1.SuspendLayout(); - this.splitContainer2.Panel2.SuspendLayout(); - this.splitContainer2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgvShop)).BeginInit(); - this.SuspendLayout(); - // - // splitContainer1 - // - this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; - 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.label12); - this.splitContainer1.Panel1.Controls.Add(this.panel2); - this.splitContainer1.Panel1.Controls.Add(this.panel1); - this.splitContainer1.Panel1.Controls.Add(this.groupTemplate); - this.splitContainer1.Panel1.Controls.Add(this.cobCity); - this.splitContainer1.Panel1.Controls.Add(this.cobProvince); - this.splitContainer1.Panel1.Controls.Add(this.label9); - this.splitContainer1.Panel1.Controls.Add(this.btnSave); - this.splitContainer1.Panel1.Controls.Add(this.label2); - this.splitContainer1.Panel1.Controls.Add(this.txtTemplate); - this.splitContainer1.Panel1.Controls.Add(this.label1); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.splitContainer2); - this.splitContainer1.Size = new System.Drawing.Size(894, 564); - this.splitContainer1.SplitterDistance = 110; - this.splitContainer1.TabIndex = 1; - // - // label12 - // - this.label12.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.label12.AutoSize = true; - this.label12.BackColor = System.Drawing.Color.Transparent; - this.label12.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label12.ForeColor = System.Drawing.Color.Red; - this.label12.Location = new System.Drawing.Point(12, 73); - this.label12.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(248, 17); - this.label12.TabIndex = 421; - this.label12.Text = "运费模板设置,店铺需要登录,才能设置成功"; - this.label12.Visible = false; - // - // panel2 - // - this.panel2.Controls.Add(this.rbcost0); - this.panel2.Controls.Add(this.rbcost1); - this.panel2.Controls.Add(this.rbcost2); - this.panel2.Location = new System.Drawing.Point(346, 8); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(230, 25); - this.panel2.TabIndex = 401; - // - // rbcost0 - // - this.rbcost0.AutoSize = true; - this.rbcost0.Checked = true; - this.rbcost0.Location = new System.Drawing.Point(3, 3); - this.rbcost0.Name = "rbcost0"; - this.rbcost0.Size = new System.Drawing.Size(74, 21); - this.rbcost0.TabIndex = 340; - this.rbcost0.TabStop = true; - this.rbcost0.Text = "阶梯计价"; - this.rbcost0.UseVisualStyleBackColor = true; - this.rbcost0.CheckedChanged += new System.EventHandler(this.rbcost0_CheckedChanged); - // - // rbcost1 - // - this.rbcost1.AutoSize = true; - this.rbcost1.Location = new System.Drawing.Point(78, 3); - this.rbcost1.Name = "rbcost1"; - this.rbcost1.Size = new System.Drawing.Size(74, 21); - this.rbcost1.TabIndex = 341; - this.rbcost1.Text = "固定运费"; - this.rbcost1.UseVisualStyleBackColor = true; - this.rbcost1.CheckedChanged += new System.EventHandler(this.rbcost1_CheckedChanged); - // - // rbcost2 - // - this.rbcost2.AutoSize = true; - this.rbcost2.Location = new System.Drawing.Point(153, 3); - this.rbcost2.Name = "rbcost2"; - this.rbcost2.Size = new System.Drawing.Size(74, 21); - this.rbcost2.TabIndex = 342; - this.rbcost2.Text = "卖家包邮"; - this.rbcost2.UseVisualStyleBackColor = true; - this.rbcost2.CheckedChanged += new System.EventHandler(this.rbcost2_CheckedChanged); - // - // panel1 - // - this.panel1.Controls.Add(this.label10); - this.panel1.Controls.Add(this.label11); - this.panel1.Controls.Add(this.txtFixCost); - this.panel1.Location = new System.Drawing.Point(346, 35); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(142, 30); - this.panel1.TabIndex = 400; - this.panel1.Visible = false; - // - // label10 - // - this.label10.AutoSize = true; - this.label10.Location = new System.Drawing.Point(2, 6); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(56, 17); - this.label10.TabIndex = 397; - this.label10.Text = "固定运费"; - // - // label11 - // - this.label11.AutoSize = true; - this.label11.Location = new System.Drawing.Point(117, 7); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(20, 17); - this.label11.TabIndex = 399; - this.label11.Text = "元"; - // - // txtFixCost - // - this.txtFixCost.Location = new System.Drawing.Point(63, 3); - this.txtFixCost.Name = "txtFixCost"; - this.txtFixCost.Size = new System.Drawing.Size(49, 23); - this.txtFixCost.TabIndex = 398; - // - // groupTemplate - // - this.groupTemplate.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.groupTemplate.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND; - this.groupTemplate.Controls.Add(this.label4); - this.groupTemplate.Controls.Add(this.rbtype1); - this.groupTemplate.Controls.Add(this.rbtype2); - this.groupTemplate.Controls.Add(this.txtNum); - this.groupTemplate.Controls.Add(this.label5); - this.groupTemplate.Controls.Add(this.label3); - this.groupTemplate.Controls.Add(this.label8); - this.groupTemplate.Controls.Add(this.txtPrice); - this.groupTemplate.Controls.Add(this.txtAddPrcie); - this.groupTemplate.Controls.Add(this.label6); - this.groupTemplate.Controls.Add(this.label7); - this.groupTemplate.Controls.Add(this.txtAddNum); - this.groupTemplate.Location = new System.Drawing.Point(282, 35); - this.groupTemplate.Name = "groupTemplate"; - this.groupTemplate.Size = new System.Drawing.Size(514, 61); - this.groupTemplate.TabIndex = 396; - this.groupTemplate.TabStop = false; - // - // label4 - // - this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(5, 35); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(56, 17); - this.label4.TabIndex = 346; - this.label4.Text = "默认运费"; - // - // rbtype1 - // - this.rbtype1.AutoSize = true; - this.rbtype1.Checked = true; - this.rbtype1.Location = new System.Drawing.Point(67, 4); - this.rbtype1.Name = "rbtype1"; - this.rbtype1.Size = new System.Drawing.Size(62, 21); - this.rbtype1.TabIndex = 344; - this.rbtype1.TabStop = true; - this.rbtype1.Text = "按件数"; - this.rbtype1.UseVisualStyleBackColor = true; - this.rbtype1.CheckedChanged += new System.EventHandler(this.rbtype1_CheckedChanged); - // - // rbtype2 - // - this.rbtype2.AutoSize = true; - this.rbtype2.Location = new System.Drawing.Point(142, 4); - this.rbtype2.Name = "rbtype2"; - this.rbtype2.Size = new System.Drawing.Size(62, 21); - this.rbtype2.TabIndex = 345; - this.rbtype2.Text = "按重量"; - this.rbtype2.UseVisualStyleBackColor = true; - this.rbtype2.CheckedChanged += new System.EventHandler(this.rbtype2_CheckedChanged); - // - // txtNum - // - this.txtNum.Location = new System.Drawing.Point(66, 32); - this.txtNum.Name = "txtNum"; - this.txtNum.Size = new System.Drawing.Size(49, 23); - this.txtNum.TabIndex = 347; - // - // label5 - // - this.label5.AutoSize = true; - this.label5.Location = new System.Drawing.Point(118, 35); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(56, 17); - this.label5.TabIndex = 348; - this.label5.Text = "件以内,"; - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(4, 4); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(56, 17); - this.label3.TabIndex = 343; - this.label3.Text = "计价方式"; - // - // label8 - // - this.label8.AutoSize = true; - this.label8.Location = new System.Drawing.Point(489, 35); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(20, 17); - this.label8.TabIndex = 354; - this.label8.Text = "元"; - // - // txtPrice - // - this.txtPrice.Location = new System.Drawing.Point(178, 32); - this.txtPrice.Name = "txtPrice"; - this.txtPrice.Size = new System.Drawing.Size(49, 23); - this.txtPrice.TabIndex = 349; - // - // txtAddPrcie - // - this.txtAddPrcie.Location = new System.Drawing.Point(437, 32); - this.txtAddPrcie.Name = "txtAddPrcie"; - this.txtAddPrcie.Size = new System.Drawing.Size(49, 23); - this.txtAddPrcie.TabIndex = 353; - // - // label6 - // - this.label6.AutoSize = true; - this.label6.Location = new System.Drawing.Point(230, 35); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(68, 17); - this.label6.TabIndex = 350; - this.label6.Text = "元,每增加"; - // - // label7 - // - this.label7.AutoSize = true; - this.label7.Location = new System.Drawing.Point(353, 35); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(80, 17); - this.label7.TabIndex = 352; - this.label7.Text = "件,增加运费"; - // - // txtAddNum - // - this.txtAddNum.Location = new System.Drawing.Point(301, 32); - this.txtAddNum.Name = "txtAddNum"; - this.txtAddNum.Size = new System.Drawing.Size(49, 23); - this.txtAddNum.TabIndex = 351; - // - // cobCity - // - this.cobCity.FormattingEnabled = true; - this.cobCity.Location = new System.Drawing.Point(181, 33); - this.cobCity.Name = "cobCity"; - this.cobCity.Size = new System.Drawing.Size(87, 25); - this.cobCity.TabIndex = 376; - // - // cobProvince - // - this.cobProvince.FormattingEnabled = true; - this.cobProvince.Location = new System.Drawing.Point(75, 33); - this.cobProvince.Name = "cobProvince"; - this.cobProvince.Size = new System.Drawing.Size(101, 25); - this.cobProvince.TabIndex = 375; - this.cobProvince.SelectedIndexChanged += new System.EventHandler(this.cobProvince_SelectedIndexChanged); - // - // label9 - // - this.label9.AutoSize = true; - this.label9.Location = new System.Drawing.Point(12, 35); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(56, 17); - this.label9.TabIndex = 374; - this.label9.Text = "发货地区"; - // - // btnSave - // - this.btnSave.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSave.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnSave.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSave.ForeColor = System.Drawing.Color.White; - this.btnSave.Location = new System.Drawing.Point(814, 37); - this.btnSave.Margin = new System.Windows.Forms.Padding(2); - this.btnSave.Name = "btnSave"; - this.btnSave.Size = new System.Drawing.Size(66, 26); - this.btnSave.TabIndex = 373; - this.btnSave.Text = "保存"; - this.btnSave.UseVisualStyleBackColor = false; - this.btnSave.Click += new System.EventHandler(this.btnSave_Click); - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(284, 9); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(56, 17); - this.label2.TabIndex = 339; - this.label2.Text = "运费设置"; - // - // txtTemplate - // - this.txtTemplate.Location = new System.Drawing.Point(74, 6); - this.txtTemplate.Name = "txtTemplate"; - this.txtTemplate.Size = new System.Drawing.Size(195, 23); - this.txtTemplate.TabIndex = 338; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(12, 9); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(56, 17); - this.label1.TabIndex = 337; - this.label1.Text = "模板名称"; - // - // splitContainer2 - // - this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; - this.splitContainer2.Location = new System.Drawing.Point(0, 0); - this.splitContainer2.Name = "splitContainer2"; - this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; - // - // splitContainer2.Panel1 - // - this.splitContainer2.Panel1.Controls.Add(this.dgvShop); - this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 4, 0); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Controls.Add(this.statusBar); - this.splitContainer2.Size = new System.Drawing.Size(894, 450); - this.splitContainer2.SplitterDistance = 420; - this.splitContainer2.TabIndex = 0; - // - // dgvShop - // - this.dgvShop.AllowUserToAddRows = false; - this.dgvShop.AllowUserToDeleteRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - this.dgvShop.BackgroundColor = System.Drawing.Color.White; - this.dgvShop.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.dgvShop.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.dgvShop.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; - 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.colShopId, - this.colShopName, - this.colStatus}); - this.dgvShop.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvShop.Location = new System.Drawing.Point(4, 0); - this.dgvShop.Name = "dgvShop"; - this.dgvShop.ReadOnly = true; - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvShop.RowsDefaultCellStyle = dataGridViewCellStyle3; - this.dgvShop.RowTemplate.Height = 23; - this.dgvShop.Size = new System.Drawing.Size(886, 420); - this.dgvShop.TabIndex = 7; - this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick); - // - // colSelect - // - this.colSelect.FillWeight = 50F; - 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 = 60; - // - // colShopId - // - this.colShopId.HeaderText = "店铺"; - this.colShopId.Name = "colShopId"; - this.colShopId.ReadOnly = true; - this.colShopId.Width = 80; - // - // colShopName - // - this.colShopName.FillWeight = 150F; - this.colShopName.HeaderText = "店铺名称"; - this.colShopName.Name = "colShopName"; - this.colShopName.ReadOnly = true; - this.colShopName.Resizable = System.Windows.Forms.DataGridViewTriState.True; - // - // colStatus - // - this.colStatus.HeaderText = "消息"; - this.colStatus.Name = "colStatus"; - this.colStatus.ReadOnly = true; - this.colStatus.Width = 120; - // - // 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(894, 26); - this.statusBar.TabIndex = 3; - // - // ShopFreightTemplateForm - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(894, 564); - this.Controls.Add(this.splitContainer1); - this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Name = "ShopFreightTemplateForm"; - this.Text = "运费模板"; - this.Load += new System.EventHandler(this.ShopFreightTemplateForm_Load); - this.splitContainer1.Panel1.ResumeLayout(false); - this.splitContainer1.Panel1.PerformLayout(); - this.splitContainer1.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); - this.splitContainer1.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel2.PerformLayout(); - this.panel1.ResumeLayout(false); - this.panel1.PerformLayout(); - this.groupTemplate.ResumeLayout(false); - this.groupTemplate.PerformLayout(); - this.splitContainer2.Panel1.ResumeLayout(false); - this.splitContainer2.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); - this.splitContainer2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.dgvShop)).EndInit(); - this.ResumeLayout(false); - - } - - #endregion - private System.Windows.Forms.SplitContainer splitContainer1; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.TextBox txtAddPrcie; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.TextBox txtAddNum; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.TextBox txtPrice; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.TextBox txtNum; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.RadioButton rbtype2; - private System.Windows.Forms.RadioButton rbtype1; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.RadioButton rbcost2; - private System.Windows.Forms.RadioButton rbcost1; - private System.Windows.Forms.RadioButton rbcost0; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.TextBox txtTemplate; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.ComboBox cobCity; - private System.Windows.Forms.ComboBox cobProvince; - private System.Windows.Forms.Label label9; - private UserControls.ButtonEx btnSave; - private UserComponent.UcGroupBoxEx groupTemplate; - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.TextBox txtFixCost; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.SplitContainer splitContainer2; - private UserComponent.DataGridViewEx dgvShop; - private UserControls.StatusBarUserControl statusBar; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopId; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopName; - private System.Windows.Forms.DataGridViewTextBoxColumn colStatus; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateAddForm.cs b/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateAddForm.cs deleted file mode 100644 index c856e3e..0000000 --- a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateAddForm.cs +++ /dev/null @@ -1,338 +0,0 @@ -using AllBase; -using AllBase.Helper; -using AllBase.Model.Result; -using TemuKJD.Extension; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Web.UI.WebControls; -using System.Windows.Forms; -using Work; -using TemuKJD.KJDForms.BaseForms; - -namespace TemuKJD.KJDForms.ShopForms -{ - /// - /// 运费模板管理窗口 - /// - public partial class FreightTemplateAddForm : BaseForm - { - public static List ids = new List(); - - public FreightTemplateAddForm() - { - InitializeComponent(); - } - - - private void btnSave_Click(object sender, EventArgs e) - { - string template_name = txtTemplate.Text.ToString(); - int num = 0; - decimal price = 0; - int addnum = 0; - decimal addPrcie = 0; - if (rbcost0.Checked) - { - num = Convert.ToInt32(txtNum.Text); - price = Convert.ToDecimal(txtPrice.Text); - addnum = Convert.ToInt32(txtAddNum.Text); - addPrcie = Convert.ToDecimal(txtAddPrcie.Text); - } - var prov = cobProvince.SelectedItem as ListItem; - int pid = int.Parse(prov.Value); - var city = cobCity.SelectedItem as ListItem; - int cid = int.Parse(city.Value); - ids = dgvShop.Rows.Cast() - .Where(r1 => r1.Cells["colSelect"].Value.ToString().ToLower() == "true") - .Select(r2 => r2.Cells["colShopId"].Value?.ToString()).ToList(); - - Task.Run(() => { - for (int i = 0; i < GlobalConfig.ShopLoginList.Count; i++) - { - var shop = GlobalConfig.ShopLoginList[i]; - if (!ids.Any(id => id == shop.ShopId) || shop.LoginStatus != "登录成功") - continue; - string data = "template_name=" + template_name + "&product_province=" + pid + "&product_city=" + cid; - //固定运费 - if (rbcost1.Checked) - { - decimal fix = Convert.ToDecimal(txtFixCost.Text); - data += "&rule_type=1&calculate_type=2&fixed_amount=" + fix * 100 + "&appid=1&__token=" + shop.ShopToken + "&_bid=ffa_order&aid=4272&_lid=478386445810"; - } - //卖家包邮 - if (rbcost2.Checked) - { - data += "&rule_type=2&calculate_type=2&fixed_amount=0&appid=1&__token=" + shop.ShopToken + "&_bid=ffa_order&aid=4272&_lid=478386445810"; - } - // 阶梯计价 - if (rbcost0.Checked) - { - if (rbtype1.Checked) - { - data += "&rule_type=0&calculate_type=2&fixed_amount=0&columns[0][calculate_type]=2&columns[0][first_weight]=&columns[0][first_weight_price]=&columns[0][first_num]=" + num - + "&columns[0][first_num_price]=" + price - + "&columns[0][add_weight]=&columns[0][add_weight_price]=&columns[0][add_num]=" + addnum - + "&columns[0][add_num_price]=" + addPrcie - + "&columns[0][is_default]=1&columns[0][is_limited]=0&columns[0][is_over_free]=0&appid=1&__token=" + shop.ShopToken - + "&_bid=ffa_order&aid=4272&_lid=390305557852"; - } - else - { - data += "&rule_type=0&calculate_type=1&fixed_amount=0&columns[0][calculate_type]=1&columns[0][first_weight]=" + num - + "&columns[0][first_weight_price]=" + price - + "&columns[0][first_num]=&columns[0][first_num_price]=&columns[0][add_weight]=" + addnum - + "&columns[0][add_weight_price]=" + addPrcie + "&columns[0][add_num]=&columns[0][add_num_price]=&columns[0][is_default]=1&columns[0][is_limited]=0&columns[0][is_over_free]=0&appid=1&__token=" + shop.ShopToken - + "&_bid=ffa_order&aid=4272&_lid=482676755100"; - } - } - //提交 - string url = "https://fxg.jinritemai.com/freight/template/createShopFreightTemplate?appid=1&__token=" + shop.ShopToken - + "&_bid=ffa_order&aid=4272&_lid=390305621361&_signature=" + shop.Signature + ""; - string refere = "https://fxg.jinritemai.com/ffa/morder/logistics/freight-edit"; - data = HttpUtility.UrlEncode(data, Encoding.UTF8).Replace("%3d", "=").Replace("%26", "&"); - string html = GetPostTaobaoHtml.UploadFxgPost(url, refere, true, data, shop.Cookies); - long template_id = BaseRegex.GetLongJson(ref html, "template_id"); - if (template_id > 0) - { - RefreshDataGridView(shop, "运费模板设置成功"); - RefreshLog(shop.ShopAccount + "运费模板设置成功"); - - } - else - { - RefreshDataGridView(shop, "运费模板设置失败"); - RefreshLog(shop.ShopAccount + "运费模板设置失败"); - - } - - } - }); - - } - int count = 0; - public void RefreshDataGridView(ShopLoginInfo shop, string message) - { - this.Invoke(new Action(() => - { - count++; - for (int i = 0; i < dgvShop.Rows.Count; i++) - { - if (shop.ShopId == dgvShop.Rows[i].Cells["colShopId"].Value.ToString()) - { - dgvShop.Rows[i].Cells["colStatus"].Value = message; - break; - } - } - })); - } - public void RefreshLog(string message) - { - Task.Run(() => - { - if (this.Created) - { - this.Invoke(new Action(() => - { - this.statusBar.lblTaskStatus.Text = message; - this.statusBar.pgbTaskProgress.Maximum = ids.Count; - this.statusBar.pgbTaskProgress.Value = count; - this.statusBar.pgbTaskProgress.Text = count + "/" + ids.Count; - })); - } - }); - } - private void rbcost1_CheckedChanged(object sender, EventArgs e) - { - if (rbcost1.Checked) - { - panel1.Visible = true; - } - else - { - panel1.Visible = false; - } - } - - private void rbcost0_CheckedChanged(object sender, EventArgs e) - { - if (rbcost0.Checked) - { - groupTemplate.Visible = true; - } - else - { - groupTemplate.Visible = false; - } - } - - private void rbcost2_CheckedChanged(object sender, EventArgs e) - { - if (rbcost2.Checked) - { - groupTemplate.Visible = false; - panel1.Visible = false; - } - } - - private void rbtype1_CheckedChanged(object sender, EventArgs e) - { - if (rbtype1.Checked) - { - label5.Text = "件以内,"; - label7.Text = "件,增加运费"; - } - } - - private void rbtype2_CheckedChanged(object sender, EventArgs e) - { - if (rbtype2.Checked) - { - label5.Text = "kg以内,"; - label7.Text = "kg,增加运费"; - } - } - - private void cobProvince_SelectedIndexChanged(object sender, EventArgs e) - { - var area = cobProvince.SelectedItem as ListItem; - int id = int.Parse(area.Value); - var shop = GlobalConfig.ShopLoginList.Where(s => s.LoginStatus == "登录成功").FirstOrDefault(); - if (shop == null) - return; - List list = new List(); - //获取市区 - string url = "https://fxg.jinritemai.com/common/index/getCity?version=1&id=" + id + "&appid=1&__token=" + shop?.ShopToken - + "&_bid=ffa_order&aid=4272&_lid=368236870254&_signature=" + shop?.Signature + ""; - string refere = "https://fxg.jinritemai.com/ffa/morder/logistics/freight-edit"; - string html = GetPostTaobaoHtml.UploadTaobao(url, refere, true, shop?.Cookies); - long catId = BaseRegex.GetLongJson(ref html, "id"); - var m = BaseRegex.GetMatchRegex(ref html, @"{""city_id""[\w\W]+?}"); - for (int i = 0; m != null && i < m.Count; i++) - { - string temp = m[i].Groups[0].Value; - long pid = BaseRegex.GetLongJson(ref temp, "city_id"); - string pname = BaseRegex.GetStringJson(ref temp, "city"); - list.Add(new ListItem(pname, pid.ToString())); - } - cobCity.DisplayMember = "Text"; - cobCity.ValueMember = "Value"; - cobCity.DataSource = list; - } - - private void ShopFreightTemplateForm_Load(object sender, EventArgs e) - { - this.dgvShop.AddSelectorColumn("colSelect"); - ReadLoad(); - loadArea(); - } - string temp = ""; - public void loadArea() - { - //var shop = GlobalConfig.DouShopLoginList[0]; - //List list = new List(); - //cobProvince.Items.Clear(); - //string url = "https://fxg.jinritemai.com/common/index/getProvince?version=1&only_mainland=1&appid=1&__token=" + shop.ShopToken - // + "&_bid=ffa_order&aid=4272&_lid=468369728881&_signature=" + shop.Signature; - //string refere = "https://fxg.jinritemai.com/ffa/morder/logistics/freight-edit"; - //string html = GetPostTaobaoHtml.UploadTaobao(url, refere, true, shop.Cookies); - //var m = BaseRegex.GetMatchRegex(ref html, @"{""province_id""[\w\W]+?}"); - //for (int i = 0; m != null && i < m.Count; i++) - //{ - // string item = m[i].Groups[0].Value; - // long pid = BaseRegex.GetLongJson(ref item, "province_id"); - // string pname = BaseRegex.GetStringJson(ref item, "province"); - // list.Add(new ListItem(pname, pid.ToString())); - // temp += pname+":"+pid+"\r\n"; - //} - List list = new List(); - List striparr = prov.Split(new string[] { "\r\n" }, StringSplitOptions.None).ToList(); - for (int i = 0; i < striparr.Count; i++) - { - string item = striparr[i]; - string pname = item.Split(':')[0]; - string pid = item.Split(':')[1]; - list.Add(new ListItem(pname, pid)); - } - cobProvince.DisplayMember = "Text"; - cobProvince.ValueMember = "Value"; - cobProvince.DataSource = list; - } - public void ReadLoad() - { - for (int i = 0; i < GlobalConfig.ShopLoginList.Count; i++) - { - var shop = GlobalConfig.ShopLoginList[i]; - dgvShop.Rows.Add(false, shop.ShopId, shop.ShopAccount, 0, shop.LoginStatus); - } - } - - private void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - //string name = dgvShop.Columns[e.ColumnIndex].HeaderText; - string colId = dgvShop.Columns[e.ColumnIndex].Name; - if (colId == "colSelect") - { - bool ok = !bool.Parse(dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value.ToString()); - dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value = ok; - } - //if (name == "全选") - //{ - // bool ok = !bool.Parse(dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value.ToString()); - // string shopName = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ToString(); - // dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value = ok; - // if (ok) - // { - // ids.Add(shopName); - // } - // else - // { - // if (ids.Select(id => id == shopName).FirstOrDefault()) - // { - // ids.Remove(shopName); - // } - // } - //} - } - - string prov = @"安徽省:34 -北京市:11 -重庆市:50 -福建省:35 -广东省:44 -甘肃省:62 -广西壮族自治区:45 -贵州省:52 -河北省:13 -湖北省:42 -黑龙江省:23 -河南省:41 -湖南省:43 -海南省:46 -吉林省:22 -江苏省:32 -江西省:36 -辽宁省:21 -内蒙古自治区:15 -宁夏回族自治区:64 -青海省:63 -四川省:51 -山东省:37 -上海市:31 -山西省:14 -陕西省:61 -天津市:12 -新疆维吾尔自治区:65 -西藏自治区:54 -云南省:53 -浙江省:33"; - } -} diff --git a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateAddForm.resx b/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateAddForm.resx deleted file mode 100644 index 688c06f..0000000 --- a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateAddForm.resx +++ /dev/null @@ -1,129 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateForm.Designer.cs b/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateForm.Designer.cs deleted file mode 100644 index 79bccf8..0000000 --- a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateForm.Designer.cs +++ /dev/null @@ -1,1134 +0,0 @@ - -namespace TemuKJD.KJDForms.ShopForms -{ - partial class FreightTemplateForm - { - /// - /// 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(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.ucGroupBoxEx3 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.cmbCity = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.cmbProvince = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.label3 = new System.Windows.Forms.Label(); - this.pnlSamePostage = new System.Windows.Forms.FlowLayoutPanel(); - this.label12 = new System.Windows.Forms.Label(); - this.txtSamePostagePrice = new System.Windows.Forms.TextBox(); - this.label13 = new System.Windows.Forms.Label(); - this.panel3 = new System.Windows.Forms.Panel(); - this.rbSamePostage = new System.Windows.Forms.RadioButton(); - this.rbStepPostage = new System.Windows.Forms.RadioButton(); - this.rbNoPostage = new System.Windows.Forms.RadioButton(); - this.pnlStepPostage = new System.Windows.Forms.FlowLayoutPanel(); - this.rbWithCount = new System.Windows.Forms.RadioButton(); - this.rbWithWeight = new System.Windows.Forms.RadioButton(); - this.label2 = new System.Windows.Forms.Label(); - this.txtWeightOrCountStep1 = new System.Windows.Forms.TextBox(); - this.lblWeightOrCountStep1 = new System.Windows.Forms.Label(); - this.txtWeightOrCountPrice1 = new System.Windows.Forms.TextBox(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.txtWeightOrCountStep2 = new System.Windows.Forms.TextBox(); - this.lblWeightOrCountStep2 = new System.Windows.Forms.Label(); - this.txtWeightOrCountPrice2 = new System.Windows.Forms.TextBox(); - this.label8 = new System.Windows.Forms.Label(); - this.panel2 = new System.Windows.Forms.Panel(); - this.textBox2 = new System.Windows.Forms.TextBox(); - this.btnSetNotArea = new DevComponents.DotNetBar.PanelEx(); - this.nudGroupCount = new System.Windows.Forms.NumericUpDown(); - this.label11 = new System.Windows.Forms.Label(); - this.panel1 = new System.Windows.Forms.Panel(); - this.btnSetName = new DevComponents.DotNetBar.PanelEx(); - this.rbCustomName = new System.Windows.Forms.RadioButton(); - this.rbAutoName = new System.Windows.Forms.RadioButton(); - this.label7 = new System.Windows.Forms.Label(); - this.btnAdd = new DevComponents.DotNetBar.PanelEx(); - this.btnStopAdd = new DevComponents.DotNetBar.PanelEx(); - this.chkLimited = new System.Windows.Forms.CheckBox(); - this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.txtSearchText = new System.Windows.Forms.TextBox(); - this.label4 = new System.Windows.Forms.Label(); - this.btnSearch = new DevComponents.DotNetBar.PanelEx(); - this.btnStop = new DevComponents.DotNetBar.PanelEx(); - this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.btnRefreshShop = new DevComponents.DotNetBar.PanelEx(); - this.splitContainer3 = new System.Windows.Forms.SplitContainer(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colBuyAuthStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colLoginStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colCanUse = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colMessage = 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.toolTip1 = new System.Windows.Forms.ToolTip(this.components); - this.panelEx1 = new DevComponents.DotNetBar.PanelEx(); - this.tabPage2 = new System.Windows.Forms.TabPage(); - this.tabPage1 = new System.Windows.Forms.TabPage(); - this.ucTabControl1 = new TemuKJD.UserComponent.UcTabControl(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - this.ucGroupBoxEx3.SuspendLayout(); - this.pnlSamePostage.SuspendLayout(); - this.panel3.SuspendLayout(); - this.pnlStepPostage.SuspendLayout(); - this.panel2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.nudGroupCount)).BeginInit(); - this.panel1.SuspendLayout(); - this.ucGroupBoxEx2.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.dgvShop)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).BeginInit(); - this.splitContainer4.Panel1.SuspendLayout(); - this.splitContainer4.Panel2.SuspendLayout(); - this.splitContainer4.SuspendLayout(); - this.panelEx1.SuspendLayout(); - this.ucTabControl1.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.ucGroupBoxEx2); - this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx1); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.splitContainer3); - this.splitContainer1.Size = new System.Drawing.Size(1127, 592); - this.splitContainer1.SplitterDistance = 150; - this.splitContainer1.TabIndex = 8; - // - // 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.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.cmbCity); - this.ucGroupBoxEx3.Controls.Add(this.cmbProvince); - this.ucGroupBoxEx3.Controls.Add(this.label3); - this.ucGroupBoxEx3.Controls.Add(this.pnlSamePostage); - this.ucGroupBoxEx3.Controls.Add(this.panel3); - this.ucGroupBoxEx3.Controls.Add(this.pnlStepPostage); - this.ucGroupBoxEx3.Controls.Add(this.panel2); - this.ucGroupBoxEx3.Controls.Add(this.nudGroupCount); - this.ucGroupBoxEx3.Controls.Add(this.label11); - this.ucGroupBoxEx3.Controls.Add(this.panel1); - this.ucGroupBoxEx3.Controls.Add(this.btnAdd); - this.ucGroupBoxEx3.Controls.Add(this.btnStopAdd); - this.ucGroupBoxEx3.Controls.Add(this.chkLimited); - this.ucGroupBoxEx3.Location = new System.Drawing.Point(386, 2); - this.ucGroupBoxEx3.Name = "ucGroupBoxEx3"; - this.ucGroupBoxEx3.Size = new System.Drawing.Size(738, 150); - this.ucGroupBoxEx3.TabIndex = 470; - this.ucGroupBoxEx3.TabStop = false; - this.ucGroupBoxEx3.Text = "新建运费模板"; - // - // cmbCity - // - this.cmbCity.DisplayMember = "Text"; - this.cmbCity.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbCity.FormattingEnabled = true; - this.cmbCity.ItemHeight = 18; - this.cmbCity.Location = new System.Drawing.Point(283, 28); - this.cmbCity.Name = "cmbCity"; - this.cmbCity.Size = new System.Drawing.Size(90, 24); - this.cmbCity.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbCity.TabIndex = 650; - this.cmbCity.Text = "请选择"; - // - // cmbProvince - // - this.cmbProvince.DisplayMember = "Text"; - this.cmbProvince.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbProvince.FormattingEnabled = true; - this.cmbProvince.ItemHeight = 18; - this.cmbProvince.Location = new System.Drawing.Point(189, 29); - this.cmbProvince.Name = "cmbProvince"; - this.cmbProvince.Size = new System.Drawing.Size(90, 24); - this.cmbProvince.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbProvince.TabIndex = 649; - this.cmbProvince.Text = "请选择"; - this.cmbProvince.SelectedIndexChanged += new System.EventHandler(this.cmbProvince_SelectedIndexChanged); - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(130, 32); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(68, 17); - this.label3.TabIndex = 648; - this.label3.Text = "发货地区:"; - // - // pnlSamePostage - // - this.pnlSamePostage.Controls.Add(this.label12); - this.pnlSamePostage.Controls.Add(this.txtSamePostagePrice); - this.pnlSamePostage.Controls.Add(this.label13); - this.pnlSamePostage.Location = new System.Drawing.Point(495, 88); - this.pnlSamePostage.Name = "pnlSamePostage"; - this.pnlSamePostage.Size = new System.Drawing.Size(194, 23); - this.pnlSamePostage.TabIndex = 641; - this.pnlSamePostage.Visible = false; - // - // label12 - // - this.label12.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label12.AutoSize = true; - this.label12.Location = new System.Drawing.Point(3, 3); - this.label12.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(56, 17); - this.label12.TabIndex = 612; - this.label12.Text = "固定运费"; - // - // txtSamePostagePrice - // - this.txtSamePostagePrice.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.txtSamePostagePrice.Location = new System.Drawing.Point(59, 0); - this.txtSamePostagePrice.Margin = new System.Windows.Forms.Padding(0); - this.txtSamePostagePrice.Name = "txtSamePostagePrice"; - this.txtSamePostagePrice.Size = new System.Drawing.Size(45, 23); - this.txtSamePostagePrice.TabIndex = 613; - // - // label13 - // - this.label13.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label13.AutoSize = true; - this.label13.Location = new System.Drawing.Point(104, 3); - this.label13.Margin = new System.Windows.Forms.Padding(0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(20, 17); - this.label13.TabIndex = 614; - this.label13.Text = "元"; - // - // panel3 - // - this.panel3.Controls.Add(this.rbSamePostage); - this.panel3.Controls.Add(this.rbStepPostage); - this.panel3.Controls.Add(this.rbNoPostage); - this.panel3.Location = new System.Drawing.Point(21, 88); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(250, 23); - this.panel3.TabIndex = 640; - // - // rbSamePostage - // - this.rbSamePostage.AutoSize = true; - this.rbSamePostage.Location = new System.Drawing.Point(83, 1); - this.rbSamePostage.Name = "rbSamePostage"; - this.rbSamePostage.Size = new System.Drawing.Size(74, 21); - this.rbSamePostage.TabIndex = 466; - this.rbSamePostage.Text = "固定运费"; - this.rbSamePostage.UseVisualStyleBackColor = true; - this.rbSamePostage.CheckedChanged += new System.EventHandler(this.rbSamePostage_CheckedChanged); - // - // rbStepPostage - // - this.rbStepPostage.AutoSize = true; - this.rbStepPostage.Location = new System.Drawing.Point(3, 1); - this.rbStepPostage.Name = "rbStepPostage"; - this.rbStepPostage.Size = new System.Drawing.Size(74, 21); - this.rbStepPostage.TabIndex = 465; - this.rbStepPostage.Text = "阶梯计价"; - this.rbStepPostage.UseVisualStyleBackColor = true; - this.rbStepPostage.CheckedChanged += new System.EventHandler(this.rbStepPostage_CheckedChanged); - // - // rbNoPostage - // - this.rbNoPostage.AutoSize = true; - this.rbNoPostage.Checked = true; - this.rbNoPostage.Location = new System.Drawing.Point(163, 1); - this.rbNoPostage.Name = "rbNoPostage"; - this.rbNoPostage.Size = new System.Drawing.Size(74, 21); - this.rbNoPostage.TabIndex = 467; - this.rbNoPostage.TabStop = true; - this.rbNoPostage.Text = "卖家包邮"; - this.rbNoPostage.UseVisualStyleBackColor = true; - // - // pnlStepPostage - // - this.pnlStepPostage.Controls.Add(this.rbWithCount); - this.pnlStepPostage.Controls.Add(this.rbWithWeight); - this.pnlStepPostage.Controls.Add(this.label2); - this.pnlStepPostage.Controls.Add(this.txtWeightOrCountStep1); - this.pnlStepPostage.Controls.Add(this.lblWeightOrCountStep1); - this.pnlStepPostage.Controls.Add(this.txtWeightOrCountPrice1); - this.pnlStepPostage.Controls.Add(this.label5); - this.pnlStepPostage.Controls.Add(this.label6); - this.pnlStepPostage.Controls.Add(this.txtWeightOrCountStep2); - this.pnlStepPostage.Controls.Add(this.lblWeightOrCountStep2); - this.pnlStepPostage.Controls.Add(this.txtWeightOrCountPrice2); - this.pnlStepPostage.Controls.Add(this.label8); - this.pnlStepPostage.Location = new System.Drawing.Point(21, 116); - this.pnlStepPostage.Name = "pnlStepPostage"; - this.pnlStepPostage.Size = new System.Drawing.Size(668, 23); - this.pnlStepPostage.TabIndex = 639; - this.pnlStepPostage.Visible = false; - // - // rbWithCount - // - this.rbWithCount.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.rbWithCount.AutoSize = true; - this.rbWithCount.Checked = true; - this.rbWithCount.Location = new System.Drawing.Point(3, 1); - this.rbWithCount.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); - this.rbWithCount.Name = "rbWithCount"; - this.rbWithCount.Size = new System.Drawing.Size(62, 21); - this.rbWithCount.TabIndex = 615; - this.rbWithCount.TabStop = true; - this.rbWithCount.Text = "按件数"; - this.rbWithCount.UseVisualStyleBackColor = true; - // - // rbWithWeight - // - this.rbWithWeight.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.rbWithWeight.AutoSize = true; - this.rbWithWeight.Location = new System.Drawing.Point(65, 1); - this.rbWithWeight.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0); - this.rbWithWeight.Name = "rbWithWeight"; - this.rbWithWeight.Size = new System.Drawing.Size(62, 21); - this.rbWithWeight.TabIndex = 616; - this.rbWithWeight.Text = "按重量"; - this.rbWithWeight.UseVisualStyleBackColor = true; - this.rbWithWeight.CheckedChanged += new System.EventHandler(this.rbWithWeight_CheckedChanged); - // - // label2 - // - this.label2.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(130, 3); - this.label2.Margin = new System.Windows.Forms.Padding(0); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(56, 17); - this.label2.TabIndex = 605; - this.label2.Text = "默认运费"; - // - // txtWeightOrCountStep1 - // - this.txtWeightOrCountStep1.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.txtWeightOrCountStep1.Location = new System.Drawing.Point(186, 0); - this.txtWeightOrCountStep1.Margin = new System.Windows.Forms.Padding(0); - this.txtWeightOrCountStep1.Name = "txtWeightOrCountStep1"; - this.txtWeightOrCountStep1.Size = new System.Drawing.Size(45, 23); - this.txtWeightOrCountStep1.TabIndex = 606; - // - // lblWeightOrCountStep1 - // - this.lblWeightOrCountStep1.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.lblWeightOrCountStep1.AutoSize = true; - this.lblWeightOrCountStep1.Location = new System.Drawing.Point(231, 3); - this.lblWeightOrCountStep1.Margin = new System.Windows.Forms.Padding(0); - this.lblWeightOrCountStep1.Name = "lblWeightOrCountStep1"; - this.lblWeightOrCountStep1.Size = new System.Drawing.Size(56, 17); - this.lblWeightOrCountStep1.TabIndex = 607; - this.lblWeightOrCountStep1.Text = "件以内,"; - // - // txtWeightOrCountPrice1 - // - this.txtWeightOrCountPrice1.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.txtWeightOrCountPrice1.Location = new System.Drawing.Point(287, 0); - this.txtWeightOrCountPrice1.Margin = new System.Windows.Forms.Padding(0); - this.txtWeightOrCountPrice1.Name = "txtWeightOrCountPrice1"; - this.txtWeightOrCountPrice1.Size = new System.Drawing.Size(45, 23); - this.txtWeightOrCountPrice1.TabIndex = 608; - // - // label5 - // - this.label5.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label5.AutoSize = true; - this.label5.Location = new System.Drawing.Point(332, 3); - this.label5.Margin = new System.Windows.Forms.Padding(0); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(32, 17); - this.label5.TabIndex = 609; - this.label5.Text = "元,"; - // - // label6 - // - this.label6.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label6.AutoSize = true; - this.label6.Location = new System.Drawing.Point(364, 3); - this.label6.Margin = new System.Windows.Forms.Padding(0); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(44, 17); - this.label6.TabIndex = 610; - this.label6.Text = "每增加"; - // - // txtWeightOrCountStep2 - // - this.txtWeightOrCountStep2.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.txtWeightOrCountStep2.Location = new System.Drawing.Point(408, 0); - this.txtWeightOrCountStep2.Margin = new System.Windows.Forms.Padding(0); - this.txtWeightOrCountStep2.Name = "txtWeightOrCountStep2"; - this.txtWeightOrCountStep2.Size = new System.Drawing.Size(45, 23); - this.txtWeightOrCountStep2.TabIndex = 611; - // - // lblWeightOrCountStep2 - // - this.lblWeightOrCountStep2.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.lblWeightOrCountStep2.AutoSize = true; - this.lblWeightOrCountStep2.Location = new System.Drawing.Point(453, 3); - this.lblWeightOrCountStep2.Margin = new System.Windows.Forms.Padding(0); - this.lblWeightOrCountStep2.Name = "lblWeightOrCountStep2"; - this.lblWeightOrCountStep2.Size = new System.Drawing.Size(80, 17); - this.lblWeightOrCountStep2.TabIndex = 612; - this.lblWeightOrCountStep2.Text = "件,增加运费"; - // - // txtWeightOrCountPrice2 - // - this.txtWeightOrCountPrice2.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.txtWeightOrCountPrice2.Location = new System.Drawing.Point(533, 0); - this.txtWeightOrCountPrice2.Margin = new System.Windows.Forms.Padding(0); - this.txtWeightOrCountPrice2.Name = "txtWeightOrCountPrice2"; - this.txtWeightOrCountPrice2.Size = new System.Drawing.Size(45, 23); - this.txtWeightOrCountPrice2.TabIndex = 613; - // - // label8 - // - this.label8.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label8.AutoSize = true; - this.label8.Location = new System.Drawing.Point(578, 3); - this.label8.Margin = new System.Windows.Forms.Padding(0); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(20, 17); - this.label8.TabIndex = 614; - this.label8.Text = "元"; - // - // panel2 - // - this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.panel2.Controls.Add(this.textBox2); - this.panel2.Controls.Add(this.btnSetNotArea); - this.panel2.Location = new System.Drawing.Point(151, 59); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(483, 23); - this.panel2.TabIndex = 638; - // - // textBox2 - // - this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.textBox2.Location = new System.Drawing.Point(0, 0); - this.textBox2.Name = "textBox2"; - this.textBox2.ReadOnly = true; - this.textBox2.Size = new System.Drawing.Size(417, 23); - this.textBox2.TabIndex = 638; - // - // btnSetNotArea - // - this.btnSetNotArea.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnSetNotArea.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnSetNotArea.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnSetNotArea.DisabledBackColor = System.Drawing.Color.Empty; - this.btnSetNotArea.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSetNotArea.Location = new System.Drawing.Point(423, 2); - this.btnSetNotArea.Name = "btnSetNotArea"; - this.btnSetNotArea.Size = new System.Drawing.Size(56, 19); - this.btnSetNotArea.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnSetNotArea.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSetNotArea.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSetNotArea.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnSetNotArea.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnSetNotArea.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnSetNotArea.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnSetNotArea.Style.GradientAngle = 90; - this.btnSetNotArea.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnSetNotArea.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSetNotArea.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSetNotArea.TabIndex = 634; - this.btnSetNotArea.Text = "设置地区"; - this.btnSetNotArea.Click += new System.EventHandler(this.btnSetNotArea_Click); - // - // nudGroupCount - // - this.nudGroupCount.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.nudGroupCount.Location = new System.Drawing.Point(75, 29); - this.nudGroupCount.Maximum = new decimal(new int[] { - 10000, - 0, - 0, - 0}); - this.nudGroupCount.Minimum = new decimal(new int[] { - 1, - 0, - 0, - 0}); - this.nudGroupCount.Name = "nudGroupCount"; - this.nudGroupCount.Size = new System.Drawing.Size(49, 23); - this.nudGroupCount.TabIndex = 603; - this.nudGroupCount.Value = new decimal(new int[] { - 10, - 0, - 0, - 0}); - // - // label11 - // - this.label11.AutoSize = true; - this.label11.Location = new System.Drawing.Point(18, 32); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(68, 17); - this.label11.TabIndex = 602; - this.label11.Text = "新建数量:"; - // - // panel1 - // - this.panel1.Controls.Add(this.btnSetName); - this.panel1.Controls.Add(this.rbCustomName); - this.panel1.Controls.Add(this.rbAutoName); - this.panel1.Controls.Add(this.label7); - this.panel1.Location = new System.Drawing.Point(380, 29); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(254, 23); - this.panel1.TabIndex = 601; - // - // btnSetName - // - this.btnSetName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnSetName.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnSetName.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnSetName.DisabledBackColor = System.Drawing.Color.Empty; - this.btnSetName.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSetName.Location = new System.Drawing.Point(194, 2); - this.btnSetName.Name = "btnSetName"; - this.btnSetName.Size = new System.Drawing.Size(56, 19); - this.btnSetName.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnSetName.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSetName.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSetName.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnSetName.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnSetName.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnSetName.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnSetName.Style.GradientAngle = 90; - this.btnSetName.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnSetName.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSetName.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSetName.TabIndex = 634; - this.btnSetName.Text = "设置名称"; - this.btnSetName.Click += new System.EventHandler(this.btnSetName_Click); - // - // rbCustomName - // - this.rbCustomName.AutoSize = true; - this.rbCustomName.Location = new System.Drawing.Point(133, 1); - this.rbCustomName.Name = "rbCustomName"; - this.rbCustomName.Size = new System.Drawing.Size(62, 21); - this.rbCustomName.TabIndex = 465; - this.rbCustomName.Text = "自定义"; - this.rbCustomName.UseVisualStyleBackColor = true; - // - // rbAutoName - // - this.rbAutoName.AutoSize = true; - this.rbAutoName.Checked = true; - this.rbAutoName.Location = new System.Drawing.Point(60, 1); - this.rbAutoName.Name = "rbAutoName"; - this.rbAutoName.Size = new System.Drawing.Size(74, 21); - this.rbAutoName.TabIndex = 464; - this.rbAutoName.TabStop = true; - this.rbAutoName.Text = "自动设置"; - this.rbAutoName.UseVisualStyleBackColor = true; - // - // label7 - // - this.label7.AutoSize = true; - this.label7.Location = new System.Drawing.Point(1, 3); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(68, 17); - this.label7.TabIndex = 638; - this.label7.Text = "模板名称:"; - // - // btnAdd - // - this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnAdd.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnAdd.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnAdd.DisabledBackColor = System.Drawing.Color.Empty; - this.btnAdd.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnAdd.Location = new System.Drawing.Point(642, 29); - this.btnAdd.Name = "btnAdd"; - this.btnAdd.Size = new System.Drawing.Size(80, 23); - this.btnAdd.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnAdd.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnAdd.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnAdd.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnAdd.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnAdd.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnAdd.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnAdd.Style.GradientAngle = 90; - this.btnAdd.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnAdd.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnAdd.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnAdd.TabIndex = 427; - this.btnAdd.Text = "开始创建"; - this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); - // - // btnStopAdd - // - this.btnStopAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnStopAdd.CanvasColor = System.Drawing.SystemColors.Control; - this.btnStopAdd.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnStopAdd.DisabledBackColor = System.Drawing.Color.Empty; - this.btnStopAdd.Location = new System.Drawing.Point(642, 59); - this.btnStopAdd.Name = "btnStopAdd"; - this.btnStopAdd.Size = new System.Drawing.Size(80, 23); - this.btnStopAdd.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopAdd.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStopAdd.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStopAdd.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnStopAdd.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopAdd.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnStopAdd.Style.GradientAngle = 90; - this.btnStopAdd.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopAdd.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopAdd.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopAdd.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopAdd.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnStopAdd.TabIndex = 405; - this.btnStopAdd.Text = "停止创建"; - this.btnStopAdd.Click += new System.EventHandler(this.btnStopAdd_Click); - // - // chkLimited - // - this.chkLimited.AutoSize = true; - this.chkLimited.Location = new System.Drawing.Point(22, 61); - this.chkLimited.Name = "chkLimited"; - this.chkLimited.Size = new System.Drawing.Size(131, 21); - this.chkLimited.TabIndex = 657; - this.chkLimited.Text = "限制下单区域(可选)"; - this.chkLimited.UseVisualStyleBackColor = true; - // - // ucGroupBoxEx2 - // - this.ucGroupBoxEx2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left))); - this.ucGroupBoxEx2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.ucGroupBoxEx2.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND; - this.ucGroupBoxEx2.Controls.Add(this.txtSearchText); - this.ucGroupBoxEx2.Controls.Add(this.label4); - this.ucGroupBoxEx2.Controls.Add(this.btnSearch); - this.ucGroupBoxEx2.Controls.Add(this.btnStop); - this.ucGroupBoxEx2.Location = new System.Drawing.Point(147, 2); - this.ucGroupBoxEx2.Name = "ucGroupBoxEx2"; - this.ucGroupBoxEx2.Size = new System.Drawing.Size(239, 150); - this.ucGroupBoxEx2.TabIndex = 469; - this.ucGroupBoxEx2.TabStop = false; - this.ucGroupBoxEx2.Text = "搜索运费模板"; - // - // txtSearchText - // - this.txtSearchText.Location = new System.Drawing.Point(73, 29); - this.txtSearchText.Name = "txtSearchText"; - this.txtSearchText.Size = new System.Drawing.Size(146, 23); - this.txtSearchText.TabIndex = 594; - // - // label4 - // - this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(16, 32); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(56, 17); - this.label4.TabIndex = 474; - this.label4.Text = "模板名称"; - // - // btnSearch - // - 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(73, 59); - this.btnSearch.Name = "btnSearch"; - this.btnSearch.Size = new System.Drawing.Size(70, 23); - 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))))); - this.btnSearch.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnSearch.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnSearch.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnSearch.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnSearch.Style.GradientAngle = 90; - this.btnSearch.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnSearch.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSearch.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSearch.TabIndex = 427; - this.btnSearch.Text = "开始搜索"; - this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click); - // - // btnStop - // - this.btnStop.CanvasColor = System.Drawing.SystemColors.Control; - this.btnStop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnStop.DisabledBackColor = System.Drawing.Color.Empty; - this.btnStop.Location = new System.Drawing.Point(149, 59); - this.btnStop.Name = "btnStop"; - this.btnStop.Size = new System.Drawing.Size(70, 23); - this.btnStop.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnStop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStop.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnStop.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStop.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnStop.Style.GradientAngle = 90; - this.btnStop.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnStop.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnStop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStop.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnStop.TabIndex = 405; - this.btnStop.Text = "停止搜索"; - this.btnStop.Click += new System.EventHandler(this.btnStopSearch_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.btnRefreshShop); - this.ucGroupBoxEx1.Location = new System.Drawing.Point(3, 2); - this.ucGroupBoxEx1.Name = "ucGroupBoxEx1"; - this.ucGroupBoxEx1.Size = new System.Drawing.Size(144, 150); - this.ucGroupBoxEx1.TabIndex = 399; - this.ucGroupBoxEx1.TabStop = false; - this.ucGroupBoxEx1.Text = "基础"; - // - // btnRefreshShop - // - this.btnRefreshShop.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - 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(17, 31); - this.btnRefreshShop.Name = "btnRefreshShop"; - this.btnRefreshShop.Size = new System.Drawing.Size(110, 24); - 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); - // - // 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(1127, 438); - this.splitContainer3.SplitterDistance = 408; - 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.dgvShop); - this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 0, 0); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Controls.Add(this.panelEx1); - this.splitContainer2.Panel2.Padding = new System.Windows.Forms.Padding(0, 0, 4, 0); - this.splitContainer2.Size = new System.Drawing.Size(1127, 408); - this.splitContainer2.SplitterDistance = 270; - this.splitContainer2.TabIndex = 0; - // - // dgvShop - // - this.dgvShop.AllowUserToAddRows = false; - this.dgvShop.AllowUserToDeleteRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - 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.colShopId, - this.colShopName, - this.colBuyAuthStatus, - this.colLoginStatus, - this.colCanUse, - this.colMessage}); - this.dgvShop.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvShop.Location = new System.Drawing.Point(4, 0); - this.dgvShop.Name = "dgvShop"; - this.dgvShop.ReadOnly = true; - this.dgvShop.RowHeadersWidth = 30; - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvShop.RowsDefaultCellStyle = dataGridViewCellStyle3; - this.dgvShop.RowTemplate.Height = 23; - this.dgvShop.Size = new System.Drawing.Size(266, 408); - this.dgvShop.TabIndex = 6; - this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick); - // - // colSelect - // - 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; - // - // colShopId - // - this.colShopId.HeaderText = "店铺"; - this.colShopId.Name = "colShopId"; - this.colShopId.ReadOnly = true; - this.colShopId.Visible = false; - this.colShopId.Width = 55; - // - // colShopName - // - this.colShopName.FillWeight = 150F; - this.colShopName.HeaderText = "店铺名称"; - this.colShopName.Name = "colShopName"; - this.colShopName.ReadOnly = true; - this.colShopName.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colShopName.Width = 75; - // - // colBuyAuthStatus - // - this.colBuyAuthStatus.HeaderText = "授权状态"; - this.colBuyAuthStatus.Name = "colBuyAuthStatus"; - this.colBuyAuthStatus.ReadOnly = true; - this.colBuyAuthStatus.Width = 65; - // - // colLoginStatus - // - this.colLoginStatus.HeaderText = "登录状态"; - this.colLoginStatus.Name = "colLoginStatus"; - this.colLoginStatus.ReadOnly = true; - this.colLoginStatus.Width = 65; - // - // 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; - // - // colMessage - // - this.colMessage.HeaderText = "消息"; - this.colMessage.Name = "colMessage"; - this.colMessage.ReadOnly = true; - this.colMessage.Visible = false; - this.colMessage.Width = 120; - // - // 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.Size = new System.Drawing.Size(1127, 26); - this.splitContainer4.SplitterDistance = 1012; - 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(1012, 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(17, 0); - 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 = "清空结果"; - // - // panelEx1 - // - this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control; - this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.panelEx1.Controls.Add(this.ucTabControl1); - this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty; - this.panelEx1.Dock = System.Windows.Forms.DockStyle.Fill; - this.panelEx1.Location = new System.Drawing.Point(0, 0); - this.panelEx1.Name = "panelEx1"; - this.panelEx1.Padding = new System.Windows.Forms.Padding(1); - this.panelEx1.Size = new System.Drawing.Size(849, 408); - this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center; - this.panelEx1.Style.BackColor1.Color = System.Drawing.Color.White; - this.panelEx1.Style.BackColor2.Color = System.Drawing.Color.White; - 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.TabIndex = 183; - // - // tabPage2 - // - this.tabPage2.Location = new System.Drawing.Point(2, 26); - this.tabPage2.Name = "tabPage2"; - this.tabPage2.Padding = new System.Windows.Forms.Padding(3); - this.tabPage2.Size = new System.Drawing.Size(841, 376); - this.tabPage2.TabIndex = 1; - this.tabPage2.Text = "店铺2"; - this.tabPage2.UseVisualStyleBackColor = true; - // - // tabPage1 - // - this.tabPage1.Location = new System.Drawing.Point(2, 26); - this.tabPage1.Name = "tabPage1"; - this.tabPage1.Padding = new System.Windows.Forms.Padding(3); - this.tabPage1.Size = new System.Drawing.Size(841, 376); - this.tabPage1.TabIndex = 0; - this.tabPage1.Text = "店铺1"; - this.tabPage1.UseVisualStyleBackColor = true; - // - // ucTabControl1 - // - this.ucTabControl1.BackgroundColor = System.Drawing.Color.White; - this.ucTabControl1.Controls.Add(this.tabPage1); - this.ucTabControl1.Controls.Add(this.tabPage2); - this.ucTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.ucTabControl1.Location = new System.Drawing.Point(1, 1); - this.ucTabControl1.Name = "ucTabControl1"; - this.ucTabControl1.Padding = new System.Drawing.Point(10, 3); - this.ucTabControl1.SelectedIndex = 0; - this.ucTabControl1.ShowCloseButton = true; - this.ucTabControl1.Size = new System.Drawing.Size(847, 406); - this.ucTabControl1.TabIndex = 0; - this.ucTabControl1.TabSelectColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.ucTabControl1.TabTextColor = System.Drawing.Color.Gray; - // - // FreightTemplateForm - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1127, 592); - this.Controls.Add(this.splitContainer1); - this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Name = "FreightTemplateForm"; - this.Text = "FreightTemplateForm"; - this.Load += new System.EventHandler(this.FreightTemplateForm_Load); - this.VisibleChanged += new System.EventHandler(this.FreightTemplateForm_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.pnlSamePostage.ResumeLayout(false); - this.pnlSamePostage.PerformLayout(); - this.panel3.ResumeLayout(false); - this.panel3.PerformLayout(); - this.pnlStepPostage.ResumeLayout(false); - this.pnlStepPostage.PerformLayout(); - this.panel2.ResumeLayout(false); - this.panel2.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.nudGroupCount)).EndInit(); - this.panel1.ResumeLayout(false); - this.panel1.PerformLayout(); - this.ucGroupBoxEx2.ResumeLayout(false); - this.ucGroupBoxEx2.PerformLayout(); - this.ucGroupBoxEx1.ResumeLayout(false); - 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.dgvShop)).EndInit(); - this.splitContainer4.Panel1.ResumeLayout(false); - this.splitContainer4.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).EndInit(); - this.splitContainer4.ResumeLayout(false); - this.panelEx1.ResumeLayout(false); - this.ucTabControl1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.SplitContainer splitContainer1; - private UserComponent.UcGroupBoxEx ucGroupBoxEx2; - private System.Windows.Forms.TextBox txtSearchText; - private System.Windows.Forms.Label label4; - private DevComponents.DotNetBar.PanelEx btnSearch; - private DevComponents.DotNetBar.PanelEx btnStop; - 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 System.Windows.Forms.SplitContainer splitContainer4; - private UserControls.StatusBarUserControl statusBar; - private DevComponents.DotNetBar.PanelEx btnClear; - private UserComponent.UcGroupBoxEx ucGroupBoxEx3; - private DevComponents.DotNetBar.PanelEx btnAdd; - private DevComponents.DotNetBar.PanelEx btnStopAdd; - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.RadioButton rbAutoName; - private System.Windows.Forms.RadioButton rbCustomName; - private DevComponents.DotNetBar.PanelEx btnSetName; - private System.Windows.Forms.Panel panel2; - private DevComponents.DotNetBar.PanelEx btnSetNotArea; - private System.Windows.Forms.NumericUpDown nudGroupCount; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.FlowLayoutPanel pnlSamePostage; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.TextBox txtSamePostagePrice; - private System.Windows.Forms.Label label13; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.RadioButton rbSamePostage; - private System.Windows.Forms.RadioButton rbStepPostage; - private System.Windows.Forms.RadioButton rbNoPostage; - private System.Windows.Forms.FlowLayoutPanel pnlStepPostage; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.TextBox txtWeightOrCountStep1; - private System.Windows.Forms.Label lblWeightOrCountStep1; - private System.Windows.Forms.TextBox txtWeightOrCountPrice1; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.TextBox txtWeightOrCountStep2; - private System.Windows.Forms.Label lblWeightOrCountStep2; - private System.Windows.Forms.TextBox txtWeightOrCountPrice2; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.TextBox textBox2; - private System.Windows.Forms.ToolTip toolTip1; - private System.Windows.Forms.RadioButton rbWithCount; - private System.Windows.Forms.RadioButton rbWithWeight; - private DevComponents.DotNetBar.Controls.ComboBoxEx cmbCity; - private DevComponents.DotNetBar.Controls.ComboBoxEx cmbProvince; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopId; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopName; - private System.Windows.Forms.DataGridViewTextBoxColumn colBuyAuthStatus; - private System.Windows.Forms.DataGridViewTextBoxColumn colLoginStatus; - private System.Windows.Forms.DataGridViewCheckBoxColumn colCanUse; - private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; - private System.Windows.Forms.CheckBox chkLimited; - private DevComponents.DotNetBar.PanelEx panelEx1; - private UserComponent.UcTabControl ucTabControl1; - private System.Windows.Forms.TabPage tabPage1; - private System.Windows.Forms.TabPage tabPage2; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateForm.cs b/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateForm.cs deleted file mode 100644 index 9ed164a..0000000 --- a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateForm.cs +++ /dev/null @@ -1,665 +0,0 @@ -using AllBase; -using AllBase.Helper; -using AllBase.Model.Param.OrderManage; -using AllBase.Model.Result; -using TemuKJD.Extension; -using TemuKJD.KJDForms.BaseForms; -using NaiBa.Util.Extension; -using NaiBa.Util.Helper; -using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; -using Work; -using Work.DouyinApiClass; - -namespace TemuKJD.KJDForms.ShopForms -{ - public partial class FreightTemplateForm : BaseForm - { - public static List LstAddress = new List(); - public static List CustomFreightTemplateNames { get; set; } = new List(); - - public static Dictionary AreaNotSendDict = new Dictionary(); - - private CheckBox chkSelectAll = null; - public CancellationTokenSource cancellationTokenSource { get; set; } = null; - - public FreightTemplateForm() - { - InitializeComponent(); - } - - private void FreightTemplateForm_Load(object sender, EventArgs e) - { - pnlSamePostage.Location = pnlStepPostage.Location; - - this.ucTabControl1.TabPages.Clear(); - - CustomFreightTemplateNames = ConfigHelper.LoadConfig>("freight_template_custom_names"); - if (CustomFreightTemplateNames == null) - { - CustomFreightTemplateNames = new List(); - } - - AreaNotSendDict = ConfigHelper.LoadConfig>("not_send_address"); - if (AreaNotSendDict == null) - AreaNotSendDict = new Dictionary(); - - chkSelectAll = dgvShop.Columns["colSelect"].AddHeaderCheckBox(HorizontalAlignment.Center, 0, 0, null, null, false); - dgvShop.Columns["colSelect"].HeaderText = ""; - chkSelectAll.Width = chkSelectAll.Height = 13; - chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged; - - GetAddress("0"); - - var provinceNames = LstAddress.Where(a => a.level == "Province").Select(a => a.name as object).ToArray(); - this.cmbProvince.Items.Clear(); - this.cmbProvince.Items.AddRange(provinceNames); - this.cmbProvince.SelectedIndex = 0; - } - - private void FreightTemplateForm_VisibleChanged(object sender, EventArgs e) - { - if (Visible == true) - RefreshShop(); - } - - private void btnRefreshShop_Click(object sender, EventArgs e) - { - RefreshShop(); - } - - private void RefreshShop() - { - // 店铺Id - var selectIds = dgvShop.Rows.Cast().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) - { - BindShop(shopEntity, selectIds); - } - } - private void BindShop(ShopLoginInfo shopEntity, List selectShopId = null) - { - if (shopEntity == null) - return; - if (selectShopId == null) - selectShopId = new List(); - - bool canUse = shopEntity.BuyApiAuth.ApiAuthStatus == "授权成功" && shopEntity.LoginStatus == "登录成功"; - var row = dgvShop.Rows.Cast().FirstOrDefault(p => p.Cells.GetCellValueFromColumnName("colShopId").ParseToString() == shopEntity.ShopId); - if (row == null) - { - this.dgvShop.Rows.Add( - selectShopId.Contains(shopEntity.ShopId) && canUse, - shopEntity.ShopId, - shopEntity.ShopAccount, - shopEntity.BuyApiAuth.ApiAuthStatus, - shopEntity.LoginStatus, - canUse, - string.Empty - ); - } - else - { - row.Cells["colSelect"].Value = selectShopId.Contains(shopEntity.ShopId) && canUse; - row.Cells["colShopName"].Value = shopEntity.ShopAccount; - row.Cells["colBuyAuthStatus"].Value = shopEntity.BuyApiAuth.ApiAuthStatus; - row.Cells["colLoginStatus"].Value = shopEntity.LoginStatus; - row.Cells["colCanUse"].Value = canUse; - } - } - - - 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.ApiAuthStatus == "授权成功" && s.LoginStatus == "登录成功").Select(ss => ss.ShopId); - foreach (DataGridViewRow row in dgvShop.Rows) - { - if (list.Any(l => l == row.Cells["colShopId"]?.Value?.ToString())) - row.Cells["colSelect"].Value = true; - } - } - } - - private void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - string headerText = dgvShop.Columns[e.ColumnIndex].HeaderText; - string columnName = dgvShop.Columns[e.ColumnIndex].Name; - long shopId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToLong(); - string shopName = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ToString(); - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId.ToString()); - var row = dgvShop.Rows[e.RowIndex]; - switch (columnName) - { - case "colSelect": - if (row.Cells["colCanUse"].Value.ParseToBool()) - { - row.Cells["colSelect"].Value = !row.Cells["colSelect"].Value.ParseToBool(); - if (dgvShop.Rows.Cast().All(r => r.Cells["colSelect"].Value.ParseToBool())) - chkSelectAll.Checked = true; - else - chkSelectAll.Checked = false; - } - else - { - BaseMsgForm.ShowInfo("店铺未授权或未登录!"); - } - 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; - } - - string searchText = txtSearchText.Text.Trim(); - btnSearch.Enabled = false; - - cancellationTokenSource = new CancellationTokenSource(); - Task.Run(() => - { - var lstShopIdTemp = new List(); - lstShopIdTemp.AddRange(lstShopId); - - foreach (var shopId in lstShopIdTemp) - { - if (cancellationTokenSource.IsCancellationRequested) - break; - - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId); - if (shop == null) - continue; - - if (ShopListForm.Instance == null) - ShopListForm.Instance = new ShopListForm(); - ShopListForm.Instance.CheckShopLogin(new string[] { shop.ShopAccount }, false); - if (shop.LoginStatus != "登录成功") - { - Invoke(new Action(() => - { - var row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) - { - row.Cells["colLoginStatus"].Value = "未登录"; - row.Cells["colCanUse"].Value = false; - } - })); - continue; - } - - FreightTemplateListForm templateListForm = null; - Invoke(new Action(() => - { - var tab = this.ucTabControl1.TabPages.Cast().FirstOrDefault(t => t.Text == shop.ShopAccount && t.Name == "tab" + shop.ShopId); - if (tab == null) - { - tab = new TabPage(); - tab.Name = "tab" + shop.ShopId; - tab.Text = shop.ShopAccount; - this.ucTabControl1.TabPages.Add(tab); - - var freightTemplateListForm = new FreightTemplateListForm(shop); - //freightTemplateListForm.SeckillingAndLimitedSalesForm = this; - freightTemplateListForm.TopLevel = false; - freightTemplateListForm.Left = 0; - freightTemplateListForm.Top = 0; - freightTemplateListForm.FormBorderStyle = FormBorderStyle.None; - freightTemplateListForm.AutoSize = true; - freightTemplateListForm.Dock = DockStyle.Fill; - freightTemplateListForm.Show(); - tab.Controls.Add(freightTemplateListForm); - templateListForm = freightTemplateListForm; - } - - if (tab.Controls.Count > 0) - { - templateListForm = tab.Controls[0] as FreightTemplateListForm; - this.ucTabControl1.SelectedTab = tab; - } - })); - - if (templateListForm != null) - { - templateListForm.GetTemplate(this.txtSearchText.Text); - } - } - Invoke(new Action(() => - { - btnSearch.Enabled = true; - })); - }, cancellationTokenSource.Token); - } - - public static AddressAreaInfo GetAddress(string areaId) - { - if (LstAddress.Count == 0) - LstAddress = ConfigHelper.LoadConfig>("address_area"); - if (LstAddress == null) - LstAddress = new List(); - if (string.IsNullOrEmpty(areaId) || areaId == "0") - { - if (LstAddress.Count > 0) - return null; - } - - var addr = LstAddress.FirstOrDefault(a => a.code.ToString() == areaId); - if (addr != null && (addr.sub_districts != null || addr.level == "Town")) - return addr; - - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.BuyApiAuth.ApiAuthStatus == "授权成功"); - if (shop == null) - { - BaseMsgForm.ShowError("请确保有店铺拍单授权成功!"); - return null; - } - - DouyinApi api = new DouyinApi(shop); - var result = api.GetDouyinAddressAreaByBuyApi(areaId); - if (!result.Contains("\"code\":10000")) - { - var msg = BaseRegex.GetStringJson(ref result, "msg") + ":" + BaseRegex.GetStringJson(ref result, "sub_msg"); - BaseMsgForm.ShowError(msg); - return null; - } - - if (string.IsNullOrEmpty(areaId) || areaId == "0") - { - JObject obj = JObject.Parse(result); - List provinceList = AllBase.JsonHelper.DeserializeJsonToList(obj["data"].ToString()); - foreach (var province in provinceList) - { - LstAddress.Add(new AddressAreaInfo() - { - father_code = 1, - code = province.province_id.ParseToInt(), - level = "Province", - name = province.province, - }); - } - ConfigHelper.SaveConfig("address_area", LstAddress); - return LstAddress.FirstOrDefault(); - } - else - { - JObject obj = JObject.Parse(result); - AddressAreaInfo area = AllBase.JsonHelper.DeserializeJsonToObject(obj["data"].FirstOrDefault().ToString()); - if (area != null) - { - var areaExist = LstAddress.FirstOrDefault(a => a.name == area.name && a.level == area.level); - if (areaExist == null) - { - LstAddress.Add(area); - ConfigHelper.SaveConfig("address_area", LstAddress); - return area; - } - else - { - areaExist.sub_districts = area.sub_districts; - areaExist.father_code = area.father_code; - ConfigHelper.SaveConfig("address_area", LstAddress); - return areaExist; - } - - foreach (var area1 in area.sub_districts) - { - - } - } - } - - return null; - } - - private void cmbProvince_SelectedIndexChanged(object sender, EventArgs e) - { - var area = LstAddress.FirstOrDefault(a => a.name == cmbProvince.Text && a.level == "Province"); - if (area != null) - { - if (area.sub_districts == null || area.sub_districts.Count == 0) - { - area = GetAddress(area.code.ToString()); - } - var cityArr = area.sub_districts.Select(a => a.name).ToArray(); - this.cmbCity.Items.Clear(); - this.cmbCity.Items.AddRange(cityArr); - this.cmbCity.SelectedIndex = 0; - } - } - - private void btnStopSearch_Click(object sender, EventArgs e) - { - if (cancellationTokenSource != null) - cancellationTokenSource.Cancel(); - } - - private void btnSetName_Click(object sender, EventArgs e) - { - FreightTemplateNameForm customNameForm = new FreightTemplateNameForm(); - customNameForm.ShowDialog(); - } - - private void rbStepPostage_CheckedChanged(object sender, EventArgs e) - { - pnlStepPostage.Visible = rbStepPostage.Checked; - } - - private void rbSamePostage_CheckedChanged(object sender, EventArgs e) - { - pnlSamePostage.Visible = rbSamePostage.Checked; - } - - private void rbWithWeight_CheckedChanged(object sender, EventArgs e) - { - if (rbWithWeight.Checked) - { - lblWeightOrCountStep1.Text = "kg以内,"; - lblWeightOrCountStep2.Text = "kg,增加运费"; - } - else - { - lblWeightOrCountStep1.Text = "件以内,"; - lblWeightOrCountStep2.Text = "件,增加运费"; - } - } - - private void btnSetNotArea_Click(object sender, EventArgs e) - { - FreightTemplateNotSendAreaForm form = new FreightTemplateNotSendAreaForm(); - form.ShowDialog(); - } - - private void btnAdd_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; - } - - int templateCount = nudGroupCount.Value.ParseToInt(); - bool isLimit = chkLimited.Checked; - - List nameList = new List(); - if (rbCustomName.Checked) - { - if (CustomFreightTemplateNames.Count < templateCount) - { - BaseMsgForm.ShowError("自定义模板名称数量不足"); - return; - } - for (int i = 0; i < templateCount; i++) - { - nameList.Add(CustomFreightTemplateNames[i]); - } - } - else - { - var name = "模板" + DateTime.Now.ToString("yyMMddHHmmss"); - for (int i = 0; i < templateCount; i++) - { - nameList.Add(name + "-" + i.ToString()); - } - } - - TemplateParam templateParam = new TemplateParam(); - var area = LstAddress.FirstOrDefault(a => a.name == cmbProvince.Text && a.level == "Province"); - if (area != null) - { - templateParam.product_province = area.code; - templateParam.product_city = (area.sub_districts.FirstOrDefault(a => a.name == cmbCity.Text && a.level == "City")?.code).ParseToLong(); - } - if (rbStepPostage.Checked && rbWithWeight.Checked) - templateParam.calculate_type = 1; - templateParam.transfer_type = 1; - templateParam.rule_type = rbStepPostage.Checked ? 0 : rbSamePostage.Checked ? 1 : 2; - templateParam.fixed_amount = (int)(txtSamePostagePrice.Text.ParseToDecimal() * 100); - - List ruleList = new List(); - if (templateParam.rule_type == 0) - { - TemplateRulesParam defaultRules = new TemplateRulesParam(); - defaultRules.is_default = 1; - if (rbWithCount.Checked) - { - defaultRules.first_num = txtWeightOrCountStep1.Text.ParseToInt(); - defaultRules.first_num_price = txtWeightOrCountPrice1.Text.ParseToDecimal(); - defaultRules.add_num = txtWeightOrCountStep2.Text.ParseToInt(); - defaultRules.add_num_price = txtWeightOrCountPrice2.Text.ParseToDecimal(); - } - else - { - defaultRules.first_weight = txtWeightOrCountStep1.Text.ParseToInt(); - defaultRules.first_weight_price = txtWeightOrCountPrice1.Text.ParseToDecimal(); - defaultRules.add_weight = txtWeightOrCountStep2.Text.ParseToInt(); - defaultRules.add_weight_price = txtWeightOrCountPrice2.Text.ParseToDecimal(); - } - ruleList.Add(defaultRules); - } - if (isLimit) - { - TemplateRulesParam rules = new TemplateRulesParam(); - if (ruleList.Count == 0) - { - //rules.is_default = 1; - } - rules.is_limited = true; - - Dictionary pDict = new Dictionary(); - foreach (var key in AreaNotSendDict.Keys) - { - var keys = key.Trim('p').Split('c', 'd', 't'); - if (!pDict.Keys.Contains(keys[0])) - pDict[keys[0]] = null; - - if (keys.Length > 1) - { - var cDict = pDict[keys[0]] as Dictionary; - if (cDict == null) - { - cDict = new Dictionary(); - pDict[keys[0]] = cDict; - } - if (!cDict.Keys.Contains(keys[1])) - cDict[keys[1]] = null; - - if (keys.Length > 2) - { - var dDict = cDict[keys[1]] as Dictionary; - if (dDict == null) - { - dDict = new Dictionary(); - cDict[keys[1]] = dDict; - } - if (!dDict.Keys.Contains(keys[2])) - dDict[keys[2]] = null; - - if (keys.Length > 3) - { - var tList = new List(); - tList.Add(keys[3]); - if (dDict[keys[2]] == null) - dDict[keys[2]] = tList; - else - (dDict[keys[2]] as List).AddRange(tList); - } - } - } - } - var str = AllBase.JsonHelper.SerializeObject(pDict); - //rules.rule_address = str.Replace("\"", "\\\""); - - List areaInfos = new List(); - foreach (var key in AreaNotSendDict.Keys) - { - var keys = key.Trim('p').Split('c', 'd', 't'); - ProvinceInfo pInfo = areaInfos.FirstOrDefault(p => p.id == keys[0]); - if (pInfo == null) - { - pInfo = new ProvinceInfo() { id = keys[0] }; - areaInfos.Add(pInfo); - } - - if (keys.Length > 1) - { - if (pInfo.children == null) - pInfo.children = new List(); - - var cInfo = pInfo.children.FirstOrDefault(c => c.id == keys[1]); - if (cInfo == null) - { - cInfo = new ProvinceInfo() { id = keys[1] }; - pInfo.children.Add(cInfo); - } - - if (keys.Length > 2) - { - if (cInfo.children == null) - cInfo.children = new List(); - - var dInfo = cInfo.children.FirstOrDefault(d => d.id == keys[2]); - if (dInfo == null) - { - dInfo = new ProvinceInfo() { id = keys[2] }; - cInfo.children.Add(dInfo); - } - - if (keys.Length > 3) - { - if (dInfo.children == null) - dInfo.children = new List(); - - var tInfo = dInfo.children.FirstOrDefault(t => t.id == keys[3]); - if (tInfo == null) - { - tInfo = new ProvinceInfo() { id = keys[3] }; - dInfo.children.Add(tInfo); - } - } - } - } - } - rules.province_infos = areaInfos; - - ruleList.Add(rules); - } - - btnSearch.Enabled = false; - - cancellationTokenSource = new CancellationTokenSource(); - Task.Run(() => - { - var lstShopIdTemp = new List(); - lstShopIdTemp.AddRange(lstShopId); - - foreach (var shopId in lstShopIdTemp) - { - if (cancellationTokenSource.IsCancellationRequested) - break; - - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId); - if (shop == null) - continue; - - if (ShopListForm.Instance == null) - ShopListForm.Instance = new ShopListForm(); - ShopListForm.Instance.CheckShopLogin(new string[] { shop.ShopAccount }, false); - if (shop.LoginStatus != "登录成功") - { - Invoke(new Action(() => - { - var row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) - { - row.Cells["colLoginStatus"].Value = "未登录"; - row.Cells["colCanUse"].Value = false; - } - })); - continue; - } - - FreightTemplateListForm templateListForm = null; - Invoke(new Action(() => - { - var tab = this.ucTabControl1.TabPages.Cast().FirstOrDefault(t => t.Text == shop.ShopAccount && t.Name == "tab" + shop.ShopId); - if (tab == null) - { - tab = new TabPage(); - tab.Name = "tab" + shop.ShopId; - tab.Text = shop.ShopAccount; - this.ucTabControl1.TabPages.Add(tab); - - var freightTemplateListForm = new FreightTemplateListForm(shop); - //freightTemplateListForm.SeckillingAndLimitedSalesForm = this; - freightTemplateListForm.TopLevel = false; - freightTemplateListForm.Left = 0; - freightTemplateListForm.Top = 0; - freightTemplateListForm.FormBorderStyle = FormBorderStyle.None; - freightTemplateListForm.AutoSize = true; - freightTemplateListForm.Dock = DockStyle.Fill; - freightTemplateListForm.Show(); - tab.Controls.Add(freightTemplateListForm); - templateListForm = freightTemplateListForm; - } - - if (tab.Controls.Count > 0) - { - templateListForm = tab.Controls[0] as FreightTemplateListForm; - this.ucTabControl1.SelectedTab = tab; - } - })); - - if (templateListForm != null) - { - templateListForm.AddTemplate(nameList, templateParam, ruleList); - } - } - Invoke(new Action(() => - { - btnSearch.Enabled = true; - })); - }, cancellationTokenSource.Token); - } - - private void btnStopAdd_Click(object sender, EventArgs e) - { - - } - } -} diff --git a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateForm.resx b/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateForm.resx deleted file mode 100644 index 1b26ccd..0000000 --- a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateForm.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - 17, 17 - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateListForm.Designer.cs b/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateListForm.Designer.cs deleted file mode 100644 index 0496814..0000000 --- a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateListForm.Designer.cs +++ /dev/null @@ -1,233 +0,0 @@ - -namespace TemuKJD.KJDForms.ShopForms -{ - partial class FreightTemplateListForm - { - /// - /// 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() - { - 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(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.dgvTemplate = new TemuKJD.UserComponent.DataGridViewEx(); - this.label1 = new System.Windows.Forms.Label(); - this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colTemplateId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colTemplateName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colProvince = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colCity = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colTemplateType = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colCalculateType = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colFixedAmount = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); - this.splitContainer2.Panel1.SuspendLayout(); - this.splitContainer2.Panel2.SuspendLayout(); - this.splitContainer2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgvTemplate)).BeginInit(); - this.SuspendLayout(); - // - // splitContainer2 - // - this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; - this.splitContainer2.Location = new System.Drawing.Point(0, 0); - this.splitContainer2.Name = "splitContainer2"; - this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; - // - // splitContainer2.Panel1 - // - this.splitContainer2.Panel1.Controls.Add(this.dgvTemplate); - this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 4, 4, 0); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Controls.Add(this.label1); - this.splitContainer2.Panel2.Controls.Add(this.statusBar); - this.splitContainer2.Size = new System.Drawing.Size(800, 450); - this.splitContainer2.SplitterDistance = 420; - this.splitContainer2.TabIndex = 10; - // - // dgvProduct - // - this.dgvTemplate.AllowUserToAddRows = false; - this.dgvTemplate.AllowUserToDeleteRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvTemplate.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - this.dgvTemplate.BackgroundColor = System.Drawing.Color.White; - this.dgvTemplate.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.dgvTemplate.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; - this.dgvTemplate.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgvTemplate.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.colSelect, - this.colTemplateId, - this.colTemplateName, - this.colProvince, - this.colCity, - this.colTemplateType, - this.colCalculateType, - this.colFixedAmount, - this.colMessage}); - this.dgvTemplate.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvTemplate.Location = new System.Drawing.Point(4, 4); - this.dgvTemplate.Name = "dgvProduct"; - this.dgvTemplate.ReadOnly = true; - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvTemplate.RowsDefaultCellStyle = dataGridViewCellStyle3; - this.dgvTemplate.RowTemplate.Height = 23; - this.dgvTemplate.Size = new System.Drawing.Size(792, 416); - this.dgvTemplate.TabIndex = 6; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.ForeColor = System.Drawing.Color.MidnightBlue; - this.label1.Location = new System.Drawing.Point(656, 2); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(43, 17); - this.label1.TabIndex = 3; - this.label1.Text = "label1"; - // - // 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; - // - // colSelect - // - this.colSelect.FillWeight = 50F; - this.colSelect.HeaderText = "选"; - this.colSelect.Name = "colSelect"; - this.colSelect.ReadOnly = true; - this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.colSelect.Width = 41; - // - // colTemplateId - // - this.colTemplateId.HeaderText = "模板Id"; - this.colTemplateId.Name = "colTemplateId"; - this.colTemplateId.ReadOnly = true; - this.colTemplateId.Width = 150; - // - // colTemplateName - // - this.colTemplateName.HeaderText = "模板名称"; - this.colTemplateName.Name = "colTemplateName"; - this.colTemplateName.ReadOnly = true; - this.colTemplateName.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colTemplateName.Width = 250; - // - // colProvince - // - this.colProvince.HeaderText = "发货省份"; - this.colProvince.Name = "colProvince"; - this.colProvince.ReadOnly = true; - this.colProvince.Width = 80; - // - // colCity - // - this.colCity.HeaderText = "发货城市"; - this.colCity.Name = "colCity"; - this.colCity.ReadOnly = true; - this.colCity.Width = 80; - // - // colTemplateType - // - this.colTemplateType.HeaderText = "模板类型"; - this.colTemplateType.Name = "colTemplateType"; - this.colTemplateType.ReadOnly = true; - // - // colCalculateType - // - this.colCalculateType.HeaderText = "计价方式"; - this.colCalculateType.Name = "colCalculateType"; - this.colCalculateType.ReadOnly = true; - // - // colFixedAmount - // - this.colFixedAmount.HeaderText = "固定运费金额"; - this.colFixedAmount.Name = "colFixedAmount"; - this.colFixedAmount.ReadOnly = true; - this.colFixedAmount.Width = 120; - // - // colMessage - // - this.colMessage.HeaderText = "消息"; - this.colMessage.Name = "colMessage"; - this.colMessage.ReadOnly = true; - this.colMessage.Width = 300; - // - // FreightTemplateListForm - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.ClientSize = new System.Drawing.Size(800, 450); - this.Controls.Add(this.splitContainer2); - this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Name = "FreightTemplateListForm"; - this.Text = "FreightTemplateListForm"; - this.splitContainer2.Panel1.ResumeLayout(false); - this.splitContainer2.Panel2.ResumeLayout(false); - this.splitContainer2.Panel2.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); - this.splitContainer2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.dgvTemplate)).EndInit(); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.SplitContainer splitContainer2; - private UserComponent.DataGridViewEx dgvTemplate; - private System.Windows.Forms.Label label1; - public UserControls.StatusBarUserControl statusBar; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colTemplateId; - private System.Windows.Forms.DataGridViewTextBoxColumn colTemplateName; - private System.Windows.Forms.DataGridViewTextBoxColumn colProvince; - private System.Windows.Forms.DataGridViewTextBoxColumn colCity; - private System.Windows.Forms.DataGridViewTextBoxColumn colTemplateType; - private System.Windows.Forms.DataGridViewTextBoxColumn colCalculateType; - private System.Windows.Forms.DataGridViewTextBoxColumn colFixedAmount; - private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateListForm.cs b/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateListForm.cs deleted file mode 100644 index 8bf90f4..0000000 --- a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateListForm.cs +++ /dev/null @@ -1,160 +0,0 @@ -using AllBase; -using AllBase.Model.Param.OrderManage; -using AllBase.Model.Result; -using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; -using TemuKJD.KJDForms.BaseForms; -using Work.DouyinApiClass; - -namespace TemuKJD.KJDForms.ShopForms -{ - public partial class FreightTemplateListForm : BaseForm - { - public ShopLoginInfo Shop = null; - public List LstTemplate = new List(); - - public FreightTemplateListForm(ShopLoginInfo shop = null) - { - InitializeComponent(); - - Shop = shop; - } - - public void GetTemplate(string text = null) - { - if (Shop != null) - { - int total = 0; - int page = 0; - this.LstTemplate.Clear(); - Invoke(new Action(() => { this.dgvTemplate.Rows.Clear(); })); - - while (true) - { - DouyinApi api = new DouyinApi(Shop); - api.JsonData["page"] = page.ToString(); - if (!string.IsNullOrEmpty(text)) - api.JsonData["name"] = text; - var result = api.GetFreightTemplateListByBuyApi(); - for (int i = 0; i < 10 && !result.Contains("\"code\":10000"); i++) - { - Thread.Sleep(100); - result = api.GetFreightTemplateListByBuyApi(); - } - total = BaseRegex.GetIntJson(ref result, "Count"); - - JObject JObj = JObject.Parse(result); - var listStr = JObj["data"]?["List"]?.ToString(); - if (!string.IsNullOrEmpty(listStr)) - { - var templateList = JsonHelper.DeserializeJsonToList(listStr); - this.LstTemplate.AddRange(templateList); - foreach (var t in templateList) - { - Invoke(new Action(() => - { - string province = t.template.product_province; - string city = t.template.product_city; - var area = FreightTemplateForm.GetAddress(t.template.product_province); - if (area != null) - { - province = area.name; - city = area.sub_districts.FirstOrDefault(a => a.code.ToString() == t.template.product_city)?.name; - } - - string ruleType = ""; - if (t.template.rule_type == 0) - ruleType = "阶梯计价"; - if (t.template.rule_type == 1) - ruleType = "固定运费"; - if (t.template.rule_type == 2) - ruleType = "卖家包邮"; - if (t.template.rule_type == 3) - ruleType = "货到付款"; - string calculateType = ""; - if (t.template.rule_type == 0 && t.template.calculate_type == 1) - calculateType = "按重量计价"; - if (t.template.rule_type == 0 && t.template.calculate_type == 2) - calculateType = "按数量计价"; - var fixedAmount = ""; - if (t.template.fixed_amount > 0) - fixedAmount = (t.template.fixed_amount / 100m).ToString(); - - if (t.template.id == 0) - this.dgvTemplate.Rows.Add(false, t.template.id, "默认模板", "全国", "", "", "", "全国包邮"); - else - this.dgvTemplate.Rows.Add(false, t.template.id, t.template.template_name, province, city, ruleType, calculateType, fixedAmount); - })); - } - } - - page++; - if (this.LstTemplate.Count >= total) - break; - } - } - } - - public void AddTemplate(List nameList, TemplateParam templateParam, List ruleList) - { - foreach (var name in nameList) - { - TemplateParam temp = JsonHelper.DeserializeJsonToObject(JsonHelper.SerializeObject(templateParam)); - temp.template_name = name; - DouyinApi api = new DouyinApi(Shop); - api.JsonData["template"] = JsonHelper.SerializeObject(temp).Replace("\\", "\\\\").Replace("\"", "\\\""); - api.JsonData["columns"] = JsonHelper.SerializeObject(ruleList).Replace("\\", "\\\\").Replace("\"", "\\\""); - var result = api.AddFreightTemplateListByBuyApi(); - for (int i = 0; i < 5 && !result.Contains("\"code\":10000"); i++) - { - Thread.Sleep(100); - result = api.AddFreightTemplateListByBuyApi(); - } - if (result.Contains("\"code\":10000")) - { - var tempId = BaseRegex.GetStringJson(ref result, "template_id"); - Invoke(new Action(() => - { - string province = temp.product_province.ToString(); - string city = temp.product_city.ToString(); - var area = FreightTemplateForm.GetAddress(temp.product_province.ToString()); - if (area != null) - { - province = area.name; - city = area.sub_districts.FirstOrDefault(a => a.code.ToString() == temp.product_city.ToString())?.name; - } - - string ruleType = ""; - if (temp.rule_type == 0) - ruleType = "阶梯计价"; - if (temp.rule_type == 1) - ruleType = "固定运费"; - if (temp.rule_type == 2) - ruleType = "卖家包邮"; - if (temp.rule_type == 3) - ruleType = "货到付款"; - string calculateType = ""; - if (temp.rule_type == 0 && temp.calculate_type == 1) - calculateType = "按重量计价"; - if (temp.rule_type == 0 && temp.calculate_type == 2) - calculateType = "按数量计价"; - var fixedAmount = ""; - if (temp.fixed_amount > 0) - fixedAmount = (temp.fixed_amount / 100m).ToString(); - - this.dgvTemplate.Rows.Add(false, tempId, temp.template_name, province, city, ruleType, calculateType, fixedAmount, "添加成功"); - })); - } - } - } - } -} diff --git a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateListForm.resx b/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateListForm.resx deleted file mode 100644 index 12aebe5..0000000 --- a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateListForm.resx +++ /dev/null @@ -1,147 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateNameForm.Designer.cs b/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateNameForm.Designer.cs deleted file mode 100644 index c575148..0000000 --- a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateNameForm.Designer.cs +++ /dev/null @@ -1,135 +0,0 @@ - -namespace TemuKJD.KJDForms.ShopForms -{ - partial class FreightTemplateNameForm - { - /// - /// 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() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FreightTemplateNameForm)); - this.panel2 = new System.Windows.Forms.Panel(); - this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.btnSave = new DevComponents.DotNetBar.PanelEx(); - this.panel2.SuspendLayout(); - this.SuspendLayout(); - // - // panel2 - // - this.panel2.BackColor = System.Drawing.Color.White; - this.panel2.Controls.Add(this.labelX1); - this.panel2.Controls.Add(this.textBoxX1); - this.panel2.Controls.Add(this.btnSave); - this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel2.Location = new System.Drawing.Point(1, 33); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(383, 416); - this.panel2.TabIndex = 2; - // - // labelX1 - // - this.labelX1.AutoSize = true; - // - // - // - this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX1.ForeColor = System.Drawing.Color.Gray; - this.labelX1.Location = new System.Drawing.Point(16, 11); - this.labelX1.Name = "labelX1"; - this.labelX1.Size = new System.Drawing.Size(229, 18); - this.labelX1.TabIndex = 462; - this.labelX1.Text = "请输入自定义运费模板名称,一行一个:"; - // - // textBoxX1 - // - this.textBoxX1.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.textBoxX1.Border.Class = "TextBoxBorder"; - this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxX1.Location = new System.Drawing.Point(16, 35); - this.textBoxX1.Multiline = true; - this.textBoxX1.Name = "textBoxX1"; - this.textBoxX1.PreventEnterBeep = true; - this.textBoxX1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; - this.textBoxX1.Size = new System.Drawing.Size(351, 338); - this.textBoxX1.TabIndex = 461; - // - // btnSave - // - this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnSave.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnSave.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnSave.DisabledBackColor = System.Drawing.Color.Empty; - this.btnSave.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSave.Location = new System.Drawing.Point(309, 379); - this.btnSave.Name = "btnSave"; - this.btnSave.Size = new System.Drawing.Size(58, 23); - this.btnSave.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnSave.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSave.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSave.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnSave.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnSave.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnSave.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnSave.Style.GradientAngle = 90; - this.btnSave.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnSave.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSave.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSave.TabIndex = 460; - this.btnSave.Text = "保存"; - this.btnSave.Click += new System.EventHandler(this.btnSave_Click); - // - // FreightTemplateNameForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.ClientSize = new System.Drawing.Size(385, 450); - this.Controls.Add(this.panel2); - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Name = "FreightTemplateNameForm"; - this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; - this.Text = "自定义运费模板名称"; - this.TitleText = "自定义运费模板名称"; - this.Load += new System.EventHandler(this.FreightTemplateNameForm_Load); - this.Controls.SetChildIndex(this.panel2, 0); - this.panel2.ResumeLayout(false); - this.panel2.PerformLayout(); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel2; - private DevComponents.DotNetBar.LabelX labelX1; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; - private DevComponents.DotNetBar.PanelEx btnSave; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateNameForm.cs b/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateNameForm.cs deleted file mode 100644 index 3bad822..0000000 --- a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateNameForm.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace TemuKJD.KJDForms.ShopForms -{ - public partial class FreightTemplateNameForm : BaseForms.LRBaseForm - { - public FreightTemplateNameForm() - { - InitializeComponent(); - } - - private void FreightTemplateNameForm_Load(object sender, EventArgs e) - { - this.textBoxX1.Text = string.Join("\r\n", FreightTemplateForm.CustomFreightTemplateNames) + "\r\n"; - } - - private void btnSave_Click(object sender, EventArgs e) - { - FreightTemplateForm.CustomFreightTemplateNames = this.textBoxX1.Text.Trim().Split(new string[] { "\r", "\n" }, StringSplitOptions.RemoveEmptyEntries).ToList(); - NaiBa.Util.Helper.ConfigHelper.SaveConfig>("freight_template_custom_names", FreightTemplateForm.CustomFreightTemplateNames); - this.Close(); - } - } -} diff --git a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateNameForm.resx b/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateNameForm.resx deleted file mode 100644 index 450d02b..0000000 --- a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateNameForm.resx +++ /dev/null @@ -1,298 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - - - AAABAAEAgIAQcwAAAABoKAAAFgAAACgAAACAAAAAAAEAAAEABAAAAAAAACgAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAgICAAMDAwAAAAP8AAP8AAAD//wD/AAAA/wD/AP// - AAD///8AAAAAAAAAAAAAAAAABEZmbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZmZkQAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAZszMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMxmAAAAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMxkAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzGQAAAAAAAAAAAAAAAAAAAbMzMzMzMzMzMzMzMzMzMzMzMzMd3d3d3d3d3 - d3d3fMzMzMzMzMzMzMzMzMzMzMzMzMYAAAAAAAAAAAAAAAAARszMzMzMzMzMzMzMzMzMzMd3d3iIiIiI - iIiIiIiIiIh3d3d8zMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAABszMzMzMzMzMzMzMzMzMx3eIiIiI - iIiIiIiIiIiIiIiIiIiIiHd8zMzMzMzMzMzMzMzMzMxgAAAAAAAAAAAAAGzMzMzMzMzMzMzMzMzMd4iI - iIiIiIiIiIiIiIiIiIiIiIiIiIiIiHfMzMzMzMzMzMzMzMzMxgAAAAAAAAAAAAbMzMzMzMzMzMzMzMzH - eIiIiIiIiIiHZmZmZmZmZmZmZ3eIiIiIiIiIiHzMzMzMzMzMzMzMzMxgAAAAAAAAAABszMzMzMzMzMzM - zMzHiIiIiIiHZmZmZmZmZmZmZmZmZmZmZmZmeIiIiIiIfMzMzMzMzMzMzMzMxgAAAAAAAAAGzMzMzMzM - zMzMzMzHiIiIiIdmZmZmZgAAAAAAAAAAAAZmZmZmZmZmeIiIiIh8zMzMzMzMzMzMzMxgAAAAAAAATMzM - zMzMzMzMzMzHiIiIiHZmZgAAAAAAAAAAAAEAAAAAAAAAAGZmZmZniIiIiHzMzMzMzMzMzMzMxAAAAAAA - AGzMzMzMzMzMzMzMeIiIiGZmAAAAAAERERmZmZmZmZmZkRERERAAAGZmZmZ4iIiIfMzMzMzMzMzMzMYA - AAAAAAbMzMzMzMzMzMzMeIiIiGZgAAAAERmZmZmZmZmZmZmZmZmZmZmZkREAAGZmZniIiIfMzMzMzMzM - zMzMYAAAAABMzMzMzMzMzMzMzIiIiHYAAAARGZmZiIiIj///////+IiIiIeZmZmZkREAZmZmiIiIfMzM - zMzMzMzMzMQAAAAAbMzMzMzMzMzMzO6IiIYAAAARmYiI/////////////////////4iHmZmZEQBmZmeI - iIh8zMzMzMzMzMzGAAAABMzMzMzMzMzMzMeIiIdgAAAZmI////////////////////////////iJmZmR - EGZmZ4iIh8zMzMzMzMzMzEAAAAbMzMzMzMzMzMzoiIhwAAAZeP////////////////////////////// - /4iZmZEAZmZ4iIh8zMzMzMzMzMxgAABMzMzMzMzMzMzOiIiGAAABiP////////////////////////// - ////////+JmZkQZmZ4iIh8zMzMzMzMzMxAAAbMzMzMzMzMzM7oiIYAABeP////////////////////// - ///////////////4mZkQZmZ4iIjMzMzMzMzMzMYAAMzMzMzMzMzMzu6IhwAAGP////////////////// - /////////////////////4iZmRZmZ4iIfMzMzMzMzMzMAAbMzMzMzMzMzM7oiHAAB4////////////// - ////////////////////////////iZmRBmZ4iIfMzMzMzMzMzGAGzMzMzMzMzMzuiIcAAHj///////// - //////////////////////////////////iZmRZmZ4iIzMzMzMzMzMxgDMzMzMzMzMzM7ohwAAf///// - ////////////////////////////////////////95mRZmaIiHzMzMzMzMzMwEzMzMzMzMzMzuiIEABo - //////////////////////////////////////////////95mRZmaIiMzMzMzMzMzMRszMzMzMzMzM7o - hwAGj///////////////////////////////////////////////95kQZmeIh8zMzMzMzMzGbMzMzMzM - zMzu6HEAB/////////////////////////////////////////////////+ZkQZmiIjMzMzMzMzMxmzM - zMzMzMzM7ohwAGj/////////////////////////////////////////////////iZkWZniIfMzMzMzM - zMZszMzMzMzMxu6HEAbv/4iI/////////////////////////////////////////4iP//iZEGZoiHzM - zMzMzMzGbMzMzMzMzM7uhxAGj/iIiIj//////////////////////////////////////4iIiI//mZFm - aIiMzMzMzMzMxszMzMzMzMzO6IEAbv+IiIiIj/////////////////////////////////////iIiIiP - /4mRBmeIh8zMzMzMzMbMzMzMzMzMbuhxAG7/iIiIiI////////////////iIj///j//////////////4 - iIiIiP/5mQZmiIfMzMzMzMzMzMzMzMzMzO7ocQDo+IiIiIiP///////////////u7u7u7u7o//////// - ////iIiIiIj/+JkWZoiHzMzMzMzMzMzMzMzMzMzu6BEG7/iIiIiIj/////////////+Hd3ju5maO7v// - /////////4iIiIiI//iZEGaIh8zMzMzMzMzMzMzMzMzM7ugRBu//iIiIiI//////////////kZmZdmAZ - mP/////////////4iIiIiP//mRBmeIjMzMzMzMzMzMzMzMzMzO7nEAbv/4iIiIiP////////////+HiI - mZEBd5n/////////////+IiIiIj//4mQZniIzMzMzMzMzMzMzMzMzMzu5xAO7//4iIiI//ju7o////// - //j//4mZeP/4//////////////iIiIiP//+JkGZ4iHzMzMzMzMzMzMzMzMzG7ocQDu///4iI//ju7u7u - j//////////4mP//////////////7u7uiIiI////iZBmaIh8zMzMzMzMzMzMzMzMzu6HEG7v//////+G - ZmZ47u7//////////4//////////////7u7u7u6P/////4mQBmiIfMzMzMzMzMzMzMzMzM7uhRBu7/// - ///3AAAAF37u7///////////////////////h2AABm7u7v/////5kAZ4iHzMzMzMzMzMzMzMzMzO7oUQ - bu//////gQAAZgEG7u//////////////////////+BAAAAAFfu6P////+ZAGeIjMzMzMzMzMzMzMzMzM - zu6FEG7v////+JEAAXhwAG7o/////////////////////4gAABEGARbu7/////kQBoiIzMzMzMzMzMzM - zMzMzM7uhRBu7/////iZABmZkQBm6P////////////////////+JABGZF2AAbo////+JEGaIiMzMzMzM - zMzMzMzMzMzO7ucRbu/////4mRZ4iZkQBu//////////////////////mQB5mZdgAG7/////iRBmiIfM - zMzMzMzMzMzMzMzMxu7nEQ7v////+Bl+j/iZEAaP/////////////////////5l2/4mRAABu/////4kQ - ZoiHzMzMzMzMzMzMzMzMzMzu5xEO6P//+Phgbu/4kQAI//////////////////////+Zfo/4kQAAeIiP - //+JEGaIh8zMzMzMzMzMzMzMzMzM7ucRBu7///iOYHiI+HAAf///////////////////////mYjv+BAA - BuiIj///iQBniIfMzMzMzMzMzMzMzMzMzO7nEQbu///3EAAG6IcRF4iP/////////////////////4GP - /4cQAAZnbv///5EAaIiMzMzMzMzMzMzMzMzMzMzu5xEW7v//iRF3dmZgAXjmj/////////////////// - ///3ePiBEQAHdm7///iRAGiIfMzMzMzMzMzMzMzMzMzM7u5xFu6P/5EZmXZmZmbmaP////////////// - ///////4/4d2cRAAFwbuj//4kQZoiHzMzMzMzMzMzMzMzMzMzG7ucRDu7/iXiZkQAAZmAH////////// - ////////////+IiIdmYABmAX//j/+BAGeIh8zMzMzMzMzMzMzMzMzMzO7nEQbu/4iP+BERkREZf///// - //////////////////+JmXdxEBEAB3////kQBoiIzMzMzMzMzMzMzMzMzMzMzu5xEW7o+P//gZmZmZmP - ////////////////////////+JmZmZmZl453//+JAGaIh8zMzMzMzMzMzMzMzMzMzM7u5xEO7vj/+IeP - iIj////////////////////////////4iZmZmZiPiP//cQBoiIfMzMzMzMzMzMzMzMzMzMzM7ucRFu6P - //iP//////////////////////////////////////+Jn/j/+JAAaIiMzMzMzMzMzMzMzMzMzMzMzO7n - ERbu7//4/////////////////////////////////////////4j///gQBoiIfMzMzMzMzMzMzMzMzMzM - zMzu7nERbuj////////////////////////////////////////////4//+BAAaIiMzMzMzMzMzMzMzM - zMzMzMzMzu5xEW7u////////////////////////////////////////////////cQBoiIfMzMzMzMzM - zMzMzMzMzMzMzM7u5xEW7u//////////////////////////////////////////////+BAAaIiMzMzM - zMzMzMzMzMzMzMzMzMzO7uYREO7o//7v//////////////////////////////////////////cABoiI - fMzMzMzMzMzMzMzMzMzMzMzMzO7ucRFu7oj/7o////////////////////////////////////////9x - AAeIiMzMzMzMzMzMzMzMzMzMzMzMzMzO7ucRFu7nePju7u7v//////////////////////////////// - 6P/4EAB4iIfMzMzMzMzMzMzMzMzMzMzMzMzMzu7nERBu7nmIiO7oj/////////////////////////// - ju7u7o//hwAGiIh8zMzMzMzMzMzMzMzMzMzMzMzMzMzu7nERbu7nmZl5eP////////////////////// - ///4iPiO5nj/+HAAaIiIzMzMzMzMzMzMzMzMzMzMzMzMzMzM7u7nERbu7oiZeI////////////////// - ////////+ImXd5mP/4cAAHiIh8zMzMzMzMzMzMzMzMzMzMzMzMzMzM7u53ERbu7v//////////////// - ///////////////4iZl4//hgAAeIiHzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM7u53ERBu7v////////// - //////////////////////////+GAAB4iI7MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzO7uiHEADujv//// - ///////////////////////////////3AAAGiIh8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzO7ohwABmP - ////////////////////////////////////iREAZniIjMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzuiI - EAB4f///////////////////////////////////+JmZkWZoiIfMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zO6IhwBo//////////////////////////////////////iImZl2ZoiIzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzuiHAA7////////////////////////////////////////4iZFmZ4iHzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzO6IgQBo/////4j///////////////////////////////////mZFmaIiMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzuiHAA7/////iIiP//////7o//////////////////iI/////4mRZmeIh8zMzMzM - zMzMzMzMzMzMzMzMzMzMzO6IcQBo////+IiIiI/////+7u7u7uiIiI7u7v////iIiI/////5mRZmiIjM - zMzMzMzMzMzMzMzMzMzMzMzMzMzuiHAA7////4iIiIiIj//3d2bu7u7u7u7u7u7//4iIiIiP////+JkW - ZniIfMzMzMzMzMzMzMzMzMzMzMzMzMzO6IcQBo////+IiIiIiI//+ZkAAGZmZmZmZmbv//iIiIiIiP// - //+ZkWZoiIzMzMzMzMzMzMzMzMzMzMzMzMzMzuiFAG7////4iIiIiIj///iZABEREREREBAG7//4iIiI - iIj/////iZFmaIiMzMzMzMzMzMzMzMzMzMzMzMzMzO6IcQBo////+IiIiIiI///4kQARERERERERDo// - +IiIiIiIj/////mZBmeIh8zMzMzMzMzMzMzMzMzMzMzMzMzuiHAG7////4iIiIiIiP//+JFmeHd3d3dx - EW6P//iIiIiIiI/////4mRZmiIfMzMzMzMzMzMzMzMzMzMzMzMzO7ocQBo////+IiIiIiIj///iQZoiO - 7u7u5xFu7//4iIiIiIiI////+JkWZniIzMzMzMzMzMzMzMzMzMzMzMzMzuiHEA7////4iIiIiIiP///5 - kGaIju7u7ucRbu///4iIiIiIiP////95kGZ4iHzMzMzMzMzMzMzMzMzMzMzMzM7ogQBu////+IiIiIiI - j///+RBmiI7u7u7nEW7v//+IiIiIiIiP////iZFmaIh8zMzMzMzMzMzMzMzMzMzMzMzu6HEAaP////iI - iIiIiI////kQZoiHzMzu5xEO6P//iIiIiIiIj////4mRZmiIjMzMzMzMzMzMzMzMzMzMzMzM7ugRBu// - ///4iIiIiIj///+JEGaIh8zM7ucRBu7//4iIiIiIiI/////5kQZniIzMzMzMzMzMzMzMzMzMzMzMzO6I - EAbv////iIiIiIiI////iQBniIzMzO7oERbu///4iIiIiIiP////+JkGZ4iHzMzMzMzMzMzMzMzMzMzM - zMbuhxAGj////4iIiIiIj////3kAaIiMzMzu7nEW7v//+IiIiIiIiP////iZFmaIh8zMzMzMzMzMzMzM - zMzMzMzO7oUQbv////+IiIiIiI////+RBmiIfMzMzu5xFu6P//+IiIiIiIj////4mRZmiIfMzMzMzMzM - zMzMzMzMzMzMzu6BAG7////4iIiIiIj////4kQZoiHzMzM7ucRDu7///iIiIiIiIj////5kQZoiHzMzM - zMzMzMzMzMzMzMzMzM7ocQBu////+IiIiIiI////+JAGeIh8zMzO7nERbu///4iIiIiIiI////95EGaI - h8zMzMzMzMzMzMzMzMzMzMxu6HEA7v////iIiIiIiP////cQBoiIzMzMzu7lEW7v///4iIiIiIiP//// - iRBmeIjMzMzMzMzMzMzMzMzMzMzM7uhxBuj////4iIiIiI/////5EAaIiMzMzMbu5xEO7v//+IiIiIiI - j////4kQZniIzMzMzMzMzMzMzMzMzMzMzO7oEQbv////+IiIiIj/////iQBmiIfMzMzM7ucRBu7///iI - iIiIiIj///+JkGZ4iMzMzMzMzMzMzMzMzMzMzMzu6BEG7/////iIiIiI/////4EAaIiHzMzMzO7nERbu - j///iIiIiIiI////iZBmaIh8zMzMzMzMzMzMzMzMzMzM7ucRBu/////4iIiIj/////+RAGiIjMzMzMzu - 7nEQ7u////iIiIiIiP///4mQBmiIfMzMzMzMzMzMzMzMzMzMzO7nEAbv////+IiIiP/////4EAZ4iHzM - zMzMzu5xEG7v///4iIiIiIj///+JkAZoiHzMzMzMzMzMxmzMzMzMzMzu5xAO7/////+IiI//////+RAG - iIjMzMzMzM7ucRFu7v///4iIiIiI////+ZAGaIh8zMzMzMzMzMZszMzMzMzG7ocQDu//////+I////// - /4EAZoiIzMzMzMzO7ucRBu7////4iIiIiP////mQBmiIfMzMzMzMzMzGbMzMzMzMzu6HEA7v//////// - //////9xAGiIh8zMzMzMzO7nERbu7///+IiIiI/////5kAZoiHzMzMzMzMzMxmzMzMzMzM7uhxAO7/// - ///////////4EABoiIzMzMzMzMzu7nEQbu////+IiIiP////+ZAGaIh8zMzMzMzMzMZszMzMzMzO7oUQ - Du//////////////9xAGiIh8zMzMzMzM7u5xEW7u/////4iI//////mQBmiIfMzMzMzMzMzGTMzMzMzM - zu6HEA7v/////////////4EABoiIzMzMzMzMzM7u5xEG7v/////////////5kAZoiHzMzMzMzMzMxAzM - zMzMzM7uhxEO7/////////////9wAGiIh8zMzMzMzMzO7ucRFu7v////////////+RAGeIh8zMzMzMzM - zMAGzMzMzMzO7ucRDuj////////////4EAB4iIzMzMzMzMzMzO7ucRBu6P///////////4kQBoiIzMzM - zMzMzMxgBszMzMzMxu7nEQbo////////////gQAGiIh8zMzMzMzMzMzu7nERDu7///////////+JEAaI - iMzMzMzMzMzMYADMzMzMzMzu5xEG7v///////////3EAZ4iIzMzMzMzMzMzMzu7nERbu7/////////// - gQBmiIfMzMzMzMzMzAAAbMzMzMzM7ucRBu7///////////gQAGiIh8zMzMzMzMzMzM7u5xEQbu7///// - /////5EAZ4iHzMzMzMzMzMYAAEzMzMzMzO7nERDu7/////////+HAAaIiIzMzMzMzMzMzMzM7u5xEQ7u - 7/////////gQAGiIjMzMzMzMzMzEAAAGzMzMzMzu7nEQbuj////////4cAAHiIh8zMzMzMzMzMzMzO7u - dxEW7uj////////3AAZoiHzMzMzMzMzMYAAABMzMzMzM7u5xEG7u////////hgAAeIiHzMzMzMzMzMzM - zMzO7ucREW7u7///////gQAGiIh8zMzMzMzMzEAAAABszMzMzM7ucREG7uj/////hmAAB4iI7MzMzMzM - zMzMzMzMzu7ucREG7u6P////+AAAB4iIzMzMzMzMzMYAAAAATMzMzMzO7ucREG7u7oiO7mAAAHiIiMzM - zMzMzMzMzMzMzMzu7ucREG7u7o//+HYAAHiIh8zMzMzMzMzEAAAAAAbMzMzMzu7nEREG7u7u5mAAAAeI - iIfMzMzMzMzMzMzMzMzMzu7ucREQbu7u7uYAAAeIiHzMzMzMzMzMYAAAAAAAbMzMzMzu7nEREAZmZgAA - AAF4iI58zMzMzMzMzMzMzMzMzMzu7ncREQZm7mZgAAB4iI7MzMzMzMzMxgAAAAAAAEzMzMzM7u7nEREQ - AAAAABF4iI7uzMzMzMzMzMzMzMzMzMzM7u7ucRERAAAAAAAHiIiMzMzMzMzMzMQAAAAAAAAGzMzMzM7u - 7nERERERERF3iIju7MzMzMzMzMzMzMzMzMzMzM7u7udREREQAAAReIiIfMzMzMzMzMxgAAAAAAAAAGzM - zMzM7u7udRERERV4iI7u7MzMzMzMzMzMzMzMzMzMzMzM7u7u5xEREREReIiO7MzMzMzMzMzGAAAAAAAA - AAAGzMzMzM7u7u53d3eIiO7u7szMzMzMzMzMzMzMzMzMzMzMzM7u7u7nd1F3eIiO7uzMzMzMzMzMYAAA - AAAAAAAAAGzMzMzM7u7u7u7u7u7u7szMzMzMzMzMzMzMzMzMzMzMzMzMzu7u7u6IiI7u7uzMzMzMzMzM - xgAAAAAAAAAAAAAGzMzMzMzu7u7u7u7u5szMzMzMzMzMzMzMzMzMzMzMzMzMzMzO7u7u7u7u7u7MzMzM - zMzMzGAAAAAAAAAAAAAAAEbMzMzMzG7u7u7ubMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM7u7u7u7uzM - zMzMzMzMzGQAAAAAAAAAAAAAAAAAbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzG7u - 7szMzMzMzMzMzMYAAAAAAAAAAAAAAAAAAARszMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAABGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAAAABmzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzGYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARGZmzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZmZEAAAAAAAAAAAAAAAAD////+AAAAAAAAAAD/////////AAAA - AAAAAAAAAP//////+AAAAAAAAAAAAAAf/////+AAAAAAAAAAAAAAB/////+AAAAAAAAAAAAAAAH////+ - AAAAAAAAAAAAAAAAf////AAAAAAAAAAAAAAAAD////AAAAAAAAAAAAAAAAAP///gAAAAAAAAAAAAAAAA - B///wAAAAAAAAAAAAAAAAAP//4AAAAAAAAAAAAAAAAAB//8AAAAAAAAAAAAAAAAAAP/+AAAAAAAAAAAA - AAAAAAB//gAAAAAAAAAAAAAAAAAAf/wAAAAAAAAAAAAAAAAAAD/4AAAAAAAAAAAAAAAAAAAf+AAAAAAA - AAAAAAAAAAAAH/AAAAAAAAAAAAAAAAAAAA/wAAAAAAAAAAAAAAAAAAAP4AAAAAAAAAAAAAAAAAAAB+AA - AAAAAAAAAAAAAAAAAAfAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAAAAA - AAOAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAA - AAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAABAAAAAAAA - AAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAA - AAGAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAA - AAAAAAABgAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAPAAAAAAAAAAAAAAAAAAAADwAAAAAAA - AAAAAAAAAAAAA+AAAAAAAAAAAAAAAAAAAAfgAAAAAAAAAAAAAAAAAAAH8AAAAAAAAAAAAAAAAAAAD/AA - AAAAAAAAAAAAAAAAAA/4AAAAAAAAAAAAAAAAAAAf+AAAAAAAAAAAAAAAAAAAH/wAAAAAAAAAAAAAAAAA - AD/+AAAAAAAAAAAAAAAAAAB//gAAAAAAAAAAAAAAAAAAf/8AAAAAAAAAAAAAAAAAAP//gAAAAAAAAAAA - AAAAAAH//8AAAAAAAAAAAAAAAAAD///gAAAAAAAAAAAAAAAAB///8AAAAAAAAAAAAAAAAA////wAAAAA - AAAAAAAAAAA////+AAAAAAAAAAAAAAAAf////4AAAAAAAAAAAAAAAf/////gAAAAAAAAAAAAAAf///// - +AAAAAAAAAAAAAAf//////8AAAAAAAAAAAAA/////////gAAAAAAAAAAf////w== - - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateNotSendAreaForm.Designer.cs b/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateNotSendAreaForm.Designer.cs deleted file mode 100644 index 95c2f1b..0000000 --- a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateNotSendAreaForm.Designer.cs +++ /dev/null @@ -1,232 +0,0 @@ - -namespace TemuKJD.KJDForms.ShopForms -{ - partial class FreightTemplateNotSendAreaForm - { - /// - /// 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() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FreightTemplateNotSendAreaForm)); - this.panel2 = new System.Windows.Forms.Panel(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.advTree1 = new DevComponents.AdvTree.AdvTree(); - this.nodeConnector1 = new DevComponents.AdvTree.NodeConnector(); - this.elementStyle1 = new DevComponents.DotNetBar.ElementStyle(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.textBox1 = new System.Windows.Forms.TextBox(); - this.btnSave = new DevComponents.DotNetBar.PanelEx(); - this.btnCancel = new DevComponents.DotNetBar.PanelEx(); - this.panel2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.advTree1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); - this.splitContainer2.Panel1.SuspendLayout(); - this.splitContainer2.Panel2.SuspendLayout(); - this.splitContainer2.SuspendLayout(); - this.SuspendLayout(); - // - // panel2 - // - this.panel2.BackColor = System.Drawing.Color.White; - this.panel2.Controls.Add(this.splitContainer1); - this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel2.Location = new System.Drawing.Point(1, 33); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(418, 666); - this.panel2.TabIndex = 1; - // - // splitContainer1 - // - this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; - this.splitContainer1.Location = new System.Drawing.Point(0, 0); - this.splitContainer1.Name = "splitContainer1"; - this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal; - // - // splitContainer1.Panel1 - // - this.splitContainer1.Panel1.Controls.Add(this.advTree1); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.splitContainer2); - this.splitContainer1.Size = new System.Drawing.Size(418, 666); - this.splitContainer1.SplitterDistance = 513; - this.splitContainer1.TabIndex = 1; - // - // advTree1 - // - this.advTree1.AccessibleRole = System.Windows.Forms.AccessibleRole.Outline; - this.advTree1.BackColor = System.Drawing.SystemColors.Window; - // - // - // - this.advTree1.BackgroundStyle.Class = "TreeBorderKey"; - this.advTree1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.advTree1.Dock = System.Windows.Forms.DockStyle.Fill; - this.advTree1.Location = new System.Drawing.Point(0, 0); - this.advTree1.Name = "advTree1"; - this.advTree1.NodesConnector = this.nodeConnector1; - this.advTree1.NodeStyle = this.elementStyle1; - this.advTree1.PathSeparator = ";"; - this.advTree1.Size = new System.Drawing.Size(418, 513); - this.advTree1.Styles.Add(this.elementStyle1); - this.advTree1.TabIndex = 0; - this.advTree1.Text = "advTree1"; - // - // nodeConnector1 - // - this.nodeConnector1.LineColor = System.Drawing.SystemColors.ControlText; - // - // elementStyle1 - // - this.elementStyle1.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.elementStyle1.Name = "elementStyle1"; - this.elementStyle1.TextColor = System.Drawing.SystemColors.ControlText; - // - // splitContainer2 - // - this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer2.Location = new System.Drawing.Point(0, 0); - this.splitContainer2.Name = "splitContainer2"; - this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; - // - // splitContainer2.Panel1 - // - this.splitContainer2.Panel1.Controls.Add(this.textBox1); - this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 4, 0); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Controls.Add(this.btnSave); - this.splitContainer2.Panel2.Controls.Add(this.btnCancel); - this.splitContainer2.Size = new System.Drawing.Size(418, 149); - this.splitContainer2.SplitterDistance = 99; - this.splitContainer2.TabIndex = 694; - // - // textBox1 - // - this.textBox1.Dock = System.Windows.Forms.DockStyle.Fill; - this.textBox1.Location = new System.Drawing.Point(4, 0); - this.textBox1.Multiline = true; - this.textBox1.Name = "textBox1"; - this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; - this.textBox1.Size = new System.Drawing.Size(410, 99); - this.textBox1.TabIndex = 0; - // - // btnSave - // - this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnSave.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnSave.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnSave.DisabledBackColor = System.Drawing.Color.Empty; - this.btnSave.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSave.Location = new System.Drawing.Point(266, 10); - this.btnSave.Name = "btnSave"; - this.btnSave.Size = new System.Drawing.Size(60, 23); - this.btnSave.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnSave.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSave.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnSave.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnSave.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnSave.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnSave.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnSave.Style.GradientAngle = 90; - this.btnSave.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnSave.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSave.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnSave.TabIndex = 693; - this.btnSave.Text = "确定"; - this.btnSave.Click += new System.EventHandler(this.btnSave_Click); - // - // btnCancel - // - this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.CanvasColor = System.Drawing.SystemColors.Control; - this.btnCancel.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnCancel.DisabledBackColor = System.Drawing.Color.Empty; - this.btnCancel.Location = new System.Drawing.Point(332, 10); - this.btnCancel.Name = "btnCancel"; - this.btnCancel.Size = new System.Drawing.Size(60, 23); - this.btnCancel.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnCancel.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnCancel.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnCancel.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnCancel.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnCancel.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnCancel.Style.GradientAngle = 90; - this.btnCancel.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnCancel.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnCancel.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnCancel.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnCancel.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnCancel.TabIndex = 692; - this.btnCancel.Text = "取消"; - this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); - // - // FreightTemplateNotSendAreaForm - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.ClientSize = new System.Drawing.Size(420, 700); - this.Controls.Add(this.panel2); - this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Name = "FreightTemplateNotSendAreaForm"; - this.Text = "选择限制下单区域"; - this.TitleText = "选择限制下单区域"; - this.Load += new System.EventHandler(this.FreightTemplateNotSendAreaForm_Load); - this.Controls.SetChildIndex(this.panel2, 0); - this.panel2.ResumeLayout(false); - this.splitContainer1.Panel1.ResumeLayout(false); - this.splitContainer1.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); - this.splitContainer1.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.advTree1)).EndInit(); - this.splitContainer2.Panel1.ResumeLayout(false); - this.splitContainer2.Panel1.PerformLayout(); - this.splitContainer2.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); - this.splitContainer2.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel2; - private DevComponents.AdvTree.AdvTree advTree1; - private DevComponents.AdvTree.NodeConnector nodeConnector1; - private DevComponents.DotNetBar.ElementStyle elementStyle1; - private System.Windows.Forms.SplitContainer splitContainer1; - private DevComponents.DotNetBar.PanelEx btnSave; - private DevComponents.DotNetBar.PanelEx btnCancel; - private System.Windows.Forms.SplitContainer splitContainer2; - private System.Windows.Forms.TextBox textBox1; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateNotSendAreaForm.cs b/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateNotSendAreaForm.cs deleted file mode 100644 index 368f041..0000000 --- a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateNotSendAreaForm.cs +++ /dev/null @@ -1,255 +0,0 @@ -using DevComponents.AdvTree; -using NaiBa.Util.Helper; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace TemuKJD.KJDForms.ShopForms -{ - public partial class FreightTemplateNotSendAreaForm : BaseForms.LRBaseForm - { - - public FreightTemplateNotSendAreaForm() - { - InitializeComponent(); - } - - private void FreightTemplateNotSendAreaForm_Load(object sender, EventArgs e) - { - textBox1.Text = string.Join("、", FreightTemplateForm.AreaNotSendDict.Values); - - Task.Run(() => - { - for (int i = 0; i < FreightTemplateForm.LstAddress.Count; i++) - { - var province = FreightTemplateForm.LstAddress[i]; - if (province.sub_districts == null || province.sub_districts.Count == 0) - { - var provinceTemp = FreightTemplateForm.GetAddress(province.code.ToString()); - if (provinceTemp == null) - return; - else - province = provinceTemp; - } - - var nodeProvince = new Node() { Text = province.name, Name = "p" + province.code, CheckBoxThreeState = true, CheckBoxVisible = true }; - if (FreightTemplateForm.AreaNotSendDict.Keys.Any(k => k.EndsWith(nodeProvince.Name))) - nodeProvince.CheckState = CheckState.Checked; - else if (FreightTemplateForm.AreaNotSendDict.Keys.Any(k => k.Contains(nodeProvince.Name))) - nodeProvince.CheckState = CheckState.Indeterminate; - this.advTree1.Nodes.Add(nodeProvince); - if (province.sub_districts != null && province.sub_districts.Count > 0) - { - foreach (var city in province.sub_districts) - { - var nodeCity = new Node() { Text = city.name, Name = "c" + city.code, CheckBoxThreeState = true, CheckBoxVisible = true }; - if (nodeProvince.CheckState == CheckState.Checked) - nodeCity.CheckState = CheckState.Checked; - else if (FreightTemplateForm.AreaNotSendDict.Keys.Any(k => k.EndsWith(nodeCity.Name))) - nodeCity.CheckState = CheckState.Checked; - else if (FreightTemplateForm.AreaNotSendDict.Keys.Any(k => k.Contains(nodeCity.Name))) - nodeCity.CheckState = CheckState.Indeterminate; - nodeProvince.Nodes.Add(nodeCity); - if (city.sub_districts != null && city.sub_districts.Count > 0) - { - foreach (var district in city.sub_districts) - { - var nodeDistrict = new Node() { Text = district.name, Name = "d" + district.code, CheckBoxThreeState = true, CheckBoxVisible = true }; - if (nodeCity.CheckState == CheckState.Checked) - nodeDistrict.CheckState = CheckState.Checked; - else if (FreightTemplateForm.AreaNotSendDict.Keys.Any(k => k.EndsWith(nodeDistrict.Name))) - nodeDistrict.CheckState = CheckState.Checked; - else if (FreightTemplateForm.AreaNotSendDict.Keys.Any(k => k.Contains(nodeDistrict.Name))) - nodeDistrict.CheckState = CheckState.Indeterminate; - nodeCity.Nodes.Add(nodeDistrict); - if (district.sub_districts != null && district.sub_districts.Count > 0) - { - foreach (var town in district.sub_districts) - { - var nodeTown = new Node() { Text = town.name, Name = "t" + town.code, CheckBoxThreeState = true, CheckBoxVisible = true }; - if (nodeDistrict.CheckState == CheckState.Checked) - nodeTown.CheckState = CheckState.Checked; - else if (FreightTemplateForm.AreaNotSendDict.Keys.Any(k => k.EndsWith(nodeTown.Name))) - nodeTown.CheckState = CheckState.Checked; - nodeDistrict.Nodes.Add(nodeTown); - } - } - } - } - } - } - } - advTree1.AfterCheck += AdvTree1_AfterCheck; - }); - } - - private void AdvTree1_AfterCheck(object sender, AdvTreeCellEventArgs e) - { - this.advTree1.AfterCheck -= AdvTree1_AfterCheck; - var node = e.Cell.Parent; - if (node.CheckState == CheckState.Checked) - { - CheckAllChildNodes(node, true); - SelectParent(node); - } - else if (node.CheckState == CheckState.Unchecked) - { - CheckAllChildNodes(node, false); - CancelParent(node); - } - else - { - node.CheckState = CheckState.Unchecked; - CheckAllChildNodes(node, false); - CancelParent(node); - } - GetArea(); - this.advTree1.AfterCheck += AdvTree1_AfterCheck; - } - - - #region 判断同级节点是否全部选中,从第一个节点开始 - private bool IsAllChecked(Node tn) - { - if (tn.CheckState != CheckState.Checked) - { - return false; - } - if (tn.NextNode == null) - { - return true; - } - return IsAllChecked(tn.NextNode); - } - #endregion - - #region 判断同级节点是否全未选中,从第一个节点开始 - private bool IsAllUnChecked(Node tn) - { - if (tn.CheckState != CheckState.Unchecked) - { - return false; - } - if (tn.NextNode == null) - { - return true; - } - return IsAllUnChecked(tn.NextNode); - } - #endregion - - #region 如果该节点选中,则其子节点全部选中,反之亦然 - private void CheckAllChildNodes(Node tn, bool Checked) - { - if (tn.CheckState == CheckState.Checked || tn.CheckState == CheckState.Unchecked) - { - foreach (Node tnChild in tn.Nodes) - { - tnChild.CheckState = tn.CheckState; - if (tnChild.Nodes.Count > 0) - { - CheckAllChildNodes(tnChild, Checked); - } - } - } - } - #endregion - - #region 如过该节点选中,则其父节点依次选中 - private void SelectParent(Node tn) - { - if (tn.Parent != null) - { - if (tn.CheckState == CheckState.Indeterminate) - tn.Parent.CheckState = CheckState.Indeterminate; - else if (IsAllChecked(tn.Parent.Nodes[0])) - tn.Parent.CheckState = CheckState.Checked; - else - tn.Parent.CheckState = CheckState.Indeterminate; - - SelectParent(tn.Parent); - } - } - #endregion - - #region 如果该节点没有选中,且同级节点全未选中,则取消父节点 - private void CancelParent(Node tn) - { - if (tn.Parent != null) - { - if (tn.CheckState == CheckState.Indeterminate) - tn.Parent.CheckState = CheckState.Indeterminate; - else if (IsAllUnChecked(tn.Parent.Nodes[0])) - tn.Parent.CheckState = CheckState.Unchecked; - else - tn.Parent.CheckState = CheckState.Indeterminate; - - CancelParent(tn.Parent); - } - } - #endregion - - private void btnCancel_Click(object sender, EventArgs e) - { - this.Close(); - } - - private void btnSave_Click(object sender, EventArgs e) - { - ConfigHelper.SaveConfig("not_send_address", FreightTemplateForm.AreaNotSendDict); - this.Close(); - } - - private void GetArea() - { - FreightTemplateForm.AreaNotSendDict.Clear(); - - foreach (Node provinceNode in this.advTree1.Nodes) - { - if (provinceNode.CheckState == CheckState.Checked) - { - FreightTemplateForm.AreaNotSendDict[provinceNode.Name] = provinceNode.Text; - } - else if (provinceNode.CheckState == CheckState.Indeterminate) - { - foreach (Node cityNode in provinceNode.Nodes) - { - if (cityNode.CheckState == CheckState.Checked) - { - FreightTemplateForm.AreaNotSendDict[provinceNode.Name + cityNode.Name] = provinceNode.Text + cityNode.Text; - } - else if (cityNode.CheckState == CheckState.Indeterminate) - { - foreach (Node districtNode in cityNode.Nodes) - { - if (districtNode.CheckState == CheckState.Checked) - { - FreightTemplateForm.AreaNotSendDict[provinceNode.Name + cityNode.Name + districtNode.Name] = provinceNode.Text + cityNode.Text + districtNode.Text; - } - else if (provinceNode.CheckState == CheckState.Indeterminate) - { - foreach (Node townNode in districtNode.Nodes) - { - if (townNode.CheckState == CheckState.Checked) - { - FreightTemplateForm.AreaNotSendDict[provinceNode.Name + cityNode.Name + districtNode.Name + townNode.Name] = - provinceNode.Text + cityNode.Text + districtNode.Text + townNode.Text; - } - } - } - } - } - } - } - } - - textBox1.Text = string.Join("、", FreightTemplateForm.AreaNotSendDict.Values); - } - } -} diff --git a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateNotSendAreaForm.resx b/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateNotSendAreaForm.resx deleted file mode 100644 index 450d02b..0000000 --- a/TEMUKJD/KJDForms/ShopForms/Old/FreightTemplateNotSendAreaForm.resx +++ /dev/null @@ -1,298 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - - - AAABAAEAgIAQcwAAAABoKAAAFgAAACgAAACAAAAAAAEAAAEABAAAAAAAACgAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAgICAAMDAwAAAAP8AAP8AAAD//wD/AAAA/wD/AP// - AAD///8AAAAAAAAAAAAAAAAABEZmbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZmZkQAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAZszMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMxmAAAAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMxkAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzGQAAAAAAAAAAAAAAAAAAAbMzMzMzMzMzMzMzMzMzMzMzMzMd3d3d3d3d3 - d3d3fMzMzMzMzMzMzMzMzMzMzMzMzMYAAAAAAAAAAAAAAAAARszMzMzMzMzMzMzMzMzMzMd3d3iIiIiI - iIiIiIiIiIh3d3d8zMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAABszMzMzMzMzMzMzMzMzMx3eIiIiI - iIiIiIiIiIiIiIiIiIiIiHd8zMzMzMzMzMzMzMzMzMxgAAAAAAAAAAAAAGzMzMzMzMzMzMzMzMzMd4iI - iIiIiIiIiIiIiIiIiIiIiIiIiIiIiHfMzMzMzMzMzMzMzMzMxgAAAAAAAAAAAAbMzMzMzMzMzMzMzMzH - eIiIiIiIiIiHZmZmZmZmZmZmZ3eIiIiIiIiIiHzMzMzMzMzMzMzMzMxgAAAAAAAAAABszMzMzMzMzMzM - zMzHiIiIiIiHZmZmZmZmZmZmZmZmZmZmZmZmeIiIiIiIfMzMzMzMzMzMzMzMxgAAAAAAAAAGzMzMzMzM - zMzMzMzHiIiIiIdmZmZmZgAAAAAAAAAAAAZmZmZmZmZmeIiIiIh8zMzMzMzMzMzMzMxgAAAAAAAATMzM - zMzMzMzMzMzHiIiIiHZmZgAAAAAAAAAAAAEAAAAAAAAAAGZmZmZniIiIiHzMzMzMzMzMzMzMxAAAAAAA - AGzMzMzMzMzMzMzMeIiIiGZmAAAAAAERERmZmZmZmZmZkRERERAAAGZmZmZ4iIiIfMzMzMzMzMzMzMYA - AAAAAAbMzMzMzMzMzMzMeIiIiGZgAAAAERmZmZmZmZmZmZmZmZmZmZmZkREAAGZmZniIiIfMzMzMzMzM - zMzMYAAAAABMzMzMzMzMzMzMzIiIiHYAAAARGZmZiIiIj///////+IiIiIeZmZmZkREAZmZmiIiIfMzM - zMzMzMzMzMQAAAAAbMzMzMzMzMzMzO6IiIYAAAARmYiI/////////////////////4iHmZmZEQBmZmeI - iIh8zMzMzMzMzMzGAAAABMzMzMzMzMzMzMeIiIdgAAAZmI////////////////////////////iJmZmR - EGZmZ4iIh8zMzMzMzMzMzEAAAAbMzMzMzMzMzMzoiIhwAAAZeP////////////////////////////// - /4iZmZEAZmZ4iIh8zMzMzMzMzMxgAABMzMzMzMzMzMzOiIiGAAABiP////////////////////////// - ////////+JmZkQZmZ4iIh8zMzMzMzMzMxAAAbMzMzMzMzMzM7oiIYAABeP////////////////////// - ///////////////4mZkQZmZ4iIjMzMzMzMzMzMYAAMzMzMzMzMzMzu6IhwAAGP////////////////// - /////////////////////4iZmRZmZ4iIfMzMzMzMzMzMAAbMzMzMzMzMzM7oiHAAB4////////////// - ////////////////////////////iZmRBmZ4iIfMzMzMzMzMzGAGzMzMzMzMzMzuiIcAAHj///////// - //////////////////////////////////iZmRZmZ4iIzMzMzMzMzMxgDMzMzMzMzMzM7ohwAAf///// - ////////////////////////////////////////95mRZmaIiHzMzMzMzMzMwEzMzMzMzMzMzuiIEABo - //////////////////////////////////////////////95mRZmaIiMzMzMzMzMzMRszMzMzMzMzM7o - hwAGj///////////////////////////////////////////////95kQZmeIh8zMzMzMzMzGbMzMzMzM - zMzu6HEAB/////////////////////////////////////////////////+ZkQZmiIjMzMzMzMzMxmzM - zMzMzMzM7ohwAGj/////////////////////////////////////////////////iZkWZniIfMzMzMzM - zMZszMzMzMzMxu6HEAbv/4iI/////////////////////////////////////////4iP//iZEGZoiHzM - zMzMzMzGbMzMzMzMzM7uhxAGj/iIiIj//////////////////////////////////////4iIiI//mZFm - aIiMzMzMzMzMxszMzMzMzMzO6IEAbv+IiIiIj/////////////////////////////////////iIiIiP - /4mRBmeIh8zMzMzMzMbMzMzMzMzMbuhxAG7/iIiIiI////////////////iIj///j//////////////4 - iIiIiP/5mQZmiIfMzMzMzMzMzMzMzMzMzO7ocQDo+IiIiIiP///////////////u7u7u7u7o//////// - ////iIiIiIj/+JkWZoiHzMzMzMzMzMzMzMzMzMzu6BEG7/iIiIiIj/////////////+Hd3ju5maO7v// - /////////4iIiIiI//iZEGaIh8zMzMzMzMzMzMzMzMzM7ugRBu//iIiIiI//////////////kZmZdmAZ - mP/////////////4iIiIiP//mRBmeIjMzMzMzMzMzMzMzMzMzO7nEAbv/4iIiIiP////////////+HiI - mZEBd5n/////////////+IiIiIj//4mQZniIzMzMzMzMzMzMzMzMzMzu5xAO7//4iIiI//ju7o////// - //j//4mZeP/4//////////////iIiIiP//+JkGZ4iHzMzMzMzMzMzMzMzMzG7ocQDu///4iI//ju7u7u - j//////////4mP//////////////7u7uiIiI////iZBmaIh8zMzMzMzMzMzMzMzMzu6HEG7v//////+G - ZmZ47u7//////////4//////////////7u7u7u6P/////4mQBmiIfMzMzMzMzMzMzMzMzM7uhRBu7/// - ///3AAAAF37u7///////////////////////h2AABm7u7v/////5kAZ4iHzMzMzMzMzMzMzMzMzO7oUQ - bu//////gQAAZgEG7u//////////////////////+BAAAAAFfu6P////+ZAGeIjMzMzMzMzMzMzMzMzM - zu6FEG7v////+JEAAXhwAG7o/////////////////////4gAABEGARbu7/////kQBoiIzMzMzMzMzMzM - zMzMzM7uhRBu7/////iZABmZkQBm6P////////////////////+JABGZF2AAbo////+JEGaIiMzMzMzM - zMzMzMzMzMzO7ucRbu/////4mRZ4iZkQBu//////////////////////mQB5mZdgAG7/////iRBmiIfM - zMzMzMzMzMzMzMzMxu7nEQ7v////+Bl+j/iZEAaP/////////////////////5l2/4mRAABu/////4kQ - ZoiHzMzMzMzMzMzMzMzMzMzu5xEO6P//+Phgbu/4kQAI//////////////////////+Zfo/4kQAAeIiP - //+JEGaIh8zMzMzMzMzMzMzMzMzM7ucRBu7///iOYHiI+HAAf///////////////////////mYjv+BAA - BuiIj///iQBniIfMzMzMzMzMzMzMzMzMzO7nEQbu///3EAAG6IcRF4iP/////////////////////4GP - /4cQAAZnbv///5EAaIiMzMzMzMzMzMzMzMzMzMzu5xEW7v//iRF3dmZgAXjmj/////////////////// - ///3ePiBEQAHdm7///iRAGiIfMzMzMzMzMzMzMzMzMzM7u5xFu6P/5EZmXZmZmbmaP////////////// - ///////4/4d2cRAAFwbuj//4kQZoiHzMzMzMzMzMzMzMzMzMzG7ucRDu7/iXiZkQAAZmAH////////// - ////////////+IiIdmYABmAX//j/+BAGeIh8zMzMzMzMzMzMzMzMzMzO7nEQbu/4iP+BERkREZf///// - //////////////////+JmXdxEBEAB3////kQBoiIzMzMzMzMzMzMzMzMzMzMzu5xEW7o+P//gZmZmZmP - ////////////////////////+JmZmZmZl453//+JAGaIh8zMzMzMzMzMzMzMzMzMzM7u5xEO7vj/+IeP - iIj////////////////////////////4iZmZmZiPiP//cQBoiIfMzMzMzMzMzMzMzMzMzMzM7ucRFu6P - //iP//////////////////////////////////////+Jn/j/+JAAaIiMzMzMzMzMzMzMzMzMzMzMzO7n - ERbu7//4/////////////////////////////////////////4j///gQBoiIfMzMzMzMzMzMzMzMzMzM - zMzu7nERbuj////////////////////////////////////////////4//+BAAaIiMzMzMzMzMzMzMzM - zMzMzMzMzu5xEW7u////////////////////////////////////////////////cQBoiIfMzMzMzMzM - zMzMzMzMzMzMzM7u5xEW7u//////////////////////////////////////////////+BAAaIiMzMzM - zMzMzMzMzMzMzMzMzMzO7uYREO7o//7v//////////////////////////////////////////cABoiI - fMzMzMzMzMzMzMzMzMzMzMzMzO7ucRFu7oj/7o////////////////////////////////////////9x - AAeIiMzMzMzMzMzMzMzMzMzMzMzMzMzO7ucRFu7nePju7u7v//////////////////////////////// - 6P/4EAB4iIfMzMzMzMzMzMzMzMzMzMzMzMzMzu7nERBu7nmIiO7oj/////////////////////////// - ju7u7o//hwAGiIh8zMzMzMzMzMzMzMzMzMzMzMzMzMzu7nERbu7nmZl5eP////////////////////// - ///4iPiO5nj/+HAAaIiIzMzMzMzMzMzMzMzMzMzMzMzMzMzM7u7nERbu7oiZeI////////////////// - ////////+ImXd5mP/4cAAHiIh8zMzMzMzMzMzMzMzMzMzMzMzMzMzM7u53ERbu7v//////////////// - ///////////////4iZl4//hgAAeIiHzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM7u53ERBu7v////////// - //////////////////////////+GAAB4iI7MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzO7uiHEADujv//// - ///////////////////////////////3AAAGiIh8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzO7ohwABmP - ////////////////////////////////////iREAZniIjMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzuiI - EAB4f///////////////////////////////////+JmZkWZoiIfMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zO6IhwBo//////////////////////////////////////iImZl2ZoiIzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzuiHAA7////////////////////////////////////////4iZFmZ4iHzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzO6IgQBo/////4j///////////////////////////////////mZFmaIiMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzuiHAA7/////iIiP//////7o//////////////////iI/////4mRZmeIh8zMzMzM - zMzMzMzMzMzMzMzMzMzMzO6IcQBo////+IiIiI/////+7u7u7uiIiI7u7v////iIiI/////5mRZmiIjM - zMzMzMzMzMzMzMzMzMzMzMzMzMzuiHAA7////4iIiIiIj//3d2bu7u7u7u7u7u7//4iIiIiP////+JkW - ZniIfMzMzMzMzMzMzMzMzMzMzMzMzMzO6IcQBo////+IiIiIiI//+ZkAAGZmZmZmZmbv//iIiIiIiP// - //+ZkWZoiIzMzMzMzMzMzMzMzMzMzMzMzMzMzuiFAG7////4iIiIiIj///iZABEREREREBAG7//4iIiI - iIj/////iZFmaIiMzMzMzMzMzMzMzMzMzMzMzMzMzO6IcQBo////+IiIiIiI///4kQARERERERERDo// - +IiIiIiIj/////mZBmeIh8zMzMzMzMzMzMzMzMzMzMzMzMzuiHAG7////4iIiIiIiP//+JFmeHd3d3dx - EW6P//iIiIiIiI/////4mRZmiIfMzMzMzMzMzMzMzMzMzMzMzMzO7ocQBo////+IiIiIiIj///iQZoiO - 7u7u5xFu7//4iIiIiIiI////+JkWZniIzMzMzMzMzMzMzMzMzMzMzMzMzuiHEA7////4iIiIiIiP///5 - kGaIju7u7ucRbu///4iIiIiIiP////95kGZ4iHzMzMzMzMzMzMzMzMzMzMzMzM7ogQBu////+IiIiIiI - j///+RBmiI7u7u7nEW7v//+IiIiIiIiP////iZFmaIh8zMzMzMzMzMzMzMzMzMzMzMzu6HEAaP////iI - iIiIiI////kQZoiHzMzu5xEO6P//iIiIiIiIj////4mRZmiIjMzMzMzMzMzMzMzMzMzMzMzM7ugRBu// - ///4iIiIiIj///+JEGaIh8zM7ucRBu7//4iIiIiIiI/////5kQZniIzMzMzMzMzMzMzMzMzMzMzMzO6I - EAbv////iIiIiIiI////iQBniIzMzO7oERbu///4iIiIiIiP////+JkGZ4iHzMzMzMzMzMzMzMzMzMzM - zMbuhxAGj////4iIiIiIj////3kAaIiMzMzu7nEW7v//+IiIiIiIiP////iZFmaIh8zMzMzMzMzMzMzM - zMzMzMzO7oUQbv////+IiIiIiI////+RBmiIfMzMzu5xFu6P//+IiIiIiIj////4mRZmiIfMzMzMzMzM - zMzMzMzMzMzMzu6BAG7////4iIiIiIj////4kQZoiHzMzM7ucRDu7///iIiIiIiIj////5kQZoiHzMzM - zMzMzMzMzMzMzMzMzM7ocQBu////+IiIiIiI////+JAGeIh8zMzO7nERbu///4iIiIiIiI////95EGaI - h8zMzMzMzMzMzMzMzMzMzMxu6HEA7v////iIiIiIiP////cQBoiIzMzMzu7lEW7v///4iIiIiIiP//// - iRBmeIjMzMzMzMzMzMzMzMzMzMzM7uhxBuj////4iIiIiI/////5EAaIiMzMzMbu5xEO7v//+IiIiIiI - j////4kQZniIzMzMzMzMzMzMzMzMzMzMzO7oEQbv////+IiIiIj/////iQBmiIfMzMzM7ucRBu7///iI - iIiIiIj///+JkGZ4iMzMzMzMzMzMzMzMzMzMzMzu6BEG7/////iIiIiI/////4EAaIiHzMzMzO7nERbu - j///iIiIiIiI////iZBmaIh8zMzMzMzMzMzMzMzMzMzM7ucRBu/////4iIiIj/////+RAGiIjMzMzMzu - 7nEQ7u////iIiIiIiP///4mQBmiIfMzMzMzMzMzMzMzMzMzMzO7nEAbv////+IiIiP/////4EAZ4iHzM - zMzMzu5xEG7v///4iIiIiIj///+JkAZoiHzMzMzMzMzMxmzMzMzMzMzu5xAO7/////+IiI//////+RAG - iIjMzMzMzM7ucRFu7v///4iIiIiI////+ZAGaIh8zMzMzMzMzMZszMzMzMzG7ocQDu//////+I////// - /4EAZoiIzMzMzMzO7ucRBu7////4iIiIiP////mQBmiIfMzMzMzMzMzGbMzMzMzMzu6HEA7v//////// - //////9xAGiIh8zMzMzMzO7nERbu7///+IiIiI/////5kAZoiHzMzMzMzMzMxmzMzMzMzM7uhxAO7/// - ///////////4EABoiIzMzMzMzMzu7nEQbu////+IiIiP////+ZAGaIh8zMzMzMzMzMZszMzMzMzO7oUQ - Du//////////////9xAGiIh8zMzMzMzM7u5xEW7u/////4iI//////mQBmiIfMzMzMzMzMzGTMzMzMzM - zu6HEA7v/////////////4EABoiIzMzMzMzMzM7u5xEG7v/////////////5kAZoiHzMzMzMzMzMxAzM - zMzMzM7uhxEO7/////////////9wAGiIh8zMzMzMzMzO7ucRFu7v////////////+RAGeIh8zMzMzMzM - zMAGzMzMzMzO7ucRDuj////////////4EAB4iIzMzMzMzMzMzO7ucRBu6P///////////4kQBoiIzMzM - zMzMzMxgBszMzMzMxu7nEQbo////////////gQAGiIh8zMzMzMzMzMzu7nERDu7///////////+JEAaI - iMzMzMzMzMzMYADMzMzMzMzu5xEG7v///////////3EAZ4iIzMzMzMzMzMzMzu7nERbu7/////////// - gQBmiIfMzMzMzMzMzAAAbMzMzMzM7ucRBu7///////////gQAGiIh8zMzMzMzMzMzM7u5xEQbu7///// - /////5EAZ4iHzMzMzMzMzMYAAEzMzMzMzO7nERDu7/////////+HAAaIiIzMzMzMzMzMzMzM7u5xEQ7u - 7/////////gQAGiIjMzMzMzMzMzEAAAGzMzMzMzu7nEQbuj////////4cAAHiIh8zMzMzMzMzMzMzO7u - dxEW7uj////////3AAZoiHzMzMzMzMzMYAAABMzMzMzM7u5xEG7u////////hgAAeIiHzMzMzMzMzMzM - zMzO7ucREW7u7///////gQAGiIh8zMzMzMzMzEAAAABszMzMzM7ucREG7uj/////hmAAB4iI7MzMzMzM - zMzMzMzMzu7ucREG7u6P////+AAAB4iIzMzMzMzMzMYAAAAATMzMzMzO7ucREG7u7oiO7mAAAHiIiMzM - zMzMzMzMzMzMzMzu7ucREG7u7o//+HYAAHiIh8zMzMzMzMzEAAAAAAbMzMzMzu7nEREG7u7u5mAAAAeI - iIfMzMzMzMzMzMzMzMzMzu7ucREQbu7u7uYAAAeIiHzMzMzMzMzMYAAAAAAAbMzMzMzu7nEREAZmZgAA - AAF4iI58zMzMzMzMzMzMzMzMzMzu7ncREQZm7mZgAAB4iI7MzMzMzMzMxgAAAAAAAEzMzMzM7u7nEREQ - AAAAABF4iI7uzMzMzMzMzMzMzMzMzMzM7u7ucRERAAAAAAAHiIiMzMzMzMzMzMQAAAAAAAAGzMzMzM7u - 7nERERERERF3iIju7MzMzMzMzMzMzMzMzMzMzM7u7udREREQAAAReIiIfMzMzMzMzMxgAAAAAAAAAGzM - zMzM7u7udRERERV4iI7u7MzMzMzMzMzMzMzMzMzMzMzM7u7u5xEREREReIiO7MzMzMzMzMzGAAAAAAAA - AAAGzMzMzM7u7u53d3eIiO7u7szMzMzMzMzMzMzMzMzMzMzMzM7u7u7nd1F3eIiO7uzMzMzMzMzMYAAA - AAAAAAAAAGzMzMzM7u7u7u7u7u7u7szMzMzMzMzMzMzMzMzMzMzMzMzMzu7u7u6IiI7u7uzMzMzMzMzM - xgAAAAAAAAAAAAAGzMzMzMzu7u7u7u7u5szMzMzMzMzMzMzMzMzMzMzMzMzMzMzO7u7u7u7u7u7MzMzM - zMzMzGAAAAAAAAAAAAAAAEbMzMzMzG7u7u7ubMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM7u7u7u7uzM - zMzMzMzMzGQAAAAAAAAAAAAAAAAAbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzG7u - 7szMzMzMzMzMzMYAAAAAAAAAAAAAAAAAAARszMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAABGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAAAABmzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzGYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARGZmzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZmZEAAAAAAAAAAAAAAAAD////+AAAAAAAAAAD/////////AAAA - AAAAAAAAAP//////+AAAAAAAAAAAAAAf/////+AAAAAAAAAAAAAAB/////+AAAAAAAAAAAAAAAH////+ - AAAAAAAAAAAAAAAAf////AAAAAAAAAAAAAAAAD////AAAAAAAAAAAAAAAAAP///gAAAAAAAAAAAAAAAA - B///wAAAAAAAAAAAAAAAAAP//4AAAAAAAAAAAAAAAAAB//8AAAAAAAAAAAAAAAAAAP/+AAAAAAAAAAAA - AAAAAAB//gAAAAAAAAAAAAAAAAAAf/wAAAAAAAAAAAAAAAAAAD/4AAAAAAAAAAAAAAAAAAAf+AAAAAAA - AAAAAAAAAAAAH/AAAAAAAAAAAAAAAAAAAA/wAAAAAAAAAAAAAAAAAAAP4AAAAAAAAAAAAAAAAAAAB+AA - AAAAAAAAAAAAAAAAAAfAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAAAAA - AAOAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAA - AAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAABAAAAAAAA - AAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAA - AAGAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAA - AAAAAAABgAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAPAAAAAAAAAAAAAAAAAAAADwAAAAAAA - AAAAAAAAAAAAA+AAAAAAAAAAAAAAAAAAAAfgAAAAAAAAAAAAAAAAAAAH8AAAAAAAAAAAAAAAAAAAD/AA - AAAAAAAAAAAAAAAAAA/4AAAAAAAAAAAAAAAAAAAf+AAAAAAAAAAAAAAAAAAAH/wAAAAAAAAAAAAAAAAA - AD/+AAAAAAAAAAAAAAAAAAB//gAAAAAAAAAAAAAAAAAAf/8AAAAAAAAAAAAAAAAAAP//gAAAAAAAAAAA - AAAAAAH//8AAAAAAAAAAAAAAAAAD///gAAAAAAAAAAAAAAAAB///8AAAAAAAAAAAAAAAAA////wAAAAA - AAAAAAAAAAA////+AAAAAAAAAAAAAAAAf////4AAAAAAAAAAAAAAAf/////gAAAAAAAAAAAAAAf///// - +AAAAAAAAAAAAAAf//////8AAAAAAAAAAAAA/////////gAAAAAAAAAAf////w== - - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ShopForms/Old/MaterialManageForm.Designer.cs b/TEMUKJD/KJDForms/ShopForms/Old/MaterialManageForm.Designer.cs deleted file mode 100644 index 5d9ab24..0000000 --- a/TEMUKJD/KJDForms/ShopForms/Old/MaterialManageForm.Designer.cs +++ /dev/null @@ -1,519 +0,0 @@ -namespace TemuKJD.KJDForms.ShopForms -{ - partial class MaterialManageForm - { - /// - /// 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(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.ucGroupBoxEx3 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.dtEndTime = new DevComponents.Editors.DateTimeAdv.DateTimeInput(); - this.dtBaginTime = new DevComponents.Editors.DateTimeAdv.DateTimeInput(); - this.labelX47 = new DevComponents.DotNetBar.LabelX(); - this.label4 = new System.Windows.Forms.Label(); - this.btnClear = new DevComponents.DotNetBar.PanelEx(); - this.btnStop = new DevComponents.DotNetBar.PanelEx(); - this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.btnGetProductCount = new TemuKJD.UserControls.ButtonEx(); - this.btnRefreshShop = new TemuKJD.UserControls.ButtonEx(); - this.splitContainer3 = new System.Windows.Forms.SplitContainer(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colAuthStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.splitContainer4 = new System.Windows.Forms.SplitContainer(); - this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - this.ucGroupBoxEx3.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dtEndTime)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.dtBaginTime)).BeginInit(); - 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.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgvShop)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).BeginInit(); - this.splitContainer4.Panel1.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.btnClear); - this.splitContainer1.Panel1.Controls.Add(this.btnStop); - this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx1); - this.splitContainer1.Panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.splitContainer1_Panel1_Paint); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.splitContainer3); - this.splitContainer1.Size = new System.Drawing.Size(1091, 623); - this.splitContainer1.SplitterDistance = 120; - this.splitContainer1.TabIndex = 5; - // - // ucGroupBoxEx3 - // - this.ucGroupBoxEx3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left))); - this.ucGroupBoxEx3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.ucGroupBoxEx3.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND; - this.ucGroupBoxEx3.Controls.Add(this.dtEndTime); - this.ucGroupBoxEx3.Controls.Add(this.dtBaginTime); - this.ucGroupBoxEx3.Controls.Add(this.labelX47); - this.ucGroupBoxEx3.Controls.Add(this.label4); - this.ucGroupBoxEx3.Location = new System.Drawing.Point(147, 2); - this.ucGroupBoxEx3.Name = "ucGroupBoxEx3"; - this.ucGroupBoxEx3.Size = new System.Drawing.Size(329, 120); - this.ucGroupBoxEx3.TabIndex = 423; - this.ucGroupBoxEx3.TabStop = false; - this.ucGroupBoxEx3.Text = "操作选项"; - // - // dtEndTime - // - // - // - // - this.dtEndTime.BackgroundStyle.Class = "DateTimeInputBackground"; - this.dtEndTime.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dtEndTime.ButtonDropDown.Shortcut = DevComponents.DotNetBar.eShortcut.AltDown; - this.dtEndTime.ButtonDropDown.Visible = true; - this.dtEndTime.IsPopupCalendarOpen = false; - this.dtEndTime.Location = new System.Drawing.Point(197, 32); - // - // - // - // - // - // - this.dtEndTime.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dtEndTime.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1); - this.dtEndTime.MonthCalendar.ClearButtonVisible = true; - // - // - // - this.dtEndTime.MonthCalendar.CommandsBackgroundStyle.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground2; - this.dtEndTime.MonthCalendar.CommandsBackgroundStyle.BackColorGradientAngle = 90; - this.dtEndTime.MonthCalendar.CommandsBackgroundStyle.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground; - this.dtEndTime.MonthCalendar.CommandsBackgroundStyle.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; - this.dtEndTime.MonthCalendar.CommandsBackgroundStyle.BorderTopColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarDockedBorder; - this.dtEndTime.MonthCalendar.CommandsBackgroundStyle.BorderTopWidth = 1; - this.dtEndTime.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dtEndTime.MonthCalendar.DisplayMonth = new System.DateTime(2019, 3, 1, 0, 0, 0, 0); - // - // - // - this.dtEndTime.MonthCalendar.NavigationBackgroundStyle.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; - this.dtEndTime.MonthCalendar.NavigationBackgroundStyle.BackColorGradientAngle = 90; - this.dtEndTime.MonthCalendar.NavigationBackgroundStyle.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; - this.dtEndTime.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dtEndTime.MonthCalendar.TodayButtonVisible = true; - this.dtEndTime.Name = "dtEndTime"; - this.dtEndTime.Size = new System.Drawing.Size(105, 23); - this.dtEndTime.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.dtEndTime.TabIndex = 71; - // - // dtBaginTime - // - // - // - // - this.dtBaginTime.BackgroundStyle.Class = "DateTimeInputBackground"; - this.dtBaginTime.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dtBaginTime.ButtonDropDown.Shortcut = DevComponents.DotNetBar.eShortcut.AltDown; - this.dtBaginTime.ButtonDropDown.Visible = true; - this.dtBaginTime.IsPopupCalendarOpen = false; - this.dtBaginTime.Location = new System.Drawing.Point(82, 32); - // - // - // - // - // - // - this.dtBaginTime.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dtBaginTime.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1); - this.dtBaginTime.MonthCalendar.ClearButtonVisible = true; - // - // - // - this.dtBaginTime.MonthCalendar.CommandsBackgroundStyle.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground2; - this.dtBaginTime.MonthCalendar.CommandsBackgroundStyle.BackColorGradientAngle = 90; - this.dtBaginTime.MonthCalendar.CommandsBackgroundStyle.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground; - this.dtBaginTime.MonthCalendar.CommandsBackgroundStyle.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; - this.dtBaginTime.MonthCalendar.CommandsBackgroundStyle.BorderTopColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarDockedBorder; - this.dtBaginTime.MonthCalendar.CommandsBackgroundStyle.BorderTopWidth = 1; - this.dtBaginTime.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dtBaginTime.MonthCalendar.DisplayMonth = new System.DateTime(2019, 3, 1, 0, 0, 0, 0); - // - // - // - this.dtBaginTime.MonthCalendar.NavigationBackgroundStyle.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; - this.dtBaginTime.MonthCalendar.NavigationBackgroundStyle.BackColorGradientAngle = 90; - this.dtBaginTime.MonthCalendar.NavigationBackgroundStyle.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; - this.dtBaginTime.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dtBaginTime.MonthCalendar.TodayButtonVisible = true; - this.dtBaginTime.Name = "dtBaginTime"; - this.dtBaginTime.Size = new System.Drawing.Size(105, 23); - this.dtBaginTime.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.dtBaginTime.TabIndex = 70; - // - // labelX47 - // - // - // - // - this.labelX47.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX47.Location = new System.Drawing.Point(27, 32); - this.labelX47.Name = "labelX47"; - this.labelX47.Size = new System.Drawing.Size(56, 23); - this.labelX47.TabIndex = 72; - this.labelX47.Text = "起止时间"; - // - // label4 - // - this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(186, 35); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(13, 17); - this.label4.TabIndex = 73; - this.label4.Text = "-"; - // - // btnClear - // - this.btnClear.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | 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(929, 12); - this.btnClear.Name = "btnClear"; - this.btnClear.Size = new System.Drawing.Size(72, 23); - 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.TabIndex = 409; - this.btnClear.Text = "清理素材"; - this.btnClear.Click += new System.EventHandler(this.btnClear_Click); - // - // btnStop - // - this.btnStop.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - 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(1007, 12); - this.btnStop.Name = "btnStop"; - this.btnStop.Size = new System.Drawing.Size(72, 23); - this.btnStop.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnStop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStop.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnStop.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStop.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnStop.Style.GradientAngle = 90; - this.btnStop.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnStop.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnStop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStop.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnStop.TabIndex = 405; - this.btnStop.Text = "停止操作"; - this.btnStop.Click += new System.EventHandler(this.btnStop_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.btnGetProductCount); - this.ucGroupBoxEx1.Controls.Add(this.btnRefreshShop); - this.ucGroupBoxEx1.Location = new System.Drawing.Point(3, 2); - this.ucGroupBoxEx1.Name = "ucGroupBoxEx1"; - this.ucGroupBoxEx1.Size = new System.Drawing.Size(144, 120); - this.ucGroupBoxEx1.TabIndex = 399; - this.ucGroupBoxEx1.TabStop = false; - this.ucGroupBoxEx1.Text = "基础"; - // - // btnGetProductCount - // - this.btnGetProductCount.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnGetProductCount.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnGetProductCount.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnGetProductCount.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnGetProductCount.ForeColor = System.Drawing.Color.White; - this.btnGetProductCount.Location = new System.Drawing.Point(16, 69); - this.btnGetProductCount.Margin = new System.Windows.Forms.Padding(2); - this.btnGetProductCount.Name = "btnGetProductCount"; - this.btnGetProductCount.Size = new System.Drawing.Size(112, 26); - this.btnGetProductCount.TabIndex = 376; - this.btnGetProductCount.Text = "获取素材文件夹"; - this.btnGetProductCount.UseVisualStyleBackColor = false; - this.btnGetProductCount.Visible = false; - this.btnGetProductCount.Click += new System.EventHandler(this.btnGetProductCount_Click); - // - // btnRefreshShop - // - this.btnRefreshShop.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRefreshShop.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnRefreshShop.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnRefreshShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnRefreshShop.ForeColor = System.Drawing.Color.White; - this.btnRefreshShop.Location = new System.Drawing.Point(16, 30); - this.btnRefreshShop.Margin = new System.Windows.Forms.Padding(2); - this.btnRefreshShop.Name = "btnRefreshShop"; - this.btnRefreshShop.Size = new System.Drawing.Size(112, 26); - this.btnRefreshShop.TabIndex = 375; - this.btnRefreshShop.Text = "刷新店铺状态"; - this.btnRefreshShop.UseVisualStyleBackColor = false; - this.btnRefreshShop.Click += new System.EventHandler(this.btnRefreshShop_Click); - // - // 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(1091, 499); - this.splitContainer3.SplitterDistance = 469; - 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.dgvShop); - this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 4, 0); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Padding = new System.Windows.Forms.Padding(0, 0, 4, 0); - this.splitContainer2.Panel2Collapsed = true; - this.splitContainer2.Size = new System.Drawing.Size(1091, 469); - this.splitContainer2.SplitterDistance = 336; - this.splitContainer2.TabIndex = 0; - // - // dgvShop - // - this.dgvShop.AllowUserToAddRows = false; - this.dgvShop.AllowUserToDeleteRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - 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.colShopId, - this.colShopName, - this.colAuthStatus, - this.colMessage}); - this.dgvShop.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvShop.Location = new System.Drawing.Point(4, 0); - this.dgvShop.Name = "dgvShop"; - this.dgvShop.ReadOnly = true; - this.dgvShop.RowHeadersWidth = 42; - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvShop.RowsDefaultCellStyle = dataGridViewCellStyle3; - this.dgvShop.RowTemplate.Height = 23; - this.dgvShop.Size = new System.Drawing.Size(1083, 469); - this.dgvShop.TabIndex = 6; - this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick); - // - // colSelect - // - 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 = 40; - // - // colShopId - // - this.colShopId.HeaderText = "店铺"; - this.colShopId.Name = "colShopId"; - this.colShopId.ReadOnly = true; - // - // colShopName - // - this.colShopName.FillWeight = 150F; - this.colShopName.HeaderText = "店铺名称"; - this.colShopName.Name = "colShopName"; - this.colShopName.ReadOnly = true; - this.colShopName.Resizable = System.Windows.Forms.DataGridViewTriState.True; - // - // colAuthStatus - // - this.colAuthStatus.HeaderText = "授权状态"; - this.colAuthStatus.Name = "colAuthStatus"; - this.colAuthStatus.ReadOnly = true; - this.colAuthStatus.Width = 65; - // - // colMessage - // - this.colMessage.HeaderText = "消息"; - this.colMessage.Name = "colMessage"; - this.colMessage.ReadOnly = true; - this.colMessage.Width = 520; - // - // 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); - this.splitContainer4.Size = new System.Drawing.Size(1091, 26); - this.splitContainer4.SplitterDistance = 684; - 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(684, 26); - this.statusBar.TabIndex = 2; - // - // MaterialManageForm - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1091, 623); - this.Controls.Add(this.splitContainer1); - this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Name = "MaterialManageForm"; - this.Text = "素材管理"; - this.Load += new System.EventHandler(this.MaterialManageForm_Load); - this.VisibleChanged += new System.EventHandler(this.MaterialManageForm_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(); - ((System.ComponentModel.ISupportInitialize)(this.dtEndTime)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.dtBaginTime)).EndInit(); - this.ucGroupBoxEx1.ResumeLayout(false); - 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); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); - this.splitContainer2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.dgvShop)).EndInit(); - this.splitContainer4.Panel1.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 ucGroupBoxEx3; - private DevComponents.DotNetBar.PanelEx btnClear; - private DevComponents.DotNetBar.PanelEx btnStop; - private UserComponent.UcGroupBoxEx ucGroupBoxEx1; - private UserControls.ButtonEx btnRefreshShop; - private System.Windows.Forms.SplitContainer splitContainer3; - private System.Windows.Forms.SplitContainer splitContainer2; - private UserComponent.DataGridViewEx dgvShop; - private System.Windows.Forms.SplitContainer splitContainer4; - private UserControls.StatusBarUserControl statusBar; - private UserControls.ButtonEx btnGetProductCount; - private DevComponents.Editors.DateTimeAdv.DateTimeInput dtEndTime; - private DevComponents.Editors.DateTimeAdv.DateTimeInput dtBaginTime; - private DevComponents.DotNetBar.LabelX labelX47; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopId; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopName; - private System.Windows.Forms.DataGridViewTextBoxColumn colAuthStatus; - private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ShopForms/Old/MaterialManageForm.cs b/TEMUKJD/KJDForms/ShopForms/Old/MaterialManageForm.cs deleted file mode 100644 index 182d8ad..0000000 --- a/TEMUKJD/KJDForms/ShopForms/Old/MaterialManageForm.cs +++ /dev/null @@ -1,370 +0,0 @@ -using AllBase.Helper; -using TemuKJD.Extension; -using TemuKJD.KJDForms.BaseForms; -using NaiBa.Util.Extension; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; -using Work.BLL.Upload; -using Work.DouyinApiClass; - -namespace TemuKJD.KJDForms.ShopForms -{ - public partial class MaterialManageForm : BaseForm - { - private CheckBox chkSelectAll = null; - CancellationTokenSource cancellationTokenSource = null; - - public MaterialManageForm() - { - InitializeComponent(); - } - - private void MaterialManageForm_Load(object sender, EventArgs e) - { - chkSelectAll = this.dgvShop.Columns["colSelect"].AddHeaderCheckBox(HorizontalAlignment.Center, 0, 0, null, null, false, null, true); - chkSelectAll.Width = chkSelectAll.Height = 13; - chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged; - dtEndTime.Value = DateTime.Now.Date.AddDays(-8); - dtBaginTime.Value = DateTime.Now.Date.AddYears(-1); - } - - 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.ApiAuthStatus == "授权成功").Select(ss => ss.ShopId); - foreach (DataGridViewRow row in dgvShop.Rows) - { - if (list.Any(l => l == row.Cells["colShopId"]?.Value?.ToString())) - row.Cells["colSelect"].Value = true; - } - } - } - - public void LoadShops() - { - // 获取被删除的店铺 - 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); - } - - for (int i = 0; i < GlobalConfig.ShopLoginList.Count; i++) - { - var shop = GlobalConfig.ShopLoginList[i]; - var row = dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value?.ToString() == shop.ShopId); - if (row == null) - dgvShop.Rows.Add(false, shop.ShopId, shop.ShopAccount, shop.LoginStatus); - else - { - row.Cells["colAuthStatus"].Value = shop.ApiAuthStatus; - } - } - } - - private void btnRefreshShop_Click(object sender, EventArgs e) - { - LoadShops(); - } - - private void MaterialManageForm_VisibleChanged(object sender, EventArgs e) - { - if (Visible) - LoadShops(); - } - - private void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - string colId = dgvShop.Columns[e.ColumnIndex].Name; - if (colId == "colSelect") - { - dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value = !dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value.ParseToBool(); - } - } - - private void btnGetProductCount_Click(object sender, EventArgs e) - { - var lstShopId = dgvShop.Rows.Cast() - .Where(r => r.Cells["colSelect"].Value.ParseToBool()) - .Select(r => r.Cells["colShopId"].Value?.ToString()).ToList(); - if (lstShopId.Count == 0) - { - BaseMsgForm.ShowInfo("请选择要获取素材的店铺"); - return; - } - this.btnGetProductCount.Enabled = false; - foreach (DataGridViewRow row in dgvShop.Rows) - { - if (lstShopId.Contains(row.Cells["colShopId"]?.Value)) - row.Cells["colMessage"].Value = ""; - } - Task.Run(() => - { - GetShopMaterial(); - - Invoke(new Action(() => - { - btnGetProductCount.Enabled = true; - BaseMsgForm.ShowInfo("素材获取完成"); - })); - }); - } - - void GetShopMaterial() - { - } - - private void splitContainer1_Panel1_Paint(object sender, PaintEventArgs e) - { - - } - - private void btnClear_Click(object sender, EventArgs e) - { - var lstShopId = dgvShop.Rows.Cast() - .Where(r => r.Cells["colSelect"].Value.ParseToBool()) - .Select(r => r.Cells["colShopId"].Value?.ToString()).ToList(); - if (lstShopId.Count == 0) - { - BaseMsgForm.ShowInfo("请选择要清理素材的店铺"); - return; - } - - this.btnClear.Enabled = false; - foreach (DataGridViewRow row in dgvShop.Rows) - { - if (lstShopId.Contains(row.Cells["colShopId"]?.Value)) - row.Cells["colMessage"].Value = ""; - } - - int n = 0; - cancellationTokenSource = new CancellationTokenSource(); - Task.Run(() => - { - var shopList = GlobalConfig.ShopLoginList.Where(s => s.ApiAuthStatus == "授权成功" && lstShopId.Contains(s.ShopId)); - foreach (var shop in shopList) - { - DataGridViewRow row = null; - - this.Invoke(new Action(() => - { - n++; - var total = lstShopId.Count(); - - this.statusBar.lblTaskStatus.Text = "正在清理素材..."; - this.statusBar.pgbTaskProgress.Value = n; - this.statusBar.pgbTaskProgress.Text = n + "/" + total; - this.statusBar.pgbTaskProgress.Maximum = total; - - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colMessage"].Value = "正在获取素材文件夹"; } - })); - - if (shop.PayStatus != 1) - { - if (row != null) { Invoke(new Action(() => { row.Cells["colMessage"].Value = "当前为试用版,请购买专业版"; })); } - goto operateEnd; - } - - List folderIds = new List(); - for (int page = 1; page < 9999; page++) - { - if (cancellationTokenSource.IsCancellationRequested) - { - if (row != null) { Invoke(new Action(() => { row.Cells["colMessage"].Value = "获取素材文件夹中断"; })); } - goto operateEnd; - } - - var folder = new UploadMaterialBLL().GetApiMaterialFolder(shop, "0", 50, page, 1, - this.dtBaginTime.Value.ToString("yyyy-MM-dd HH:mm:ss"), this.dtEndTime.Value.AddDays(1).ToString("yyyy-MM-dd HH:mm:ss")); - if (!folder.Contains("\"code\":10000")) - folder = new UploadMaterialBLL().GetApiMaterialFolder(shop, "0", 50, 1, 1, - this.dtBaginTime.Value.ToString("yyyy-MM-dd HH:mm:ss"), this.dtEndTime.Value.AddDays(1).ToString("yyyy-MM-dd HH:mm:ss")); - Thread.Sleep(500); - if (folder.Contains("\"code\":10000")) - { - var JObj = AllBase.JsonHelper.JObjectParse(folder); - if (JObj?["data"]?["folder_info_list"] != null) - { - if (JObj?["data"]?["folder_info_list"].Count() == 0) - break; - - foreach (Newtonsoft.Json.Linq.JObject j in JObj?["data"]?["folder_info_list"]) - { - folderIds.Add(j["folder_id"]?.ToString()); - } - } - else - break; - } - } - - this.Invoke(new Action(() => - { - if (row != null) { row.Cells["colMessage"].Value = "正在删除素材文件夹"; } - })); - string deleteIdStr = ""; - foreach (var folderid in folderIds) - { - if (cancellationTokenSource.IsCancellationRequested) - { - if (row != null) { Invoke(new Action(() => { row.Cells["colMessage"].Value = "删除素材文件夹中断"; })); } - goto operateEnd; - } - deleteIdStr += "\\\"" + folderid + "\\\","; - if (folderid == folderIds.LastOrDefault() || deleteIdStr.TrimEnd(',').Split(',').Count() == 20) - { - DouyinApi api = new DouyinApi(shop); - api.JsonData = new Dictionary(); - api.JsonData.Add("folder_ids", "[" + deleteIdStr.TrimEnd(',') + "]"); - string html = api.MaterialDeleteFolder(); - Thread.Sleep(500); - // {"code":10000,"data":{"failed_map":{},"success_ids":["70344526568442923861819","70673777705522138001819","70677148692769999721819","70682264025747458561819","70684999170644871991819","70689259618189970281819","70696976534408563231819","70700172511513316241819","70703300876101225031819","70707122616226450031819","70711553799834012461819","70722448124932426591819","70726708088621960061819","70752688859723205501819","70763331833771133521819"]},"err_no":0,"log_id":"20220326131033010212035232207F377B","message":"success","msg":"success","sub_code":"","sub_msg":""} - if (html.Contains("\"code\":10000")) - { - if (!html.Contains("\"failed_map\":{}")) - { - AllBase.LogSave.AddFile(html); - } - //AllBase.FileBase.AppendAllText("material_failed_log_" + DateTime.Now.ToString("yyyyMMdd") + ".txt", html + "\r\n"); - } - else - { - } - deleteIdStr = ""; - } - } - - this.Invoke(new Action(() => - { - if (row != null) { row.Cells["colMessage"].Value = "素材文件夹删除完成"; } - })); - Thread.Sleep(2000); - - - // 删除根目录素材文件 - this.Invoke(new Action(() => - { - if (row != null) { row.Cells["colMessage"].Value = "正在获取根目录素材文件"; } - })); - - List MaterialIds = new List(); - for (int page = 1; page < 9999; page++) - { - if (cancellationTokenSource.IsCancellationRequested) - { - if (row != null) { Invoke(new Action(() => { row.Cells["colMessage"].Value = "获取根目录素材文件中断"; })); } - goto operateEnd; - } - - var Material = new UploadMaterialBLL().GetApiMaterial(shop, "0", 100, page, 1, - this.dtBaginTime.Value.ToString("yyyy-MM-dd HH:mm:ss"), this.dtEndTime.Value.AddDays(1).ToString("yyyy-MM-dd HH:mm:ss")); - if (!Material.Contains("\"code\":10000")) - Material = new UploadMaterialBLL().GetApiMaterial(shop, "0", 100, page, 1, - this.dtBaginTime.Value.ToString("yyyy-MM-dd HH:mm:ss"), this.dtEndTime.Value.AddDays(1).ToString("yyyy-MM-dd HH:mm:ss")); - Thread.Sleep(500); - if (Material.Contains("\"code\":10000")) - { - var JObj = AllBase.JsonHelper.JObjectParse(Material); - if (JObj?["data"]?["material_info_list"] != null) - { - if (JObj?["data"]?["material_info_list"].Count() == 0) - break; - - foreach (Newtonsoft.Json.Linq.JObject j in JObj?["data"]?["material_info_list"]) - { - MaterialIds.Add(j["material_id"]?.ToString()); - } - } - } - } - - this.Invoke(new Action(() => - { - if (row != null) { row.Cells["colMessage"].Value = "正在删除根目录素材文件"; } - })); - string deleteMaterialIdStr = ""; - foreach (var materialId in MaterialIds) - { - if (cancellationTokenSource.IsCancellationRequested) - { - if (row != null) { Invoke(new Action(() => { row.Cells["colMessage"].Value = "删除根目录素材文件中断"; })); } - goto operateEnd; - } - deleteMaterialIdStr += "\\\"" + materialId + "\\\","; - if (materialId == MaterialIds.LastOrDefault() || deleteMaterialIdStr.TrimEnd(',').Split(',').Count() == 100) - { - DouyinApi api = new DouyinApi(shop); - api.JsonData = new Dictionary(); - api.JsonData.Add("material_ids", "[" + deleteMaterialIdStr.TrimEnd(',') + "]"); - string html = api.MaterialDeleteMaterial(); - Thread.Sleep(500); - if (html.Contains("\"code\":10000")) - { - if (!html.Contains("\"failed_map\":{}")) - { - AllBase.LogSave.AddFile(html); - } - } - else - { - } - deleteMaterialIdStr = ""; - } - } - - this.Invoke(new Action(() => - { - row = this.dgvShop.Rows.Cast().FirstOrDefault(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId); - if (row != null) { row.Cells["colMessage"].Value = "素材文件夹删除完成"; } - })); - Thread.Sleep(2000); - - - - - - - //var xx = new UploadMaterialBLL().GetApiMaterial(shop, "70771032852027148841819", 50); - } - - operateEnd: - Invoke(new Action(() => - { - btnClear.Enabled = true; - if (cancellationTokenSource.IsCancellationRequested) - BaseMsgForm.ShowInfo("清理素材中断"); - else - BaseMsgForm.ShowInfo("清理素材完成"); - })); - }, cancellationTokenSource.Token); - - } - - private void btnStop_Click(object sender, EventArgs e) - { - if (cancellationTokenSource != null) - cancellationTokenSource.Cancel(); - } - } -} diff --git a/TEMUKJD/KJDForms/ShopForms/Old/MaterialManageForm.resx b/TEMUKJD/KJDForms/ShopForms/Old/MaterialManageForm.resx deleted file mode 100644 index d0c96af..0000000 --- a/TEMUKJD/KJDForms/ShopForms/Old/MaterialManageForm.resx +++ /dev/null @@ -1,132 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ShopForms/Old/ShopAuthForm.Designer.cs b/TEMUKJD/KJDForms/ShopForms/Old/ShopAuthForm.Designer.cs deleted file mode 100644 index 9df2ad5..0000000 --- a/TEMUKJD/KJDForms/ShopForms/Old/ShopAuthForm.Designer.cs +++ /dev/null @@ -1,283 +0,0 @@ -namespace TemuKJD.KJDForms.ShopForms -{ - partial class ShopAuthForm - { - /// - /// 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() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ShopAuthForm)); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.buttonEx1 = new TemuKJD.UserControls.ButtonEx(); - this.btnAuthInWeb = new TemuKJD.UserControls.ButtonEx(); - this.label2 = new System.Windows.Forms.Label(); - this.label1 = new System.Windows.Forms.Label(); - this.btnCopyPassword = new TemuKJD.UserControls.ButtonEx(); - this.btnCopyUserName = new TemuKJD.UserControls.ButtonEx(); - this.txtPassWord = new System.Windows.Forms.TextBox(); - this.txtUserName = new System.Windows.Forms.TextBox(); - this.btnStop = new TemuKJD.UserControls.ButtonEx(); - this.btnReload = new TemuKJD.UserControls.ButtonEx(); - this.chkCloseAfterLogin = new DevComponents.DotNetBar.Controls.CheckBoxX(); - this.txtAddress = new System.Windows.Forms.TextBox(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - this.SuspendLayout(); - // - // splitContainer1 - // - this.splitContainer1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; - this.splitContainer1.Location = new System.Drawing.Point(1, 33); - this.splitContainer1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); - this.splitContainer1.Name = "splitContainer1"; - this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal; - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.BackColor = System.Drawing.Color.White; - this.splitContainer1.Panel2.Controls.Add(this.buttonEx1); - this.splitContainer1.Panel2.Controls.Add(this.btnAuthInWeb); - this.splitContainer1.Panel2.Controls.Add(this.label2); - this.splitContainer1.Panel2.Controls.Add(this.label1); - this.splitContainer1.Panel2.Controls.Add(this.btnCopyPassword); - this.splitContainer1.Panel2.Controls.Add(this.btnCopyUserName); - this.splitContainer1.Panel2.Controls.Add(this.txtPassWord); - this.splitContainer1.Panel2.Controls.Add(this.txtUserName); - this.splitContainer1.Panel2.Controls.Add(this.btnStop); - this.splitContainer1.Panel2.Controls.Add(this.btnReload); - this.splitContainer1.Panel2.Controls.Add(this.chkCloseAfterLogin); - this.splitContainer1.Panel2.Controls.Add(this.txtAddress); - this.splitContainer1.Size = new System.Drawing.Size(1438, 766); - this.splitContainer1.SplitterDistance = 701; - this.splitContainer1.SplitterWidth = 3; - this.splitContainer1.TabIndex = 4; - // - // buttonEx1 - // - this.buttonEx1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.buttonEx1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.buttonEx1.Cursor = System.Windows.Forms.Cursors.Hand; - this.buttonEx1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.buttonEx1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.buttonEx1.ForeColor = System.Drawing.Color.White; - this.buttonEx1.Location = new System.Drawing.Point(1045, 33); - this.buttonEx1.Margin = new System.Windows.Forms.Padding(2); - this.buttonEx1.Name = "buttonEx1"; - this.buttonEx1.Size = new System.Drawing.Size(91, 25); - this.buttonEx1.TabIndex = 380; - this.buttonEx1.Text = "购买授权"; - this.buttonEx1.UseVisualStyleBackColor = false; - this.buttonEx1.Click += new System.EventHandler(this.btnBuyAuth_Click); - // - // btnAuthInWeb - // - this.btnAuthInWeb.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnAuthInWeb.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnAuthInWeb.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnAuthInWeb.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnAuthInWeb.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnAuthInWeb.ForeColor = System.Drawing.Color.White; - this.btnAuthInWeb.Location = new System.Drawing.Point(1138, 33); - this.btnAuthInWeb.Margin = new System.Windows.Forms.Padding(2); - this.btnAuthInWeb.Name = "btnAuthInWeb"; - this.btnAuthInWeb.Size = new System.Drawing.Size(91, 25); - this.btnAuthInWeb.TabIndex = 379; - this.btnAuthInWeb.Text = "去网页授权"; - this.btnAuthInWeb.UseVisualStyleBackColor = false; - this.btnAuthInWeb.Click += new System.EventHandler(this.btnAuthInWeb_Click); - // - // label2 - // - this.label2.Location = new System.Drawing.Point(23, 37); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(44, 17); - this.label2.TabIndex = 378; - this.label2.Text = "密码"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(23, 10); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(44, 17); - this.label1.TabIndex = 377; - this.label1.Text = "用户名"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // btnCopyPassword - // - this.btnCopyPassword.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnCopyPassword.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnCopyPassword.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnCopyPassword.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnCopyPassword.ForeColor = System.Drawing.Color.White; - this.btnCopyPassword.Location = new System.Drawing.Point(295, 33); - this.btnCopyPassword.Margin = new System.Windows.Forms.Padding(2); - this.btnCopyPassword.Name = "btnCopyPassword"; - this.btnCopyPassword.Size = new System.Drawing.Size(57, 25); - this.btnCopyPassword.TabIndex = 376; - this.btnCopyPassword.Text = "复制"; - this.btnCopyPassword.UseVisualStyleBackColor = false; - this.btnCopyPassword.Click += new System.EventHandler(this.btnCopyPassword_Click); - // - // btnCopyUserName - // - this.btnCopyUserName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnCopyUserName.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnCopyUserName.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnCopyUserName.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnCopyUserName.ForeColor = System.Drawing.Color.White; - this.btnCopyUserName.Location = new System.Drawing.Point(295, 6); - this.btnCopyUserName.Margin = new System.Windows.Forms.Padding(2); - this.btnCopyUserName.Name = "btnCopyUserName"; - this.btnCopyUserName.Size = new System.Drawing.Size(57, 25); - this.btnCopyUserName.TabIndex = 375; - this.btnCopyUserName.Text = "复制"; - this.btnCopyUserName.UseVisualStyleBackColor = false; - this.btnCopyUserName.Click += new System.EventHandler(this.btnCopyUserName_Click); - // - // txtPassWord - // - this.txtPassWord.Location = new System.Drawing.Point(72, 34); - this.txtPassWord.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); - this.txtPassWord.Name = "txtPassWord"; - this.txtPassWord.PasswordChar = '●'; - this.txtPassWord.ReadOnly = true; - this.txtPassWord.Size = new System.Drawing.Size(221, 23); - this.txtPassWord.TabIndex = 374; - // - // txtUserName - // - this.txtUserName.Location = new System.Drawing.Point(72, 7); - this.txtUserName.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); - this.txtUserName.Name = "txtUserName"; - this.txtUserName.ReadOnly = true; - this.txtUserName.Size = new System.Drawing.Size(221, 23); - this.txtUserName.TabIndex = 373; - // - // btnStop - // - this.btnStop.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnStop.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStop.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnStop.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnStop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnStop.ForeColor = System.Drawing.Color.White; - this.btnStop.Location = new System.Drawing.Point(1324, 33); - this.btnStop.Margin = new System.Windows.Forms.Padding(2); - this.btnStop.Name = "btnStop"; - this.btnStop.Size = new System.Drawing.Size(96, 25); - this.btnStop.TabIndex = 372; - this.btnStop.Text = "停止操作"; - this.btnStop.UseVisualStyleBackColor = false; - this.btnStop.Click += new System.EventHandler(this.btnStop_Click); - // - // btnReload - // - this.btnReload.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnReload.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnReload.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnReload.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnReload.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnReload.ForeColor = System.Drawing.Color.White; - this.btnReload.Location = new System.Drawing.Point(1231, 33); - this.btnReload.Margin = new System.Windows.Forms.Padding(2); - this.btnReload.Name = "btnReload"; - this.btnReload.Size = new System.Drawing.Size(91, 25); - this.btnReload.TabIndex = 371; - this.btnReload.Text = "重新加载"; - this.btnReload.UseVisualStyleBackColor = false; - this.btnReload.Click += new System.EventHandler(this.btnReload_Click); - // - // chkCloseAfterLogin - // - this.chkCloseAfterLogin.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - // - // - // - this.chkCloseAfterLogin.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.chkCloseAfterLogin.Checked = true; - this.chkCloseAfterLogin.CheckState = System.Windows.Forms.CheckState.Checked; - this.chkCloseAfterLogin.CheckValue = "Y"; - this.chkCloseAfterLogin.Location = new System.Drawing.Point(909, 34); - this.chkCloseAfterLogin.Name = "chkCloseAfterLogin"; - this.chkCloseAfterLogin.Size = new System.Drawing.Size(135, 23); - this.chkCloseAfterLogin.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.chkCloseAfterLogin.TabIndex = 8; - this.chkCloseAfterLogin.Text = "登录成功后关闭窗口"; - this.chkCloseAfterLogin.Visible = false; - // - // txtAddress - // - this.txtAddress.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.txtAddress.Location = new System.Drawing.Point(380, 7); - this.txtAddress.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); - this.txtAddress.Name = "txtAddress"; - this.txtAddress.Size = new System.Drawing.Size(1040, 23); - this.txtAddress.TabIndex = 7; - // - // ShopAuthForm - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.ClientSize = new System.Drawing.Size(1440, 800); - this.Controls.Add(this.splitContainer1); - this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Name = "ShopAuthForm"; - this.Text = "店铺登录"; - this.TitleText = "店铺登录"; - this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.ShopAuthForm_FormClosed); - this.Load += new System.EventHandler(this.ShopLoginForm_Load); - this.Controls.SetChildIndex(this.splitContainer1, 0); - this.splitContainer1.Panel2.ResumeLayout(false); - this.splitContainer1.Panel2.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); - this.splitContainer1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.SplitContainer splitContainer1; - private DevComponents.DotNetBar.Controls.CheckBoxX chkCloseAfterLogin; - private System.Windows.Forms.TextBox txtAddress; - private UserControls.ButtonEx btnStop; - private UserControls.ButtonEx btnReload; - private System.Windows.Forms.TextBox txtPassWord; - private System.Windows.Forms.TextBox txtUserName; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label1; - private UserControls.ButtonEx btnCopyPassword; - private UserControls.ButtonEx btnCopyUserName; - private UserControls.ButtonEx btnAuthInWeb; - private UserControls.ButtonEx buttonEx1; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ShopForms/Old/ShopAuthForm.cs b/TEMUKJD/KJDForms/ShopForms/Old/ShopAuthForm.cs deleted file mode 100644 index 9873b21..0000000 --- a/TEMUKJD/KJDForms/ShopForms/Old/ShopAuthForm.cs +++ /dev/null @@ -1,560 +0,0 @@ -using AllBase; -using AllBase.Helper; -using AllBase.Model.Result; -using CefSharp; -using CefSharp.WinForms; -using TemuKJD.KJDForms.BaseForms; -using NaiBa.CefHelper; -using NaiBa.CefHelper.Handler; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; -using Work; -using Work.BLL.Tools; - -namespace TemuKJD.KJDForms.ShopForms -{ - public partial class ShopAuthForm : LRBaseForm - { - public int CloseAfterSecond { get; set; } - public string shopAuthUrl = "https://fuwu.jinritemai.com/authorize?service_id=815"; - private ChromiumWebBrowser cefWebBrowser = null; - private ShopLoginInfo shop = null; - private bool isCefLoad = false; - private string currentUrl = ""; - - public ShopAuthForm(ShopLoginInfo shopInfo) - { - InitializeComponent(); - - this.shop = shopInfo; - this.txtUserName.Text = shopInfo.LoginName; - this.txtPassWord.Text = DataOpenSSL.DecryptString(shopInfo.Password); - - Task.Run(() => - { - var url = BaseClass.BuildObjString("shop&act=add_shop_agent_name"); - var data = UserLogin.GetSignaturex() - + "&shop_id=" + shop.ShopId - + "&agent_name=" + BaseClass.AgentName; - - var result = GetHtml.PostUtf8(url, data); - }); - } - - private void ShopLoginForm_Load(object sender, EventArgs e) - { - if (CloseAfterSecond > 0) - { - Task.Run(() => - { - Thread.Sleep(1000 * CloseAfterSecond); - if (this.Created) - { - Invoke(new Action(() => { this.Close(); })); - } - }); - } - - Task.Run(() => - { - bool isAuth = false; - while (this.Created) - { - Thread.Sleep(1000); - if (this.shop != null && !isAuth && currentUrl.StartsWith("https://fuwu.jinritemai.com/authorize?service_id=")) - { - // 勾选授权选项 - Thread.Sleep(Randomx.GetId(1000, 1200)); - var jsStr = "document.getElementsByClassName('auxo-checkbox-input')[0].click();"; - var response = cefWebBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - - Thread.Sleep(Randomx.GetId(500, 800)); - jsStr = "function clickElement(txt) {\r\n" - + "var child = document.body.firstElementChild;\r\n" - + "var element1 = null;\r\n" - + " while (child) {\r\n" - + " if (child.innerHTML.indexOf(txt) >= 0) {\r\n" - + " element1 = child;\r\n" - + " if (child.firstElementChild) {\r\n" - + " child = child.firstElementChild; continue;\r\n" - + " } else break;\r\n" - + " }\r\n" - + " child = child.nextElementSibling;\r\n" - + " }\r\n" - + " if (element1) {\r\n" - + " element1.click(); return 'success';\r\n" - + " } else return 'no_pop';\r\n" - + "}\r\n" - + "clickElement('确认授权');\r\n"; - response = cefWebBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - if (response.Result?.Result != null) - { - isAuth = true; - } - } - // 授权成功自动关闭 - if (this.shop != null && currentUrl.StartsWith("http://new.qixiaoke.com/doudian.php?code=")) - { - if (!cefWebBrowser.GetBrowser().MainFrame.IsValid) - return; - - var jsStr = "function getShopName() { return document.body.innerHTML; } getShopName();"; - var response = cefWebBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - response.Wait(1000); - var res = response.Result.Result?.ToString(); - if (res != null && res.StartsWith("授权成功") && res.EndsWith(shop.ShopAccount)) - { - //shop.ApiAuthStatus = "授权成功"; - ShopListForm.UpdateShopTokens(GlobalConfig.ShopLoginList.Where(s => s.ShopAccount == shop.ShopAccount).ToList()); - StartUp.SaveLocalShopLoginInfo(); - OnSaveComplete(shop); - if (this.Created && this.chkCloseAfterLogin.Checked) - { - Thread.Sleep(2000); - Invoke(new Action(() => { this.Close(); })); - } - } - } - // 授权成功自动关闭 - if (this.shop != null && this.currentUrl.StartsWith("http://ddxnt.nai8.net/#/login?code=")) - { - Thread.Sleep(3000); - while (cefWebBrowser.IsLoading) - Thread.Sleep(100); - Thread.Sleep(2000); - - if (this.Created && this.chkCloseAfterLogin.Checked) - { - ShopListForm.UpdateShopTokens(GlobalConfig.ShopLoginList.Where(s => s.ShopAccount == shop.ShopAccount).ToList()); - StartUp.SaveLocalShopLoginInfo(); - OnSaveComplete(shop); - Thread.Sleep(2000); - Invoke(new Action(() => { this.Close(); })); - } - } - } - }); - - if (cefWebBrowser == null) - { - //https://fuwu.jinritemai.com/detail?service_id=20974 - if (!shopAuthUrl.Contains("service_id=20896")) - { - var url = BaseClass.BuildObjString("config&act=get_buy_service"); - var data = UserLogin.GetSignaturex() - + "&app_key=" + shop.AppKey; - - var result = GetHtml.PostUtf8(url, data); - if (!result.Contains("\"code\":200")) - result = GetHtml.PostUtf8(url, data); - if (!result.Contains("\"code\":200")) - { - BaseMsgForm.ShowError("获取授权地址失败!请关闭窗口重试。"); - return; - } - shopAuthUrl = BaseRegex.GetStringJson(ref result, "data"); - } - - isCefLoad = false; - cefWebBrowser = CEFBrowser.CreateChromiumWebBrowser(shopAuthUrl, false); - CustomResourceRequestHandler resourceRequestHandler = new CustomResourceRequestHandler(); - resourceRequestHandler.ResourceLoadCompleteEvent += RequestHandler_ResourceLoadComplete; - cefWebBrowser.RequestHandler = new CustomRequestHandler(resourceRequestHandler); - cefWebBrowser.KeyboardHandler = new KeyboardHandler(); - cefWebBrowser.FrameLoadEnd += CefWebBrowser_FrameLoadEnd; - cefWebBrowser.AddressChanged += CefWebBrowser_AddressChanged; - cefWebBrowser.LoadError += CefWebBrowser_LoadError; - cefWebBrowser.Dock = DockStyle.Fill; - - var t = CEFBrowser.SetCookieAsync("jinritemai.com", shop.Cookies, cefWebBrowser.RequestContext.GetCookieManager(null)); - - splitContainer1.Panel1.Controls.Add(cefWebBrowser); - } - else - { - CEFBrowser.DeleteCookie(cefWebBrowser.RequestContext.GetCookieManager(null)); - CEFBrowser.SetCookieAsync("jinritemai.com", shop.Cookies, cefWebBrowser.RequestContext.GetCookieManager(null)); - } - } - - private void CefWebBrowser_LoadError(object sender, CefSharp.LoadErrorEventArgs e) - { - } - - private void CefWebBrowser_AddressChanged(object sender, CefSharp.AddressChangedEventArgs e) - { - Invoke(new Action(() => - { - currentUrl = e.Address; - txtAddress.Text = e.Address; - })); - } - - private void CefWebBrowser_FrameLoadEnd(object sender, CefSharp.FrameLoadEndEventArgs e) - { - //if (!cefWebBrowser.IsBrowserInitialized) return; - - //currentUrl = e.Url; - //if (currentUrl.StartsWith("https://fxg.jinritemai.com/ffa/multiShop")) - //{ - // Thread.Sleep(Randomx.GetId(500, 800)); - //} - //if (currentUrl.StartsWith("https://fxg.jinritemai.com/ffa/mshop/homepage/index")) - //{ - // Task.Run(() => - // { - // - // }); - //} - } - - private void RequestHandler_ResourceLoadComplete(object sender, string url, string postData, string responseData) - { - if (url.StartsWith("https://fuwu.jinritemai.com/api/order/list")) - { - var data = responseData; - Task.Run(() => - { - - }); - } - if (url.StartsWith("https://fxg.jinritemai.com/common/index/index")) - { - Task.Run(() => - { - var data = responseData; - if (this.shop != null && data.Contains("\"code\":0")) - { - shop.ShopId = BaseRegex.GetStringJson(ref data, "id"); - shop.ShopToken = BaseRegex.GetStringJson(ref data, "token"); - shop.ShopAccount = BaseRegex.GetStringJson(ref data, "shop_name"); - shop.Mobile = BaseRegex.GetStringJson(ref data, "mobile"); - } - }); - } - if (url.Contains("_signature")) - { - Task.Run(() => - { - var _url = url; - var data = responseData; - var signature = url.Substring(url.IndexOf("_signature=") + "_signature=".Length).Split('&')[0]; - if (shop != null) - { - shop.Signature = signature; - } - }); - } - } - - /// - /// 自动登录 - /// - /// - /// - /// - private void InputUserNameAndPassword(ChromiumWebBrowser webBrowser, string _account, string _password) - { - string jsStr = "var btn = document.getElementsByClassName('account-center-switch-button switch-switch email false')[0]; if (btn) btn.click();"; - var response = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - response.Wait(1000); - Thread.Sleep(Randomx.GetId(500, 1000)); - - string jsSetValue = @" -function keyboardInput(dom, st) { - var evt = new InputEvent('input', { - //var evt = new Event('input', { // cef57 - inputType: 'insertText', - data: st, - dataTransfer: null, - isComposing: false - }); - dom.value = st; - dom.dispatchEvent(evt); - dom.focus(); -};"; - - string jsInputKey = @" -function fireKeyEvent(el, evtType, keyCode) { - var evtObj; - if (document.createEvent) - { - if (window.KeyEvent) - { - //firefox 浏览器下模拟事件 - evtObj = document.createEvent('KeyEvents'); - evtObj.initKeyEvent(evtType, true, true, window, true, false, false, false, keyCode, 0); - } - else - { - //chrome 浏览器下模拟事件 - evtObj = document.createEvent('UIEvents'); - evtObj.initUIEvent(evtType, true, true, window, 1); - - delete evtObj.keyCode; - if (typeof evtObj.keyCode === 'undefined') - { - //为了模拟keycode - Object.defineProperty(evtObj, 'keyCode', { value: keyCode }); - } - else - { - evtObj.key = String.fromCharCode(keyCode); - } - - if (typeof evtObj.ctrlKey === 'undefined') - { - //为了模拟ctrl键 - Object.defineProperty(evtObj, 'ctrlKey', { value: true }); - } - else - { - evtObj.ctrlKey = true; - } - } - el.dispatchEvent(evtObj); - } - else if (document.createEventObject) - { - //IE 浏览器下模拟事件 - evtObj = document.createEventObject(); - evtObj.keyCode = keyCode - el.fireEvent('on' + evtType, evtObj); - } -}"; - // 输入用户名 - jsStr = @"var txt1 = document.getElementsByName('email')[0]; txt1.focus(); txt1.click(); keyboardInput(txt1, '" + _account + "');" - + "var uname = '" + _account + "';" - + "for(var i = 0; i < uname.length; i++) {" - + " cCode = uname.charCodeAt(i);" - + " fireKeyEvent(txt1, 'keydown', cCode);" - + " fireKeyEvent(txt1, 'keypress', cCode);" - + " fireKeyEvent(txt1, 'keyup', cCode);" - + "}"; - response = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsSetValue + jsInputKey + jsStr); - response.Wait(2000); - Thread.Sleep(Randomx.GetId(400, 800)); - - // 输入密码 - jsStr = @"var txt2 = document.getElementsByName('password')[0]; txt2.focus(); txt2.click(); keyboardInput(txt2, '" + _password + "');" - + "var pwd = '" + _password + "';" - + "for(var i = 0; i < pwd.length; i++) {" - + " cCode = pwd.charCodeAt(i);" - + " fireKeyEvent(txt2, 'keydown', cCode);" - + " fireKeyEvent(txt2, 'keypress', cCode);" - + " fireKeyEvent(txt2, 'keyup', cCode);" - + "}"; - response = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsInputKey + jsStr); - response.Wait(2000); - Thread.Sleep(Randomx.GetId(400, 800)); - - // 点击登录按钮 - jsStr = "var btn = document.getElementsByClassName('account-center-action-button')[0]; btn.click(); //btn.dispatchEvent(new Event('change'));"; - response = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - response.Wait(2000); - Thread.Sleep(1500 + Randomx.GetId(1000)); - - #region 获取验证码 - int getImageCount = 0; - getImageAgain: - jsStr = "function getImg() { return document.getElementsByClassName('captcha_verify_img--wrapper')[0].innerHTML; }"; - jsStr += "getImg();"; - response = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - response.Wait(2000); - if (response.Result?.Result == null) - { - if (getImageCount < 50) - { - Thread.Sleep(2500); - getImageCount++; - goto getImageAgain; - } - } - if (response.Result?.Result != null) - { - var imgStr = response.Result.Result.ToString(); - var src = BaseRegex.GetMatchRegexString(ref imgStr, "src=\"([\\s\\S]*?)\""); - Bitmap bt = (Bitmap)GetHtml.LoadImage(src); - if (bt != null) - { - int Stopxt = 0; - int dragButtonWidth = 42; - //Stopxt = new Base64ChangeImgUrl().CalculateNick(bt, dragButtonWidth); - Thread.Sleep(500 + Randomx.GetId(1000)); - Stopxt = new Base64ChangeImgUrl().CalculateNickNew(bt, dragButtonWidth); - if (Stopxt > 0) - { - jsStr = "function getImgPos() { return document.getElementsByClassName('secsdk-captcha-drag-icon')[0].getBoundingClientRect().left + '|' " - + " + document.getElementsByClassName('secsdk-captcha-drag-icon')[0].getBoundingClientRect().top;} getImgPos();"; - response = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - response.Wait(2000); - if (response.Result?.Result != null) - { - var xy = response.Result?.Result.ToString(); - var xyArr = xy.Split('|'); - if (xyArr.Length == 2) - { - try - { - int x = (int)Convert.ToDecimal(xyArr[0]) + 25; - int y = (int)Convert.ToDecimal(xyArr[1]) + 25; - - // 自动滑块图形验证 - if (GlobalConfig.DouShopSettingParam.IsAutoDragLogin) - { - ShopLoginForm.CefMouseDragDou(cefWebBrowser, x, y, Convert.ToInt32((x + Stopxt * 1.2319m) - 4), y); - for (int i = 0; i < 1; i++) - Thread.Sleep(2000 + Randomx.GetId(1000)); - response = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - response.Wait(2000); - if (response.Result?.Result != null && getImageCount < 50) - { - getImageCount++; - goto getImageAgain; - } - } - } - catch - { - } - } - } - for (int i = 0; i < 1; i++) - Thread.Sleep(2000 + Randomx.GetId(1000)); - } - } - } - Thread.Sleep(1500 + Randomx.GetId(1000)); - #endregion - } - - // 鼠标左键按下,移动,移动...左键抬起。 - public static void CefMouseDragDou(ChromiumWebBrowser webBrowser, int x1, int y1, int x2, int y2) - { - Thread.Sleep(100); - var host = webBrowser.GetBrowser().GetHost(); - - var rx = -6 + Randomx.GetId(13); - x2 = x2 + rx; - // 随机按下点的位置(正负6像素),提高仿真性 - int x = x1 + rx; - int y = y1 - 6 + Randomx.GetId(13); - - // 按下鼠标左键 - host.SendMouseClickEvent(x, y, MouseButtonType.Left, false, 1, CefEventFlags.None); - Thread.Sleep(100 + Randomx.GetId(300)); - - // 滑动光标 - int times = -20; - while (x < x2 + 4 - Randomx.GetId(9)) - { - times++; - x += (15 + Randomx.GetId(15)) / 8; - if (times % 5 == 0) - y = y - 1 + Randomx.GetId(3); - Thread.Sleep(6 + Math.Abs(times) / 5 + Randomx.GetId(16)); - host.SendMouseMoveEvent((int)x, (int)y, false, CefEventFlags.LeftMouseButton); - } - if (x < x2 - 1) - while (x < x2) - { - times++; - x += (8 + Randomx.GetId(8)) / 8; - if (times % 5 == 0) - y = y - 1 + Randomx.GetId(3); - Thread.Sleep(6 + Math.Abs(times) / 5 + Randomx.GetId(16)); - host.SendMouseMoveEvent((int)x, (int)y, false, CefEventFlags.LeftMouseButton); - } - else if (x > x2 + 1) - while (x > x2) - { - times++; - x -= (8 + Randomx.GetId(8)) / 8; - if (times % 5 == 0) - y = y - 1 + Randomx.GetId(3); - Thread.Sleep(6 + Math.Abs(times) / 5 + Randomx.GetId(16)); - host.SendMouseMoveEvent((int)x, (int)y, false, CefEventFlags.LeftMouseButton); - } - - // 如果最后位置偏差较多,再做一次调整 - x = x2 - 1 + Randomx.GetId(3); - x = x2; - Thread.Sleep(18 + Math.Abs(times) / 5 + Randomx.GetId(16)); - Thread.Sleep(18 + Math.Abs(times) / 5 + Randomx.GetId(16)); - host.SendMouseMoveEvent((int)x, (int)y, false, CefEventFlags.LeftMouseButton); - - // 抬起鼠标左键 - Thread.Sleep(300 + Randomx.GetId(500)); - host.SendMouseClickEvent(x, y, MouseButtonType.Left, true, 1, CefEventFlags.None); - host.SendMouseClickEvent(x, y, MouseButtonType.Left, true, 1, CefEventFlags.None); - } - - private void btnStop_Click(object sender, EventArgs e) - { - - } - - private void btnCopyUserName_Click(object sender, EventArgs e) - { - if (!string.IsNullOrEmpty(txtUserName.Text)) - Clipboard.SetDataObject(txtUserName.Text); - } - - private void btnCopyPassword_Click(object sender, EventArgs e) - { - if (!string.IsNullOrEmpty(txtPassWord.Text)) - Clipboard.SetDataObject(txtPassWord.Text); - } - - private void btnReload_Click(object sender, EventArgs e) - { - if (cefWebBrowser != null) - { - cefWebBrowser.Load(txtAddress.Text); - } - } - - private void ShopAuthForm_FormClosed(object sender, FormClosedEventArgs e) - { - //OnSaveComplete(shop); - } - - private void btnAuthInWeb_Click(object sender, EventArgs e) - { - GetHtml.OpenUrl(this.shopAuthUrl); - } - - private void btnBuyAuth_Click(object sender, EventArgs e) - { - if (cefWebBrowser != null) - { - var buyUrl = shopAuthUrl; - if (!shopAuthUrl.Contains("service_id=20896")) - { - var url = BaseClass.BuildObjString("config&act=get_buy_service"); - var data = UserLogin.GetSignaturex(); - - var result = GetHtml.PostUtf8(url, data); - if (!result.Contains("\"code\":200")) - result = GetHtml.PostUtf8(url, data); - if (!result.Contains("\"code\":200")) - { - BaseMsgForm.ShowError("获取授权地址失败!请关闭窗口重试。"); - return; - } - buyUrl = BaseRegex.GetStringJson(ref result, "data"); - } - - cefWebBrowser.Load(buyUrl.Replace("authorize", "detail")); - } - } - } -} diff --git a/TEMUKJD/KJDForms/ShopForms/Old/ShopAuthForm.resx b/TEMUKJD/KJDForms/ShopForms/Old/ShopAuthForm.resx deleted file mode 100644 index c963c3c..0000000 --- a/TEMUKJD/KJDForms/ShopForms/Old/ShopAuthForm.resx +++ /dev/null @@ -1,298 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - - - AAABAAEAgIAQYAAAAABoKAAAFgAAACgAAACAAAAAAAEAAAEABAAAAAAAACgAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAgICAAMDAwAAAAP8AAP8AAAD//wD/AAAA/wD/AP// - AAD///8AAAAAAAAAAAAAAAAABEZmbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZmZkQAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAZszMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMxmAAAAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMxkAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzGQAAAAAAAAAAAAAAAAAAAbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMYAAAAAAAAAAAAAAAAARszMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAABszMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMxgAAAAAAAAAAAAAGzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMxgAAAAAAAAAAAAbMzMzMzMzMzMzMzMzM - zMzMzMzMzMx3d4iIiIiIiIh3fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMxgAAAAAAAAAABszMzMzMzMzMzM - zMzMzMzMzMzHeIiIiIj/////////iIiIiId8zMzMzMzMzMzMzMzMzMzMzMzMxgAAAAAAAAAGzMzMzMzM - zMzMzMzMzMzMzMeIiI/////////////////////4iIh8zMzMzMzMzMzMzMzMzMzMzMxgAAAAAAAATMzM - zMzMzMzMzMzMzMzMzHiI////////////////////////////iIfMzMzMzMzMzMzMzMzMzMzMxAAAAAAA - AGzMzMzMzMzMzMzMzMzMx3iP///////////////////////////////4iHzMzMzMzMzMzMzMzMzMzMYA - AAAAAAbMzMzMzMzMzMzMzMzMx3iP//////////////////////////////////+IfMzMzMzMzMzMzMzM - zMzMYAAAAABMzMzMzMzMzMzMzMzMx3iP/////////////////////////////////////4h8zMzMzMzM - zMzMzMzMzMQAAAAAbMzMzMzMzMzMzMzMzHiP////////////////////////////////////////h3zM - zMzMzMzMzMzMzMzGAAAABMzMzMzMzMzMzMzMzHiP//////////////////////////////////////// - //iHzMzMzMzMzMzMzMzMzEAAAAbMzMzMzMzMzMzMzMeI//////////////////////////////////// - ////////+IfMzMzMzMzMzMzMzMxgAABMzMzMzMzMzMzMzMx4//////////////////////////////// - //////////////+IfMzMzMzMzMzMzMzMxAAAbMzMzMzMzMzMzMzHj/////////////////////////// - /////////////////////4fMzMzMzMzMzMzMzMYAAMzMzMzMzMzMzMzMeP////////////////////// - ///////////////////////////4fMzMzMzMzMzMzMzMAAbMzMzMzMzMzMzMx4////////////////// - /////////////////////////////////4fMzMzMzMzMzMzMzGAGzMzMzMzMzMzMzHj///////////// - ///////////////////////////////////////4fMzMzMzMzMzMzMxgDMzMzMzMzMzMzMyI//////// - /////////////////////////////////////////////4zMzMzMzMzMzMzMwEzMzMzMzMzMzMzHj/// - //////////////////////////////////////////////////+HzMzMzMzMzMzMzMRszMzMzMzMzMzM - eP//////////////////////////////////////////////////////+HzMzMzMzMzMzMzGbMzMzMzM - zMzMzHj///////////////////////////////////////////////////////+MzMzMzMzMzMzMxmzM - zMzMzMzMzMyP////+IiP////////////////////////////////////////+I//////h8zMzMzMzMzM - zMZszMzMzMzMzMzHj////4iIiI//////////////////////////////////////+IiIj/////jMzMzM - zMzMzMzGbMzMzMzMzMzMyP////iIiIiI/////////////////////////////////////4iIiIj////4 - fMzMzMzMzMzMxszMzMzMzMzMzHj////4iIiIiP////////////////////////////////////+IiIiI - j////4zMzMzMzMzMzMbMzMzMzMzMzMx4////iIiIiIj////////////////////////////////////4 - iIiIiI////+HzMzMzMzMzMzMzMzMzMzMzMzMj////4iIiIiI//////////////+IiP//iI////////// - ////+IiIiIiP////h8zMzMzMzMzMzMzMzMzMzMzMzI/////4iIiIiP/////////////4d3eIiIeIj/// - //////////+IiIiIj/////jMzMzMzMzMzMzMzMzMzMzMzMyP////+IiIiIj/////////////iIiId3eI - iI//////////////iIiIiI/////4zMzMzMzMzMzMzMzMzMzMzMzHj/////+IiIiP/////////////4// - /4d4j/+P//////////////iIiIj/////+MzMzMzMzMzMzMzMzMzMzMzMx4//////+IiP//////////// - ///////4j///////////////////iIiP//////jMzMzMzMzMzMzMzMzMzMzMzMeP//////////+IiIj/ - ///////////////////////////////////////////4fMzMzMzMzMzMzMzMzMzMzMzH//////////+H - fMx8eP//////////////////////////iId3iP//////////+HzMzMzMzMzMzMzMzMzMzMzMyP////// - ///4fMzHh8eP////////////////////////+MzMzMd4//////////h8zMzMzMzMzMzMzMzMzMzMzMf/ - ////////+MzMePjMeP///////////////////////4zMzMeHx4/////////4fMzMzMzMzMzMzMzMzMzM - zMzH/////////4fMd3eHzMeP//////////////////////iMzMzIiHx4////////+HzMzMzMzMzMzMzM - zMzMzMzMx/////////+Hx4iIfMzMj//////////////////////4h3d8x4h8yP////////jMzMzMzMzM - zMzMzMzMzMzMzMeP////////+HiP+IfMzI//////////////////////+HiIiHd3zHj////////4zMzM - zMzMzMzMzMzMzMzMzMzHj/////////h4//+HzMeP//////////////////////h4//h8zMyP//////// - +MzMzMzMzMzMzMzMzMzMzMzMzI/////////4iP//h8x4///////////////////////4j//4fMzHj/// - //////jMzMzMzMzMzMzMzMzMzMzMzMyP///////4iIiP+IfHj///////////////////////+Ij/+HzM - eP/////////4zMzMzMzMzMzMzMzMzMzMzMzMj///////iIiIiIh3eP////////////////////////+I - j4h8x3iI////////h8zMzMzMzMzMzMzMzMzMzMzMzH//////+Hj///iIiI////////////////////// - /////4iId4iIiIj//////4zMzMzMzMzMzMzMzMzMzMzMzMx4//////iP////iP////////////////// - /////////////4iP//iI//////+MzMzMzMzMzMzMzMzMzMzMzMzMyP//////////+I////////////// - ///////////////////4eP//iP//////jMzMzMzMzMzMzMzMzMzMzMzMzMj///////////iP//////// - /////////////////////////4j/////////+HzMzMzMzMzMzMzMzMzMzMzMzMzHj/////////////// - //////////////////////////////+I//////////jMzMzMzMzMzMzMzMzMzMzMzMzMzI////////// - //////////////////////////////////////////////+HzMzMzMzMzMzMzMzMzMzMzMzMzMyP//// - ////////////////////////////////////////////////////h8zMzMzMzMzMzMzMzMzMzMzMzMzM - eP///////////////////////////////////////////////////////4zMzMzMzMzMzMzMzMzMzMzM - zMzMzMj///////////////////////////////////////////////////////h8zMzMzMzMzMzMzMzM - zMzMzMzMzMzHj//////////////////////////////////////////////////////4zMzMzMzMzMzM - zMzMzMzMzMzMzMzMzI//////////////////////////////////////////////////////h8zMzMzM - zMzMzMzMzMzMzMzMzMzMzMx4////////////////////////////////////////////////////+HzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMyI////+I//////////////////////////////////////////// - //h8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMeP////+Ij///////////////////////////////////// - //////+HzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMeP////+IiIiIj//////////////////////////4 - ////iI/////4fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMiP/////4iIiP////////////////////// - ////+IiIiIj/////iHzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzHiP////////////////////////// - ///////////4iIj//////4fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzHiP//////////////////// - //////////////////////////h8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzHiP////////////// - //////////////////////////////+HzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzHj///////// - ///////////////////////////////////4fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMeP//// - ////////////////////////////////////////+MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzI - j/////////////////////////////////////////////h8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMeP//////////////////////////////////////////////h8zMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMx4////////+I//////////////////////////////////////jMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMeP///////4iIj///////////////////////////iP///////4fMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMx4////////iIiIiP///////////////////////4iIiP///////4zMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMj///////+IiIiIiI////////////////////+IiIiIj///////+HzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMx4////////iIiIiIj////////////////////4iIiIiIj/////// - +MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMj///////+IiIiIiI////////////////////+IiIiIiI// - //////h8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMx4////////iIiIiIiP////////////////////iIiI - iIiI///////4fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMj///////+IiIiIiIj/////iIiIiIiIj///// - /4iIiIiIiP///////4zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMx4////////iIiIiIiI/////4zMzMzMzM - j/////+IiIiIiIiP//////+HzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMeP//////+IiIiIiIj/////+MzM - zMzMzI//////+IiIiIiIj///////+MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzI////////iIiIiIiI//// - //jMzMzMzMyP//////iIiIiIiIj///////jMzMzMzMzMzMzMzMzMzMzMzMzMzMzMeP///////4iIiIiI - iP/////4zMzMzMzMj//////4iIiIiIiI///////4fMzMzMzMzMzMzMzMzMzMzMzMzMzMzI////////iI - iIiIiI//////+MzMzMzMzI//////+IiIiIiIiP///////4zMzMzMzMzMzMzMzMzMzMzMzMzMzMyP//// - ///4iIiIiIiP//////fMzMzMzMyP//////+IiIiIiIj///////+MzMzMzMzMzMzMzMzMzMzMzMzMzMzH - j///////+IiIiIiI//////+HzMzMzMzMeP//////iIiIiIiIj///////jMzMzMzMzMzMzMzMzMzMzMzM - zMzMyP////////iIiIiIiP//////jMzMzMzMzHj///////iIiIiIiI///////4fMzMzMzMzMzMzMzMzM - zMzMzMzMzMj///////+IiIiIiI///////4zMzMzMzMzI///////4iIiIiIiI///////3zMzMzMzMzMzM - zMzMzMzMzMzMzMzI////////iIiIiIiP//////+MzMzMzMzMyP//////+IiIiIiIiP//////+MzMzMzM - zMzMzMzMzMzMzMzMzMzMeP///////4iIiIiIj///////jMzMzMzMzMj///////+IiIiIiIj///////jM - zMzMzMzMzMzMzMzMzMzMzMzMzI////////+IiIiIiP//////+HzMzMzMzMzHj///////iIiIiIiI//// - ///4zMzMzMzMzMzMzMzMzMzMzMzMzMyP////////iIiIiI////////jMzMzMzMzMzI///////4iIiIiI - iI//////+MzMzMzMzMzMzMzMzMzMzMzMzMzMj////////4iIiIiP///////4zMzMzMzMzMyP///////4 - iIiIiIiP//////jMzMzMzMzMzMzMzMzMzMzMzMzMzI////////+IiIiI////////h8zMzMzMzMzMeP// - /////4iIiIiIj//////4fMzMzMzMzMzMzMzMzMzMzMzMzMyP////////iIiIj////////4fMzMzMzMzM - zHj///////+IiIiIiI//////+HzMzMzMzMzMzMzMzMzMzMzMzMzHj/////////iIiP////////+MzMzM - zMzMzMzI////////+IiIiIiP//////h8zMzMzMzMzMzMxmzMzMzMzMzMx4/////////4iP/////////4 - fMzMzMzMzMzMx4////////+IiIiIj//////4fMzMzMzMzMzMzMZszMzMzMzMzMeP//////////////// - ////+MzMzMzMzMzMzMyP////////iIiIiP//////+HzMzMzMzMzMzMzGbMzMzMzMzMzH//////////// - //////////fMzMzMzMzMzMzMeP////////iIiIj///////98zMzMzMzMzMzMxmzMzMzMzMzMyP////// - //////////////+HzMzMzMzMzMzMzHj/////////+IiP////////jMzMzMzMzMzMzMZszMzMzMzMzMj/ - ////////////////////jMzMzMzMzMzMzMzIj////////////////////4zMzMzMzMzMzMzGTMzMzMzM - zMzH////////////////////+HzMzMzMzMzMzMzMx4////////////////////+MzMzMzMzMzMzMxAzM - zMzMzMzMx/////////////////////jMzMzMzMzMzMzMzMyI///////////////////4fMzMzMzMzMzM - zMAGzMzMzMzMzMeP//////////////////+HzMzMzMzMzMzMzMzMeP//////////////////+HzMzMzM - zMzMzMxgBszMzMzMzMzHj//////////////////4fMzMzMzMzMzMzMzMzMeP//////////////////h8 - zMzMzMzMzMzMYADMzMzMzMzMzI//////////////////+HzMzMzMzMzMzMzMzMzHj/////////////// - ///4zMzMzMzMzMzMzAAAbMzMzMzMzMyP/////////////////4fMzMzMzMzMzMzMzMzMzHj///////// - ////////+MzMzMzMzMzMzMYAAEzMzMzMzMzMj/////////////////+MzMzMzMzMzMzMzMzMzMzIj/// - /////////////4fMzMzMzMzMzMzEAAAGzMzMzMzMzHj////////////////4fMzMzMzMzMzMzMzMzMzM - x4////////////////+MzMzMzMzMzMzMYAAABMzMzMzMzMx4////////////////h8zMzMzMzMzMzMzM - zMzMzMx4///////////////4fMzMzMzMzMzMzEAAAABszMzMzMzMx4//////////////+HzMzMzMzMzM - zMzMzMzMzMzMx4//////////////+MzMzMzMzMzMzMYAAAAATMzMzMzMzMyP/////////////4fMzMzM - zMzMzMzMzMzMzMzMzMeI/////////////4fMzMzMzMzMzMzEAAAAAAbMzMzMzMzMeP////////////h8 - zMzMzMzMzMzMzMzMzMzMzMzMeI////////////h8zMzMzMzMzMzMYAAAAAAAbMzMzMzMzMeP//////// - //iHzMzMzMzMzMzMzMzMzMzMzMzMzMyI//////////+HzMzMzMzMzMzMxgAAAAAAAEzMzMzMzMzMeP// - //////iHfMzMzMzMzMzMzMzMzMzMzMzMzMzMx4/////////4fMzMzMzMzMzMzMQAAAAAAAAGzMzMzMzM - zMeI//////iHfMzMzMzMzMzMzMzMzMzMzMzMzMzMzMx4j//////4h8zMzMzMzMzMzMxgAAAAAAAAAGzM - zMzMzMzMx4iIiIiHzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzHiIj/+Ih3zMzMzMzMzMzMzGAAAAAAAA - AAAGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMx3iId8zMzMzMzMzMzMzMYAAA - AAAAAAAAAGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - xgAAAAAAAAAAAAAGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzGAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzGQAAAAAAAAAAAAAAAAAbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMYAAAAAAAAAAAAAAAAAAARszMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAABGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAAAABmzMzMzMzMzMzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzGYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARGZmzMzMzMzMzMzMzM - zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZmZEAAAAAAAAAAAAAAAAD////+AAAAAAAAAAD/////////AAAA - AAAAAAAAAP//////+AAAAAAAAAAAAAAf/////+AAAAAAAAAAAAAAB/////+AAAAAAAAAAAAAAAH////+ - AAAAAAAAAAAAAAAAf////AAAAAAAAAAAAAAAAD////AAAAAAAAAAAAAAAAAP///gAAAAAAAAAAAAAAAA - B///wAAAAAAAAAAAAAAAAAP//4AAAAAAAAAAAAAAAAAB//8AAAAAAAAAAAAAAAAAAP/+AAAAAAAAAAAA - AAAAAAB//gAAAAAAAAAAAAAAAAAAf/wAAAAAAAAAAAAAAAAAAD/4AAAAAAAAAAAAAAAAAAAf+AAAAAAA - AAAAAAAAAAAAH/AAAAAAAAAAAAAAAAAAAA/wAAAAAAAAAAAAAAAAAAAP4AAAAAAAAAAAAAAAAAAAB+AA - AAAAAAAAAAAAAAAAAAfAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAAAAA - AAOAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAA - AAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAABAAAAAAAA - AAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAA - AAGAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAA - AAAAAAABgAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAPAAAAAAAAAAAAAAAAAAAADwAAAAAAA - AAAAAAAAAAAAA+AAAAAAAAAAAAAAAAAAAAfgAAAAAAAAAAAAAAAAAAAH8AAAAAAAAAAAAAAAAAAAD/AA - AAAAAAAAAAAAAAAAAA/4AAAAAAAAAAAAAAAAAAAf+AAAAAAAAAAAAAAAAAAAH/wAAAAAAAAAAAAAAAAA - AD/+AAAAAAAAAAAAAAAAAAB//gAAAAAAAAAAAAAAAAAAf/8AAAAAAAAAAAAAAAAAAP//gAAAAAAAAAAA - AAAAAAH//8AAAAAAAAAAAAAAAAAD///gAAAAAAAAAAAAAAAAB///8AAAAAAAAAAAAAAAAA////wAAAAA - AAAAAAAAAAA////+AAAAAAAAAAAAAAAAf////4AAAAAAAAAAAAAAAf/////gAAAAAAAAAAAAAAf///// - +AAAAAAAAAAAAAAf//////8AAAAAAAAAAAAA/////////gAAAAAAAAAAf////w== - - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ShopForms/ShopForm.cs b/TEMUKJD/KJDForms/ShopForms/ShopForm.cs index 1a9f64a..e271352 100644 --- a/TEMUKJD/KJDForms/ShopForms/ShopForm.cs +++ b/TEMUKJD/KJDForms/ShopForms/ShopForm.cs @@ -20,9 +20,6 @@ namespace TemuKJD.KJDForms.ShopForms { public Lazy shopListForm = new Lazy(); public Lazy sbuAccountForm = new Lazy(); - public Lazy freightForm = new Lazy(); - public Lazy freightTemplateForm = new Lazy(); - public Lazy materialManageForm = new Lazy(); public ShopForm() { @@ -69,15 +66,6 @@ namespace TemuKJD.KJDForms.ShopForms case "子账号管理": SetForm(sbuAccountForm.Value); break; - case "运费模板": - SetForm(freightForm.Value); - break; - case "高级运费模板": - SetForm(freightTemplateForm.Value); - break; - case "素材库管理": - SetForm(materialManageForm.Value); - break; } })); }).Start(); diff --git a/TEMUKJD/KJDForms/ShopForms/ShopListForm.Designer.cs b/TEMUKJD/KJDForms/ShopForms/ShopListForm.Designer.cs index 03ccb1f..7ff4928 100644 --- a/TEMUKJD/KJDForms/ShopForms/ShopListForm.Designer.cs +++ b/TEMUKJD/KJDForms/ShopForms/ShopListForm.Designer.cs @@ -38,6 +38,7 @@ this.btnLoginSelect = new TemuKJD.UserControls.ButtonEx(); this.btnCheck = new TemuKJD.UserControls.ButtonEx(); this.panel4 = new System.Windows.Forms.Panel(); + this.cmbNotes = new System.Windows.Forms.ComboBox(); this.pnlEmpty = new DevComponents.DotNetBar.PanelEx(); this.btnSearch = new TemuKJD.UserControls.ButtonEx(); this.label4 = new System.Windows.Forms.Label(); @@ -76,7 +77,6 @@ this.colDelete = new System.Windows.Forms.DataGridViewLinkColumn(); this.chkAutoDrag = new System.Windows.Forms.CheckBox(); this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); - this.cmbNotes = new System.Windows.Forms.ComboBox(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); @@ -118,7 +118,7 @@ // this.splitContainer1.Panel2.Controls.Add(this.splitContainer2); this.splitContainer1.Panel2.Margin = new System.Windows.Forms.Padding(4); - this.splitContainer1.Size = new System.Drawing.Size(1264, 637); + this.splitContainer1.Size = new System.Drawing.Size(1264, 622); this.splitContainer1.SplitterDistance = 46; this.splitContainer1.TabIndex = 33; // @@ -213,6 +213,15 @@ this.panel4.Size = new System.Drawing.Size(1023, 40); this.panel4.TabIndex = 0; // + // cmbNotes + // + this.cmbNotes.FormattingEnabled = true; + this.cmbNotes.Location = new System.Drawing.Point(597, 10); + this.cmbNotes.Name = "cmbNotes"; + this.cmbNotes.Size = new System.Drawing.Size(120, 25); + this.cmbNotes.TabIndex = 413; + this.cmbNotes.Text = "全部"; + // // pnlEmpty // this.pnlEmpty.CanvasColor = System.Drawing.SystemColors.Control; @@ -346,8 +355,8 @@ // this.splitContainer2.Panel2.Controls.Add(this.chkAutoDrag); this.splitContainer2.Panel2.Controls.Add(this.statusBar); - this.splitContainer2.Size = new System.Drawing.Size(1264, 587); - this.splitContainer2.SplitterDistance = 555; + this.splitContainer2.Size = new System.Drawing.Size(1264, 572); + this.splitContainer2.SplitterDistance = 540; this.splitContainer2.TabIndex = 0; // // btnRefreshAuth @@ -371,7 +380,7 @@ // this.pbLoading.Anchor = System.Windows.Forms.AnchorStyles.None; this.pbLoading.Image = global::TemuKJD.Properties.Resources.loading_blue; - this.pbLoading.Location = new System.Drawing.Point(607, 252); + this.pbLoading.Location = new System.Drawing.Point(607, 245); this.pbLoading.Name = "pbLoading"; this.pbLoading.Size = new System.Drawing.Size(50, 50); this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; @@ -425,7 +434,7 @@ this.dgvShop.Name = "dgvShop"; this.dgvShop.ReadOnly = true; this.dgvShop.RowTemplate.Height = 23; - this.dgvShop.Size = new System.Drawing.Size(1256, 555); + this.dgvShop.Size = new System.Drawing.Size(1256, 540); this.dgvShop.TabIndex = 5; this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick); // @@ -641,20 +650,11 @@ this.statusBar.Size = new System.Drawing.Size(1264, 29); this.statusBar.TabIndex = 1; // - // cmbNotes - // - this.cmbNotes.FormattingEnabled = true; - this.cmbNotes.Location = new System.Drawing.Point(597, 10); - this.cmbNotes.Name = "cmbNotes"; - this.cmbNotes.Size = new System.Drawing.Size(120, 25); - this.cmbNotes.TabIndex = 413; - this.cmbNotes.Text = "全部"; - // // ShopListForm // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1264, 637); + this.ClientSize = new System.Drawing.Size(1264, 622); this.Controls.Add(this.splitContainer1); this.Controls.Add(this.label1); this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); diff --git a/TEMUKJD/KJDForms/ShopOptimizeForms/ClearNoVisitorForm.Designer.cs b/TEMUKJD/KJDForms/ShopOptimizeForms/ClearNoVisitorForm.Designer.cs deleted file mode 100644 index 751bab5..0000000 --- a/TEMUKJD/KJDForms/ShopOptimizeForms/ClearNoVisitorForm.Designer.cs +++ /dev/null @@ -1,1064 +0,0 @@ -namespace TemuKJD.KJDForms.ShopOptimizeForms -{ - partial class ClearNoVisitorForm - { - /// - /// 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(); - this.splitContainer4 = new System.Windows.Forms.SplitContainer(); - this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); - this.btnClear = new DevComponents.DotNetBar.PanelEx(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.splitContainer5 = new System.Windows.Forms.SplitContainer(); - this.ucGroupBoxEx3 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.panelEx2 = new DevComponents.DotNetBar.PanelEx(); - this.label11 = new System.Windows.Forms.Label(); - this.cmbSource = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.comboItem1 = new DevComponents.Editors.ComboItem(); - this.comboItem2 = new DevComponents.Editors.ComboItem(); - this.comboItem3 = new DevComponents.Editors.ComboItem(); - this.label9 = new System.Windows.Forms.Label(); - this.lblProductName = new System.Windows.Forms.Label(); - this.txtProductName = new System.Windows.Forms.TextBox(); - this.txtSaleMax = new System.Windows.Forms.TextBox(); - this.txtSaleMin = new System.Windows.Forms.TextBox(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.txtPriceMax = new System.Windows.Forms.TextBox(); - this.txtPriceMin = new System.Windows.Forms.TextBox(); - this.label12 = new System.Windows.Forms.Label(); - this.rbOffSale = new System.Windows.Forms.RadioButton(); - this.rbOnSale = new System.Windows.Forms.RadioButton(); - this.btnStopGetProduct = new DevComponents.DotNetBar.PanelEx(); - this.btnGetProduct = new DevComponents.DotNetBar.PanelEx(); - this.label1 = new System.Windows.Forms.Label(); - this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.txtOperateCount = new System.Windows.Forms.TextBox(); - this.label4 = new System.Windows.Forms.Label(); - this.txtUploadDays = new System.Windows.Forms.TextBox(); - this.txtClickPeople = new System.Windows.Forms.TextBox(); - this.lblClickPeople = new System.Windows.Forms.Label(); - this.txtClickTime = new System.Windows.Forms.TextBox(); - this.label10 = new System.Windows.Forms.Label(); - this.txtOrderCount = new System.Windows.Forms.TextBox(); - this.label7 = new System.Windows.Forms.Label(); - this.txtShowPeopleCount = new System.Windows.Forms.TextBox(); - this.label6 = new System.Windows.Forms.Label(); - this.txtShowCount = new System.Windows.Forms.TextBox(); - this.label5 = new System.Windows.Forms.Label(); - this.btnOffLine = new DevComponents.DotNetBar.PanelEx(); - this.btnStopOperate = new DevComponents.DotNetBar.PanelEx(); - this.chkSkipHasSale = new System.Windows.Forms.CheckBox(); - this.btnDelete = new DevComponents.DotNetBar.PanelEx(); - this.chkUploadDays = new System.Windows.Forms.CheckBox(); - this.label8 = new System.Windows.Forms.Label(); - this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components); - this.btnRefreshShop = new TemuKJD.UserControls.ButtonEx(); - this.splitContainer3 = new System.Windows.Forms.SplitContainer(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colAuthStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colLoginStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colCanUse = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.panelEx1 = new DevComponents.DotNetBar.PanelEx(); - this.ucTabControl1 = new TemuKJD.UserComponent.UcTabControl(); - this.tabPageCheckResult = new System.Windows.Forms.TabPage(); - this.tabPageViolateFileList = new System.Windows.Forms.TabPage(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).BeginInit(); - this.splitContainer4.Panel1.SuspendLayout(); - this.splitContainer4.Panel2.SuspendLayout(); - this.splitContainer4.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer5)).BeginInit(); - this.splitContainer5.Panel1.SuspendLayout(); - this.splitContainer5.Panel2.SuspendLayout(); - this.splitContainer5.SuspendLayout(); - this.ucGroupBoxEx3.SuspendLayout(); - this.ucGroupBoxEx2.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.dgvShop)).BeginInit(); - this.panelEx1.SuspendLayout(); - this.ucTabControl1.SuspendLayout(); - this.SuspendLayout(); - // - // 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.Size = new System.Drawing.Size(1350, 26); - this.splitContainer4.SplitterDistance = 1235; - 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(1235, 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(17, 0); - 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.Click += new System.EventHandler(this.btnClear_Click); - // - // 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.splitContainer5); - this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx1); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.splitContainer3); - this.splitContainer1.Size = new System.Drawing.Size(1350, 561); - this.splitContainer1.SplitterDistance = 120; - this.splitContainer1.TabIndex = 5; - // - // splitContainer5 - // - this.splitContainer5.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.splitContainer5.Location = new System.Drawing.Point(148, 3); - this.splitContainer5.Name = "splitContainer5"; - // - // splitContainer5.Panel1 - // - this.splitContainer5.Panel1.Controls.Add(this.ucGroupBoxEx3); - // - // splitContainer5.Panel2 - // - this.splitContainer5.Panel2.Controls.Add(this.ucGroupBoxEx2); - this.splitContainer5.Size = new System.Drawing.Size(1197, 119); - this.splitContainer5.SplitterDistance = 503; - this.splitContainer5.TabIndex = 400; - // - // 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.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.panelEx2); - this.ucGroupBoxEx3.Controls.Add(this.label11); - this.ucGroupBoxEx3.Controls.Add(this.cmbSource); - this.ucGroupBoxEx3.Controls.Add(this.label9); - this.ucGroupBoxEx3.Controls.Add(this.lblProductName); - this.ucGroupBoxEx3.Controls.Add(this.txtProductName); - this.ucGroupBoxEx3.Controls.Add(this.txtSaleMax); - this.ucGroupBoxEx3.Controls.Add(this.txtSaleMin); - this.ucGroupBoxEx3.Controls.Add(this.label2); - this.ucGroupBoxEx3.Controls.Add(this.label3); - this.ucGroupBoxEx3.Controls.Add(this.txtPriceMax); - this.ucGroupBoxEx3.Controls.Add(this.txtPriceMin); - this.ucGroupBoxEx3.Controls.Add(this.label12); - this.ucGroupBoxEx3.Controls.Add(this.rbOffSale); - this.ucGroupBoxEx3.Controls.Add(this.rbOnSale); - this.ucGroupBoxEx3.Controls.Add(this.btnStopGetProduct); - this.ucGroupBoxEx3.Controls.Add(this.btnGetProduct); - this.ucGroupBoxEx3.Controls.Add(this.label1); - this.ucGroupBoxEx3.Location = new System.Drawing.Point(-1, -1); - this.ucGroupBoxEx3.Name = "ucGroupBoxEx3"; - this.ucGroupBoxEx3.Size = new System.Drawing.Size(506, 120); - this.ucGroupBoxEx3.TabIndex = 423; - this.ucGroupBoxEx3.TabStop = false; - this.ucGroupBoxEx3.Text = "商品查询"; - // - // panelEx2 - // - this.panelEx2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.panelEx2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.panelEx2.Cursor = System.Windows.Forms.Cursors.Hand; - this.panelEx2.DisabledBackColor = System.Drawing.Color.Empty; - this.panelEx2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.panelEx2.Location = new System.Drawing.Point(299, 33); - this.panelEx2.Name = "panelEx2"; - this.panelEx2.Size = new System.Drawing.Size(80, 23); - this.panelEx2.Style.Alignment = System.Drawing.StringAlignment.Center; - this.panelEx2.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.panelEx2.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.panelEx2.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.panelEx2.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.panelEx2.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.panelEx2.Style.ForeColor.Color = System.Drawing.Color.White; - this.panelEx2.Style.GradientAngle = 90; - this.panelEx2.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.panelEx2.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.panelEx2.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.panelEx2.TabIndex = 506; - this.panelEx2.Text = "测试"; - this.panelEx2.Visible = false; - this.panelEx2.Click += new System.EventHandler(this.panelEx2_Click); - // - // label11 - // - this.label11.AutoSize = true; - this.label11.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.label11.Location = new System.Drawing.Point(313, 89); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(188, 17); - this.label11.TabIndex = 496; - this.label11.Text = "店铺为子账号请打开电商罗盘权限"; - // - // cmbSource - // - this.cmbSource.DisplayMember = "Text"; - this.cmbSource.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbSource.FormattingEnabled = true; - this.cmbSource.ItemHeight = 18; - this.cmbSource.Items.AddRange(new object[] { - this.comboItem1, - this.comboItem2, - this.comboItem3}); - this.cmbSource.Location = new System.Drawing.Point(176, 21); - this.cmbSource.Name = "cmbSource"; - this.cmbSource.Size = new System.Drawing.Size(90, 24); - this.cmbSource.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cmbSource.TabIndex = 489; - this.cmbSource.Text = "近30天"; - // - // comboItem1 - // - this.comboItem1.Text = "近30天"; - // - // comboItem2 - // - this.comboItem2.Text = "近7天"; - // - // comboItem3 - // - this.comboItem3.Text = "近1天"; - // - // label9 - // - this.label9.AutoSize = true; - this.label9.Location = new System.Drawing.Point(146, 25); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(32, 17); - this.label9.TabIndex = 488; - this.label9.Text = "获取"; - // - // lblProductName - // - this.lblProductName.AutoSize = true; - this.lblProductName.Location = new System.Drawing.Point(8, 86); - this.lblProductName.Name = "lblProductName"; - this.lblProductName.Size = new System.Drawing.Size(56, 17); - this.lblProductName.TabIndex = 481; - this.lblProductName.Text = "商品名称"; - this.lblProductName.Click += new System.EventHandler(this.lblProductName_Click); - this.lblProductName.DoubleClick += new System.EventHandler(this.lblProductName_DoubleClick); - // - // txtProductName - // - this.txtProductName.Location = new System.Drawing.Point(64, 83); - this.txtProductName.Name = "txtProductName"; - this.txtProductName.Size = new System.Drawing.Size(202, 23); - this.txtProductName.TabIndex = 480; - // - // txtSaleMax - // - this.txtSaleMax.Location = new System.Drawing.Point(217, 52); - this.txtSaleMax.Name = "txtSaleMax"; - this.txtSaleMax.Size = new System.Drawing.Size(49, 23); - this.txtSaleMax.TabIndex = 478; - this.txtSaleMax.Text = "99999"; - // - // txtSaleMin - // - this.txtSaleMin.Location = new System.Drawing.Point(177, 52); - this.txtSaleMin.Name = "txtSaleMin"; - this.txtSaleMin.Size = new System.Drawing.Size(30, 23); - this.txtSaleMin.TabIndex = 476; - this.txtSaleMin.Text = "0"; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(146, 55); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(32, 17); - this.label2.TabIndex = 477; - this.label2.Text = "销量"; - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(206, 55); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(13, 17); - this.label3.TabIndex = 479; - this.label3.Text = "-"; - // - // txtPriceMax - // - this.txtPriceMax.Location = new System.Drawing.Point(79, 52); - this.txtPriceMax.Name = "txtPriceMax"; - this.txtPriceMax.Size = new System.Drawing.Size(49, 23); - this.txtPriceMax.TabIndex = 474; - this.txtPriceMax.Text = "99999"; - // - // txtPriceMin - // - this.txtPriceMin.Location = new System.Drawing.Point(39, 52); - this.txtPriceMin.Name = "txtPriceMin"; - this.txtPriceMin.Size = new System.Drawing.Size(30, 23); - this.txtPriceMin.TabIndex = 472; - this.txtPriceMin.Text = "0"; - // - // label12 - // - this.label12.AutoSize = true; - this.label12.Location = new System.Drawing.Point(8, 55); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(32, 17); - this.label12.TabIndex = 473; - this.label12.Text = "价格"; - // - // rbOffSale - // - this.rbOffSale.AutoSize = true; - this.rbOffSale.Location = new System.Drawing.Point(74, 23); - this.rbOffSale.Name = "rbOffSale"; - this.rbOffSale.Size = new System.Drawing.Size(62, 21); - this.rbOffSale.TabIndex = 465; - this.rbOffSale.Text = "仓库中"; - this.rbOffSale.UseVisualStyleBackColor = true; - // - // rbOnSale - // - this.rbOnSale.AutoSize = true; - this.rbOnSale.Checked = true; - this.rbOnSale.Location = new System.Drawing.Point(11, 23); - this.rbOnSale.Name = "rbOnSale"; - this.rbOnSale.Size = new System.Drawing.Size(62, 21); - this.rbOnSale.TabIndex = 464; - this.rbOnSale.TabStop = true; - this.rbOnSale.Text = "出售中"; - this.rbOnSale.UseVisualStyleBackColor = true; - this.rbOnSale.CheckedChanged += new System.EventHandler(this.rbOnSale_CheckedChanged); - // - // btnStopGetProduct - // - this.btnStopGetProduct.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnStopGetProduct.CanvasColor = System.Drawing.SystemColors.Control; - this.btnStopGetProduct.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnStopGetProduct.DisabledBackColor = System.Drawing.Color.Empty; - this.btnStopGetProduct.Location = new System.Drawing.Point(417, 52); - this.btnStopGetProduct.Name = "btnStopGetProduct"; - this.btnStopGetProduct.Size = new System.Drawing.Size(80, 23); - this.btnStopGetProduct.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopGetProduct.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStopGetProduct.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStopGetProduct.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnStopGetProduct.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopGetProduct.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnStopGetProduct.Style.GradientAngle = 90; - this.btnStopGetProduct.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopGetProduct.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopGetProduct.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopGetProduct.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopGetProduct.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnStopGetProduct.TabIndex = 463; - this.btnStopGetProduct.Text = "停止获取"; - this.btnStopGetProduct.Click += new System.EventHandler(this.btnStopGetProduct_Click); - // - // btnGetProduct - // - this.btnGetProduct.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnGetProduct.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnGetProduct.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnGetProduct.DisabledBackColor = System.Drawing.Color.Empty; - this.btnGetProduct.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnGetProduct.Location = new System.Drawing.Point(417, 22); - this.btnGetProduct.Name = "btnGetProduct"; - this.btnGetProduct.Size = new System.Drawing.Size(80, 23); - this.btnGetProduct.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnGetProduct.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnGetProduct.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnGetProduct.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnGetProduct.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnGetProduct.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnGetProduct.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnGetProduct.Style.GradientAngle = 90; - this.btnGetProduct.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnGetProduct.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnGetProduct.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnGetProduct.TabIndex = 456; - this.btnGetProduct.Text = "获取商品"; - this.btnGetProduct.Click += new System.EventHandler(this.btnGetProduct_Click); - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(68, 55); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(13, 17); - this.label1.TabIndex = 475; - this.label1.Text = "-"; - // - // ucGroupBoxEx2 - // - this.ucGroupBoxEx2.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.ucGroupBoxEx2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.ucGroupBoxEx2.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND; - this.ucGroupBoxEx2.Controls.Add(this.txtOperateCount); - this.ucGroupBoxEx2.Controls.Add(this.label4); - this.ucGroupBoxEx2.Controls.Add(this.txtUploadDays); - this.ucGroupBoxEx2.Controls.Add(this.txtClickPeople); - this.ucGroupBoxEx2.Controls.Add(this.lblClickPeople); - this.ucGroupBoxEx2.Controls.Add(this.txtClickTime); - this.ucGroupBoxEx2.Controls.Add(this.label10); - this.ucGroupBoxEx2.Controls.Add(this.txtOrderCount); - this.ucGroupBoxEx2.Controls.Add(this.label7); - this.ucGroupBoxEx2.Controls.Add(this.txtShowPeopleCount); - this.ucGroupBoxEx2.Controls.Add(this.label6); - this.ucGroupBoxEx2.Controls.Add(this.txtShowCount); - this.ucGroupBoxEx2.Controls.Add(this.label5); - this.ucGroupBoxEx2.Controls.Add(this.btnOffLine); - this.ucGroupBoxEx2.Controls.Add(this.btnStopOperate); - this.ucGroupBoxEx2.Controls.Add(this.chkSkipHasSale); - this.ucGroupBoxEx2.Controls.Add(this.btnDelete); - this.ucGroupBoxEx2.Controls.Add(this.chkUploadDays); - this.ucGroupBoxEx2.Controls.Add(this.label8); - this.ucGroupBoxEx2.Location = new System.Drawing.Point(-2, -1); - this.ucGroupBoxEx2.Name = "ucGroupBoxEx2"; - this.ucGroupBoxEx2.Size = new System.Drawing.Size(694, 120); - this.ucGroupBoxEx2.TabIndex = 469; - this.ucGroupBoxEx2.TabStop = false; - this.ucGroupBoxEx2.Text = "商品操作"; - // - // txtOperateCount - // - this.txtOperateCount.Location = new System.Drawing.Point(454, 22); - this.txtOperateCount.Name = "txtOperateCount"; - this.txtOperateCount.Size = new System.Drawing.Size(30, 23); - this.txtOperateCount.TabIndex = 494; - this.txtOperateCount.Text = "500"; - // - // label4 - // - this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(400, 25); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(56, 17); - this.label4.TabIndex = 495; - this.label4.Text = "操作数量"; - // - // txtUploadDays - // - this.txtUploadDays.Location = new System.Drawing.Point(227, 22); - this.txtUploadDays.Name = "txtUploadDays"; - this.txtUploadDays.Size = new System.Drawing.Size(30, 23); - this.txtUploadDays.TabIndex = 484; - this.txtUploadDays.Text = "7"; - // - // txtClickPeople - // - this.txtClickPeople.Location = new System.Drawing.Point(288, 82); - this.txtClickPeople.Name = "txtClickPeople"; - this.txtClickPeople.Size = new System.Drawing.Size(30, 23); - this.txtClickPeople.TabIndex = 482; - this.txtClickPeople.Text = "1"; - // - // lblClickPeople - // - this.lblClickPeople.AutoSize = true; - this.lblClickPeople.Location = new System.Drawing.Point(153, 85); - this.lblClickPeople.Name = "lblClickPeople"; - this.lblClickPeople.Size = new System.Drawing.Size(136, 17); - this.lblClickPeople.TabIndex = 483; - this.lblClickPeople.Text = "并且 商品点击人数小于"; - // - // txtClickTime - // - this.txtClickTime.Location = new System.Drawing.Point(115, 82); - this.txtClickTime.Name = "txtClickTime"; - this.txtClickTime.Size = new System.Drawing.Size(30, 23); - this.txtClickTime.TabIndex = 480; - this.txtClickTime.Text = "1"; - // - // label10 - // - this.label10.AutoSize = true; - this.label10.Location = new System.Drawing.Point(12, 85); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(104, 17); - this.label10.TabIndex = 481; - this.label10.Text = "商品点击次数小于"; - // - // txtOrderCount - // - this.txtOrderCount.Location = new System.Drawing.Point(454, 52); - this.txtOrderCount.Name = "txtOrderCount"; - this.txtOrderCount.Size = new System.Drawing.Size(30, 23); - this.txtOrderCount.TabIndex = 478; - this.txtOrderCount.Text = "1"; - // - // label7 - // - this.label7.AutoSize = true; - this.label7.Location = new System.Drawing.Point(364, 55); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(92, 17); - this.label7.TabIndex = 479; - this.label7.Text = "成交订单数小于"; - // - // txtShowPeopleCount - // - this.txtShowPeopleCount.Location = new System.Drawing.Point(288, 52); - this.txtShowPeopleCount.Name = "txtShowPeopleCount"; - this.txtShowPeopleCount.Size = new System.Drawing.Size(30, 23); - this.txtShowPeopleCount.TabIndex = 476; - this.txtShowPeopleCount.Text = "1"; - // - // label6 - // - this.label6.AutoSize = true; - this.label6.Location = new System.Drawing.Point(153, 55); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(136, 17); - this.label6.TabIndex = 477; - this.label6.Text = "并且 商品曝光人数小于"; - // - // txtShowCount - // - this.txtShowCount.Location = new System.Drawing.Point(115, 52); - this.txtShowCount.Name = "txtShowCount"; - this.txtShowCount.Size = new System.Drawing.Size(30, 23); - this.txtShowCount.TabIndex = 474; - this.txtShowCount.Text = "1"; - // - // label5 - // - this.label5.AutoSize = true; - this.label5.Location = new System.Drawing.Point(12, 55); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(104, 17); - this.label5.TabIndex = 475; - this.label5.Text = "商品曝光次数小于"; - // - // btnOffLine - // - this.btnOffLine.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnOffLine.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnOffLine.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnOffLine.DisabledBackColor = System.Drawing.Color.Empty; - this.btnOffLine.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnOffLine.Location = new System.Drawing.Point(604, 22); - this.btnOffLine.Name = "btnOffLine"; - this.btnOffLine.Size = new System.Drawing.Size(80, 23); - this.btnOffLine.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnOffLine.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnOffLine.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnOffLine.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnOffLine.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnOffLine.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnOffLine.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnOffLine.Style.GradientAngle = 90; - this.btnOffLine.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnOffLine.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnOffLine.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnOffLine.TabIndex = 427; - this.btnOffLine.Text = "下架商品"; - this.btnOffLine.Click += new System.EventHandler(this.btnOffLine_Click); - // - // btnStopOperate - // - this.btnStopOperate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnStopOperate.CanvasColor = System.Drawing.SystemColors.Control; - this.btnStopOperate.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnStopOperate.DisabledBackColor = System.Drawing.Color.Empty; - this.btnStopOperate.Location = new System.Drawing.Point(604, 82); - this.btnStopOperate.Name = "btnStopOperate"; - this.btnStopOperate.Size = new System.Drawing.Size(80, 23); - this.btnStopOperate.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopOperate.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStopOperate.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255))))); - this.btnStopOperate.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.btnStopOperate.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopOperate.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.btnStopOperate.Style.GradientAngle = 90; - this.btnStopOperate.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopOperate.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnStopOperate.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopOperate.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnStopOperate.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White; - this.btnStopOperate.TabIndex = 405; - this.btnStopOperate.Text = "停止操作"; - this.btnStopOperate.Click += new System.EventHandler(this.btnStopOperate_Click); - // - // chkSkipHasSale - // - this.chkSkipHasSale.AutoSize = true; - this.chkSkipHasSale.Checked = true; - this.chkSkipHasSale.CheckState = System.Windows.Forms.CheckState.Checked; - this.chkSkipHasSale.Location = new System.Drawing.Point(15, 23); - this.chkSkipHasSale.Name = "chkSkipHasSale"; - this.chkSkipHasSale.Size = new System.Drawing.Size(111, 21); - this.chkSkipHasSale.TabIndex = 434; - this.chkSkipHasSale.Text = "跳过有销量商品"; - this.chkSkipHasSale.UseVisualStyleBackColor = true; - // - // btnDelete - // - this.btnDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnDelete.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnDelete.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnDelete.DisabledBackColor = System.Drawing.Color.Empty; - this.btnDelete.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnDelete.Location = new System.Drawing.Point(604, 52); - this.btnDelete.Name = "btnDelete"; - this.btnDelete.Size = new System.Drawing.Size(80, 23); - this.btnDelete.Style.Alignment = System.Drawing.StringAlignment.Center; - this.btnDelete.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnDelete.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnDelete.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.btnDelete.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; - this.btnDelete.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; - this.btnDelete.Style.ForeColor.Color = System.Drawing.Color.White; - this.btnDelete.Style.GradientAngle = 90; - this.btnDelete.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; - this.btnDelete.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnDelete.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); - this.btnDelete.TabIndex = 409; - this.btnDelete.Text = "删除商品"; - this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click); - // - // chkUploadDays - // - this.chkUploadDays.AutoSize = true; - this.chkUploadDays.Checked = true; - this.chkUploadDays.CheckState = System.Windows.Forms.CheckState.Checked; - this.chkUploadDays.Location = new System.Drawing.Point(180, 23); - this.chkUploadDays.Name = "chkUploadDays"; - this.chkUploadDays.Size = new System.Drawing.Size(51, 21); - this.chkUploadDays.TabIndex = 485; - this.chkUploadDays.Text = "保留"; - this.chkUploadDays.UseVisualStyleBackColor = true; - // - // label8 - // - this.label8.AutoSize = true; - this.label8.Location = new System.Drawing.Point(257, 25); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(92, 17); - this.label8.TabIndex = 505; - this.label8.Text = "天内上传的商品"; - // - // 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.btnRefreshShop); - this.ucGroupBoxEx1.Location = new System.Drawing.Point(3, 2); - this.ucGroupBoxEx1.Name = "ucGroupBoxEx1"; - this.ucGroupBoxEx1.Size = new System.Drawing.Size(144, 120); - this.ucGroupBoxEx1.TabIndex = 399; - this.ucGroupBoxEx1.TabStop = false; - this.ucGroupBoxEx1.Text = "基础"; - // - // btnRefreshShop - // - this.btnRefreshShop.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.btnRefreshShop.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnRefreshShop.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnRefreshShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnRefreshShop.ForeColor = System.Drawing.Color.White; - this.btnRefreshShop.Location = new System.Drawing.Point(16, 30); - this.btnRefreshShop.Margin = new System.Windows.Forms.Padding(2); - this.btnRefreshShop.Name = "btnRefreshShop"; - this.btnRefreshShop.Size = new System.Drawing.Size(112, 26); - this.btnRefreshShop.TabIndex = 375; - this.btnRefreshShop.Text = "刷新店铺状态"; - this.btnRefreshShop.UseVisualStyleBackColor = false; - this.btnRefreshShop.Click += new System.EventHandler(this.btnRefreshShop_Click); - // - // 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(1350, 437); - this.splitContainer3.SplitterDistance = 407; - 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.dgvShop); - this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 0, 0); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Controls.Add(this.panelEx1); - this.splitContainer2.Panel2.Padding = new System.Windows.Forms.Padding(0, 0, 4, 0); - this.splitContainer2.Size = new System.Drawing.Size(1350, 407); - this.splitContainer2.SplitterDistance = 269; - this.splitContainer2.TabIndex = 0; - // - // dgvShop - // - this.dgvShop.AllowUserToAddRows = false; - this.dgvShop.AllowUserToDeleteRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - 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.colShopId, - this.colShopName, - this.colAuthStatus, - this.colLoginStatus, - this.colCanUse, - this.colMessage}); - this.dgvShop.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvShop.Location = new System.Drawing.Point(4, 0); - this.dgvShop.Name = "dgvShop"; - this.dgvShop.ReadOnly = true; - this.dgvShop.RowHeadersWidth = 30; - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvShop.RowsDefaultCellStyle = dataGridViewCellStyle3; - this.dgvShop.RowTemplate.Height = 23; - this.dgvShop.Size = new System.Drawing.Size(265, 407); - this.dgvShop.TabIndex = 6; - this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick); - // - // colSelect - // - 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; - // - // colShopId - // - this.colShopId.HeaderText = "店铺"; - this.colShopId.Name = "colShopId"; - this.colShopId.ReadOnly = true; - this.colShopId.Visible = false; - this.colShopId.Width = 55; - // - // colShopName - // - this.colShopName.FillWeight = 150F; - this.colShopName.HeaderText = "店铺名称"; - this.colShopName.Name = "colShopName"; - this.colShopName.ReadOnly = true; - this.colShopName.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colShopName.Width = 75; - // - // colAuthStatus - // - this.colAuthStatus.HeaderText = "授权状态"; - this.colAuthStatus.Name = "colAuthStatus"; - this.colAuthStatus.ReadOnly = true; - this.colAuthStatus.Width = 65; - // - // colLoginStatus - // - this.colLoginStatus.HeaderText = "登录状态"; - this.colLoginStatus.Name = "colLoginStatus"; - this.colLoginStatus.ReadOnly = true; - this.colLoginStatus.Width = 65; - // - // 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; - // - // colMessage - // - this.colMessage.HeaderText = "消息"; - this.colMessage.Name = "colMessage"; - this.colMessage.ReadOnly = true; - this.colMessage.Visible = false; - this.colMessage.Width = 120; - // - // panelEx1 - // - this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control; - this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.panelEx1.Controls.Add(this.ucTabControl1); - this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty; - this.panelEx1.Dock = System.Windows.Forms.DockStyle.Fill; - this.panelEx1.Location = new System.Drawing.Point(0, 0); - this.panelEx1.Name = "panelEx1"; - this.panelEx1.Padding = new System.Windows.Forms.Padding(1); - this.panelEx1.Size = new System.Drawing.Size(1073, 407); - this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center; - this.panelEx1.Style.BackColor1.Color = System.Drawing.Color.White; - this.panelEx1.Style.BackColor2.Color = System.Drawing.Color.White; - 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.TabIndex = 183; - // - // ucTabControl1 - // - this.ucTabControl1.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(251)))), ((int)(((byte)(251)))), ((int)(((byte)(251))))); - this.ucTabControl1.Controls.Add(this.tabPageCheckResult); - this.ucTabControl1.Controls.Add(this.tabPageViolateFileList); - this.ucTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.ucTabControl1.Location = new System.Drawing.Point(1, 1); - this.ucTabControl1.Name = "ucTabControl1"; - this.ucTabControl1.Padding = new System.Drawing.Point(10, 3); - this.ucTabControl1.SelectedIndex = 0; - this.ucTabControl1.ShowCloseButton = true; - this.ucTabControl1.Size = new System.Drawing.Size(1071, 405); - this.ucTabControl1.TabIndex = 0; - this.ucTabControl1.TabSelectColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.ucTabControl1.TabTextColor = System.Drawing.Color.Gray; - // - // tabPageCheckResult - // - this.tabPageCheckResult.Location = new System.Drawing.Point(2, 26); - this.tabPageCheckResult.Name = "tabPageCheckResult"; - this.tabPageCheckResult.Padding = new System.Windows.Forms.Padding(3); - this.tabPageCheckResult.Size = new System.Drawing.Size(1065, 375); - this.tabPageCheckResult.TabIndex = 0; - this.tabPageCheckResult.Text = "店铺1"; - this.tabPageCheckResult.UseVisualStyleBackColor = true; - // - // tabPageViolateFileList - // - this.tabPageViolateFileList.Location = new System.Drawing.Point(2, 26); - this.tabPageViolateFileList.Name = "tabPageViolateFileList"; - this.tabPageViolateFileList.Padding = new System.Windows.Forms.Padding(3); - this.tabPageViolateFileList.Size = new System.Drawing.Size(1065, 375); - this.tabPageViolateFileList.TabIndex = 1; - this.tabPageViolateFileList.Text = "店铺2"; - this.tabPageViolateFileList.UseVisualStyleBackColor = true; - // - // ClearNoVisitorForm - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1350, 561); - this.Controls.Add(this.splitContainer1); - this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Name = "ClearNoVisitorForm"; - this.Text = "ClearNoVisitorForm"; - this.Load += new System.EventHandler(this.ClearNoVisitorForm_Load); - this.VisibleChanged += new System.EventHandler(this.ClearNoVisitorForm_VisibleChanged); - this.splitContainer4.Panel1.ResumeLayout(false); - this.splitContainer4.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).EndInit(); - this.splitContainer4.ResumeLayout(false); - this.splitContainer1.Panel1.ResumeLayout(false); - this.splitContainer1.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); - this.splitContainer1.ResumeLayout(false); - this.splitContainer5.Panel1.ResumeLayout(false); - this.splitContainer5.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer5)).EndInit(); - this.splitContainer5.ResumeLayout(false); - this.ucGroupBoxEx3.ResumeLayout(false); - this.ucGroupBoxEx3.PerformLayout(); - this.ucGroupBoxEx2.ResumeLayout(false); - this.ucGroupBoxEx2.PerformLayout(); - this.ucGroupBoxEx1.ResumeLayout(false); - 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.dgvShop)).EndInit(); - this.panelEx1.ResumeLayout(false); - this.ucTabControl1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private UserControls.StatusBarUserControl statusBar; - private System.Windows.Forms.TabPage tabPageViolateFileList; - private System.Windows.Forms.SplitContainer splitContainer4; - private DevComponents.DotNetBar.PanelEx btnClear; - private UserComponent.UcGroupBoxEx ucGroupBoxEx1; - private UserControls.ButtonEx btnRefreshShop; - private System.Windows.Forms.SplitContainer splitContainer1; - private DevComponents.DotNetBar.PanelEx btnGetProduct; - private DevComponents.DotNetBar.PanelEx btnOffLine; - private UserComponent.UcGroupBoxEx ucGroupBoxEx3; - private DevComponents.DotNetBar.PanelEx btnDelete; - private DevComponents.DotNetBar.PanelEx btnStopOperate; - private System.Windows.Forms.SplitContainer splitContainer3; - private System.Windows.Forms.SplitContainer splitContainer2; - private UserComponent.DataGridViewEx dgvShop; - private DevComponents.DotNetBar.PanelEx panelEx1; - private UserComponent.UcTabControl ucTabControl1; - private System.Windows.Forms.TabPage tabPageCheckResult; - private UserComponent.UcGroupBoxEx ucGroupBoxEx2; - private System.Windows.Forms.RadioButton rbOffSale; - private System.Windows.Forms.RadioButton rbOnSale; - private DevComponents.DotNetBar.PanelEx btnStopGetProduct; - private System.Windows.Forms.TextBox txtUploadDays; - private System.Windows.Forms.TextBox txtClickPeople; - private System.Windows.Forms.Label lblClickPeople; - private System.Windows.Forms.TextBox txtClickTime; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.TextBox txtOrderCount; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.TextBox txtShowPeopleCount; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.TextBox txtShowCount; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.CheckBox chkSkipHasSale; - private System.Windows.Forms.Label lblProductName; - private System.Windows.Forms.TextBox txtProductName; - private System.Windows.Forms.TextBox txtSaleMax; - private System.Windows.Forms.TextBox txtSaleMin; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.TextBox txtPriceMax; - private System.Windows.Forms.TextBox txtPriceMin; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.CheckBox chkUploadDays; - private System.Windows.Forms.SplitContainer splitContainer5; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopId; - private System.Windows.Forms.DataGridViewTextBoxColumn colShopName; - private System.Windows.Forms.DataGridViewTextBoxColumn colAuthStatus; - private System.Windows.Forms.DataGridViewTextBoxColumn colLoginStatus; - private System.Windows.Forms.DataGridViewCheckBoxColumn colCanUse; - private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; - private System.Windows.Forms.TextBox txtOperateCount; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label9; - private DevComponents.DotNetBar.Controls.ComboBoxEx cmbSource; - private DevComponents.Editors.ComboItem comboItem1; - private DevComponents.Editors.ComboItem comboItem2; - private DevComponents.Editors.ComboItem comboItem3; - private System.Windows.Forms.Label label11; - private DevComponents.DotNetBar.PanelEx panelEx2; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ShopOptimizeForms/ClearNoVisitorForm.cs b/TEMUKJD/KJDForms/ShopOptimizeForms/ClearNoVisitorForm.cs deleted file mode 100644 index d5abe5a..0000000 --- a/TEMUKJD/KJDForms/ShopOptimizeForms/ClearNoVisitorForm.cs +++ /dev/null @@ -1,737 +0,0 @@ -using AllBase; -using AllBase.Extension; -using AllBase.Helper; -using AllBase.Model.Result; -using CefSharp; -using CefSharp.WinForms; -//using TemuKJD.DashBoardForms; -using TemuKJD.Extension; -using TemuKJD.Helper; -using TemuKJD.KJDForms.BaseForms; -using NaiBa.CefHelper; -using NaiBa.CefHelper.Handler; -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.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; -using Work.DouyinApiClass; - -namespace TemuKJD.KJDForms.ShopOptimizeForms -{ - public partial class ClearNoVisitorForm : BaseForm - { - private CheckBox chkSelectAll = null; - public ChromiumWebBrowser webBrowser = null; - private List lstShopId = new List(); - public List keywords = null; - public CancellationTokenSource cancellationTokenSource = null; - bool onSale = true; - - public ClearNoVisitorForm() - { - InitializeComponent(); - } - - private void ClearNoVisitorForm_Load(object sender, EventArgs e) - { - this.ucTabControl1.TabPages.Clear(); - - chkSelectAll = dgvShop.Columns["colSelect"].AddHeaderCheckBox(HorizontalAlignment.Center, 0, 0, null, null, false); - dgvShop.Columns["colSelect"].HeaderText = ""; - chkSelectAll.Width = chkSelectAll.Height = 13; - chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged; - } - - private void chkSelectAll_CheckedChanged(object sender, EventArgs e) - { - if (!chkSelectAll.Checked) - { - lstShopId.Clear(); - foreach (DataGridViewRow row in dgvShop.Rows) - { - row.Cells["colSelect"].Value = false; - } - } - else - { - lstShopId.Clear(); - var list = GlobalConfig.ShopLoginList.Where(s => s.ApiAuthStatus == "授权成功" && s.LoginStatus == "登录成功").Select(ss => ss.ShopId); - lstShopId.AddRange(list); - foreach (DataGridViewRow row in dgvShop.Rows) - { - if (list.Any(l => l == row.Cells["colShopId"]?.Value?.ToString())) - row.Cells["colSelect"].Value = true; - } - } - } - - private void ClearNoVisitorForm_VisibleChanged(object sender, EventArgs e) - { - if (Visible == true) - RefreshShop(); - } - - private void btnRefreshShop_Click(object sender, EventArgs e) - { - RefreshShop(); - } - - private void RefreshShop() - { - // 更新选中的上货店铺Id - lstShopId = lstShopId.Where(id => GlobalConfig.ShopLoginList.Any(s => s.ShopId == id && s.LoginStatus == "已授权")).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) - { - BindShop(shopEntity); - } - } - - private void BindShop(ShopLoginInfo shopEntity) - { - if (shopEntity == null) - return; - - bool canUse = shopEntity.ApiAuthStatus == "授权成功" && shopEntity.LoginStatus == "登录成功"; - var row = dgvShop.Rows.Cast().FirstOrDefault(p => p.Cells.GetCellValueFromColumnName("colShopId").ParseToString() == shopEntity.ShopId); - if (row == null) - { - this.dgvShop.Rows.Add( - lstShopId.Contains(shopEntity.ShopId) && canUse, - shopEntity.ShopId, - shopEntity.ShopAccount, - shopEntity.ApiAuthStatus, - shopEntity.LoginStatus, - canUse, - string.Empty - ); - } - else - { - row.Cells["colSelect"].Value = lstShopId.Contains(shopEntity.ShopId) && canUse; - row.Cells["colShopName"].Value = shopEntity.ShopAccount; - row.Cells["colAuthStatus"].Value = shopEntity.ApiAuthStatus; - row.Cells["colLoginStatus"].Value = shopEntity.LoginStatus; - row.Cells["colCanUse"].Value = canUse; - } - } - - private void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e) - { - if (e.ColumnIndex < 0 || e.RowIndex < 0) - return; - string headerText = dgvShop.Columns[e.ColumnIndex].HeaderText; - string columnName = dgvShop.Columns[e.ColumnIndex].Name; - long shopId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToLong(); - string shopName = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ToString(); - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId.ToString()); - var row = dgvShop.Rows[e.RowIndex]; - switch (columnName) - { - case "colSelect": - if (row.Cells["colCanUse"].Value.ParseToBool()) - { - row.Cells["colSelect"].Value = !row.Cells["colSelect"].Value.ParseToBool(); - if (dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value.ParseToBool()) - lstShopId.Add(shopId.ToString()); - else - lstShopId.Remove(shopId.ToString()); - if (dgvShop.Rows.Cast().All(r => r.Cells["colSelect"].Value.ParseToBool())) - chkSelectAll.Checked = true; - else - chkSelectAll.Checked = false; - } - else - { - BaseMsgForm.ShowInfo("店铺未授权或未登录!"); - } - break; - } - } - - private void btnGetProduct_Click(object sender, EventArgs e) - { - if (lstShopId.Count == 0) - { - BaseMsgForm.ShowInfo("请选择店铺!"); - return; - } - try - { - this.keywords = txtProductName.Text.Split(new string[] { ",", "\r\n" }, StringSplitOptions.RemoveEmptyEntries).ToList(); - } - catch (Exception ex) - { - } - - cancellationTokenSource = new CancellationTokenSource(); - Task.Run(() => - { - foreach (var shopId in lstShopId) - { - if (cancellationTokenSource.IsCancellationRequested) - break; - - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId); - if (shop == null) - continue; - - ClearNoVisitorShopForm clearForm = null; - Invoke(new Action(() => - { - var tab = this.ucTabControl1.TabPages.Cast().FirstOrDefault(t => t.Text == shop.ShopAccount && t.Name == "tab" + shop.ShopId); - if (tab == null) - { - tab = new TabPage(); - tab.Name = "tab" + shop.ShopId; - tab.Text = shop.ShopAccount; - this.ucTabControl1.TabPages.Add(tab); - - var clearNoVisitorShopForm = new ClearNoVisitorShopForm(shop); - clearNoVisitorShopForm.clearNoVisitorForm = this; - clearNoVisitorShopForm.TopLevel = false; - clearNoVisitorShopForm.Left = 0; - clearNoVisitorShopForm.Top = 0; - clearNoVisitorShopForm.FormBorderStyle = FormBorderStyle.None; - clearNoVisitorShopForm.AutoSize = true; - clearNoVisitorShopForm.Dock = DockStyle.Fill; - clearNoVisitorShopForm.Show(); - tab.Controls.Add(clearNoVisitorShopForm); - } - - if (tab.Controls.Count > 0) - clearForm = tab.Controls[0] as ClearNoVisitorShopForm; - })); - - if (clearForm != null) - { - clearForm.productTradeIndexList.Clear(); - clearForm.GetProduct(onSale, txtPriceMin.Text.ParseToDecimal(), txtPriceMax.Text.ParseToDecimal(), - txtSaleMin.Text.ParseToInt(), txtSaleMax.Text.ParseToInt(), - txtProductName.Text.Trim().Split(new string[] { "\r", "\n", "," }, StringSplitOptions.RemoveEmptyEntries).ToList()); - } - } - }, cancellationTokenSource.Token); - } - - public void GetSalesOrVisitor(ShopLoginInfo shop, bool isSales = true) - { - if (webBrowser == null) - { - Invoke(new Action(() => - { - webBrowser = CEFBrowser.CreateChromiumWebBrowser("about:blank", false); - webBrowser.KeyboardHandler = new KeyboardHandler(); - webBrowser.Dock = DockStyle.Fill; - CustomResourceRequestHandlerLocal resourceRequestHandler = new CustomResourceRequestHandlerLocal(); - resourceRequestHandler.ResourceLoadCompleteEvent += RequestHandler_ResourceLoadCompleteEvent; - webBrowser.RequestHandler = new CustomRequestHandler(resourceRequestHandler); - webBrowser.LifeSpanHandler = new LifeSpanHandlerLocal(PopWindowType.SelfWindow); - webBrowser.SendToBack(); - this.splitContainer1.Panel2.Controls.Add(webBrowser); - })); - } - - while (webBrowser.Tag != null) - { - Thread.Sleep(Randomx.GetId(50, 100)); - } - if (cancellationTokenSource.IsCancellationRequested) - return; - - webBrowser.Tag = shop; - - while (!webBrowser.IsBrowserInitialized || webBrowser.IsLoading) - continue; - - var cookie = shop.Cookies; - CEFBrowser.DeleteCookie(webBrowser.RequestContext.GetCookieManager(null)); - var t = CEFBrowser.SetCookieAsync("jinritemai.com", cookie, webBrowser.RequestContext.GetCookieManager(null)); - t.Wait(2000); - Thread.Sleep(500); - - var targetUrl = "https://fxg.jinritemai.com/ffa/g/list"; - if (!isSales) - targetUrl = "https://fxg.jinritemai.com/ffa/mshop/homepage/index"; - webBrowser.Load(targetUrl); - - while (webBrowser.IsLoading) - { - Thread.Sleep(1000); - } - Thread.Sleep(3000); - - if (!isSales) - { - Thread.Sleep(3000); - var jsStrBase = "function clickProductAnalysis(txt) {\r\n" - + "var child = document.body.firstElementChild;\r\n" - + "var element1 = null;\r\n" - + " while (child) {\r\n" - + " if (child.innerHTML.indexOf(txt) >= 0) {\r\n" - + " element1 = child;\r\n" - + " if (child.firstElementChild) {\r\n" - + " child = child.firstElementChild; continue;\r\n" - + " } else break;\r\n" - + " }\r\n" - + " child = child.nextElementSibling;\r\n" - + " }\r\n" - + " if (element1) {\r\n" - + " element1.click(); return 'success';\r\n" - + " } else return 'no_element';\r\n" - + "}\r\n"; - var jsStr = jsStrBase + "clickProductAnalysis('电商罗盘');\r\n"; - t = webBrowser.GetMainFrame().EvaluateScriptAsync(jsStr); - t.Wait(); - - while (webBrowser.IsLoading) - { - Thread.Sleep(1000); - } - Thread.Sleep(Randomx.GetId(1500, 2500)); - - jsStr = jsStrBase + "clickProductAnalysis('商品概览');\r\n"; - t = webBrowser.GetMainFrame().EvaluateScriptAsync(jsStr); - t.Wait(); - while (webBrowser.IsLoading) - { - Thread.Sleep(1000); - } - Thread.Sleep(Randomx.GetId(1500, 2500)); - } - while (webBrowser.Tag != null) - { - Thread.Sleep(Randomx.GetId(50, 100)); - } - Thread.Sleep(3000); - } - - - private void RequestHandler_ResourceLoadCompleteEvent(object sender, string url, string postData, string responseData, CefSharp.IRequest iRequest) - { - if (url.StartsWith("https://fxg.jinritemai.com/product/tproduct/list?page=0") && url.Contains("&pay_type=")) - { - //HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://fxg.jinritemai.com/product/tproduct/list?page=0&pageSize=20&draft_status=0&comment_percent=&group_id=&pay_type=&business_type=4&is_online=1&check_status=3&status=0&supply_status=&order_field=audit_time&sort=desc&appid=1&__token=d08f30493d071fd0e9897298c524375c&_bid=ffa_goods&_lid=711798986796&msToken=r9mNuOXDYvbtInAwLzMATC3-yIiWLcZs25f-Jt5shVW8LdugFOlMdPFOYS3_UVXhRuB7RMC4LmK-pvyBrDfSopZsXXC8yQoEGVlat6UUrxINeKzsHyLW614=&X-Bogus=DFSzsdVLBvbANcMUSU8IvKXAIQRU&_signature=_02B4Z6wo000015pLnBgAAIDC-UFcc3lE05uaT5iAAIT9acBVIU6ij4-5DpO00qPB80yCit9yg5fMFBGG9MpPGrriZuj0AXpdbbUerWeM9eMoD3aCNPK8iJeLeNxDBbAP4e3pFFOcMuEX84BO85"); - //HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://fxg.jinritemai.com/product/tproduct/list?page=0&pageSize=20&group_id=&offline_type=&pay_type=&business_type=4&is_online=1&status=1&supply_status=&order_field=offline_time&sort=desc&appid=1&__token=d08f30493d071fd0e9897298c524375c&_bid=ffa_goods&_lid=711769550666&msToken=79CxZTCGdJBocG27LuxPm9gT0QBCKI1GNci1u0AerFDnmLK0qMkau2ARZcFJx03cw2o5D5CySkojV6UCZ_riv2N36usyvdjsS2jvfE_6Z7k2sUsC2U7hJwo=&X-Bogus=DFSzsdVL5HiANcMUSU8IvVXAIQRG&_signature=_02B4Z6wo00001fJb96wAAIDAkVE3xAcLXS3yX.MAAB7zacBVIU6ij4-5DpO00qPB80yCit9yg5fMFBGG9MpPGrriZuj0AXpdbbUerWeM9eMoD3aCNPK8iJeLeNxDBbAP4e3pFFOcMuEX84BO1e"); - - var listUrl = url; - var referrerUrl = iRequest.ReferrerUrl; - var result = responseData; - Dictionary Headers = new Dictionary(); - foreach (var hk in iRequest.Headers.AllKeys) - { - Headers[hk] = iRequest.Headers[hk]; - } - if (webBrowser.Tag != null) - { - var shop = webBrowser.Tag as ShopLoginInfo; - var tab = this.ucTabControl1.TabPages.Cast().FirstOrDefault(t => t.Text == shop.ShopAccount && t.Name == "tab" + shop.ShopId); - var clearForm = tab.Controls[0] as ClearNoVisitorShopForm; - - Task.Run(() => - { - int total = -1; - int number = 0; - for (int i = 0; i < 10000; i++) - { - number += 20; - result = ""; - for (int j = 0; j < 3 && !result.Contains("\"st\":0"); j++) - { - CommonSimRequest simRequest = new CommonSimRequest(); - simRequest.Accept = "application/json, text/plain, */*"; - if (Headers.ContainsKey("Accept")) - simRequest.Accept = Headers["Accept"]; - if (Headers.ContainsKey("UserAgent")) - simRequest.UserAgent = Headers["UserAgent"]; - var cookie = shop.Cookies; - - //"https://fxg.jinritemai.com/product/tproduct/list?page=0&pageSize=20&group_id=&offline_type=&pay_type=&business_type=4&is_online=1&status=0&supply_status=&order_field=audit_time&sort=desc&appid=1&__token=d08f30493d071fd0e9897298c524375c&_bid=ffa_goods&_lid=711798986796&msToken=r9mNuOXDYvbtInAwLzMATC3-yIiWLcZs25f-Jt5shVW8LdugFOlMdPFOYS3_UVXhRuB7RMC4LmK-pvyBrDfSopZsXXC8yQoEGVlat6UUrxINeKzsHyLW614=&X-Bogus=DFSzsdVLBvbANcMUSU8IvKXAIQRU&_signature=_02B4Z6wo000015pLnBgAAIDC-UFcc3lE05uaT5iAAIT9acBVIU6ij4-5DpO00qPB80yCit9yg5fMFBGG9MpPGrriZuj0AXpdbbUerWeM9eMoD3aCNPK8iJeLeNxDBbAP4e3pFFOcMuEX84BO85"); - //"https://fxg.jinritemai.com/product/tproduct/list?page=0&pageSize=20&group_id=&offline_type=&pay_type=&business_type=4&is_online=1&status=1&supply_status=&order_field=offline_time&sort=desc&appid=1&__token=d08f30493d071fd0e9897298c524375c&_bid=ffa_goods&_lid=711769550666&msToken=79CxZTCGdJBocG27LuxPm9gT0QBCKI1GNci1u0AerFDnmLK0qMkau2ARZcFJx03cw2o5D5CySkojV6UCZ_riv2N36usyvdjsS2jvfE_6Z7k2sUsC2U7hJwo=&X-Bogus=DFSzsdVL5HiANcMUSU8IvVXAIQRG&_signature=_02B4Z6wo00001fJb96wAAIDAkVE3xAcLXS3yX.MAAB7zacBVIU6ij4-5DpO00qPB80yCit9yg5fMFBGG9MpPGrriZuj0AXpdbbUerWeM9eMoD3aCNPK8iJeLeNxDBbAP4e3pFFOcMuEX84BO1e"); - - var rUrl = listUrl.Replace("page=0", "page=" + i) - .Replace("&pay_type=", "&pay_type=&sell_num_min=1"); - if (!onSale) - rUrl = rUrl.Replace("&draft_status=0&comment_percent=", "") - .Replace("&group_id=", "&group_id=&offline_type=") - .Replace("&check_status=3", "") - .Replace("&status=0", "&status=1") - .Replace("&order_field=audit_time", "&order_field=offline_time"); - result = simRequest.Request_Get(rUrl, referrerUrl, new Dictionary(), cookie); - if (j > 0) - { - Thread.Sleep(Randomx.GetId(2000, 3000)); - } - } - - if (result.Contains("\"st\":0") && !cancellationTokenSource.IsCancellationRequested) - { - clearForm.isGetProductSalesSuccess = true; - - if (total == -1) - { - total = BaseRegex.GetIntJson(ref result, "total"); - } - var jObj = JObject.Parse(result); - var jArr = jObj["data"] as JArray; - foreach (var productObj in jArr) - { - var prod = JsonHelper.SerializeObject(productObj); - var pId = BaseRegex.GetStringJson(ref prod, "product_id"); - var sales = BaseRegex.GetIntJson(ref prod, "sell_num"); - if (sales == 0) - { - number = 99999999; - break; - } - else - { - clearForm.dicProductSales[pId] = sales; - } - } - Thread.Sleep(Randomx.GetId(2000, 3000)); - } - else - { - clearForm.isGetProductSalesSuccess = false; - webBrowser.Tag = null; - break; - } - - if (number >= total) - break; - } - - webBrowser.Tag = null; - Thread.Sleep(1000); - }); - } - else - { - webBrowser.Tag = null; - } - } - - if (url.StartsWith("https://compass.jinritemai.com/compass_api/shop/product/product_overview/all_rank")) - { - var listUrl = url; - var referrerUrl = iRequest.ReferrerUrl; - var result = responseData; - Dictionary Headers = new Dictionary(); - foreach (var hk in iRequest.Headers.AllKeys) - { - Headers[hk] = iRequest.Headers[hk]; - } - if (webBrowser.Tag != null) - { - var shop = webBrowser.Tag as ShopLoginInfo; - var tab = this.ucTabControl1.TabPages.Cast().FirstOrDefault(t => t.Text == shop.ShopAccount && t.Name == "tab" + shop.ShopId); - var clearForm = tab.Controls[0] as ClearNoVisitorShopForm; - - Task.Run(() => - { - var cookies = CEFBrowser.GetCookie("", webBrowser.RequestContext.GetCookieManager(null)); - int total = -1; - int number = 0; - for (int i = 1; i < 10000; i++) - { - number += 50; - result = ""; - for (int j = 0; j < 5 && !result.Contains("\"st\":0"); j++) - { - CommonSimRequest simRequest = new CommonSimRequest(); - simRequest.Accept = "application/json, text/plain, */*"; - if (Headers.ContainsKey("Accept")) - simRequest.Accept = Headers["Accept"]; - if (Headers.ContainsKey("UserAgent")) - simRequest.UserAgent = Headers["UserAgent"]; - var cookie = cookies; - - //https://compass.jinritemai.com/compass_api/shop/product/product_overview/all_rank?end_date=1650931200&begin_date=1648425600&date_type=23&page_no=1&page_size=10&begin_date_format=2022-03-28T08%3A00%3A00%2B08%3A00&_lid=290001084171 - //https://compass.jinritemai.com/compass_api/shop/product/product_overview/all_rank?end_date=1650818094&begin_date=1648312494&date_type=23&page_no=2&page_size=50&index_selected=dh_product_click_pv%2Cdh_product_click_uv%2Cdh_product_show_pv%2Cdh_product_show_uv%2Cpay_cnt&begin_date_format=2022-03-27T00%3A34%3A54%2B08%3A00&_lid=909805182404"); - - var rUrl = listUrl.Replace("page_no=1", "page_no=" + i) - .Replace("page_size=10", "page_size=50&index_selected=dh_product_click_pv%2Cdh_product_click_uv%2Cdh_product_show_pv%2Cdh_product_show_uv%2Cpay_cnt"); - - var endTime = BaseRegex.GetMatchRegexString(ref listUrl, "end_date=(\\d{2,30})"); - var beginTime = BaseRegex.GetMatchRegexString(ref listUrl, "begin_date=(\\d{2,30})"); - var beginTimeFormat = BaseRegex.GetMatchRegexString(ref listUrl, "begin_date_format=([\\s\\S]+?)&"); - if (!string.IsNullOrEmpty(endTime) && !string.IsNullOrEmpty(beginTime) && !string.IsNullOrEmpty(beginTimeFormat)) - { - Invoke(new Action(() => - { - if (cmbSource.Text == "近7天") - { - var newBeginTime = (endTime.ParseToInt() - 60 * 60 * 24 * 6).ToString(); - var beginDatetime = BaseClass.StampToDateTime(newBeginTime.ParseToInt()); - var newBeginTimeFormat = beginDatetime.ToString("s") + beginDatetime.ToString("zzz"); - rUrl = rUrl.Replace("date_type=23", "date_type=21").Replace(beginTime, newBeginTime) - .Replace(beginTimeFormat, GetHtml.UrlEncodeUtf8(newBeginTimeFormat)); - } - else if (cmbSource.Text == "近1天") - { - var newBeginTime = endTime; - var beginDatetime = BaseClass.StampToDateTime(newBeginTime.ParseToInt()); - var newBeginTimeFormat = beginDatetime.ToString("s") + beginDatetime.ToString("zzz"); - rUrl = rUrl.Replace("date_type=23", "date_type=2").Replace(beginTime, newBeginTime) - .Replace(beginTimeFormat, GetHtml.UrlEncodeUtf8(newBeginTimeFormat)); - } - })); - } - - result = simRequest.Request_Get(rUrl, referrerUrl, new Dictionary(), cookie); - if (j > 0) - { - Thread.Sleep(Randomx.GetId(2000, 3000)); - } - } - - if (result.Contains("\"st\":0") && result.Contains("\"data\"") && result.Contains("\"data_result\"") && !cancellationTokenSource.IsCancellationRequested) - { - clearForm.isGetProductVisitorSuccess = true; - - if (total == -1) - { - total = BaseRegex.GetIntJson(ref result, "total"); - if (total > 10000) - total = 10000; - } - var jObj = JObject.Parse(result); - var data_result = jObj["data"]["data_result"].ToString(); - var listTemp = JsonHelper.DeserializeJsonToList(data_result); - clearForm.productTradeIndexList.AddRange(listTemp); - clearForm.productTradeIndexList = clearForm.productTradeIndexList.DistinctBy(p => p.product_id).ToList(); - - clearForm.ShowVisitorMessage("流量数据获取中:" + i + "/" + Math.Ceiling(total / 50M)); - - Thread.Sleep(Randomx.GetId(2000, 3000)); - } - else - { - clearForm.isGetProductVisitorSuccess = false; - webBrowser.Tag = null; - break; - } - - if (number >= total) - break; - } - - webBrowser.Tag = null; - Thread.Sleep(1000); - }); - } - else - { - webBrowser.Tag = null; - } - } - } - - private void btnStopGetProduct_Click(object sender, EventArgs e) - { - if (cancellationTokenSource != null) - cancellationTokenSource.Cancel(); - } - - private void rbOnSale_CheckedChanged(object sender, EventArgs e) - { - this.onSale = rbOnSale.Checked; - } - - private void lblProductName_DoubleClick(object sender, EventArgs e) - { - if (this.webBrowser != null) - { - webBrowser.BringToFront(); - } - } - - private void lblProductName_Click(object sender, EventArgs e) - { - if (this.webBrowser != null) - { - webBrowser.SendToBack(); - } - } - - private void btnOffLine_Click(object sender, EventArgs e) - { - cancellationTokenSource = new CancellationTokenSource(); - Task.Run(() => - { - int i = 0; - List tList = new List(); - foreach (TabPage tp in ucTabControl1.TabPages) - { - i++; - Invoke(new Action(() => - { - this.statusBar.lblTaskStatus.Text = "正在下架"; - this.statusBar.pgbTaskProgress.Value = i; - this.statusBar.pgbTaskProgress.Text = i + "/" + ucTabControl1.TabPages.Count; - this.statusBar.pgbTaskProgress.Maximum = ucTabControl1.TabPages.Count; - })); - - if (tp.Controls.Count > 0) - { - var clearForm = tp.Controls[0] as ClearNoVisitorShopForm; - if (clearForm != null) - { - int days = this.txtUploadDays.Text.ParseToInt(); - if (days < 0 || chkUploadDays.Checked == false) - days = 0; - var t = Task.Run(() => - { - clearForm.OffLineProduct(chkSkipHasSale.Checked, days, txtShowCount.Text.ParseToInt(), txtShowPeopleCount.Text.ParseToInt(), - txtOrderCount.Text.ParseToInt(), txtClickTime.Text.ParseToInt(), txtClickPeople.Text.ParseToInt(), txtOperateCount.Text.ParseToInt()); - }); - tList.Add(t); - if (tList.Count >= 10) - Task.WaitAny(tList.ToArray()); - - var ts = tList.Where(t1 => t1.IsCompleted || t1.IsCanceled || t1.IsFaulted); - foreach (var t1 in ts) - { - tList.Remove(t1); - } - } - } - } - Task.WaitAll(tList.ToArray()); - tList.Clear(); - - Invoke(new Action(() => - { - if (cancellationTokenSource.IsCancellationRequested) - { - this.statusBar.lblTaskStatus.Text = "下架中断"; - } - else - { - this.statusBar.lblTaskStatus.Text = "下架完成"; - } - this.statusBar.pgbTaskProgress.Value = 0; - this.statusBar.pgbTaskProgress.Text = 0 + "/" + 0; - this.statusBar.pgbTaskProgress.Maximum = 0; - })); - }, cancellationTokenSource.Token); - } - - private void btnDelete_Click(object sender, EventArgs e) - { - cancellationTokenSource = new CancellationTokenSource(); - Task.Run(() => - { - int i = 0; - List tList = new List(); - foreach (TabPage tp in ucTabControl1.TabPages) - { - i++; - Invoke(new Action(() => - { - this.statusBar.lblTaskStatus.Text = "正在删除"; - this.statusBar.pgbTaskProgress.Value = i; - this.statusBar.pgbTaskProgress.Text = i + "/" + ucTabControl1.TabPages.Count; - this.statusBar.pgbTaskProgress.Maximum = ucTabControl1.TabPages.Count; - })); - - if (tp.Controls.Count > 0) - { - var clearForm = tp.Controls[0] as ClearNoVisitorShopForm; - if (clearForm != null) - { - int days = this.txtUploadDays.Text.ParseToInt(); - if (days < 0 || chkUploadDays.Checked == false) - days = 0; - var t = Task.Run(() => - { - clearForm.DeleteProduct(chkSkipHasSale.Checked, days, txtShowCount.Text.ParseToInt(), txtShowPeopleCount.Text.ParseToInt(), - txtOrderCount.Text.ParseToInt(), txtClickTime.Text.ParseToInt(), txtClickPeople.Text.ParseToInt(), txtOperateCount.Text.ParseToInt()); - }); - tList.Add(t); - if (tList.Count >= 10) - Task.WaitAny(tList.ToArray()); - - var ts = tList.Where(t1 => t1.IsCompleted || t1.IsCanceled || t1.IsFaulted); - foreach (var t1 in ts) - { - tList.Remove(t1); - } - } - } - } - Task.WaitAll(tList.ToArray()); - tList.Clear(); - - Invoke(new Action(() => - { - if (cancellationTokenSource.IsCancellationRequested) - { - this.statusBar.lblTaskStatus.Text = "删除中断"; - } - else - { - this.statusBar.lblTaskStatus.Text = "删除完成"; - } - this.statusBar.pgbTaskProgress.Value = 0; - this.statusBar.pgbTaskProgress.Text = 0 + "/" + 0; - this.statusBar.pgbTaskProgress.Maximum = 0; - })); - }, cancellationTokenSource.Token); - } - - private void btnStopOperate_Click(object sender, EventArgs e) - { - if (cancellationTokenSource != null) - cancellationTokenSource.Cancel(); - } - - private void btnClear_Click(object sender, EventArgs e) - { - if (BaseMsgForm.ShowConfirm("确定要清空结果吗?清空后需要重新获取!").DialogResult == DialogResult.OK) - { - foreach (TabPage tp in ucTabControl1.TabPages) - { - if (tp.Controls.Count > 0) - { - var clearForm = tp.Controls[0] as ClearNoVisitorShopForm; - if (clearForm != null) - { - clearForm.ClearData(); - } - } - } - } - } - - private void panelEx2_Click(object sender, EventArgs e) - { - foreach (var shopId in lstShopId) - { - var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId); - if (shop == null) - continue; - - DouyinApi api = new DouyinApi(shop); - var html = api.GetStatData(); - } - } - } -} diff --git a/TEMUKJD/KJDForms/ShopOptimizeForms/ClearNoVisitorForm.resx b/TEMUKJD/KJDForms/ShopOptimizeForms/ClearNoVisitorForm.resx deleted file mode 100644 index 82921c0..0000000 --- a/TEMUKJD/KJDForms/ShopOptimizeForms/ClearNoVisitorForm.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ShopOptimizeForms/ClearNoVisitorShopForm.Designer.cs b/TEMUKJD/KJDForms/ShopOptimizeForms/ClearNoVisitorShopForm.Designer.cs deleted file mode 100644 index 6a19dee..0000000 --- a/TEMUKJD/KJDForms/ShopOptimizeForms/ClearNoVisitorShopForm.Designer.cs +++ /dev/null @@ -1,265 +0,0 @@ -namespace TemuKJD.KJDForms.ShopOptimizeForms -{ - partial class ClearNoVisitorShopForm - { - /// - /// 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() - { - 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(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.dgvProduct = new TemuKJD.UserComponent.DataGridViewEx(); - this.label1 = new System.Windows.Forms.Label(); - this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); - this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.colProductId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colProductName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colSales = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colPrice = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colCreateTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colOrderCount = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colShowCount = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colShowPeopleCount = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colClickCount = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colClickPeopleCount = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); - this.splitContainer2.Panel1.SuspendLayout(); - this.splitContainer2.Panel2.SuspendLayout(); - this.splitContainer2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgvProduct)).BeginInit(); - this.SuspendLayout(); - // - // splitContainer2 - // - this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; - this.splitContainer2.Location = new System.Drawing.Point(0, 0); - this.splitContainer2.Name = "splitContainer2"; - this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; - // - // splitContainer2.Panel1 - // - this.splitContainer2.Panel1.Controls.Add(this.dgvProduct); - this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 4, 4, 0); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Controls.Add(this.label1); - this.splitContainer2.Panel2.Controls.Add(this.statusBar); - this.splitContainer2.Size = new System.Drawing.Size(1101, 503); - this.splitContainer2.SplitterDistance = 473; - this.splitContainer2.TabIndex = 8; - // - // dgvProduct - // - this.dgvProduct.AllowUserToAddRows = false; - this.dgvProduct.AllowUserToDeleteRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; - this.dgvProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - this.dgvProduct.BackgroundColor = System.Drawing.Color.White; - this.dgvProduct.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dgvProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; - this.dgvProduct.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgvProduct.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.colSelect, - this.colProductId, - this.colProductName, - this.colSales, - this.colPrice, - this.colCreateTime, - this.colOrderCount, - this.colShowCount, - this.colShowPeopleCount, - this.colClickCount, - this.colClickPeopleCount, - this.colMessage}); - this.dgvProduct.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvProduct.Location = new System.Drawing.Point(4, 4); - this.dgvProduct.Name = "dgvProduct"; - this.dgvProduct.ReadOnly = true; - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgvProduct.RowsDefaultCellStyle = dataGridViewCellStyle3; - this.dgvProduct.RowTemplate.Height = 23; - this.dgvProduct.Size = new System.Drawing.Size(1093, 469); - this.dgvProduct.TabIndex = 6; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.ForeColor = System.Drawing.Color.MidnightBlue; - this.label1.Location = new System.Drawing.Point(656, 2); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(43, 17); - this.label1.TabIndex = 3; - this.label1.Text = "label1"; - // - // 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(1101, 26); - this.statusBar.TabIndex = 2; - // - // colSelect - // - this.colSelect.FillWeight = 50F; - this.colSelect.HeaderText = "选"; - this.colSelect.Name = "colSelect"; - this.colSelect.ReadOnly = true; - this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.colSelect.Visible = false; - this.colSelect.Width = 41; - // - // colProductId - // - this.colProductId.HeaderText = "商品Id"; - this.colProductId.Name = "colProductId"; - this.colProductId.ReadOnly = true; - this.colProductId.Width = 150; - // - // colProductName - // - this.colProductName.HeaderText = "商品名称"; - this.colProductName.Name = "colProductName"; - this.colProductName.ReadOnly = true; - this.colProductName.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colProductName.Width = 250; - // - // colSales - // - this.colSales.HeaderText = "销量"; - this.colSales.Name = "colSales"; - this.colSales.ReadOnly = true; - this.colSales.Width = 60; - // - // colPrice - // - this.colPrice.HeaderText = "价格"; - this.colPrice.Name = "colPrice"; - this.colPrice.ReadOnly = true; - this.colPrice.Width = 60; - // - // colCreateTime - // - this.colCreateTime.HeaderText = "创建时间"; - this.colCreateTime.Name = "colCreateTime"; - this.colCreateTime.ReadOnly = true; - // - // colOrderCount - // - this.colOrderCount.HeaderText = "成交订单数"; - this.colOrderCount.Name = "colOrderCount"; - this.colOrderCount.ReadOnly = true; - this.colOrderCount.Width = 90; - // - // colShowCount - // - this.colShowCount.HeaderText = "商品曝光次数"; - this.colShowCount.Name = "colShowCount"; - this.colShowCount.ReadOnly = true; - this.colShowCount.Width = 90; - // - // colShowPeopleCount - // - this.colShowPeopleCount.HeaderText = "商品曝光人数"; - this.colShowPeopleCount.Name = "colShowPeopleCount"; - this.colShowPeopleCount.ReadOnly = true; - this.colShowPeopleCount.Width = 90; - // - // colClickCount - // - this.colClickCount.HeaderText = "商品点击次数"; - this.colClickCount.Name = "colClickCount"; - this.colClickCount.ReadOnly = true; - this.colClickCount.Width = 90; - // - // colClickPeopleCount - // - this.colClickPeopleCount.HeaderText = "商品点击人数"; - this.colClickPeopleCount.Name = "colClickPeopleCount"; - this.colClickPeopleCount.ReadOnly = true; - this.colClickPeopleCount.Width = 90; - // - // colMessage - // - this.colMessage.HeaderText = "消息"; - this.colMessage.Name = "colMessage"; - this.colMessage.ReadOnly = true; - this.colMessage.Width = 200; - // - // ClearNoVisitorShopForm - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1101, 503); - this.Controls.Add(this.splitContainer2); - this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Name = "ClearNoVisitorShopForm"; - this.Text = "ClearNoVisitorShopForm"; - this.splitContainer2.Panel1.ResumeLayout(false); - this.splitContainer2.Panel2.ResumeLayout(false); - this.splitContainer2.Panel2.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); - this.splitContainer2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.dgvProduct)).EndInit(); - this.ResumeLayout(false); - - } - - #endregion - - private UserControls.StatusBarUserControl statusBar; - private System.Windows.Forms.SplitContainer splitContainer2; - private UserComponent.DataGridViewEx dgvProduct; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; - private System.Windows.Forms.DataGridViewTextBoxColumn colProductId; - private System.Windows.Forms.DataGridViewTextBoxColumn colProductName; - private System.Windows.Forms.DataGridViewTextBoxColumn colSales; - private System.Windows.Forms.DataGridViewTextBoxColumn colPrice; - private System.Windows.Forms.DataGridViewTextBoxColumn colCreateTime; - private System.Windows.Forms.DataGridViewTextBoxColumn colOrderCount; - private System.Windows.Forms.DataGridViewTextBoxColumn colShowCount; - private System.Windows.Forms.DataGridViewTextBoxColumn colShowPeopleCount; - private System.Windows.Forms.DataGridViewTextBoxColumn colClickCount; - private System.Windows.Forms.DataGridViewTextBoxColumn colClickPeopleCount; - private System.Windows.Forms.DataGridViewTextBoxColumn colMessage; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ShopOptimizeForms/ClearNoVisitorShopForm.cs b/TEMUKJD/KJDForms/ShopOptimizeForms/ClearNoVisitorShopForm.cs deleted file mode 100644 index f2470df..0000000 --- a/TEMUKJD/KJDForms/ShopOptimizeForms/ClearNoVisitorShopForm.cs +++ /dev/null @@ -1,494 +0,0 @@ -using AllBase; -using AllBase.Extension; -using AllBase.Helper; -using AllBase.Model.Result; -using TemuKJD.KJDForms.BaseForms; -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.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; -using Work.BLL.Product; - -namespace TemuKJD.KJDForms.ShopOptimizeForms -{ - public partial class ClearNoVisitorShopForm : BaseForm - { - ShopLoginInfo shop; - public ClearNoVisitorForm clearNoVisitorForm = null; - public bool isGetProductSalesSuccess = false; - public bool isGetProductVisitorSuccess = false; - public Dictionary dicProductSales = new Dictionary(); - public List productTradeIndexList = new List(); - List productList = new List(); - - public ClearNoVisitorShopForm(ShopLoginInfo _shop) - { - InitializeComponent(); - shop = _shop; - label1.Text = ""; - } - - public void GetProduct(bool isOnline = true, decimal priceMin = 0, decimal priceMax = 99999, int salesMin = 0, int salesMax = 99999, List productName = null) - { - if (shop == null) - return; - - ShowVisitorMessage(""); - foreach (DataGridViewRow r in this.dgvProduct.Rows) - { - r.Cells["colSales"].Value = "获取中"; - r.Cells["colOrderCount"].Value = "获取中"; - r.Cells["colShowCount"].Value = "获取中"; - r.Cells["colShowPeopleCount"].Value = "获取中"; - r.Cells["colClickCount"].Value = "获取中"; - r.Cells["colClickPeopleCount"].Value = "获取中"; - r.Cells["colMessage"].Value = ""; - } - foreach (var p in productList) - { - p.sell_num = null; - p.order_count = null; - p.show_count = null; - p.show_people_count = null; - p.click_count = null; - p.click_people_count = null; - } - - List tList = new List(); - - var t1 = Task.Run(() => - { - int page = 0; - int pageSize = 100; - int totalNum = 99999; - while (page < 100) - { - if (clearNoVisitorForm.cancellationTokenSource.IsCancellationRequested) - break; - - page++; - var html = new ShopProductBLL().GetShopProductListData(shop, isOnline ? 0 : 1, page, pageSize); - while (!html.Contains("\"code\":10000")) - { - Thread.Sleep(1000); - html = new ShopProductBLL().GetShopProductListData(shop, isOnline ? 0 : 1, page, pageSize); - } - totalNum = BaseRegex.GetIntJson(ref html, "total"); - - try - { - JObject jObj = JObject.Parse(html); - var jObjDataStr = jObj["data"]?["data"]?.ToString(); - if (!string.IsNullOrEmpty(jObjDataStr)) - { - var addList = JsonHelper.DeserializeJsonToList(jObjDataStr); - if (addList != null) - { - // 有关键词的过滤符合关键词 - if (productName != null && productName.Any()) - addList = addList.Where(p => productName.Any(key => p.name.Contains(key))).ToList(); - - productList.AddRange(addList); - productList = productList.DistinctBy(p => p.product_id).ToList(); - } - foreach (var prod in addList) - { - var row = dgvProduct.Rows.Cast().FirstOrDefault(r => r.Cells["colProductId"].Value.ToString() == prod.product_id.ToString()); - Invoke(new Action(() => - { - if (row == null) - { - - dgvProduct.Rows.Add( - false, - prod.product_id, - prod.name, - "获取中", - prod.discount_price / 100, - BaseClass.StampToDateTime((int)prod.create_time), - "获取中", - "获取中", - "获取中", - "获取中", - "获取中"); - - } - else - { - row.Cells["colSales"].Value = "获取中"; - row.Cells["colPrice"].Value = prod.discount_price / 100; - row.Cells["colCreateTime"].Value = BaseClass.StampToDateTime((int)prod.create_time); - row.Cells["colOrderCount"].Value = "获取中"; - row.Cells["colShowCount"].Value = "获取中"; - row.Cells["colShowPeopleCount"].Value = "获取中"; - row.Cells["colClickCount"].Value = "获取中"; - row.Cells["colClickPeopleCount"].Value = "获取中"; - } - })); - } - } - var totalPage = Math.Ceiling(totalNum / (pageSize * 1M)); - var message = "已获取:" + page + "页,共" + Math.Ceiling(totalNum / (pageSize * 1M)) + "页,在售商品获取中..."; - if (!isOnline) - message = message.Replace("在售商品获取中", "仓库商品获取中"); - Invoke(new Action(() => - { - this.statusBar.lblTaskStatus.Text = message; - this.statusBar.pgbTaskProgress.Value = page; - this.statusBar.pgbTaskProgress.Text = page + "/" + totalPage; - this.statusBar.pgbTaskProgress.Maximum = (int)totalPage; - })); - } - catch (Exception ex) - { - BaseMsgForm.ShowError("获取商品发生错误:" + ex.Message); - } - - if (page * pageSize >= totalNum) - break; - } - }); - tList.Add(t1); - - if (KJDForms.ShopForms.ShopListForm.Instance == null) - KJDForms.ShopForms.ShopListForm.Instance = new KJDForms.ShopForms.ShopListForm(); - KJDForms.ShopForms.ShopListForm.Instance.CheckShopLogin(new string[] { shop.ShopAccount }, false); - - var t2 = Task.Run(() => - { - if (shop.LoginStatus == "登录成功") - clearNoVisitorForm.GetSalesOrVisitor(this.shop); - - var rowsTemp = dgvProduct.Rows.Cast().ToList(); - rowsTemp.Reverse(); - foreach (var r in rowsTemp) - { - try - { - if (r.Cells["colPrice"].Value.ParseToDecimal() < priceMin || r.Cells["colPrice"].Value.ParseToDecimal() > priceMax - || r.Cells["colSales"].Value.ParseToDecimal() < salesMin || r.Cells["colSales"].Value.ParseToDecimal() > salesMax - || (productName?.Count > 0 && !productName.Any(n => r.Cells["colProductName"].Value.ToString().Contains(n)))) - { - Invoke(new Action(() => - { - dgvProduct.Rows.Remove(r); - })); - } - } - catch (Exception ex) - { - } - } - }); - tList.Add(t2); - t2.Wait(); - - var t3 = Task.Run(() => - { - if (shop.LoginStatus == "登录成功") - clearNoVisitorForm.GetSalesOrVisitor(this.shop, false); - }); - tList.Add(t3); - Task.WaitAll(tList.ToArray()); - - SetSalesCount(); - SetVisitorCount(); - - productList = productList.Where(p => p.discount_price / 100M >= priceMin && p.discount_price / 100M <= priceMax && p.sell_num >= salesMin && p.sell_num <= salesMax - && (productName?.Count > 0 == false || productName.Any(n => p.name.Contains(n)))).ToList(); - - Invoke(new Action(() => - { - if (clearNoVisitorForm.cancellationTokenSource.IsCancellationRequested) - { - this.statusBar.lblTaskStatus.Text = "获取中断"; - } - else - { - this.statusBar.lblTaskStatus.Text = "获取完成"; - } - this.statusBar.pgbTaskProgress.Value = 0; - this.statusBar.pgbTaskProgress.Text = 0 + "/" + 0; - this.statusBar.pgbTaskProgress.Maximum = 0; - })); - var errMsg = ""; - if (shop.LoginStatus != "登录成功") - errMsg += " 店铺掉线,请重新登录!"; - if (shop.ApiAuthStatus != "授权成功") - errMsg += " 授权过期,请重新授权!"; - ShowVisitorMessage(errMsg); - } - - public void SetSalesCount() - { - foreach (var key in dicProductSales.Keys) - { - var row = this.dgvProduct.Rows.Cast().FirstOrDefault(r => r.Cells["colProductId"].Value.ToString() == key); - if (row != null) - { - Invoke(new Action(() => - { - row.Cells["colSales"].Value = dicProductSales[key]; - })); - } - var product = this.productList.Find(p => p.product_id.ToString() == key); - if (product != null) - product.sell_num = dicProductSales[key]; - } - - foreach (DataGridViewRow row in dgvProduct.Rows) - { - if (row.Cells["colSales"].Value.ToString() == "获取中") - { - Invoke(new Action(() => - { - if (isGetProductSalesSuccess) - { - row.Cells["colSales"].Value = 0; - } - else - { - row.Cells["colSales"].Value = "获取失败"; - } - })); - } - } - if (isGetProductSalesSuccess) - { - foreach (var prod in this.productList) - { - if (prod.sell_num == null) - prod.sell_num = 0; - } - } - } - - public void SetVisitorCount() - { - foreach (DouTradeIndexListInfo indexList in this.productTradeIndexList) - { - var row = this.dgvProduct.Rows.Cast().FirstOrDefault(r => r.Cells["colProductId"].Value.ToString() == indexList.product_id); - if (row != null) - { - Invoke(new Action(() => - { - row.Cells["colOrderCount"].Value = indexList.pay_cnt.Replace(",", "").ParseToInt(); - row.Cells["colShowCount"].Value = indexList.dh_product_show_pv.Replace(",", "").ParseToInt(); - row.Cells["colShowPeopleCount"].Value = indexList.dh_product_show_uv.Replace(",", "").ParseToInt(); - row.Cells["colClickCount"].Value = indexList.dh_product_click_pv.Replace(",", "").ParseToInt(); - row.Cells["colClickPeopleCount"].Value = indexList.dh_product_click_uv.Replace(",", "").ParseToInt(); - })); - } - - var product = this.productList.Find(p => p.product_id.ToString() == indexList.product_id); - if (product != null) - { - product.order_count = indexList.pay_cnt.Replace(",", "").ParseToInt(); - product.show_count = indexList.dh_product_show_pv.Replace(",", "").ParseToInt(); - product.show_people_count = indexList.dh_product_show_uv.Replace(",", "").ParseToInt(); - product.click_count = indexList.dh_product_click_pv.Replace(",", "").ParseToInt(); - product.click_people_count = indexList.dh_product_click_uv.Replace(",", "").ParseToInt(); - } - } - - foreach (DataGridViewRow row in dgvProduct.Rows) - { - if (row.Cells["colOrderCount"].Value.ToString() == "获取中") - { - Invoke(new Action(() => - { - if (isGetProductVisitorSuccess) - { - row.Cells["colOrderCount"].Value = 0; - row.Cells["colShowCount"].Value = 0; - row.Cells["colShowPeopleCount"].Value = 0; - row.Cells["colClickCount"].Value = 0; - row.Cells["colClickPeopleCount"].Value = 0; - } - else - { - row.Cells["colOrderCount"].Value = "获取失败"; - row.Cells["colShowCount"].Value = "获取失败"; - row.Cells["colShowPeopleCount"].Value = "获取失败"; - row.Cells["colClickCount"].Value = "获取失败"; - row.Cells["colClickPeopleCount"].Value = "获取失败"; - } - })); - } - } - if (isGetProductVisitorSuccess) - { - foreach (var prod in this.productList) - { - if (prod.order_count == null) - { - prod.order_count = 0; - prod.show_count = 0; - prod.show_people_count = 0; - prod.click_count = 0; - prod.click_people_count = 0; - } - } - } - } - - public void ShowVisitorMessage(string msg) - { - Invoke(new Action(() => { this.label1.Text = msg; })); - } - - public void OffLineProduct(bool skipSale = true, int days = 0, int minShowCount = 1, int minShowPeopleCount = 1, int minOrderCount = 1, - int minClickCount = 1, int minClickPeopleTime = 1, int operateCount = 500) - { - int i = 0; - var rows = this.dgvProduct.Rows.Cast().ToList(); - foreach (DataGridViewRow row in rows) - { - if (clearNoVisitorForm.cancellationTokenSource.IsCancellationRequested) - break; - - var product = productList.FirstOrDefault(p => p.product_id.ToString() == row.Cells["colProductId"].Value.ToString()); - if (product == null) - continue; - - bool isContinue = false; - if (skipSale && product.sell_num > 0) - isContinue = true; - if (days > 0 && product.create_time > BaseClass.DateTimeToTimestampSeconds(DateTime.Now.Date.AddDays(0 - days))) - isContinue = true; - if (product.order_count >= minOrderCount) - isContinue = true; - if (product.show_count >= minShowCount || product.show_people_count >= minShowPeopleCount) - isContinue = true; - if (product.click_count >= minClickCount || product.click_people_count >= minClickPeopleTime) - isContinue = true; - if (product.sell_num == null || product.order_count == null || product.click_count == null) - isContinue = true; - - if (isContinue) - { - Invoke(new Action(() => { row.Cells["colMessage"].Value = "跳过"; })); - continue; - } - - i++; - if (i > operateCount) - break; - - Invoke(new Action(() => - { - this.statusBar.lblTaskStatus.Text = "正在下架商品"; - this.statusBar.pgbTaskProgress.Value = operateCount; - this.statusBar.pgbTaskProgress.Text = i + "/" + operateCount; - this.statusBar.pgbTaskProgress.Maximum = operateCount; - })); - - var result = new ShopProductBLL().OffSaleProduct(shop, product.product_id.ToString()); - if (result.Contains("\"code\":10000")) - Invoke(new Action(() => { row.Cells["colMessage"].Value = "下架成功"; })); - else - Invoke(new Action(() => { row.Cells["colMessage"].Value = "下架失败:" + BaseRegex.GetStringJson(ref result, "sub_msg"); })); - } - - Invoke(new Action(() => - { - if (clearNoVisitorForm.cancellationTokenSource.IsCancellationRequested) - { - this.statusBar.lblTaskStatus.Text = "下架中断"; - } - else - { - this.statusBar.lblTaskStatus.Text = "下架完成"; - } - this.statusBar.pgbTaskProgress.Value = 0; - this.statusBar.pgbTaskProgress.Text = 0 + "/" + 0; - this.statusBar.pgbTaskProgress.Maximum = 0; - })); - } - - public void DeleteProduct(bool skipSale = true, int days = 0, int minShowCount = 1, int minShowPeopleCount = 1, int minOrderCount = 1, - int minClickCount = 1, int minClickPeopleTime = 1, int operateCount = 500) - { - int i = 0; - var rows = this.dgvProduct.Rows.Cast().ToList(); - foreach (DataGridViewRow row in rows) - { - if (clearNoVisitorForm.cancellationTokenSource.IsCancellationRequested) - break; - - var product = productList.FirstOrDefault(p => p.product_id.ToString() == row.Cells["colProductId"].Value.ToString()); - if (product == null) - continue; - - bool isContinue = false; - if (skipSale && product.sell_num > 0) - isContinue = true; - if (days > 0 && product.create_time > BaseClass.DateTimeToTimestampSeconds(DateTime.Now.Date.AddDays(0 - days))) - isContinue = true; - if (product.order_count >= minOrderCount) - isContinue = true; - if (product.show_count >= minShowCount || product.show_people_count >= minShowPeopleCount) - isContinue = true; - if (product.click_count >= minClickCount || product.click_people_count >= minClickPeopleTime) - isContinue = true; - if (product.sell_num == null || product.order_count == null || product.click_count == null) - isContinue = true; - - if (isContinue) - { - Invoke(new Action(() => { row.Cells["colMessage"].Value = "跳过"; })); - continue; - } - - i++; - if (i > operateCount) - break; - - Invoke(new Action(() => - { - this.statusBar.lblTaskStatus.Text = "正在删除商品"; - this.statusBar.pgbTaskProgress.Value = operateCount; - this.statusBar.pgbTaskProgress.Text = i + "/" + operateCount; - this.statusBar.pgbTaskProgress.Maximum = operateCount; - })); - - var result = new ShopProductBLL().DeleteProduct(shop, product.product_id.ToString()); - if (result.Contains("\"code\":10000")) - Invoke(new Action(() => { row.Cells["colMessage"].Value = "删除成功"; })); - else - Invoke(new Action(() => { row.Cells["colMessage"].Value = "删除失败:" + BaseRegex.GetStringJson(ref result, "sub_msg"); })); - } - - Invoke(new Action(() => - { - if (clearNoVisitorForm.cancellationTokenSource.IsCancellationRequested) - { - this.statusBar.lblTaskStatus.Text = "删除中断"; - } - else - { - this.statusBar.lblTaskStatus.Text = "删除完成"; - } - this.statusBar.pgbTaskProgress.Value = 0; - this.statusBar.pgbTaskProgress.Text = 0 + "/" + 0; - this.statusBar.pgbTaskProgress.Maximum = 0; - })); - } - - public void ClearData() - { - this.productList.Clear(); - this.productTradeIndexList.Clear(); - this.dicProductSales.Clear(); - this.dgvProduct.Rows.Clear(); - } - } -} diff --git a/TEMUKJD/KJDForms/ShopOptimizeForms/ClearNoVisitorShopForm.resx b/TEMUKJD/KJDForms/ShopOptimizeForms/ClearNoVisitorShopForm.resx deleted file mode 100644 index 5500456..0000000 --- a/TEMUKJD/KJDForms/ShopOptimizeForms/ClearNoVisitorShopForm.resx +++ /dev/null @@ -1,156 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ShopOptimizeForms/OptimizeForm.Designer.cs b/TEMUKJD/KJDForms/ShopOptimizeForms/OptimizeForm.Designer.cs deleted file mode 100644 index 839c30d..0000000 --- a/TEMUKJD/KJDForms/ShopOptimizeForms/OptimizeForm.Designer.cs +++ /dev/null @@ -1,164 +0,0 @@ -namespace TemuKJD.KJDForms.ShopOptimizeForms -{ - partial class OptimizeForm - { - /// - /// 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() - { - System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("清理无流量"); - System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("店铺优化", new System.Windows.Forms.TreeNode[] { - treeNode1}); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.tv = new TemuKJD.UserComponent.UcTreeView(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel3 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.lblName = new System.Windows.Forms.Label(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - this.panel1.SuspendLayout(); - this.panel2.SuspendLayout(); - this.SuspendLayout(); - // - // splitContainer1 - // - this.splitContainer1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - 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"; - // - // splitContainer1.Panel1 - // - this.splitContainer1.Panel1.Controls.Add(this.tv); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.panel1); - this.splitContainer1.Size = new System.Drawing.Size(934, 561); - this.splitContainer1.SplitterDistance = 140; - this.splitContainer1.SplitterWidth = 1; - this.splitContainer1.TabIndex = 7; - // - // tv - // - this.tv.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(251)))), ((int)(((byte)(251)))), ((int)(((byte)(251))))); - this.tv.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.tv.ChildNodeSelectedBgColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); - this.tv.Cursor = System.Windows.Forms.Cursors.Hand; - this.tv.Dock = System.Windows.Forms.DockStyle.Fill; - this.tv.DrawMode = System.Windows.Forms.TreeViewDrawMode.OwnerDrawAll; - this.tv.ExpandButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.tv.FullRowSelect = true; - this.tv.GroupBgColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249))))); - this.tv.GroupFont = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.tv.GroupTitleColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80))))); - this.tv.HideCollapsedGroup = false; - this.tv.ItemHeight = 32; - this.tv.Location = new System.Drawing.Point(0, 0); - this.tv.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); - this.tv.Name = "tv"; - treeNode1.Name = "清理无流量"; - treeNode1.Text = "清理无流量"; - treeNode2.Name = "店铺优化"; - treeNode2.Text = "店铺优化"; - this.tv.Nodes.AddRange(new System.Windows.Forms.TreeNode[] { - treeNode2}); - this.tv.OverForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); - this.tv.Size = new System.Drawing.Size(140, 561); - this.tv.TabIndex = 4; - this.tv.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.tv_AfterSelect); - // - // panel1 - // - this.panel1.BackColor = System.Drawing.Color.White; - this.panel1.Controls.Add(this.panel3); - this.panel1.Controls.Add(this.panel2); - this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel1.Location = new System.Drawing.Point(0, 0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(793, 561); - this.panel1.TabIndex = 5; - // - // panel3 - // - this.panel3.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel3.Location = new System.Drawing.Point(0, 28); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(793, 533); - this.panel3.TabIndex = 1; - // - // panel2 - // - this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(244)))), ((int)(((byte)(244))))); - this.panel2.Controls.Add(this.lblName); - this.panel2.Dock = System.Windows.Forms.DockStyle.Top; - this.panel2.Location = new System.Drawing.Point(0, 0); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(793, 28); - this.panel2.TabIndex = 0; - // - // lblName - // - this.lblName.AutoSize = true; - this.lblName.Location = new System.Drawing.Point(5, 6); - this.lblName.Name = "lblName"; - this.lblName.Size = new System.Drawing.Size(57, 17); - this.lblName.TabIndex = 0; - this.lblName.Text = "lblName"; - // - // OptimizeForm - // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.ClientSize = new System.Drawing.Size(934, 561); - this.Controls.Add(this.splitContainer1); - this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Name = "OptimizeForm"; - this.Text = "OptimizeForm"; - this.Load += new System.EventHandler(this.OptimizeForm_Load); - this.splitContainer1.Panel1.ResumeLayout(false); - this.splitContainer1.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); - this.splitContainer1.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel2.PerformLayout(); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.SplitContainer splitContainer1; - private UserComponent.UcTreeView tv; - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Label lblName; - } -} \ No newline at end of file diff --git a/TEMUKJD/KJDForms/ShopOptimizeForms/OptimizeForm.cs b/TEMUKJD/KJDForms/ShopOptimizeForms/OptimizeForm.cs deleted file mode 100644 index f475910..0000000 --- a/TEMUKJD/KJDForms/ShopOptimizeForms/OptimizeForm.cs +++ /dev/null @@ -1,107 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; -using TemuKJD.KJDForms.BaseForms; - -namespace TemuKJD.KJDForms.ShopOptimizeForms -{ - public partial class OptimizeForm : BaseForm - { - public Lazy clearNoVisitorForm = new Lazy(); - public OptimizeForm() - { - InitializeComponent(); - } - - private void OptimizeForm_Load(object sender, EventArgs e) - { - try - { - tv.SelectedNode = tv.Nodes[0].Nodes[0]; - tv.ExpandGroup(tv.Nodes[0].Name); - } - catch { } - } - - - - /// - /// 显示隐藏层 - /// - /// - private void SetForm(Form f) - { - if (f == null) - { - foreach (Control form in panel3.Controls) - { - form.Visible = false; - if (form is Form) - { - panel3.Controls.Remove(form as Form); - } - } - return; - } - - bool had = false; - string sCurrentFormName = f.Name; - for (int i = 0; i < panel3.Controls.Count; i++) - { - if (sCurrentFormName == panel3.Controls[i].Name) - { - had = true; - panel3.Controls[i].Visible = true; - } - else - { - panel3.Controls[i].Visible = false; - } - } - if (had) - { - f = null; - return; - } - f.TopLevel = false; - f.Left = 0; - f.Top = 0; - f.FormBorderStyle = FormBorderStyle.None; - panel3.Controls.Add(f); - f.AutoSize = true; - f.Dock = DockStyle.Fill; - f.Show(); - } - - private void tv_AfterSelect(object sender, TreeViewEventArgs e) - { - MainForm.sCurrentModule = e.Node.Name; - this.lblName.Text = e.Node.Text; - // 如果是一级菜单,不做任何动作 - if (e.Node.Parent == null) return; - new Thread(() => - { - Thread.Sleep(200); - Invoke(new Action(() => - { - switch (e.Node.Name) - { - case "解除限制": - SetForm(clearNoVisitorForm.Value); - break; - //case "商品管理": - // SetForm(shopProductForm.Value); - // break; - } - })); - }).Start(); - } - } -} diff --git a/TEMUKJD/KJDForms/ShopOptimizeForms/OptimizeForm.resx b/TEMUKJD/KJDForms/ShopOptimizeForms/OptimizeForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/TEMUKJD/KJDForms/ShopOptimizeForms/OptimizeForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/TEMUKJD/MainForm.cs b/TEMUKJD/MainForm.cs index 6de9995..9d00f54 100644 --- a/TEMUKJD/MainForm.cs +++ b/TEMUKJD/MainForm.cs @@ -986,57 +986,7 @@ namespace TemuKJD Thread.Sleep(500); } } - - foreach (var shop in GlobalConfig.ShopLoginList) - { - if (shop.LoginStatus != "登录成功") - continue; - - var cookie = shop.Cookies == null ? "" : shop.Cookies; - CEFBrowser.DeleteCookie(webBrowser.RequestContext.GetCookieManager(null)); - var t = CEFBrowser.SetCookieAsync("jinritemai.com", cookie, webBrowser.RequestContext.GetCookieManager(null)); - t.Wait(2000); - webBrowser.Load("https://fxg.jinritemai.com/ffa/grs/health-center/manage"); - while (webBrowser.IsLoading) - { - Thread.Sleep(500); - } - Thread.Sleep(5000); - var jsStr = CommissionForm.clickJsElementStr + - "function clickProduct() {\r\n" + - " var elem = getElement('商品类', document.body);\r\n" + - " if (elem) elem.click(); return 'success';\r\n" + - " return 'no_element';\r\n" + - "}\r\n" + - "clickProduct();\r\n"; - var t1 = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - t1.Wait(); - Thread.Sleep(10000); - - // 读取过全部违规数据的不再读取 - if (dicLastGetFullViolateTime.ContainsKey(shop.ShopId) && dicLastGetFullViolateTime[shop.ShopId] > DateTime.Now.AddDays(-3000)) - continue; - - for (int i = 2; i < 101; i++) - { - //jsStr = "ant-pagination-item ant-pagination-item-2"; - jsStr = "function clickPage(p) {\r\n" + - " if (document.body.innerHTML.indexOf('ant-pagination-item ant-pagination-item-' + p) === -1) return 'no_element';\r\n" + - " var elem = document.getElementsByClassName('ant-pagination-item ant-pagination-item-' + p)[0];\r\n" + - " if (elem) elem.click(); return 'success';\r\n" + - " return 'no_element';\r\n" + - "}\r\n" + - "clickPage(" + i + ");\r\n"; - t1 = webBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(jsStr); - t1.Wait(1000); - Thread.Sleep(10000); - - if (t1.Result.Result?.ToString() != "success") - break; - } - dicLastGetFullViolateTime[shop.ShopId] = DateTime.Now; - NaiBa.Util.Helper.ConfigHelper.SaveConfig>("last_get_full_violate_time", dicLastGetFullViolateTime); - } + // 加载一个cef以在后台完成某些任务(原后台违规获取现在作废删除) } Dictionary dicLastGetFullViolateTime = new Dictionary(); @@ -1074,12 +1024,12 @@ namespace TemuKJD if (!ViolateRuleParam.LstViolateRuleName.Contains(violateInfo?.rule_name?.Trim())) { - ViolateManageForm.UpdateViolateRuleNameList(violateInfo); + //ViolateManageForm.UpdateViolateRuleNameList(violateInfo); } if (string.IsNullOrEmpty(violateInfo.up_product_id)) { // 获取违规商品的上家ID - ViolateManageForm.GetViolateUpId(violateInfo); + //ViolateManageForm.GetViolateUpId(violateInfo); } if (violateInfo.up_product_id_number > 0) violateListTemp.Add(violateInfo); @@ -1088,7 +1038,7 @@ namespace TemuKJD foreach (var violateInfo in violateListTemp) { // 将上家商品违规信息保存到服务端 - ViolateManageForm.AddViolateToServer(violateInfo); + //ViolateManageForm.AddViolateToServer(violateInfo); } if (violateList.Count > 0) { diff --git a/TEMUKJD/StartUp.cs b/TEMUKJD/StartUp.cs index 91160a5..1d97f60 100644 --- a/TEMUKJD/StartUp.cs +++ b/TEMUKJD/StartUp.cs @@ -55,7 +55,7 @@ namespace TemuKJD #endregion #region 读取上传违规词 - FilterForm.LoadFilterWord(); + //FilterForm.LoadFilterWord(); #endregion #region 数据净化参数