@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.PagesProductInfoRmProduct; //The menu item will be active for this page. ViewBag.ActiveMenu = activeMenu; var searchForm = new SearchFormViewModal(new List() { new SearchItem("id","原材料编码"), new SearchItem("productName","名称"), new SearchItem("material","材质"), new SearchItem("model","规格"), }); var table = new TableViewModel("/api/services/app/RmProduct/GetAll", activeMenu, searchForm) .SetFields(new List() { new FieldItem("id", "原材料编码"), new FieldItem("productName", "名称"), new FieldItem("material", "材质"), new FieldItem("model", "规格"), new FieldItem("productDesc", "描述"), }); } @section css{ } @Html.Partial("New/Table/_Table", table) @section modal{ @{ var modal = new ModalViewModel("原材料", new ModalBodyViewModel(new List() { new Input("id", "原材料编码"), new Input("productName", "名称"), new Input("material", "材质"), new Input("model", "规格").SetNotRequired(), new InputTextarea("productDesc", "描述").SetNotRequired(), //new Input("userName", "登陆账号").SetNotRequired(), })); } @Html.Partial("New/Modals/_Modal", modal)
} @section scripts { }
@*@Html.DropDownList("hid-du", duty) @Html.DropDownList("hid-de", depart) @Html.DropDownList("hid-gender", gender)*@