@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; ComboGridOptions time = new ComboGridOptions { TextField = "Times", ValueField = "CoursesTimeID", OnSelect = "reload", Name = "Times", ID = "Times", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Times", HeaderText="上课时间", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/CoursesTime/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgop = new ComboGridOptions { TextField = "Name", ValueField = "ClassroomID", Name = "ClassroomID", ID = "ClassroomID", OnSelect = "reload", GridOptions = new DataGridOptions { Columns = new List() { // new LinkButtonColumn { FieldName="Code", HeaderText="教室代码", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Width=0.3, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Classroom/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@Html.Position()
查询条件
@Html.Hidden("hidEducationSchedulingStopID") @Html.PositionCondition()
  • 学年学期:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), OnSelect = "reload", Name = "ddlSchoolyear" }, new Dictionary { { "data-condition", "dgEducationSchedulingStopList" } })
  • 课程名称:
  • @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", "dgEducationSchedulingStopList" } })
  • @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", "dgEducationSchedulingStopList" } })
  • 教师:
  • @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", "dgEducationSchedulingStopList" } })
  • 周次:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/GetWeekListDropdown"), ID = "ddlWeekNum", Name = "ddlWeekNum", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgEducationSchedulingStopList" } })
  • 星期:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.ES_WeekDay, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "WeekDay", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgEducationSchedulingStopList" } })
  • 节次:
  • @Html.ComboGrid(time, new Dictionary { { "data-condition", "dgEducationSchedulingStopList" } })
  • 教室:
  • @Html.ComboGrid(cgop, new Dictionary { { "data-condition", "dgEducationSchedulingStopList" } })
  • 申请人:
  • @Html.ComboGrid(new ComboGridOptions { TextField = "Name", ValueField = "UserID", ID = "applyUserID", Name = "applyUserID", OnSelect = "reload", SelectedValue = EMIS.Utility.FormValidate.CustomPrincipal.Current.UserID, GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="教师姓名", Width=0.1, Align=AlignStyle.Center } }, OnLoadSuccessFun = "reload", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Staff/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, IsAutoLoad = true } }, new Dictionary { { "data-condition", "dgEducationSchedulingStopList" } })
  • 申请时间
  • @Html.TextBox(new TextBoxOptions { TextBoxType = TextBoxType.Date, Name = "txtStartDate", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgEducationSchedulingStopList" } })
  • @Html.TextBox(new TextBoxOptions { TextBoxType = TextBoxType.Date, Name = "txtEndDate", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgEducationSchedulingStopList" } })
  • 状态:
  • @Html.DropdownList(new DropdownListOptions { Name = "ddlRecordStatus", ItemSourceUrl = Url.Content("~/Common/ApproveStatusDropDown?tableName=" + typeof(EMIS.Entities.ES_EducationSchedulingStop).Name), BindType = DropdownListBindType.SelectAll, SelectedValue = ViewBag.DefaultApproveStatusID, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgEducationSchedulingStopList" } })
课程列表
@Html.ContextMenuBar("List")
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="EducationSchedulingStopID" }, 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="TimeDetail", HeaderText="上课时间", Align=AlignStyle.Center, Width=80 }, new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室", Align=AlignStyle.Center, Width=80 }, new BoundFieldColumn { FieldName="TeacherNames", HeaderText="停课老师", Align=AlignStyle.Center, Width=80 }, new BoundFieldColumn { FieldName="applyUserName", 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_EducationSchedulingStop).Name, IDFieldName="EducationSchedulingStopID", HeaderText="状态", Align=AlignStyle.Center,Width=0.04 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/EducationSchedule/StopApproveList"), ID = "dgEducationSchedulingStopList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })