123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "List";
- ComboGridOptions optCollege = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "CollegeID",
- OnSelect = "queryUser",
- Name = "cgbCollege",
- ID = "cgbCollege",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/College/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions optStudentCollege = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "CollegeID",
- OnSelect = "queryStandard",
- Name = "cgbStudentCollege",
- ID = "cgbStudentCollege",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions optCourseCollege = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "CollegeID",
- OnSelect = "reload",
- Name = "cgbCourseCollege",
- ID = "cgbCourseCollege",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
-
- ComboGridOptions optStandard = new ComboGridOptions
- {
- TextField = "StandardName",
- ValueField = "StandardID",
- OnSelect = "reload",
- Name = "cgbStandard",
- ID = "cgbStandard",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- IsShowHeader = false
- }
- };
- ComboGridOptions optUser = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "UserID",
- OnSelect = "reload",
- ID = "cgbUser",
- Name = "cgbUser",
- 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
- }
- };
- ComboGridOptions optCourse = new ComboGridOptions
- {
- TextField = "CourseName",
- ValueField = "CoursematerialID",
- OnSelect = "reload",
- Name = "cgbCourse",
- 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,
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/PaymentManage/WorktimeAddition.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("~/WorktimeAddition/Excel")">
- @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, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), Name = "ddlSchoolyear", ID = "ddlSchoolyear", SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgWorktimeAdditionList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">教师@(EMIS.Utility.RSL.Get("College")):</li>
- <li class="sv">
- @Html.ComboGrid(optCollege, new Dictionary<string, string> { { "data-condition", "dgWorktimeAdditionList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">教师:</li>
- <li class="sv">
- @Html.ComboGrid(optUser, new Dictionary<string, string> { { "data-condition", "dgWorktimeAdditionList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">学生@(EMIS.Utility.RSL.Get("College")):</li>
- <li class="sv">
- @Html.ComboGrid(optStudentCollege, new Dictionary<string, string> { { "data-condition", "dgWorktimeAdditionList" } })
- </li>
- </ul>
- <ul>
- <li class="sn" style="padding-left: 5px;">年级:</li>
- <li class="sv">
- @Html.DictionaryDropDownListForSearch(EMIS.ViewModel.DictionaryItem.CF_Grade, "dgWorktimeAdditionList", new DropdownListOptions { ID = "ddlYear", Name = "ddlYear", OnSelect = "queryStandard" })
- </li>
- <li class="sn" style="padding-left: 5px;">专业:</li>
- <li class="sv">
- @Html.ComboGrid(optStandard, new Dictionary<string, string> { { "data-condition", "dgWorktimeAdditionList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">@(EMIS.Utility.RSL.Get("CourseCollege")):</li>
- <li class="sv">
- @Html.ComboGrid(optCourseCollege, new Dictionary<string, string> { { "data-condition", "dgWorktimeAdditionList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">课程:</li>
- <li class="sv">
- @Html.ComboGrid(optCourse, new Dictionary<string, string> { { "data-condition", "dgWorktimeAdditionList" } })
- </li>
- </ul>
- <ul>
- <li class="sn" style="padding-left: 5px;">授课方式:</li>
- <li class="sv">
- @Html.DictionaryDropDownListForSearch(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, "dgWorktimeAdditionList", new DropdownListOptions { ID = "ddlTeachingMode", Name = "ddlTeachingMode", OnSelect = "reload" })
- </li>
- <li class="sn" style="padding-left: 5px;">月份:</li>
- <li class="sv">
- @Html.DictionaryDropDownListForSearch(EMIS.ViewModel.DictionaryItem.CF_Month, "dgWorktimeAdditionList", new DropdownListOptions { ID = "ddlMonth", Name = "ddlMonth", OnSelect = "reload" })
- </li>
- </ul>
- </div>
- </div>
- <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>
- </form>
- @Html.PositionBatchModify()
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="WorktimeAdditionID" },
- new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CollegeName", HeaderText="教师单位", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="TeacherName", HeaderText="教师姓名", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="GradeYearID", HeaderText="年级", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="StandardDesc", HeaderText="专业", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CourseCollegeName", HeaderText=EMIS.Utility.RSL.Get("CourseCollege"), Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="任务班名", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="TeachingModeDesc", HeaderText="授课方式", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="TeachTypeDesc", HeaderText="任课方式", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="StudentCount", HeaderText="学生人数", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CourseTime", HeaderText="课时数", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Month", HeaderText="月份", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/WorktimeAddition/List"),
- ID = "dgWorktimeAdditionList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- </div>
|