123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- @model EMISOnline.ViewModel.Coursework.CourseworkAddView
- @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.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,
- Data = Model.PaperData
- })
- </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,
- })
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(x => x.WorkName):
- </th>
- <td colspan="3">
- @Html.TextBoxFor(x => x.WorkName, new Dictionary<string, object> { { "style", "width:80%" } })
- </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>
- </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("~/Coursework/CourseworkList")";
- }
- }
- </script>
- }
|