List.cshtml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. @model EMIS.ViewModel.EvaluationManage.EvaluationSetting.EvaluationControlView
  2. @using Bowin.Web.Controls.Mvc;
  3. @using EMIS.Entities;
  4. @using EMIS.Web.Controls;
  5. @{
  6. ViewBag.Title = "List";
  7. }
  8. <style type="text/css">
  9. table
  10. {
  11. border-collapse: collapse;
  12. margin: 0 auto;
  13. text-align: left;
  14. }
  15. table td, table th
  16. {
  17. border: 1px solid #cad9ea;
  18. color: #666;
  19. height: 30px;
  20. }
  21. table thead th
  22. {
  23. background-color: #CCE8EB;
  24. width: 100px;
  25. }
  26. /*table tr:nth-child(odd)
  27. {
  28. background: #fff;
  29. }
  30. table tr:nth-child(even)
  31. {
  32. background: #F5FAFA;
  33. }*/
  34. .popupWindowContent {
  35. top: 50px;
  36. }
  37. </style>
  38. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  39. @Html.Position()
  40. @using (Ajax.BeginForm(new AjaxOptions
  41. {
  42. OnSuccess = "EMISFunction.FormSuccess",
  43. OnBegin = "EMISFunction.FormSubmit",
  44. OnComplete = "EMISFunction.FormComplete"
  45. }))
  46. {
  47. <div class="p_title">
  48. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  49. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  50. </div>
  51. <div class="search_list">
  52. <table cellpadding="0" cellspacing="0" id="reporttable">
  53. <tr>
  54. <th>
  55. @Html.LabelFor(x => x.SchoolyearCode):
  56. </th>
  57. <td colspan="3">
  58. @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions
  59. {
  60. TextField = "Text",
  61. ValueField = "Value",
  62. BindType = DropdownListBindType.PleaseSelect,
  63. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid")
  64. })
  65. </td>
  66. </tr>
  67. <tr style="display:@Model.IsLoginLockDisplay">
  68. <td>
  69. @Html.LabelFor(x => x.IsLoginLock):
  70. </td>
  71. <td style="background-color: white; width: 20px;">
  72. @Html.CheckBoxFor(x => x.IsLoginLock)
  73. </td>
  74. <td>
  75. @Html.LabelFor(x => x.LoginLockMessage):
  76. </td>
  77. <td style="background-color: white;">
  78. @Html.TextBoxFor(x => x.LoginLockMessage, new { style = "width: 90%" })
  79. </td>
  80. </tr>
  81. <tr style="display:@Model.IsSelectCourseLockDisplay">
  82. <td>
  83. @Html.LabelFor(x => x.IsSelectCourseLock):
  84. </td>
  85. <td style="background-color: white;">
  86. @Html.CheckBoxFor(x => x.IsSelectCourseLock)
  87. </td>
  88. <td>
  89. @Html.LabelFor(x => x.SelectCourseLockMessage):
  90. </td>
  91. <td style="background-color: white;">
  92. @Html.TextBoxFor(x => x.SelectCourseLockMessage, new { style = "width: 90%" })
  93. </td>
  94. </tr>
  95. <tr style="display:@Model.IsExaminationApplyLockDisplay">
  96. <td>
  97. @Html.LabelFor(x => x.IsExaminationApplyLock):
  98. </td>
  99. <td style="background-color: white;">
  100. @Html.CheckBoxFor(x => x.IsExaminationApplyLock)
  101. </td>
  102. <td>
  103. @Html.LabelFor(x => x.ExaminationApplyLockMessage):
  104. </td>
  105. <td style="background-color: white;">
  106. @Html.TextBoxFor(x => x.ExaminationApplyLockMessage, new { style = "width: 90%" })
  107. </td>
  108. </tr>
  109. <tr style="display:@Model.IsCourseScoreLockDisplay">
  110. <td>
  111. @Html.LabelFor(x => x.IsCourseScoreLock):
  112. </td>
  113. <td style="background-color: white;">
  114. @Html.CheckBoxFor(x => x.IsCourseScoreLock)
  115. </td>
  116. <td>
  117. @Html.LabelFor(x => x.CourseScoreLockMessage):
  118. </td>
  119. <td style="background-color: white;">
  120. @Html.TextBoxFor(x => x.CourseScoreLockMessage, new { style = "width: 90%" })
  121. </td>
  122. </tr>
  123. <tr style="display:@Model.IsLevelScoreLockDisplay">
  124. <td>
  125. @Html.LabelFor(x => x.IsLevelScoreLock):
  126. </td>
  127. <td style="background-color: white;">
  128. @Html.CheckBoxFor(x => x.IsLevelScoreLock)
  129. </td>
  130. <td>
  131. @Html.LabelFor(x => x.LevelScoreLockMessage):
  132. </td>
  133. <td style="background-color: white;">
  134. @Html.TextBoxFor(x => x.LevelScoreLockMessage, new { style = "width: 90%" })
  135. </td>
  136. </tr>
  137. <tr>
  138. <th>
  139. @Html.LabelFor(x => x.NoNumber):
  140. </th>
  141. <td colspan="3">
  142. @Html.TextBoxFor(x => x.NoNumber)
  143. </td>
  144. </tr>
  145. </table>
  146. </div>
  147. }
  148. </div>
  149. @section scripts{
  150. <script type="text/javascript">
  151. //保存
  152. function EvaluationControl_Save() {
  153. var schoolyearID = $("#SchoolyearID").combobox("getValue");
  154. if (schoolyearID == "" || schoolyearID == "-1" || schoolyearID == null) {
  155. $.messager.alert("系统提示", "请选择进行评价的学年学期。");
  156. return;
  157. }
  158. $(document.forms[0]).submit();
  159. }
  160. </script>
  161. }