List.cshtml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. }
  6. @section scripts{
  7. <script src="~/Scripts/Business/TerminatePrinter/PrintControl.js" type="text/javascript"></script>
  8. }
  9. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  10. @Html.Position()
  11. <div class="p_SearchTitle">
  12. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  13. 查询条件</div>
  14. </div>
  15. <form id="formQuery" method="post">
  16. <div class="search_keyword">
  17. <div class="search_input">
  18. <ul>
  19. <li class="sn" style="padding-left: 5px;">年级:</li>
  20. <li class="sv">
  21. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlYear", Name = "ddlYear", OnSelect = "reload", OnLoadSuccess = "reload" }, new Dictionary<string, string> { { "data-condition", "dgPrintControlList" } })
  22. </li>
  23. </ul>
  24. </div>
  25. </div>
  26. </form>
  27. <div class="p_title">
  28. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  29. 终端打印控制</div>
  30. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  31. </div>
  32. @Html.PositionBatchModify()
  33. <div class="search_list">
  34. @Html.DataGrid(new DataGridOptions
  35. {
  36. Columns = new List<DataGridColumn>()
  37. {
  38. new CheckBoxFieldColumn{ HeaderText="", FieldName="PrintControlID" },
  39. new BoundFieldColumn { FieldName="YearID", HeaderText="年级", Align=AlignStyle.Center },
  40. new BoundFieldColumn { FieldName="Times", HeaderText="打印次数", Align=AlignStyle.Center }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/PrintControl/List"),
  44. ID = "dgPrintControlList",
  45. IsPagination = true,
  46. IsShowRowNumbers = true,
  47. IsSingleSelect = false
  48. })
  49. </div>
  50. </div>