List.cshtml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @using EMIS.Utility;
  5. @{
  6. ViewBag.Title = "List";
  7. }
  8. @section scripts{
  9. <script src="~/Scripts/Business/StudentManage/StudentStatistics/InSchoolSetting.js" type="text/javascript"></script>
  10. <script type="text/javascript">
  11. var nonSelect = "@DropdownList.SELECT_ALL";
  12. </script>
  13. }
  14. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  15. @Html.Position()
  16. @using (Ajax.BeginForm(new AjaxOptions
  17. {
  18. Url = @Url.Content("~/InSchoolSetting/Edit?MNU=" + Request["MNU"]),
  19. OnSuccess = "EMISFunction.FormSuccess",
  20. OnBegin = "EMISFunction.FormSubmit",
  21. OnComplete = "EMISFunction.FormComplete"
  22. }))
  23. {
  24. <div class="p_SearchTitle">
  25. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  26. </div>
  27. @Html.PositionCondition()
  28. <div class="search_keyword">
  29. <div class="search_input">
  30. <ul>
  31. <li class="sn" style="padding-left: 5px;">在校状态:</li>
  32. <li class="sv">
  33. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, DropdownListBindType.SelectAll,
  34. new ComboGridOptions
  35. {
  36. ID = "DictionaryInSchoolStatus",
  37. Name = "DictionaryInSchoolStatus",
  38. OnSelect = "reload"
  39. },
  40. new Dictionary<string, string> { { "data-condition", "dgInSchoolSettingList" } })
  41. </li>
  42. <li class="sn" style="padding-left: 5px;color:red;">是否选中:</li>
  43. <li class="sv">
  44. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions
  45. {
  46. ID = "DictionaryIsSelected",
  47. Name = "DictionaryIsSelected",
  48. BindType = DropdownListBindType.SelectAll,
  49. OnSelect = "reload"
  50. },
  51. new Dictionary<string, string> { { "data-condition", "dgInSchoolSettingList" } })
  52. </li>
  53. <li class="sn" style="padding-left: 5px;color:red;">可否显示:</li>
  54. <li class="sv">
  55. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions
  56. {
  57. ID = "DictionaryIsDisplay",
  58. Name = "DictionaryIsDisplay",
  59. BindType = DropdownListBindType.SelectAll,
  60. SelectedValue = (int)EMIS.ViewModel.CF_GeneralPurpose.IsYes,
  61. OnSelect = "reload"
  62. },
  63. new Dictionary<string, string> { { "data-condition", "dgInSchoolSettingList" } })
  64. </li>
  65. </ul>
  66. </div>
  67. </div>
  68. <div class="p_title">
  69. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">在校设定列表</div>
  70. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  71. </div>
  72. @*@Html.PositionBatchModify()*@
  73. <div class="search_list">
  74. @Html.DataGrid(new DataGridOptions
  75. {
  76. Columns = new List<DataGridColumn>()
  77. {
  78. //new CheckBoxFieldColumn{ HeaderText="", FieldName="InSchoolSettingID" },
  79. new BoundFieldColumn { FieldName="InSchoolStatusID", HeaderText="类型代码", Align=AlignStyle.Center, Width=0.04 },
  80. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, Width=0.05, CustomFormatFun="SetRedColumn" },
  81. new CheckButtonColumn { FieldName="IsSelected", HeaderText="是否选中", Align=AlignStyle.Center, Width=0.04 },
  82. new BoundFieldColumn { FieldName="IsDisplayName", HeaderText="可否显示", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
  83. new BoundFieldColumn { FieldName="CreateUserName", HeaderText="创建人", Align=AlignStyle.Center, Width=0.04 },
  84. new BoundFieldColumn { FieldName="ModifyUserName", HeaderText="修改人", Align=AlignStyle.Center, Width=0.04 },
  85. new BoundFieldColumn { FieldName="ModifyTime", HeaderText="修改时间", Align=AlignStyle.Center, Width=0.06, Formatter= Formatter.LongDate }
  86. },
  87. IsCheckOnSelect = true,
  88. IsPostBack = true,
  89. DataSourceUrl = Url.Content("~/InSchoolSetting/List"),
  90. ID = "dgInSchoolSettingList",
  91. IsPagination = true,
  92. IsShowRowNumbers = true,
  93. IsSingleSelect = false
  94. })
  95. </div>
  96. }
  97. <form id="formQuery" method="post" action="@Url.Content("~/InSchoolSetting/Excel")">
  98. </form>
  99. </div>