1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @using Bowin.Common.Utility;
- @using EMIS.ViewModel;
- @{
- ViewBag.Title = "List";
- Guid? evaluationSettingID = Request.QueryString["evaluationSettingID"].ParseStrTo<Guid>();
- }
- @section scripts{
- <script src="~/Scripts/Business/EvaluationManage/EvaluationManage/EvaluationSettingEdit.js"></script>
- <script type="text/javascript">
- $(document).ready(function () {
- var JsonDate = top.$("#@(Request["WindowID"])").data("inputData");
- $("#evaluationSettingID").val(JsonDate.evaluationSettingID);
- });
- function EvaluationStudent_Save() {
- $("#SaveType").val(2);
- $(document.forms[0]).submit(); //提交表单
- }
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Ajax.BeginForm(new AjaxOptions { Url = "/EvaluationSetting/Save", OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
- {
- <div class="p_title">
- @Html.Hidden("evaluationSettingID")
- @*<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 (ViewBag.OpenStatus != CF_GeneralPurpose.IsYes.ToString())//如果已经提交、那么删除、增加按钮不显示
- {
- @Html.ContextMenuBar("Edit")
- }
- </div>
- </div>
- <div class="search_list">
- @if (ViewBag.OpenStatus != CF_GeneralPurpose.IsYes.ToString())//如果已经提交、那么删除、增加按钮不显示
- {
- @Html.ContextMenuBar("Edit-StudentGrid")
- }
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID" },
- new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.08 },
- new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.1, OverflowLength=10 },
- new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.05 },
- new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1, OverflowLength=10 },
- //new BoundFieldColumn { FieldName="EvaluationTypeName", HeaderText="参评类型", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="UserCodes", HeaderText="被评教师编号", Align=AlignStyle.Center, Width=0.06, OverflowLength=8 },
- new BoundFieldColumn { FieldName="UserNames", HeaderText="被评教师",Align=AlignStyle.Center, Width=0.04, OverflowLength=4 },
- new BoundFieldColumn { FieldName="EvaluationTableName", HeaderText="评价表名",Align=AlignStyle.Center, Width=0.05, OverflowLength=8 }
- },
- PageSize = 50,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/EvaluationSetting/GetStudentDetail?evaluationSettingID=" + evaluationSettingID),
- ID = "dgEvaluationSettingStudentDetailList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsPostBack = true,
- IsSingleSelect = false
- })
- </div>
- }
- </div>
|