public ResultModel <bool> UploadNodeForStorage(Model_Waybill_Node node, int customerId, int?parentStorageId) { if (node != null) { LogServer.AddLogText("--------------------------------------------------------------", node.BaseId); } else { LogServer.AddLogText("实体为空", "XXX"); } ResultModel <bool> result = new ResultModel <bool>(); try { LogServer.AddLogText(string.Format("上报第三方运单节点{0},customerId:{1},parentStorageId", node.BaseId, customerId, parentStorageId), node.BaseId); result.Data = PDA_WaybillServer.UploadWaybill_Node(node, customerId, parentStorageId); LogServer.AddLogText("退出节点逻辑", node.BaseId); } catch (Exception ex) { HandleExcepthin(result, ex); LogServer.AddLogText("节点错误", node.BaseId); } finally { if (node != null) { LogServer.AddLogText("--------------------------------------------------------------", node.BaseId); } } return(result); }
//上报签收图片统一入口,如果是自运单,则CustomerID传入0 public ResultModel <bool> UploadPostbackForCustomers(Model_Waybill_Postback_Pic postback, DateTime postbackTime, List <object> picList, int customerId) { if (postback != null) { LogServer.AddLogText("-------------------------------------------------------------------", postback.BaseId); } else { LogServer.AddLogText("实体类为空", "xxxx"); } ResultModel <bool> result = new ResultModel <bool>(); try { LogServer.AddLogText(string.Format("上传图片{0},DateTime:{1},customerId:{2}", postback.BaseId, postbackTime, customerId), postback.BaseId); result.Data = PDA_WaybillServer.UploadWaybill_Postbacks(postback, postbackTime, picList, customerId); LogServer.AddLogText("退出保存图片逻辑", postback.BaseId); } catch (Exception ex) { HandleExcepthin(result, ex); LogServer.AddLogText("图片错误", postback.BaseId); } finally { if (postback != null) { LogServer.AddLogText("--------------------------------------------------------------", postback.BaseId); } } return(result); }
/// <summary> /// 上传节点信息 弃用 /// </summary> /// <param name="nodeList">节点集合</param> /// <returns></returns> public ResultModel <bool> UploadWaybill_Node(List <Model_Waybill_Node> nodeList) { ResultModel <bool> result = new ResultModel <bool>(); try { foreach (Model_Waybill_Node item in nodeList) { if (PDA_HuadongTmsOrderServer.ChecNumber(item.BaseId) && item.BaseId.Length == 12) { result.Data = PDA_WaybillServer.UploadWaybill_Node(nodeList); } else { //result.Data = PDA_HuadongTmsOrderServer.GethuadongTmsOrderNode(nodeList); result.Data = PDA_WaybillServer.UploadWaybill_Node(nodeList[0], 669, null); } } // result.Data = PDA_WaybillServer.UploadWaybill_Node(nodeList); } catch (Exception ex) { HandleExcepthin(result, ex); } return(result); }
/// <summary> /// 上传运单信息 /// </summary> /// <param name="waybillList">运单集合</param> /// <returns></returns> public ResultModel <bool> UploadWaybill_Base(List <Model_Waybill_Base> waybillList) { ResultModel <bool> result = new ResultModel <bool>(); try { result.Data = PDA_WaybillServer.UploadWaybill_Base(waybillList); } catch (Exception ex) { HandleExcepthin(result, ex); } return(result); }
/// <summary> /// 上传签收图片 弃用 /// </summary> /// <param name="postback">签收信息</param> /// <param name="picList">图片集合</param> /// <returns></returns> public ResultModel <bool> UploadWaybill_Postback(Model_Waybill_Postback_Pic postback, DateTime postbackTime, List <object> picList) { ResultModel <bool> result = new ResultModel <bool>(); try { if (PDA_HuadongTmsOrderServer.ChecNumber(postback.BaseId) && postback.BaseId.Length == 12) { result.Data = PDA_WaybillServer.UploadWaybill_Postback(postback, postbackTime, picList); } else { //result.Data = PDA_HuadongTmsOrderServer.UploadWaybill_HuaDong(postback, postbackTime, picList); result.Data = PDA_WaybillServer.UploadWaybill_Postback(postback, postbackTime, picList, 669); } } catch (Exception ex) { HandleExcepthin(result, ex); } return(result); }