|
|
@@ -40,7 +40,10 @@ var bootstrap = function ($, learun) { |
|
|
|
url: top.$.rootUrl + '/EducationalAdministration/ElectiveMajor/Index?OLPOEId=' + keyValue, |
|
|
|
width: 1000, |
|
|
|
height: 700, |
|
|
|
btn: null |
|
|
|
//btn: null |
|
|
|
callBack: function (id) { |
|
|
|
return top[id].acceptClick(refreshGirdData); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
@@ -222,18 +225,29 @@ var bootstrap = function ($, learun) { |
|
|
|
{ label: "通过人数", name: "StuNum", width: 60, align: "left" }, |
|
|
|
{ label: "已报人数(预)", name: "StuNumOfApplyPre", width: 80, align: "left" }, |
|
|
|
{ label: "通过人数(预)", name: "StuNumPre", width: 80, align: "left" }, |
|
|
|
//{ |
|
|
|
// label: "选课专业", name: "ElectiveMajorList", width: 150, align: "left",formatter: function (cellvalue,row) { |
|
|
|
// var str = ""; |
|
|
|
// for (var i = 0; i < row.ElectiveMajorList.length; i++) { |
|
|
|
// str += row.ElectiveMajorList[i].Grade + "级" + row.ElectiveMajorList[i].MajorName; |
|
|
|
// if (i != row.ElectiveMajorList.length - 1) { |
|
|
|
// str += ","; |
|
|
|
// } |
|
|
|
// } |
|
|
|
// return str; |
|
|
|
// } |
|
|
|
//} |
|
|
|
{ |
|
|
|
label: "是否已选专业", name: "IsElectiveMajor", width: 100, align: "left", formatter: function (cellvalue,row) { |
|
|
|
if (!!row.ElectiveMajorList && row.ElectiveMajorList.length > 0) { |
|
|
|
return "<span class=\"label label-success\">是</span>"; |
|
|
|
} else { |
|
|
|
return "<span class=\"label label-default\">否</span>"; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "选课专业", name: "ElectiveMajorList", width: 150, align: "left", formatter: function (cellvalue, row) { |
|
|
|
var str = ""; |
|
|
|
if (!!cellvalue && cellvalue.length > 0) { |
|
|
|
for (var i = 0; i < cellvalue.length; i++) { |
|
|
|
str += cellvalue[i].Grade + "级" + cellvalue[i].MajorName; |
|
|
|
if (i != cellvalue.length - 1) { |
|
|
|
str += ","; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return str; |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
mainId: 'Id', |
|
|
|
isPage: true, |
|
|
|