@model EMIS.ViewModel.UniversityManage.AdministrativeOrgan.UniversityView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; var isEnable = Request["type"] == "detail" ? false : true; //所属市 ComboGridOptions cgopCity = new ComboGridOptions { TextField = "Name", ValueField = "Value", OnSelect = "queryCity", IsEnabled = isEnable, 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", IsEnabled = isEnable, 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", IsEnabled = isEnable, 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 (Request["type"] != "detail") { @Html.ContextMenuBar("Edit") }
@Html.HiddenFor(x => x.UniversityID)
@Html.LabelFor(x => x.Code): @Html.TextBoxFor(x => x.Code, new TextBoxOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.Name): @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.SimpleName): @Html.TextBoxFor(x => x.SimpleName, new TextBoxOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.EnglishName): @Html.TextBoxFor(x => x.EnglishName, new TextBoxOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.ProvinceName): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Province, (x => x.ProvinceID), DropdownListBindType.PleaseSelect, new ComboGridOptions { OnSelect = "queryProvince", IsEnabled = isEnable }) @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), new DropdownListOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.SchoolTypeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolType, (x => x.SchoolTypeID), new DropdownListOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.ManagerID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ManagerType, (x => x.ManagerID), new DropdownListOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.FounderTypeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_FounderType, (x => x.FounderTypeID), new DropdownListOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.SchoolLevelID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolLevel, (x => x.SchoolLevelID), new DropdownListOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.HeadMasterName): @Html.TextBoxFor(x => x.HeadMasterName, new TextBoxOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.BuildDate): @Html.TextBoxFor(x => x.BuildDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date, IsEnabled = isEnable }) @Html.LabelFor(x => x.LegalPersonName): @Html.TextBoxFor(x => x.LegalPersonName, new TextBoxOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.AnniversaryDate): @Html.TextBoxFor(x => x.AnniversaryDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date, IsEnabled = isEnable }) @Html.LabelFor(x => x.SchoolBasis): @Html.TextBoxFor(x => x.SchoolBasis, new TextBoxOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.SchoolMotto): @if (!isEnable) { @Html.TextBoxFor(x => x.SchoolMotto, new Dictionary { { "style", "width: 90%;min-height: 20px" }, { "disabled", "true" } }) } else { @Html.TextBoxFor(x => x.SchoolMotto, new Dictionary { { "style", "width: 90%;min-height: 20px" } }) }
@Html.LabelFor(x => x.SubjectCount): @Html.TextBoxFor(x => x.SubjectCount, new TextBoxOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.Is211University): @if (!isEnable) { @Html.CheckBoxFor(x => x.Is211University, new Dictionary() { { "disabled", isEnable } }) } else { @Html.CheckBoxFor(x => x.Is211University) }
@Html.LabelFor(x => x.IsKeyUniversity): @if (!isEnable) { @Html.CheckBoxFor(x => x.IsKeyUniversity, new Dictionary() { { "disabled", isEnable } }) } else { @Html.CheckBoxFor(x => x.IsKeyUniversity) } @Html.LabelFor(x => x.IsAdultCollege): @if (!isEnable) { @Html.CheckBoxFor(x => x.IsAdultCollege, new Dictionary() { { "disabled", isEnable } }) } else { @Html.CheckBoxFor(x => x.IsAdultCollege) }
@Html.LabelFor(x => x.IsPostCollege): @if (!isEnable) { @Html.CheckBoxFor(x => x.IsPostCollege, new Dictionary() { { "disabled", isEnable } }) } else { @Html.CheckBoxFor(x => x.IsPostCollege) } @Html.LabelFor(x => x.IsNetCollege): @if (!isEnable) { @Html.CheckBoxFor(x => x.IsNetCollege, new Dictionary() { { "disabled", isEnable } }) } else { @Html.CheckBoxFor(x => x.IsNetCollege) }
学校联系信息
@Html.LabelFor(x => x.Telephone): @Html.TextBoxFor(x => x.Telephone, new TextBoxOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.ZIPCode): @Html.TextBoxFor(x => x.ZIPCode, new TextBoxOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.Email): @Html.TextBoxFor(x => x.Email, new TextBoxOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.FAX): @Html.TextBoxFor(x => x.FAX, new TextBoxOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.PublicNum): @Html.TextBoxFor(x => x.PublicNum, new TextBoxOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.HomePage): @Html.TextBoxFor(x => x.HomePage, new TextBoxOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.Address): @if (!isEnable) { @Html.TextBoxFor(x => x.Address, new Dictionary { { "style", "width: 90%;min-height: 20px" }, { "disabled", "true" } }) } else { @Html.TextBoxFor(x => x.Address, new Dictionary { { "style", "width: 90%;min-height: 20px" } }) }
@Html.LabelFor(x => x.EnglishAddress): @if (!isEnable) { @Html.TextBoxFor(x => x.EnglishAddress, new Dictionary { { "style", "width: 90%;min-height: 20px" }, { "disabled", "true" } }) } else { @Html.TextBoxFor(x => x.EnglishAddress, new Dictionary { { "style", "width: 90%;min-height: 20px" } }) }
@Html.LabelFor(x => x.HistoryEvolution): @if (!isEnable) { @Html.TextAreaFor(x => x.HistoryEvolution, new Dictionary { { "style", "width: 90%;min-height: 20px" }, { "disabled", "true" } }) } else { @Html.TextAreaFor(x => x.HistoryEvolution, new Dictionary { { "style", "width: 90%;min-height: 20px" } }) }
@Html.LabelFor(x => x.Remark): @if (!isEnable) { @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width: 90%;min-height: 20px" }, { "disabled", "true" } }) } else { @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width: 90%;min-height: 20px" } }) }
}