1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- @model EMIS.ViewModel.SelectCourse.SelectCourseTypeSettingView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Ajax.BeginForm(new AjaxOptions
- {
- OnSuccess = "EMISFunction.FormSuccess",
- OnBegin = "EMISFunction.FormSubmit",
- OnComplete = "EMISFunction.FormComplete"
- }))
- {
- @Html.HiddenFor(x => x.SelectCourseTypeSettingID)
- <div class="p_title">
- @*<div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- 类型设定信息</div>*@
- @if (Request["isView"] != "1")
- {
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
- }
- </div>
- <div class="search_list popupWindowContent">
- <table cellpadding="0" cellspacing="0">
- <tr>
- <td width="15%">@Html.LabelFor(x => x.SchoolyearID):
- </td>
- <td width="35%">@Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/DropDownAfterCurrent") })
- </td>
- <td width="15%">@Html.LabelFor(x => x.SelectCourseTypeID):
- </td>
- <td width="35%">@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EM_SelectCourseType, x => x.SelectCourseTypeID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.StartTime):
- </td>
- <td>@Html.TextBoxFor(x => x.StartTime, new TextBoxOptions { TextBoxType = TextBoxType.DateTime })
- </td>
- <td>@Html.LabelFor(x => x.EndTime):
- </td>
- <td>@Html.TextBoxFor(x => x.EndTime, new TextBoxOptions { TextBoxType = TextBoxType.DateTime })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.MinSelectCount):
- </td>
- <td>@(Html.TextBoxFor(x => x.MinSelectCount, new TextBoxOptions { TextBoxType = TextBoxType.Normal }))门
- </td>
- <td>@Html.LabelFor(x => x.MaxSelectCount):
- </td>
- <td>@(Html.TextBoxFor(x => x.MaxSelectCount, new TextBoxOptions { TextBoxType = TextBoxType.Normal }))门
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.MinCredit):
- </td>
- <td>@(Html.TextBoxFor(x => x.MinCredit, new TextBoxOptions { TextBoxType = TextBoxType.Normal }))
- </td>
- <td>@Html.LabelFor(x => x.MaxCredit):
- </td>
- <td>@(Html.TextBoxFor(x => x.MaxCredit, new TextBoxOptions { TextBoxType = TextBoxType.Normal }))
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Remark):
- </td>
- <td colspan="3">@Html.TextAreaFor(x => x.Remark, new Dictionary<string, string> { { "style", "width:500px;" } })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
- @section scripts{
- <script type="text/javascript">
- function TypeSetting_Save() {
- var type = "^\\d+$";
- var re = new RegExp(type);
- // if ($("#MaxSelectCount").val().match(re) == null || $("#MinSelectCount").val().match(re) == null) {
- // $.messager.alert("系统信息", "门数上下限输入不符合规范!");
- // return;
- // }
- if ($("#MinSelectCount").val() > $("#MaxSelectCount").val()) {
- $.messager.alert("系统信息", "门数下限不能大于上限!");
- return;
- }
- $(document.forms[0]).submit();
- }
- </script>
- }
|