@model EMIS.ViewModel.SupervisionManage.LessonRecordView @using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ String SchoolYearID = ViewBag.SchoolYearID; ViewBag.Title = "List"; } @section scripts{ } @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) { @Html.HiddenFor(x => x.LessonRecordID) @Html.HiddenFor(x => x.CreateUserID)
听课记录
@(Request["isShow"] == "1" ? new MvcHtmlString("") : Html.ContextMenuBar("Edit"))
@Html.LabelFor(x => x.SchoolyearID) @Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDownBeforeCurrent"), SelectedValue = BaseExtensions.GetCurrentSchoolYearID() })
@Html.LabelFor(x => x.CreateUserID): @Html.DisplayFor(x => x.CreateUserName) @Html.LabelFor(x => x.SupervisionCollegeID): @Html.DropdownListFor((x => x.SupervisionCollegeID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SupervisionCollege/Dropdown"), SelectedValue = Model.SupervisionCollegeID })
@Html.LabelFor(x => x.LessonDate): @Html.TextBoxFor(x => x.LessonDate, new TextBoxOptions { TextBoxType = TextBoxType.Date, OnSelect = "LessonDateChange" }) @Html.LabelFor(x => x.Location): @Html.TextBoxFor(x => x.Location, new TextBoxOptions { })
@Html.LabelFor(x => x.Weekday): @Html.WeekdayDropDownListFor(x => x.Weekday, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, OnSelect = "GetClassmajorAndCourse" }) @Html.LabelFor(x => x.CoursesTimeID): @Html.DropdownListFor(x => x.CoursesTimeID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, OnSelect = "GetClassmajorAndCourse", ItemSourceUrl = Url.Content("~/CoursesTime/DropDownForSegment") })
@Html.LabelFor(x => x.UserID): @Html.ComboGridFor(x => x.UserID, new ComboGridOptions { TextField = "Name", ValueField = "UserID", OnSelect = "GetClassmajorAndCourse", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="教师姓名", Width=0.1, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Staff/ListWithNoDataRange"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, IsAutoLoad = true } }) @Html.LabelFor(x => x.ClassmajorID): @Html.ComboGridFor(x => x.ClassmajorID, new ComboGridOptions { TextField = "Name", ValueField = "ClassmajorID", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Classmajor/ListForInschool"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } })
@Html.LabelFor(x => x.CoursematerialID): @Html.ComboGridFor(x => x.CoursematerialID, new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.12 }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }) @Html.LabelFor(x => x.TotalScore): @Html.TextBoxFor(x => x.TotalScore, new TextBoxOptions { })
@Html.LabelFor(x => x.Content):
(字数需大于100)
@Html.RichTextFor(x => x.Content, new RichTextOptions { Width = 700, Height = 520 }) @*@Html.TextAreaFor(x => x.Content, new { style = "width: 98%;" })*@
@Html.LabelFor(x => x.Record):
(字数需大于60)
@Html.RichTextFor(x => x.Record, new RichTextOptions { Width = 700, Height = 520 }) @*@Html.TextAreaFor(x => x.Record, new { style = "width: 98%;" })*@
@(Request["isShow"] == "1" ? new MvcHtmlString("") : Html.Button(new ButtonOptions { OnClick = "LessonRecord_SeletcRecord()", Icon = ButtonIcon.Search, Text = "快速添加" }))
@Html.Uploader(new uploaderOption { IsEnabled = (Request["isShow"] != "1"), Name = "LessonRecordAttachment", MainTableID = Model.LessonRecordID })
}