List.cshtml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. //上课类型
  6. ComboGridOptions cgopTeachType = new ComboGridOptions
  7. {
  8. TextField = "ClassName",
  9. ValueField = "ClassGroupingID",
  10. ID = "TeachTypeDropdown",
  11. Name = "TeachTypeDropdown",
  12. OnSelect = "reload",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new BoundFieldColumn { FieldName="ClassName", HeaderText="上课类型", Align=AlignStyle.Center, Width=0.12 }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/TeachType/List"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false,
  24. }
  25. };
  26. }
  27. @section scripts{
  28. <script src="~/Scripts/Business/CultureplanManage/ClubCourse.js" type="text/javascript"></script>
  29. }
  30. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  31. @Html.Position()
  32. <div class="p_SearchTitle">
  33. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  34. 查询条件</div>
  35. </div>
  36. <form id="formQuery" method="post" action="@Url.Content("~/ClubCourse/Excel")">
  37. @Html.PositionCondition()
  38. <div class="search_keyword">
  39. <div class="search_input">
  40. <ul>
  41. <li class="sn" style="padding-left: 5px;">课程级别:</li>
  42. <li class="sv">
  43. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_CourseLevel, DropdownListBindType.SelectAll,
  44. new ComboGridOptions
  45. {
  46. ID = "DictionaryCourseLevel",
  47. Name = "DictionaryCourseLevel",
  48. OnSelect = "reload"
  49. }, new Dictionary<string, string> { { "data-condition", "dgClubCourseList" } })
  50. </li>
  51. <li class="sn" style="padding-left: 5px;">课程科类:</li>
  52. <li class="sv">
  53. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_CourseScience, DropdownListBindType.SelectAll,
  54. new ComboGridOptions
  55. {
  56. ID = "DictionaryCourseScience",
  57. Name = "DictionaryCourseScience",
  58. OnSelect = "reload"
  59. }, new Dictionary<string, string> { { "data-condition", "dgClubCourseList" } })
  60. </li>
  61. <li class="sn" style="padding-left: 5px;color:red;">上课类型:</li>
  62. <li class="sv">
  63. @Html.ComboGrid(cgopTeachType, new Dictionary<string, string> { { "data-condition", "dgClubCourseList" } })
  64. </li>
  65. <li class="sn" style="padding-left: 5px;color:red;">是否启用:</li>
  66. <li class="sv">
  67. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions
  68. {
  69. ID = "DictionaryIsEnable",
  70. Name = "DictionaryIsEnable",
  71. BindType = DropdownListBindType.SelectAll,
  72. //SelectedValue = (int)EMIS.ViewModel.CF_GeneralPurpose.IsYes,
  73. OnSelect = "reload"
  74. }, new Dictionary<string, string> { { "data-condition", "dgClubCourseList" } })
  75. </li>
  76. </ul>
  77. </div>
  78. </div>
  79. </form>
  80. <div class="p_title">
  81. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  82. 俱乐部课程列表</div>
  83. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  84. </div>
  85. @*@Html.PositionBatchModify()*@
  86. <div class="search_list">
  87. @Html.DataGrid(new DataGridOptions
  88. {
  89. Columns = new List<DataGridColumn>()
  90. {
  91. new CheckBoxFieldColumn{ HeaderText="", FieldName="ClubCourseID" },
  92. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06 },
  93. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1, OverflowLength=15 },
  94. new BoundFieldColumn { FieldName="Abbreviation", HeaderText="课程简称", Align=AlignStyle.Center, Width=0.08, OverflowLength=10 },
  95. new BoundFieldColumn { FieldName="CourseLevelName", HeaderText="课程级别", Align=AlignStyle.Center, OrderFieldName="CourseLevelID", Width=0.04 },
  96. new BoundFieldColumn { FieldName="CourseScienceName", HeaderText="课程科类", Align=AlignStyle.Center, OrderFieldName="CourseScienceID", Width=0.04 },
  97. new BoundFieldColumn { FieldName="ClassName", HeaderText="上课类型", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
  98. new BoundFieldColumn { FieldName="IsEnableName", HeaderText="是否启用", Align=AlignStyle.Center, OrderFieldName="IsEnable", Width=0.04, CustomFormatFun="SetRedColumn" }
  99. },
  100. CustomerRowStyleFun = "SetRedGrid",
  101. IsCheckOnSelect = true,
  102. DataSourceUrl = Url.Content("~/ClubCourse/List"),
  103. ID = "dgClubCourseList",
  104. IsPagination = true,
  105. IsShowRowNumbers = true,
  106. IsSingleSelect = false
  107. })
  108. </div>
  109. </div>