var url = CMS_SystemConfig.VirtualDirectoryPath + "/PersonalScore/Edit";
var mnu = "";
//加载
$(function () {
mnu = $.SystemGeneral.getUrlParam("MNU");
})
//获取选中的数据
function validChoose() {
var d = [];
$.each($("#dgCourseScheduleSettingList").cmsXDataTable("getSelections"), function (index) {
d.push(this.SubmitedScoreID);
});
return d;
}
function reload() {
$("#display_search_list").css('display', 'none');
var userID = $("#StudentsComboGrid").combogridX("getValue");
$.post(CMS_SystemConfig.VirtualDirectoryPath + '/PersonalScore/CoursematerialList', { userID: userID }, function (data) {
if (data.length > 0) {
var count = data[0].ListStarttermID.length;
var width = " 20%";
var a = "100%";
if (count > 5) {
var height = 0;
a = 100 + (count - 5) * 20;
width = 100 / count + "%";
}
$("#search_list").html("");
StudentCoursematerialtable(data[0]);
var html = "
";
for (var i = 0; i < data[0].ListStarttermID.length; i++) {
//PS:同一课程、可能开课学期不同~
var listCourseGradeView = $.grep(data[0].ListCourseGradeView, function (x) { return (x.StarttermID == data[0].ListStarttermID[i]); });
html += "
";
html += "
";
html += "
" + listCourseGradeView[0].StarttermName + "
";
html += "
";
html += "
";
html += "
课程名称
";
html += "
总成绩
";
html += "
学分
";
html += "
";
for (var j = 0; j < listCourseGradeView.length; j++) {
var color = "'" + listCourseGradeView[j].CourseTypeColour + "'"
html += "
";
if (listCourseGradeView[j].Club == null)
{
html += "
";
$("#search_list").html(html);
}
else {
StudentCoursematerialtable(data[0]);
var html = "
选择的学生成绩库中无成绩,请检查。
"
$("#search_list").html(html);
}
});
}
function reloadBack() {
$("#display_search_list").css('display', 'none');
var userID = $("#StudentsComboGrid").combogridX("getValue");
$.post(CMS_SystemConfig.VirtualDirectoryPath + '/PersonalScore/CoursematerialList', { userID: userID }, function (data) {
if (data.length > 0) {
var count = data[0].ListStarttermID.length;
var width = " 20%";
var a = "100%";
if (count > 5) {
var height = 0;
a = 100 + (count - 5) * 20;
width = 100 / count + "%";
}
$("#search_list").html("");
StudentCoursematerialtable(data[0]);
var html = "
";
for (var i = 0; i < data[0].ListStarttermID.length; i++) {
//PS:同一课程、可能开课学期不同~
var listCourseGradeView = $.grep(data[0].ListCourseGradeView, function (x) { return (x.StarttermID == data[0].ListStarttermID[i]); });
html += "
";
html += "
";
html += "
" + listCourseGradeView[0].StarttermName + "
";
html += "
";
html += "
";
html += "
课程名称
";
html += "
总成绩
";
html += "
学分
";
html += "
";
for (var j = 0; j < listCourseGradeView.length; j++) {
var color = "'" + listCourseGradeView[j].CourseTypeColour + "'"
html += "
";
if (listCourseGradeView[j].Club == null) {
html += "