123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- ComboGridOptions cgop = new ComboGridOptions
- {
- TextField = "ClassName",
- ValueField = "EducationMissionID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="ClassName", HeaderText="班级名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/EducationMissionClass/EducationMissionClassConjunctionList"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions cgopCoursematerial = new ComboGridOptions
- {
- TextField = "CourseName",
- ValueField = "CoursematerialID",
- Name = "ComboGridCoursematerial",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions cgopCollege = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "CollegeID",
- Name = "ComboGridCollege",
- 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,
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/EducationManage/EducationMissionConjunctionList.js" type="text/javascript"></script>
- <script type="text/javascript">
- function EducationMissionConjunction_Confirm() {
- var data = validChoose();
- var teachingModeIDArr = $.map(data, function (v) { return v.TeachingModeIDs });
- var coursematerialIDArr = $.map(data, function (v) { return v.CoursematerialID });
- var schoolyearIDArr = $.map(data, function (v) { return v.SchoolyearID });
- for (var i = 0; i < data.length; i++) {
- if (data[i].TeachingModeIDs.toString() != data[0].TeachingModeIDs.toString()) {
- $.messager.alert("系统提示", "选择的合班数据存在授课方式不一致,请检查!");
- return;
- }
- }
- var teachingModeNewArry = $.unique(teachingModeIDArr);
- var coursematerialIDNewArry = $.unique(coursematerialIDArr);
- var schoolyearNewArry = $.unique(schoolyearIDArr);
-
- if (coursematerialIDNewArry.length > 1) {
- $.messager.alert("系统提示", "选择的合班数据存在课程名称或课程代码不一致,请检查!");
- return;
- }
- if (schoolyearNewArry.length > 1) {
- $.messager.alert("系统提示", "选择的合班数据存在学年学期不一致,请检查!");
- return;
- }
- top.$("#@(Request["WindowID"])").data("resultData", validChoose());
- top.$("#@(Request["WindowID"])").dialog("close");
- }
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
- {
- <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;">
- <div class="current_navbar toolbar">
- <div class="func_info">
- <a class="easyui-linkbutton" href="javascript:EducationMissionConjunction_Confirm()" data-options="iconCls:'icon-ok',plain:'true'"
- onfocus="this.blur()">选中</a>
- </div>
- </div>
- </div>
- </div>
- <div class="search_keyword" style="margin: 0px">
- <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 = "SchoolyearDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionConjunctionList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">任务班名称:</li>
- <li class="sv">
- @Html.TextBox(new TextBoxOptions { Name = "TextClassName" }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionConjunctionList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">课程名称:</li>
- <li class="sv">
- @Html.ComboGrid(cgopCoursematerial, new Dictionary<string, string> { { "data-condition", "dgEducationMissionConjunctionList" } })
- </li>
- </ul>
- <ul>
- <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", "dgEducationMissionConjunctionList" } })
- </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>
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="EducationMissionID" },
- new BoundFieldColumn { FieldName="SchoolYearCode", HeaderText="学年学期", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="ClassName", HeaderText="班级名称", Align=AlignStyle.Center, OverflowLength = 30 },
- new BoundFieldColumn { FieldName="CoursematerialID", HeaderText="课程ID",IsHidden=true, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Population", HeaderText="班级人数", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="TeachingModeNames", HeaderText="授课方式", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/EducationMissionClass/EducationMissionConjunctionList"),
- ID = "dgEducationMissionConjunctionList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- }
- </div>
|