123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197 |
- @model EMISOnline.ViewModel.ExamView.OnlineTestView
- @using EMISOnline.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "ExamAdd";
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @Html.Position()
- <div class="p_SearchTitle">
- </div>
- <div class="p_title">
- <div style="float: left; margin-left: 10px; color: #333; line-height: 35px; font-size: 12px;">
- 考试信息</div>
- <div style="margin-right: 10px; float: right; line-height: 30px; font-size: 12px;">
- @Html.Button(new ButtonOptions() { ID = "btnSave", Text = "保 存" })
- </div>
- </div>
- @using (Ajax.BeginForm(new AjaxOptions
- {
- OnSuccess = "EMISFunction.FormSuccess",
- OnBegin = "EMISFunction.FormSubmit",
- OnComplete = "EMISFunction.FormComplete",
- }))
- {
- @Html.HiddenFor(x => x.onlinetest_id)
- <div class="search_list">
- <table cellpadding="0" cellspacing="0" id="Coursematerialtable">
- <tr>
- <th>@Html.LabelFor(x => x.test_paper_name):
- </th>
- <td colspan="3">
- @Html.Selector(new Bowin.Web.Controls.Mvc.SelectorOptions
- {
- ID = "test_paper_name",
- Name = "test_paper_id",
- IsSingleSelect = true,
- QueryParams = "id:1",
- DataUrl = Url.Content("~/ExamSetting/GetPaperList"),
- TextName = "test_paper_name",
- Title = "试卷列表",
- Colums = "Key:ID,试卷名称:PaperName:200:query,是否动态试卷:is_dynamic:100,试卷总分:paper_score:100,创建时间:created_date:100",
- DataValue = "test_paper_id",
- DataText = "PaperName",
- Width = 500,
- Required = true,
- })
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(x => x.EducationMissionClassID):
- </th>
- <td colspan="3">
- @Html.Selector(new Bowin.Web.Controls.Mvc.SelectorOptions
- {
- ID = "EducationMissionClassName",
- Name = "EducationMissionClassID",
- IsSingleSelect = true,
- QueryParams = "EducationMissionClassID:1",
- DataUrl = Url.Content("~/Grademajor/GetEducationMissionClassList"),
- TextName = "Name",
- Title = "执行计划列表",
- Colums = "Key:EducationMissionClassID,任务班名:Name:400:query,学年学期:SchoolyearName:100,课程名称:CoursematerialName:200",
- DataValue = "EducationMissionClassID",
- DataText = "CoursematerialName",
- Width = 500,
- Required = true,
- Data = Model.ExecutablePlanData
- })
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(x => x.test_name):
- </th>
- <td colspan="3">
- @Html.TextBoxFor(x => x.test_name, new Dictionary<string, object> { { "style", "width:80%" } })
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(x => x.test_method_set_id):
- </th>
- <td>
- @Html.RadioButtonFor(model => model.test_method_set_id, 1, new { @id = "radio1", @value = "1", @name = "test_method_set_id" })<label>现场考试</label>
- @Html.RadioButtonFor(model => model.test_method_set_id, 0, new { @id = "radio2", @value = "0", @checked = "checked", @name = "test_method_set_id" })<label>在线考试</label>
- </td>
- <th>@Html.LabelFor(x => x.rand_test_point_type):
- </th>
- <td>
- @Html.RadioButtonFor(model => model.rand_test_point_type, 1, new { @id = "radio1", @value = "1", @name = "rand_test_point_type" })<label>逐题模式</label>
- @Html.RadioButtonFor(model => model.rand_test_point_type, 0, new { @id = "radio2", @value = "0", @checked = "checked", @name = "rand_test_point_type" })<label>整卷模式</label>
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(x => x.ISautoBegin):
- </th>
- <td>
- @Html.RadioButtonFor(model => model.ISautoBegin, "True", new { @id = "radio1", @value = "True", @name = "ISautoBegin" })<label>是</label>
- @Html.RadioButtonFor(model => model.ISautoBegin, "False", new { @id = "radio2", @value = "False", @checked = "checked", @name = "ISautoBegin" })<label>否</label>
- </td>
- <th>@Html.LabelFor(x => x.isReadPaper):
- </th>
- <td>
- @Html.RadioButtonFor(model => model.isReadPaper, "True", new { @value = "True", @name = "isReadPaper" })<label>是</label>
- @Html.RadioButtonFor(model => model.isReadPaper, "False", new { @value = "False", @checked = "checked", @name = "isReadPaper" })<label>否</label>
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(x => x.notice_datetime):
- </th>
- <td>
- @Html.TextBoxFor(model => model.notice_datetime, new TextBoxOptions() { TextBoxType = TextBoxType.DateTime })
- </td>
- <th>@Html.LabelFor(x => x.PassRate):
- </th>
- <td>
- @Html.TextBoxFor(model => model.PassRate, new TextBoxOptions() { TextBoxType = TextBoxType.Normal })
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(x => x.isControllable):
- </th>
- <td>
- @Html.RadioButtonFor(model => model.isControllable, "True", new { @value = "True", @checked = "checked", @name = "isControllable" })<label>是</label>
- @Html.RadioButtonFor(model => model.isControllable, "False", new { @value = "False", @name = "isControllable" })<label>否</label>
- </td>
- <th>@Html.LabelFor(x => x.isPublishScore):
- </th>
- <td>
- @Html.RadioButtonFor(model => model.isPublishScore, "True", new { @value = "True", @name = "isPublishScore" })<label>是</label>
- @Html.RadioButtonFor(model => model.isPublishScore, "False", new { @value = "False", @checked = "checked", @name = "isPublishScore" })<label>否</label>
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(x => x.isOpenAnswer):
- </th>
- <td>
- @Html.RadioButtonFor(model => model.isOpenAnswer, "True", new { @value = "True", @name = "isOpenAnswer" })<label>公开</label>
- @Html.RadioButtonFor(model => model.isOpenAnswer, "False", new { @value = "False", @checked = "checked", @name = "isOpenAnswer" })<label>不公开</label>
- </td>
- <th>@Html.LabelFor(x => x.relogin_count):
- </th>
- <td>
- @Html.TextBoxFor(model => model.relogin_count, new TextBoxOptions() { TextBoxType = TextBoxType.Normal })
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(x => x.breaking_id):
- </th>
- <td colspan="3">
- @Html.RadioButtonFor(model => model.breaking_id, 1, new { @value = "1", @checked = "checked", @name = "breaking_id" })<label>仅试题乱序</label>
- @Html.RadioButtonFor(model => model.breaking_id, 2, new { @value = "2", @name = "breaking_id" })<label>仅答案乱序</label>
- @Html.RadioButtonFor(model => model.breaking_id, 3, new { @value = "3", @name = "breaking_id" })<label>试题,答案均乱序</label>
- @Html.RadioButtonFor(model => model.breaking_id, 4, new { @value = "4", @name = "breaking_id" })<label>不乱序</label>
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(x => x.ModityContent):
- </th>
- <td colspan="3">
- @Html.TextAreaFor(x => x.ModityContent, new Dictionary<string, object>() { { "style", "width:80%" } })
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(x => x.examtip):
- </th>
- <td colspan="3">
- @Html.TextBoxFor(model => model.test_begin_date, new TextBoxOptions() { TextBoxType = TextBoxType.DateTime })
- 至
- @Html.TextBoxFor(model => model.test_end_date, new TextBoxOptions() { TextBoxType = TextBoxType.DateTime })
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(x => x.limited_minutes):
- </th>
- <td colspan="3">
- @Html.TextBoxFor(model => model.limited_minutes, new TextBoxOptions() { TextBoxType = TextBoxType.Normal })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
- @section scripts{
- <script src="~/Scripts/Bowin.Control.Core/Controls/Selector.js" type="text/javascript"></script>
- <script type="text/jscript">
- $(function () {
- $('#btnSave').click(function () {
- $(document.forms[0]).submit();
- })
- })
- var FormFunction = {
- SubmitSuccess: function (data) {
- window.location.href = "@Url.Content("~/ExamSetting/ExamList")";
- }
- }
- </script>
- }
|