@@ -7,6 +7,12 @@ | |||||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | <div class="lr-layout-wrap lr-layout-wrap-notitle "> | ||||
<div class="lr-layout-tool"> | <div class="lr-layout-tool"> | ||||
<div class="lr-layout-tool-left"> | <div class="lr-layout-tool-left"> | ||||
<div class="lr-layout-tool-item"> | |||||
<div id="AcademicYearNo" type="lrselect" class="lr-select" style="width: 200px;"></div> | |||||
</div> | |||||
<div class="lr-layout-tool-item"> | |||||
<div id="Semester" type="lrselect" class="lr-select" style="width: 200px;"></div> | |||||
</div> | |||||
<div class="lr-layout-tool-item"> | <div class="lr-layout-tool-item"> | ||||
<div id="LessonNo" type="lrselect" class="lr-select" style="width: 200px;"></div> | <div id="LessonNo" type="lrselect" class="lr-select" style="width: 200px;"></div> | ||||
</div> | </div> | ||||
@@ -54,6 +54,21 @@ var bootstrap = function ($, learun) { | |||||
$('#lr_refresh').on('click', function () { | $('#lr_refresh').on('click', function () { | ||||
location.reload(); | location.reload(); | ||||
}); | }); | ||||
$('#AcademicYearNo').lrselect({ | |||||
placeholder: "学年", | |||||
allowSearch: false, | |||||
url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo', | |||||
value: 'value', | |||||
text: 'text' | |||||
}); | |||||
//学期 | |||||
$('#Semester').lrselect({ | |||||
placeholder: "学期", | |||||
allowSearch: false, | |||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData', | |||||
value: 'value', | |||||
text: 'text' | |||||
}); | |||||
$('#LessonNo').lrDataSourceSelect({ code: 'LessonInfo', value: 'lessonno', text: 'lessonname', placeholder: '请选择课程' }); | $('#LessonNo').lrDataSourceSelect({ code: 'LessonInfo', value: 'lessonno', text: 'lessonname', placeholder: '请选择课程' }); | ||||
$('#ClassRoomNo').lrDataSourceSelect({ code: 'ClassRoomInfo', value: 'classroomno', text: 'classroomname', placeholder: '请选择教室' }); | $('#ClassRoomNo').lrDataSourceSelect({ code: 'ClassRoomInfo', value: 'classroomno', text: 'classroomname', placeholder: '请选择教室' }); | ||||
$('#EmpNo').lrDataSourceSelect({ code: 'EmpInfo', value: 'empno', text: 'empname', placeholder: '请选择教师' }); | $('#EmpNo').lrDataSourceSelect({ code: 'EmpInfo', value: 'empno', text: 'empname', placeholder: '请选择教师' }); | ||||
@@ -64,7 +79,12 @@ var bootstrap = function ($, learun) { | |||||
headData: [ | headData: [ | ||||
{ label: '学年', name: 'AcademicYearNo', width: 70, align: "left" }, | { label: '学年', name: 'AcademicYearNo', width: 70, align: "left" }, | ||||
{ label: '学期', name: 'Semester', width: 60, align: "left" }, | { label: '学期', name: 'Semester', width: 60, align: "left" }, | ||||
{ label: '考试日期', name: 'ExamDate', width: 120, align: "left" }, | |||||
{ | |||||
label: '考试日期', name: 'ExamDate', width: 120, align: "left" | |||||
, formatter: function (v) { | |||||
return learun.formatDate(v, "yyyy-MM-dd"); | |||||
} | |||||
}, | |||||
{ label: '考试时间', name: 'ExamTime', width: 120, align: "left" }, | { label: '考试时间', name: 'ExamTime', width: 120, align: "left" }, | ||||
{ label: '课程编号', name: 'LessonNo', width: 100, align: "left" }, | { label: '课程编号', name: 'LessonNo', width: 100, align: "left" }, | ||||
{ label: '课程名称', name: 'LessonName', width: 200, align: "left" }, | { label: '课程名称', name: 'LessonName', width: 200, align: "left" }, | ||||
@@ -78,7 +98,7 @@ var bootstrap = function ($, learun) { | |||||
{ label: '座位编号', name: 'SitNumber', width: 100, aligndd: "left" } | { label: '座位编号', name: 'SitNumber', width: 100, aligndd: "left" } | ||||
], | ], | ||||
mainId: 'AETId', | mainId: 'AETId', | ||||
sidx: 'ExamDate asc, LessonNo asc,ClassRoomNo asc,ClassNo asc,SitNumber asc', | |||||
sidx: 'ExamDate desc, LessonNo asc,ClassRoomNo asc,ClassNo asc,SitNumber asc', | |||||
isPage: true | isPage: true | ||||
}); | }); | ||||
page.search(); | page.search(); | ||||
@@ -88,8 +108,7 @@ var bootstrap = function ($, learun) { | |||||
param.StartTime = datebegin; | param.StartTime = datebegin; | ||||
param.EndTime = dateend; | param.EndTime = dateend; | ||||
var loginInfo = learun.clientdata.get(['userinfo']); | var loginInfo = learun.clientdata.get(['userinfo']); | ||||
param.StuNo = loginInfo.account; | |||||
console.log(param.StuNo); | |||||
param.StuNo = loginInfo.account; | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | ||||
} | } | ||||
}; | }; | ||||
@@ -7,6 +7,12 @@ | |||||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | <div class="lr-layout-wrap lr-layout-wrap-notitle "> | ||||
<div class="lr-layout-tool"> | <div class="lr-layout-tool"> | ||||
<div class="lr-layout-tool-left"> | <div class="lr-layout-tool-left"> | ||||
<div class="lr-layout-tool-item"> | |||||
<div id="AcademicYearNo" type="lrselect" class="lr-select" style="width: 200px;"></div> | |||||
</div> | |||||
<div class="lr-layout-tool-item"> | |||||
<div id="Semester" type="lrselect" class="lr-select" style="width: 200px;"></div> | |||||
</div> | |||||
<div class="lr-layout-tool-item"> | <div class="lr-layout-tool-item"> | ||||
<div id="LessonNo" type="lrselect" class="lr-select" style="width: 200px;"></div> | <div id="LessonNo" type="lrselect" class="lr-select" style="width: 200px;"></div> | ||||
</div> | </div> | ||||
@@ -75,6 +75,8 @@ var bootstrap = function ($, learun) { | |||||
$('#gridtable').lrAuthorizeJfGrid({ | $('#gridtable').lrAuthorizeJfGrid({ | ||||
url: top.$.rootUrl + '/EducationalAdministration/Exam_ArrangeExamTermNew/GetPageList', | url: top.$.rootUrl + '/EducationalAdministration/Exam_ArrangeExamTermNew/GetPageList', | ||||
headData: [ | headData: [ | ||||
{ label: '学年', name: 'AcademicYearNo', width: 70, align: "left" }, | |||||
{ label: '学期', name: 'Semester', width: 60, align: "left" }, | |||||
{ | { | ||||
label: '考试日期', name: 'ExamDate', width: 200, align: "left", formatter: function (v) { | label: '考试日期', name: 'ExamDate', width: 200, align: "left", formatter: function (v) { | ||||
return learun.formatDate(v, "yyyy-MM-dd"); | return learun.formatDate(v, "yyyy-MM-dd"); | ||||
@@ -89,7 +91,7 @@ var bootstrap = function ($, learun) { | |||||
{ label: '教室名称', name: 'ClassroomName', width: 200, align: "left" } | { label: '教室名称', name: 'ClassroomName', width: 200, align: "left" } | ||||
], | ], | ||||
mainId: 'EPIId', | mainId: 'EPIId', | ||||
sidx: 'ExamDate asc,ExamTime asc,LessonNo asc,ClassroomNo asc', | |||||
sidx: 'ExamDate desc,ExamTime asc,LessonNo asc,ClassroomNo asc', | |||||
isPage: true | isPage: true | ||||
}); | }); | ||||
page.search(); | page.search(); | ||||
@@ -100,7 +102,6 @@ var bootstrap = function ($, learun) { | |||||
param.EndTime = dateend; | param.EndTime = dateend; | ||||
var loginInfo = learun.clientdata.get(['userinfo']); | var loginInfo = learun.clientdata.get(['userinfo']); | ||||
param.EmpNo = loginInfo.account; | param.EmpNo = loginInfo.account; | ||||
console.log(param.EmpNo,111); | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | ||||
} | } | ||||
}; | }; | ||||
@@ -11,7 +11,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// 日 期:2022-04-22 16:00 | /// 日 期:2022-04-22 16:00 | ||||
/// 描 述:排考安排 | /// 描 述:排考安排 | ||||
/// </summary> | /// </summary> | ||||
public class Exam_ArrangeExamTermNewEntity | |||||
public class Exam_ArrangeExamTermNewEntity | |||||
{ | { | ||||
#region 实体成员 | #region 实体成员 | ||||
/// <summary> | /// <summary> | ||||
@@ -89,6 +89,10 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
} | } | ||||
#endregion | #endregion | ||||
#region 扩展字段 | #region 扩展字段 | ||||
[NotMapped] | |||||
public string AcademicYearNo { get; set; } | |||||
[NotMapped] | |||||
public string Semester { get; set; } | |||||
#endregion | #endregion | ||||
} | } | ||||
} | } | ||||
@@ -180,18 +180,8 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | { | ||||
var strSql = new StringBuilder(); | var strSql = new StringBuilder(); | ||||
strSql.Append("SELECT "); | strSql.Append("SELECT "); | ||||
strSql.Append(@" | |||||
t.EPIId, | |||||
t.LessonNo, | |||||
t.LessonName, | |||||
t.ExamDate, | |||||
t.ExamTime, | |||||
t.EmpNo, | |||||
t.EmpName, | |||||
t.ClassroomNo, | |||||
t.ClassroomName | |||||
"); | |||||
strSql.Append(" FROM Exam_ArrangeExamTermNew t "); | |||||
strSql.Append(@" t.*,e.AcademicYearNo,e.Semester "); | |||||
strSql.Append(" FROM Exam_ArrangeExamTermNew t join Exam_ExamPlan e on t.EPId=e.EPId "); | |||||
strSql.Append(" WHERE 1=1 "); | strSql.Append(" WHERE 1=1 "); | ||||
var queryParam = queryJson.ToJObject(); | var queryParam = queryJson.ToJObject(); | ||||
// 虚拟参数 | // 虚拟参数 | ||||
@@ -231,6 +221,10 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
dp.Add("ClassroomName", "%" + queryParam["ClassroomName"].ToString() + "%", DbType.String); | dp.Add("ClassroomName", "%" + queryParam["ClassroomName"].ToString() + "%", DbType.String); | ||||
strSql.Append(" AND t.ClassroomName Like @ClassroomName "); | strSql.Append(" AND t.ClassroomName Like @ClassroomName "); | ||||
} | } | ||||
if (!queryParam["StartTime"].IsEmpty() && !queryParam["EndTime"].IsEmpty()) | |||||
{ | |||||
strSql.Append(" AND ( ExamDate >= '" + queryParam["StartTime"].ToString() + "' AND ExamDate <= '" + queryParam["EndTime"].ToString() + "' ) "); | |||||
} | |||||
return this.BaseRepository("CollegeMIS").FindList<Exam_ArrangeExamTermNewEntity>(strSql.ToString(), dp, pagination); | return this.BaseRepository("CollegeMIS").FindList<Exam_ArrangeExamTermNewEntity>(strSql.ToString(), dp, pagination); | ||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||