123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- @model EMIS.ViewModel.CalendarManage.SchoolYearView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- Layout = "~/Views/Shared/_Layout.cshtml";
- ViewBag.Title = "Edit";
- }
- <style type="text/css">
-
- </style>
- <div class="separatorline">
- @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>*@
- @if (Request["isView"] != "1")
- {
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
- }
- </div>
- <div class="gobal-from">
- @Html.HiddenFor(x => x.SchoolYearID)
- <table cellpadding="0" cellspacing="1">
- <tr>
- <th>@Html.LabelFor(x => x.Code):
- </th>
- <td>@Html.TextBoxFor(x => x.Code)
- </td>
- <th>@Html.LabelFor(x => x.Years):
- </th>
- <td>@Html.TextBoxFor(x => x.Years)
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(x => x.SchoolcodeID):
- </th>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Semester, (x => x.SchoolcodeID))
- </td>
- <th>@Html.LabelFor(x => x.WeeksNum):
- </th>
- <td>@Html.TextBoxFor(x => x.WeeksNum)
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(x => x.FirstWeek):
- </th>
- <td>
- @Html.TextBoxFor(p => p.FirstWeek, new TextBoxOptions { TextBoxType = TextBoxType.Date })
- </td>
- <th>@Html.LabelFor(x => x.WeekDays):
- </th>
- <td>@Html.TextBoxFor(x => x.WeekDays)
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(x => x.IsCurrent):
- </th>
- <td colspan="3">@Html.CheckBoxFor(x => x.IsCurrent)
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
- @section scripts{
- <script type="text/javascript">
- function SchoolYear_Save() {
- var date = $("#FirstWeek").val();
- //var date = FirstWeek.value;
- date=date.replace(/-/g,"/");
- var week = new Date(date);
-
- if (week.getDay() != 1) {
- $.messager.alert("系统提示", "你选择的日期不是周一!");
- }
- else {
- $(document.forms[0]).submit();
- }
- }
- </script>
- }
|