@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; } @section scripts{ }
@Html.Position()
查询条件
@Html.Hidden("hidEducationSchedulingAdjustmentID") @Html.PositionCondition()
  • 学年学期:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), OnSelect = "reload", OnLoadSuccess = "reload", Name = "ddlSchoolyear" }, new Dictionary { { "data-condition", "dgEducationSchedulingAdjustmentList" } })
  • 课程名称:
  • @Html.ComboGrid(new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", Name = "cgbCoursematerial", OnSelect = "reload", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.12 }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }, new Dictionary { { "data-condition", "dgEducationSchedulingAdjustmentList" } })
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListBanids"), ID = "ddlCollege", Name = "ddlCollege", OnSelect = "queryTeacher" }, new Dictionary { { "data-condition", "dgEducationSchedulingAdjustmentList" } })
  • 教师:
  • @Html.ComboGrid(new ComboGridOptions { TextField = "Name", ValueField = "UserID", ID = "cgbTeacher", Name = "cgbTeacher", OnSelect = "reload", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="教师姓名", Width=0.1, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Staff/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, IsAutoLoad = true } }, new Dictionary { { "data-condition", "dgEducationSchedulingAdjustmentList" } })
  • 教室:
  • @Html.ComboGrid(new ComboGridOptions { TextField = "Name", ValueField = "ClassroomID", OnSelect = "reload", Name = "cbgClassroom", ID = "cbgClassroom", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Classroom/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }, new Dictionary { { "data-condition", "dgEducationSchedulingAdjustmentList" } })
  • 申请人:
  • @Html.ComboGrid(new ComboGridOptions { TextField = "Name", ValueField = "UserID", ID = "cgbApplyUser", Name = "cgbApplyUser", OnSelect = "reload", SelectedValue = ((EMIS.Utility.FormValidate.CustomPrincipal)HttpContext.Current.User).UserID, GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="教师姓名", Width=0.1, Align=AlignStyle.Center } }, IsCheckOnSelect = true, OnLoadSuccessFun = "reload", DataSourceUrl = Url.Content("~/Staff/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, IsAutoLoad = true } }, new Dictionary { { "data-condition", "dgEducationSchedulingAdjustmentList" } })
  • 申请时间:
  • @Html.TextBox(new TextBoxOptions { ID = "txtStartTime", Name = "txtStartTime", TextBoxType = TextBoxType.Date, OnChange = "startTimeChanged" }, new Dictionary { { "data-condition", "dgEducationSchedulingAdjustmentList" } })
  • @Html.TextBox(new TextBoxOptions { ID = "txtEndTime", Name = "txtEndTime", TextBoxType = TextBoxType.Date, OnChange = "endTimeChanged" }, new Dictionary { { "data-condition", "dgEducationSchedulingAdjustmentList" } })
  • 状态:
  • @Html.DropdownList(new DropdownListOptions { Name = "ddlRecordStatus", ItemSourceUrl = Url.Content("~/Common/ApproveStatusDropDown?tableName=" + typeof(EMIS.Entities.ES_EducationSchedulingAdjustment).Name), BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgEducationSchedulingAdjustmentList" } })
课程列表
@Html.ContextMenuBar("List")
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="EducationSchedulingAdjustmentID" }, new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=80 }, new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=80 }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=80 }, new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="任务班名称", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="TeacherNames", HeaderText="原任课老师", Align=AlignStyle.Center, Width=80 }, new BoundFieldColumn { FieldName="TimeDetail", HeaderText="原上课时间", Align=AlignStyle.Center, Width=80 }, new BoundFieldColumn { FieldName="ClassroomName", HeaderText="原教室", Align=AlignStyle.Center, Width=80 }, new BoundFieldColumn { FieldName="ToTeacherNames", HeaderText="任课老师", Align=AlignStyle.Center, Width=80 }, new BoundFieldColumn { FieldName="ToTimeDetail", HeaderText="上课时间", Align=AlignStyle.Center, Width=80 }, new BoundFieldColumn { FieldName="ToClassroomName", HeaderText="教室", Align=AlignStyle.Center, Width=80 }, new BoundFieldColumn { FieldName="CreateUserName", HeaderText="申请人", Align=AlignStyle.Center, Width=80 }, new BoundFieldColumn { FieldName="ApplyTime", HeaderText="提交时间", Align=AlignStyle.Center, Width=80, Formatter = Formatter.OnlyYearMonthDay }, new ApproveStatusColumn { FieldName="RecordStatusName", TableName=typeof(EMIS.Entities.ES_EducationSchedulingAdjustment).Name, IDFieldName="EducationSchedulingAdjustmentID", HeaderText="状态", Align=AlignStyle.Center,Width=0.04 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/EducationSchedule/AdjustmentList"), ID = "dgEducationSchedulingAdjustmentList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })