12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- @model EMIS.ViewModel.SelectCourse.OptionalCourseSettingView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- }
- @section scripts{
- <script src="~/Scripts/Business/SelectCourseManage/SelectCourseResult/SelectCourseResult.js"
- type="text/javascript"></script>
- <script type="text/javascript">
- function SelectCourseResult_Save() {
- var teacherViewList = $("#dgTeacherList").cmsXDataTable("getRows");
- for (var i = 0; i < teacherViewList.length; i++) {
- if (teacherViewList[i].TeachingMethod == null || teacherViewList[i].TeachingMethod == -1) {
- $.messager.alert('系统信息', "请选择授课老师的任课方式。");
- return;
- }
- }
- $(document.forms[0]).submit();
- }
-
- </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;">@Html.ContextMenuBar("TeaConfirm")</div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.ExecutableOptionalCourseID)
- @Html.HiddenFor(x => x.GrademajorID)
- <table cellpadding="0" cellspacing="0" id="specialtyCourseable">
- <tr>
- <td>
- <label>
- 教师信息:</label>
- </td>
- <td colspan="3">@Html.ContextMenuBar("Edit-TeacherGrid")
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn { FieldName="UserID", HeaderText="" },
- new BoundFieldColumn { FieldName="LoginID", HeaderText="教职工号", Align=AlignStyle.Center, Width=0.06 },
- new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.05 },
- new DictionaryDropdownListColumn { FieldName="TeachingMethod", HeaderText="任课方式", Align=AlignStyle.Center, Width=0.06,
- DictionaryType = EMIS.ViewModel.DictionaryItem.EM_TeachingMethod, IsRequired=true }
- },
- PageSize = 3,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/OptionalCourseSetting/TeacherList?executableOptionalCourseID=" + Model.ExecutableOptionalCourseID),
- IsPostBack = true,
- ID = "dgTeacherList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- MaxHeight = 65
- })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|