List.cshtml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. }
  7. @section scripts{
  8. <script src="~/Scripts/Business/System/Dictionary.js" 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("~/Dictionary/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. ID = "DictionaryIsEditable",
  29. Name = "DictionaryIsEditable",
  30. BindType = DropdownListBindType.SelectAll,
  31. OnSelect = "reload"
  32. },
  33. new Dictionary<string, string> { { "data-condition", "dgDictionaryList" } })
  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. @*@Html.PositionBatchModify()*@
  45. <div class="search_list">
  46. @Html.DataGrid(new DataGridOptions
  47. {
  48. Columns = new List<DataGridColumn>()
  49. {
  50. new CheckBoxFieldColumn{ HeaderText="", FieldName="DictionaryCode" },
  51. new BoundFieldColumn { FieldName="OrderNo", HeaderText="序号", Align=AlignStyle.Center, Width=0.02 },
  52. new BoundFieldColumn { FieldName="DictionaryCode", HeaderText="类型代码", Align=AlignStyle.Center, Width=0.04, OverflowLength=25 },
  53. new BoundFieldColumn { FieldName="DictionaryName", HeaderText="类型名称", Align=AlignStyle.Center, Width=0.04 },
  54. new BoundFieldColumn { FieldName="IsEditableName", HeaderText="可否编辑", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" }
  55. },
  56. PageSize = 50,
  57. IsCheckOnSelect = true,
  58. DataSourceUrl = Url.Content("~/Dictionary/List"),
  59. ID = "dgDictionaryList",
  60. IsPagination = true,
  61. IsShowRowNumbers = true,
  62. IsSingleSelect = false
  63. })
  64. </div>
  65. </div>