1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- @model EMIS.ViewModel.SchedulingManage.SchedulingSettings.CourseTimeHoursView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- Layout = "~/Views/Shared/_Layout.cshtml";
- ViewBag.Title = "Edit";
- ComboGridOptions time = new ComboGridOptions
- {
- TextField = "time_starTime_endTime",
- ValueField = "CoursesTimeID",
- Name = "TimeComboGrid",
- ID = "TimeComboGrid",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- //new BoundFieldColumn { FieldName="TimesSegmentName", HeaderText="时间段", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="time_starTime_endTime", HeaderText="上课时间", Align=AlignStyle.Center },
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/CoursesTime/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- <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.CourseTimeHoursID)
- <table cellpadding="0" cellspacing="1">
- <tr>
- <th>@Html.LabelFor(x => x.Year):
- </th>
- <td>@Html.SchoolYearDropDownListFor(x => x.Year)
- </td>
- <th>@Html.LabelFor(x => x.CoursesTimeID):
- </th>
- <td>@Html.ComboGridFor(x => x.CoursesTimeID, time)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x=>x.Hours):
- </td>
- <td colspan="3">
- @Html.TextBoxFor(x => x.Hours)
- </td>
- </tr>
- </table>
- </div>
- <div style="color: Red; text-align: center;">
- 时间以24小时制(例如:下午2点应表示为14:00)</div>
- }
- </div>
- @section scripts{
- <script type="text/javascript">
- function CourseTimeHours_Save() {
-
- $(document.forms[0]).submit();
- }
- </script>
- }
|