GroupScoreList.cshtml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "GroupScoreList";
  5. ComboGridOptions optCollege = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "CollegeID",
  9. OnSelect = "queryStandard",
  10. Name = "cgbCollege",
  11. ID = "cgbCollege",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  17. },
  18. IsCheckOnSelect = true,
  19. DataSourceUrl = Url.Content("~/College/List"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false,
  23. }
  24. };
  25. ComboGridOptions optStandard = new ComboGridOptions
  26. {
  27. TextField = "StandardName",
  28. ValueField = "StandardID",
  29. OnSelect = "queryClass",
  30. Name = "cbgStandard",
  31. ID = "cbgStandard",
  32. GridOptions = new DataGridOptions
  33. {
  34. Columns = new List<DataGridColumn>()
  35. {
  36. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  37. },
  38. OnLoadSuccessFun = "queryClass",
  39. IsCheckOnSelect = true,
  40. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  41. IsPagination = true,
  42. IsShowRowNumbers = true,
  43. IsSingleSelect = false,
  44. }
  45. };
  46. ComboGridOptions optCourse = new ComboGridOptions
  47. {
  48. TextField = "CourseName",
  49. ValueField = "CoursematerialID",
  50. OnSelect = "reload",
  51. Name = "cgbCourse",
  52. ID = "cgbCourse",
  53. GridOptions = new DataGridOptions
  54. {
  55. Columns = new List<DataGridColumn>()
  56. {
  57. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.12 },
  58. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 }
  59. },
  60. IsAutoLoad = false,
  61. OnLoadSuccessFun = "reload",
  62. IsCheckOnSelect = true,
  63. DataSourceUrl = Url.Content("~/SOC/TeacherCoursematerialList"),
  64. IsPagination = true,
  65. IsShowRowNumbers = true,
  66. IsSingleSelect = false,
  67. }
  68. };
  69. ComboGridOptions optClassmajor = new ComboGridOptions
  70. {
  71. TextField = "Name",
  72. ValueField = "ClassmajorID",
  73. Name = "cbgClassmajor",
  74. ID = "cbgClassmajor",
  75. OnSelect = "reload",
  76. GridOptions = new DataGridOptions
  77. {
  78. Columns = new List<DataGridColumn>()
  79. {
  80. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  81. },
  82. IsAutoLoad = false,
  83. OnLoadSuccessFun = "reload",
  84. IsCheckOnSelect = true,
  85. DataSourceUrl = Url.Content("~/Classmajor/List"),
  86. IsPagination = true,
  87. IsShowRowNumbers = true,
  88. IsSingleSelect = false
  89. }
  90. };
  91. }
  92. @section scripts{
  93. <script src="~/Scripts/Business/DQPSystem/SOCDetailGroupScoreList.js" type="text/javascript"></script>
  94. <script type="text/javascript">
  95. var nonSelect = "@DropdownList.SELECT_ALL";
  96. var startStatusID = @ViewBag.StartStatusID;
  97. var cancelStatusID = @ViewBag.CancelStatusID;
  98. var socDetailID = "@ViewBag.SOCDetailID";
  99. </script>
  100. }
  101. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  102. <form id="formQuery" method="post" action="@Url.Content("~/SOCDetailScore/GroupExcel")">
  103. @Html.Hidden("socDetailID")
  104. <div class="p_title">
  105. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  106. 学生评分
  107. </div>
  108. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("GroupScoreList")</div>
  109. </div>
  110. </form>
  111. @using (Ajax.BeginForm(new AjaxOptions {
  112. Url = Url.Content("~/SOCDetailScore/GroupSave"),
  113. OnSuccess = "EMISFunction.FormSuccess",
  114. OnBegin = "EMISFunction.FormSubmit",
  115. OnComplete = "EMISFunction.FormComplete" }))
  116. {
  117. <div class="search_list">
  118. @Html.DataGrid(new DataGridOptions
  119. {
  120. Columns = new List<DataGridColumn>()
  121. {
  122. new CheckBoxFieldColumn { FieldName="SOCDetailGroupID", HeaderText="" },
  123. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=60 },
  124. new BoundFieldColumn { FieldName="EducationMissionNameStr", HeaderText="任务班名", Align=AlignStyle.Center, Width=140 },
  125. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=50 },
  126. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=120 },
  127. new BoundFieldColumn { FieldName="SOCDetailName", HeaderText="成果名称", Align=AlignStyle.Center, Width=40 },
  128. new BoundFieldColumn { FieldName="SOCDetailCredit", HeaderText="成果学分", Align=AlignStyle.Center, Width=40, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" },
  129. new BoundFieldColumn { FieldName="Weight", HeaderText="成果权重", Align=AlignStyle.Center, Width=40, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" },
  130. //new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="所在班级", Align=AlignStyle.Center, Width=160 },
  131. new LinkButtonColumn { FieldName="Name", HeaderText="组名", Align=AlignStyle.Center, Width=50, Handle="showStudent" },
  132. new LinkButtonColumn { FieldName="RecordStatusDesc", HeaderText="成果状态", Align=AlignStyle.Center, Width=40, Handle="remark" },
  133. //new TextBoxColumn { FieldName="Score", HeaderText="成果得分", EnableFieldName="IsCanEdit", Align=AlignStyle.Center, Width=40, Validator = new OnlyMoneyValidator() },
  134. new LinkButtonColumn { HeaderText="成果评分", Text="评分", EnableFieldName="IsCanEdit", Align=AlignStyle.Center, Width=40, Handle="setScore" },
  135. new BoundFieldColumn { FieldName="Remark", HeaderText="修改意见", Align=AlignStyle.Center, Width=0.05,IsHidden = true },
  136. new LinkButtonColumn { HeaderText="成果查看", Text="查看", Align=AlignStyle.Center, Width=40, Handle="showAttachment" }
  137. },
  138. IsPostBack = true,
  139. IsCheckOnSelect = true,
  140. DataSourceUrl = Url.Content("~/SOCDetailScore/GroupScoreList?SOCDetailID=" + @ViewBag.SOCDetailID),
  141. ID = "dgSOCDetailGroupScoreList",
  142. IsPagination = true,
  143. IsShowRowNumbers = true,
  144. IsSingleSelect = false
  145. })
  146. </div>
  147. }
  148. </div>