@model EMIS.ViewModel.CampusView @using EMIS.Web.Controls; @using EMIS.Entities; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; ComboGridOptions cgopUniversity = new ComboGridOptions { TextField = "Name", ValueField = "UniversityID", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="Code", HeaderText="学校代码", Align=AlignStyle.Center ,Width=0.1}, new BoundFieldColumn { FieldName="Name", HeaderText="学校名称", Align=AlignStyle.Center ,Width=0.2} }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/University/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopGeneralsuper = 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 cgopRecruitstudents = 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 cgopPlacesuper = 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 cgopTeachingsuper = 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 cgopStudentcharge = 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.CampusID)
@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.UniversityName): @Html.ComboGridFor(x => x.UniversityID, cgopUniversity) @Html.LabelFor(x => x.Studentcharge): @Html.ComboGridFor(x => x.Studentcharge, cgopStudentcharge)
@Html.LabelFor(x => x.Generalsuper): @Html.ComboGridFor(x => x.Generalsuper, cgopGeneralsuper) @Html.LabelFor(x => x.Recruitstudents): @Html.ComboGridFor(x => x.Recruitstudents, cgopRecruitstudents)
@Html.LabelFor(x => x.Placesuper): @Html.ComboGridFor(x => x.Placesuper, cgopPlacesuper) @Html.LabelFor(x => x.Teachingsuper): @Html.ComboGridFor(x => x.Teachingsuper, cgopTeachingsuper)
@Html.LabelFor(x => x.ZIPCode): @Html.TextBoxFor(x => x.ZIPCode) @Html.LabelFor(x => x.Officephone): @Html.TextBoxFor(x => x.Officephone)
@Html.LabelFor(x => x.FAX): @Html.TextBoxFor(x => x.FAX) @Html.LabelFor(x => x.Email): @Html.TextBoxFor(x => x.Email)
@Html.LabelFor(x => x.Evolution): @Html.TextAreaFor(x => x.Evolution, new Dictionary { { "style", "width: 90%;min-height: 20px" } })
@Html.LabelFor(x => x.Remark): @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width: 90%;min-height: 60px" } })
}