123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- @model EMIS.ViewModel.StudentManage.OnlineChecking.OpenObjectView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- var isEnable = Request["type"] == "detail" ? false : true;
- var isDisable = Request["type"] == "detail" ? false : (Request["type"] == "edit" ? false : true);
- }
- <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" }))
- {
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
- @if (Request["type"] != "detail")
- {
- @Html.ContextMenuBar("Edit")
- }
- </div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.StudentEditObjectsID)
- <table cellpadding="0" cellspacing="0" id="collegePrioritytable">
- <tr>
- <td>
- @Html.LabelFor(x => x.EducationID):
- </td>
- <td>
- @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Education, (x => x.EducationID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isDisable })
- </td>
- <td>
- @Html.LabelFor(x => x.SchoolyearNumID):
- </td>
- <td>
- @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, (x => x.SchoolyearNumID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isDisable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Starttime):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Starttime, new TextBoxOptions
- {
- TextBoxType = TextBoxType.DateTime,
- IsEnabled = isEnable
- })
- </td>
- <td>
- @Html.LabelFor(x => x.Endtime):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Endtime, new TextBoxOptions
- {
- TextBoxType = TextBoxType.DateTime,
- IsEnabled = isEnable
- })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Remark):
- </td>
- <td colspan="3">
- @if (!isEnable)
- {
- @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object>
- {
- { "style", "width: 90%;min-height: 20px" },
- { "disabled", "true" }
- })
- }
- else
- {
- @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width: 90%;min-height: 20px" } })
- }
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
- @section scripts{
- <script type="text/javascript">
- //保存
- function StudentEditObject_Save() {
- var startDate = $("#Starttime").val();
- var endDate = $("#Endtime").val();
- var sd = new Date(startDate.replace(/\-/g, "\/"));
- var ed = new Date(endDate.replace(/\-/g, "\/"));
- if (startDate != "" && endDate != "" && sd >= ed) {
- $.messager.alert("系统提示", "结束时间不能小于开始时间。");
- return;
- }
- $(document.forms[0]).submit();
- }
- </script>
- }
|