public ActionResult Edit(string id) { var userName = MmsHelper.GetUserName(); var currentProject = MmsHelper.GetCurrentProject(); var data = new CheckApiController().GetEditMaster(id); var codeService = new sys_codeService(); var model = new { form = data.form, scrollKeys = data.scrollKeys, urls = MmsHelper.GetEditUrls("check"), resx = MmsHelper.GetEditResx("盘点单"), dataSource = new { measureUnit = codeService.GetMeasureUnitListByType(), warehouseItems = new mms_warehouseService().GetWarehouseItems(currentProject), yearItems = codeService.GetYearItems(), monthItems = codeService.GetMonthItems() }, defaultForm = new mms_check().Extend(new { BillNo = id, BillDate = DateTime.Now, DoPerson = userName, Years = DateTime.Now.Year, Months = DateTime.Now.Month }), defaultRow = new { BookNum = 0, BookMoney = 0, ActualNum = 0, ActualUnitPrice = 0, OperateNum = 0, OperateMoney = 0 }, setting = new { postFormKeys = new string[] { "BillNo" }, postListFields = new string[] { "BillNo", "RowId", "MaterialCode", "Unit", "BookNum", "BookMoney", "ActualNum", "ActualUnitPrice", "OperateNum", "OperateMoney", "Remark" } } }; return(View(model)); }
public ActionResult Edit(string id) { var userName = MmsHelper.GetUserName(); var currentProject = MmsHelper.GetCurrentProject(); var data = new ReceiveApiController().GetEditMaster(id); var codeService = new sys_codeService(); var model = new { form = data.form, scrollKeys = data.scrollKeys, urls = MmsHelper.GetEditUrls("receive"), resx = MmsHelper.GetEditResx("收料单"), dataSource = new { measureUnit = codeService.GetMeasureUnitListByType(), supplyType = codeService.GetValueTextListByType("SupplyType"), payKinds = codeService.GetValueTextListByType("PayType"), warehouseItems = new mms_warehouseService().GetWarehouseItems(currentProject) }, defaultForm = new mms_receive().Extend(new { BillNo = id, BillDate = DateTime.Now, DoPerson = userName, ReceiveDate = DateTime.Now, SupplyType = codeService.GetDefaultCode("SupplyType"), PayKind = codeService.GetDefaultCode("PayType"), }), defaultRow = new { CheckNum = 1, Num = 1, UnitPrice = 0, Money = 0, PrePay = 0 }, setting = new { postFormKeys = new string[] { "BillNo" }, postListFields = new string[] { "BillNo", "RowId", "MaterialCode", "Unit", "CheckNum", "Num", "UnitPrice", "PrePay", "Money", "Remark" } } }; return(View(model)); }
public ActionResult Edit(string id = "") { var userName = MmsHelper.GetUserName(); var currentProject = MmsHelper.GetCurrentProject(); var data = new DealApiController().GetEditMaster(id); var codeService = new sys_codeService(); var model = new { form = data.form, scrollKeys = data.scrollKeys, urls = MmsHelper.GetEditUrls("deal"), resx = MmsHelper.GetEditResx("处置单"), dataSource = new { measureUnit = codeService.GetMeasureUnitListByType(), disposalTypes = codeService.GetValueTextListByType("DisposalType"), disposalWays = codeService.GetValueTextListByType("DisposalWay") }, defaultForm = new mms_deal().Extend(new { BillNo = id, BillDate = DateTime.Now, DoPerson = userName, ApplyDate = DateTime.Now, DealType = codeService.GetDefaultCode("DisposalType"), DealKind = codeService.GetDefaultCode("DisposalWay"), }), defaultRow = new { UnitPrice = 0, Num = 1, Money = 0, DealDate = DateTime.Now }, setting = new { postFormKeys = new string[] { "BillNo" }, postListFields = new string[] { "BillNo", "RowId", "MaterialName", "Model", "Unit", "DealDate", "ExpendCompany", "UnitPrice", "Num", "Money", "Remark" } } }; return(View(model)); }
public ActionResult Edit(string id) { var userName = MmsHelper.GetUserName(); var currentProject = MmsHelper.GetCurrentProject(); var data = new SendApiController().GetEditMaster(id); var codeService = new sys_codeService(); var model = new { form = data.form, scrollKeys = data.scrollKeys, urls = MmsHelper.GetEditUrls("send"), resx = MmsHelper.GetEditResx("发料单"), dataSource = new { priceKinds = codeService.GetValueTextListByType("Pricing"), materialUse = codeService.GetValueTextListByType("MaterialUse"), measureUnit = codeService.GetMeasureUnitListByType(), warehouseItems = new mms_warehouseService().GetWarehouseItems(currentProject) }, defaultForm = new mms_send().Extend(new { BillNo = id, BillDate = DateTime.Now, DoPerson = userName, SendDate = DateTime.Now, PriceKind = codeService.GetDefaultCode("Pricing") }), defaultRow = new { Num = 1, UnitPrice = 0, Money = 0 }, setting = new { postFormKeys = new string[] { "BillNo" }, postListFields = new string[] { "BillNo", "RowId", "MaterialCode", "Unit", "UnitPrice", "Num", "Money", "Remark", "SrcBillType", "SrcBillNo", "SrcRowId" } } }; return(View(model)); }
public ActionResult Edit(string id) { var userName = MmsHelper.GetUserName(); var currentProject = MmsHelper.GetCurrentProject(); var data = new RentOffApiController().GetEditMaster(id); var codeService = new sys_codeService(); var model = new { form = data.form, scrollKeys = data.scrollKeys, urls = MmsHelper.GetEditUrls("rentOff"), resx = MmsHelper.GetEditResx("停租单"), dataSource = new { measureUnit = codeService.GetMeasureUnitListByType(), warehouseItems = new mms_warehouseService().GetWarehouseItems(currentProject) }, defaultForm = new mms_rentOff().Extend(new { BillNo = id, BillDate = DateTime.Now, DoPerson = userName, BeginDate = DateTime.Now }), defaultRow = new { UnitPrice = 0, Num = 1, Day = 1, PrePay = 0 }, setting = new { postFormKeys = new string[] { "BillNo" }, postListFields = new string[] { "BillNo", "RowId", "MaterialCode", "Unit", "UnitPrice", "Num", "Day", "Money", "Remark" } } }; return(View(model)); }
public ActionResult Edit(string id) { var userName = MmsHelper.GetUserName(); var currentProject = MmsHelper.GetCurrentProject(); var data = new RentinApiController().GetEditMaster(id); var codeService = new sys_codeService(); var model = new { form = data.form, scrollKeys = data.scrollKeys, urls = MmsHelper.GetEditUrls("rentin"), resx = MmsHelper.GetEditResx("租赁进场单"), dataSource = new { measureUnit = codeService.GetMeasureUnitListByType(), materialUse = codeService.GetValueTextListByType("MaterialUse"), billingUnit = codeService.GetValueTextListByType("BillingUnit") }, defaultForm = new mms_rentIn().Extend(new { BillNo = id, BillDate = DateTime.Now, DoPerson = userName, RentInDate = DateTime.Now, Purpose = codeService.GetDefaultCode("MaterialUse") }), defaultRow = new { Num = 1, UnitPrice = 1 }, setting = new { postFormKeys = new string[] { "BillNo" }, postListFields = new string[] { "BillNo", "RowId", "MaterialCode", "Unit", "UseUnit", "PriceUnit", "Num", "UnitPrice", "Remark" } } }; return(View(model)); }
public ActionResult Edit(string id = "") { var userName = MmsHelper.GetUserName(); var currentProject = MmsHelper.GetCurrentProject(); var data = new RentoutApiController().GetEditMaster(id); var codeService = new sys_codeService(); var model = new { form = data.form, scrollKeys = data.scrollKeys, urls = MmsHelper.GetEditUrls("rentout"), resx = MmsHelper.GetEditResx("租赁出场单"), dataSource = new { measureUnit = codeService.GetMeasureUnitListByType() }, defaultForm = new mms_rentOut().Extend(new { BillNo = id, BillDate = DateTime.Now, DoPerson = userName, RentOutDate = DateTime.Now }), defaultRow = new { CheckNum = 1, InStoreNum = 1, InStoreUnitPrice = 0, TotalMoney = 0, PrePay = 0 }, setting = new { postFormKeys = new string[] { "BillNo" }, postListFields = new string[] { "BillNo", "RowId", "SrcBillNo", "SrcRowId", "MaterialCode", "Unit", "Num", "Remark" } } }; return(View(model)); }