123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "List";
- }
- @section scripts{
- <script src="~/Scripts/Business/SchedulingManage/Scheduling/AdjustmentList.js"
- type="text/javascript"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- var startStatusID = '@ViewBag.StartStatusID';
- var backpointIDList = eval('(@ViewBag.BackpointIDs)');
- </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/AdjustmentExcel")">
- @Html.Hidden("hidEducationSchedulingAdjustmentID")
- @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", OnLoadSuccess = "reload", Name = "ddlSchoolyear" }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingAdjustmentList" } })
- </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", "dgEducationSchedulingAdjustmentList" } })
- </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", "dgEducationSchedulingAdjustmentList" } })
- </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", "dgEducationSchedulingAdjustmentList" } })
- </li>
- </ul>
- <ul>
- <li class="sn" style="padding-left: 5px">教室:</li>
- <li class="sv">
- @Html.ComboGrid(new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ClassroomID",
- OnSelect = "reload",
- Name = "cbgClassroom",
- ID = "cbgClassroom",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Classroom/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingAdjustmentList" } })
- </li>
- <li class="sn" style="padding-left: 5px">申请人:</li>
- <li class="sv">
- @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<DataGridColumn>()
- {
- 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<string, string> { { "data-condition", "dgEducationSchedulingAdjustmentList" } })
- </li>
- <li class="sn" style="padding-left: 5px">申请时间:</li>
- <li class="sv">
- @Html.TextBox(new TextBoxOptions { ID = "txtStartTime", Name = "txtStartTime", TextBoxType = TextBoxType.Date, OnChange = "startTimeChanged" }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingAdjustmentList" } })
- </li>
- <li class="sn" style="padding-left: 5px">至</li>
- <li class="sv">
- @Html.TextBox(new TextBoxOptions { ID = "txtEndTime", Name = "txtEndTime", TextBoxType = TextBoxType.Date, OnChange = "endTimeChanged" }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingAdjustmentList" } })
- </li>
- </ul>
- <ul>
- <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_EducationSchedulingAdjustment).Name),
- BindType = DropdownListBindType.SelectAll,
- OnSelect = "reload"
- }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingAdjustmentList" } })
- </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="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
- })
- </div>
- </div>
|