public JsonResult UpdateExpressInfo(ExpressInfoModel model) { var result = new BaseResponse() { DoFlag = false, DoResult = "更新失败 ,请稍后重试……" }; #region 参数验证 if (string.IsNullOrEmpty(model.LogiscticId)) { result.DoResult = "请填写配送商ID"; return(Json(result)); } if (string.IsNullOrEmpty(model.LogiscticNo)) { result.DoResult = "请填写物流单号"; return(Json(result)); } if (string.IsNullOrEmpty(model.Remark)) { result.DoResult = "请填写备注"; return(Json(result)); } if (string.IsNullOrEmpty(model.LogiscticContent)) { model.LogiscticContent = ""; } model.RowModifyDate = DateTime.Now; model.IsDel = 0; #endregion try { var ptcp = ExpressClient.Instance.UpdateExpressInfo(model); if (ptcp.DoFlag) { result.DoFlag = true; result.DoResult = "更新成功"; } else { result.DoResult = ptcp.DoResult; } } catch (Exception ex) { result.DoResult = "更新异常"; } return(Json(result)); }
//查询单个 public ExpressInfoModel QueryExpressInfoEntity(int SysNo, string OrderCode) { var model = new ExpressInfoModel(); var response = BSClient.Send <EC_QueryExpressInfoEntityResponse>(new EC_QueryExpressInfoEntity { SysNo = SysNo, OrderCode = OrderCode }); if (response.DoFlag && response.Dto != null) { model = Mapper.Map <EC_QueryExpressInfoListDto, ExpressInfoModel>(response.Dto); } return(model); }
//修改基本信息(已归档数据无法修改)-可以改为已签收 public EC_ExpressInfoUpdateResponse UpdateExpressInfo(ExpressInfoModel model) { return(BSClient.Send <EC_ExpressInfoUpdateResponse>(Mapper.Map <ExpressInfoModel, EC_ExpressInfoUpdate>(model))); }
public void update(root root) { expressInfoModel = root.result; }