SOCDetailList.cshtml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "SOCDetailList";
  5. ComboGridOptions cgopCourse = new ComboGridOptions
  6. {
  7. TextField = "CourseName",
  8. ValueField = "CoursematerialID",
  9. Name = "CoursematerialIDDropdownGridBo",
  10. ID = "CoursematerialIDDropdownGridBo",
  11. OnSelect = "reload",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. //new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Width=0.1, Align=AlignStyle.Center },
  17. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.3, Align=AlignStyle.Center }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false
  24. }
  25. };
  26. ComboGridOptions cgopCollege = new ComboGridOptions
  27. {
  28. TextField = "Name",
  29. ValueField = "CollegeID",
  30. Name = "CollegeComboGrid",
  31. ID = "CollegeComboGrid",
  32. OnSelect = "reload",
  33. GridOptions = new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
  38. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  39. },
  40. IsCheckOnSelect = true,
  41. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  42. IsPagination = true,
  43. IsShowRowNumbers = true,
  44. IsSingleSelect = false
  45. }
  46. };
  47. ComboGridOptions cgopStaff = new ComboGridOptions
  48. {
  49. TextField = "Name",
  50. ValueField = "UserID",
  51. OnSelect = "reload",
  52. ID = "StaffDropdown",
  53. Name = "StaffDropdown",
  54. GridOptions = new DataGridOptions
  55. {
  56. Columns = new List<DataGridColumn>()
  57. {
  58. //new BoundFieldColumn { FieldName="Code", HeaderText="教室代码", Width=0.1, Align=AlignStyle.Center },
  59. new BoundFieldColumn { FieldName="Name", HeaderText="教师名字", Width=0.1, Align=AlignStyle.Center }
  60. },
  61. IsCheckOnSelect = true,
  62. DataSourceUrl = Url.Content("~/Staff/List"),
  63. IsPagination = true,
  64. IsShowRowNumbers = true,
  65. IsSingleSelect = false,
  66. IsAutoLoad = true
  67. }
  68. };
  69. }
  70. @section scripts{
  71. <script src="~/Scripts/Business/DQPSystem/SOCDetailList.js" type="text/javascript"></script>
  72. }
  73. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  74. <form id="formQuery" method="post" action="@Url.Content("~/SOCDetail/Excel")">
  75. </form>
  76. <div class="p_title">
  77. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  78. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("SOCDetailList")</div>
  79. </div>
  80. @Html.PositionBatchModify()
  81. <div class="search_list">
  82. @Html.DataGrid(new DataGridOptions
  83. {
  84. Columns = new List<DataGridColumn>()
  85. {
  86. new CheckBoxFieldColumn{ HeaderText="", FieldName="SOCDetailID" },
  87. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.08 },
  88. new BoundFieldColumn { FieldName="EducationMissionNameStr", HeaderText="任务班名", Align=AlignStyle.Center, Width=0.2 },
  89. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06 },
  90. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 },
  91. new LinkButtonColumn { FieldName="StudentCount", HeaderText="学生人数", Align=AlignStyle.Center, Width=0.04, Handle = "studentDetail" },
  92. new BoundFieldColumn { FieldName="Name", HeaderText="成果名称", Align=AlignStyle.Center, Width=0.1 },
  93. new BoundFieldColumn { FieldName="Credit", HeaderText="成果学分", Align=AlignStyle.Center, Width=0.05 },
  94. new BoundFieldColumn { FieldName="Weight", HeaderText="成果权重", Align=AlignStyle.Center, Width=0.05 },
  95. new BoundFieldColumn { FieldName="IsGroupStr", HeaderText="是否分组", Align=AlignStyle.Center, Width=0.05 },
  96. new BoundFieldColumn { FieldName="StartTimeStr", HeaderText="开始上传时间", Align=AlignStyle.Center, Width=0.05 },
  97. new BoundFieldColumn { FieldName="EndTimeStr", HeaderText="截止上传时间", Align=AlignStyle.Center, Width=0.05 },
  98. },
  99. IsCheckOnSelect = true,
  100. DataSourceUrl = Url.Content("~/SOCDetailScore/SOCDetailList?socID=" + @ViewBag.SOCID),
  101. ID = "dgSOCDetailList",
  102. IsPagination = true,
  103. IsShowRowNumbers = true,
  104. IsSingleSelect = false
  105. })
  106. </div>
  107. </div>