public ActionResult CheckIMAction(string id) { var obj = new IMMaterial().GetApplymentLst(id); if (obj == null) { return(View("Expire")); } var lst = obj.result as V_GM_IMWithStateDsp; if (lst == null) { return(View("Expire")); } ViewBag.No = lst.IMID; ViewBag.date = lst.IMDate.ToString("u"); ViewBag.EIType = lst.IMType; ViewBag.ProjectNo = lst.ProjectID; ViewBag.EXWarehouse = lst.EXWarehouseID; ViewBag.IMWarehouse = lst.IMWarehouseID; ViewBag.Operator = lst.Operator; ViewBag.OperateTime = lst.OperationTime.ToString("u"); ViewBag.CheckState = lst.CheckStateDsp; ViewBag.Remark = obj.remark; ViewBag.data = new IMMaterial().GetApplymentMatLst(id); ViewBag.CheckStateItems = new IMMaterial().CheckStateItems; ViewBag.OperationId = lst.OperationListID; return(View("CheckIM")); }
public ActionResult FillDetailByPurchaseNo(FormCollection paramsCollection) { string pId = paramsCollection["PurchaseMNo"]; dynamic result = new IMMaterial().GetDetailByPurchaseNo(pId); if (result != null) { X.GetCmp <TextField>("ProjectName").Text = result.ProjectNo; X.GetCmp <TextField>("Warehouse").Text = result.Warehouse; X.GetCmp <Store>("ApplyStore").LoadData(result.matLst); } return(this.Direct()); }
public ActionResult FillDetailByAllotmentNo(FormCollection paramsCollection) { string aId = paramsCollection["AllotmentNo"]; dynamic result = new IMMaterial().GetDetailByAllotmentNo(aId); if (result != null) { X.GetCmp <TextField>("EXWarehouse").Text = result.EXWarehouse; X.GetCmp <TextField>("IMWarehouse").Text = result.IMWarehouse; X.GetCmp <DateField>("EXDate").Value = result.EXDate; X.GetCmp <Store>("ApplyStore").LoadData(result.matLst); } return(this.Direct()); }
public ActionResult ReadApplymentLst(string id) { var obj = new IMMaterial().GetApplymentLst(id); if (obj == null) { return(View("Error")); } var lst = obj.result as V_GM_IMWithStateDsp; ViewBag.No = lst.IMID; ViewBag.date = lst.IMDate.ToString("u"); ViewBag.EIType = lst.IMType; ViewBag.ProjectNo = lst.ProjectID; ViewBag.EXWarehouse = lst.EXWarehouseID; ViewBag.IMWarehouse = lst.IMWarehouseID; ViewBag.Operator = lst.Operator; ViewBag.OperateTime = lst.OperationTime.ToString("u"); ViewBag.CheckState = lst.CheckStateDsp; ViewBag.Remark = obj.remark; ViewBag.data = new IMMaterial().GetApplymentMatLst(id); return(View("Detail")); }