12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- @model EMIS.Entities.CF_Staff
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Entities;
- @using EMIS.Web.Controls;
- @using EMIS.ViewModel;
- @{
- ViewBag.Title = "List";
-
- }
- <style type="text/css">
- .textwidth
- {
- width: 99%;
- }
- </style>
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- <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>
- }
- @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
- {
- <div class="search_list">
- @Html.HiddenFor(x => x.UserID)
- <table cellpadding="0" cellspacing="0" id="classroomReservetable">
- <tr>
- <td style="width: 105px;">
- <label>
- 姓名:</label>
- </td>
- <td colspan="3">@Html.TextBoxFor(x => x.Sys_User.Name, new TextBoxOptions { IsEnabled = false, CssClass = "textwidth" })
- </td>
- </tr>
- <tr>
- <td colspan="4">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Times", HeaderText="节次", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="TimesSegmentName", HeaderText="时间段", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="StartTime", HeaderText="开始时间", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="EndTime", HeaderText="结束时间", Align=AlignStyle.Center },
- new CheckButtonColumn { FieldName="MondayIsOnWork",HeaderText="星期一" },
- new CheckButtonColumn { FieldName="TuesdayIsOnWork",HeaderText="星期二" },
- new CheckButtonColumn { FieldName="WednesdayIsOnWork",HeaderText="星期三" },
- new CheckButtonColumn { FieldName="ThursdayIsOnWork",HeaderText="星期四" },
- new CheckButtonColumn { FieldName="FridayIsOnWork",HeaderText="星期五" },
- new CheckButtonColumn { FieldName="SaturdayIsOnWork",HeaderText="星期六" },
- new CheckButtonColumn { FieldName="SundayIsOnWork",HeaderText="星期日" },
- },
- DataSourceUrl = Url.Content("~/TeacherScheduleSetting/ArrangementsList?userID=" + Model.UserID),
- ID = "dgArrangementsList",
- IsPostBack = true,
- IsPagination = false,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
- </div>
- @section scripts{
- <script type="text/javascript">
- function TeacherScheduleSetting_Save() {
- $(document.forms[0]).submit();
- }
- </script>
- }
|