List.cshtml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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 optClassmajor = new ComboGridOptions
  47. {
  48. TextField = "Name",
  49. ValueField = "ClassmajorID",
  50. Name = "cbgClassmajor",
  51. ID = "cbgClassmajor",
  52. OnSelect = "reload",
  53. GridOptions = new DataGridOptions
  54. {
  55. Columns = new List<DataGridColumn>()
  56. {
  57. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  58. },
  59. IsAutoLoad = false,
  60. OnLoadSuccessFun = "reload",
  61. IsCheckOnSelect = true,
  62. DataSourceUrl = Url.Content("~/Classmajor/List"),
  63. IsPagination = true,
  64. IsShowRowNumbers = true,
  65. IsSingleSelect = false
  66. }
  67. };
  68. }
  69. @section scripts{
  70. <script src="~/Scripts/Business/TerminatePrinter/StudentPrintTimes.js" type="text/javascript"></script>
  71. <script type="text/javascript">
  72. var nonSelect = "@DropdownList.SELECT_ALL";
  73. </script>
  74. }
  75. @Html.Position()
  76. <div class="p_SearchTitle">
  77. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  78. 查询条件
  79. </div>
  80. </div>
  81. <form id="formQuery" method="post" action="@Url.Content("~/StudentPrintTimes/Excel")">
  82. @Html.PositionCondition()
  83. <div class="search_keyword">
  84. <div class="search_input">
  85. <ul>
  86. <li class="sn" style="padding-left: 5px;">@(EMIS.Utility.RSL.Get("College")):</li>
  87. <li class="sv">
  88. @Html.ComboGrid(optCollege, new Dictionary<string, string> { { "data-condition", "dgStudentPrintTimesList" } })
  89. </li>
  90. <li class="sn" style="padding-left: 5px;">年级:</li>
  91. <li class="sv">
  92. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "ddlYear", ID = "ddlYear", OnSelect = "queryStandard" }, new Dictionary<string, string> { { "data-condition", "dgStudentPrintTimesList" } })
  93. </li>
  94. <li class="sn" style="padding-left: 5px;">专业:</li>
  95. <li class="sv">
  96. @Html.ComboGrid(optStandard, new Dictionary<string, string> { { "data-condition", "dgStudentPrintTimesList" } })
  97. </li>
  98. <li class="sn" style="padding-left: 5px;">班级:</li>
  99. <li class="sv">
  100. @Html.ComboGrid(optClassmajor, new Dictionary<string, string> { { "data-condition", "dgStudentPrintTimesList" } })
  101. </li>
  102. </ul>
  103. </div>
  104. </div>
  105. </form>
  106. <div class="p_title">
  107. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  108. 学生打印次数
  109. </div>
  110. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  111. </div>
  112. <div class="search_keyword" id="BatchModifydiv">
  113. <div class="search_input">
  114. <form id="formBatchModify" method="post" action="@Url.Content("~/StudentPrintTimes/BatchUpdate").AddMenuParameter()">
  115. <ul>
  116. <li class="sn" style="padding-left: 5px;">批量修改:</li>
  117. <li class="sv">
  118. @Html.DropdownList(new DropdownListOptions() {
  119. BindType = DropdownListBindType.None,
  120. ItemList = new List<DropdownListItem> { new DropdownListItem { Text = "已打印次数", Value = "Times" } },
  121. Name = "ddlBatchModify",
  122. ID = "ddlBatchModify"
  123. })
  124. </li>
  125. <li class="sv" id="li_div">
  126. <div id='TimesNumberBox_div' class='divbatchmodify'>@Html.TextBox(new TextBoxOptions
  127. {
  128. ID = "Times_NumberBox",
  129. Name = "Times_NumberBox",
  130. TextBoxType = TextBoxType.Normal
  131. }, new Dictionary<string, string> { { "number", "true" } })
  132. </div>
  133. </li>
  134. <li class="sn" style="padding-left: 20px;">
  135. <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-confirm'" onclick="StudentPrintTimes_BatchUpdateSubmit();">确定</a>&nbsp;&nbsp;&nbsp;<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" onclick="StudentPrintTimes_BatchUpdateClose();">取消</a>
  136. </li>
  137. </ul>
  138. </form>
  139. </div>
  140. </div>
  141. <div class="search_list">
  142. @Html.DataGrid(new DataGridOptions
  143. {
  144. Columns = new List<DataGridColumn>()
  145. {
  146. new CheckBoxFieldColumn { FieldName = "UserID" },
  147. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.08 },
  148. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  149. new BoundFieldColumn { FieldName="YearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.03 },
  150. new BoundFieldColumn { FieldName="StandardDesc", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.06 },
  151. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.1 },
  152. new BoundFieldColumn { FieldName="CollegeName", HeaderText=EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.06 },
  153. new BoundFieldColumn { FieldName="Times", HeaderText="已打印次数", Align=AlignStyle.Center, Width=0.05 },
  154. new BoundFieldColumn { FieldName="ModifyTime", HeaderText="最新打印时间", Align=AlignStyle.Center, Width=0.1, Formatter = Formatter.LongDate }
  155. },
  156. IsCheckOnSelect = true,
  157. DataSourceUrl = Url.Content("~/StudentPrintTimes/List"),
  158. ID = "dgStudentPrintTimesList",
  159. IsPagination = true,
  160. IsShowRowNumbers = true,
  161. IsSingleSelect = false
  162. })
  163. </div>