|
|
@@ -724,6 +724,29 @@ namespace SiteCore.Handler
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ public void getOrderMemo()
|
|
|
+ {
|
|
|
+ string orderSn = GetString("orderSn");
|
|
|
+ CeErpTradeCell ceErpTradeCell = CeErpTradeCell.GetByCode(orderSn);
|
|
|
+ if (ceErpTradeCell == null)
|
|
|
+ {
|
|
|
+ ceErpTradeCell = CeErpTradeCell.GetByCtid(orderSn);
|
|
|
+ }
|
|
|
+ if (ceErpTradeCell == null)
|
|
|
+ {
|
|
|
+ returnErrorMsg("查无订单!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (ceErpTradeCell.SupplierId != 64 && ceErpTradeCell.SupplierId != 80 && ceErpTradeCell.SupplierId != 126)
|
|
|
+ {
|
|
|
+ returnErrorMsg("查无订单!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ ReturnSuccess("{" + string.Format("\"data\":{0}", JsonConvert.SerializeObject(new { tid = ceErpTradeCell.tid, memo = ceErpTradeCell.CheckMemo })) + "}");
|
|
|
+ return;
|
|
|
+
|
|
|
+ }
|
|
|
public static string API_LogisticsOnlineSend(string orderid, string pCode, string comCode, string out_Sid)
|
|
|
{
|
|
|
if (string.IsNullOrWhiteSpace(orderid) || string.IsNullOrWhiteSpace(pCode) || string.IsNullOrWhiteSpace(comCode) || string.IsNullOrWhiteSpace(out_Sid))
|