123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478 |
- @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<DataGridColumn>()
- {
- 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<DataGridColumn>()
- {
- 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<DataGridColumn>()
- {
- 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{
- <script src="~/Scripts/Business/UniversityManage/AdministrativeOrgan/UniversityEdit.js" type="text/javascript"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- </script>
- <style>
- .labelClass {
- width: 20%;
- }
- </style>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Ajax.BeginForm(new AjaxOptions
- {
- OnSuccess = "EMISFunction.FormSuccess",
- OnBegin = "EMISFunction.FormSubmit",
- OnComplete = "EMISFunction.FormComplete"
- }))
- {
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
- @if (Request["type"] != "detail")
- {
- @Html.ContextMenuBar("Edit")
- }
- </div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.UniversityID)
- <table cellpadding="0" cellspacing="0" id="universitytable">
- <tr>
- <td>
- @Html.LabelFor(x => x.Code):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Code, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.Name):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.SimpleName):
- </td>
- <td>
- @Html.TextBoxFor(x => x.SimpleName, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.EnglishName):
- </td>
- <td>
- @Html.TextBoxFor(x => x.EnglishName, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.ProvinceName):
- </td>
- <td>
- @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Province, (x => x.ProvinceID), DropdownListBindType.PleaseSelect,
- new ComboGridOptions
- {
- OnSelect = "queryProvince",
- IsEnabled = isEnable
- })
- </td>
- <td>
- @Html.LabelFor(x => x.CityName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.CityID, cgopCity)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.DistrictName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.DistrictID, cgopDistrict)
- </td>
- <td>
- @Html.LabelFor(x => x.PartyManageID):
- </td>
- <td>
- @Html.ComboGridFor(x => x.PartyManageID, cgopStaff)
- </td>
- </tr>
- <tr>
- <td colspan="4" style="padding:1px;height:10px;">
- <div id="profileExpander" style="width: 16px; float: left; height: 16px; cursor: pointer;
- background: url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0;"
- onclick="swapProfileSettings();">
- </div>
- <div style="float: left;height: 10px; cursor: pointer; color: red;" onclick="swapProfileSettings();">
- 学校扩展信息
- </div>
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.PropertyID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_UniversityProperty, (x => x.PropertyID), new DropdownListOptions() { IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.SchoolTypeID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolType, (x => x.SchoolTypeID), new DropdownListOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.ManagerID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ManagerType, (x => x.ManagerID), new DropdownListOptions() { IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.FounderTypeID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_FounderType, (x => x.FounderTypeID), new DropdownListOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.SchoolLevelID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolLevel, (x => x.SchoolLevelID), new DropdownListOptions() { IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.HeadMasterName):
- </td>
- <td>
- @Html.TextBoxFor(x => x.HeadMasterName, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.BuildDate):
- </td>
- <td>
- @Html.TextBoxFor(x => x.BuildDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date, IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.LegalPersonName):
- </td>
- <td>
- @Html.TextBoxFor(x => x.LegalPersonName, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.AnniversaryDate):
- </td>
- <td>
- @Html.TextBoxFor(x => x.AnniversaryDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date, IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.SchoolBasis):
- </td>
- <td>
- @Html.TextBoxFor(x => x.SchoolBasis, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.SchoolMotto):
- </td>
- <td colspan="3">
- @if (!isEnable)
- {
- @Html.TextBoxFor(x => x.SchoolMotto, new Dictionary<string, object>
- {
- { "style", "width: 90%;min-height: 20px" },
- { "disabled", "true" }
- })
- }
- else
- {
- @Html.TextBoxFor(x => x.SchoolMotto, new Dictionary<string, object> { { "style", "width: 90%;min-height: 20px" } })
- }
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.SubjectCount):
- </td>
- <td>
- @Html.TextBoxFor(x => x.SubjectCount, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.Is211University):
- </td>
- <td>
- @if (!isEnable)
- {
- @Html.CheckBoxFor(x => x.Is211University, new Dictionary<string, object>() { { "disabled", isEnable } })
- }
- else
- {
- @Html.CheckBoxFor(x => x.Is211University)
- }
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.IsKeyUniversity):
- </td>
- <td>
- @if (!isEnable)
- {
- @Html.CheckBoxFor(x => x.IsKeyUniversity, new Dictionary<string, object>() { { "disabled", isEnable } })
- }
- else
- {
- @Html.CheckBoxFor(x => x.IsKeyUniversity)
- }
- </td>
- <td>
- @Html.LabelFor(x => x.IsAdultCollege):
- </td>
- <td>
- @if (!isEnable)
- {
- @Html.CheckBoxFor(x => x.IsAdultCollege, new Dictionary<string, object>() { { "disabled", isEnable } })
- }
- else
- {
- @Html.CheckBoxFor(x => x.IsAdultCollege)
- }
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.IsPostCollege):
- </td>
- <td>
- @if (!isEnable)
- {
- @Html.CheckBoxFor(x => x.IsPostCollege, new Dictionary<string, object>() { { "disabled", isEnable } })
- }
- else
- {
- @Html.CheckBoxFor(x => x.IsPostCollege)
- }
- </td>
- <td>
- @Html.LabelFor(x => x.IsNetCollege):
- </td>
- <td>
- @if (!isEnable)
- {
- @Html.CheckBoxFor(x => x.IsNetCollege, new Dictionary<string, object>() { { "disabled", isEnable } })
- }
- else
- {
- @Html.CheckBoxFor(x => x.IsNetCollege)
- }
- </td>
- </tr>
- <tr>
- <td colspan="4" style="padding:1px;height:10px;">
- <div id="contactExpander" style="width: 16px; float: left; height: 16px; cursor: pointer;
- background: url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -50px 0;"
- onclick="swapContactSettings();">
- </div>
- <div style="float: left;height: 10px; cursor: pointer; color: red;" onclick="swapContactSettings();">
- 学校联系信息
- </div>
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Telephone):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Telephone, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.ZIPCode):
- </td>
- <td>
- @Html.TextBoxFor(x => x.ZIPCode, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Email):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Email, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.FAX):
- </td>
- <td>
- @Html.TextBoxFor(x => x.FAX, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.PublicNum):
- </td>
- <td>
- @Html.TextBoxFor(x => x.PublicNum, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.HomePage):
- </td>
- <td>
- @Html.TextBoxFor(x => x.HomePage, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Address):
- </td>
- <td colspan="3">
- @if (!isEnable)
- {
- @Html.TextBoxFor(x => x.Address, new Dictionary<string, object>
- {
- { "style", "width: 90%;min-height: 20px" },
- { "disabled", "true" }
- })
- }
- else
- {
- @Html.TextBoxFor(x => x.Address, new Dictionary<string, object> { { "style", "width: 90%;min-height: 20px" } })
- }
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.EnglishAddress):
- </td>
- <td colspan="3">
- @if (!isEnable)
- {
- @Html.TextBoxFor(x => x.EnglishAddress, new Dictionary<string, object>
- {
- { "style", "width: 90%;min-height: 20px" },
- { "disabled", "true" }
- })
- }
- else
- {
- @Html.TextBoxFor(x => x.EnglishAddress, new Dictionary<string, object> { { "style", "width: 90%;min-height: 20px" } })
- }
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.HistoryEvolution):
- </td>
- <td colspan="3">
- @if (!isEnable)
- {
- @Html.TextAreaFor(x => x.HistoryEvolution, new Dictionary<string, object>
- {
- { "style", "width: 90%;min-height: 20px" },
- { "disabled", "true" }
- })
- }
- else
- {
- @Html.TextAreaFor(x => x.HistoryEvolution, new Dictionary<string, object> { { "style", "width: 90%;min-height: 20px" } })
- }
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Remark):
- </td>
- <td colspan="3">
- @if (!isEnable)
- {
- @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object>
- {
- { "style", "width: 90%;min-height: 20px" },
- { "disabled", "true" }
- })
- }
- else
- {
- @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width: 90%;min-height: 20px" } })
- }
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|