123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- @model EMIS.ViewModel.EvaluationManage.TeacherEvaluationView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- Layout = "~/Views/Shared/_Layout.cshtml";
- ViewBag.Title = "教师评价编辑";
- var cgopEducationMissionClassID = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "EducationMissionClassID",
- //OnSelect = "SelectCallback",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText="任务班名称", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="StartWeeklyNum", HeaderText="开始周次", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="EndWeeklyNum", HeaderText="结束周次", Align=AlignStyle.Center },
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Action("List", "EducationMission"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- var cgopEducationTableID = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "TableID",
- //OnSelect = "SelectCallback",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="Code", HeaderText="评价编号", Align=AlignStyle.Center ,},
- new BoundFieldColumn { FieldName="Name", HeaderText="评价表名", Align=AlignStyle.Center ,},
- new BoundFieldColumn { FieldName="Type", HeaderText="评价类型", Align=AlignStyle.Center ,},
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Action("List", "EvaluationTable") + "?evaluationType=" + ViewBag.EvaluationTypeId,
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- <style type="text/css">
-
- </style>
- <div class="separatorline">
- @using (Html.BeginForm())
- {
- <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.EntityID)
- <table cellpadding="0" cellspacing="1">
- <tr>
- <th>@Html.LabelFor(m => m.EducationMissionClassID):
- </th>
- <td>
- @Html.ComboGridFor(m => m.EducationMissionClassID, cgopEducationMissionClassID)
- </td>
- <th>@Html.LabelFor(m => m.TableID):
- </th>
- <td>
- @Html.ComboGridFor(m => m.TableID, cgopEducationTableID)
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(m => m.Participators):
- </th>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_YesOrNoStatus, m => m.OpenStatus)
- </td>
- <th>@Html.LabelFor(m => m.OpenStatus):
- </th>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_YesOrNoStatus, m => m.OpenStatus)
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
- @section scripts{
- <script type="text/javascript">
- function EvaluationStudent_Save() {
- var id = $('#EntityID').val();
- var educationMissionClassID = $("#EducationMissionClassID").combogridX('getValue');
- var tableID = $("#TableID").combogridX('getValue');
- $.post('/TeacherEvaluation/Verification', { Id: id, EducationMissionClassID: educationMissionClassID, TableID: tableID }, function (data) {
- if (data == "成功") {
- $(document.forms[0]).submit();
- } else {
- $.messager.alert("系统提示", data);
- }
- });
- }
- </script>
- }
|