diff --git a/AllBase/AllBase.csproj b/AllBase/AllBase.csproj
index 184648c..14be498 100644
--- a/AllBase/AllBase.csproj
+++ b/AllBase/AllBase.csproj
@@ -290,7 +290,7 @@
-
+
diff --git a/AllBase/BaseClass.cs b/AllBase/BaseClass.cs
index dddbdd2..a926a0a 100644
--- a/AllBase/BaseClass.cs
+++ b/AllBase/BaseClass.cs
@@ -27,7 +27,7 @@ namespace AllBase
///
/// 版本ID
///
- public static int VersionCount = 1016;
+ public static int VersionCount = 1020;
//public static int VersionCount = 613;
///
diff --git a/AllBase/Extension/Extensions.cs b/AllBase/Extension/Extensions.cs
index d3155fd..6978f68 100644
--- a/AllBase/Extension/Extensions.cs
+++ b/AllBase/Extension/Extensions.cs
@@ -66,6 +66,16 @@ namespace AllBase.Extension
{
return null;
}
+ try
+ {
+ return DateTime.Parse(str);
+ }
+ catch
+ {
+ }
+
+ if (str.Contains("年") && str.Contains("月") && str.Contains("日") && !str.Contains("周"))
+ str = str.Replace("年", "-").Replace("月", "-").Replace("日", "").Replace("时", ":").Replace("分", ":").Replace("秒", "").Trim(' ', ':');
if (str.Contains("-") || str.Contains("/"))
{
return DateTime.Parse(str);
diff --git a/AllBase/Model/Result/PDDResult/PddBuyerOrderInfoLite.cs b/AllBase/Model/Result/PDDResult/PddBuyerOrderInfoLite.cs
index 1ad3b0d..b798f23 100644
--- a/AllBase/Model/Result/PDDResult/PddBuyerOrderInfoLite.cs
+++ b/AllBase/Model/Result/PDDResult/PddBuyerOrderInfoLite.cs
@@ -20,7 +20,27 @@ namespace AllBase.Model.Result.PDDResult
//BTWL 百世快运
//HTKY 百世快递
- public static string GetWxExpressCompanyCode(string expressCompanyName)
+ public static string GetPddToWxExpressCompanyCode(string expressCompanyName)
+ {
+ if (expressCompanyName == null || expressCompanyName == "") return "";
+ if (expressCompanyName.Contains("邮政快递包裹")) return "EMS";
+ if (expressCompanyName.Contains("邮政电商标快")) return "EMS";
+ if (expressCompanyName.Contains("邮政EMS")) return "EMS";
+ if (expressCompanyName.Contains("极兔速递")) return "JTSD";
+ if (expressCompanyName.Contains("极兔快递")) return "JTSD";
+ if (expressCompanyName.Contains("申通快递")) return "STO";
+ if (expressCompanyName.Contains("韵达快递")) return "YD";
+ if (expressCompanyName.Contains("圆通快递")) return "YTO";
+ if (expressCompanyName.Contains("中通快递")) return "ZTO";
+ if (expressCompanyName.Contains("百世快运")) return "BTWL";
+ if (expressCompanyName.Contains("百世快递")) return "HTKY";
+ if (expressCompanyName.Contains("顺丰速运")) return "SF";
+ if (expressCompanyName.Contains("京东快递")) return "JD";
+ if (expressCompanyName.Contains("京东快运")) return "JDKY";
+ return "";
+ }
+
+ public static string GetWxExpressNameToWxExpressCode(string expressCompanyName)
{
if (expressCompanyName == null || expressCompanyName == "") return "";
if (expressCompanyName.Contains("邮政快递包裹")) return "EMS";
@@ -28,8 +48,8 @@ namespace AllBase.Model.Result.PDDResult
if (expressCompanyName.Contains("邮政EMS")) return "EMS";
if (expressCompanyName.Contains("极兔速递")) return "JTSD";
if (expressCompanyName.Contains("申通快递")) return "STO";
- if (expressCompanyName.Contains("韵达快递")) return "YD";
- if (expressCompanyName.Contains("圆通快递")) return "YTO";
+ if (expressCompanyName.Contains("韵达速递")) return "YD";
+ if (expressCompanyName.Contains("圆通速递")) return "YTO";
if (expressCompanyName.Contains("中通快递")) return "ZTO";
if (expressCompanyName.Contains("百世快运")) return "BTWL";
if (expressCompanyName.Contains("百世快递")) return "HTKY";
@@ -44,7 +64,7 @@ namespace AllBase.Model.Result.PDDResult
{
get
{
- return GetWxExpressCompanyCode(outExpressCompanyName);
+ return GetPddToWxExpressCompanyCode(outExpressCompanyName);
}
}
public string outExpressCompanyName
@@ -55,6 +75,7 @@ namespace AllBase.Model.Result.PDDResult
if (outExpressCompanyMsg.Contains("邮政快递包裹")) return "邮政快递包裹";
if (outExpressCompanyMsg.Contains("邮政电商标快")) return "邮政电商标快";
if (outExpressCompanyMsg.Contains("极兔速递")) return "极兔速递";
+ if (outExpressCompanyMsg.Contains("极兔快递")) return "极兔速递";
if (outExpressCompanyMsg.Contains("申通快递")) return "申通快递";
if (outExpressCompanyMsg.Contains("韵达快递")) return "韵达快递";
if (outExpressCompanyMsg.Contains("圆通快递")) return "圆通快递";
diff --git a/AllBase/Model/Result/WXResult/WxOptimizeExpressInfo.cs b/AllBase/Model/Result/WXResult/WxOptimizeExpressInfo.cs
new file mode 100644
index 0000000..c33f717
--- /dev/null
+++ b/AllBase/Model/Result/WXResult/WxOptimizeExpressInfo.cs
@@ -0,0 +1,35 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AllBase.Model.Result.WXResult
+{
+ public class WxOptimizeExpressInfo
+ {
+ public int id { get; set; }
+ public string delivery_id { get; set; }
+ public string delivery_name { get; set; }
+ public string waybill_id { get; set; }
+ public int status { get; set; }
+ public string order_id { get; set; }
+ public string bind_order_id { get; set; }
+ public string shop_id { get; set; }
+ public DateTime add_time { get; set; }
+ public DateTime? use_time { get; set; }
+ public DateTime? waybill_pickup_time { get; set; }
+ }
+
+ public class WxOptimizeRstInfo
+ {
+ public int id { get; set; }
+ public string shop_id { get; set; }
+ public string order_id { get; set; }
+ public string optimize_rst { get; set; }
+ public string waybill_id { get; set; }
+ public string delivery_name { get; set; }
+ public DateTime add_time { get; set; }
+ public DateTime mdy_time { get; set; }
+ }
+}
diff --git a/AllBase/Model/Result/WXResult/WxOptrimizeLinerCgiInfo.cs b/AllBase/Model/Result/WXResult/WxOptimizeLinerCgiInfo.cs
similarity index 81%
rename from AllBase/Model/Result/WXResult/WxOptrimizeLinerCgiInfo.cs
rename to AllBase/Model/Result/WXResult/WxOptimizeLinerCgiInfo.cs
index 40ac8db..9a1574f 100644
--- a/AllBase/Model/Result/WXResult/WxOptrimizeLinerCgiInfo.cs
+++ b/AllBase/Model/Result/WXResult/WxOptimizeLinerCgiInfo.cs
@@ -6,15 +6,29 @@ using System.Threading.Tasks;
namespace AllBase.Model.Result.WXResult
{
- public class WxOptrimizeLinerCgiInfo
+ public class WxOptimizeLinerCgiInfo
{
public string shopId { get; set; }
public string shopName { get; set; }
public string optimizeWaybillId { get; set; }
public string optimizeTime { get; set; }
+ public int? orderTime { get; set; }
+ ///
+ /// 收货 省
+ ///
+ public string province { get; set; }
+ ///
+ /// 收货 市
+ ///
+ public string city { get; set; }
+ ///
+ /// 收货 区
+ ///
+ public string district { get; set; }
+
public string receipt_province { get; set; } // "福建省",
- public string ship_province { get; set; } // "广东省",
+ public string ship_province { get; set; } // "广东省",
public string receipt_time { get; set; } // "1775439386",
public string transport_duration { get; set; } // "120986",
public string delivery_id { get; set; } // "ZTO",
diff --git a/AllBase/Model/Result/WXResult/WxOptimizeOrderAfterSaleInfo.cs b/AllBase/Model/Result/WXResult/WxOptimizeOrderAfterSaleInfo.cs
index ce8d557..65b3a3f 100644
--- a/AllBase/Model/Result/WXResult/WxOptimizeOrderAfterSaleInfo.cs
+++ b/AllBase/Model/Result/WXResult/WxOptimizeOrderAfterSaleInfo.cs
@@ -12,6 +12,20 @@ namespace AllBase.Model.Result.WXResult
public string shopName { get; set; }
public string optimizeWaybillId { get; set; }
public string optimizeTime { get; set; }
+ public int? orderTime { get; set; }
+ ///
+ /// 收货 省
+ ///
+ public string province { get; set; }
+ ///
+ /// 收货 市
+ ///
+ public string city { get; set; }
+ ///
+ /// 收货 区
+ ///
+ public string district { get; set; }
+
public AfterSaleOrderInfo orderInfo { get; set; }
public string reason { get; set; } // "生锈/弯曲变形/钝化不锋利"
diff --git a/AllBase/Model/Result/WXResult/WxOptimizeOrderWayBillInfo.cs b/AllBase/Model/Result/WXResult/WxOptimizeOrderWayBillInfo.cs
index e85e99a..2da762f 100644
--- a/AllBase/Model/Result/WXResult/WxOptimizeOrderWayBillInfo.cs
+++ b/AllBase/Model/Result/WXResult/WxOptimizeOrderWayBillInfo.cs
@@ -12,6 +12,20 @@ namespace AllBase.Model.Result.WXResult
public string shopName { get; set; }
public string optimizeWaybillId { get; set; }
public string optimizeTime { get; set; }
+ public int? orderTime { get; set; }
+ ///
+ /// 收货 省
+ ///
+ public string province { get; set; }
+ ///
+ /// 收货 市
+ ///
+ public string city { get; set; }
+ ///
+ /// 收货 区
+ ///
+ public string district { get; set; }
+
public WayBillOrderInfo orderInfo { get; set; }
public string waybillId { get; set; } // "JT4157662637789",
diff --git a/AllBase/Model/Result/WXResult/WxOptimizeProductEvaluationInfo.cs b/AllBase/Model/Result/WXResult/WxOptimizeProductEvaluationInfo.cs
index 9f608d1..5c11622 100644
--- a/AllBase/Model/Result/WXResult/WxOptimizeProductEvaluationInfo.cs
+++ b/AllBase/Model/Result/WXResult/WxOptimizeProductEvaluationInfo.cs
@@ -12,8 +12,21 @@ namespace AllBase.Model.Result.WXResult
public string shopName { get; set; }
public string optimizeWaybillId { get; set; }
public string optimizeTime { get; set; }
-
public string order_id { get; set; }
+ public int? orderTime { get; set; }
+ ///
+ /// 收货 省
+ ///
+ public string province { get; set; }
+ ///
+ /// 收货 市
+ ///
+ public string city { get; set; }
+ ///
+ /// 收货 区
+ ///
+ public string district { get; set; }
+
public string productEvaluationId { get; set; } // "53890834526",
public OptimizeEvaluationInfo evaluationInfo { get; set; }
diff --git a/KJDService/KJD_WebService/BLL/WXXD/WXExpressOptimizeManage.cs b/KJDService/KJD_WebService/BLL/WXXD/WXExpressOptimizeManage.cs
new file mode 100644
index 0000000..6bea845
--- /dev/null
+++ b/KJDService/KJD_WebService/BLL/WXXD/WXExpressOptimizeManage.cs
@@ -0,0 +1,707 @@
+using KJD_Web.Model.WxModel;
+using KJD_Web.Utils;
+using KJD_WebService.Model;
+using MySql.Data.MySqlClient;
+using NaiBa.Util.Extension;
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Linq;
+using System.Runtime.Remoting.Messaging;
+using System.Web;
+using System.Web.Security;
+using System.Web.Services.Description;
+
+namespace KJD_Web.BLL.WXXD
+{
+ public class WXExpressOptimizeManage
+ {
+ public string GetWayBill(string inputData, bool isNoUserName = false)
+ {
+ if (!string.IsNullOrEmpty(inputData))
+ {
+ var timeCalc = DateTime.Now;
+
+ if (!WXUserManage.GetSign(inputData))
+ return "{\"code\":999,\"msg\":\"校验失败\"}";
+
+ //var delivery_id = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "delivery_id"))?.Replace("'", "\\'");
+ //var delivery_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "delivery_name"))?.Replace("'", "\\'");
+ //var waybill_id = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "waybill_id"))?.Replace("'", "\\'");
+ //if (string.IsNullOrEmpty(delivery_id) || string.IsNullOrEmpty(delivery_name) || string.IsNullOrEmpty(waybill_id))
+ //{
+ // return "{\"code\":500,\"msg\":\"运单号信息不完整\"}";
+ //}
+ var status = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "status"))?.Replace("'", "\'");
+ var order_ids = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "order_ids"))?.Replace("'", "\'");
+ var user_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "user_name"))?.Replace("'", "\'");
+ if (!isNoUserName && user_name.IsNullOrEmpty())
+ {
+ return "{\"code\":500,\"msg\":\"用户名不能为空\"}";
+ }
+ if (isNoUserName && order_ids.IsNullOrEmpty())
+ {
+ return "{\"code\":500,\"msg\":\"订单号不能为空\"}";
+ }
+
+
+ int page = RegexUtils.GetStringQuery(ref inputData, "page").ParseToInt();
+ int page_size = RegexUtils.GetStringQuery(ref inputData, "page_size").ParseToInt(50);
+
+ string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
+ MysqlUtils mySql = new MysqlUtils(conn);
+ string sql = "";
+ sql = "select count(*) from wxxd.delivery where 1=1";
+
+ string where = "";
+ if (!isNoUserName)
+ where += " AND user_name='" + user_name + "'";
+ if (status != null)
+ where += " AND status in (" + status + ")";
+ if (order_ids != null)
+ where += " AND order_id in ('" + order_ids.Replace(",", "','") + "')";
+
+ sql += where;
+
+ var count = 0;
+ count = mySql.ExecuteRowCount(sql);
+
+ DataTable dt;
+ if (count == 0)
+ {
+ dt = new DataTable();
+ }
+ else
+ {
+ sql = "select * from wxxd.delivery where 1=1";
+ sql += where;
+ sql += " order by id desc limit " + Math.Max(0, page - 1) * page_size + "," + page_size + ";";
+ dt = mySql.ExecuteDataTable(sql);
+ }
+ mySql.Close();
+
+ if (!string.IsNullOrEmpty(mySql.Message))
+ return "{\"code\":501,\"msg\":\"" + mySql.Message + "\"}";
+
+ if (dt != null)
+ {
+ try
+ {
+ List WxOptimizeExpressInfoLst = new List();
+ foreach (DataRow row in dt.Rows)
+ {
+ WxOptimizeExpressInfoLst.Add(new WxOptimizeExpressInfo()
+ {
+ id = row["id"].ParseToInt(),
+ delivery_id = row["delivery_id"].ParseToString(),
+ delivery_name = row["delivery_name"].ParseToString(),
+ order_id = row["order_id"].ParseToString(),
+ bind_order_id = row["bind_order_id"].ParseToString(),
+ shop_id = row["shop_id"].ParseToString(),
+ status = row["status"].ParseToInt(),
+ waybill_id = row["waybill_id"].ParseToString(),
+ add_time = Convert.ToDateTime(row["add_time"]),
+ use_time = row["use_time"].ParseToString().ParseToDateTimeNullable(),
+ waybill_pickup_time = row["waybill_pickup_time"].ParseToString().ParseToDateTimeNullable(),
+ });
+ }
+ JsonSerializerSettings jsonSetting = new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore };
+ var data = JsonUtils.SerializeObjectToString(WxOptimizeExpressInfoLst, jsonSetting);
+ var seconds = (DateTime.Now - timeCalc).TotalSeconds.ToString("0.000");
+ return "{\"code\":200,\"msg\":\"success\",\"data\":" + data + ",\"count\":" + count + ",\"seconds\":" + seconds + "}";
+ }
+ catch (Exception ex)
+ {
+ return "{\"code\":500,\"msg\":\"" + ex.Message + "\",\"data\":[],\"count\":" + 0 + "}";
+ }
+ }
+ else
+ {
+ return "{\"code\":500,\"msg\":\"" + mySql.Message + "\",\"data\":[],\"count\":" + 0 + "}";
+ }
+ }
+ return "{\"code\":19999,\"msg\":\"输入为空\"}";
+ }
+
+ ///
+ /// 添加运单
+ ///
+ ///
+ ///
+ public string AddWaybill(string inputData)
+ {
+ if (!string.IsNullOrEmpty(inputData))
+ {
+ if (!WXUserManage.GetSign(inputData))
+ return "{\"code\":999,\"msg\":\"校验失败\"}";
+
+ var delivery_id = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "delivery_id"))?.Replace("'", "\\'");
+ var delivery_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "delivery_name"))?.Replace("'", "\\'");
+ var waybill_id = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "waybill_id"))?.Replace("'", "\\'");
+ var bind_order_id = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "bind_order_id"))?.Replace("'", "\\'");
+ var waybill_pickup_time = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "waybill_pickup_time")).ParseToDateTimeNullable();
+ if (string.IsNullOrEmpty(delivery_id) || string.IsNullOrEmpty(delivery_name) || string.IsNullOrEmpty(waybill_id))
+ {
+ return "{\"code\":500,\"msg\":\"运单号信息不完整\"}";
+ }
+ if (waybill_pickup_time == null && bind_order_id.IsNullOrEmpty())
+ {
+ return "{\"code\":500,\"msg\":\"揽收时间和绑定订单编号不能同时为空\"}";
+ }
+ var user_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "user_name"))?.ParseToString();
+ if (user_name.IsNullOrEmpty())
+ {
+ return "{\"code\":500,\"msg\":\"请输入用户名\"}";
+ }
+
+ string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
+ MysqlUtils mySql = new MysqlUtils(conn);
+ string sql = "";
+ sql = "select exists (select 1 from wxxd.delivery where waybill_id='" + waybill_id + "')";
+ var exist = mySql.ExecuteFirstInt(sql);
+ if (exist > 0)
+ {
+ mySql.Close();
+ return "{\"code\":500,\"msg\":\"运单号已存在\"}";
+ }
+
+ sql = "insert into wxxd.delivery (user_name,delivery_id,delivery_name,waybill_id,";
+ if (!bind_order_id.IsNullOrEmpty())
+ sql += "bind_order_id,";
+ if (waybill_pickup_time != null)
+ sql += "waybill_pickup_time,";
+ sql = sql.Trim(',');
+ sql += ") values ('" + user_name + "','" + delivery_id + "','" + delivery_name + "','" + waybill_id + "',";
+ if (!bind_order_id.IsNullOrEmpty())
+ sql += "'" + bind_order_id + "',";
+ if (waybill_pickup_time != null)
+ sql += "'" + waybill_pickup_time.Value.ToString("yyyy-MM-dd HH:mm:ss") + "',";
+ sql = sql.Trim(',');
+ sql += ");";
+ var rst = mySql.ExecuteNonQuery(sql);
+ mySql.Close();
+ if (!rst)
+ return "{\"code\":501,\"msg\":\"" + mySql.Message + "\"}";
+ else
+ return "{\"code\":200,\"msg\":\"success\"}";
+ }
+ return "{\"code\":19999,\"msg\":\"输入为空\"}";
+ }
+
+ public string DelWaybill(string inputData)
+ {
+ if (!string.IsNullOrEmpty(inputData))
+ {
+ if (!WXUserManage.GetSign(inputData))
+ return "{\"code\":999,\"msg\":\"校验失败\"}";
+
+ var waybill_ids = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "waybill_ids"))?.Replace("'", "\\'");
+ if (string.IsNullOrEmpty(waybill_ids))
+ {
+ return "{\"code\":500,\"msg\":\"运单号信息不完整\"}";
+ }
+ var user_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "user_name"))?.ParseToString();
+ if (user_name.IsNullOrEmpty())
+ {
+ return "{\"code\":500,\"msg\":\"请输入用户名\"}";
+ }
+
+ string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
+ MysqlUtils mySql = new MysqlUtils(conn);
+ string sql = "";
+ sql = "delete from wxxd.delivery WHERE waybill_id in ('" + waybill_ids.Replace(",", "','") + "') and status=0";
+ var rst = mySql.ExecuteNonQuery(sql);
+ mySql.Close();
+ if (!rst || !mySql.Message.IsNullOrEmpty())
+ return "{\"code\":501,\"msg\":\"删除失败 " + mySql.Message + "\"}";
+ else
+ return "{\"code\":200,\"msg\":\"success\"}";
+ }
+ return "{\"code\":19999,\"msg\":\"输入为空\"}";
+ }
+
+ ///
+ /// 选择并使用运单
+ ///
+ ///
+ ///
+ public string SelectAndSetWaybill(string inputData)
+ {
+ if (!string.IsNullOrEmpty(inputData))
+ {
+ if (!WXUserManage.GetSign(inputData))
+ return "{\"code\":999,\"msg\":\"校验失败\"}";
+
+ var user_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "user_name"))?.ParseToString();
+ if (user_name.IsNullOrEmpty())
+ {
+ return "{\"code\":500,\"msg\":\"请输入用户名\"}";
+ }
+ var shop_id = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "shop_id"))?.Replace("'", "\\'");
+ var order_id = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "order_id"))?.Replace("'", "\\'");
+ if (string.IsNullOrEmpty(order_id) || string.IsNullOrEmpty(shop_id))
+ {
+ return "{\"code\":500,\"msg\":\"缺少订单信息\"}";
+ }
+
+ string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
+ MysqlUtils mySql = new MysqlUtils(conn, true);
+
+ string sql = "";
+ sql = "select * from wxxd.delivery where order_id='" + order_id + "' and status = 1";
+ var dt = mySql.ExecuteDataTable(sql);
+ if (!mySql.Message.IsNullOrEmpty())
+ {
+ mySql.RollBack();
+ mySql.Close();
+ return "{\"code\":501,\"msg\":\"物流信息查询失败 " + mySql.Message + "\"}";
+ }
+ if (dt?.Rows?.Count == 0)
+ {
+ sql = "UPDATE wxxd.delivery SET order_id='" + order_id + "',status=1 WHERE user_name='" + user_name +
+ "' AND status=0 AND (order_id IS NULL OR order_id='') LIMIT 1";
+ var cnt = mySql.ExecuteAffectedRows(sql);
+ if (cnt == 0 || !mySql.Message.IsNullOrEmpty())
+ {
+ mySql.RollBack();
+ mySql.Close();
+ return "{\"code\":501,\"msg\":\"物流信息提取失败 " + mySql.Message + "\"}";
+ }
+
+ sql = "SELECT * FROM wxxd.delivery WHERE user_name='" + user_name + "' AND order_id='" + order_id + "' AND status = 1";
+ dt = mySql.ExecuteDataTable(sql);
+ if (!mySql.Message.IsNullOrEmpty())
+ {
+ mySql.RollBack();
+ mySql.Close();
+ return "{\"code\":501,\"msg\":\"物流信息提取失败 " + mySql.Message + "\"}";
+ }
+ if (dt?.Rows?.Count == 0)
+ {
+ mySql.RollBack();
+ mySql.Close();
+ return "{\"code\":501,\"msg\":\"物流信息提取失败 " + mySql.Message + "\"}";
+ }
+ }
+ var waybill_id = dt.Rows[0]["waybill_id"].ToString();
+
+ // todo E57调用接口处理
+
+ mySql.Close();
+ mySql = new MysqlUtils(conn, true);
+ sql = " UPDATE wxxd.delivery SET shop_id='" + shop_id + "',status=2,use_time='" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "' " +
+ " WHERE user_name='" + user_name + "' AND status=1 AND order_id='" + order_id + "' AND waybill_id='" + waybill_id + "'";
+ var rst = mySql.ExecuteAffectedRows(sql);
+ if (rst == 0 || !mySql.Message.IsNullOrEmpty())
+ {
+ mySql.RollBack();
+ mySql.Close();
+ return "{\"code\":501,\"msg\":\"修改物流信息失败 " + mySql.Message + "\"}";
+ }
+ else
+ {
+ mySql.Commit();
+ mySql.Close();
+ return "{\"code\":200,\"msg\":\"success\"}";
+ }
+ }
+ return "{\"code\":19999,\"msg\":\"输入为空\"}";
+ }
+
+ public string SelectWaybill(string inputData)
+ {
+ if (!string.IsNullOrEmpty(inputData))
+ {
+ if (!WXUserManage.GetSign(inputData))
+ return "{\"code\":999,\"msg\":\"校验失败\"}";
+
+ var user_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "user_name"))?.ParseToString();
+ if (user_name.IsNullOrEmpty())
+ {
+ return "{\"code\":500,\"msg\":\"请输入用户名\"}";
+ }
+ var shop_id = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "shop_id"))?.Replace("'", "\\'");
+ var order_id = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "order_id"))?.Replace("'", "\\'");
+ var order_time = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "order_time")).ParseToDateTimeNullable();
+
+ if (string.IsNullOrEmpty(order_id) || string.IsNullOrEmpty(shop_id))
+ {
+ return "{\"code\":500,\"msg\":\"缺少订单信息\"}";
+ }
+
+ string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
+ MysqlUtils mySql = new MysqlUtils(conn, true);
+
+ try
+ {
+ string sql = "";
+ sql = "select * from wxxd.delivery WHERE user_name='" + user_name + "' AND order_id='" + order_id + "' and status = 1 LIMIT 1";
+ var dt = mySql.ExecuteDataTable(sql);
+ if (!mySql.Message.IsNullOrEmpty())
+ {
+ mySql.RollBack();
+ mySql.Close();
+ return "{\"code\":501,\"msg\":\"物流查询失败 " + mySql.Message + "\"}";
+ }
+ if (dt?.Rows?.Count == 0)
+ {
+ // 获取事先绑定的订单运单
+ sql = " UPDATE wxxd.delivery SET order_id='" + order_id + "',status=1" +
+ " WHERE user_name='" + user_name + "' AND status=0 AND bind_order_id='" + order_id + "'" +
+ " LIMIT 1";
+ var cnt = mySql.ExecuteAffectedRows(sql);
+ if (!mySql.Message.IsNullOrEmpty())
+ {
+ mySql.RollBack();
+ mySql.Close();
+ return "{\"code\":501,\"msg\":\"物流提取失败 " + mySql.Message + "\"}";
+ }
+ // 根据订单时间提取指定时间段内的运单号
+ if (cnt == 0 && order_time != null)
+ {
+ // 第一天的订单用第二天的物流发货
+ var start_time = order_time.Value.Date.AddHours(24).ToString("yyyy-MM-dd HH:mm:ss");
+ var end_time = order_time.Value.Date.AddHours(48).AddSeconds(-1).ToString("yyyy-MM-dd HH:mm:ss");
+ sql = " UPDATE wxxd.delivery SET order_id='" + order_id + "',status=1" +
+ " WHERE user_name='" + user_name + "' AND status=0 AND (order_id IS NULL OR order_id='') AND (bind_order_id IS NULL OR bind_order_id='')" +
+ " AND waybill_pickup_time between '" + start_time + "' and '" + end_time + "'" +
+ " LIMIT 1";
+ cnt = mySql.ExecuteAffectedRows(sql);
+ if (!mySql.Message.IsNullOrEmpty())
+ {
+ mySql.RollBack();
+ mySql.Close();
+ return "{\"code\":501,\"msg\":\"物流提取失败 " + mySql.Message + "\"}";
+ }
+ }
+ // 挑选最早入库的运单号
+ //if (cnt == 0 && order_time == null)
+ //{
+ // sql = " UPDATE wxxd.delivery SET order_id='" + order_id + "',status=1" +
+ // " WHERE user_name='" + user_name + "' AND status=0 AND (order_id IS NULL OR order_id='') AND (bind_order_id IS NULL OR bind_order_id='')" +
+ // " LIMIT 1";
+ // cnt = mySql.ExecuteAffectedRows(sql);
+ // if (!mySql.Message.IsNullOrEmpty())
+ // {
+ // mySql.RollBack();
+ // mySql.Close();
+ // return "{\"code\":501,\"msg\":\"物流提取失败 " + mySql.Message + "\"}";
+ // }
+ //}
+ if (cnt == 0)
+ {
+ mySql.RollBack();
+ mySql.Close();
+ return "{\"code\":501,\"msg\":\"没有可用的运单号\"}";
+ }
+
+ sql = "SELECT * FROM wxxd.delivery WHERE user_name='" + user_name + "' AND order_id='" + order_id + "' AND status = 1";
+ dt = mySql.ExecuteDataTable(sql);
+ if (!mySql.Message.IsNullOrEmpty())
+ {
+ mySql.RollBack();
+ mySql.Close();
+ return "{\"code\":501,\"msg\":\"物流提取失败 " + mySql.Message + "\"}";
+ }
+ if (dt?.Rows?.Count == 0)
+ {
+ mySql.RollBack();
+ mySql.Close();
+ return "{\"code\":501,\"msg\":\"物流提取失败 " + mySql.Message + "\"}";
+ }
+ }
+ var waybill_id = dt.Rows[0]["waybill_id"].ToString();
+ var delivery_id = dt.Rows[0]["delivery_id"].ParseToString();
+ var delivery_name = dt.Rows[0]["delivery_name"].ParseToString();
+
+ mySql.Commit();
+ mySql.Close();
+
+ return "{\"code\":200,\"msg\":\"success\",\"data\":{\"waybill_id\":\"" + waybill_id +
+ "\",\"delivery_id\":\"" + delivery_id + "\",\"delivery_name\":\"" + delivery_name + "\"}}";
+ }
+ catch (Exception ex)
+ {
+ mySql.RollBack();
+ mySql.Close();
+ return "{\"code\":501,\"msg\":\"物流提取失败 " + ex.Message + "\"}";
+ }
+ }
+ return "{\"code\":19999,\"msg\":\"输入为空\"}";
+ }
+
+ public string UpdateUsedWaybill(string inputData)
+ {
+ if (!string.IsNullOrEmpty(inputData))
+ {
+ if (!WXUserManage.GetSign(inputData))
+ return "{\"code\":999,\"msg\":\"校验失败\"}";
+
+ var user_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "user_name"))?.ParseToString();
+ if (user_name.IsNullOrEmpty())
+ {
+ return "{\"code\":500,\"msg\":\"请输入用户名\"}";
+ }
+ var shop_id = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "shop_id"))?.Replace("'", "\\'");
+ var order_id = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "order_id"))?.Replace("'", "\\'");
+ var waybill_id = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "waybill_id"))?.Replace("'", "\\'");
+ var is_rollback = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "is_rollback"))?.Replace("'", "\\'");
+ if (string.IsNullOrEmpty(order_id) || string.IsNullOrEmpty(shop_id) || string.IsNullOrEmpty(waybill_id))
+ {
+ return "{\"code\":500,\"msg\":\"缺少订单信息\"}";
+ }
+
+ string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
+ MysqlUtils mySql = new MysqlUtils(conn, true);
+
+ var sql = " UPDATE wxxd.delivery SET shop_id='" + shop_id + "',status=2,use_time='" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "' " +
+ " WHERE user_name='" + user_name + "' AND status=1 AND order_id='" + order_id + "' AND waybill_id='" + waybill_id + "'";
+ if (is_rollback == "true")
+ sql = " UPDATE wxxd.delivery SET shop_id='',order_id='',status=0,use_time=NULL" +
+ " WHERE user_name='" + user_name + "' AND status=1 AND order_id='" + order_id + "' AND waybill_id='" + waybill_id + "'";
+
+ var rst = mySql.ExecuteAffectedRows(sql);
+ if (rst == 0 || !mySql.Message.IsNullOrEmpty())
+ {
+ mySql.RollBack();
+ mySql.Close();
+ return "{\"code\":501,\"msg\":\"修改物流信息失败 " + mySql.Message + "\"}";
+ }
+
+ // 记录修改结果,暂时注释
+ if (is_rollback != "true")
+ {
+ //var relation_id = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "relation_id"))?.Replace("'", "\\'");
+ //var optimize_rst = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "optimize_rst"))?.Replace("'", "\\'");
+ //var delivery_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "delivery_name"))?.Replace("'", "\\'");
+ //if (optimize_rst != null)
+ //{
+ // sql = "select exists (select 1 from wxxd.delivery where order_id='" + order_id + "')";
+ // var exist = mySql.ExecuteFirstInt(sql);
+ // if (exist > 0)
+ // {
+ // sql = " UPDATE wxxd.express_optimize_rst SET ";
+ // if (shop_id != null)
+ // sql += " shop_id=@shop_id,";
+ // if (relation_id != null)
+ // sql += " relation_id=@relation_id,";
+ // if (optimize_rst != null)
+ // sql += " optimize_rst=@optimize_rst,";
+ // if (waybill_id != null)
+ // sql += " waybill_id=@waybill_id,";
+ // if (delivery_name != null)
+ // sql += " delivery_name=@delivery_name,";
+ // sql = sql.TrimEnd(',');
+ // sql += " WHERE order_id=@order_id";
+ // }
+ // else
+ // {
+ // sql = " insert into wxxd.express_optimize_rst (shop_id,order_id,";
+ // if (relation_id != null)
+ // sql += "relation_id,";
+ // if (optimize_rst != null)
+ // sql += "optimize_rst,";
+ // if (waybill_id != null)
+ // sql += "waybill_id,";
+ // if (delivery_name != null)
+ // sql += "delivery_name,";
+ // sql = sql.TrimEnd(',');
+ // sql += ") ";
+ // sql += " values (@shop_id,@order_id,";
+ // if (relation_id != null)
+ // sql += "@relation_id,";
+ // if (optimize_rst != null)
+ // sql += "@optimize_rst,";
+ // if (waybill_id != null)
+ // sql += "@waybill_id,";
+ // if (delivery_name != null)
+ // sql += "@delivery_name,";
+ // sql = sql.TrimEnd(',');
+ // sql += ");";
+ // }
+
+ // List paramLst = new List();
+ // paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "@shop_id", Value = shop_id, });
+ // paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "@relation_id", Value = relation_id, });
+ // paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "@optimize_rst", Value = optimize_rst, });
+ // paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "@waybill_id", Value = waybill_id, });
+ // paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "@delivery_name", Value = delivery_name, });
+ // paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "@order_id", Value = order_id, });
+ // var rows = mySql.ExecuteAffectedRows(sql, paramLst.ToArray());
+ //}
+ }
+
+ mySql.Commit();
+ mySql.Close();
+ return "{\"code\":200,\"msg\":\"success\"}";
+ }
+ return "{\"code\":19999,\"msg\":\"输入为空\"}";
+ }
+
+ public string AddMdyExpressOptimizeRst(string inputData)
+ {
+ if (!string.IsNullOrEmpty(inputData))
+ {
+ if (!WXUserManage.GetSign(inputData))
+ return "{\"code\":999,\"msg\":\"校验失败\"}";
+
+ var shop_id = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "shop_id"))?.Replace("'", "\\'");
+ var order_id = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "order_id"))?.Replace("'", "\\'");
+ var optimize_rst = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "optimize_rst"))?.Replace("'", "\\'");
+ var waybill_id = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "waybill_id"))?.Replace("'", "\\'");
+ var delivery_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "delivery_name"))?.Replace("'", "\\'");
+ if (string.IsNullOrEmpty(order_id))
+ {
+ return "{\"code\":500,\"msg\":\"请输入订单编号\"}";
+ }
+ if (string.IsNullOrEmpty(optimize_rst))
+ {
+ return "{\"code\":500,\"msg\":\"请输入补发结果\"}";
+ }
+
+ string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
+ MysqlUtils mySql = new MysqlUtils(conn);
+ string sql = "";
+ sql = "select exists (select 1 from wxxd.express_optimize_rst where order_id='" + order_id + "')";
+ var exist = mySql.ExecuteFirstInt(sql);
+ if (exist > 0)
+ {
+ sql = " UPDATE wxxd.express_optimize_rst SET ";
+ if (shop_id != null)
+ sql += " shop_id=@shop_id,";
+ if (optimize_rst != null)
+ sql += " optimize_rst=@optimize_rst,";
+ if (waybill_id != null)
+ sql += " waybill_id=@waybill_id,";
+ if (delivery_name != null)
+ sql += " delivery_name=@delivery_name,";
+ sql = sql.TrimEnd(',');
+ sql += " WHERE order_id=@order_id";
+ }
+ else
+ {
+ sql = " insert into wxxd.express_optimize_rst (shop_id,order_id,";
+ if (optimize_rst != null)
+ sql += "optimize_rst,";
+ if (waybill_id != null)
+ sql += "waybill_id,";
+ if (delivery_name != null)
+ sql += "delivery_name,";
+ sql = sql.TrimEnd(',');
+ sql += ") ";
+ sql += " values (@shop_id,@order_id,";
+ if (optimize_rst != null)
+ sql += "@optimize_rst,";
+ if (waybill_id != null)
+ sql += "@waybill_id,";
+ if (delivery_name != null)
+ sql += "@delivery_name,";
+ sql = sql.TrimEnd(',');
+ sql += ");";
+ }
+
+ List paramLst = new List();
+ paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "@shop_id", Value = shop_id, });
+ paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "@optimize_rst", Value = optimize_rst, });
+ paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "@waybill_id", Value = waybill_id, });
+ paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "@delivery_name", Value = delivery_name, });
+ paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "@order_id", Value = order_id, });
+ var rows = mySql.ExecuteAffectedRows(sql, paramLst.ToArray());
+ mySql.Close();
+ if (!mySql.Message.IsNullOrEmpty())
+ return "{\"code\":501,\"msg\":\"" + mySql.Message + "\"}";
+ else
+ return "{\"code\":200,\"msg\":\"success\",\"affected_rows\":" + rows + "}";
+ }
+ return "{\"code\":19999,\"msg\":\"输入为空\"}";
+ }
+
+
+ public string GetExpressOptimizeRst(string inputData, bool isNoUserName = false)
+ {
+ if (!string.IsNullOrEmpty(inputData))
+ {
+ var timeCalc = DateTime.Now;
+
+ if (!WXUserManage.GetSign(inputData))
+ return "{\"code\":999,\"msg\":\"校验失败\"}";
+
+ var order_ids = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "order_ids"))?.Replace("'", "\'");
+ if (isNoUserName && order_ids.IsNullOrEmpty())
+ {
+ return "{\"code\":500,\"msg\":\"订单号不能为空\"}";
+ }
+
+ int page = RegexUtils.GetStringQuery(ref inputData, "page").ParseToInt();
+ int page_size = RegexUtils.GetStringQuery(ref inputData, "page_size").ParseToInt(200);
+
+ string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
+ MysqlUtils mySql = new MysqlUtils(conn);
+ string sql = "";
+ sql = "select count(*) from wxxd.express_optimize_rst where 1=1";
+
+ string where = "";
+ if (order_ids != null)
+ where += " AND order_id in ('" + order_ids.Replace(",", "','") + "')";
+
+ sql += where;
+
+ var count = 0;
+ count = mySql.ExecuteRowCount(sql);
+
+ DataTable dt;
+ if (count == 0)
+ {
+ dt = new DataTable();
+ }
+ else
+ {
+ sql = "select * from wxxd.express_optimize_rst where 1=1";
+ sql += where;
+ sql += " order by id desc limit " + Math.Max(0, page - 1) * page_size + "," + page_size + ";";
+ dt = mySql.ExecuteDataTable(sql);
+ }
+ mySql.Close();
+
+ if (!string.IsNullOrEmpty(mySql.Message))
+ return "{\"code\":501,\"msg\":\"" + mySql.Message + "\"}";
+
+ if (dt != null)
+ {
+ try
+ {
+ List WxOptimizeRstInfoLst = new List();
+ foreach (DataRow row in dt.Rows)
+ {
+ WxOptimizeRstInfoLst.Add(new WxOptimizeRstInfo()
+ {
+ id = row["id"].ParseToInt(),
+ waybill_id = row["waybill_id"].ParseToString(),
+ delivery_name = row["delivery_name"].ParseToString(),
+ order_id = row["order_id"].ParseToString(),
+ optimize_rst = row["optimize_rst"].ParseToString(),
+ shop_id = row["shop_id"].ParseToString(),
+ add_time = Convert.ToDateTime(row["add_time"]),
+ mdy_time = Convert.ToDateTime(row["mdy_time"]),
+ });
+ }
+ JsonSerializerSettings jsonSetting = new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore };
+ var data = JsonUtils.SerializeObjectToString(WxOptimizeRstInfoLst, jsonSetting);
+ var seconds = (DateTime.Now - timeCalc).TotalSeconds.ToString("0.000");
+ return "{\"code\":200,\"msg\":\"success\",\"data\":" + data + ",\"count\":" + count + ",\"seconds\":" + seconds + "}";
+ }
+ catch (Exception ex)
+ {
+ return "{\"code\":500,\"msg\":\"" + ex.Message + "\",\"data\":[],\"count\":" + 0 + "}";
+ }
+ }
+ else
+ {
+ return "{\"code\":500,\"msg\":\"" + mySql.Message + "\",\"data\":[],\"count\":" + 0 + "}";
+ }
+ }
+ return "{\"code\":19999,\"msg\":\"输入为空\"}";
+ }
+ }
+}
\ No newline at end of file
diff --git a/KJDService/KJD_WebService/BLL/WXXD/WXShopManage.cs b/KJDService/KJD_WebService/BLL/WXXD/WXShopManage.cs
index caa208a..2d5ed4d 100644
--- a/KJDService/KJD_WebService/BLL/WXXD/WXShopManage.cs
+++ b/KJDService/KJD_WebService/BLL/WXXD/WXShopManage.cs
@@ -96,7 +96,7 @@ namespace KJD_Web.BLL.WXXD
}
else
{
- sql = "SELECT s.*,se.expire_time FROM wxxd.shop s" +
+ sql = "SELECT s.*,se.user_points_expire_time FROM wxxd.shop s" +
" LEFT JOIN wxxd.shop_expire se ON s.shop_id=se.shop_id" +
" WHERE 1=1";
sql += where; // where 子句
diff --git a/KJDService/KJD_WebService/BLL/WXXD/WXUserManage.cs b/KJDService/KJD_WebService/BLL/WXXD/WXUserManage.cs
index 56a61b4..51ae904 100644
--- a/KJDService/KJD_WebService/BLL/WXXD/WXUserManage.cs
+++ b/KJDService/KJD_WebService/BLL/WXXD/WXUserManage.cs
@@ -16,7 +16,7 @@ namespace KJD_Web.BLL.WXXD
{
public class WXUserManage
{
- public static bool GetSign(string signData)
+ public static bool GetSign(string signData, bool isUserLogin = false)
{
if (string.IsNullOrEmpty(signData)) { return false; }
@@ -25,6 +25,17 @@ namespace KJD_Web.BLL.WXXD
string time1 = RegexUtils.GetStringQuery(ref signData, "code");
if (time1 != EncrypUtil.Encryption(time))
return false;
+
+ if (!isUserLogin)
+ {
+ var user_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref signData, "user_name"))?.ParseToString();
+ if (user_name.IsNullOrEmpty())
+ {
+ //return "{\"code\":500,\"msg\":\"请输入用户名\"}";
+ return false;
+ }
+ }
+
return true;
}
@@ -32,7 +43,7 @@ namespace KJD_Web.BLL.WXXD
{
if (!string.IsNullOrEmpty(inputData))
{
- if (!GetSign(inputData))
+ if (!GetSign(inputData, true))
return "{\"code\":999,\"msg\":\"校验失败\"}";
var mobile = RegexUtils.GetStringQuery(ref inputData, "mobile")?.Replace("'", "\\'");
diff --git a/KJDService/KJD_WebService/KJD_WebService.csproj b/KJDService/KJD_WebService/KJD_WebService.csproj
index edbd917..4f62324 100644
--- a/KJDService/KJD_WebService/KJD_WebService.csproj
+++ b/KJDService/KJD_WebService/KJD_WebService.csproj
@@ -113,7 +113,7 @@
-
+
diff --git a/KJDService/KJD_WebService/Model/WxModel/WxOptimizeExpressInfo.cs b/KJDService/KJD_WebService/Model/WxModel/WxOptimizeExpressInfo.cs
new file mode 100644
index 0000000..1bbb090
--- /dev/null
+++ b/KJDService/KJD_WebService/Model/WxModel/WxOptimizeExpressInfo.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+
+namespace KJD_Web.Model.WxModel
+{
+ public class WxOptimizeExpressInfo
+ {
+ public int id { get; set; }
+ public string delivery_id { get; set; }
+ public string delivery_name { get; set; }
+ public string waybill_id { get; set; }
+ public int status { get; set; }
+ public string order_id { get; set; }
+ public string bind_order_id { get; set; }
+ public string shop_id { get; set; }
+ public DateTime add_time { get; set; }
+ public DateTime? use_time { get; set; }
+ public DateTime? waybill_pickup_time { get; set; }
+ }
+
+ public class WxOptimizeRstInfo
+ {
+ public int id { get; set; }
+ public string shop_id { get; set; }
+ public string order_id { get; set; }
+ public string optimize_rst { get; set; }
+ public string waybill_id { get; set; }
+ public string delivery_name { 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/Utils/Extension/Extension.Convert.cs b/KJDService/KJD_WebService/Utils/Extension/Extension.Convert.cs
index b47e916..7eb1b74 100644
--- a/KJDService/KJD_WebService/Utils/Extension/Extension.Convert.cs
+++ b/KJDService/KJD_WebService/Utils/Extension/Extension.Convert.cs
@@ -345,6 +345,17 @@ namespace NaiBa.Util.Extension
{
return null;
}
+
+ try
+ {
+ return DateTime.Parse(str);
+ }
+ catch
+ {
+ }
+
+ if (str.Contains("年") && str.Contains("月") && str.Contains("日") && !str.Contains("周"))
+ str = str.Replace("年", "-").Replace("月", "-").Replace("日", "").Replace("时", ":").Replace("分", ":").Replace("秒", "").Trim(' ', ':');
if (str.Contains("-") || str.Contains("/"))
{
return DateTime.Parse(str);
@@ -485,6 +496,8 @@ namespace NaiBa.Util.Extension
}
else
{
+ if (obj is DateTime)
+ return (obj as DateTime?).Value.ToString("yyyy-MM-dd HH:mm:ss");
return obj.ToString();
}
}
diff --git a/KJDService/KJD_WebService/WXShopService.asmx.cs b/KJDService/KJD_WebService/WXShopService.asmx.cs
index ede60e1..b07e2a3 100644
--- a/KJDService/KJD_WebService/WXShopService.asmx.cs
+++ b/KJDService/KJD_WebService/WXShopService.asmx.cs
@@ -211,7 +211,7 @@ namespace KJD_Web
string jsontext = GetRequestJsonString();
var result = jsontext;
- result = new WXDeliveryManage().AddWaybill(jsontext);
+ result = new WXExpressOptimizeManage().AddWaybill(jsontext);
Context.Response.Write(result);
Context.Response.End();
@@ -222,7 +222,7 @@ namespace KJD_Web
string jsontext = GetRequestJsonString();
var result = jsontext;
- result = new WXDeliveryManage().DelWaybill(jsontext);
+ result = new WXExpressOptimizeManage().DelWaybill(jsontext);
Context.Response.Write(result);
Context.Response.End();
@@ -233,7 +233,7 @@ namespace KJD_Web
string jsontext = GetRequestJsonString();
var result = jsontext;
- result = new WXDeliveryManage().GetWayBill(jsontext);
+ result = new WXExpressOptimizeManage().GetWayBill(jsontext);
Context.Response.Write(result);
Context.Response.End();
@@ -244,7 +244,7 @@ namespace KJD_Web
string jsontext = GetRequestJsonString();
var result = jsontext;
- result = new WXDeliveryManage().GetWayBill(jsontext, true);
+ result = new WXExpressOptimizeManage().GetWayBill(jsontext, true);
Context.Response.Write(result);
Context.Response.End();
@@ -255,7 +255,7 @@ namespace KJD_Web
string jsontext = GetRequestJsonString();
var result = jsontext;
- result = new WXDeliveryManage().SelectAndSetWaybill(jsontext);
+ result = new WXExpressOptimizeManage().SelectAndSetWaybill(jsontext);
Context.Response.Write(result);
Context.Response.End();
@@ -266,7 +266,7 @@ namespace KJD_Web
string jsontext = GetRequestJsonString();
var result = jsontext;
- result = new WXDeliveryManage().SelectWaybill(jsontext);
+ result = new WXExpressOptimizeManage().SelectWaybill(jsontext);
Context.Response.Write(result);
Context.Response.End();
@@ -281,7 +281,31 @@ namespace KJD_Web
string jsontext = GetRequestJsonString();
var result = jsontext;
- result = new WXDeliveryManage().UpdateUsedWaybill(jsontext);
+ result = new WXExpressOptimizeManage().UpdateUsedWaybill(jsontext);
+
+ Context.Response.Write(result);
+ Context.Response.End();
+ }
+
+ [WebMethod]
+ public void add_mdy_express_optimize_rst()
+ {
+ string jsontext = GetRequestJsonString();
+
+ var result = jsontext;
+ result = new WXExpressOptimizeManage().AddMdyExpressOptimizeRst(jsontext);
+
+ Context.Response.Write(result);
+ Context.Response.End();
+ }
+
+ [WebMethod]
+ public void get_express_optimize_rst()
+ {
+ string jsontext = GetRequestJsonString();
+
+ var result = jsontext;
+ result = new WXExpressOptimizeManage().GetExpressOptimizeRst(jsontext);
Context.Response.Write(result);
Context.Response.End();
diff --git a/TEMUKJD/BLL/PDDProdFormConverter.cs b/TEMUKJD/BLL/PDDProdFormConverter.cs
index a811dab..31837ab 100644
--- a/TEMUKJD/BLL/PDDProdFormConverter.cs
+++ b/TEMUKJD/BLL/PDDProdFormConverter.cs
@@ -659,6 +659,13 @@ namespace TemuKJD.BLL
shipment_limit_second_list = null,
sku69_code = "",
};
+ // 聚水潭广告sku价格为0库存不为零的给库存也改为0
+ if (skuInfo.multi_price == 0)
+ {
+ skuInfo.quantity = 0;
+ skuInfo.quantity_delta = 0;
+ }
+
// 聚水潭供应商价加价10%(最低1元)赚取差价
int addPrice = (skuInfo.multi_price * 0.1).ParseToInt();
if (addPrice < 100)
diff --git a/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdListForm.Designer.cs b/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdListForm.Designer.cs
index ccfd99b..d59a893 100644
--- a/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdListForm.Designer.cs
+++ b/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdListForm.Designer.cs
@@ -772,7 +772,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"",
"是",
"否"});
- this.cmbPddRelation.Location = new System.Drawing.Point(743, 5);
+ this.cmbPddRelation.Location = new System.Drawing.Point(743, 7);
this.cmbPddRelation.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbPddRelation.Name = "cmbPddRelation";
this.cmbPddRelation.Size = new System.Drawing.Size(47, 25);
@@ -827,7 +827,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.cmbCat2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.cmbCat2.FormattingEnabled = true;
- this.cmbCat2.Location = new System.Drawing.Point(278, 77);
+ this.cmbCat2.Location = new System.Drawing.Point(278, 75);
this.cmbCat2.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCat2.Name = "cmbCat2";
this.cmbCat2.Size = new System.Drawing.Size(46, 25);
@@ -912,7 +912,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"机会商品",
"以图搜品",
"外部数据"});
- this.cmbSourceType.Location = new System.Drawing.Point(278, 42);
+ this.cmbSourceType.Location = new System.Drawing.Point(278, 40);
this.cmbSourceType.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbSourceType.Name = "cmbSourceType";
this.cmbSourceType.Size = new System.Drawing.Size(46, 25);
@@ -958,7 +958,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"",
"是",
"否"});
- this.cmbWxCat.Location = new System.Drawing.Point(622, 7);
+ this.cmbWxCat.Location = new System.Drawing.Point(622, 5);
this.cmbWxCat.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbWxCat.Name = "cmbWxCat";
this.cmbWxCat.Size = new System.Drawing.Size(47, 25);
@@ -980,7 +980,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.cmbSort.Items.AddRange(new object[] {
"入库时间",
"认领总数"});
- this.cmbSort.Location = new System.Drawing.Point(381, 42);
+ this.cmbSort.Location = new System.Drawing.Point(381, 40);
this.cmbSort.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbSort.Name = "cmbSort";
this.cmbSort.Size = new System.Drawing.Size(46, 25);
@@ -1056,7 +1056,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.cmbGroupFilter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.cmbGroupFilter.FormattingEnabled = true;
- this.cmbGroupFilter.Location = new System.Drawing.Point(175, 42);
+ this.cmbGroupFilter.Location = new System.Drawing.Point(175, 40);
this.cmbGroupFilter.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbGroupFilter.Name = "cmbGroupFilter";
this.cmbGroupFilter.Size = new System.Drawing.Size(46, 25);
@@ -1071,7 +1071,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"是",
"否",
"导出未拉回"});
- this.cmbExportToOutServer.Location = new System.Drawing.Point(622, 42);
+ this.cmbExportToOutServer.Location = new System.Drawing.Point(622, 40);
this.cmbExportToOutServer.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbExportToOutServer.Name = "cmbExportToOutServer";
this.cmbExportToOutServer.Size = new System.Drawing.Size(47, 25);
@@ -1107,7 +1107,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"安全商品",
"违规商品",
"未校验"});
- this.cmbWxSafe.Location = new System.Drawing.Point(501, 42);
+ this.cmbWxSafe.Location = new System.Drawing.Point(501, 40);
this.cmbWxSafe.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbWxSafe.Name = "cmbWxSafe";
this.cmbWxSafe.Size = new System.Drawing.Size(47, 25);
@@ -1149,7 +1149,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.cmbCat1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.cmbCat1.FormattingEnabled = true;
- this.cmbCat1.Location = new System.Drawing.Point(175, 77);
+ this.cmbCat1.Location = new System.Drawing.Point(175, 75);
this.cmbCat1.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCat1.Name = "cmbCat1";
this.cmbCat1.Size = new System.Drawing.Size(46, 25);
@@ -1171,7 +1171,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.cmbCat3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.cmbCat3.FormattingEnabled = true;
- this.cmbCat3.Location = new System.Drawing.Point(381, 77);
+ this.cmbCat3.Location = new System.Drawing.Point(381, 75);
this.cmbCat3.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCat3.Name = "cmbCat3";
this.cmbCat3.Size = new System.Drawing.Size(46, 25);
@@ -1268,7 +1268,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"是",
"否",
"修复回传未拉回"});
- this.cmbHasReturn.Location = new System.Drawing.Point(743, 42);
+ this.cmbHasReturn.Location = new System.Drawing.Point(743, 40);
this.cmbHasReturn.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbHasReturn.Name = "cmbHasReturn";
this.cmbHasReturn.Size = new System.Drawing.Size(47, 25);
diff --git a/TEMUKJD/WXForms/AdminForms/WXWaybillManageForm.Designer.cs b/TEMUKJD/WXForms/AdminForms/WXWaybillManageForm.Designer.cs
new file mode 100644
index 0000000..54495b9
--- /dev/null
+++ b/TEMUKJD/WXForms/AdminForms/WXWaybillManageForm.Designer.cs
@@ -0,0 +1,582 @@
+
+namespace TemuKJD.WXForms.AdminForms
+{
+ partial class WXWaybillManageForm
+ {
+ ///
+ /// 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();
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WXWaybillManageForm));
+ this.panel3 = new System.Windows.Forms.Panel();
+ this.splitContainer1 = new System.Windows.Forms.SplitContainer();
+ this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
+ this.panel5 = new System.Windows.Forms.Panel();
+ this.btnDel = new DevComponents.DotNetBar.PanelEx();
+ this.panel4 = new System.Windows.Forms.Panel();
+ this.comboBox1 = new System.Windows.Forms.ComboBox();
+ this.btnImport = new DevComponents.DotNetBar.PanelEx();
+ this.btnSearch = new DevComponents.DotNetBar.PanelEx();
+ this.txtUserName = 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.splitContainer2 = new System.Windows.Forms.SplitContainer();
+ this.pbLoading = new System.Windows.Forms.PictureBox();
+ this.dgvExpress = new TemuKJD.UserComponent.DataGridViewEx();
+ this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
+ this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
+ this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+ this.colDbId = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colDeliveryId = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colBindOrderId = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colDeliveryName = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colWaybillId = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colWaybillPickupTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colOrderId = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colUseTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colAddTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colMsg = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colTest = new System.Windows.Forms.DataGridViewLinkColumn();
+ this.panel3.SuspendLayout();
+ ((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.splitContainer2)).BeginInit();
+ this.splitContainer2.Panel1.SuspendLayout();
+ this.splitContainer2.Panel2.SuspendLayout();
+ this.splitContainer2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pbLoading)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvExpress)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panel3
+ //
+ this.panel3.BackColor = System.Drawing.Color.White;
+ this.panel3.Controls.Add(this.splitContainer1);
+ this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.panel3.Location = new System.Drawing.Point(1, 33);
+ this.panel3.Name = "panel3";
+ this.panel3.Size = new System.Drawing.Size(1208, 589);
+ this.panel3.TabIndex = 36;
+ //
+ // 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(1208, 589);
+ this.splitContainer1.SplitterDistance = 72;
+ this.splitContainer1.TabIndex = 34;
+ //
+ // 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(1208, 72);
+ this.tableLayoutPanel2.TabIndex = 37;
+ //
+ // panel5
+ //
+ this.panel5.Controls.Add(this.btnDel);
+ this.panel5.Location = new System.Drawing.Point(945, 3);
+ this.panel5.Name = "panel5";
+ this.panel5.Size = new System.Drawing.Size(260, 66);
+ this.panel5.TabIndex = 1;
+ //
+ // btnDel
+ //
+ 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(161, 17);
+ this.btnDel.Name = "btnDel";
+ this.btnDel.Size = new System.Drawing.Size(81, 23);
+ 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 = 483;
+ this.btnDel.Text = "删除选中";
+ this.btnDel.Click += new System.EventHandler(this.btnDel_Click);
+ //
+ // panel4
+ //
+ this.panel4.Controls.Add(this.comboBox1);
+ this.panel4.Controls.Add(this.btnImport);
+ this.panel4.Controls.Add(this.btnSearch);
+ this.panel4.Controls.Add(this.txtUserName);
+ this.panel4.Controls.Add(this.label5);
+ this.panel4.Controls.Add(this.label1);
+ this.panel4.Controls.Add(this.pnlEmpty);
+ 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(936, 66);
+ this.panel4.TabIndex = 0;
+ //
+ // comboBox1
+ //
+ this.comboBox1.FormattingEnabled = true;
+ this.comboBox1.Items.AddRange(new object[] {
+ "",
+ "未使用",
+ "已使用"});
+ this.comboBox1.Location = new System.Drawing.Point(377, 13);
+ this.comboBox1.Name = "comboBox1";
+ this.comboBox1.Size = new System.Drawing.Size(127, 25);
+ this.comboBox1.TabIndex = 470;
+ this.comboBox1.Text = "未使用";
+ this.comboBox1.Visible = false;
+ //
+ // 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(14, 14);
+ this.btnImport.Name = "btnImport";
+ this.btnImport.Size = new System.Drawing.Size(81, 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 = 469;
+ this.btnImport.Text = "批量导入";
+ this.btnImport.Click += new System.EventHandler(this.btnImport_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(510, 14);
+ this.btnSearch.Name = "btnSearch";
+ this.btnSearch.Size = new System.Drawing.Size(56, 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 = 449;
+ this.btnSearch.Text = "搜索";
+ this.btnSearch.Visible = false;
+ this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
+ //
+ // txtUserName
+ //
+ this.txtUserName.Location = new System.Drawing.Point(187, 14);
+ this.txtUserName.Name = "txtUserName";
+ this.txtUserName.Size = new System.Drawing.Size(127, 23);
+ this.txtUserName.TabIndex = 419;
+ this.txtUserName.Visible = false;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(152, 17);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(44, 17);
+ this.label5.TabIndex = 420;
+ this.label5.Text = "账户:";
+ this.label5.Visible = false;
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(318, 17);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(68, 17);
+ this.label1.TabIndex = 418;
+ this.label1.Text = "使用状态:";
+ this.label1.Visible = false;
+ //
+ // 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(571, 14);
+ this.pnlEmpty.Name = "pnlEmpty";
+ this.pnlEmpty.Size = new System.Drawing.Size(56, 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.Visible = false;
+ //
+ // 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.dgvExpress);
+ 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(1208, 513);
+ this.splitContainer2.SplitterDistance = 484;
+ 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(579, 217);
+ 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;
+ //
+ // dgvExpress
+ //
+ this.dgvExpress.AllowUserToAddRows = false;
+ this.dgvExpress.AllowUserToDeleteRows = false;
+ dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
+ this.dgvExpress.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
+ this.dgvExpress.AutoRowNumber = true;
+ this.dgvExpress.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
+ this.dgvExpress.BackgroundColor = System.Drawing.Color.White;
+ this.dgvExpress.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.dgvExpress.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
+ this.dgvExpress.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvExpress.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.colSelect,
+ this.colDbId,
+ this.colDeliveryId,
+ this.colBindOrderId,
+ this.colDeliveryName,
+ this.colWaybillId,
+ this.colWaybillPickupTime,
+ this.colStatus,
+ this.colOrderId,
+ this.colShopId,
+ this.colUseTime,
+ this.colAddTime,
+ this.colMsg,
+ this.colTest});
+ this.dgvExpress.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.dgvExpress.Location = new System.Drawing.Point(4, 0);
+ this.dgvExpress.MultiSelectCheckBox = true;
+ this.dgvExpress.Name = "dgvExpress";
+ this.dgvExpress.ReadOnly = true;
+ this.dgvExpress.RowTemplate.Height = 23;
+ this.dgvExpress.ShowCellErrors = false;
+ this.dgvExpress.Size = new System.Drawing.Size(1200, 484);
+ this.dgvExpress.TabIndex = 5;
+ this.dgvExpress.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick);
+ //
+ // ucSplitPage1
+ //
+ this.ucSplitPage1.CurrentPage = 1;
+ this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Right;
+ this.ucSplitPage1.IsShowPageSize = true;
+ this.ucSplitPage1.Location = new System.Drawing.Point(819, 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(389, 25);
+ this.ucSplitPage1.TabIndex = 4;
+ this.ucSplitPage1.TotalPage = 1;
+ this.ucSplitPage1.PageChange += new System.Action