123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "StudentViewSelect";
- ComboGridOptions cgopCampus = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "CampusID",
- ID = "cgCampus",
- Name = "cgCampus",
- OnSelect = "queryCollege",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center }
- },
- //OnLoadSuccessFun = "reload",
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Campus/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions cgop = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "CollegeID",
- Name = "CollegeComboGrid",
- ID = "CollegeComboGrid",
- OnSelect = "SelectCollegeComboGrid",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
- 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
- }
- };
- ComboGridOptions cgopStandard = new ComboGridOptions
- {
- TextField = "StandardName",
- ValueField = "StandardID",
- OnSelect = "SelectStandardComboGrid",
- Name = "StandardID",
- ID = "StandardID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Grademajor/GrademajorBindComboGridOptions"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- //ComboGridOptions cgopGrademajor = new ComboGridOptions
- //{
- // TextField = "Name",
- // ValueField = "GrademajorID",
- // Name = "GrademajorComboGrid",
- // ID = "GrademajorComboGrid",
- // OnSelect = "SelectGrademajorComboGrid",
- // GridOptions = new DataGridOptions
- // {
- // Columns = new List<DataGridColumn>()
- // {
- // new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Align=AlignStyle.Center },
- // new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center }
- // },
- // IsCheckOnSelect = true,
- // DataSourceUrl = Url.Content("~/Grademajor/List"),
- // IsPagination = true,
- // IsShowRowNumbers = true,
- // IsSingleSelect = false
- // }
- //};
- ComboGridOptions cgopClassmajor = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ClassmajorID",
- Name = "ClassmajorComboGrid",
- ID = "ClassmajorComboGrid",
- //OnSelect = "reload",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Classmajor/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/ExaminationApply/StudentSelect.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;">
- <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:Student_Confirm()" data-options="iconCls:'icon-ok',plain:'true'"
- onfocus="this.blur()">选中</a>
- </div>
- </div>
- </div>
- </div>
- <form id="formQuery" method="post">
- @Html.PositionCondition("GdssStudentSelect")
- <div class="search_keyword">
- <div class="search_input">
- <ul>
- <li class="sn" style="padding-left: 5px;">校区:</li>
- <li class="sv">
- @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_SchoolArea, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlSchoolArea", Name = "ddlSchoolArea" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
- <li class="sv">
- @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">年级:</li>
- <li class="sv">
- @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlYear", Name = "ddlYear", OnSelect = "queryGrademajor" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
- </li>
- @*<li class="sn" style="padding-left: 5px;">年级专业:</li>
- <li class="sv">
- @Html.ComboGrid(cgopGrademajor, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
- </li>*@
- </ul>
- <ul>
- <li class="sn" style="padding-left: 5px;">专业名称:</li>
- <li class="sv">
- @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">班级:</li>
- <li class="sv">
- @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
- </li>
- </ul>
- </div>
- </div>
- </form>
- <div class="search_list">
- @Html.ContextMenuBar("Edit-StudentSelect")
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"},
- new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.08 },
- new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.08 },
- new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号", Align=AlignStyle.Center, Width=0.12 },
- },
- IsAutoLoad = false,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/StudentListForSelect?examinationRegistrationID=" + @ViewBag.examinationRegistrationID + "&examinationBatchID=" + @ViewBag.examinationBatchID + "&examinationProjectID=" + @ViewBag.examinationProjectID),
- ID = "dgStudentList",
- IsPagination = true,
- PageSize = 100,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- IsAutoHeight = false,
- })
- </div>
- </div>
|