123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222 |
- @model EMIS.ViewModel.EducationManage.EducationMissionImportClassView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
-
- bool IsView = false;
- if (Model.ApprovalStatus != (int)EMIS.ViewModel.EM_EducationMissionClassStatus.Scheduled)
- {
- IsView = true;
- }
- ComboGridOptions cgop = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ClassroomID",
- 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 time = new ComboGridOptions
- {
- TextField = "time_starTime_endTime",
- ValueField = "CoursesTimeID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- //new BoundFieldColumn { FieldName="TimesSegmentName", HeaderText="时间段", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="time_starTime_endTime", HeaderText="上课时间", Align=AlignStyle.Center },
- //new BoundFieldColumn { FieldName="EndDate", HeaderText="结束时间", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/CoursesTime/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/EducationManage/AdultEducationMissionClassEdit.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>
- @if (Model.ApprovalStatus != (int)EMIS.ViewModel.EM_EducationMissionClassStatus.Scheduled)
- {
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("ArrConfirm")</div>
- }
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.EducationMissionClassID)
- @Html.HiddenFor(x => x.CollegeID)
- @Html.Hidden("ClassNums")
- <table cellpadding="0" cellspacing="0" id="educationMissionClasstable">
- <tr>
- <td>@Html.LabelFor(x => x.Name):
- </td>
- <td>@Html.TextBoxFor(x => x.Name, new TextBoxOptions { IsEnabled = IsView })
- </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.CourseName):
- </td>
- <td>@Html.TextBoxFor(x => x.CourseName, new TextBoxOptions { IsEnabled = false })
- </td>
- <td>@Html.LabelFor(x => x.TeachingModeName):
- </td>
- <td>@Html.TextBoxFor(x => x.TeachingModeName, new TextBoxOptions { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.SchoolyearCode):
- </td>
- <td>@Html.TextBoxFor(x => x.SchoolyearCode, new TextBoxOptions { IsEnabled = false })
- </td>
- <td>@Html.LabelFor(x => x.CourseStructureName):
- </td>
- <td>@Html.TextBoxFor(x => x.CourseStructureName, new TextBoxOptions { IsEnabled = false })
- </td>
- </tr>
-
- <tr>
- <td>@Html.LabelFor(x => x.CourseCategoryName):
- </td>
- <td>@Html.TextBoxFor(x => x.CourseCategoryName, new TextBoxOptions { IsEnabled = false })
- </td>
- <td>@Html.LabelFor(x => x.CourseTypeName):
- </td>
- <td>@Html.TextBoxFor(x => x.CourseTypeName, new TextBoxOptions { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.CourseQualityName):
- </td>
- <td>@Html.TextBoxFor(x => x.CourseQualityName, new TextBoxOptions { IsEnabled = false })
- </td>
- <td>@Html.LabelFor(x => x.ExaminationModeName):
- </td>
- <td>@Html.TextBoxFor(x => x.ExaminationModeName, new TextBoxOptions { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x=>x.ResultTypeID)
- </td>
- <td>@Html.TextBoxFor(x => x.ResultTypeName, new TextBoxOptions { IsEnabled = false })
- </td>
- <td>@Html.LabelFor(x => x.TeachinglanguageName):
- </td>
- <td>@Html.TextBoxFor(x => x.TeachinglanguageName, new TextBoxOptions { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.HandleModeName):
- </td>
- <td>@Html.TextBoxFor(x => x.HandleModeName, new TextBoxOptions { IsEnabled = false })
- </td>
- <td>@Html.LabelFor(x => x.Credit):
- </td>
- <td>@Html.TextBoxFor(x => x.Credit, new TextBoxOptions { IsEnabled = false })
- </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.CourseTimeID):
- </td>
- <td>@Html.ComboGridFor(x => x.CourseTimeID, time)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.ExamWeek):
- </td>
- <td>@Html.TextBoxFor(x => x.ExamWeek, new TextBoxOptions { IsEnabled = false })
- </td>
- <td>@Html.LabelFor(x => x.Examedate_time):
- </td>
- <td>@Html.TextBoxFor(x => x.Examedate_time, new TextBoxOptions { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.SchedulingClassNum):
- </td>
- <td>@Html.TextBoxFor(x => x.SchedulingClassNum, 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>@Html.LabelFor(x => x.ClassroomTypeID):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ClassroomType, (x => x.ClassroomTypeID), new DropdownListOptions { OnSelect = "queryClassroom", OnLoadSuccess = "loadClassroom" })
- </td>
- <td>@Html.LabelFor(x => x.ClassroomName):
- </td>
- <td>@Html.ComboGridFor(x => x.ClassroomID, cgop)
- </td>
- </tr>
-
-
- <tr>
- <td>
- <label>
- 授课老师:</label>
- </td>
- <td colspan="3">@Html.ContextMenuBar("Edit-TeacherGrid")
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn { FieldName="UserID" },
- new BoundFieldColumn { FieldName="LoginID", HeaderText="教职工号", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center },
- new DictionaryDropdownListColumn { FieldName="TeachingMethod", HeaderText="任课方式", Align=AlignStyle.Center,
- DictionaryType = EMIS.ViewModel.DictionaryItem.EM_TeachingMethod }
- },
- 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>
|