var url = CMS_SystemConfig.VirtualDirectoryPath + "/ChangeTotal/Edit";
var mnu = "";
//加载
$(function () {
mnu = $.SystemGeneral.getUrlParam("MNU");
})
//刷新
function reload() {
$("#dgChangeTotalList").cmsXDataTable("load", $.getDataGridParams("dgChangeTotalList"));
}
//获取选中的数据All
function validChooseAll() {
var d = [];
$.each($("#dgChangeTotalList").cmsXDataTable("getSelections"), function (index) {
d.push(this);
});
return d;
}
//获取选中的数据
function validChoose() {
var d = [];
$.each($("#dgChangeTotalList").cmsXDataTable("getSelections"), function (index) {
d.push(this.CollegeID);
});
return d;
}
//设置列颜色为红色
function SetRedColumn(index, row, value) {
if (value > 0) {
return " " + value + "";
} else {
return " " + value + "";
}
}
//Excel导出
function ChangeTotal_Export() {
$("#formQuery").submit();
}
//联动查询
function queryCampus(data) {
var campusID = $("#CampusDropdown").combogridX("getValue");
var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@|'})";
$("#CollegeDropdown").combogridX("reload", eval(jsonString));
reload();
}
function queryCollege(data) {
var campusID = $("#CampusDropdown").combogridX("getValue");
var collegeID = $("#CollegeDropdown").combogridX("getValue");
var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@|";
jsonString += "CollegeDropdown|*|" + collegeID + "|@|'})";
$("#CollegeDropdown").combogridX("reload", eval(jsonString));
reload();
}