@using ShwasherSys @using ShwasherSys.Authorization.Permissions @using ShwasherSys.Models.Layout @using ShwasherSys.Views.Shared.New.Modals @using ShwasherSys.Views.Shared.New.Table @{ ViewBag.Title = "设备固定资产维护"; string activeMenu = PermissionNames.PagesCompanyDieMaintenanceFixedAsset; //The menu item will be active for this page. ViewBag.ActiveMenu = activeMenu; List faType = ViewBag.FixedAssetType; var searchForm = new SearchFormViewModal(new List() { new SearchItem("no","资产编号"), new SearchItem("name","资产名称"), new SearchItem("model","资产类型",FiledType.S,ExpType.Equal).SetSearchItem(faType,isAddBlank:false), },"search-form",false); var table = new TableViewModel( "/api/services/app/FixedAsset/GetAll", activeMenu, searchForm) .SetFields(new List() { new FieldItem("no", "资产编号"), new FieldItem("name", "资产名称"), new FieldItem("model", "资产类型","FaTypeFormatter"), }); } @section css{ } @Html.Partial("New/Table/_Table", table) @section modal{ @{ var modal = new ModalViewModel("资产", new ModalBodyViewModel(new List() { new InputHide("id"), new InputHide("no", "资产编号"), new Input("name", "资产名称"), new Input("model", "资产类型").SetSelectOptions(faType,isAddBlank:false), new InputTextarea("description", "资产描述").SetNotRequired(), })); } @Html.Partial("New/Modals/_Modal", modal) } @section scripts { }
@Html.DropDownList("hid-type", faType)