@model EMIS.ViewModel.UniversityView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; //所属市 ComboGridOptions cgopCity = new ComboGridOptions { TextField = "Name", ValueField = "Value", OnSelect = "queryCity", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="", Align=AlignStyle.Center } }, PageSize = 5, IsShowHeader = false, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/DictionaryItem/CityComboGridList"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; //所属县、区 ComboGridOptions cgopDistrict = new ComboGridOptions { TextField = "Name", ValueField = "Value", OnSelect = "queryDistrict", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="", Align=AlignStyle.Center } }, PageSize = 5, IsShowHeader = false, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/DictionaryItem/DistrictComboGridList"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; //教职工 ComboGridOptions cgopStaff = 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.UniversityID)
@Html.LabelFor(x => x.Code): @Html.TextBoxFor(x => x.Code) @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.ProvinceName): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Province, (x => x.ProvinceID), DropdownListBindType.PleaseSelect, new ComboGridOptions { OnSelect = "queryProvince" }) @Html.LabelFor(x => x.CityName): @Html.ComboGridFor(x => x.CityID, cgopCity)
@Html.LabelFor(x => x.DistrictName): @Html.ComboGridFor(x => x.DistrictID, cgopDistrict) @Html.LabelFor(x => x.PartyManageID): @Html.ComboGridFor(x => x.PartyManageID, cgopStaff)
学校扩展信息
@Html.LabelFor(x => x.PropertyID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_UniversityProperty, (x => x.PropertyID)) @Html.LabelFor(x => x.SchoolTypeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolType, (x => x.SchoolTypeID))
@Html.LabelFor(x => x.ManagerID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ManagerType, (x => x.ManagerID)) @Html.LabelFor(x => x.FounderTypeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_FounderType, (x => x.FounderTypeID))
@Html.LabelFor(x => x.SchoolLevelID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolLevel, (x => x.SchoolLevelID)) @Html.LabelFor(x => x.HeadMasterName): @Html.TextBoxFor(x => x.HeadMasterName)
@Html.LabelFor(x => x.BuildDate): @Html.TextBoxFor(x => x.BuildDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date }) @Html.LabelFor(x => x.LegalPersonName): @Html.TextBoxFor(x => x.LegalPersonName)
@Html.LabelFor(x => x.AnniversaryDate): @Html.TextBoxFor(x => x.AnniversaryDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date }) @Html.LabelFor(x => x.SchoolBasis): @Html.TextBoxFor(x => x.SchoolBasis)
@Html.LabelFor(x => x.SchoolMotto): @Html.TextBoxFor(x => x.SchoolMotto, new Dictionary { { "style", "width: 75%" } })
@Html.LabelFor(x => x.SubjectCount): @Html.TextBoxFor(x => x.SubjectCount) @Html.LabelFor(x => x.Is211University): @Html.CheckBoxFor(x => x.Is211University, new Dictionary { })
@Html.LabelFor(x => x.IsKeyUniversity): @Html.CheckBoxFor(x => x.IsKeyUniversity, new Dictionary { }) @Html.LabelFor(x => x.IsAdultCollege): @Html.CheckBoxFor(x => x.IsAdultCollege, new Dictionary { })
@Html.LabelFor(x => x.IsPostCollege): @Html.CheckBoxFor(x => x.IsPostCollege, new Dictionary { }) @Html.LabelFor(x => x.IsNetCollege): @Html.CheckBoxFor(x => x.IsNetCollege, new Dictionary { })
学校联系信息
@Html.LabelFor(x => x.Telephone): @Html.TextBoxFor(x => x.Telephone) @Html.LabelFor(x => x.ZIPCode): @Html.TextBoxFor(x => x.ZIPCode)
@Html.LabelFor(x => x.Email): @Html.TextBoxFor(x => x.Email) @Html.LabelFor(x => x.FAX): @Html.TextBoxFor(x => x.FAX)
@Html.LabelFor(x => x.PublicNum): @Html.TextBoxFor(x => x.PublicNum) @Html.LabelFor(x => x.HomePage): @Html.TextBoxFor(x => x.HomePage)
@Html.LabelFor(x => x.Address): @Html.TextBoxFor(x => x.Address, new Dictionary { { "style", "width: 90%" } })
@Html.LabelFor(x => x.EnglishAddress): @Html.TextBoxFor(x => x.EnglishAddress, new Dictionary { { "style", "width: 90%" } })
@Html.LabelFor(x => x.HistoryEvolution): @Html.TextAreaFor(x => x.HistoryEvolution, new Dictionary { { "style", "width: 90%;min-height: 40px" } })
@Html.LabelFor(x => x.Remark): @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width: 90%;min-height: 60px" } })
}