List.cshtml 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. }
  7. @section scripts{
  8. <script src="~/Scripts/Business/ScoreManage/ProjectScore.js" type="text/javascript"></script>
  9. <script type="text/javascript">
  10. var nonSelect = "@DropdownList.SELECT_ALL";
  11. </script>
  12. }
  13. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  14. @Html.Position()
  15. <form id="formQuery" method="post" action="@Url.Content("~/ProjectScore/Excel")">
  16. @Html.PositionCondition()
  17. <div class="search_keyword">
  18. <div class="search_input">
  19. <ul>
  20. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  21. <li class="sv">
  22. @Html.DropdownList(new DropdownListOptions
  23. {
  24. BindType = DropdownListBindType.SelectAll,
  25. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  26. ID = "ddlSchoolyear",
  27. Name = "ddlSchoolyear",
  28. OnSelect = "reload",
  29. SelectedValue = BaseExtensions.GetCurrentSchoolYearID()
  30. },
  31. new Dictionary<string, string> { { "data-condition", "dgProjectScoreList" } })
  32. </li>
  33. <li class="sn" style="padding-left: 5px;">考试类型:</li>
  34. <li class="sv">
  35. @Html.DropdownList(new DropdownListOptions
  36. {
  37. BindType = DropdownListBindType.SelectAll,
  38. ID = "ddlExaminationType",
  39. Name = "ddlExaminationType",
  40. ItemSourceUrl = Url.Content("~/ChargeProject/ExaminationTypeDropdownList"),
  41. OnSelect = "examinationTypeChange",
  42. OnLoadSuccess = "examinationTypeChange"
  43. },
  44. new Dictionary<string, string> { { "data-condition", "dgProjectScoreList" } })
  45. </li>
  46. <li class="sn" style="padding-left: 5px;">项目名称:</li>
  47. <li class="sv">
  48. @Html.ComboGrid(new ComboGridOptions
  49. {
  50. TextField = "Name",
  51. ValueField = "ExaminationProjectID",
  52. Name = "cgbExaminationProject",
  53. ID = "cgbExaminationProject",
  54. OnSelect = "reload",
  55. GridOptions = new DataGridOptions
  56. {
  57. Columns = new List<DataGridColumn>()
  58. {
  59. new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center }
  60. },
  61. OnLoadSuccessFun = "examinationProjectLoaded",
  62. IsAutoLoad = false,
  63. DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetProjectListViewGrid"),
  64. IsPagination = true
  65. }
  66. },
  67. new Dictionary<string, string> { { "data-condition", "dgProjectScoreList" } })
  68. </li>
  69. <li class="sn" style="padding-left: 5px;">校区:</li>
  70. <li class="sv">
  71. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_SchoolArea, new DropdownListOptions
  72. {
  73. BindType = DropdownListBindType.SelectAll,
  74. ID = "ddlSchoolArea",
  75. Name = "ddlSchoolArea",
  76. OnSelect = "reload"
  77. },
  78. new Dictionary<string, string> { { "data-condition", "dgProjectScoreList" } })
  79. </li>
  80. </ul>
  81. <ul>
  82. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  83. <li class="sv">
  84. @Html.DropdownList(new DropdownListOptions
  85. {
  86. BindType = DropdownListBindType.SelectAll,
  87. ID = "ddlCollege",
  88. Name = "ddlCollege",
  89. OnSelect = "collegeSelect",
  90. OnLoadSuccess = "collegeChange"
  91. },
  92. new Dictionary<string, string> { { "data-condition", "dgProjectScoreList" } })
  93. </li>
  94. <li class="sn" style="padding-left: 5px;">年级:</li>
  95. <li class="sv">
  96. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlYear", Name = "ddlYear", OnSelect = "collegeSelect" }, new Dictionary<string, string> { { "data-condition", "dgProjectScoreList" } })
  97. </li>
  98. <li class="sn" style="padding-left: 5px;">专业:</li>
  99. <li class="sv">
  100. @Html.ComboGrid(new ComboGridOptions
  101. {
  102. GridOptions = new DataGridOptions
  103. {
  104. Columns = new List<DataGridColumn>()
  105. {
  106. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业", Align=AlignStyle.Center }
  107. },
  108. OnLoadSuccessFun = "standardChange",
  109. IsAutoLoad = false,
  110. DataSourceUrl = Url.Content("~/Grademajor/StandardList"),
  111. IsPagination = true
  112. },
  113. TextField = "StandardName",
  114. ValueField = "StandardID",
  115. Name = "cgbStandard",
  116. ID = "cgbStandard",
  117. OnSelect = "standardSelect"
  118. },
  119. new Dictionary<string, string> { { "data-condition", "dgProjectScoreList" } })
  120. </li>
  121. <li class="sn" style="padding-left: 5px;">班级:</li>
  122. <li class="sv">
  123. @Html.ComboGrid(new ComboGridOptions
  124. {
  125. TextField = "Name",
  126. ValueField = "ClassmajorID",
  127. Name = "cgbClassmajor",
  128. ID = "cgbClassmajor",
  129. OnSelect = "reload",
  130. GridOptions = new DataGridOptions
  131. {
  132. Columns = new List<DataGridColumn>()
  133. {
  134. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  135. },
  136. IsAutoLoad = false,
  137. DataSourceUrl = Url.Content("~/Classmajor/List"),
  138. IsPagination = true
  139. }
  140. },
  141. new Dictionary<string, string> { { "data-condition", "dgProjectScoreList" } })
  142. </li>
  143. </ul>
  144. <ul>
  145. <li class="sn" style="padding-left: 5px;">是否参与培训:</li>
  146. <li class="sv">
  147. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlIsTrain", Name = "ddlIsTrain", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgProjectScoreList" } })
  148. </li>
  149. </ul>
  150. </div>
  151. </div>
  152. <div class="p_title">
  153. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  154. 项目认定成绩列表
  155. </div>
  156. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  157. </div>
  158. </form>
  159. @Html.PositionBatchModify()
  160. <div class="search_list">
  161. @Html.DataGrid(new DataGridOptions
  162. {
  163. Columns = new List<DataGridColumn>()
  164. {
  165. new CheckBoxFieldColumn{ HeaderText="", FieldName="ProjectScoreID"},
  166. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center },
  167. new BoundFieldColumn { FieldName="CollegeName", HeaderText=EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center },
  168. new BoundFieldColumn { FieldName="Year", HeaderText="年级", Align=AlignStyle.Center },
  169. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业", Align=AlignStyle.Center },
  170. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级", Align=AlignStyle.Center },
  171. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center },
  172. new BoundFieldColumn { FieldName="CertificatesTypeName", HeaderText="证件类型", Align=AlignStyle.Center },
  173. new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号码", Align=AlignStyle.Center, Width=150 },
  174. new BoundFieldColumn { FieldName="ExaminationTypeName", HeaderText="考试类型", Align=AlignStyle.Center },
  175. new LinkButtonColumn { FieldName="ExaminationProjectName", HeaderText="考试项目", Align=AlignStyle.Center, Handle="showDetail" },
  176. new BoundFieldColumn { FieldName="LevelName", HeaderText="成绩等级", Align=AlignStyle.Center },
  177. new BoundFieldColumn { FieldName="TrainingClassName", HeaderText="培训班名", Align=AlignStyle.Center, Width=150 }
  178. },
  179. IsAutoLoad = false,
  180. DataSourceUrl = Url.Content("~/ProjectScore/List"),
  181. ID = "dgProjectScoreList",
  182. IsPagination = true
  183. })
  184. </div>
  185. </div>