List.cshtml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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/DegreeManage/DegreeSetting/DegreeCondition.js" type="text/javascript"></script>
  8. <script type="text/javascript">
  9. var nonSelect = "@DropdownList.SELECT_ALL";
  10. </script>
  11. }
  12. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  13. @Html.Position()
  14. <div class="p_SearchTitle">
  15. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  16. 查询条件</div>
  17. </div>
  18. <form id="formQuery" method="post" action="@Url.Content("~/DegreeCondition/Excel")">
  19. @Html.PositionCondition()
  20. <div class="search_keyword">
  21. <div class="search_input">
  22. <ul>
  23. <li class="sn" style="padding-left: 5px; color: red;">启用状态:</li>
  24. <li class="sv">
  25. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions
  26. {
  27. BindType = DropdownListBindType.SelectAll,
  28. Name = "IsCurrentDropDown",
  29. OnSelect = "reload"
  30. },
  31. new Dictionary<string, string> { { "data-condition", "dgDegreeConditionList" } })
  32. </li>
  33. </ul>
  34. </div>
  35. </div>
  36. </form>
  37. <div class="p_title">
  38. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  39. 学位条件列表</div>
  40. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  41. </div>
  42. @Html.PositionBatchModify()
  43. <div class="search_list">
  44. @Html.DataGrid(new DataGridOptions
  45. {
  46. Columns = new List<DataGridColumn>()
  47. {
  48. new CheckBoxFieldColumn{ HeaderText="", FieldName="DegreeConditionID" },
  49. new BoundFieldColumn { FieldName="OrderNo", HeaderText="序号", Align=AlignStyle.Center, Width=0.02 },
  50. new BoundFieldColumn { FieldName="Title", HeaderText="条件名称", Align=AlignStyle.Center, Width=0.1 },
  51. new CheckButtonColumn { FieldName="IsEnable", HeaderText="启用状态", Align=AlignStyle.Center, Width=0.04, EnableFieldName="false" }
  52. },
  53. PageSize = 20,
  54. IsCheckOnSelect = true,
  55. DataSourceUrl = Url.Content("~/DegreeCondition/List?"),
  56. ID = "dgDegreeConditionList",
  57. IsPagination = true,
  58. IsShowRowNumbers = true,
  59. IsSingleSelect = false
  60. })
  61. </div>
  62. </div>