123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243 |
- @model EMIS.ViewModel.EducationManagement.EducationMissionClassView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- List<ListControlItem> lct = ViewData["lct"] as List<ListControlItem>;
- ListControlOptions lcop = new ListControlOptions
- {
- Name = "WeekNum",
- TextField = "Name",
- ValueField = "Value",
- ColumnCount = 4,
- ItemList = lct,
- SelectedValueUrl = Url.Content("~/EducationMissionClass/CheckEducationMissionClassSettingsList?educationMissionClassID=" + Model.EducationMissionClassID)
- };
- 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
- }
- };
-
- }
- @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" }))
- {
- <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 colspan="2">
- </td>
- </tr>
-
- <tr>
- <td>@Html.LabelFor(x => x.CourseStructureName):
- </td>
- <td>@Html.TextBoxFor(x => x.CourseStructureName, new TextBoxOptions { IsEnabled = false })
- </td>
- <td>@Html.LabelFor(x => x.CourseCategoryName):
- </td>
- <td>@Html.TextBoxFor(x => x.CourseCategoryName, new TextBoxOptions { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.CourseTypeName):
- </td>
- <td>@Html.TextBoxFor(x => x.CourseTypeName, new TextBoxOptions { IsEnabled = false })
- </td>
- <td>@Html.LabelFor(x => x.CourseQualityName):
- </td>
- <td>@Html.TextBoxFor(x => x.CourseQualityName, new TextBoxOptions { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.ExaminationModeName):
- </td>
- <td>@Html.TextBoxFor(x => x.ExaminationModeName, new TextBoxOptions { IsEnabled = false })
- </td>
- <td>@Html.LabelFor(x=>x.ResultTypeID)
- </td>
- <td>@Html.TextBoxFor(x => x.ResultTypeName, new TextBoxOptions { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.TeachinglanguageName):
- </td>
- <td>@Html.TextBoxFor(x => x.TeachinglanguageName, new TextBoxOptions { IsEnabled = false })
- </td>
- <td>@Html.LabelFor(x => x.HandleModeName):
- </td>
- <td>@Html.TextBoxFor(x => x.HandleModeName, new TextBoxOptions { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Credit):
- </td>
- <td>@Html.TextBoxFor(x => x.Credit, new TextBoxOptions { IsEnabled = false })
- </td>
- <td>@Html.LabelFor(x => x.Totalhours):
- </td>
- <td>@Html.TextBoxFor(x => x.Totalhours, new TextBoxOptions { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.SchoolweeksNum):
- </td>
- <td>@Html.TextBoxFor(x => x.SchoolweeksNum, new TextBoxOptions { IsEnabled = false })
- </td>
- @*<td>@Html.LabelFor(x => x.WeeklyNum):
- </td>
- <td>@Html.TextBoxFor(x => x.WeeklyNum, new TextBoxOptions { IsEnabled = false, })
- </td>*@
- <td>@Html.LabelFor(x => x.WeeklyHours):
- </td>
- <td>@Html.TextBoxFor(x => x.WeeklyHours, new TextBoxOptions { IsEnabled = true })
-
- </tr>
- @* <tr>
- <td>@Html.LabelFor(x => x.IsNeedMaterial):
- </td>
- <td>@Html.CheckBoxFor(x => x.IsNeedMaterial, new TextBoxOptions { IsEnabled = false })
- </td>
- <td> </td>
- <td> </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.StartWeeklyNum):
- </td>
- <td>@Html.TextBoxFor(x => x.StartWeeklyNum, new TextBoxOptions { IsEnabled = false })
- </td>
- <td>@Html.LabelFor(x => x.EndWeeklyNum):
- </td>
- <td>@Html.TextBoxFor(x => x.EndWeeklyNum, 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.ClassroomID):
- </td>
- <td>@Html.ComboGridFor(x => x.ClassroomID, cgop)
- </td>
- </tr>
- <tr>
- <td rowspan="2">
- <label>
- 排课周次设置:</label>
- </td>
- <td colspan="3">
- <div style="line-height: 30px; font-size: 12px; text-align: left;">@Html.ContextMenuBar("Settings")</div>
- </td>
- </tr>
- <tr>
- <td colspan="3">
- @Html.CheckList(lcop)
- </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>
|