@using ShwasherSys.Authorization.Permissions @using ShwasherSys.BasicInfo @using ShwasherSys.Models.Layout @using ShwasherSys.Models.Modal @using ShwasherSys.Views.Shared.New.Modals @using ShwasherSys.Views.Shared.New.Table @using InputTypes = ShwasherSys.Views.Shared.New.Modals.InputTypes @using ModalBodyViewModel = ShwasherSys.Views.Shared.New.Modals.ModalBodyViewModel @using ModalHeaderViewModel = ShwasherSys.Models.Modal.ModalHeaderViewModel @using SpecialInputModel = ShwasherSys.Views.Shared.New.Modals.SpecialInputModel @{ ViewBag.Title = "原材料出库信息维护"; string activeMenu = PermissionNames.PagesRawMaterialStoreRmStoreOutMg; //The menu item will be active for this page. ViewBag.ActiveMenu = activeMenu; List applyStatus = ViewBag.ApplyStatus; var searchForm = new SearchFormViewModal(new List() { new SearchItem("rmProductNo","原材料编码"), new SearchItem("productName","名称"), new SearchItem("model","规格"), new SearchItem("applyOutDate","申请时间",FiledType.Dnull,ExpType.GreaterOrEqual), new SearchItem("applyOutDate","至",FiledType.Dnull,ExpType.LessOrEqual), new SearchItem("applyStatus","申请状态",FiledType.I,ExpType.Equal).SetSearchItem(applyStatus) }); var table = new TableViewModel("/api/services/app/RmOutStore/GetAllView", activeMenu, searchForm) .SetFields(new List() { new FieldItem("rmProductNo", "原材料编码"), new FieldItem("productName", "名称"), new FieldItem("productionOrderNo", "流转单号"), new FieldItem("productBatchNum", "批次号"), new FieldItem("material", "材质"), new FieldItem("model", "规格"), new FieldItem("quantity","申请数量"), new FieldItem("applyOutDate","申请出库时间","DateFormatter"), new FieldItem("actualQuantity","出库数量"), new FieldItem("auditDate","审核时间","DateFormatter"), new FieldItem("applyStatus","状态","ApplyStatusFormatter"), }); } @section css{ } @Html.Partial("New/Table/_Table", table) @section modal{ @{ var modal = new ModalViewModel("出库确认","", new ModalBodyViewModel(new List() { new Input("id",hide:true), new Input("applyStatus",hide:true), new Input("productBatchNum","批次号"), new Input("productionOrderNo","流转单号").SetNotRequired(), new Input("rmProductNo", "原材料编号"), new Input("quantity", "申请数量",@class:"number"), new Input("model", "规格"), new Input("material", "材质"), new Input("actualQuantity", "出库数量",@class:"number"), })); // var modal2 = new ModalViewModel("入库确认", new ModalBodyViewModel(new List() //{ // new Input("id",hide:true), // new Input("storeHouseId",hide:true), // new Input("applyStatus",hide:true), // new Input("productionOrderNo","批次号"), // new Input("rmProductNo", "原材料编号"), // new Input("applyQuantity", "申请数量",@class:"number"), // new Input("quantity", "入库数量",@class:"number"), // }), "modal2"); } @Html.Partial("New/Modals/_Modal", modal) @*@Html.Partial("New/Modals/_Modal", modal2)*@ @*@Html.Partial("Modals/Query/_RmProduct", "rmProductNo,model,material")*@ } @section scripts { }
@Html.DropDownList("hid-applyStatus", applyStatus) @*@Html.DropDownList("hid-du", duty) @Html.DropDownList("hid-de", depart) @Html.DropDownList("hid-gender", gender)*@