123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- @model EMIS.ViewModel.SupervisionManage.LessonRecordView
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- String SchoolYearID = ViewBag.SchoolYearID;
- ViewBag.Title = "List";
- }
- @section scripts{
- <script type="text/javascript">
- var windowID = '@(Request["WindowID"])';
- var nonSelect = "@DropdownList.SELECT_ALL";
- </script>
- <script src="~/Scripts/Business/SupervisionManage/LessonRecordEdit.js" type="text/javascript"></script>
- }
- @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
- {
- @Html.HiddenFor(x => x.LessonRecordID)
- @Html.HiddenFor(x => x.CreateUserID)
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- 听课记录
- </div>
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@(Request["isShow"] == "1" ? new MvcHtmlString("") : Html.ContextMenuBar("Edit"))</div>
- </div>
- <div class="search_list popupWindowContent" style="overflow: scroll;">
- <table border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr>
- <td>@Html.LabelFor(x => x.SchoolyearID)</td>
- <td colspan="3">@Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDownBeforeCurrent"), SelectedValue = BaseExtensions.GetCurrentSchoolYearID() })</td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.CreateUserID):
- </td>
- <td>
- @Html.DisplayFor(x => x.CreateUserName)
- </td>
- <td>
- @Html.LabelFor(x => x.SupervisionCollegeID):
- </td>
- <td>
- @Html.DropdownListFor((x => x.SupervisionCollegeID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SupervisionCollege/Dropdown"), SelectedValue = Model.SupervisionCollegeID })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.LessonDate):
- </td>
- <td>
- @Html.TextBoxFor(x => x.LessonDate, new TextBoxOptions { TextBoxType = TextBoxType.Date, OnSelect = "LessonDateChange" })
- </td>
- <td>
- @Html.LabelFor(x => x.Location):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Location, new TextBoxOptions { })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Weekday):
- </td>
- <td>
- @Html.WeekdayDropDownListFor(x => x.Weekday, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, OnSelect = "GetClassmajorAndCourse" })
- </td>
- <td>
- @Html.LabelFor(x => x.CoursesTimeID):
- </td>
- <td>
- @Html.DropdownListFor(x => x.CoursesTimeID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, OnSelect = "GetClassmajorAndCourse", ItemSourceUrl = Url.Content("~/CoursesTime/DropDownForSegment") })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.UserID):
- </td>
- <td>
- @Html.ComboGridFor(x => x.UserID, new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "UserID",
- OnSelect = "GetClassmajorAndCourse",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- 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
- }
- })
- </td>
- <td>
- @Html.LabelFor(x => x.ClassmajorID):
- </td>
- <td>
- @Html.ComboGridFor(x => x.ClassmajorID, new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ClassmajorID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.2 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Classmajor/ListForInschool"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.CoursematerialID):
- </td>
- <td>
- @Html.ComboGridFor(x => x.CoursematerialID, new ComboGridOptions
- {
- TextField = "CourseName",
- ValueField = "CoursematerialID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- 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,
- }
- })
- </td>
- <td>
- @Html.LabelFor(x => x.TotalScore):
- </td>
- <td>
- @Html.TextBoxFor(x => x.TotalScore, new TextBoxOptions { })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Content):<div style = "color:Red">(字数需大于100)</div>
- </td>
- <td colspan="3">
- @Html.RichTextFor(x => x.Content, new RichTextOptions { Width = 700, Height = 520 })
- @*@Html.TextAreaFor(x => x.Content, new { style = "width: 98%;" })*@
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Record):<div style = "color:Red">(字数需大于60)</div>
- </td>
- <td colspan="3">
- @Html.RichTextFor(x => x.Record, new RichTextOptions { Width = 700, Height = 520 })
- @*@Html.TextAreaFor(x => x.Record, new { style = "width: 98%;" })*@
- <div class="sv" style = "display:inline;float:right; line-height:inherit">@(Request["isShow"] == "1" ? new MvcHtmlString("") : Html.Button(new ButtonOptions { OnClick = "LessonRecord_SeletcRecord()", Icon = ButtonIcon.Search, Text = "快速添加" }))</div>
- </td>
- </tr>
- <tr>
- <td>
- <label>附件:</label>
- </td>
- <td colspan="3">
- @Html.Uploader(new uploaderOption { IsEnabled = (Request["isShow"] != "1"), Name = "LessonRecordAttachment", MainTableID = Model.LessonRecordID })
- </td>
- </tr>
- </table>
- </div>
- }
|