|
|
@@ -0,0 +1,276 @@ |
|
|
|
var refreshGirdData; |
|
|
|
var StuId = request('keyValue'); |
|
|
|
var StuNo = request('StuNo'); |
|
|
|
var tempdatra = new Array(); |
|
|
|
var list = []; |
|
|
|
var bootstrap = function ($, learun) { |
|
|
|
"use strict"; |
|
|
|
var page = { |
|
|
|
init: function () { |
|
|
|
page.initGird();; |
|
|
|
page.bind(); |
|
|
|
}, |
|
|
|
bind: function () { |
|
|
|
// 刷新 |
|
|
|
$('#lr_refresh').on('click', function () { |
|
|
|
location.reload(); |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 初始化列表 |
|
|
|
initGird: function () { |
|
|
|
$('#gridtable').jfGrid({ |
|
|
|
url: top.$.rootUrl + '/EducationalAdministration/StuScoreTran/GetPageList', |
|
|
|
headData: [ |
|
|
|
{ label: '学号', name: 'StuNo', width: 150, align: "left" }, |
|
|
|
{ label: '姓名', name: 'StuName', width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "性别", name: "GenderNo", width: 40, align: "left", |
|
|
|
formatter: function (cellvalue) { |
|
|
|
return cellvalue == true ? "男" : "女"; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
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: "Grade", width: 40, align: "left" }, |
|
|
|
{ label: '学年', name: 'AcademicYearNo', width: 50, align: "left" }, |
|
|
|
{ label: '学期', name: 'Semester', width: 40, align: "left" }, |
|
|
|
{ |
|
|
|
label: '课程名称', name: 'LessonNo', width: 150, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'LessonInfo', |
|
|
|
key: value, |
|
|
|
keyId: 'lessonno', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['lessonname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '平时成绩', name: 'OrdinaryScore', width: 80, align: "left" |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '期中成绩', name: 'TermInScore', width: 80, align: "left" |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '期末成绩', name: 'TermEndScore', width: 80, align: "left" |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '其他成绩', name: 'OtherScore', width: 80, align: "left" |
|
|
|
}, |
|
|
|
{ label: '总成绩', name: 'Score', width: 80, align: "left" }, |
|
|
|
{ |
|
|
|
label: '备注', name: 'Remark', width: 100, align: "left" |
|
|
|
} |
|
|
|
], |
|
|
|
mainId: 'ScoreId', |
|
|
|
isPage: true |
|
|
|
}); |
|
|
|
$('#gridtableNotPass').jfGrid({ |
|
|
|
url: top.$.rootUrl + '/EducationalAdministration/StuScoreNotPassTran/GetPageList', |
|
|
|
headData: [ |
|
|
|
{ label: '学号', name: 'StuNo', width: 150, align: "left" }, |
|
|
|
{ label: '姓名', name: 'StuName', width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "性别", name: "GenderNo", width: 40, align: "left", |
|
|
|
formatter: function (cellvalue) { |
|
|
|
return cellvalue == true ? "男" : "女"; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
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: "Grade", width: 40, align: "left" }, |
|
|
|
{ label: '学年', name: 'AcademicYearNo', width: 50, align: "left" }, |
|
|
|
{ label: '学期', name: 'Semester', width: 40, align: "left" }, |
|
|
|
{ |
|
|
|
label: '课程名称', name: 'LessonNo', width: 150, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'LessonInfo', |
|
|
|
key: value, |
|
|
|
keyId: 'lessonno', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['lessonname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '期末成绩', name: 'TermEndScore', width: 80, align: "left" |
|
|
|
}, |
|
|
|
{ label: '补考成绩', name: 'Score', width: 80, align: "left" }, |
|
|
|
{ |
|
|
|
label: '备注', name: 'Remark', width: 100, align: "left" |
|
|
|
} |
|
|
|
], |
|
|
|
mainId: 'ScoreId', |
|
|
|
isPage: true |
|
|
|
}); |
|
|
|
|
|
|
|
$('#gridtableNotPossTwo').jfGrid({ |
|
|
|
url: top.$.rootUrl + '/EducationalAdministration/StuScoreNotPassTwoTran/GetPageList', |
|
|
|
headData: [ |
|
|
|
{ label: '学号', name: 'StuNo', width: 150, align: "left" }, |
|
|
|
{ label: '姓名', name: 'StuName', width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "性别", name: "GenderNo", width: 40, align: "left", |
|
|
|
formatter: function (cellvalue) { |
|
|
|
return cellvalue == true ? "男" : "女"; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
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: "Grade", width: 40, align: "left" }, |
|
|
|
{ label: '学年', name: 'AcademicYearNo', width: 50, align: "left" }, |
|
|
|
{ label: '学期', name: 'Semester', width: 40, align: "left" }, |
|
|
|
{ |
|
|
|
label: '课程名称', name: 'LessonNo', width: 150, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'LessonInfo', |
|
|
|
key: value, |
|
|
|
keyId: 'lessonno', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['lessonname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '期末成绩', name: 'TermEndScore', width: 80, align: "left" |
|
|
|
}, |
|
|
|
{ label: '二次补考成绩', name: 'Score', width: 80, align: "left" }, |
|
|
|
{ |
|
|
|
label: '备注', name: 'Remark', width: 100, align: "left" |
|
|
|
} |
|
|
|
], |
|
|
|
mainId: 'ScoreId', |
|
|
|
isPage: true |
|
|
|
}); |
|
|
|
page.search(); |
|
|
|
}, |
|
|
|
search: function (param) { |
|
|
|
param = param || {}; |
|
|
|
param.StuNo = StuNo; |
|
|
|
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); |
|
|
|
$('#gridtableNotPass').jfGridSet('reload', { queryJson: JSON.stringify(param) }); |
|
|
|
$('#gridtableNotPossTwo').jfGridSet('reload', { queryJson: JSON.stringify(param) }); |
|
|
|
} |
|
|
|
}; |
|
|
|
refreshGirdData = function () { |
|
|
|
page.search(); |
|
|
|
}; |
|
|
|
page.init(); |
|
|
|
} |