List.cshtml 2.8 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/GraduationManage/GraduationSetting/GraduationConditionPackage.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("~/GraduationConditionPackage/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. ID = "IsDefaultDropDown",
  29. Name = "IsDefaultDropDown",
  30. OnSelect = "reload"
  31. },
  32. new Dictionary<string, string> { { "data-condition", "dgGraduationConditionPackageList" } })
  33. </li>
  34. </ul>
  35. </div>
  36. </div>
  37. </form>
  38. <div class="p_title">
  39. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  40. 毕业公式表</div>
  41. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  42. </div>
  43. <div class="search_list">
  44. @Html.DataGrid(new DataGridOptions
  45. {
  46. Columns = new List<DataGridColumn>()
  47. {
  48. new CheckBoxFieldColumn{ HeaderText="", FieldName="GraduationConditionPackageID" },
  49. new LinkButtonColumn { FieldName="Title", HeaderText="毕业公式名称", Align=AlignStyle.Center, Handle="detail", Width=0.12 },
  50. new BoundFieldColumn { FieldName="StudentTypeName", HeaderText="学生类别", Align=AlignStyle.Center, Width=0.04 },
  51. new CheckButtonColumn { FieldName="IsDefault", HeaderText="是否默认", Align=AlignStyle.Center, Width=0.04, EnableFieldName="false" }
  52. },
  53. CustomerRowStyleFun = "SetRedGrid",
  54. IsCheckOnSelect = true,
  55. DataSourceUrl = Url.Content("~/GraduationConditionPackage/List"),
  56. ID = "dgGraduationConditionPackageList",
  57. IsPagination = true,
  58. IsShowRowNumbers = true,
  59. IsSingleSelect = false
  60. })
  61. </div>
  62. </div>