|
|
@@ -2163,6 +2163,7 @@ namespace SiteCore
|
|
|
{ "Userid",cytUserId },
|
|
|
//{ "pwd", "lt666888" },
|
|
|
{ "LTOrderId", ceErpTradeCell.OrderSn },
|
|
|
+ { "OrderId", ceErpTradeCell.ctid },
|
|
|
{ "CourierNumber", exinfo.out_sid },
|
|
|
{ "ExpressCompanyName", exinfo.company_name }
|
|
|
};
|
|
|
@@ -2698,9 +2699,8 @@ namespace SiteCore
|
|
|
return responseStr;
|
|
|
}
|
|
|
|
|
|
- public static List<int> spu_products = new List<int>() { 4, 13, 19, 24, 28, 32, 40, 51, 57, 1971, 2319, 2377, 2521, 2524, 2533, 2538, 2542, 2554, 2556, 2557, 2559, 2560, 2561, 2562, 2563, 2564, 2565, 2566, 2568, 2569, 2570, 2571, 2572, 2619, 2625, 2634, 2636, 2637, 2638, 2645, 2646 };
|
|
|
+ public static List<int> spu_products = new List<int>() { 4, 13, 19, 24, 28, 32, 40, 51, 57, 1971, 2319, 2377, 2521, 2524, 2533, 2538, 2542, 2554, 2556, 2557, 2559, 2560, 2561, 2562, 2563, 2564, 2565, 2566, 2568, 2569, 2570, 2571, 2572, 2619, 2625, 2636, 2637, 2638, 2645, 2646 };
|
|
|
public static List<int> spu_shopIds = new List<int>() { 5, 6, 8, 10, 11, 12, 14, 15, 16, 18, 24, 27, 28, 31, 32, 56, 61 };
|
|
|
- public static List<int> spu_oldProducts = new List<int>() { 4, 13, 2524, 2533, 2554, 2557 };
|
|
|
|
|
|
public static void setSpuData(CeErpTrade father)
|
|
|
{
|
|
|
@@ -2728,21 +2728,7 @@ namespace SiteCore
|
|
|
if (!string.IsNullOrEmpty(spu_id))
|
|
|
{
|
|
|
CeErpTradeCell ceErpTradeCell = CeErpTradeCell.GetByCtid(ceErpTradeCellExtend.ctid);
|
|
|
- string result = designHelper.API_CheckOrderTo(ceErpTradeCellExtend.ctid, ceErpTradeCellExtend.spu_id, ceErpTradeCell.ShopId);
|
|
|
- ceErpTradeCellExtend.ToType = result;
|
|
|
- if (spu_products.Contains(ceErpTradeCell.ProductId) || ceErpTradeCell.seller_memo.IndexOf("手绘") > -1 || ceErpTradeCell.seller_memo.IndexOf("电子稿") > -1 || ceErpTradeCell.isDianziOrder > 0)
|
|
|
- {
|
|
|
- ceErpTradeCellExtend.ToType = "外协";
|
|
|
- }
|
|
|
- if ((ceErpTradeCell.seller_memo.Contains("改稿") || ceErpTradeCell.OtherMemo.Contains("改稿")) && spu_shopIds.Contains(ceErpTradeCell.ShopId) && !spu_oldProducts.Contains(ceErpTradeCell.ProductId))
|
|
|
- {
|
|
|
- ceErpTradeCellExtend.ToType = "内部";
|
|
|
- }
|
|
|
- if ("外协".Equals(ceErpTradeCellExtend.ToType))
|
|
|
- {
|
|
|
- string sql_pay = "update CE_ErpTradeCell with(rowlock) set DispatchSort=2 where ctid='" + ceErpTradeCellExtend.ctid + "';";
|
|
|
- CeErpTradeCell.ExecuteNonQuery(sql_pay.ToString());
|
|
|
- }
|
|
|
+ ceErpTradeCellExtend = sendSpuData(ceErpTradeCell, ceErpTradeCellExtend);
|
|
|
}
|
|
|
|
|
|
if (ceErpTradeCellExtend.ID == 0)
|
|
|
@@ -2763,6 +2749,31 @@ namespace SiteCore
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public static CeErpTradeCellExtend sendSpuData(CeErpTradeCell ceErpTradeCell, CeErpTradeCellExtend ceErpTradeCellExtend)
|
|
|
+ {
|
|
|
+ string result = designHelper.API_CheckOrderTo(ceErpTradeCellExtend.ctid, ceErpTradeCellExtend.spu_id, ceErpTradeCell.ShopId);
|
|
|
+ ceErpTradeCellExtend.ToType = result;
|
|
|
+ if (spu_products.Contains(ceErpTradeCell.ProductId) || ceErpTradeCell.seller_memo.IndexOf("手绘") > -1 || ceErpTradeCell.seller_memo.IndexOf("电子稿") > -1 || ceErpTradeCell.isDianziOrder > 0)
|
|
|
+ {
|
|
|
+ ceErpTradeCellExtend.ToType = "外协";
|
|
|
+ }
|
|
|
+ if ((ceErpTradeCell.seller_memo.Contains("改稿") || ceErpTradeCell.OtherMemo.Contains("改稿")) && spu_shopIds.Contains(ceErpTradeCell.ShopId) && !spu_products.Contains(ceErpTradeCell.ProductId))
|
|
|
+ {
|
|
|
+ ceErpTradeCellExtend.ToType = "内部";
|
|
|
+ }
|
|
|
+ if ("外协".Equals(ceErpTradeCellExtend.ToType))
|
|
|
+ {
|
|
|
+ string sql_pay = "update CE_ErpTradeCell with(rowlock) set DispatchSort=2 where ctid='" + ceErpTradeCellExtend.ctid + "';";
|
|
|
+ CeErpTradeCell.ExecuteNonQuery(sql_pay.ToString());
|
|
|
+ }
|
|
|
+ if (ceErpTradeCellExtend.ID > 0)
|
|
|
+ {
|
|
|
+ ceErpTradeCellExtend.Update();
|
|
|
+ }
|
|
|
+ return ceErpTradeCellExtend;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
public static double calculationPrice(CeErpTradeCell ceErpTradeCell)
|
|
|
{
|
|
|
double price = 0;
|