List.cshtml 10 KB

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