123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234 |
- @model EMIS.ViewModel.EvaluationManage.EvaluationSettingView
- @using EMIS.ViewModel;
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- Layout = "~/Views/Shared/_Layout.cshtml";
- ViewBag.Title = "评价设定编辑";
- var schoolyearID = ViewBag.schoolyearID;//学年学期
- var coursematerialID = ViewBag.coursematerialID;//课程
- //var campusID = ViewBag.schoolyearID;
- var collegeID = ViewBag.collegeID;//院系所
- var departmentID = ViewBag.departmentID; //教 研 室
- //加载教学任务班信息
- var cgopEducationMissionClassID = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "EducationMissionClassID",
- OnSelect = "SelectEducationMissionDropdownList",
- 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("EducationMissionClassList", "EvaluationSetting"),
- IsPagination = true,
- // OnLoadSuccessFun="LoadMissionDropdownList",
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- //加载评价表名信息
- var cgopEducationTableID = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "TableID",
- //OnSelect = "SelectCallback",
- OnSelect = "SelectEducationTableList",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { 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.Content("~/EvaluationTable/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- //加载院系所
- ComboGridOptions cgopCollege = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "CollegeID",
- ID = "CollegeDropdown",
- Name = "CollegeDropdown",
- OnSelect = "SelectCollegeDropdownList",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/College/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- OnLoadSuccessFun = "QueryCollegeDropdownList"
- }
- };
- //加载教研室
- ComboGridOptions cgopDepartment = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "DepartmentID",
- OnSelect = "reload",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="No", HeaderText="教研室编号", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Department/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- OnLoadSuccessFun = "QueryDepartmentDropdownList"
- }
- };
- //加载课程名称
- ComboGridOptions cgopCoursematerial = new ComboGridOptions
- {
- TextField = "CourseName",
- ValueField = "CoursematerialID",
- OnSelect = "SelectBuildingsDropdownList",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- // DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
- DataSourceUrl = Url.Content("~/EvaluationSetting/GetCoursematerialQuery"),
- IsPagination = true,
- IsShowRowNumbers = true,
- OnLoadSuccessFun = "LoadMissionDropdownList",
- IsSingleSelect = false
- }
- };
- }
- <div class="separatorline">
- @using (Ajax.BeginForm(new AjaxOptions { Url = "/EvaluationSetting/Edit", 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;">
- @if (Model.OpenStatus == (int)CF_YesOrNoStatus.No)
- {
- @Html.ContextMenuBar("Edit")
- }
- </div>
- </div>
- <div class="gobal-from">
- @Html.HiddenFor(x => x.EvaluationSettingID)
- <table cellpadding="0" cellspacing="1">
- <tr>
- <th>@Html.LabelFor(m => m.SchoolyearID):
- </th>
- <td>
- @Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.None, ItemSourceUrl = "~/SchoolYear/DropDown", TextField = "Text", ValueField = "Value", ID = "SchoolyearDropdown", Name = "SchoolyearDropdown", OnSelect = "SelectSchoolyearDropdownList", OnLoadSuccess = "LoadMissionDropdownList" })
- </td>
- <th>@Html.LabelFor(m => m.CollegeID):
- </th>
- <td>
- @Html.DropdownListFor(x => x.CollegeID, new DropdownListOptions { BindType = DropdownListBindType.None, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListBanids"), TextField = "Text", ValueField = "Value", ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "SelectCollegeDropdownList", OnLoadSuccess = "QueryCollegeDropdownList" })
- @* @Html.ComboGridFor(x => x.CollegeID, cgopCollege)*@
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(m => m.DepartmentID):
- </th>
- <td>
- @Html.DropdownListFor(x => x.DepartmentID, new DropdownListOptions { BindType = DropdownListBindType.None, TextField = "Text", ValueField = "Value", ID = "DepartmentDropdown", Name = "DepartmentDropdown", OnLoadSuccess = "QueryDepartmentDropdownList", OnSelect = "SelectDepartmentDropdownList" })
- @* @Html.ComboGridFor(x => x.DepartmentID, cgopDepartment)*@
- </td>
- <th>@Html.LabelFor(m => m.CoursematerialID):
- </th>
- <td>
- @Html.ComboGridFor(x => x.CoursematerialID, cgopCoursematerial)
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(m => m.EducationMissionClassID):
- </th>
- <td>
- @Html.ComboGridFor(m => m.EducationMissionClassID, cgopEducationMissionClassID)
- </td>
- <th>@Html.LabelFor(m => m.EvaluationTableID):
- </th>
- <td>
- @Html.ComboGridFor(m => m.EvaluationTableID, cgopEducationTableID)
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(m => m.EvaluationTableTypeName):
- </th>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EM_EvaluationTableType, (x => x.EvaluationTableTypeID), new DropdownListOptions { BindType = DropdownListBindType.None, ID = "EvaluationTableTypeDropdown", Name = "EvaluationTableTypeDropdown" })
- </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 src="~/Scripts/Business/EvaluationManage/EvaluationManage/EvaluationSettingEdit.js" type="text/javascript">
- </script>
- <script type="text/javascript">
- function EvaluationStudent_Save() {
- var id = $('#EvaluationSettingID').val();
- var educationMissionClassID = $("#EducationMissionClassID").combogridX('getValue');
- var tableID = $("#EvaluationTableID").combogridX('getValue');
- $.post('/StudentEvaluation/Verification', { Id: id, EducationMissionClassID: educationMissionClassID, TableID: tableID }, function (data) {
- if (data == "成功") {
- $(document.forms[0]).submit();
- } else {
- $.messager.alert("系统提示", data);
- }
- });
- }
- var nonSelect = "@DropdownList.SELECT_ALL";
- </script>
- }
|