diff --git a/AllBase/AllBase.csproj b/AllBase/AllBase.csproj
index 38de1f3..a0c9706 100644
--- a/AllBase/AllBase.csproj
+++ b/AllBase/AllBase.csproj
@@ -189,6 +189,7 @@
+
diff --git a/AllBase/BaseClass.cs b/AllBase/BaseClass.cs
index f5e4347..bad4028 100644
--- a/AllBase/BaseClass.cs
+++ b/AllBase/BaseClass.cs
@@ -27,7 +27,7 @@ namespace AllBase
///
/// 版本ID
///
- public static int VersionCount = 691;
+ public static int VersionCount = 696;
//public static int VersionCount = 613;
///
diff --git a/AllBase/Model/Result/JitCardCodeInfo.cs b/AllBase/Model/Result/JitCardCodeInfo.cs
new file mode 100644
index 0000000..3b75547
--- /dev/null
+++ b/AllBase/Model/Result/JitCardCodeInfo.cs
@@ -0,0 +1,30 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AllBase.Model.Result
+{
+ public class JitCardCodeInfo
+ {
+ public int id { get; set; }
+ public string card_code_id { get; set; }
+ ///
+ /// 创建时间
+ ///
+ public DateTime add_time { get; set; }
+ ///
+ /// 激活时间
+ ///
+ public DateTime? active_time { get; set; }
+ ///
+ /// 过期时间
+ ///
+ public DateTime? expire_time { get; set; }
+ public string shop_id { get; set; }
+ public string shop_account { get; set; }
+ public string notes { get; set; }
+
+ }
+}
diff --git a/AllBase/Model/Result/KJDDBProduct.cs b/AllBase/Model/Result/KJDDBProduct.cs
index 27f30ea..bb51b86 100644
--- a/AllBase/Model/Result/KJDDBProduct.cs
+++ b/AllBase/Model/Result/KJDDBProduct.cs
@@ -19,6 +19,9 @@ namespace AllBase.Model.Result
public string cat_id { get; set; }
public string main_cat_name { get; set; }
public string cat_name { get; set; }
+ ///
+ /// 拼多多母店价格
+ ///
public string price_text { get; set; }
public string ext_code { get; set; }
public string product_name { get; set; }
@@ -38,11 +41,15 @@ namespace AllBase.Model.Result
public int select_count { get; set; }
public int select_total_count { get; set; }
///
- /// 采集来源 0母店采集 1前端直采
+ /// Temu 采集来源 0母店采集 1前端直采
///
public int product_get_type { get; set; }
public string head_words { get; set; }
public string end_words { get; set; }
+ ///
+ /// temu 成本价
+ ///
+ public string cost_price { get; set; }
public string fission_words { get; set; }
// 是否拼多多上传成功
diff --git a/AllBase/Model/Result/ShopLoginInfo.cs b/AllBase/Model/Result/ShopLoginInfo.cs
index c7dea57..6bae6fd 100644
--- a/AllBase/Model/Result/ShopLoginInfo.cs
+++ b/AllBase/Model/Result/ShopLoginInfo.cs
@@ -185,6 +185,8 @@ namespace AllBase.Model.Result
/// temu推广直通车登录状态
///
public string ad_login_status { get; set; }
+
+ public DateTime? jit_expire_time { get; set; }
}
public class AuthInfo
diff --git a/KJDService/KJD_WebService/BLL/KJD/ProductManage.cs b/KJDService/KJD_WebService/BLL/KJD/ProductManage.cs
index f367604..91c561e 100644
--- a/KJDService/KJD_WebService/BLL/KJD/ProductManage.cs
+++ b/KJDService/KJD_WebService/BLL/KJD/ProductManage.cs
@@ -197,31 +197,32 @@ namespace KJD_Web.BLL
else
{
if (isDetail)
- sql = "select * from kjd.product p where p.is_del=0";
+ sql = "SELECT * from kjd.product p where p.is_del=0";
else if (string.IsNullOrEmpty(get_select_count))
- sql = "select p.id,p.spu_id,p.skc_id,p.cat_id,p.cat_name,p.ext_code,p.product_name,p.main_img,p.notes,p.group," +
- "p.add_time,p.mdy_time,p.select_total_count,p.fission_words,p.head_words,p.end_words," +
- "p.product_get_type from kjd.product p where p.is_del=0";
- else
sql = "SELECT p.id,p.spu_id,p.skc_id,p.cat_id,p.cat_name,p.ext_code,p.product_name,p.main_img,p.notes,p.group," +
- "p.add_time,p.mdy_time,p.select_total_count,p.fission_words,p.head_words,p.end_words,p.product_get_type" +
- ",COUNT(s.id) AS select_count " +
- "FROM kjd.product p LEFT JOIN kjd.product_select s ON p.id=s.out_product_id AND s.shop_id='" + select_shop_id + "' " +
- "WHERE p.is_del=0";
+ "p.add_time,p.mdy_time,p.select_total_count,p.fission_words,p.head_words,p.end_words,p.cost_price,p.product_get_type" +
+ " FROM kjd.product p" +
+ " WHERE p.is_del=0";
+ else // 统计单店认领次数
+ sql = "SELECT p.id,p.spu_id,p.skc_id,p.cat_id,p.cat_name,p.ext_code,p.product_name,p.main_img,p.notes,p.group," +
+ "p.add_time,p.mdy_time,p.select_total_count,p.fission_words,p.head_words,p.end_words,p.cost_price,p.product_get_type" +
+ ",COUNT(s.id) AS select_count" +
+ " FROM kjd.product p LEFT JOIN kjd.product_select s ON p.id=s.out_product_id AND s.shop_id='" + select_shop_id + "'" +
+ " WHERE p.is_del=0";
if (!isDetail && product_get_type != "all") // 详情必须从列表页面进入,不用限制
- sql += " and p.product_get_type=" + product_get_type;
+ sql += " AND p.product_get_type=" + product_get_type;
//where子句
sql += where;
if (!isDetail && !string.IsNullOrEmpty(get_select_count))
- sql += " group by p.id";
+ sql += " GROUP BY p.id";
if (sort_field == "select_total_count")
- sql += " order by p.select_total_count desc, p.id desc";
+ sql += " ORDER BY p.select_total_count desc, p.id desc";
else
- sql += " order by p.id desc";
- sql += " limit " + Math.Max(page - 1, 0) * page_size + "," + page_size;
+ sql += " ORDER BY p.id desc";
+ sql += " LIMIT " + Math.Max(page - 1, 0) * page_size + "," + page_size;
dt = mySql.ExecuteDataTable(sql);
}
@@ -250,9 +251,10 @@ namespace KJD_Web.BLL
notes = row["notes"].ToString(),
group = row["group"].ToString(),
select_total_count = row["select_total_count"].ParseToInt(),
- end_words = row["end_words"].ParseToString(),
fission_words = row["fission_words"].ParseToString(),
head_words = row["head_words"].ParseToString(),
+ end_words = row["end_words"].ParseToString(),
+ cost_price = row["cost_price"].ParseToString(),
product_get_type = row["product_get_type"].ParseToInt(), //0母店采集 1前端直采
};
if (isDetail)
@@ -369,6 +371,7 @@ namespace KJD_Web.BLL
string fission_words = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "fission_words"))?.Replace("'", "\\'");
string head_words = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "head_words"))?.Replace("'", "\\'");
string end_words = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "end_words"))?.Replace("'", "\\'");
+ string cost_price = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "cost_price"))?.Replace("'", "\\'");
string product_json = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "product_json"))?.Replace("'", "\\'");
string size_json = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "size_json"))?.Replace("'", "\\'");
string original_json = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "original_json"))?.Replace("'", "\\'");
@@ -395,6 +398,8 @@ namespace KJD_Web.BLL
sql += " head_words='" + head_words + "',";
if (end_words != null)
sql += " end_words='" + end_words + "',";
+ if (cost_price != null)
+ sql += " cost_price='" + cost_price + "',";
if (product_json != null)
sql += " product_json='" + product_json + "',";
if (size_json != null)
@@ -1096,14 +1101,22 @@ namespace KJD_Web.BLL
string sql = "select count(id) from kjd.sku_img s where 1=1";
string where = "";
+ //if (!string.IsNullOrWhiteSpace(search_db_id))
+ // where += " and s.id like '%" + search_db_id + "%'";
+ //if (!string.IsNullOrWhiteSpace(search_product_id))
+ // where += " and s.product_id like '%" + search_product_id + "%'";
+ //if (!string.IsNullOrWhiteSpace(search_spec_id))
+ // where += " and s.spec_id like '%" + search_spec_id + "%'";
+ //if (!string.IsNullOrWhiteSpace(search_original_img_url))
+ // where += " and s.original_img_url like '%" + search_original_img_url + "%'";
if (!string.IsNullOrWhiteSpace(search_db_id))
- where += " and s.id like '%" + search_db_id + "%'";
+ where += " and s.id = '" + search_db_id + "'";
if (!string.IsNullOrWhiteSpace(search_product_id))
- where += " and s.product_id like '%" + search_product_id + "%'";
+ where += " and s.product_id = '" + search_product_id + "'";
if (!string.IsNullOrWhiteSpace(search_spec_id))
- where += " and s.spec_id like '%" + search_spec_id + "%'";
+ where += " and s.spec_id = '" + search_spec_id + "'";
if (!string.IsNullOrWhiteSpace(search_original_img_url))
- where += " and s.original_img_url like '%" + search_original_img_url + "%'";
+ where += " and s.original_img_url = '" + search_original_img_url + "'";
if (!string.IsNullOrEmpty(search_db_ids))
where += " and s.id in (" + search_db_ids + ")";
sql += where;
diff --git a/KJDService/KJD_WebService/BLL/KJD/ShopManage.cs b/KJDService/KJD_WebService/BLL/KJD/ShopManage.cs
index e40caf9..6d98c0a 100644
--- a/KJDService/KJD_WebService/BLL/KJD/ShopManage.cs
+++ b/KJDService/KJD_WebService/BLL/KJD/ShopManage.cs
@@ -8,6 +8,7 @@ using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Linq;
+using System.Text;
using System.Web;
using System.Web.Security;
@@ -94,7 +95,10 @@ namespace KJD_Web.BLL
}
else
{
- sql = "SELECT s.*,c.add_product_remaining add_remaining,c.add_product_month add_month FROM kjd.shop s LEFT JOIN kjd.shop_add_prod_count c ON s.shop_id=c.shop_id WHERE 1=1";
+ sql = "SELECT s.*,c.add_product_remaining add_remaining,c.add_product_month add_month,cc.jit_expire_time FROM kjd.shop s" +
+ " LEFT JOIN kjd.shop_add_prod_count c ON s.shop_id=c.shop_id" +
+ " LEFT JOIN (SELECT shop_id, MAX(expire_time) as jit_expire_time FROM kjd.card_code GROUP BY shop_id) cc ON s.shop_id=cc.shop_id" +
+ " WHERE 1=1";
sql += where; // where 子句
@@ -131,6 +135,7 @@ namespace KJD_Web.BLL
ad_login_status = row["ad_login_status"].ParseToString(),
ad_seller_unique_id = row["ad_seller_unique_id"].ParseToString(),
ad_url = row["ad_url"].ParseToString(),
+ jit_expire_time = row["jit_expire_time"].IsNullOrEmpty() ? new DateTime?() : Convert.ToDateTime(row["jit_expire_time"]),
};
shopList.Add(shop);
}
@@ -807,5 +812,220 @@ namespace KJD_Web.BLL
}
return "{\"code\":19999,\"msg\":\"输入为空\"}";
}
+
+ public string GetShopCardCodeList(string inputData)
+ {
+ if (!string.IsNullOrEmpty(inputData))
+ {
+ var user_name = RegexUtils.GetStringQuery(ref inputData, "user_name");
+ var password = RegexUtils.GetStringQuery(ref inputData, "password");
+ var search_card_code_id = RegexUtils.GetStringQuery(ref inputData, "search_card_code_id");
+ var search_shop_id = RegexUtils.GetStringQuery(ref inputData, "search_shop_id");
+ var search_shop_name = RegexUtils.GetStringQuery(ref inputData, "search_shop_name");
+ var search_notes = RegexUtils.GetStringQuery(ref inputData, "search_notes");
+ var card_code_ids = RegexUtils.GetStringQuery(ref inputData, "card_code_ids")?.Replace("'", "");
+ var sort_field = RegexUtils.GetStringQuery(ref inputData, "sort_field")?.Replace("'", "");
+ if (!string.IsNullOrWhiteSpace(card_code_ids))
+ {
+ List shopIdLst = card_code_ids.Split(',').ToList();
+ card_code_ids = "'" + string.Join("','", shopIdLst) + "'";
+ }
+ var shop_ids = RegexUtils.GetStringQuery(ref inputData, "shop_ids")?.Replace("'", "");
+ if (!string.IsNullOrWhiteSpace(shop_ids))
+ {
+ List shopIdLst = shop_ids.Split(',').ToList();
+ shop_ids = "'" + string.Join("','", shopIdLst) + "'";
+ }
+ var shop_names = RegexUtils.GetStringQuery(ref inputData, "shop_names");
+ if (!string.IsNullOrWhiteSpace(shop_names))
+ {
+ List shopNameLst = shop_names.Split(',').ToList();
+ shop_names = "'" + string.Join("','", shopNameLst) + "'";
+ }
+ var list_notes = RegexUtils.GetStringQuery(ref inputData, "list_notes");
+ if (!string.IsNullOrWhiteSpace(list_notes))
+ {
+ List notesLst = list_notes.Split(',').ToList();
+ list_notes = "'" + string.Join("','", notesLst) + "'";
+ }
+
+ var page = RegexUtils.GetStringQuery(ref inputData, "page").ParseToInt();
+ var page_size = RegexUtils.GetStringQuery(ref inputData, "page_size").ParseToInt();
+
+ if (page_size == 0)
+ page_size = 50;
+ int r2 = 0;
+ int.TryParse(RegexUtils.GetStringQuery(ref inputData, "r2"), out r2);
+
+ string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
+ MysqlUtils mySql = new MysqlUtils(conn);
+
+ string sql = "SELECT COUNT(s.id) FROM kjd.card_code s WHERE 1=1";
+
+ //where子句
+ string where = "";
+ if (!string.IsNullOrWhiteSpace(search_card_code_id))
+ where += " and s.card_code_id like '%" + search_card_code_id + "%'";
+ if (!string.IsNullOrWhiteSpace(search_shop_id))
+ where += " and s.shop_id like '%" + search_shop_id + "%'";
+ if (!string.IsNullOrWhiteSpace(search_shop_name))
+ where += " and s.shop_account like '%" + search_shop_name + "%'";
+ if (!string.IsNullOrWhiteSpace(search_notes))
+ where += " and s.notes like '%" + search_notes + "%'";
+ if (!string.IsNullOrWhiteSpace(card_code_ids))
+ where += " and s.card_code_id in (" + card_code_ids + ")";
+ if (!string.IsNullOrWhiteSpace(shop_ids))
+ where += " and s.shop_id in (" + shop_ids + ")";
+ if (!string.IsNullOrWhiteSpace(shop_names))
+ where += " and s.shop_account in (" + shop_names + ")";
+ if (!string.IsNullOrWhiteSpace(list_notes))
+ where += " and s.notes in (" + list_notes + ")";
+ sql += where;
+
+ var count = mySql.ExecuteRowCount(sql);
+
+ DataTable dt;
+ if (count == 0)
+ {
+ dt = new DataTable();
+ }
+ else
+ {
+ sql = "SELECT s.* FROM kjd.card_code s WHERE 1=1";
+
+ sql += where; // where 子句
+
+ // 排序
+ if (sort_field == "expire_time")
+ sql += " ORDER BY s.expire_time DESC";
+ else
+ sql += " ORDER BY s.id DESC";
+ sql += " LIMIT " + Math.Max(page - 1, 0) * page_size + "," + page_size;
+ dt = mySql.ExecuteDataTable(sql);
+ }
+
+ mySql.Close();
+ if (dt != null)
+ {
+ List cardCodeList = new List();
+ foreach (DataRow row in dt.Rows)
+ {
+ JitCardCodeParam cardCode = new JitCardCodeParam
+ {
+ id = Convert.ToInt32(row["id"]),
+ shop_id = row["shop_id"].ToString(),
+ shop_account = row["shop_account"].ToString(),
+ add_time = (DateTime)row["add_time"],
+ active_time = row["active_time"].IsNullOrEmpty() ? new DateTime?() : Convert.ToDateTime(row["active_time"]),
+ expire_time = row["expire_time"].IsNullOrEmpty() ? new DateTime?() : Convert.ToDateTime(row["expire_time"]),
+ card_code_id = row["card_code_id"].ToString(),
+ notes = row["notes"].ToString(),
+ };
+ cardCodeList.Add(cardCode);
+ }
+ var data = JsonUtils.SerializerObjectToString(cardCodeList);
+
+
+ return "{\"code\":200,\"msg\":\"success\",\"data\":" + data + ",\"count\":" + count + "}";
+ }
+ }
+ return "{\"code\":19999,\"msg\":\"未知错误\"}";
+ }
+
+ public string CreateShopCardCode(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("'", "\\'");
+ if (string.IsNullOrEmpty(user_name))
+ {
+ return "{\"code\":50001,\"msg\":\"没有用户名\"}";
+ }
+
+ var create_count = RegexUtils.GetStringQuery(ref inputData, "create_count")?.Replace("'", "\\'");
+
+ if (string.IsNullOrEmpty(create_count))
+ {
+ return "{\"code\":50002,\"msg\":\"未选择生成数量\"}";
+ }
+
+ string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
+ MysqlUtils mySql = new MysqlUtils(conn);
+ string sql = "insert into kjd.card_code (card_code_id) values ";
+ Random random = new Random(Guid.NewGuid().GetHashCode());
+ for (int i = 0; i < create_count.ParseToInt(); i++)
+ {
+ sql += "('" + GenerateCardCode(random, 16) + "'),";
+ }
+ sql = sql.TrimEnd(',') + ";";
+ 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 DelShopCardCode(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("'", "\\'");
+ if (string.IsNullOrEmpty(user_name))
+ {
+ return "{\"code\":50001,\"msg\":\"没有用户名\"}";
+ }
+
+ var del_ids = RegexUtils.GetStringQuery(ref inputData, "del_ids")?.Replace("'", "\\'");
+
+ if (string.IsNullOrEmpty(del_ids))
+ {
+ return "{\"code\":50002,\"msg\":\"未选择删除数据\"}";
+ }
+
+ string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
+ MysqlUtils mySql = new MysqlUtils(conn);
+ string sql = "delete from kjd.card_code where id in (" + del_ids + ");";
+ 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\":\"输入为空\"}";
+ }
+
+ private static readonly char[] chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".ToCharArray(); // 增加特殊字符
+
+ public static string GenerateCardCode(Random random, int length)
+ {
+ StringBuilder result = new StringBuilder(length);
+ for (int i = 0; i < length; i++)
+ {
+ result.Append(chars[random.Next(chars.Length)]);
+ }
+ return result.ToString();
+ }
}
}
\ No newline at end of file
diff --git a/KJDService/KJD_WebService/KJD_WebService.csproj b/KJDService/KJD_WebService/KJD_WebService.csproj
index d7af145..c48d36e 100644
--- a/KJDService/KJD_WebService/KJD_WebService.csproj
+++ b/KJDService/KJD_WebService/KJD_WebService.csproj
@@ -112,6 +112,7 @@
+
diff --git a/KJDService/KJD_WebService/KJD_WebService.csproj.user b/KJDService/KJD_WebService/KJD_WebService.csproj.user
index a48a5b1..4bcdc04 100644
--- a/KJDService/KJD_WebService/KJD_WebService.csproj.user
+++ b/KJDService/KJD_WebService/KJD_WebService.csproj.user
@@ -1,4 +1,4 @@
-
+
true
@@ -8,7 +8,7 @@
- Debug|Any CPU
+ Release|Any CPU
ShowAllFiles
diff --git a/KJDService/KJD_WebService/Model/DBProductResultParam.cs b/KJDService/KJD_WebService/Model/DBProductResultParam.cs
index 0652682..48c49be 100644
--- a/KJDService/KJD_WebService/Model/DBProductResultParam.cs
+++ b/KJDService/KJD_WebService/Model/DBProductResultParam.cs
@@ -18,7 +18,14 @@ namespace KJD_Web.Model
public string cat_id { get; set; }
public string main_cat_name { get; set; }
public string cat_name { get; set; }
+ ///
+ /// 母店价格
+ ///
public string price_text { get; set; }
+ ///
+ /// 成本价格
+ ///
+ public string cost_price { get; set; }
public string change_cat_id { get; set; }
public string change_cat_name { get; set; }
public string ext_code { get; set; }
diff --git a/KJDService/KJD_WebService/Model/ShopModel/JitCardCodeParam.cs b/KJDService/KJD_WebService/Model/ShopModel/JitCardCodeParam.cs
new file mode 100644
index 0000000..3ac743d
--- /dev/null
+++ b/KJDService/KJD_WebService/Model/ShopModel/JitCardCodeParam.cs
@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+
+namespace KJD_Web.Model.ShopModel
+{
+ public class JitCardCodeParam
+ {
+ public int id { get; set; }
+ public string card_code_id { get; set; }
+ ///
+ /// 创建时间
+ ///
+ public DateTime add_time { get; set; }
+ ///
+ /// 激活时间
+ ///
+ public DateTime? active_time { get; set; }
+ ///
+ /// 过期时间
+ ///
+ public DateTime? expire_time { get; set; }
+ public string shop_id { get; set; }
+ public string shop_account { get; set; }
+ public string notes { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/KJDService/KJD_WebService/Model/ShopModel/ShopParam.cs b/KJDService/KJD_WebService/Model/ShopModel/ShopParam.cs
index 52dfd90..7e81ebe 100644
--- a/KJDService/KJD_WebService/Model/ShopModel/ShopParam.cs
+++ b/KJDService/KJD_WebService/Model/ShopModel/ShopParam.cs
@@ -52,5 +52,6 @@ namespace KJD_Web.Model.ShopModel
/// temu推广直通车登录状态
///
public string ad_login_status { get; set; }
+ public DateTime? jit_expire_time { get; set; }
}
}
\ No newline at end of file
diff --git a/KJDService/KJD_WebService/ShopService.asmx.cs b/KJDService/KJD_WebService/ShopService.asmx.cs
index 9dbd786..6c56c87 100644
--- a/KJDService/KJD_WebService/ShopService.asmx.cs
+++ b/KJDService/KJD_WebService/ShopService.asmx.cs
@@ -216,5 +216,43 @@ namespace KJD_Web
Context.Response.Write(result);
Context.Response.End();
}
+
+
+
+ [WebMethod]
+ public void get_shop_card_code_list()
+ {
+ string jsontext = GetRequestJsonString();
+
+ var result = jsontext;
+ result = new ShopManage().GetShopCardCodeList(jsontext);
+
+ Context.Response.Write(result);
+ Context.Response.End();
+ }
+
+ [WebMethod]
+ public void create_shop_card_code()
+ {
+ string jsontext = GetRequestJsonString();
+
+ var result = jsontext;
+ result = new ShopManage().CreateShopCardCode(jsontext);
+
+ Context.Response.Write(result);
+ Context.Response.End();
+ }
+
+ [WebMethod]
+ public void del_shop_card_code()
+ {
+ string jsontext = GetRequestJsonString();
+
+ var result = jsontext;
+ result = new ShopManage().DelShopCardCode(jsontext);
+
+ Context.Response.Write(result);
+ Context.Response.End();
+ }
}
}
diff --git a/TEMUKJD/BLL/HttpResponseBLL.cs b/TEMUKJD/BLL/HttpResponseBLL.cs
index 80fcdc8..1072ef2 100644
--- a/TEMUKJD/BLL/HttpResponseBLL.cs
+++ b/TEMUKJD/BLL/HttpResponseBLL.cs
@@ -319,19 +319,22 @@ namespace TemuKJD.BLL
}
cookies = cookies.Trim().TrimEnd(';');
- //var cookiesArr = shop.Cookies2.Replace("\\", "").Split(';').Select(s => s.Trim());
- //foreach (var cook in cookiesArr)
- //{
- // if (("; " + cookies).Contains("; " + cook))
- // continue;
+ if (_url.Contains("https://ads.temu.com/api/v1/coconut/ad/ads_detail"))
+ {
+ var cookiesArr = shop.Cookies2.Replace("\\", "").Split(';').Select(s => s.Trim());
+ foreach (var cook in cookiesArr)
+ {
+ if (("; " + cookies).Contains("; " + cook))
+ continue;
- // if (cook.StartsWith("mallid"))
- // cookies += "mallid=" + shop.ShopId + "; ";
- // else if (cook.StartsWith("MALL_ID"))
- // cookies += "MALL_ID=" + shop.ShopId + "; ";
- // else
- // cookies += cook + "; ";
- //}
+ if (cook.StartsWith("mallid"))
+ cookies += "mallid=" + shop.ShopId + "; ";
+ else if (cook.StartsWith("MALL_ID"))
+ cookies += "MALL_ID=" + shop.ShopId + "; ";
+ else
+ cookies += cook + "; ";
+ }
+ }
HttpWebResponse response = null;
string result;
try
@@ -352,6 +355,41 @@ namespace TemuKJD.BLL
request.ContentType = "application/json;charset=UTF-8";
request.Headers.Add("Origin", @"https://ads.temu.com");
request.Headers.Set(HttpRequestHeader.Cookie, cookies);
+///region=0;
+///ad_timezone=Asia%2FShanghai;
+///img_sup=avif%2Cwebp;
+///auth_token=eyJjdHkiOiJKV1QiLCJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiZGlyIn0..doZoU-mjwDJ1VRHT.C3eSZAHigXzfDqOwrkxjdUC6YWDjo16HhkgkJ63LqJZFGtiY2M7YlBFA5d_AH1oVUQXOXUhmoLYSENuPCbwjIidnIMfzAI0AQXH93s6YjptbhgDu8b3VFxWa6MJ7k0ueONwvbNml8m3q9QUR3E8apnoSzGR7i7HPqwm4IqdATOhvEWKAI2iemEsyCPjUvWt8bwCd2kJtCxeQxcvfsIxrEqxnp2IcitlL5dr3sSKL-zkQTsDHUOKSHZDs2o2e3LTNriVKQPxEUnUeM0bMWeS0LK5K5DLv2KtK15eRij8IzKiOo6LcUIU8H2JCVsWij7h9zaEKysbeJ2m4lvGPUHaQjiFGVBkLjERGpdeBrsL25SdNXa-ewYV3G3hZhYIkqwLraq_6FeFXEly1beNArRqvLtKk8F8XuJcV73I84dpqtPoNf0qNQ4xHWAxu9W221Np8cyzoFYirmUnSiVcXUIX4Frw1PCQNQlGLk9YiDu4yGg1c.GadaUU1hhCNgybc3hhq5HA;
+///ad_uin=pRKR5htgF5Llfwm8g8ItiQ;
+///ad_site="";
+///MALL_ID=634418217169109;
+///ad_area=2;
+///ad_language=zh-Hans;
+///mall_ad_timezone=Asia%2FShanghai;
+///ad_currency=CNY
+// request.Headers.Set(HttpRequestHeader.Cookie, @"
+//api_uid=CtxlFWkmf8WybOWFCAnAAg==;
+//_nano_fp=Xpmjn0gqX0myn0TJlT_YvYLohdDCmG9aYkjPjQBU;
+//_bee=a2ZiO8rno4RSC5pTp0Xvb3xZ7WNVrapJ;
+//njrpl=a2ZiO8rno4RSC5pTp0Xvb3xZ7WNVrapJ;
+//dilx=1e46HQzMd-trn9bElW4ly;
+//hfsc=L3yPcIsw7Trw05LIeA==;
+//seller_temp=N_eyJ0Ijoic2hjYUcrZ1VkVkYweEVIYVIvRHFzOVlkMDViUzdxK2xUam5IY3BUMzU2bkZscFN5Q1dUT3VxQzFaUHJEZTFKNiIsInYiOjEsInMiOjEwMDAxLCJ1IjoyNDg3NDUxOTIxNzE0fQ==;
+//mallid=634418217169109;
+//region=0;
+//ad_timezone=Asia%2FShanghai;
+//img_sup=avif%2Cwebp;
+//auth_token=eyJjdHkiOiJKV1QiLCJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiZGlyIn0..doZoU-mjwDJ1VRHT.C3eSZAHigXzfDqOwrkxjdUC6YWDjo16HhkgkJ63LqJZFGtiY2M7YlBFA5d_AH1oVUQXOXUhmoLYSENuPCbwjIidnIMfzAI0AQXH93s6YjptbhgDu8b3VFxWa6MJ7k0ueONwvbNml8m3q9QUR3E8apnoSzGR7i7HPqwm4IqdATOhvEWKAI2iemEsyCPjUvWt8bwCd2kJtCxeQxcvfsIxrEqxnp2IcitlL5dr3sSKL-zkQTsDHUOKSHZDs2o2e3LTNriVKQPxEUnUeM0bMWeS0LK5K5DLv2KtK15eRij8IzKiOo6LcUIU8H2JCVsWij7h9zaEKysbeJ2m4lvGPUHaQjiFGVBkLjERGpdeBrsL25SdNXa-ewYV3G3hZhYIkqwLraq_6FeFXEly1beNArRqvLtKk8F8XuJcV73I84dpqtPoNf0qNQ4xHWAxu9W221Np8cyzoFYirmUnSiVcXUIX4Frw1PCQNQlGLk9YiDu4yGg1c.GadaUU1hhCNgybc3hhq5HA;
+//ad_uin=pRKR5htgF5Llfwm8g8ItiQ;
+//ad_site="""";
+//MALL_ID=634418217169109;
+//ad_area=2;
+//ad_language=zh-Hans;
+//mall_ad_timezone=Asia%2FShanghai;
+//ad_currency=CNY;
+//region=0;
+//ad_timezone=Asia%2FShanghai;
+//img_sup=avif%2Cwebp");
+
request.Headers.Add("Sec-Fetch-Site", @"same-origin");
request.Headers.Add("Sec-Fetch-Mode", @"cors");
request.Headers.Add("Sec-Fetch-Dest", @"empty");
diff --git a/TEMUKJD/BLL/ShopBLL.cs b/TEMUKJD/BLL/ShopBLL.cs
index bf17726..f14a3f7 100644
--- a/TEMUKJD/BLL/ShopBLL.cs
+++ b/TEMUKJD/BLL/ShopBLL.cs
@@ -244,6 +244,7 @@ namespace TemuKJD.BLL
shop.ad_seller_unique_id = BaseRegex.GetStringJson(ref shopStr, "ad_seller_unique_id");
shop.ad_url = BaseRegex.GetStringJson(ref shopStr, "ad_url");
shop.pddid = BaseRegex.GetStringJson(ref shopStr, "pddid");
+ shop.jit_expire_time = BaseRegex.GetStringJson(ref shopStr, "jit_expire_time") == null ? new DateTime?() : Convert.ToDateTime(BaseRegex.GetStringJson(ref shopStr, "jit_expire_time"));
if (BaseClass.MainPath == "binxixi")
{
diff --git a/TEMUKJD/BaseForms/LRBaseForm.cs b/TEMUKJD/BaseForms/LRBaseForm.cs
index 4e62dae..3612e79 100644
--- a/TEMUKJD/BaseForms/LRBaseForm.cs
+++ b/TEMUKJD/BaseForms/LRBaseForm.cs
@@ -52,7 +52,13 @@ namespace TemuKJD.BaseForms
m.Result = (IntPtr)HTBOTTOM;
break;
default:
- base.WndProc(ref m);
+ try
+ {
+ base.WndProc(ref m);
+ }
+ catch
+ {
+ }
break;
}
diff --git a/TEMUKJD/KJD.csproj b/TEMUKJD/KJD.csproj
index df41d05..948facf 100644
--- a/TEMUKJD/KJD.csproj
+++ b/TEMUKJD/KJD.csproj
@@ -140,12 +140,30 @@
AdminAccountForm.cs
+
+ Form
+
+
+ AdminCardCodeForm.cs
+
Form
AdminForm.cs
+
+ Form
+
+
+ JITForm.cs
+
+
+ Form
+
+
+ JitShopActiveForm.cs
+
Form
@@ -884,9 +902,15 @@
AdminAccountForm.cs
+
+ AdminCardCodeForm.cs
+
AdminForm.cs
+
+ JITForm.cs
+
Fission.cs
@@ -1245,6 +1269,8 @@
+
+
diff --git a/TEMUKJD/KJDForms/AdminForms/AdminCardCodeForm.Designer.cs b/TEMUKJD/KJDForms/AdminForms/AdminCardCodeForm.Designer.cs
new file mode 100644
index 0000000..b42d40c
--- /dev/null
+++ b/TEMUKJD/KJDForms/AdminForms/AdminCardCodeForm.Designer.cs
@@ -0,0 +1,554 @@
+
+namespace TemuKJD.KJDForms.AdminForms
+{
+ partial class AdminCardCodeForm
+ {
+ ///
+ /// 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.txtCreateCount = new System.Windows.Forms.TextBox();
+ this.btnCreate = new DevComponents.DotNetBar.PanelEx();
+ this.cmbCardCodeStatus = new System.Windows.Forms.ComboBox();
+ this.label6 = new System.Windows.Forms.Label();
+ this.txtShopId = new System.Windows.Forms.TextBox();
+ this.txtShopName = new System.Windows.Forms.TextBox();
+ this.btnSearch = new DevComponents.DotNetBar.PanelEx();
+ this.btnBatchDel = new DevComponents.DotNetBar.PanelEx();
+ this.pnlEmpty = new DevComponents.DotNetBar.PanelEx();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.txtNotes = new System.Windows.Forms.TextBox();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label5 = new System.Windows.Forms.Label();
+ this.splitContainer2 = new System.Windows.Forms.SplitContainer();
+ this.pbLoading = new System.Windows.Forms.PictureBox();
+ this.dgvCardCode = new TemuKJD.UserComponent.DataGridViewEx();
+ this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+ this.colId = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colCardCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colAddTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colActiveTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colExpires = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colShopAccount = 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.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
+ this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
+ this.txtCardCode = new System.Windows.Forms.TextBox();
+ this.label1 = new System.Windows.Forms.Label();
+ ((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.pbLoading)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvCardCode)).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.txtCardCode);
+ this.splitContainer1.Panel1.Controls.Add(this.label1);
+ this.splitContainer1.Panel1.Controls.Add(this.txtCreateCount);
+ this.splitContainer1.Panel1.Controls.Add(this.btnCreate);
+ this.splitContainer1.Panel1.Controls.Add(this.cmbCardCodeStatus);
+ this.splitContainer1.Panel1.Controls.Add(this.label6);
+ this.splitContainer1.Panel1.Controls.Add(this.txtShopId);
+ this.splitContainer1.Panel1.Controls.Add(this.txtShopName);
+ this.splitContainer1.Panel1.Controls.Add(this.btnSearch);
+ this.splitContainer1.Panel1.Controls.Add(this.btnBatchDel);
+ this.splitContainer1.Panel1.Controls.Add(this.pnlEmpty);
+ this.splitContainer1.Panel1.Controls.Add(this.label2);
+ this.splitContainer1.Panel1.Controls.Add(this.label3);
+ this.splitContainer1.Panel1.Controls.Add(this.txtNotes);
+ this.splitContainer1.Panel1.Controls.Add(this.label4);
+ this.splitContainer1.Panel1.Controls.Add(this.label5);
+ //
+ // 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(1221, 530);
+ this.splitContainer1.TabIndex = 35;
+ //
+ // txtCreateCount
+ //
+ this.txtCreateCount.Location = new System.Drawing.Point(949, 14);
+ this.txtCreateCount.Name = "txtCreateCount";
+ this.txtCreateCount.Size = new System.Drawing.Size(47, 23);
+ this.txtCreateCount.TabIndex = 455;
+ this.txtCreateCount.Text = "1";
+ //
+ // btnCreate
+ //
+ this.btnCreate.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnCreate.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnCreate.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnCreate.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnCreate.Location = new System.Drawing.Point(1002, 14);
+ this.btnCreate.Name = "btnCreate";
+ this.btnCreate.Size = new System.Drawing.Size(80, 23);
+ this.btnCreate.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnCreate.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnCreate.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnCreate.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
+ this.btnCreate.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
+ this.btnCreate.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
+ this.btnCreate.Style.ForeColor.Color = System.Drawing.Color.White;
+ this.btnCreate.Style.GradientAngle = 90;
+ this.btnCreate.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnCreate.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnCreate.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnCreate.TabIndex = 454;
+ this.btnCreate.Text = "生成卡密";
+ this.btnCreate.Click += new System.EventHandler(this.btnCreate_Click);
+ //
+ // cmbCardCodeStatus
+ //
+ this.cmbCardCodeStatus.FormattingEnabled = true;
+ this.cmbCardCodeStatus.Items.AddRange(new object[] {
+ "全部",
+ "未激活",
+ "已激活",
+ "已过期"});
+ this.cmbCardCodeStatus.Location = new System.Drawing.Point(606, 13);
+ this.cmbCardCodeStatus.Name = "cmbCardCodeStatus";
+ this.cmbCardCodeStatus.Size = new System.Drawing.Size(90, 25);
+ this.cmbCardCodeStatus.TabIndex = 441;
+ this.cmbCardCodeStatus.Text = "未激活";
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(549, 17);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(68, 17);
+ this.label6.TabIndex = 440;
+ this.label6.Text = "卡密状态:";
+ //
+ // txtShopId
+ //
+ this.txtShopId.Location = new System.Drawing.Point(180, 14);
+ this.txtShopId.Name = "txtShopId";
+ this.txtShopId.Size = new System.Drawing.Size(90, 23);
+ this.txtShopId.TabIndex = 372;
+ //
+ // txtShopName
+ //
+ this.txtShopName.Location = new System.Drawing.Point(330, 14);
+ this.txtShopName.Name = "txtShopName";
+ this.txtShopName.Size = new System.Drawing.Size(90, 23);
+ this.txtShopName.TabIndex = 374;
+ //
+ // 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(715, 14);
+ this.btnSearch.Name = "btnSearch";
+ this.btnSearch.Size = new System.Drawing.Size(58, 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 = 435;
+ this.btnSearch.Text = "查询卡密";
+ this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
+ //
+ // btnBatchDel
+ //
+ this.btnBatchDel.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnBatchDel.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnBatchDel.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnBatchDel.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnBatchDel.Location = new System.Drawing.Point(1151, 14);
+ this.btnBatchDel.Name = "btnBatchDel";
+ this.btnBatchDel.Size = new System.Drawing.Size(58, 23);
+ this.btnBatchDel.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnBatchDel.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnBatchDel.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnBatchDel.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
+ this.btnBatchDel.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
+ this.btnBatchDel.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
+ this.btnBatchDel.Style.ForeColor.Color = System.Drawing.Color.White;
+ this.btnBatchDel.Style.GradientAngle = 90;
+ this.btnBatchDel.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnBatchDel.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnBatchDel.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnBatchDel.TabIndex = 439;
+ this.btnBatchDel.Text = "批量删除";
+ this.btnBatchDel.Click += new System.EventHandler(this.btnBatchDel_Click);
+ //
+ // 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(779, 14);
+ this.pnlEmpty.Name = "pnlEmpty";
+ this.pnlEmpty.Size = new System.Drawing.Size(58, 23);
+ 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);
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(134, 17);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(57, 17);
+ this.label2.TabIndex = 373;
+ this.label2.Text = "店铺ID:";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(273, 17);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(68, 17);
+ this.label3.TabIndex = 375;
+ this.label3.Text = "店铺名称:";
+ //
+ // txtNotes
+ //
+ this.txtNotes.Location = new System.Drawing.Point(456, 14);
+ this.txtNotes.Name = "txtNotes";
+ this.txtNotes.Size = new System.Drawing.Size(90, 23);
+ this.txtNotes.TabIndex = 376;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(423, 17);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(44, 17);
+ this.label4.TabIndex = 377;
+ this.label4.Text = "备注:";
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(892, 17);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(68, 17);
+ this.label5.TabIndex = 456;
+ this.label5.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.dgvCardCode);
+ this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ //
+ // splitContainer2.Panel2
+ //
+ this.splitContainer2.Panel2.Controls.Add(this.ucSplitPage1);
+ this.splitContainer2.Panel2.Controls.Add(this.statusBar);
+ this.splitContainer2.Size = new System.Drawing.Size(1221, 476);
+ this.splitContainer2.SplitterDistance = 447;
+ 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(585, 198);
+ 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;
+ //
+ // dgvCardCode
+ //
+ this.dgvCardCode.AllowUserToAddRows = false;
+ this.dgvCardCode.AllowUserToDeleteRows = false;
+ dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
+ this.dgvCardCode.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
+ this.dgvCardCode.AutoRowNumber = true;
+ this.dgvCardCode.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
+ this.dgvCardCode.BackgroundColor = System.Drawing.Color.White;
+ this.dgvCardCode.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.dgvCardCode.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
+ this.dgvCardCode.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvCardCode.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.colSelect,
+ this.colId,
+ this.colCardCode,
+ this.colAddTime,
+ this.colActiveTime,
+ this.colExpires,
+ this.colShopId,
+ this.colShopAccount,
+ this.conNotes,
+ this.colEdit,
+ this.colDelete});
+ this.dgvCardCode.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.dgvCardCode.Location = new System.Drawing.Point(4, 0);
+ this.dgvCardCode.Name = "dgvCardCode";
+ this.dgvCardCode.ReadOnly = true;
+ this.dgvCardCode.RowTemplate.Height = 23;
+ this.dgvCardCode.ShowCellErrors = false;
+ this.dgvCardCode.Size = new System.Drawing.Size(1213, 447);
+ this.dgvCardCode.TabIndex = 5;
+ this.dgvCardCode.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvCardCode_CellContentClick);
+ //
+ // 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;
+ //
+ // colId
+ //
+ this.colId.HeaderText = "数据库ID";
+ this.colId.Name = "colId";
+ this.colId.ReadOnly = true;
+ this.colId.Visible = false;
+ //
+ // colCardCode
+ //
+ dataGridViewCellStyle3.Font = new System.Drawing.Font("Consolas", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.colCardCode.DefaultCellStyle = dataGridViewCellStyle3;
+ this.colCardCode.HeaderText = "卡密";
+ this.colCardCode.Name = "colCardCode";
+ this.colCardCode.ReadOnly = true;
+ //
+ // colAddTime
+ //
+ this.colAddTime.HeaderText = "生成时间";
+ this.colAddTime.Name = "colAddTime";
+ this.colAddTime.ReadOnly = true;
+ //
+ // colActiveTime
+ //
+ this.colActiveTime.HeaderText = "激活时间";
+ this.colActiveTime.Name = "colActiveTime";
+ this.colActiveTime.ReadOnly = true;
+ //
+ // colExpires
+ //
+ this.colExpires.HeaderText = "到期时间";
+ this.colExpires.Name = "colExpires";
+ this.colExpires.ReadOnly = true;
+ //
+ // colShopId
+ //
+ this.colShopId.HeaderText = "店铺ID";
+ this.colShopId.Name = "colShopId";
+ this.colShopId.ReadOnly = true;
+ //
+ // colShopAccount
+ //
+ this.colShopAccount.HeaderText = "店铺账号";
+ this.colShopAccount.Name = "colShopAccount";
+ this.colShopAccount.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;
+ //
+ // ucSplitPage1
+ //
+ this.ucSplitPage1.CurrentPage = 1;
+ this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Right;
+ this.ucSplitPage1.IsShowPageSize = false;
+ this.ucSplitPage1.Location = new System.Drawing.Point(859, 0);
+ this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
+ this.ucSplitPage1.Name = "ucSplitPage1";
+ this.ucSplitPage1.PageSize = 50;
+ this.ucSplitPage1.Size = new System.Drawing.Size(362, 25);
+ this.ucSplitPage1.TabIndex = 4;
+ this.ucSplitPage1.TotalPage = 1;
+ this.ucSplitPage1.PageChange += new System.Action