123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385 |
- @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<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",
- 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",
- 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/AdministrativeOrgan/UniversityEdit.js" type="text/javascript"></script>
- <script type="text/javascript">
- </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 (ViewBag.Type != "1")//控制列表进入、屏蔽按钮权限
- {
- @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)
- </td>
- <td>
- @Html.LabelFor(x => x.Name):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Name)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.SimpleName):
- </td>
- <td>
- @Html.TextBoxFor(x => x.SimpleName)
- </td>
- <td>
- @Html.LabelFor(x => x.EnglishName):
- </td>
- <td>
- @Html.TextBoxFor(x => x.EnglishName)
- </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"
- })
- </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))
- </td>
- <td>
- @Html.LabelFor(x => x.SchoolTypeID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolType, (x => x.SchoolTypeID))
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.ManagerID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ManagerType, (x => x.ManagerID))
- </td>
- <td>
- @Html.LabelFor(x => x.FounderTypeID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_FounderType, (x => x.FounderTypeID))
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.SchoolLevelID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolLevel, (x => x.SchoolLevelID))
- </td>
- <td>
- @Html.LabelFor(x => x.HeadMasterName):
- </td>
- <td>
- @Html.TextBoxFor(x => x.HeadMasterName)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.BuildDate):
- </td>
- <td>
- @Html.TextBoxFor(x => x.BuildDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
- </td>
- <td>
- @Html.LabelFor(x => x.LegalPersonName):
- </td>
- <td>
- @Html.TextBoxFor(x => x.LegalPersonName)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.AnniversaryDate):
- </td>
- <td>
- @Html.TextBoxFor(x => x.AnniversaryDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
- </td>
- <td>
- @Html.LabelFor(x => x.SchoolBasis):
- </td>
- <td>
- @Html.TextBoxFor(x => x.SchoolBasis)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.SchoolMotto):
- </td>
- <td colspan="3">
- @Html.TextBoxFor(x => x.SchoolMotto, new Dictionary<string, object> { { "style", "width: 75%" } })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.SubjectCount):
- </td>
- <td>
- @Html.TextBoxFor(x => x.SubjectCount)
- </td>
- <td>
- @Html.LabelFor(x => x.Is211University):
- </td>
- <td>
- @Html.CheckBoxFor(x => x.Is211University, new Dictionary<string, object> { })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.IsKeyUniversity):
- </td>
- <td>
- @Html.CheckBoxFor(x => x.IsKeyUniversity, new Dictionary<string, object> { })
- </td>
- <td>
- @Html.LabelFor(x => x.IsAdultCollege):
- </td>
- <td>
- @Html.CheckBoxFor(x => x.IsAdultCollege, new Dictionary<string, object> { })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.IsPostCollege):
- </td>
- <td>
- @Html.CheckBoxFor(x => x.IsPostCollege, new Dictionary<string, object> { })
- </td>
- <td>
- @Html.LabelFor(x => x.IsNetCollege):
- </td>
- <td>
- @Html.CheckBoxFor(x => x.IsNetCollege, new Dictionary<string, object> { })
- </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)
- </td>
- <td>
- @Html.LabelFor(x => x.ZIPCode):
- </td>
- <td>
- @Html.TextBoxFor(x => x.ZIPCode)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Email):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Email)
- </td>
- <td>
- @Html.LabelFor(x => x.FAX):
- </td>
- <td>
- @Html.TextBoxFor(x => x.FAX)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.PublicNum):
- </td>
- <td>
- @Html.TextBoxFor(x => x.PublicNum)
- </td>
- <td>
- @Html.LabelFor(x => x.HomePage):
- </td>
- <td>
- @Html.TextBoxFor(x => x.HomePage)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Address):
- </td>
- <td colspan="3">
- @Html.TextBoxFor(x => x.Address, new Dictionary<string, object> { { "style", "width: 90%" } })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.EnglishAddress):
- </td>
- <td colspan="3">
- @Html.TextBoxFor(x => x.EnglishAddress, new Dictionary<string, object> { { "style", "width: 90%" } })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.HistoryEvolution):
- </td>
- <td colspan="3">
- @Html.TextAreaFor(x => x.HistoryEvolution, new Dictionary<string, object> { { "style", "width: 90%;min-height: 40px" } })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Remark):
- </td>
- <td colspan="3">
- @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width: 90%;min-height: 60px" } })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|