List.cshtml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. //院系所
  6. ComboGridOptions cgopCollege = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CollegeID",
  10. OnSelect = "queryClass",
  11. ID = "CollegeDropdown",
  12. Name = "CollegeDropdown",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. //专业名称
  28. ComboGridOptions cgopStandard = new ComboGridOptions
  29. {
  30. TextField = "StandardName",
  31. ValueField = "StandardID",
  32. OnSelect = "queryStandard",
  33. ID = "StandardDictionaryDropDown",
  34. Name = "StandardDictionaryDropDown",
  35. GridOptions = new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  40. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false,
  47. }
  48. };
  49. }
  50. @section scripts{
  51. <script src="~/Scripts/Business/MinorManage/MinorApply/StudentMinorRegistApply.js"
  52. type="text/javascript"></script>
  53. <script type="text/javascript">
  54. var nonSelect = "@DropdownList.SELECT_ALL";
  55. </script>
  56. }
  57. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  58. @Html.Position()
  59. <div class="p_SearchTitle">
  60. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  61. 查询条件</div>
  62. </div>
  63. <form id="formQuery" method="post" action="@Url.Content("~/StudentMinorRegistApply/Excel")">
  64. @Html.PositionCondition()
  65. <div class="search_keyword">
  66. @Html.Hidden("SelectedID")
  67. <div class="search_input">
  68. <ul>
  69. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  70. <li class="sv">
  71. @Html.DropdownList(new DropdownListOptions
  72. {
  73. ID = "SchoolyearDropdown",
  74. Name = "SchoolyearDropdown",
  75. BindType = DropdownListBindType.SelectAll,
  76. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  77. OnSelect = "reload",
  78. SelectedValue = BaseExtensions.GetCurrentSchoolYearID()
  79. },
  80. new Dictionary<string, string> { { "data-condition", "dgStudentMinorRegistApplyList" } })
  81. </li>
  82. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("College"):</li>
  83. <li class="sv">
  84. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgStudentMinorRegistApplyList" } })
  85. </li>
  86. <li class="sn" style="padding-left: 5px;">年级:</li>
  87. <li class="sv">
  88. @Html.SchoolYearDropDownList(new DropdownListOptions
  89. {
  90. BindType = DropdownListBindType.SelectAll,
  91. ID = "SchoolyearDictionaryDropDown",
  92. Name = "SchoolyearDictionaryDropDown",
  93. OnSelect = "queryClass"
  94. },
  95. new Dictionary<string, string> { { "data-condition", "dgStudentMinorRegistApplyList" } })
  96. </li>
  97. <li class="sn" style="padding-left: 5px;">辅修专业名称:</li>
  98. <li class="sv">
  99. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll,
  100. new ComboGridOptions
  101. {
  102. ID = "MinorStandardDropDown",
  103. Name = "MinorStandardDropDown",
  104. OnSelect = "reload"
  105. },
  106. new Dictionary<string, string> { { "data-condition", "dgStudentMinorRegistApplyList" } })
  107. </li>
  108. </ul>
  109. <ul>
  110. <li class="sn" style="padding-left: 2px;color: red;font-weight: bold; width:auto;">辅修报名时间:</li>
  111. <li class="sv" style="line-height:30px;color: red;font-weight: bold;">
  112. <label id="labText"></label>
  113. </li>
  114. </ul>
  115. </div>
  116. </div>
  117. </form>
  118. <div class="p_title">
  119. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  120. 辅修专业报名列表</div>
  121. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  122. </div>
  123. <div class="search_list">
  124. @Html.DataGrid(new DataGridOptions
  125. {
  126. Columns = new List<DataGridColumn>()
  127. {
  128. new CheckBoxFieldColumn{ HeaderText="", FieldName="GrademinorID" },
  129. new BoundFieldColumn { FieldName="YearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.07 },
  130. //new BoundFieldColumn { FieldName="StandardName", HeaderText="辅修专业", Align=AlignStyle.Center, Width=0.1 },
  131. new BoundFieldColumn { FieldName="StandardName", HeaderText="辅修专业", Align=AlignStyle.Center, Width=0.1 },
  132. new LinkButtonColumn { FieldName="CourseCount", HeaderText="修读门数", Align=AlignStyle.Center, Width=0.05, Handle = "CourseList" },
  133. new BoundFieldColumn { FieldName="CollegeName", HeaderText="开设院系", Align=AlignStyle.Center, Width=0.1 },
  134. new BoundFieldColumn { FieldName="StudentLimit", HeaderText="人数上限", Align=AlignStyle.Center, Width=0.04 },
  135. new BoundFieldColumn { FieldName="ApplyNumber", HeaderText="已报人数", Align=AlignStyle.Center, Width=0.04 },
  136. new BoundFieldColumn { FieldName="RecordStatusStr", HeaderText="审核状态", Align=AlignStyle.Center, Width=0.04 },
  137. new BoundFieldColumn { FieldName="OpenStatusStr", HeaderText="开班状态", Align=AlignStyle.Center, Width=0.04 },
  138. new LinkButtonColumn { FieldName="OperateText", HeaderText="操作", Handle="Click", Align=AlignStyle.Center, Width=0.04, EnableFieldName="CanSelect" },
  139. },
  140. IsCheckOnSelect = true,
  141. DataSourceUrl = Url.Content("~/StudentMinorRegistApply/List"),
  142. ID = "dgStudentMinorRegistApplyList",
  143. IsPagination = true,
  144. IsShowRowNumbers = true,
  145. IsSingleSelect = false
  146. })
  147. </div>
  148. </div>