12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "StudentList";
- Guid? grademajorID = new Guid(Request["GrademajorID"]);
- int? inschoolStatus = Convert.ToInt32(Request["inschoolStatus"]);
- }
- @section scripts{
- <script src="~/Scripts/Business/GraduationManage/GraduationSetting/GraduationStandard.js" type="text/javascript"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- //刷新
- function reload() {
- $("#dgStudentList").cmsXDataTable("load", $.getDataGridParams("dgStudentList"));
- }
- //设置列颜色为红色
- function SetRedColumn(index, row, value) {
- return " <span style=\"color: red;\">" + value + "</span>";
- }
- //Excel导出
- function GrademajorStudent_Export() {
- $("#formQuery").submit();
- }
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- <form id="formQuery" method="post" action="@Url.Content("~/GraduationStandard/GrademajorStudentExcel?grademajorID=" + grademajorID + "&inschoolStatus=" + inschoolStatus)">
- @Html.PositionCondition("GraStandardStudent")
- <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("GraDetail")</div>
- </div>
- </form>
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn { FieldName="UserID" },
- new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center,Width=0.08 },
- new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center,Width=0.05 },
- new BoundFieldColumn { FieldName="SexName", HeaderText="性别", OrderFieldName="Sex", Align=AlignStyle.Center,Width=0.03 },
- new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.03, CustomFormatFun="SetRedColumn" },
- new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center,Width=0.1 },
- new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", OrderFieldName="InSchoolStatusID", Align=AlignStyle.Center,Width=0.04, CustomFormatFun="SetRedColumn" },
- new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", OrderFieldName="StudentStatus", Align=AlignStyle.Center,Width=0.04 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/GraduationStandard/Detail?grademajorID=" + grademajorID + "&inschoolStatus=" + inschoolStatus),
- IsPostBack = true,
- ID = "dgStudentList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- </div>
|