@@ -54,6 +54,21 @@ var bootstrap = function ($, learun) {
$('#lr_refresh').on('click', function () {
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: '请选择课程' });
$('#ClassRoomNo').lrDataSourceSelect({ code: 'ClassRoomInfo', value: 'classroomno', text: 'classroomname', placeholder: '请选择教室' });
$('#EmpNo').lrDataSourceSelect({ code: 'EmpInfo', value: 'empno', text: 'empname', placeholder: '请选择教师' });
@@ -64,7 +79,12 @@ var bootstrap = function ($, learun) {
headData: [
{ label: '学年', name: 'AcademicYearNo', width: 70, 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: 'LessonNo', width: 100, align: "left" },
{ label: '课程名称', name: 'LessonName', width: 200, align: "left" },
@@ -78,7 +98,7 @@ var bootstrap = function ($, learun) {
{ label: '座位编号', name: 'SitNumber', width: 100, aligndd: "left" }
],
mainId: 'AETId',
sidx: 'ExamDate a sc, LessonNo asc,ClassRoomNo asc,ClassNo asc,SitNumber asc',
sidx: 'ExamDate de sc, LessonNo asc,ClassRoomNo asc,ClassNo asc,SitNumber asc',
isPage: true
});
page.search();
@@ -88,8 +108,7 @@ var bootstrap = function ($, learun) {
param.StartTime = datebegin;
param.EndTime = dateend;
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) });
}
};