List.cshtml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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. ID = "EvaluationParticipateTypeDropdown",
  11. Name = "EvaluationParticipateTypeDropdown",
  12. OnSelect = "queryEvaluationParticipateType",
  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 = "queryEvaluationType",
  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. ComboGridOptions cgopEvaluationTable = new ComboGridOptions
  52. {
  53. TextField = "Name",
  54. ValueField = "EvaluationTableID",
  55. Name = "EvaluationTableDropdown",
  56. ID = "EvaluationTableDropdown",
  57. OnSelect = "reload",
  58. GridOptions = new DataGridOptions
  59. {
  60. Columns = new List<DataGridColumn>()
  61. {
  62. new BoundFieldColumn { FieldName="Code", HeaderText="编号", Align=AlignStyle.Center, Width=0.06 },
  63. new BoundFieldColumn { FieldName="Name", HeaderText="评价表名", Align=AlignStyle.Center, Width=0.2 },
  64. //new BoundFieldColumn { FieldName="ParticipateTypeName", HeaderText="参评类型", Align=AlignStyle.Center, Width=0.06, OrderFieldName="ParticipateTypeID" },
  65. new BoundFieldColumn { FieldName="IsStudentName", HeaderText="学生用", Align=AlignStyle.Center, Width=0.04, OrderFieldName="IsStudent", CustomFormatFun="SetRedColumn" },
  66. //new BoundFieldColumn { FieldName="EvaluationTypeName", HeaderText="评价类型", Align=AlignStyle.Center, Width=0.06 },
  67. new BoundFieldColumn { FieldName="IsEnabledName", HeaderText="是否启用", Align=AlignStyle.Center, Width=0.04, OrderFieldName="IsEnabled", CustomFormatFun="SetRedColumn" }
  68. },
  69. IsCheckOnSelect = true,
  70. DataSourceUrl = Url.Content("~/EvaluationTable/List"),
  71. IsPagination = true,
  72. IsShowRowNumbers = true,
  73. IsSingleSelect = false,
  74. }
  75. };
  76. //评分标准
  77. ComboGridOptions cgopEvaluationNorm = new ComboGridOptions
  78. {
  79. TextField = "Name",
  80. ValueField = "EvaluationNormID",
  81. ID = "EvaluationNormDropdown",
  82. Name = "EvaluationNormDropdown",
  83. OnSelect = "reload",
  84. GridOptions = new DataGridOptions
  85. {
  86. Columns = new List<DataGridColumn>()
  87. {
  88. new BoundFieldColumn { FieldName="Name", HeaderText="评分标准", Align=AlignStyle.Center, Width=0.1 },
  89. new BoundFieldColumn { FieldName="NormTypeName", HeaderText="评分类型", Align=AlignStyle.Center, Width=0.05, OrderFieldName="NormTypeID", CustomFormatFun="SetRedColumn" },
  90. new BoundFieldColumn { FieldName="NormDetailListName", HeaderText="标准明细", Align=AlignStyle.Center, Width=0.1, OrderFieldName="", CustomFormatFun="SetRedColumn" }
  91. },
  92. IsCheckOnSelect = true,
  93. DataSourceUrl = Url.Content("~/EvaluationNorm/List"),
  94. IsPagination = true,
  95. IsShowRowNumbers = true,
  96. IsSingleSelect = false
  97. }
  98. };
  99. }
  100. @section scripts{
  101. <script src="~/Scripts/Business/EvaluationManage/EvaluationTable/EvaluationTarget.js" type="text/javascript"></script>
  102. <script type="text/javascript">
  103. var nonSelect = "@DropdownList.SELECT_ALL";
  104. </script>
  105. }
  106. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  107. @Html.Position()
  108. <div class="p_SearchTitle">
  109. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  110. </div>
  111. <form id="formQuery" method="post" action="@Url.Content("~/EvaluationTarget/Excel")">
  112. @Html.PositionCondition()
  113. <div class="search_keyword">
  114. <div class="search_input">
  115. <ul>
  116. <li class="sn" style="padding-left: 5px;">参评类型:</li>
  117. <li class="sv">
  118. @Html.ComboGrid(cgopEvaluationParticipateType, new Dictionary<string, string> { { "data-condition", "dgEvaluationTargetList" } })
  119. </li>
  120. <li class="sn" style="padding-left: 5px;">评价类型:</li>
  121. <li class="sv">
  122. @Html.ComboGrid(cgopEvaluationType, new Dictionary<string, string> { { "data-condition", "dgEvaluationTargetList" } })
  123. </li>
  124. <li class="sn" style="padding-left: 5px;color: red;">评价表名:</li>
  125. <li class="sv">
  126. @Html.ComboGrid(cgopEvaluationTable, new Dictionary<string, string> { { "data-condition", "dgEvaluationTargetList" } })
  127. </li>
  128. <li class="sn" style="padding-left: 5px;color: red;">评分标准:</li>
  129. <li class="sv">
  130. @Html.ComboGrid(cgopEvaluationNorm, new Dictionary<string, string> { { "data-condition", "dgEvaluationTargetList" } })
  131. </li>
  132. </ul>
  133. </div>
  134. </div>
  135. </form>
  136. <div class="p_title">
  137. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">评价指标列表</div>
  138. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  139. </div>
  140. @Html.PositionBatchModify()
  141. <div class="search_list">
  142. @Html.DataGrid(new DataGridOptions
  143. {
  144. Columns = new List<DataGridColumn>()
  145. {
  146. new CheckBoxFieldColumn{ HeaderText="", FieldName="EvaluationTargetID" },
  147. new BoundFieldColumn { FieldName="OrderNo", HeaderText="次序", Align=AlignStyle.Center, Width=0.03 },
  148. new LinkButtonColumn { FieldName="Code", HeaderText="指标编号", Align=AlignStyle.Center, Handle="edit", Width=0.04 },
  149. new BoundFieldColumn { FieldName="Name", HeaderText="指标名称", Align=AlignStyle.Center, Width=0.08 },
  150. //new BoundFieldColumn { FieldName="EvaluationTableCode", HeaderText="评价表编号", Align=AlignStyle.Center, Width=0.05 },
  151. new BoundFieldColumn { FieldName="EvaluationTableName", HeaderText="评价表名", Align=AlignStyle.Center, Width=0.1, CustomFormatFun="SetRedColumn" },
  152. new BoundFieldColumn { FieldName="ParticipateTypeName", HeaderText="参评类型", Align=AlignStyle.Center, Width=0.04, OrderFieldName="ParticipateTypeID" },
  153. new BoundFieldColumn { FieldName="IsStudentName", HeaderText="学生用", Align=AlignStyle.Center, OrderFieldName="IsStudent", Width=0.03, CustomFormatFun="SetRedColumn" },
  154. //new BoundFieldColumn { FieldName="EvaluationTypeCode", HeaderText="评价类型编号", Align=AlignStyle.Center, Width=0.06 },
  155. new BoundFieldColumn { FieldName="EvaluationTypeName", HeaderText="评价类型", Align=AlignStyle.Center, Width=0.04 },
  156. new BoundFieldColumn { FieldName="TeachingModeIDListName", HeaderText="授课方式", Align=AlignStyle.Center, OrderFieldName="", Width=0.05, OverflowLength=5, CustomFormatFun="SetRedColumn" },
  157. new BoundFieldColumn { FieldName="EvaluationNormName", HeaderText="评分标准", Align=AlignStyle.Center, Width=0.05 },
  158. new BoundFieldColumn { FieldName="NormTypeName", HeaderText="评分类型", Align=AlignStyle.Center, OrderFieldName="NormTypeID", Width=0.04 },
  159. new BoundFieldColumn { FieldName="Weight", HeaderText="权重", Align=AlignStyle.Center, Width=0.03, CustomFormatFun="SetRedColumn" },
  160. new LinkButtonColumn { FieldName="ProjectCount", HeaderText="项目个数", Align=AlignStyle.Center, Handle="editProject", Width=0.04 },
  161. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=5 }
  162. //new BoundFieldColumn { FieldName="CreateUserName", HeaderText="创建人", Align=AlignStyle.Center, Width=0.04 }
  163. //new BoundFieldColumn { FieldName="ModifyUserName", HeaderText="修改人", Align=AlignStyle.Center, Width=0.04 },
  164. //new BoundFieldColumn { FieldName="ModifyTime", HeaderText="修改时间", Align=AlignStyle.Center, Width=0.06, Formatter= Formatter.LongDate }
  165. },
  166. IsCheckOnSelect = true,
  167. DataSourceUrl = Url.Content("~/EvaluationTarget/List"),
  168. ID = "dgEvaluationTargetList",
  169. IsPagination = true,
  170. IsShowRowNumbers = true,
  171. IsSingleSelect = false
  172. })
  173. </div>
  174. </div>