List.cshtml 2.8 KB

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