123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305 |
- @model EMIS.ViewModel.UniversityManage.AdministrativeOrgan.CampusView
- @using EMIS.Web.Controls;
- @using EMIS.Entities;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- var isEnable = Request["type"] == "detail" ? false : true;
- //学校信息
- ComboGridOptions cgopUniversity = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "UniversityID",
- IsEnabled = isEnable,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="Code", HeaderText="学校代码", Align=AlignStyle.Center ,Width=0.12},
- new BoundFieldColumn { FieldName="Name", HeaderText="学校名称", Align=AlignStyle.Center ,Width=0.3}
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/University/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
-
- ComboGridOptions cgopGeneralsuper = 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.3}
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Staff/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- ComboGridOptions cgopRecruitstudents = 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.3}
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Staff/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- ComboGridOptions cgopPlacesuper = 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.3}
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Staff/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- ComboGridOptions cgopTeachingsuper = 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.3}
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Staff/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- ComboGridOptions cgopStudentcharge = 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.3}
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Staff/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/UniversityManage/AdministrativeOrgan/CampusEdit.js" type="text/javascript"></script>
- <script type="text/javascript">
- </script>
- }
- <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.CampusID)
- <table cellpadding="0" cellspacing="0" id="Campustable">
- <tr>
- <td>
- @Html.LabelFor(x => x.No):
- </td>
- <td>
- @Html.TextBoxFor(x => x.No, 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.UniversityName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.UniversityID, cgopUniversity)
- </td>
- <td>
- @Html.LabelFor(x => x.Studentcharge):
- </td>
- <td>
- @Html.ComboGridFor(x => x.Studentcharge, cgopStudentcharge)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Generalsuper):
- </td>
- <td>
- @Html.ComboGridFor(x => x.Generalsuper, cgopGeneralsuper)
- </td>
- <td>
- @Html.LabelFor(x => x.Recruitstudents):
- </td>
- <td>
- @Html.ComboGridFor(x => x.Recruitstudents, cgopRecruitstudents)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Placesuper):
- </td>
- <td>
- @Html.ComboGridFor(x => x.Placesuper, cgopPlacesuper)
- </td>
- <td>
- @Html.LabelFor(x => x.Teachingsuper):
- </td>
- <td>
- @Html.ComboGridFor(x => x.Teachingsuper, cgopTeachingsuper)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.ZIPCode):
- </td>
- <td>
- @Html.TextBoxFor(x => x.ZIPCode, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.Officephone):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Officephone, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.FAX):
- </td>
- <td>
- @Html.TextBoxFor(x => x.FAX, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.Email):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Email, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Evolution):
- </td>
- <td colspan="3">
- @if (!isEnable)
- {
- @Html.TextAreaFor(x => x.Evolution, new Dictionary<string, object>
- {
- { "style", "width: 90%;min-height: 20px" },
- { "disabled", "true" }
- })
- }
- else
- {
- @Html.TextAreaFor(x => x.Evolution, 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.Evolution, new Dictionary<string, object>
- {
- { "style", "width: 90%;min-height: 60px" },
- { "disabled", "true" }
- })
- }
- else
- {
- @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width: 90%;min-height: 60px" } })
- }
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|