123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "List";
- ComboGridOptions cgopCollege = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "CollegeID",
- Name = "ComboGridCollege",
- ID = "ComboGridCollege",
- OnSelect = "queryCollege",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions cgopOpenCollege = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "CollegeID",
- Name = "ComboGridOpenCollege",
- ID = "ComboGridOpenCollege",
- OnSelect = "queryCollege",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions week = new ComboGridOptions
- {
- TextField = "x",
- ValueField = "x",
- OnSelect = "reload",
- Name = "ddlWeekNum",
- ID = "ddlWeekNum",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="x", HeaderText="上课时间", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/SchoolYear/GetWeekListDropdown"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- ComboGridOptions time = new ComboGridOptions
- {
- TextField = "Times",
- ValueField = "CoursesTimeID",
- OnSelect = "reload",
- Name = "Times",
- ID = "Times",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- 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<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="Code", HeaderText="教室代码", Width=0.1, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Width=0.2, Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Classroom/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/SchedulingManage/Scheduling/Realtime.js"></script>
- <script type="text/javascript">
- var submitted = "@((int)EMIS.ViewModel.EM_EducationMissionClassStatus.Submitted)";
- var notSubmitted = "@((int)EMIS.ViewModel.EM_EducationMissionClassStatus.NotSubmitted)";
- var scheduled = "@((int)EMIS.ViewModel.EM_EducationMissionClassStatus.Scheduled)";
- var nonSelect = "@DropdownList.SELECT_ALL";
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @Html.Position()
- <div class="p_SearchTitle">
- <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
- 查询条件
- </div>
- </div>
- <form id="formQuery" method="post" action="@Url.Content("~/EducationSchedulingReport/Excel")">
-
- <div class="search_keyword">
- <div class="search_input">
- <ul>
- <li class="sn" style="padding-left: 5px;">学年学期:</li>
- <li class="sv">
- @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, SelectedValue = @ViewBag.SchoolYearID, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), OnSelect = "QuerySchoolyearDropdownList", Name = "SchoolyearDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassSchedule" } })
- </li>
- <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("CourseCollege"):</li>
- <li class="sv">
- @Html.ComboGrid(cgopOpenCollege, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassSchedule" } })
- </li>
- <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
- <li class="sv">
- @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassSchedule" } })
- </li>
- <li class="sn" style="padding-left: 5px;">上课周次:</li>
- <li class="sv">
- @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/GetWeekListDropdown"), ID = "ddlWeekNum", Name = "ddlWeekNum", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassSchedule" } })
- </li>
- </ul>
- <ul>
- <li class="sn" style="padding-left: 5px;">星期:</li>
- <li class="sv">
- @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.ES_WeekDay, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "WeekDay", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassSchedule" } })
- </li>
- <li class="sn" style="padding-left: 5px;">上课节次:</li>
- <li class="sv">
- @Html.ComboGrid(time, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassSchedule" } })
- </li>
- <li class="sn" style="padding-left: 5px;color: red;">教室名称:</li>
- <li class="sv">
- @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassSchedule" } })
- </li>
- <li class="sn" style="padding-left: 20px;"><a href="javascript:void(0)" class="easyui-linkbutton"
- data-options="iconCls:'icon-search'" onclick="reload();">查询</a></li>
- </ul>
- </div>
- </div>
- </form>
- <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("List")</div>
- </div>
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="EducationMissionClassID" },
- new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室名称", Align=AlignStyle.Center, Width=0.08 },
- new BoundFieldColumn { FieldName="WeekNum", HeaderText="上课周次", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="WeekdayName", HeaderText="星期", Align=AlignStyle.Center, Width=0.04, OrderFieldName="Weekday" },
- new BoundFieldColumn { FieldName="Times", HeaderText="上课节次", Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
- new BoundFieldColumn { FieldName="TimesHoure", HeaderText="上课时间", Align=AlignStyle.Center, Width=0.06 },
- new BoundFieldColumn { FieldName="TeacherName", HeaderText="授课老师", Align=AlignStyle.Center, Width=0.06, OrderFieldName="" },
- new BoundFieldColumn { FieldName="Name", HeaderText="任务班名称", Align=AlignStyle.Center, Width=0.15, OverflowLength=20 },
- new BoundFieldColumn { FieldName="OpenCollegeName", HeaderText=@EMIS.Utility.RSL.Get("CourseCollege"), Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
- new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
- new LinkButtonColumn { FieldName="ClassNum", HeaderText="人数", Align=AlignStyle.Center, Handle="SchedulingClassStudentEdit", Width=0.03 },
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/EducationSchedulingReport/RealtimeGT"),
- ID = "dgEducationMissionClassSchedule",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- </div>
|