123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223 |
- @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<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.3, Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Classroom/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/SchedulingManage/Scheduling/StopApprove.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()
- <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("~/EducationSchedule/StopApproveExcel")">
- @Html.Hidden("hidEducationSchedulingStopID")
- @Html.PositionCondition()
- <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", "dgEducationSchedulingStopList" } })
- </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 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingStopList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
- <li class="sv">
- @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListBanids"), ID = "ddlCollege", Name = "ddlCollege", OnSelect = "queryTeacher" }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingStopList" } })
- </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",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- 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<string, string> { { "data-condition", "dgEducationSchedulingStopList" } })
- </li>
- </ul>
- <ul>
- <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", "dgEducationSchedulingStopList" } })
- </li>
- <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", "dgEducationSchedulingStopList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">节次:</li>
- <li class="sv">
- @Html.ComboGrid(time, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingStopList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">教室:</li>
- <li class="sv">
- @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingStopList" } })
- </li>
- </ul>
- <ul>
- <li class="sn" style="padding-left: 5px;">申请人:</li>
- <li class="sv">
- @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<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", "dgEducationSchedulingStopList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">申请时间</li>
- <li class="sv">
- @Html.TextBox(new TextBoxOptions { TextBoxType = TextBoxType.Date, Name = "txtStartDate", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingStopList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">至</li>
- <li class="sv">
- @Html.TextBox(new TextBoxOptions { TextBoxType = TextBoxType.Date, Name = "txtEndDate", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingStopList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">状态:</li>
- <li class="sv">
- @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<string, string> { { "data-condition", "dgEducationSchedulingStopList" } })
- </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="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
- })
- </div>
- </div>
|