ExamAdd.cshtml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. @model EMISOnline.ViewModel.ExamView.OnlineTestView
  2. @using EMISOnline.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "ExamAdd";
  6. }
  7. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  8. @Html.Position()
  9. <div class="p_SearchTitle">
  10. </div>
  11. <div class="p_title">
  12. <div style="float: left; margin-left: 10px; color: #333; line-height: 35px; font-size: 12px;">
  13. 考试信息</div>
  14. <div style="margin-right: 10px; float: right; line-height: 30px; font-size: 12px;">
  15. @Html.Button(new ButtonOptions() { ID = "btnSave", Text = "保 存" })
  16. </div>
  17. </div>
  18. @using (Ajax.BeginForm(new AjaxOptions
  19. {
  20. OnSuccess = "EMISFunction.FormSuccess",
  21. OnBegin = "EMISFunction.FormSubmit",
  22. OnComplete = "EMISFunction.FormComplete",
  23. }))
  24. {
  25. @Html.HiddenFor(x => x.onlinetest_id)
  26. <div class="search_list">
  27. <table cellpadding="0" cellspacing="0" id="Coursematerialtable">
  28. <tr>
  29. <th>@Html.LabelFor(x => x.test_paper_name):
  30. </th>
  31. <td colspan="3">
  32. @Html.Selector(new Bowin.Web.Controls.Mvc.SelectorOptions
  33. {
  34. ID = "test_paper_name",
  35. Name = "test_paper_id",
  36. IsSingleSelect = true,
  37. QueryParams = "id:1",
  38. DataUrl = Url.Content("~/ExamSetting/GetPaperList"),
  39. TextName = "test_paper_name",
  40. Title = "试卷列表",
  41. Colums = "Key:ID,试卷名称:PaperName:200:query,是否动态试卷:is_dynamic:100,试卷总分:paper_score:100,创建时间:created_date:100",
  42. DataValue = "test_paper_id",
  43. DataText = "PaperName",
  44. Width = 500,
  45. Required = true,
  46. })
  47. </td>
  48. </tr>
  49. <tr>
  50. <th>@Html.LabelFor(x => x.EducationMissionClassID):
  51. </th>
  52. <td colspan="3">
  53. @Html.Selector(new Bowin.Web.Controls.Mvc.SelectorOptions
  54. {
  55. ID = "EducationMissionClassName",
  56. Name = "EducationMissionClassID",
  57. IsSingleSelect = true,
  58. QueryParams = "EducationMissionClassID:1",
  59. DataUrl = Url.Content("~/Grademajor/GetEducationMissionClassList"),
  60. TextName = "Name",
  61. Title = "执行计划列表",
  62. Colums = "Key:EducationMissionClassID,任务班名:Name:400:query,学年学期:SchoolyearName:100,课程名称:CoursematerialName:200",
  63. DataValue = "EducationMissionClassID",
  64. DataText = "CoursematerialName",
  65. Width = 500,
  66. Required = true,
  67. Data = Model.ExecutablePlanData
  68. })
  69. </td>
  70. </tr>
  71. <tr>
  72. <th>@Html.LabelFor(x => x.test_name):
  73. </th>
  74. <td colspan="3">
  75. @Html.TextBoxFor(x => x.test_name, new Dictionary<string, object> { { "style", "width:80%" } })
  76. </td>
  77. </tr>
  78. <tr>
  79. <th>@Html.LabelFor(x => x.test_method_set_id):
  80. </th>
  81. <td>
  82. @Html.RadioButtonFor(model => model.test_method_set_id, 1, new { @id = "radio1", @value = "1", @name = "test_method_set_id" })<label>现场考试</label>
  83. @Html.RadioButtonFor(model => model.test_method_set_id, 0, new { @id = "radio2", @value = "0", @checked = "checked", @name = "test_method_set_id" })<label>在线考试</label>
  84. </td>
  85. <th>@Html.LabelFor(x => x.rand_test_point_type):
  86. </th>
  87. <td>
  88. @Html.RadioButtonFor(model => model.rand_test_point_type, 1, new { @id = "radio1", @value = "1", @name = "rand_test_point_type" })<label>逐题模式</label>
  89. @Html.RadioButtonFor(model => model.rand_test_point_type, 0, new { @id = "radio2", @value = "0", @checked = "checked", @name = "rand_test_point_type" })<label>整卷模式</label>
  90. </td>
  91. </tr>
  92. <tr>
  93. <th>@Html.LabelFor(x => x.ISautoBegin):
  94. </th>
  95. <td>
  96. @Html.RadioButtonFor(model => model.ISautoBegin, "True", new { @id = "radio1", @value = "True", @name = "ISautoBegin" })<label>是</label>
  97. @Html.RadioButtonFor(model => model.ISautoBegin, "False", new { @id = "radio2", @value = "False", @checked = "checked", @name = "ISautoBegin" })<label>否</label>
  98. </td>
  99. <th>@Html.LabelFor(x => x.isReadPaper):
  100. </th>
  101. <td>
  102. @Html.RadioButtonFor(model => model.isReadPaper, "True", new { @value = "True", @name = "isReadPaper" })<label>是</label>
  103. @Html.RadioButtonFor(model => model.isReadPaper, "False", new { @value = "False", @checked = "checked", @name = "isReadPaper" })<label>否</label>
  104. </td>
  105. </tr>
  106. <tr>
  107. <th>@Html.LabelFor(x => x.notice_datetime):
  108. </th>
  109. <td>
  110. @Html.TextBoxFor(model => model.notice_datetime, new TextBoxOptions() { TextBoxType = TextBoxType.DateTime })
  111. </td>
  112. <th>@Html.LabelFor(x => x.PassRate):
  113. </th>
  114. <td>
  115. @Html.TextBoxFor(model => model.PassRate, new TextBoxOptions() { TextBoxType = TextBoxType.Normal })
  116. </td>
  117. </tr>
  118. <tr>
  119. <th>@Html.LabelFor(x => x.isControllable):
  120. </th>
  121. <td>
  122. @Html.RadioButtonFor(model => model.isControllable, "True", new { @value = "True", @checked = "checked", @name = "isControllable" })<label>是</label>
  123. @Html.RadioButtonFor(model => model.isControllable, "False", new { @value = "False", @name = "isControllable" })<label>否</label>
  124. </td>
  125. <th>@Html.LabelFor(x => x.isPublishScore):
  126. </th>
  127. <td>
  128. @Html.RadioButtonFor(model => model.isPublishScore, "True", new { @value = "True", @name = "isPublishScore" })<label>是</label>
  129. @Html.RadioButtonFor(model => model.isPublishScore, "False", new { @value = "False", @checked = "checked", @name = "isPublishScore" })<label>否</label>
  130. </td>
  131. </tr>
  132. <tr>
  133. <th>@Html.LabelFor(x => x.isOpenAnswer):
  134. </th>
  135. <td>
  136. @Html.RadioButtonFor(model => model.isOpenAnswer, "True", new { @value = "True", @name = "isOpenAnswer" })<label>公开</label>
  137. @Html.RadioButtonFor(model => model.isOpenAnswer, "False", new { @value = "False", @checked = "checked", @name = "isOpenAnswer" })<label>不公开</label>
  138. </td>
  139. <th>@Html.LabelFor(x => x.relogin_count):
  140. </th>
  141. <td>
  142. @Html.TextBoxFor(model => model.relogin_count, new TextBoxOptions() { TextBoxType = TextBoxType.Normal })
  143. </td>
  144. </tr>
  145. <tr>
  146. <th>@Html.LabelFor(x => x.breaking_id):
  147. </th>
  148. <td colspan="3">
  149. @Html.RadioButtonFor(model => model.breaking_id, 1, new { @value = "1", @checked = "checked", @name = "breaking_id" })<label>仅试题乱序</label>
  150. @Html.RadioButtonFor(model => model.breaking_id, 2, new { @value = "2", @name = "breaking_id" })<label>仅答案乱序</label>
  151. @Html.RadioButtonFor(model => model.breaking_id, 3, new { @value = "3", @name = "breaking_id" })<label>试题,答案均乱序</label>
  152. @Html.RadioButtonFor(model => model.breaking_id, 4, new { @value = "4", @name = "breaking_id" })<label>不乱序</label>
  153. </td>
  154. </tr>
  155. <tr>
  156. <th>@Html.LabelFor(x => x.ModityContent):
  157. </th>
  158. <td colspan="3">
  159. @Html.TextAreaFor(x => x.ModityContent, new Dictionary<string, object>() { { "style", "width:80%" } })
  160. </td>
  161. </tr>
  162. <tr>
  163. <th>@Html.LabelFor(x => x.examtip):
  164. </th>
  165. <td colspan="3">
  166. @Html.TextBoxFor(model => model.test_begin_date, new TextBoxOptions() { TextBoxType = TextBoxType.DateTime })
  167. @Html.TextBoxFor(model => model.test_end_date, new TextBoxOptions() { TextBoxType = TextBoxType.DateTime })
  168. </td>
  169. </tr>
  170. <tr>
  171. <th>@Html.LabelFor(x => x.limited_minutes):
  172. </th>
  173. <td colspan="3">
  174. @Html.TextBoxFor(model => model.limited_minutes, new TextBoxOptions() { TextBoxType = TextBoxType.Normal })
  175. </td>
  176. </tr>
  177. </table>
  178. </div>
  179. }
  180. </div>
  181. @section scripts{
  182. <script src="~/Scripts/Bowin.Control.Core/Controls/Selector.js" type="text/javascript"></script>
  183. <script type="text/jscript">
  184. $(function () {
  185. $('#btnSave').click(function () {
  186. $(document.forms[0]).submit();
  187. })
  188. })
  189. var FormFunction = {
  190. SubmitSuccess: function (data) {
  191. window.location.href = "@Url.Content("~/ExamSetting/ExamList")";
  192. }
  193. }
  194. </script>
  195. }