123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281 |
- @model EMIS.ViewModel.Specialtyclass.ClassmajorView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- //院系所
- ComboGridOptions cgopCollege = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "CollegeID",
- OnSelect = "queryCollege",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.3 }
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- //年级专业
- ComboGridOptions cgopGrademajor = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "GrademajorID",
- OnSelect = "queryGrademajor",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Width=0.2, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Width=0.3, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Width=0.1, Align=AlignStyle.Center },
- //new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Width=0.2, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="EducationName", HeaderText=@EMIS.Utility.RSL.Get("EducationID"), Width=0.1, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Width=0.1, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Width=0.1, Align=AlignStyle.Center }
- //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Width=0.2, Align=AlignStyle.Center }
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Grademajor/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
-
- ComboGridOptions cgopUser = 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
- }
- };
- ComboGridOptions cgopAssistant = 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/Specialtyclass/ClassmajorEdit.js" type="text/javascript"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- </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 (ViewBag.Type != "1")//控制列表进入、屏蔽按钮权限
- {
- @Html.ContextMenuBar("Edit")
- }
- </div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.ClassmajorID)
- <table cellpadding="0" cellspacing="0" id="facultymajortable">
- <tr>
- <td>
- @Html.LabelFor(x => x.No):
- </td>
- <td>
- @Html.TextBoxFor(x => x.No)
- </td>
- <td style="color:red;">
- @Html.LabelFor(x => x.ClassNum):
- </td>
- <td>
- @Html.TextBoxFor(x => x.ClassNum)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Name):
- </td>
- <td colspan="3">
- @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { }, new Dictionary<string, string> { { "style", "width:85%;" } })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Abbreviation):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Abbreviation)
- </td>
- <td>
- @Html.LabelFor(x => x.EnglishName):
- </td>
- <td>
- @Html.TextBoxFor(x => x.EnglishName)
- </td>
- </tr>
- <tr>
- <td colspan="4" style="padding:1px;height:10px;">
- <div id="grademajorExpander" 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="swapGrademajor();">
- </div>
- <div style="float: left;height: 10px; cursor: pointer; color: red;" onclick="swapGrademajor();">
- 年级专业信息
- </div>
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.CollegeName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
- </td>
- <td>
- @Html.LabelFor(x => x.SchoolyearID):
- </td>
- <td>
- @Html.SchoolYearDropDownListFor(x => x.SchoolyearID, new DropdownListOptions
- {
- OnSelect = "querySchoolyear"
- })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.StandardName):
- </td>
- <td>
- @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Standard, (x => x.StandardID), DropdownListBindType.PleaseSelect,
- new ComboGridOptions
- {
- OnSelect = "queryStandard",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="Name", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.2 }
- }
- }
- })
- </td>
- <td>
- @Html.LabelFor(x => x.EducationName):
- </td>
- <td>
- @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Education, x => x.EducationID, DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.LearningformName):
- </td>
- <td>
- @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Learningform, x => x.LearningformID, DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
- </td>
- <td>
- @Html.LabelFor(x => x.LearnSystem):
- </td>
- <td>
- @Html.TextBoxFor(x => x.LearnSystem, new TextBoxOptions() { IsEnabled=false })
- </td>
- </tr>
- <tr>
- <td style="color:red;">
- @Html.LabelFor(x => x.GrademajorID):
- </td>
- <td colspan="3">
- @Html.ComboGridFor(x => x.GrademajorID, cgopGrademajor, new Dictionary<string, string> { { "style", "width:85%;" } })
- </td>
- </tr>
- <tr>
- <td colspan="4" style="padding:1px;height:10px;">
- <div id="otherExpander" 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;">
- </div>
- <div style="float: left;height: 10px; cursor: pointer; color: red;">
- 其它信息
- </div>
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.UserID):
- </td>
- <td>
- @Html.ComboGridFor(x => x.UserID, x => x.UserName, cgopUser)
- </td>
- <td>
- @Html.LabelFor(x => x.AssistantUserID):
- </td>
- <td>
- @Html.ComboGridFor(x => x.AssistantUserID, x => x.AssistantUserName, cgopAssistant)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Fixedclassroom):
- </td>
- <td colspan="3">
- @Html.TextBoxFor(x => x.Fixedclassroom, new Dictionary<string, object> { { "style", "width: 60%;min-height: 20px" } })
- </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>
|