123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "List";
- }
- @section scripts{
- <script src="~/Scripts/Business/SchedulingManage/Scheduling/StopScheduling.js"
- type="text/javascript"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @Html.Position()
- <form id="formQuery" method="post">
- <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 = BaseExtensions.GetCurrentSchoolYearID(),
- ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"),
- OnSelect = "reload()",
- Name = "ddlSchoolyear"
- },
- new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">教师:</li>
- <li class="sv">
- @Html.ComboGrid(new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "UserID",
- ID = "cgbTeacher",
- Name = "cgbTeacher",
- OnSelect = "reload",
- SelectedValue = EMIS.Utility.FormValidate.CustomPrincipal.Current.UserID,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- 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<string, string> { { "data-condition", "dgEducationSchedulingList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">课程名称:</li>
- <li class="sv">
- @Html.ComboGrid(new ComboGridOptions
- {
- TextField = "CourseName",
- ValueField = "CoursematerialID",
- Name = "cgbCoursematerial",
- OnSelect = "reload",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.12 },
- new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 }
- },
- IsAutoLoad = false,
- IsCheckOnSelect = true,
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">任务班名称:</li>
- <li class="sv">
- @Html.ComboGrid(new ComboGridOptions
- {
- TextField = "EducationMissionClassName",
- ValueField = "EducationMissionClassID",
- Name = "cgbEducationMissionClass",
- OnSelect = "reload",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="任务班名称", Align=AlignStyle.Center }
- },
- IsAutoLoad = false,
- IsCheckOnSelect = true,
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingList" } })
- </li>
- </ul>
- <ul>
- <li class="sn" style="padding-left: 5px;">周次:</li>
- <li class="sv">
- @Html.DropdownList(new DropdownListOptions
- {
- BindType = DropdownListBindType.SelectAll,
- OnSelect = "reload()",
- Name = "ddlWeekNum"
- },
- new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">星期:</li>
- <li class="sv">
- @Html.DropdownList(new DropdownListOptions
- {
- BindType = DropdownListBindType.SelectAll,
- OnSelect = "reload()",
- Name = "ddlWeekDay"
- },
- new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">节次:</li>
- <li class="sv">
- @Html.DropdownList(new DropdownListOptions
- {
- BindType = DropdownListBindType.SelectAll,
- OnSelect = "reload()",
- Name = "ddlCourseTimes"
- },
- new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">教室:</li>
- <li class="sv">
- @Html.ComboGrid(new ComboGridOptions
- {
- TextField = "ClassroomName",
- ValueField = "ClassroomID",
- Name = "cgbClassroom",
- OnSelect = "reload",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室名称", Align=AlignStyle.Center }
- },
- IsAutoLoad = false,
- IsCheckOnSelect = true,
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingList" } })
- </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("Edit")</div>
- </div>
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="EducationSchedulingWeekNumID" },
- new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="任务班名称", Align=AlignStyle.Center, Width=230 },
- new BoundFieldColumn { FieldName="CourseName", HeaderText="课程", Align=AlignStyle.Center, Width=80 },
- new BoundFieldColumn { FieldName="TeacherNames", HeaderText="教师", Align=AlignStyle.Center, Width=80 },
- new BoundFieldColumn { FieldName="WeekNum", HeaderText="周次", Align=AlignStyle.Center, Width=80 },
- new BoundFieldColumn { FieldName="WeekdayDesc", HeaderText="星期", Align=AlignStyle.Center, Width=80 },
- new BoundFieldColumn { FieldName="CoursesTimeName", HeaderText="节次", Align=AlignStyle.Center, Width=80 },
- new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室", Align=AlignStyle.Center, Width=80 }
- },
- IsAutoLoad = false,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/EducationSchedule/Stop"),
- ID = "dgEducationSchedulingList",
- IsPagination = false,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- </div>
|