EnterEdit.cshtml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. @model EMIS.ViewModel.EvaluationManage.StudentEvaluation.EvaluationStudentView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "EnterEdit";
  6. }
  7. @section scripts{
  8. <script src="~/Scripts/Business/StudentWeb/Evaluation/StudentEvaluationEnterEdit.js" type="text/javascript"></script>
  9. <script type="text/javascript">
  10. var nonSelect = "@DropdownList.SELECT_ALL";
  11. //关闭窗口
  12. function StudentEvaluationEnter_Close() {
  13. top.$("#@(Request["WindowID"])").dialog("close");
  14. }
  15. </script>
  16. }
  17. <style>
  18. .div_Content
  19. {
  20. width: 90%;
  21. margin: 0 auto;
  22. text-align: center;
  23. }
  24. .div_TableName
  25. {
  26. margin: 0 auto;
  27. width: 90%;
  28. height: 20px;
  29. text-align: center;
  30. }
  31. #studentevaluationentertable
  32. {
  33. width: 90%;
  34. }
  35. #studentevaluationentertable tr
  36. {
  37. border: 1px solid #D6D6D6;
  38. height: 30px;
  39. }
  40. #studentevaluationentertable td
  41. {
  42. border: 1px solid #D6D6D6;
  43. }
  44. .target td div
  45. {
  46. font-weight: bold;
  47. }
  48. .datagrid-body
  49. {
  50. overflow-x: hidden; /*去掉左/右边缘滚动条*/
  51. }
  52. .datagrid-header-row td /*设置grid列标题颜色*/
  53. {
  54. background-color: #D6D6D6; /*using (Html.BeginForm())*/
  55. }
  56. .datagrid-btable .datagrid-cell
  57. {
  58. text-overflow: ellipsis;
  59. }
  60. </style>
  61. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  62. @using (Ajax.BeginForm(new AjaxOptions
  63. {
  64. OnSuccess = "EMISFunction.FormSuccess",
  65. OnBegin = "EMISFunction.FormSubmit",
  66. OnComplete = "EMISFunction.FormComplete"
  67. }))
  68. {
  69. @Html.HiddenFor(x => x.EvaluationStudentID)
  70. @Html.HiddenFor(x => x.UserID)
  71. @Html.HiddenFor(x => x.EvaluationStudentSettingID)
  72. @Html.HiddenFor(x => x.SchoolyearID)
  73. @Html.HiddenFor(x => x.SchoolyearValue)
  74. @Html.HiddenFor(x => x.CoursematerialID)
  75. @Html.HiddenFor(x => x.DepartmentID)
  76. @Html.HiddenFor(x => x.EvaluationTableID)
  77. @Html.HiddenFor(x => x.EvaluationTableWeight)
  78. @Html.HiddenFor(x => x.Numbered)
  79. @Html.Hidden("ProjectWeightSum")
  80. @Html.Hidden("EvaluationProjectID")
  81. @Html.Hidden("EvaluationScore")
  82. @Html.HiddenFor(x => x.JsonDataStr)
  83. <div class="p_title">
  84. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  85. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  86. @if (Request["type"] != "detail")
  87. {
  88. @Html.ContextMenuBar("Edit")
  89. }
  90. </div>
  91. </div>
  92. <div class="div_Content">
  93. <h2 style="color: red;">说明</h2>
  94. <h5>@ViewBag.EvaluationNeedContent</h5>
  95. </div>
  96. <div class="div_TableName">
  97. <h3>@Html.DisplayTextFor(x => x.EvaluationTableName)</h3>
  98. </div>
  99. <div class="search_list" style="margin: 0 auto;">
  100. <table cellpadding="0" cellspacing="0" id="studentevaluationentertable" style="margin: 0 auto">
  101. <tr>
  102. <td colspan="3" style="color: red; font-size: 14px;text-align: center;">
  103. 准确的评价是你成熟的表现
  104. </td>
  105. <td rowspan="4">
  106. <div>
  107. <img src="@Model.StaffPhotoUrlStr" id="imgPhoto" width="118" height="125" />
  108. </div>
  109. </td>
  110. </tr>
  111. <tr style="text-align: center;">
  112. <td>
  113. 学年学期:@Html.DisplayTextFor(x => x.SchoolyearCode)
  114. </td>
  115. <td colspan="2">
  116. 授课班级:@Html.DisplayTextFor(x => x.MissionClassName)
  117. </td>
  118. </tr>
  119. <tr style="text-align: center;">
  120. <td>
  121. 任课教师:@Html.DisplayTextFor(x => x.StaffName)
  122. </td>
  123. <td>
  124. 任课方式:@Html.DisplayTextFor(x => x.TeachingMethodName)
  125. </td>
  126. <td>
  127. 授课方式:@Html.DisplayTextFor(x => x.TeachingModeName)
  128. </td>
  129. </tr>
  130. <tr style="text-align: center;">
  131. <td colspan="2">
  132. 课程名称:@Html.DisplayTextFor(x => x.CourseName)
  133. </td>
  134. <td>
  135. 课程类型:@Html.DisplayTextFor(x => x.CourseTypeName)
  136. </td>
  137. </tr>
  138. <tr>
  139. <td colspan="4">
  140. <div id="dgStudentEvaluationEnterList">
  141. </div>
  142. </td>
  143. </tr>
  144. <tr>
  145. <td style="color: red; border: 0px;">
  146. 简要评语或建议:
  147. </td>
  148. <td colspan="3" style="border: 0px;">
  149. @Html.TextAreaFor(x => x.Advice, new Dictionary<string, object> { { "style", "width: 96%;min-height: 60px;" } })
  150. </td>
  151. </tr>
  152. <tr>
  153. <td style="border: 0px">
  154. 可评次数为:@Html.DisplayTextFor(x => x.Number) 次,您对此已评过:@Html.DisplayTextFor(x => x.Numbered) 次,
  155. </td>
  156. <td colspan="3" style="border: 0px">
  157. 您的本次评分为:<span style="color: red;" id="EvaluationTotalScore">0</span>
  158. @Html.HiddenFor(x => x.TotalScore)
  159. </td>
  160. </tr>
  161. <tr>
  162. <td colspan="4" style="margin: 0 auto;text-align: center;border: 0px">
  163. <input type="button" class="button" value="关闭" onclick="StudentEvaluationEnter_Close()">
  164. <input type="button" onclick="StudentEvaluationEnter_Save()" value="保存" id="btnclick" />
  165. </td>
  166. </tr>
  167. </table>
  168. </div>
  169. }
  170. </div>