1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- @model EMIS.ViewModel.CalendarManage.CoursesTimeView
- @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.CoursesTimeID)
- <table cellpadding="0" cellspacing="1" style="table-layout:fixed;">
- <tr>
- <th width="15%">@Html.LabelFor(x => x.StartTimes):
- </th>
- <td width="35%">@Html.TextBoxFor(x => x.StartTimes, new { style = "width:66px;" })-@Html.TextBoxFor(x => x.EndTimes, new { style = "width:66px;" })
- </td>
- <th width="15%">@Html.LabelFor(x => x.TimesSegment):
- </th>
- <td width="35%">@Html.DropdownListFor(x => x.TimesSegment, new DropdownListOptions { ItemSourceUrl = Url.Content("~/Activitie/TimesSegmentDropdownListBanid"), TextField = "Text", ValueField = "Value" })
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(x => x.StartDate):
- </th>
- <td>@Html.TextBoxFor(x => x.StartHour, new { style = "width:66px;" }):@Html.TextBoxFor(x => x.StartMinutes, new { style = "width:66px;" })
- </td>
- <th>@Html.LabelFor(x => x.EndDate):
- </th>
- <td>@Html.TextBoxFor(x => x.EndHour, new { style = "width:66px;" }):@Html.TextBoxFor(x => x.EndMinutes, new { style = "width:66px;" })
- </td>
- </tr>
- </table>
- </div>
- <div style="color: Red; text-align: center;">
- 时间以24小时制(例如:下午2点应表示为14:00)</div>
- }
- </div>
- @section scripts{
- <script type="text/javascript">
- function CoursesTime_Save() {
- var s = parseInt($("#StartHour").val());
- var e = parseInt($("#EndHour").val());
- var sm = parseInt($("#StartMinutes").val());
- var em = parseInt($("#EndMinutes").val());
- if (s > e) {
- if(sm>em){
- $.messager.alert("系统提示", "开始时间不能大于结束时间!");
- }
- }
- else {
- $(document.forms[0]).submit();
- }
- }
- </script>
- }
|