@@ -75,7 +75,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 场次安排 | |||||
/// | |||||
/// </summary> | /// </summary> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
[HttpGet] | [HttpGet] | ||||
@@ -83,6 +83,15 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | { | ||||
return View(); | return View(); | ||||
} | } | ||||
/// <summary> | |||||
/// | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult TeachingQualityPrint() | |||||
{ | |||||
return View(); | |||||
} | |||||
#endregion | #endregion | ||||
#region 获取数据 | #region 获取数据 | ||||
@@ -41,6 +41,7 @@ | |||||
<div class="lr-layout-tool-right"> | <div class="lr-layout-tool-right"> | ||||
<div class=" btn-group btn-group-sm"> | <div class=" btn-group btn-group-sm"> | ||||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | <a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | ||||
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>打印</a> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -20,7 +20,7 @@ var bootstrap = function ($, learun) { | |||||
page.bind(); | page.bind(); | ||||
}, | }, | ||||
bind: function () { | bind: function () { | ||||
// 初始化左侧树形数据 | |||||
// 初始化左侧树形数据 考场信息 | |||||
$('#dataTree').lrtree({ | $('#dataTree').lrtree({ | ||||
url: top.$.rootUrl + '/EducationalAdministration/Exam_ArrangeExamTermNew/GetClassRoomTree', | url: top.$.rootUrl + '/EducationalAdministration/Exam_ArrangeExamTermNew/GetClassRoomTree', | ||||
nodeClick: function (item) { | nodeClick: function (item) { | ||||
@@ -29,6 +29,7 @@ var bootstrap = function ($, learun) { | |||||
$('#titleinfo').html(item.text); | $('#titleinfo').html(item.text); | ||||
} | } | ||||
}); | }); | ||||
//日期 | |||||
$('.datetime').each(function () { | $('.datetime').each(function () { | ||||
$(this).lrdate({ | $(this).lrdate({ | ||||
dfdata: [ | dfdata: [ | ||||
@@ -65,14 +66,48 @@ var bootstrap = function ($, learun) { | |||||
$('#lr_refresh').on('click', function () { | $('#lr_refresh').on('click', function () { | ||||
location.reload(); | location.reload(); | ||||
}); | }); | ||||
//打印 | |||||
$('#lr_print').on('click', function () { | |||||
learun.layerForm({ | |||||
id: 'TeachingQualityPrint', | |||||
title: '教学质量检测考生统计表', | |||||
url: top.$.rootUrl + '/EducationalAdministration/Exam_ArrangeExamTermNew/TeachingQualityPrint?' + $.param({}), | |||||
width: 1200, | |||||
height: 800, | |||||
btn: null | |||||
}); | |||||
}); | |||||
//学年 | |||||
$('#AcademicYearNo').lrselect({ | $('#AcademicYearNo').lrselect({ | ||||
placeholder: "学年", | placeholder: "学年", | ||||
allowSearch: false, | allowSearch: false, | ||||
url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo', | url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo', | ||||
value: 'value', | value: 'value', | ||||
text: 'text' | |||||
text: 'text', | |||||
select: function (e) { | |||||
console.log(e) | |||||
} | |||||
}); | }); | ||||
//$('#AcademicYearNo').bind('change', function () { | |||||
// ClassRoomNo = '' | |||||
// var AcademicYearNo = ''; | |||||
// var Semester = ''; | |||||
// if ($('#AcademicYearNo').lrselectGet()) { | |||||
// AcademicYearNo = $('#AcademicYearNo').lrselectGet() | |||||
// } | |||||
// if ($('#Semester').lrselectGet()) { | |||||
// var Semester = $('#Semester').lrselectGet(); | |||||
// } | |||||
// if (Semester != '' && AcademicYearNo != '') { | |||||
// $('#dataTree').lrtree({ | |||||
// url: top.$.rootUrl + '/EducationalAdministration/Exam_ArrangeExamTermNew/GetClassRoomTree?AcademicYearNo = ' + AcademicYearNo + ' &Semester=' + Semester, | |||||
// nodeClick: function (item) { | |||||
// ClassRoomNo = item.value; | |||||
// page.search({ ClassRoomNo: item.value, AcademicYearNo: $('#AcademicYearNo').lrselectGet(), Semester: $('#Semester').lrselectGet(), LessonNo: $('#LessonNo').lrselectGet(), EmpNo: $('#EmpNo').lrselectGet() }); | |||||
// } | |||||
// }); | |||||
// } | |||||
//}); | |||||
//学期 | //学期 | ||||
$('#Semester').lrselect({ | $('#Semester').lrselect({ | ||||
placeholder: "学期", | placeholder: "学期", | ||||
@@ -81,27 +116,6 @@ var bootstrap = function ($, learun) { | |||||
value: 'value', | value: 'value', | ||||
text: 'text' | text: 'text' | ||||
}); | }); | ||||
$('#AcademicYearNo').bind('change', function () { | |||||
ClassRoomNo= '' | |||||
var AcademicYearNo = ''; | |||||
var Semester = ''; | |||||
if ($('#AcademicYearNo').lrselectGet()) { | |||||
AcademicYearNo = $('#AcademicYearNo').lrselectGet() | |||||
} | |||||
if ($('#Semester').lrselectGet()) { | |||||
var Semester = $('#Semester').lrselectGet(); | |||||
} | |||||
if (Semester != '' && AcademicYearNo != '') { | |||||
$('#dataTree').lrtree({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/Exam_ArrangeExamTermNew/GetClassRoomTree?AcademicYearNo = ' + AcademicYearNo + ' &Semester=' + Semester, | |||||
nodeClick: function (item) { | |||||
ClassRoomNo = item.value; | |||||
page.search({ ClassRoomNo: item.value, AcademicYearNo: $('#AcademicYearNo').lrselectGet(), Semester: $('#Semester').lrselectGet(), LessonNo: $('#LessonNo').lrselectGet(), EmpNo: $('#EmpNo').lrselectGet() }); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
$('#Semester').bind('change', function () { | $('#Semester').bind('change', function () { | ||||
ClassRoomNo = '' | ClassRoomNo = '' | ||||
var AcademicYearNo = ''; | var AcademicYearNo = ''; | ||||
@@ -0,0 +1,20 @@ | |||||
@{ | |||||
ViewBag.Title = "排考2021新"; | |||||
Layout = "~/Views/Shared/_Index.cshtml"; | |||||
} | |||||
<link href="~/Content/css/print.css" rel="stylesheet" /> | |||||
<div class="pages" id="printPage"> | |||||
@* .page 一个纸张页*@ | |||||
<div class="page"> | |||||
<div class="pageContent"> | |||||
<div style="text-align:right" class="no-print"> | |||||
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>打印</a> | |||||
</div> | |||||
<div class="printTitle"> | |||||
教学质量检测考生统计表 | |||||
</div> | |||||
<div class="lr-layout-body" id="gridtable"></div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/Exam_ArrangeExamTermNew/TeachingQualityPrint.js") |
@@ -0,0 +1,127 @@ | |||||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
* 创建人:超级管理员 | |||||
* 日 期:2021-12-08 12:19 | |||||
* 描 述:排考2021新 | |||||
*/ | |||||
var selectedRow; | |||||
var refreshGirdData; | |||||
var bootstrap = function ($, learun) { | |||||
"use strict"; | |||||
var datebegin = ''; | |||||
var dateend = ''; | |||||
//var ClassNo = ''; | |||||
var ClassRoomNo = ''; | |||||
var page = { | |||||
init: function () { | |||||
page.initGird(); | |||||
page.bind(); | |||||
}, | |||||
bind: function () { | |||||
//打印 | |||||
$('#lr_print').on('click', function () { | |||||
$('#printPage').jqprint() | |||||
}); | |||||
}, | |||||
initGird: function () { | |||||
console.log($('#gridtable').jfGrid) | |||||
$('#gridtable').jfGrid({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/Exam_ArrangeExamTermNew/GetTeachingQualityPageList', | |||||
headData: [ | |||||
{ | |||||
label: '学校', name: 'F_SchoolId', width: 190, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('custmerData', { | |||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'company', | |||||
key: value, | |||||
keyId: 'f_companyid', | |||||
callback: function (_data) { | |||||
callback(_data['f_fullname']); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ label: '学年', name: 'AcademicYearNo', width: 60, align: "left" }, | |||||
{ label: '学期', name: 'Semester', width: 50, align: "left" }, | |||||
{ label: '姓名', name: 'StuName', width: 100, align: "left" }, | |||||
{ label: '学生编号', name: 'StuNo', width: 130, align: "left" }, | |||||
{ label: '学籍号', name: 'StuCode', width: 130, align: "left" }, | |||||
{ | |||||
label: "系所", name: "DeptNo", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('custmerData', { | |||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', | |||||
key: value, | |||||
keyId: 'deptno', | |||||
callback: function (_data) { | |||||
callback(_data['deptname']); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ | |||||
label: "专业", name: "MajorNo", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('custmerData', { | |||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo', | |||||
key: value, | |||||
keyId: 'majorno', | |||||
callback: function (_data) { | |||||
callback(_data['majorname']); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ | |||||
label: "班级", name: "ClassNo", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('custmerData', { | |||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj', | |||||
key: value, | |||||
keyId: 'classno', | |||||
callback: function (_data) { | |||||
callback(_data['classname']); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ | |||||
label: '考试日期', name: 'ExamDate', width: 90, align: "left", | |||||
formatter: function (v) { | |||||
return learun.formatDate(v, "yyyy-MM-dd"); | |||||
} | |||||
}, | |||||
{ label: '考试时间', name: 'ExamTime', width: 90, align: "left" }, | |||||
{ label: '课程编号', name: 'LessonNo', width: 100, align: "left" }, | |||||
{ label: '课程名称', name: 'LessonName', width: 200, align: "left" }, | |||||
{ label: '监考教师编号', name: 'EmpNo', width: 150, align: "left" }, | |||||
{ label: '监考教师姓名', name: 'EmpName', width: 150, align: "left" }, | |||||
{ label: '教室编号', name: 'ClassroomNo', width: 100, align: "left" }, | |||||
{ label: '教室名称', name: 'ClassroomName', width: 100, align: "left" }, | |||||
{ label: '班级名称', name: 'ClassName', width: 100, align: "left" }, | |||||
{ label: '座位编号', name: 'SitNumber', width: 80, aligndd: "left" }, | |||||
{ label: '考号', name: 'kh', width: 140, align: "left", ishide: true }, | |||||
], | |||||
mainId: 'AETId', | |||||
sidx: ' AcademicYearNo desc,Semester desc,ExamDate desc, LessonNo desc,ClassRoomNo desc,ClassRoomNo desc,SitNumber asc ', | |||||
isPage: true, | |||||
rows:10, | |||||
}); | |||||
page.search(); | |||||
}, | |||||
search: function (param) { | |||||
param = param || {}; | |||||
param.StartTime = datebegin; | |||||
param.EndTime = dateend; | |||||
param.ClassRoomNo = ClassRoomNo; | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||||
} | |||||
}; | |||||
refreshGirdData = function () { | |||||
$('#gridtable').jfGridSet('reload'); | |||||
}; | |||||
page.init(); | |||||
} |
@@ -0,0 +1,72 @@ | |||||
body { | |||||
border: none; | |||||
box-sizing: border-box; | |||||
padding: 0 !important; | |||||
zoom: 98%; | |||||
} | |||||
.jfgrid-footer { | |||||
display: none; | |||||
} | |||||
.pages{ | |||||
height:100%; | |||||
box-sizing:border-box; | |||||
overflow-y:scroll; | |||||
position:relative; | |||||
} | |||||
.page::-webkit-scrollbar { | |||||
display: none; | |||||
} | |||||
/*一个page为一页*/ | |||||
.page { | |||||
height: 100%; | |||||
box-sizing: border-box; | |||||
padding: 6mm; | |||||
} | |||||
.pageContent{ | |||||
width:100%; | |||||
max-height:100%; | |||||
overflow:hidden; | |||||
} | |||||
.printTitle { | |||||
color: #333; | |||||
font-size: 20px; | |||||
text-align: center; | |||||
line-height: 32px; | |||||
margin-bottom:10px; | |||||
} | |||||
/*表格最外层*/ | |||||
.jfgrid-layout { | |||||
border:1px solid #ccc; | |||||
box-sizing:border-box; | |||||
padding-bottom:0!important; | |||||
height:auto!important; | |||||
overflow:hidden!important; | |||||
} | |||||
/*表格行选中样式取消*/ | |||||
.jfgrid-data-cell.jfgrid-selected { | |||||
border-bottom: 1px solid #ccc !important; | |||||
border-right: 1px solid #ccc !important; | |||||
background-color: unset !important; | |||||
color: #333!important; | |||||
} | |||||
@media print { | |||||
body { | |||||
height: auto !important; | |||||
} | |||||
.pages { | |||||
height: auto; | |||||
} | |||||
.no-print { | |||||
display: none; | |||||
} | |||||
::-webkit-scrollbar { | |||||
display: none | |||||
} | |||||
.btn { | |||||
display: none; | |||||
} | |||||
} |
@@ -1092,6 +1092,7 @@ | |||||
<Content Include="Areas\EducationalAdministration\Views\Exam_ArrangeExamTermNew\IndexClassRoom.js" /> | <Content Include="Areas\EducationalAdministration\Views\Exam_ArrangeExamTermNew\IndexClassRoom.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\Exam_ArrangeExamTermNew\Index.js" /> | <Content Include="Areas\EducationalAdministration\Views\Exam_ArrangeExamTermNew\Index.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\Exam_ArrangeExamTermNew\IndexForClass.js" /> | <Content Include="Areas\EducationalAdministration\Views\Exam_ArrangeExamTermNew\IndexForClass.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\Exam_ArrangeExamTermNew\TeachingQualityPrint.js" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\Exam_ArrangeExamTermNew\TeachingQualityIndex.js" /> | <Content Include="Areas\EducationalAdministration\Views\Exam_ArrangeExamTermNew\TeachingQualityIndex.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\Exam_ArrangeExamTermNew\IndexItem.js" /> | <Content Include="Areas\EducationalAdministration\Views\Exam_ArrangeExamTermNew\IndexItem.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\Exam_ArrangeExamTermNew\TeachingQualityIndex.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\Exam_ArrangeExamTermNew\TeachingQualityIndex.cshtml" /> | ||||
@@ -1345,6 +1346,7 @@ | |||||
<Content Include="Areas\EducationalAdministration\Views\Exam_ArrangeExamTermNew\IndexClassRoom.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\Exam_ArrangeExamTermNew\IndexClassRoom.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\Direction.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\Direction.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\DirectionPrint.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\DirectionPrint.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\Exam_ArrangeExamTermNew\TeachingQualityPrint.cshtml" /> | |||||
<None Include="Areas\EducationalAdministration\Views\StuInfoBasic\Printxjk.cshtml" /> | <None Include="Areas\EducationalAdministration\Views\StuInfoBasic\Printxjk.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\AllocationClassDC.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\AllocationClassDC.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\StatisticClassIndex.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\StatisticClassIndex.js" /> | ||||
@@ -1912,6 +1914,7 @@ | |||||
<Content Include="Content\css\OnlineRegistrate\Header.html" /> | <Content Include="Content\css\OnlineRegistrate\Header.html" /> | ||||
<Content Include="Content\css\OnlineRegistrate\login.css" /> | <Content Include="Content\css\OnlineRegistrate\login.css" /> | ||||
<Content Include="Content\css\OnlineRegistrate\style.css" /> | <Content Include="Content\css\OnlineRegistrate\style.css" /> | ||||
<Content Include="Content\css\print.css" /> | |||||
<Content Include="Content\css\StuInfoBasic\DirectionPrint.css" /> | <Content Include="Content\css\StuInfoBasic\DirectionPrint.css" /> | ||||
<Content Include="Content\css\StuTransferInfo\QueryScoreIndex.css" /> | <Content Include="Content\css\StuTransferInfo\QueryScoreIndex.css" /> | ||||
<Content Include="Content\css\UserCenter\user.css" /> | <Content Include="Content\css\UserCenter\user.css" /> | ||||