List.cshtml 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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/EvaluationManage/EvaluationSetting/EvaluationNeed.js" type="text/javascript"></script>
  8. <script type="text/javascript">
  9. var nonSelect = "@DropdownList.SELECT_ALL";
  10. </script>
  11. }
  12. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  13. @Html.Position()
  14. <div class="p_SearchTitle">
  15. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  16. </div>
  17. <form id="formQuery" method="post" action="@Url.Content("~/EvaluationNeed/Excel")">
  18. @Html.PositionCondition()
  19. <div class="search_keyword">
  20. <div class="search_input">
  21. <ul>
  22. <li class="sn" style="padding-left: 5px;color:red;">参评类型:</li>
  23. <li class="sv">
  24. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.EM_ParticipateType, DropdownListBindType.SelectAll,
  25. new ComboGridOptions
  26. {
  27. ID = "DictionaryParticipateType",
  28. Name = "DictionaryParticipateType",
  29. OnSelect = "reload"
  30. }, new Dictionary<string, string> { { "data-condition", "dgEvaluationNeedList" } })
  31. </li>
  32. <li class="sn" style="padding-left: 5px;color: red;">是否启用:</li>
  33. <li class="sv">
  34. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, DropdownListBindType.SelectAll,
  35. new ComboGridOptions
  36. {
  37. ID = "IsEnabledDropdown",
  38. Name = "IsEnabledDropdown",
  39. OnSelect = "reload"
  40. }, new Dictionary<string, string> { { "data-condition", "dgEvaluationNeedList" } })
  41. </li>
  42. </ul>
  43. </div>
  44. </div>
  45. </form>
  46. <div class="p_title">
  47. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">评价需知列表</div>
  48. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  49. </div>
  50. @*@Html.PositionBatchModify()*@
  51. <div class="search_list">
  52. @Html.DataGrid(new DataGridOptions
  53. {
  54. Columns = new List<DataGridColumn>()
  55. {
  56. new CheckBoxFieldColumn{ HeaderText="", FieldName="EvaluationNeedID" },
  57. new LinkButtonColumn { FieldName="Code", HeaderText="编号", Align=AlignStyle.Center, Handle="edit", Width=0.05 },
  58. new BoundFieldColumn { FieldName="Title", HeaderText="标题", Align=AlignStyle.Center, Width=0.08 },
  59. new BoundFieldColumn { FieldName="ParticipateTypeName", HeaderText="参评类型", Align=AlignStyle.Center, Width=0.05, OrderFieldName="ParticipateTypeID", CustomFormatFun="SetRedColumn" },
  60. new BoundFieldColumn { FieldName="Content", HeaderText="内容", Align=AlignStyle.Center, Width=0.12, OverflowLength=20 },
  61. new BoundFieldColumn { FieldName="IsEnabledName", HeaderText="是否启用", Align=AlignStyle.Center, OrderFieldName="IsEnabled", Width=0.04, CustomFormatFun="SetRedColumn" },
  62. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=5 }
  63. //new BoundFieldColumn { FieldName="CreateUserName", HeaderText="创建人", Align=AlignStyle.Center, Width=0.04 },
  64. //new BoundFieldColumn { FieldName="ModifyUserName", HeaderText="修改人", Align=AlignStyle.Center, Width=0.04 },
  65. //new BoundFieldColumn { FieldName="ModifyTime", HeaderText="修改时间", Align=AlignStyle.Center, Width=0.06, Formatter= Formatter.LongDate }
  66. },
  67. CustomerRowStyleFun="SetRedGrid",
  68. IsCheckOnSelect = true,
  69. DataSourceUrl = Url.Content("~/EvaluationNeed/List"),
  70. ID = "dgEvaluationNeedList",
  71. IsPagination = true,
  72. IsShowRowNumbers = true,
  73. IsSingleSelect = false
  74. })
  75. </div>
  76. </div>