@model EMIS.ViewModel.CollegeView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; ComboGridOptions cgopCampus = new ComboGridOptions { TextField = "Name", ValueField = "CampusID", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center ,Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center ,Width=0.2 } }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Campus/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopPoliticalManager = new ComboGridOptions { TextField = "Name", ValueField = "UserID", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="StaffCode", HeaderText="教职工号", Align=AlignStyle.Center ,Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center ,Width=0.1 }, new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center ,Width=0.2 } }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Staff/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopAdministrativeManager = new ComboGridOptions { TextField = "Name", ValueField = "UserID", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="StaffCode", HeaderText="教职工号", Align=AlignStyle.Center ,Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center ,Width=0.1 }, new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center ,Width=0.2 } }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Staff/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@if (ViewBag.Type != "1")//控制列表进入、屏蔽按钮权限 { @Html.ContextMenuBar("Edit") }
@Html.HiddenFor(x => x.CollegeID) @**@
@Html.LabelFor(x => x.No): @Html.TextBoxFor(x => x.No) @Html.LabelFor(x => x.Name): @Html.TextBoxFor(x => x.Name)
@Html.LabelFor(x => x.SimpleName): @Html.TextBoxFor(x => x.SimpleName) @Html.LabelFor(x => x.EnglishName): @Html.TextBoxFor(x => x.EnglishName)
@Html.LabelFor(x => x.CampusName): @Html.ComboGridFor(x => x.CampusID, cgopCampus) @Html.LabelFor(x => x.UnitCategoryName): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_UnitCategory, (x => x.UnitCategoryID))
@Html.LabelFor(x => x.PoliticalManagerName): @Html.ComboGridFor(x => x.PoliticalManager, cgopPoliticalManager) @Html.LabelFor(x => x.AdministrativeManagerName): @Html.ComboGridFor(x => x.AdministrativeManager, cgopAdministrativeManager)
@Html.LabelFor(x => x.FoundDate): @Html.TextBoxFor(x => x.FoundDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date }) @Html.LabelFor(x => x.Officephone): @Html.TextBoxFor(x => x.Officephone)
@Html.LabelFor(x => x.Remark): @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width: 90%;min-height: 60px" } })
}