123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213 |
- @model EMIS.ViewModel.EducationManagement.EducationMissionClassView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.ViewModel;
- @{
- ViewBag.Title = "Edit";
- List<ListControlItem> lct = ViewData["lct"] as List<ListControlItem>;
- ListControlOptions lcop = new ListControlOptions
- {
- Name = "TeachingModeID",
- TextField = "Name",
- ValueField = "Value",
- ColumnCount = 4,
- ItemList = lct,
- SelectedValueUrl = Url.Content("~/EducationMissionClass/CheckEducationMissionClassSettingsList?educationMissionClassID=" + Model.EducationMissionClassID)
- };
- ComboGridOptions cgop = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ClassroomID",
- IsEnabled = false,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="Code", HeaderText="教室代码", Width=0.1, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Width=0.1, Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- // DataSourceUrl = Url.Content("~/CollegeClassroom/ClassroomListComboGrid?collegeID=" + Model.CollegeID),
- DataSourceUrl = Url.Content("~/Classroom/List"),//去除院系条件
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- ComboGridOptions cgopCollege = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "CollegeID",
- OnSelect = "reload",
- Name = "CollegeDropdown",
- ID = "CollegeDropdown",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText="教职工名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/College/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions cgopDepartment = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "DepartmentID",
- OnSelect = "reload",
- Name = "DepartmentDropdown",
- ID = "DepartmentDropdown",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- // new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Department/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions cgopSaff = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "UserID",
- OnSelect = "reload",
- Name = "SaffDropdown",
- ID = "SaffDropdown",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Staff/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/EducationManage/EducationMissionClassEdit.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", Url = "/EducationMissionClass/SetTeacher", }))
- {
- <div class="p_title">
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("EditTeaConfirm")</div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.EducationMissionClassID)
- @Html.HiddenFor(x => x.CollegeID)
- @Html.HiddenFor(x => x.SchoolyearID)
- @Html.Hidden("hid_TeacherJsonStr")
- <table cellpadding="0" cellspacing="0" id="educationMissionClasstable">
- <tr>
- <td>@Html.LabelFor(x => x.SchoolyearCode):
- </td>
- <td>@Html.TextBoxFor(x => x.SchoolyearCode, new TextBoxOptions { IsEnabled = false })
- </td>
- <td>@Html.LabelFor(x => x.Name):
- </td>
- <td>@Html.TextBoxFor(x => x.Name, new TextBoxOptions { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.CourseName):
- </td>
- <td>@Html.TextBoxFor(x => x.CourseName, new TextBoxOptions { IsEnabled = false })
- </td>
- <td>@Html.LabelFor(x => x.CourseCode):
- </td>
- <td>@Html.TextBoxFor(x => x.CourseCode, new TextBoxOptions { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.ClassroomTypeID):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ClassroomType, (x => x.ClassroomTypeID), new DropdownListOptions { IsEnabled = false })
- </td>
- <td>@Html.LabelFor(x => x.ClassroomID):
- </td>
- <td>@Html.ComboGridFor(x => x.ClassroomID, cgop)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Totalhours):
- </td>
- <td>@Html.TextBoxFor(x => x.Totalhours, new TextBoxOptions { IsEnabled = false })
- </td>
- <td>@Html.LabelFor(x => x.SchoolweeksNum):
- </td>
- <td>@Html.TextBoxFor(x => x.SchoolweeksNum, new TextBoxOptions { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.StartStopWeeklyNum):
- </td>
- <td>@Html.TextBoxFor(x => x.StartStopWeeklyNum, new TextBoxOptions { IsEnabled = false })
- </td>
- <td>@Html.LabelFor(x => x.ClassNum):
- </td>
- <td>@Html.TextBoxFor(x => x.ClassNum, new TextBoxOptions { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>
- <label>
- 授课老师:</label>
- </td>
- <td colspan="3">
- @Html.ContextMenuBar("EditTea")
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID" },
- new LinkButtonColumn { FieldName="LoginID", HeaderText="教职工号", Align=AlignStyle.Center , Handle="edit" },
- new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="TitleName", HeaderText="职称", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CollegeID", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center ,IsHidden=true },
- new BoundFieldColumn { FieldName="DepartmentID", HeaderText="教研室", Align=AlignStyle.Center,IsHidden=true },
- new BoundFieldColumn { FieldName="DepartmentName", HeaderText="教研室", Align=AlignStyle.Center },
- new DictionaryDropdownListColumn { FieldName="TeachingMethod", HeaderText="任课方式", Align=AlignStyle.Center,
- DictionaryType = EMIS.ViewModel.DictionaryItem.EM_TeachingMethod },
- new LinkButtonColumn { Text="课表预览", HeaderText="", Align=AlignStyle.Center, Handle="Preview" }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/EducationMissionClass/TeacherList?educationMissionClassID=" + Model.EducationMissionClassID),
- IsPostBack = true,
- ID = "dgTeacherList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|