List.cshtml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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/DegreeConditionPackage.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("~/DegreeConditionPackage/Excel")">
  20. @Html.PositionCondition()
  21. <div class="search_keyword">
  22. <div class="search_input">
  23. <ul>
  24. <li class="sn" style="padding-left: 5px; color: red;">是否默认:</li>
  25. <li class="sv">
  26. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions
  27. {
  28. BindType = DropdownListBindType.SelectAll,
  29. ID = "IsDefaultDropDown",
  30. Name = "IsDefaultDropDown",
  31. OnSelect = "reload"
  32. },
  33. new Dictionary<string, string> { { "data-condition", "dgDegreeConditionPackageList" } })
  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. <div class="search_list">
  45. @Html.DataGrid(new DataGridOptions
  46. {
  47. Columns = new List<DataGridColumn>()
  48. {
  49. new CheckBoxFieldColumn{ HeaderText="", FieldName="DegreeConditionPackageID" },
  50. new LinkButtonColumn { FieldName="Title", HeaderText="学位公式名称", Align=AlignStyle.Center, Handle="detail", Width=0.12 },
  51. new BoundFieldColumn { FieldName="StudentTypeName", HeaderText="学生类别", Align=AlignStyle.Center, Width=0.04 },
  52. new CheckButtonColumn { FieldName="IsDefault", HeaderText="是否默认", Align=AlignStyle.Center, Width=0.04, EnableFieldName="false" }
  53. },
  54. CustomerRowStyleFun = "SetRedGrid",
  55. IsCheckOnSelect = true,
  56. DataSourceUrl = Url.Content("~/DegreeConditionPackage/List"),
  57. ID = "dgDegreeConditionPackageList",
  58. IsPagination = true,
  59. IsShowRowNumbers = true,
  60. IsSingleSelect = false
  61. })
  62. </div>
  63. </div>