List.cshtml 2.5 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/MinorGraduation/MinorGraduationSetting/MinorGraduationCondition.js"
  8. 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. <div class="p_SearchTitle">
  16. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  17. 查询条件</div>
  18. </div>
  19. <form id="formQuery" method="post" action="@Url.Content("~/MinorGraduationCondition/Excel")">
  20. @Html.PositionCondition()
  21. <div class="search_keyword">
  22. @Html.Hidden("SelectedID")
  23. <div class="search_input">
  24. <ul>
  25. <li class="sn" style="padding-left: 5px; color: red;">启用状态:</li>
  26. <li class="sv">
  27. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions
  28. {
  29. BindType = DropdownListBindType.SelectAll,
  30. Name = "IsCurrentDropDown",
  31. OnSelect = "reload"
  32. },
  33. new Dictionary<string, string> { { "data-condition", "dgMinorGraduationConditionList" } })
  34. </li>
  35. </ul>
  36. </div>
  37. </div>
  38. </form>
  39. <div class="p_title">
  40. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  41. 辅修毕业条件列表</div>
  42. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  43. </div>
  44. @Html.PositionBatchModify()
  45. <div class="search_list">
  46. @Html.DataGrid(new DataGridOptions
  47. {
  48. Columns = new List<DataGridColumn>()
  49. {
  50. new CheckBoxFieldColumn{ HeaderText="", FieldName="MinorGraduationConditionID" },
  51. new BoundFieldColumn { FieldName="Title", HeaderText="条件名称", Align=AlignStyle.Center, Width=0.1 },
  52. new BoundFieldColumn { FieldName="IsEnableName", HeaderText="启用状态", Align=AlignStyle.Center, Width=0.04 }
  53. },
  54. IsCheckOnSelect = true,
  55. DataSourceUrl = Url.Content("~/MinorGraduationCondition/List"),
  56. ID = "dgMinorGraduationConditionList",
  57. IsPagination = true,
  58. IsShowRowNumbers = true,
  59. IsSingleSelect = false
  60. })
  61. </div>
  62. </div>