@model EMIS.ViewModel.Cultureplan.CoursematerialView @using Bowin.Web.Controls.Mvc; @using EMIS.Entities; @using EMIS.Web.Controls; @using EMIS.ViewModel; @{ ViewBag.Title = "List"; }
课程可排时间设置
@if (Request["isView"] != "1") {
@Html.ContextMenuBar("Edit")
} @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@Html.HiddenFor(x => x.CoursematerialID)
@Html.TextBoxFor(x => x.CourseCode, new TextBoxOptions { IsEnabled = false }) @Html.TextBoxFor(x => x.CourseName, new TextBoxOptions { IsEnabled = false })
@Html.DataGrid(new DataGridOptions { Columns = new List() { 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("~/CourseScheduleSetting/ArrangementsList?coursematerialID=" + Model.CoursematerialID), ID = "dgArrangementsList", IsPostBack = true, IsPagination = false, IsShowRowNumbers = true, IsSingleSelect = false })
}
@section scripts{ }