123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- @model EMIS.ViewModel.EducationSchedule.ScheduleAdjustmentEditView
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "List";
- }
- @section scripts{
- <script type="text/javascript">
- var windowID = '@(Request["WindowID"])';
- var educationMissionClassID = '@Model.EducationMissionClassID';
- var schoolyearID = '@Model.SchoolyearID.ToString()';
- var nonSelect = "@DropdownList.PLEASE_SELECT";
- var isEdit = @(Model.EducationSchedulingAdjustmentID != Guid.Empty ? "true" : "false");
- </script>
- <script src="@Url.Content("~/Scripts/Business/SchedulingManage/Scheduling/AdjustmentEdit.js")" type="text/javascript"></script>
- }
- <link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/Business/Scheduling/Scheduling.css")" />
- <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" }))
- {
- @Html.HiddenFor(x => x.EducationMissionClassID)
- @Html.HiddenFor(x => x.ClassroomTypeID)
- @Html.HiddenFor(x => x.WeekNum)
- @Html.HiddenFor(x => x.Weekday)
- @Html.HiddenFor(x => x.CoursesTimeID)
- @Html.HiddenFor(x => x.ClassroomID)
- @Html.HiddenFor(x => x.UserID)
- <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("Edit")</div>
- </div>
- <div class="search_list popupWindowContent" style="overflow: hidden;">
- <table border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr>
- <td width="18%">
- <label>任务班名称:</label>
- </td>
- <td colspan="4" width="82%">
- @Html.DisplayFor(x => x.EducationMissionClassName)
- </td>
- </tr>
- </table>
- <table border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr>
- <td width="18%">
- <label>需要修改的周次:</label>
- </td>
- <td width="31%">
- @Html.DisplayFor(x => x.WeekNum)
- </td>
- <td width="2%" rowspan="6"> </td>
- <td width="18%">
- <label>调整后的周次:</label>
- </td>
- <td width="31%">
- @Html.DropdownListFor(x => x.ToWeekNum, new DropdownListOptions
- {
- BindType = DropdownListBindType.PleaseSelect,
- ItemList = Model.EducationMissionClassWeekNumList.Select(
- x => new DropdownListItem { Text = x.ToString(), Value = x }
- ).ToList(),
- SelectedValue = Model.ToWeekNum,
- OnSelect = "clearSelections"
- })
- </td>
- </tr>
- <tr>
- <td>
- <label> </label>
- </td>
- <td>
- @Html.DisplayFor(x => x.WeekdayDesc)
- </td>
- <td>
- <label>调整到:</label>
- </td>
- <td>
- @Html.DropdownListFor(x => x.ToWeekday, new DropdownListOptions
- {
- BindType = DropdownListBindType.PleaseSelect,
- TextField = "Text",
- ValueField = "Value",
- ItemSourceUrl = Url.Content("~/SchoolYear/GetFutureWeekListDropdown?WeekNum=" + (Model.ToWeekNum ?? Model.WeekNum)),
- OnSelect = "getNotUseCoursesTime"
- })
- </td>
- </tr>
- <tr>
- <td>
- <label> </label>
- </td>
- <td>
- @Html.DisplayFor(x => x.UserName)
- </td>
- <td>
- <label>调整到:</label>
- </td>
- <td>
- @Html.ComboGridFor(x => x.ToUserID, new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "UserID",
- OnSelect = "getNotUseCoursesTime",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText="教师姓名", Width=0.1, Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Staff/ListWithNoDataRange"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- IsAutoLoad = true
- }
- })
- </td>
- </tr>
- <tr>
- <td>
- <label> </label>
- </td>
- <td>
- @Html.DisplayFor(x => x.CoursesTimeName)
- </td>
- <td>
- <label>调整到:</label>
- </td>
- <td>
- @Html.DropdownListFor(x => x.ToCoursesTimeID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, OnSelect = "getNotUseClassroom", OnLoadSuccess = "commonLoadComplete" })
- </td>
- </tr>
- <tr>
- <td>
- <label> </label>
- </td>
- <td>
- @Html.DisplayFor(x => x.ClassroomTypeName)
- </td>
- <td>
- <label>调整到:</label>
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ClassroomType, x => x.ToClassroomTypeID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, OnSelect = "getNotUseClassroom" })
- </td>
- </tr>
- <tr>
- <td>
- <label> </label>
- </td>
- <td>
- @Html.DisplayFor(x => x.ClassroomName)
- </td>
- <td>
- <label>调整到:</label>
- </td>
- <td>
- @Html.ComboGridFor(x => x.ToClassroomID, new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ClassroomID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="RoomUseName", HeaderText="房间用途", Align=AlignStyle.Center }
- },
- IsAutoLoad = false,
- OnLoadSuccessFun = "commonLoadComplete",
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/EducationSchedule/GetNotUseClassroomList"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|