@using ShwasherSys.Authorization.Permissions @using ShwasherSys.Models.Layout @using ShwasherSys.Views.Shared.New.Modals @using ShwasherSys.Views.Shared.New.Table @using ModalBodyViewModel = ShwasherSys.Views.Shared.New.Modals.ModalBodyViewModel @{ ViewBag.Title = "原材料入库信息维护"; string activeMenu = PermissionNames.PagesRawMaterialStoreRmStoreEnterMg; //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("applyEnterDate","申请时间",FiledType.Dnull,ExpType.GreaterOrEqual), new SearchItem("applyEnterDate","至",FiledType.Dnull,ExpType.LessOrEqual), new SearchItem("applyStatus","申请状态",FiledType.I,ExpType.Equal).SetSearchItem(applyStatus) }); var table = new TableViewModel("/api/services/app/RmEnterStore/GetAllView", activeMenu, searchForm) .SetFields(new List() { new FieldItem("rmProductNo", "原材料编码"), new FieldItem("productName", "名称"), new FieldItem("productBatchNum", "批次号"), new FieldItem("material", "材质"), new FieldItem("model", "规格"), new FieldItem("applyQuantity","申请数量"), new FieldItem("applyEnterDate","申请入库时间","DateFormatter"), new FieldItem("quantity","入库数量"), new FieldItem("storeLocationNo", "库区"), 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("storeHouseId",hide:true), new Input("applyStatus",hide:true), //new Input("productBatchNum","批次号").SetNotRequired(), new Input("rmProductNo", "原材料编号").SetSearchIcon("query_rmProduct_modal","modal"), new Input("applyQuantity", "申请数量",@class:"number",other:"min=0.001"), new Input("model", "规格"), new Input("material", "材质"), new Input("storeLocationNo", "库区").SetSearchIcon("query_storeHouseLocation_modal","modal"), })); 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("productBatchNum","批次号"), new Input("rmProductNo", "原材料编号"), new Input("applyQuantity", "申请数量",@class:"number"), new Input("quantity", "入库数量",@class:"number",other:"min=0.001"), }), "modal2"); } @Html.Partial("New/Modals/_Modal", modal) @Html.Partial("New/Modals/_Modal", modal2) @Html.Partial("Modals/Query/_RmProduct", "rmProductNo,model,material") @Html.Partial("Modals/Query/_StoreHouseLocation", "storeHouseId,storeLocationNo") } @section scripts { }
@Html.DropDownList("hid-applyStatus", applyStatus) @*@Html.DropDownList("hid-du", duty) @Html.DropDownList("hid-de", depart) @Html.DropDownList("hid-gender", gender)*@