/// <summary> /// 查询调拨单详细 /// </summary> /// <returns></returns> public ActionResult GetDetail() { string SnNum = WebUtil.GetFormValue <string>("SnNum"); string CompanyID = WebUtil.GetFormValue <string>("CompanyID", string.Empty); AllocateDetailEntity entity = new AllocateDetailEntity(); entity.OrderSnNum = SnNum; entity.CompanyID = CompanyID; Bill <AllocateOrderEntity, AllocateDetailEntity> bill = new AllocateOrder(CompanyID); List <AllocateDetailEntity> list = bill.GetOrderDetail(entity); DataResult <List <AllocateDetailEntity> > dataResult = new DataResult <List <AllocateDetailEntity> >(); dataResult.Code = (int)EResponseCode.Success; dataResult.Message = "响应成功"; dataResult.Result = list; return(Content(JsonHelper.SerializeObject(dataResult))); }
/// <summary> /// 编辑调拨单详细 /// </summary> /// <returns></returns> public ActionResult EditDetail() { string CompanyID = WebUtil.GetFormValue <string>("CompanyID", string.Empty); AllocateDetailEntity entity = WebUtil.GetFormObject <AllocateDetailEntity>("Entity"); Bill <AllocateOrderEntity, AllocateDetailEntity> bill = new AllocateOrder(CompanyID); string returnValue = bill.EditDetail(entity); DataResult result = new DataResult(); if (EnumHelper.GetEnumDesc <EReturnStatus>(EReturnStatus.Success) == returnValue) { result.Code = (int)EResponseCode.Success; result.Message = "调拨单详细编辑成功"; } else { result.Code = (int)EResponseCode.Exception; result.Message = "调拨单详细编辑失败"; } return(Content(JsonHelper.SerializeObject(result))); }
/// <summary> /// 查询调拨单详细分页 /// </summary> /// <returns></returns> public ActionResult GetDetailPage() { string CompanyID = WebUtil.GetFormValue <string>("CompanyID"); int PageIndex = WebUtil.GetFormValue <int>("PageIndex", 1); int PageSize = WebUtil.GetFormValue <int>("PageSize", 10); string OrderNum = WebUtil.GetFormValue <string>("OrderNum"); int AllocateType = WebUtil.GetFormValue <int>("AllocateType", 0); string ContractOrder = WebUtil.GetFormValue <string>("ContractOrder"); int Status = WebUtil.GetFormValue <int>("Status", 0); string BeginTime = WebUtil.GetFormValue <string>("BeginTime"); string EndTime = WebUtil.GetFormValue <string>("EndTime"); string StorageNum = WebUtil.GetFormValue <string>("StorageNum"); Bill <AllocateOrderEntity, AllocateDetailEntity> bill = new AllocateOrder(CompanyID); AllocateDetailEntity entity = new AllocateDetailEntity(); entity.CompanyID = CompanyID; entity.OrderNum = OrderNum; entity.AllocateType = AllocateType; entity.Status = Status; entity.BeginTime = BeginTime; entity.EndTime = EndTime; entity.StorageNum = StorageNum; PageInfo pageInfo = new PageInfo() { PageIndex = PageIndex, PageSize = PageSize }; List <AllocateDetailEntity> listResult = bill.GetDetailList(entity, ref pageInfo); DataListResult <AllocateDetailEntity> dataResult = new DataListResult <AllocateDetailEntity>() { Code = (int)EResponseCode.Success, Message = "响应成功", Result = listResult, PageInfo = pageInfo }; return(Content(JsonHelper.SerializeObject(dataResult))); }