123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- @model EMIS.ViewModel.ScoreManage.FinalExaminationView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- Guid? finalExaminationID = ViewBag.FinalExaminationID;
- }
- <style type="text/css">
- #FinalExaminationtable
- {
- width: 100%;
- border: 0px none;
- }
- #FinalExaminationtable tr
- {
- min-height: 30px;
- }
- .backgroundColor
- {
- background-color: #EEE8AA;
- }
- </style>
- <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>
- <div class="search_list">
- <table cellpadding="0" cellspacing="0" id="FinalExaminationtable">
- <tr>
- <td>
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn { FieldName="UserID", HeaderText="" },
- new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, CustomFormatFun = "LoginIDColor" ,Width=0.1},
- new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, CustomFormatFun = "UserNameColor",Width=0.05 },
- new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, CustomFormatFun = "SexNameColor",Width=0.03 },
- new BoundFieldColumn { FieldName="Startterm", HeaderText="开课学期", Align=AlignStyle.Center, CustomFormatFun = "CoursematerialNameColor",Width=0.05 },
- new BoundFieldColumn { FieldName="CoursematerialCode", HeaderText="课程代码", Align=AlignStyle.Center, CustomFormatFun = "CoursematerialCodeColor",Width=0.06 },
- new BoundFieldColumn { FieldName="CoursematerialName", HeaderText="课程名称", Align=AlignStyle.Center, CustomFormatFun = "CoursematerialNameColor",Width=0.1 },
- new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center, CustomFormatFun = "ClassmajorNameColor",Width=0.15 },
- new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, CustomFormatFun = "InSchoolStatusNameColor",Width=0.05 },
- new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Align=AlignStyle.Center, CustomFormatFun = "StudentStatusNameColor",Width=0.05 },
- new BoundFieldColumn { FieldName="IsDifferentDynamic", HeaderText="是否异动申请", Align=AlignStyle.Center, IsHidden = true },
- new BoundFieldColumn { FieldName="RecordStatus", HeaderText="是否可用", Align=AlignStyle.Center, IsHidden = true }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ScoreAudit/FinalExaminationStudentList?finalExaminationID=" + finalExaminationID),
- IsPostBack = true,
- ID = "dgStudentList",
- IsPagination = false,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- CustomerRowStyleFun = "gridHighlight",
- MaxHeight = 350,
- })
- </td>
- </tr>
- </table>
- </div>
- <div style = "color:Red">
- *黄色背景标识的为申请重录的学生
- </div>
- }
- </div>
- @section scripts{
- <script type="text/javascript">
- var IsUseable = 0;
- function gridHighlight(rowIndex, rowData) {
- if (@ViewBag.IsColor == 1) {
- if (rowData.RecordStatus == 1) {
- return "background-color:#FFFACD;";
- } else {
- return "";
- }
- }
- }
- function LoginIDColor(index, row, value) {
- var returnStr = value;
- // if (row.RecordStatus == 1) {
- // returnStr = " <div class=\"background\" style=\"background-color:red;\">" + value + "</div>";
- // }
- if (row.IsDifferentDynamic == true) {
- returnStr = " <div style=\"color:red;\">" + value + "</div>";
- }else{
- return returnStr;
- }
- return returnStr;
- }
- function UserNameColor(index, row, value) {
- var returnStr = value;
- if (row.IsDifferentDynamic == true) {
- returnStr = " <div style=\"color:red;\">" + value + "</div>";
- } else {
- return returnStr;
- }
- return returnStr;
- }
- function SexNameColor(index, row, value) {
- var returnStr = value;
- if (row.IsDifferentDynamic == true) {
- returnStr = " <div style=\"color:red;\">" + value + "</div>";
- }else {
- return returnStr;
- }
- return returnStr;
- }
- function StudentStatusNameColor(index, row, value) {
- var returnStr = value;
- if (row.IsDifferentDynamic == true) {
- returnStr = " <div style=\"color:red;\">" + value + "</div>";
- }else {
- return returnStr;
- }
- return returnStr;
- }
- function InSchoolStatusNameColor(index, row, value) {
- var returnStr = value;
- if (row.IsDifferentDynamic == true) {
- returnStr = " <div style=\"color:red;\">" + value + "</div>";
- }else {
- return returnStr;
- }
- return returnStr;
- }
- function CoursematerialCodeColor(index, row, value) {
- var returnStr = value;
- if (row.IsDifferentDynamic == true) {
- returnStr = " <div style=\"color:red;\">" + value + "</div>";
- } else {
- return returnStr;
- }
- return returnStr;
- }
- function CoursematerialNameColor(index, row, value) {
- var returnStr = value;
- if (row.IsDifferentDynamic == true) {
- returnStr = " <div style=\"color:red;\">" + value + "</div>";
- }else {
- return returnStr;
- }
- return returnStr;
- }
- function ClassmajorNameColor(index, row, value) {
- var returnStr = value;
- if (row.IsDifferentDynamic == true) {
- returnStr = " <div style=\"color:red;\">" + value + "</div>";
- } else {
- return returnStr;
- }
- return returnStr;
- }
- </script>
- }
|