List.cshtml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. //参评类型
  6. ComboGridOptions cgopEvaluationParticipateType = new ComboGridOptions
  7. {
  8. TextField = "ParticipateTypeName",
  9. ValueField = "EvaluationParticipateTypeID",
  10. Name = "EvaluationParticipateTypeDropdown",
  11. ID = "EvaluationParticipateTypeDropdown",
  12. OnSelect = "reload",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new BoundFieldColumn { FieldName="ParticipateTypeName", HeaderText="参评类型", Align=AlignStyle.Center, Width=0.1, OrderFieldName="ParticipateTypeID" },
  18. new BoundFieldColumn { FieldName="IsStudentName", HeaderText="学生用", Align=AlignStyle.Center, Width=0.05, OrderFieldName="IsStudent", CustomFormatFun="SetRedColumn"}
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/EvaluationParticipateType/List"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. //评价类型
  28. ComboGridOptions cgopEvaluationType = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "EvaluationIntTypeID",
  32. ID = "EvaluationTypeDropdown",
  33. Name = "EvaluationTypeDropdown",
  34. OnSelect = "reload",
  35. GridOptions = new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. new BoundFieldColumn { FieldName="Code", HeaderText="编号", Align=AlignStyle.Center, Width=0.05 },
  40. new BoundFieldColumn { FieldName="Name", HeaderText="名称", Align=AlignStyle.Center, Width=0.08 },
  41. new BoundFieldColumn { FieldName="TeachingModeIDListName", HeaderText="授课方式", Align=AlignStyle.Center, Width=0.08, OrderFieldName="", CustomFormatFun="SetRedColumn" }
  42. },
  43. IsCheckOnSelect = true,
  44. DataSourceUrl = Url.Content("~/EvaluationIntType/List"),
  45. IsPagination = true,
  46. IsShowRowNumbers = true,
  47. IsSingleSelect = false
  48. }
  49. };
  50. }
  51. @section scripts{
  52. <script src="~/Scripts/Business/EvaluationManage/EvaluationTable/EvaluationTable.js" type="text/javascript"></script>
  53. <script type="text/javascript">
  54. var nonSelect = "@DropdownList.SELECT_ALL";
  55. </script>
  56. }
  57. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  58. @Html.Position()
  59. <div class="p_SearchTitle">
  60. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  61. </div>
  62. <form id="formQuery" method="post" action="@Url.Content("~/EvaluationTable/Excel")">
  63. @Html.PositionCondition()
  64. <div class="search_keyword">
  65. <div class="search_input">
  66. <ul>
  67. <li class="sn" style="padding-left: 5px;">参评类型:</li>
  68. <li class="sv">
  69. @Html.ComboGrid(cgopEvaluationParticipateType, new Dictionary<string, string> { { "data-condition", "dgEvaluationTableList" } })
  70. </li>
  71. <li class="sn" style="padding-left: 5px;">评价类型:</li>
  72. <li class="sv">
  73. @Html.ComboGrid(cgopEvaluationType, new Dictionary<string, string> { { "data-condition", "dgEvaluationTableList" } })
  74. </li>
  75. <li class="sn" style="padding-left: 5px;color: red;">学生用:</li>
  76. <li class="sv">
  77. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, DropdownListBindType.SelectAll,
  78. new ComboGridOptions
  79. {
  80. ID = "IsStudentDropdown",
  81. Name = "IsStudentDropdown",
  82. OnSelect = "reload"
  83. }, new Dictionary<string, string> { { "data-condition", "dgEvaluationTableList" } })
  84. </li>
  85. <li class="sn" style="padding-left: 5px;color: red;">是否启用:</li>
  86. <li class="sv">
  87. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, DropdownListBindType.SelectAll,
  88. new ComboGridOptions
  89. {
  90. ID = "IsEnabledDropdown",
  91. Name = "IsEnabledDropdown",
  92. OnSelect = "reload"
  93. }, new Dictionary<string, string> { { "data-condition", "dgEvaluationTableList" } })
  94. </li>
  95. </ul>
  96. </div>
  97. </div>
  98. </form>
  99. <div class="p_title">
  100. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">评价表名列表</div>
  101. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  102. </div>
  103. @Html.PositionBatchModify()
  104. <div class="search_list">
  105. @Html.DataGrid(new DataGridOptions
  106. {
  107. Columns = new List<DataGridColumn>()
  108. {
  109. new CheckBoxFieldColumn{ HeaderText="", FieldName="EvaluationTableID" },
  110. new LinkButtonColumn { FieldName="Code", HeaderText="编号", Align=AlignStyle.Center, Handle="edit", Width=0.05 },
  111. new BoundFieldColumn { FieldName="Name", HeaderText="评价表名", Align=AlignStyle.Center, Width=0.12 },
  112. new BoundFieldColumn { FieldName="ParticipateTypeName", HeaderText="参评类型", Align=AlignStyle.Center, Width=0.04, OrderFieldName="ParticipateTypeID" },
  113. new BoundFieldColumn { FieldName="IsStudentName", HeaderText="学生用", Align=AlignStyle.Center, OrderFieldName="IsStudent", Width=0.03, CustomFormatFun="SetRedColumn" },
  114. //new BoundFieldColumn { FieldName="EvaluationTypeCode", HeaderText="评价类型编号", Align=AlignStyle.Center, Width=0.06 },
  115. new BoundFieldColumn { FieldName="EvaluationTypeName", HeaderText="评价类型", Align=AlignStyle.Center, Width=0.04 },
  116. new BoundFieldColumn { FieldName="TeachingModeIDListName", HeaderText="授课方式", Align=AlignStyle.Center, OrderFieldName="", Width=0.08, CustomFormatFun="SetRedColumn", OverflowLength=8 },
  117. new BoundFieldColumn { FieldName="Weight", HeaderText="权重", Align=AlignStyle.Center, Width=0.03, CustomFormatFun="SetRedColumn" },
  118. new LinkButtonColumn { FieldName="TargetCount", HeaderText="指标个数", Align=AlignStyle.Center, Handle="editTarget", Width=0.04 },
  119. new LinkButtonColumn { FieldName="ProjectCount", HeaderText="项目个数", Align=AlignStyle.Center, Handle="editProject", Width=0.04 },
  120. new BoundFieldColumn { FieldName="IsEnabledName", HeaderText="是否启用", Align=AlignStyle.Center, OrderFieldName="IsEnabled", Width=0.04, CustomFormatFun="SetRedColumn" },
  121. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=5 }
  122. //new BoundFieldColumn { FieldName="CreateUserName", HeaderText="创建人", Align=AlignStyle.Center, Width=0.04 },
  123. //new BoundFieldColumn { FieldName="ModifyUserName", HeaderText="修改人", Align=AlignStyle.Center, Width=0.04 },
  124. //new BoundFieldColumn { FieldName="ModifyTime", HeaderText="修改时间", Align=AlignStyle.Center, Width=0.06, Formatter= Formatter.LongDate }
  125. },
  126. CustomerRowStyleFun="SetRedGrid",
  127. IsCheckOnSelect = true,
  128. DataSourceUrl = Url.Content("~/EvaluationTable/List"),
  129. ID = "dgEvaluationTableList",
  130. IsPagination = true,
  131. IsShowRowNumbers = true,
  132. IsSingleSelect = false
  133. })
  134. </div>
  135. </div>