List.cshtml 6.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. }
  6. @section scripts{
  7. <script src="~/Scripts/Business/StudentWeb/Change/StudentChange.js"></script>
  8. <script type="text/javascript">
  9. var nonSelect = "@DropdownList.SELECT_ALL";
  10. //开始环节状态
  11. var startStatusID = "@BaseExtensions.GetStartFlowStatus("CF_DifferentDynamic")";
  12. //已退回环节状态
  13. var sendBackStatusID = "@BaseExtensions.GetSendBackFlowStatus("CF_DifferentDynamic")";
  14. //结束环节状态
  15. var endStatusID = "@BaseExtensions.GetEndFlowStatus("CF_DifferentDynamic")";
  16. </script>
  17. }
  18. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  19. @Html.Position()
  20. <div class="p_SearchTitle">
  21. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  22. </div>
  23. <form id="formQuery" method="post" action="@Url.Content("~/StudentChange/Excel")">
  24. @Html.PositionCondition()
  25. @*<div class="search_keyword">
  26. <div class="search_input">
  27. </div>
  28. </div>*@
  29. </form>
  30. <div class="p_title">
  31. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">异动申请列表</div>
  32. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  33. </div>
  34. @*Html.PositionBatchModify()*@
  35. <div class="search_list">
  36. @Html.DataGrid(new DataGridOptions
  37. {
  38. Columns = new List<DataGridColumn>()
  39. {
  40. new CheckBoxFieldColumn{ HeaderText="", FieldName="StudentChangeID" },
  41. new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="异动学期", Align=AlignStyle.Center, Handle="edit", Width=0.06 },
  42. new BoundFieldColumn { FieldName="StudentNo", HeaderText="学号", Align=AlignStyle.Center, Width=0.06 },
  43. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  44. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, OrderFieldName="SexID", Width=0.02 },
  45. new BoundFieldColumn { FieldName="ChangeTypeName", HeaderText="异动类型", Align=AlignStyle.Center, OrderFieldName="ChangeTypeID", Width=0.04, CustomFormatFun="SetRedColumn" },
  46. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, OrderFieldName="InSchoolStatusID", Width=0.04, CustomFormatFun="SetRedColumn" },
  47. //new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Align=AlignStyle.Center, OrderFieldName="StudentStatus", Width=0.04, CustomFormatFun="SetRedColumn" },
  48. //new BoundFieldColumn { FieldName="BeforeStandardName", HeaderText="异动前专业", Align=AlignStyle.Center, Width=0.06 },
  49. new BoundFieldColumn { FieldName="BeforeClassmajorName", HeaderText="异动前班级", Align=AlignStyle.Center, Width=0.12 },
  50. new BoundFieldColumn { FieldName="BeforeInSchoolStatusName", HeaderText="在校状态(前)", Align=AlignStyle.Center, OrderFieldName="BeforeInSchoolStatusID", Width=0.05, CustomFormatFun="SetRedColumn" },
  51. //new BoundFieldColumn { FieldName="BeforeStudentStatusName", HeaderText="学籍状态(前)", Align=AlignStyle.Center, OrderFieldName="BeforeStudentStatus", Width=0.05, CustomFormatFun="SetRedColumn" },
  52. //new BoundFieldColumn { FieldName="AfterStandardName", HeaderText="异动后专业", Align=AlignStyle.Center, Width=0.06 },
  53. new BoundFieldColumn { FieldName="AfterClassmajorName", HeaderText="异动后班级", Align=AlignStyle.Center, Width=0.12 },
  54. new BoundFieldColumn { FieldName="AfterInSchoolStatusName", HeaderText="在校状态(后)", Align=AlignStyle.Center, OrderFieldName="AfterInSchoolStatusID", Width=0.05, CustomFormatFun="SetRedColumn" },
  55. //new BoundFieldColumn { FieldName="AfterStudentStatusName", HeaderText="学籍状态(后)", Align=AlignStyle.Center, OrderFieldName="AfterStudentStatus", Width=0.05, CustomFormatFun="SetRedColumn" },
  56. new BoundFieldColumn { FieldName="ChangeReasonName", HeaderText="异动原因", Align=AlignStyle.Center, OrderFieldName="ChangeReasonID", Width=0.08, OverflowLength=10 },
  57. new BoundFieldColumn { FieldName="Description", HeaderText="申请说明", Align=AlignStyle.Center, Width=0.08, OverflowLength=10 },
  58. //new BoundFieldColumn { FieldName="ReturnSchoolyearCode", HeaderText="返校学期", Align=AlignStyle.Center, Width=0.06 },
  59. new BoundFieldColumn { FieldName="ChangeDate", HeaderText="异动日期", Align=AlignStyle.Center, Width=0.06, Formatter = Formatter.OnlyYearMonthDay },
  60. //new BoundFieldColumn { FieldName="ReportStatusName", HeaderText="注册状态", Align=AlignStyle.Center, OrderFieldName="ReportStatus", Width=0.04, CustomFormatFun="SetRedColumn" },
  61. //new BoundFieldColumn { FieldName="CampusCode", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.05 },
  62. //new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("Campus"), Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
  63. //new BoundFieldColumn { FieldName="CollegeNo", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.05 },
  64. //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
  65. //new BoundFieldColumn { FieldName="CreateUserName", HeaderText="申请人", Align=AlignStyle.Center, Width=0.04 },
  66. new ApproveStatusColumn { FieldName="ApprovalStatusName", TableName=typeof(EMIS.Entities.CF_DifferentDynamic).Name, IDFieldName="StudentChangeID", HeaderText="状态", Align=AlignStyle.Center, Width=0.03 }
  67. //new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.02, OverflowLength=3 }
  68. },
  69. IsCheckOnSelect = true,
  70. DataSourceUrl = Url.Content("~/StudentChange/List"),
  71. ID = "dgStudentChangeList",
  72. IsPagination = true,
  73. IsShowRowNumbers = true,
  74. IsSingleSelect = false
  75. })
  76. </div>
  77. </div>