GroupList.cshtml 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  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. </script>
  99. }
  100. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  101. @Html.Position()
  102. <div class="p_SearchTitle">
  103. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  104. 查询条件
  105. </div>
  106. </div>
  107. <form id="formQuery" method="post" action="@Url.Content("~/SOCDetailScore/GroupExcel")">
  108. @Html.PositionCondition()
  109. <div class="search_keyword">
  110. <div class="search_input">
  111. <ul>
  112. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  113. <li class="sv">
  114. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), Name = "ddlSchoolyear", ID = "ddlSchoolyear", SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), OnSelect = "queryCourse", OnLoadSuccess = "queryCourse" }, new Dictionary<string, string> { { "data-condition", "dgSOCDetailGroupScoreList" } })
  115. </li>
  116. <li class="sn" style="padding-left: 5px;">@(EMIS.Utility.RSL.Get("College")):</li>
  117. <li class="sv">
  118. @Html.ComboGrid(optCollege, new Dictionary<string, string> { { "data-condition", "dgSOCDetailGroupScoreList" } })
  119. </li>
  120. <li class="sn" style="padding-left: 5px;">年级:</li>
  121. <li class="sv">
  122. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "ddlYear", ID = "ddlYear", OnSelect = "queryStandard" }, new Dictionary<string, string> { { "data-condition", "dgSOCDetailGroupScoreList" } })
  123. </li>
  124. <li class="sn" style="padding-left: 5px;">专业:</li>
  125. <li class="sv">
  126. @Html.ComboGrid(optStandard, new Dictionary<string, string> { { "data-condition", "dgSOCDetailGroupScoreList" } })
  127. </li>
  128. </ul>
  129. <ul>
  130. <li class="sn" style="padding-left: 5px;">班级:</li>
  131. <li class="sv">
  132. @Html.ComboGrid(optClassmajor, new Dictionary<string, string> { { "data-condition", "dgSOCDetailGroupScoreList" } })
  133. </li>
  134. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  135. <li class="sv">
  136. @Html.ComboGrid(optCourse, new Dictionary<string, string> { { "data-condition", "dgSOCDetailGroupScoreList" } })
  137. </li>
  138. <li class="sn" style="padding-left: 5px;">成果状态:</li>
  139. <li class="sv">
  140. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.DQP_SOCDetailSubmitStatus, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "ddlStatus", ID = "ddlStatus", OnSelect = "reload", SelectedValue = (int)EMIS.ViewModel.DQP_SOCDetailSubmitStatus.Submited }, new Dictionary<string, string> { { "data-condition", "dgSOCDetailGroupScoreList" } })
  141. </li>
  142. </ul>
  143. <ul>
  144. <li style="display:none" class="sv" >
  145. <input id="isGroupList" name="isGroupList" type="text" value="" />
  146. <input id="IDs" name="IDs" type="text" value="" />
  147. </li>
  148. </ul>
  149. </div>
  150. </div>
  151. <div class="p_title">
  152. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  153. 学生评分
  154. </div>
  155. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  156. </div>
  157. </form>
  158. @using (Ajax.BeginForm(new AjaxOptions {
  159. Url = Url.Content("~/SOCDetailScore/GroupSave"),
  160. OnSuccess = "EMISFunction.FormSuccess",
  161. OnBegin = "EMISFunction.FormSubmit",
  162. OnComplete = "EMISFunction.FormComplete" }))
  163. {
  164. <div class="search_list">
  165. @Html.DataGrid(new DataGridOptions
  166. {
  167. Columns = new List<DataGridColumn>()
  168. {
  169. new CheckBoxFieldColumn { FieldName="SOCDetailGroupID", HeaderText="" },
  170. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=60 },
  171. new BoundFieldColumn { FieldName="EducationMissionNameStr", HeaderText="任务班名", Align=AlignStyle.Center, Width=140 },
  172. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=50 },
  173. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=120 },
  174. new BoundFieldColumn { FieldName="SOCDetailName", HeaderText="成果名称", Align=AlignStyle.Center, Width=40 },
  175. new BoundFieldColumn { FieldName="SOCDetailCredit", HeaderText="成果学分", Align=AlignStyle.Center, Width=40, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" },
  176. new BoundFieldColumn { FieldName="Weight", HeaderText="成果权重", Align=AlignStyle.Center, Width=40, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" },
  177. //new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="所在班级", Align=AlignStyle.Center, Width=160 },
  178. new LinkButtonColumn { FieldName="Name", HeaderText="组名", Align=AlignStyle.Center, Width=50, Handle="showStudent" },
  179. new LinkButtonColumn { FieldName="RecordStatusDesc", HeaderText="成果状态", Align=AlignStyle.Center, Width=40, Handle="remark" },
  180. //new TextBoxColumn { FieldName="Score", HeaderText="成果得分", EnableFieldName="IsCanEdit", Align=AlignStyle.Center, Width=40, Validator = new OnlyMoneyValidator() },
  181. new LinkButtonColumn { HeaderText="成果评分", Text="评分", EnableFieldName="IsCanEdit", Align=AlignStyle.Center, Width=40, Handle="setScore" },
  182. new BoundFieldColumn { FieldName="Remark", HeaderText="修改意见", Align=AlignStyle.Center, Width=0.05,IsHidden = true },
  183. new LinkButtonColumn { HeaderText="成果查看", Text="查看", Align=AlignStyle.Center, Width=40, Handle="showAttachment" }
  184. },
  185. IsPostBack = true,
  186. IsCheckOnSelect = true,
  187. DataSourceUrl = Url.Content("~/SOCDetailScore/GroupList"),
  188. ID = "dgSOCDetailGroupScoreList",
  189. IsPagination = true,
  190. IsShowRowNumbers = true,
  191. IsSingleSelect = false
  192. })
  193. </div>
  194. }
  195. </div>