List.cshtml 5.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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/Evaluation/StudentEvaluationEnter.js" type="text/javascript"></script>
  8. <script type="text/javascript">
  9. var nonSelect = "@DropdownList.SELECT_ALL";
  10. </script>
  11. }
  12. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  13. @Html.Position()
  14. <div class="p_SearchTitle">
  15. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  16. </div>
  17. <form id="formQuery" method="post" action="@Url.Content("~/StudentEvaluationEnter/Excel")">
  18. @Html.PositionCondition()
  19. @*<div class="search_keyword">
  20. <div class="search_input">
  21. </div>
  22. </div>*@
  23. </form>
  24. <div class="p_title">
  25. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">进入评价列表</div>
  26. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  27. </div>
  28. @*Html.PositionBatchModify()*@
  29. <div class="search_list">
  30. @Html.DataGrid(new DataGridOptions
  31. {
  32. Columns = new List<DataGridColumn>()
  33. {
  34. new CheckBoxFieldColumn{ HeaderText="", FieldName="EvaluationStudentID" },
  35. new LinkButtonColumn { Text="进入评价", HeaderText="操作", Align=AlignStyle.Center, Handle="enterEdit", Width=0.04 },
  36. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.06 },
  37. //new BoundFieldColumn { FieldName="MissionName", HeaderText="任务名称", Align=AlignStyle.Center, Width=0.06, OverflowLength=6, OverflowLength=6 },
  38. //new BoundFieldColumn { FieldName="MissionClassName", HeaderText="任务班名称", Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
  39. //new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
  40. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1, OverflowLength=10 },
  41. //new BoundFieldColumn { FieldName="CourseStructureName", HeaderText="课程结构", Align=AlignStyle.Center, OrderFieldName="CourseStructureID", Width=0.05, OverflowLength=5 },
  42. //new BoundFieldColumn { FieldName="CourseCategoryName", HeaderText="课程属性", Align=AlignStyle.Center, OrderFieldName="CourseCategoryID", Width=0.05, OverflowLength=5 },
  43. new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center, OrderFieldName="CourseTypeID", Width=0.05, OverflowLength=5 },
  44. //new BoundFieldColumn { FieldName="CourseQualityName", HeaderText="课程性质", Align=AlignStyle.Center, OrderFieldName="CourseQualityID", Width=0.05, OverflowLength=5 },
  45. //new BoundFieldColumn { FieldName="Credit", HeaderText="课程学分", Align=AlignStyle.Center, Width=0.04 },
  46. //new BoundFieldColumn { FieldName="DepartmentNo", HeaderText="开课教研室代码", Align=AlignStyle.Center, Width=0.08 },
  47. //new BoundFieldColumn { FieldName="DepartmentName", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
  48. new BoundFieldColumn { FieldName="HandleModeName", HeaderText="处理方式", Align=AlignStyle.Center, OrderFieldName="HandleModeID", Width=0.04, CustomFormatFun="SetRedColumn" },
  49. new BoundFieldColumn { FieldName="TeachingModeName", HeaderText="授课方式", Align=AlignStyle.Center, OrderFieldName="TeachingModeID", Width=0.04, CustomFormatFun="SetRedColumn" },
  50. //new BoundFieldColumn { FieldName="MissionClassStatusName", HeaderText="任务状态", Align=AlignStyle.Center, OrderFieldName="MissionClassStatus", Width=0.04, CustomFormatFun="SetRedColumn" },
  51. //new BoundFieldColumn { FieldName="StaffCode", HeaderText="教师工号", Align=AlignStyle.Center, Width=0.04, OverflowLength=4 },
  52. new BoundFieldColumn { FieldName="StaffName", HeaderText="任课教师", Align=AlignStyle.Center, Width=0.04, OverflowLength=4 },
  53. //new BoundFieldColumn { FieldName="TitleName", HeaderText="职称", Align=AlignStyle.Center, OrderFieldName="TitleID", Width=0.03 },
  54. new BoundFieldColumn { FieldName="TeachingMethodName", HeaderText="任课方式", Align=AlignStyle.Center, OrderFieldName="TeachingMethodID", Width=0.04 },
  55. //new BoundFieldColumn { FieldName="ParticipateTypeName", HeaderText="参评类型", Align=AlignStyle.Center, OrderFieldName="ParticipateTypeID", Width=0.04 },
  56. //new BoundFieldColumn { FieldName="EvaluationTypeCode", HeaderText="评价类型编号", Align=AlignStyle.Center, Width=0.06 },
  57. //new BoundFieldColumn { FieldName="EvaluationTypeName", HeaderText="评价类型", Align=AlignStyle.Center, Width=0.04 },
  58. //new BoundFieldColumn { FieldName="EvaluationTableCode", HeaderText="评价表编号", Align=AlignStyle.Center, Width=0.05 },
  59. new BoundFieldColumn { FieldName="EvaluationTableName", HeaderText="评价表名", Align=AlignStyle.Center, Width=0.12 },
  60. new BoundFieldColumn { FieldName="Number", HeaderText="可评次数", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
  61. new BoundFieldColumn { FieldName="Numbered", HeaderText="已评次数", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" }
  62. },
  63. IsCheckOnSelect = true,
  64. DataSourceUrl = Url.Content("~/StudentEvaluationEnter/List"),
  65. ID = "dgStudentEvaluationEnterList",
  66. IsPagination = true,
  67. IsShowRowNumbers = true,
  68. IsSingleSelect = false
  69. })
  70. </div>
  71. </div>