@model EMIS.ViewModel.EducationSchedule.ScheduleAdjustmentEditView @using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; } @section scripts{ }
@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)
课程调整
@Html.ContextMenuBar("Edit")
@Html.DisplayFor(x => x.EducationMissionClassName)
@Html.DisplayFor(x => x.WeekNum)   @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" })
@Html.DisplayFor(x => x.WeekdayDesc) @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" })
@Html.DisplayFor(x => x.UserName) @Html.ComboGridFor(x => x.ToUserID, new ComboGridOptions { TextField = "Name", ValueField = "UserID", OnSelect = "getNotUseCoursesTime", GridOptions = new DataGridOptions { Columns = new List() { 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 } })
@Html.DisplayFor(x => x.CoursesTimeName) @Html.DropdownListFor(x => x.ToCoursesTimeID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, OnSelect = "getNotUseClassroom", OnLoadSuccess = "commonLoadComplete" })
@Html.DisplayFor(x => x.ClassroomTypeName) @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ClassroomType, x => x.ToClassroomTypeID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, OnSelect = "getNotUseClassroom" })
@Html.DisplayFor(x => x.ClassroomName) @Html.ComboGridFor(x => x.ToClassroomID, new ComboGridOptions { TextField = "Name", ValueField = "ClassroomID", GridOptions = new DataGridOptions { Columns = new List() { 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, } })
}