123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363 |
- @model EMIS.ViewModel.EducationManage.EducationMissionClassCheckView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- ComboGridOptions time = new ComboGridOptions
- {
- TextField = "Times",
- ValueField = "CoursesTimeID",
- OnSelect = "GetEducationMissionClassBy",
- Name = "TimeComboGrid",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Times", HeaderText="节次", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/CoursesTime/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- ComboGridOptions timefalse = new ComboGridOptions
- {
- TextField = "Times",
- ValueField = "CoursesTimeID",
- OnSelect = "GetEducationMissionClassBy",
- Name = "TimeComboGrid",
- IsEnabled = false,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Times", HeaderText="节次", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/CoursesTime/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- ComboGridOptions classroom = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ClassroomID",
- //OnSelect = "GetEducationMissionClassBy",
- Name = "ClassroomDropdown",
- OnChange = "GetEducationMissionClassBy",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Code", HeaderText="教室代码", Width=0.1, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Width=0.1, Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Classroom/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions classroomfalse = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ClassroomID",
- //OnSelect = "GetEducationMissionClassBy",
- Name = "ClassroomDropdown",
- OnChange = "GetEducationMissionClassBy",
- IsEnabled = false,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Code", HeaderText="教室代码", Width=0.1, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Width=0.1, Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Classroom/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
-
- ComboGridOptions cgopClassmajor = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ClassmajorID",
- Name = "ClassmajorDropdown",
- OnSelect = "",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Classmajor/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
-
- ComboGridOptions education = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "EducationMissionClassID",
- Name = "EducationMissionDropdown",
- OnSelect = "",
- OnChange = "GetTeacherName",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText="任务班名称", Align=AlignStyle.Center, Width=350 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/EducationMissionClassCheck/GetEducationMissionClass"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- OnLoadSuccessFun = "setFirst",
- IsAutoLoad = false,
- }
- };
- ComboGridOptions educationfalse = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "EducationMissionClassID",
- Name = "EducationMissionDropdown",
- OnSelect = "",
- OnChange = "GetTeacherName",
- IsEnabled = false,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText="任务班名称", Align=AlignStyle.Center, Width=350 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/EducationMissionClassCheck/GetEducationMissionClass"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- OnLoadSuccessFun = "setFirst",
- IsAutoLoad = false,
- }
- };
- ComboGridOptions course = new ComboGridOptions
- {
- TextField = "CourseName",
- ValueField = "CoursematerialID",
- OnSelect = "",
- Name = "CoursematerialComboGrid",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/EducationMissionClassCheck/GetCoursematerial"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- OnLoadSuccessFun = "setCoursematerial",
- IsAutoLoad = false,
- }
- };
- ComboGridOptions coursefalse = new ComboGridOptions
- {
- TextField = "CourseName",
- ValueField = "CoursematerialID",
- OnSelect = "",
- Name = "CoursematerialComboGrid",
- IsEnabled = false,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/EducationMissionClassCheck/GetCoursematerial"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- OnLoadSuccessFun = "setCoursematerial",
- IsAutoLoad = false,
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/EducationManage/EducationMissionClassCheckEdit.js" type="text/javascript"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- var isUpdate = "@ViewBag.IsUpdate";
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @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>
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
- @Html.ContextMenuBar("Edit")
- </div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.EducationMissionClassCheckID)
- <table cellpadding="0" cellspacing="0" id="educationMissionClassChecktable">
- <tr>
- <td>@Html.LabelFor(x => x.SchoolyearCode):</td>
- @if (@ViewBag.IsUpdate == "edit")
- {
- <td>@Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), OnSelect = "GetEducationMissionClassBy", SelectedValue = @ViewBag.SchoolYearID, IsEnabled = false })</td>
- }
- else
- {
- <td>@Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), OnSelect = "GetEducationMissionClassBy", SelectedValue = @ViewBag.SchoolYearID })</td>
- }
- <td>@Html.LabelFor(x => x.WeekNum):</td>
- @if (@ViewBag.IsUpdate == "edit")
- {
- <td>@Html.DropdownListFor(x => x.WeekNum, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/GetWeekListDropdown"), OnSelect = "GetEducationMissionClassBy", IsEnabled = false })</td>
- }
- else
- {
- <td>@Html.DropdownListFor(x => x.WeekNum, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/GetWeekListDropdown"), OnSelect = "GetEducationMissionClassBy" })</td>
- }
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Weekday):</td>
- @if (@ViewBag.IsUpdate == "edit")
- {
- <td>
- @Html.WeekdayDropDownListFor(x => x.Weekday, new DropdownListOptions { OnSelect = "GetEducationMissionClassBy", IsEnabled = false })
- @*@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.ES_WeekDay, (x => x.Weekday), new DropdownListOptions { OnSelect = "GetEducationMissionClassBy", IsEnabled = false })*@
- </td>
- }
- else
- {
- <td>
- @Html.WeekdayDropDownListFor(x => x.Weekday, new DropdownListOptions { OnSelect = "GetEducationMissionClassBy" })
- @*@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.ES_WeekDay, (x => x.Weekday), new DropdownListOptions { OnSelect = "GetEducationMissionClassBy" })*@
- </td>
- }
- <td>@Html.LabelFor(x => x.CoursesTimeID):</td>
- @if (@ViewBag.IsUpdate == "edit")
- {
- <td>@Html.ComboGridFor(x => x.CoursesTimeID, timefalse)</td>
- }
- else
- {
- <td>@Html.ComboGridFor(x => x.CoursesTimeID, time)</td>
- }
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.ClassroomID):</td>
- @if (@ViewBag.IsUpdate == "edit")
- {
- <td>@Html.ComboGridFor(x => x.ClassroomID, classroomfalse)</td>
- }
- else
- {
- <td>@Html.ComboGridFor(x => x.ClassroomID, classroom)</td>
- }
- <td>@Html.LabelFor(x => x.EducationMissionClassID):</td>
- @if (@ViewBag.IsUpdate == "edit")
- {
- <td>@Html.ComboGridFor(x => x.EducationMissionClassID, educationfalse)</td>
- }
- else
- {
- <td>@Html.ComboGridFor(x => x.EducationMissionClassID, education)</td>
- }
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.CoursematerialID):</td>
- @if (@ViewBag.IsUpdate == "edit")
- {
- <td>@Html.ComboGridFor(x => x.CoursematerialID, coursefalse)</td>
- }
- else
- {
- <td>@Html.ComboGridFor(x => x.CoursematerialID, course)</td>
- }
- <td>@Html.LabelFor(x => x.TeacherName):</td>
- <td>@Html.TextBoxFor(x => x.TeacherName, new TextBoxOptions() { IsEnabled = false })</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.StudentComment):</td>
- <td colspan="3">@Html.TextAreaFor(x => x.StudentComment, new { style = "width:470px;" })</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.TeacherComment):</td>
- <td colspan="3">@Html.TextAreaFor(x => x.TeacherComment, new { style = "width:470px;" })</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.DeviceComment):</td>
- <td colspan="3">@Html.TextAreaFor(x => x.DeviceComment, new { style = "width:470px;" })</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.CheckWayID):</td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EM_EducationMissionClassCheckWay, (x => x.CheckWayID))</td>
- <td>@Html.LabelFor(x => x.OpinionID):</td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EM_EducationMissionClassCheckOpinion, (x => x.OpinionID))</td>
- </tr>
- <tr>
- <td>
- <label>检查人员:</label>
- </td>
- <td colspan="3">
- @Html.ContextMenuBar("Edit-Staff")
-
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID" },
- new LinkButtonColumn { FieldName="LoginID", HeaderText="教职工号", Align=AlignStyle.Center , Handle="edit" },
- new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="TitleName", HeaderText="职称", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CollegeID", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center ,IsHidden=true },
- new BoundFieldColumn { FieldName="DepartmentID", HeaderText="教研室", Align=AlignStyle.Center,IsHidden=true },
- new BoundFieldColumn { FieldName="DepartmentName", HeaderText="教研室", Align=AlignStyle.Center },
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/EducationMissionClassCheck/TeacherList?educationMissionClassCheckID=" + Model.EducationMissionClassCheckID),
- IsPostBack = true,
- ID = "dgTeacherList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Remark):</td>
- <td colspan="3">@Html.TextAreaFor(x => x.Remark, new { style = "width:470px;" })</td>
- </tr>
- </table>
- </div>
- }
- </div>
|