|
|
@@ -72,31 +72,39 @@ var bootstrap = function ($, learun) { |
|
|
|
]; |
|
|
|
|
|
|
|
headData = [ |
|
|
|
{ label: "职工编号/学号", name: "account", width: 120, align: "left" }, |
|
|
|
{ label: "职工编号", name: "account", width: 120, align: "left" }, |
|
|
|
{ label: "姓名", name: "name", width: 120, align: "left" }, |
|
|
|
{ |
|
|
|
label: "部门/班级", name: "departmentid", width: 100, align: "left", |
|
|
|
label: "部门", name: "departmentid", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
if (!!row.classno) { |
|
|
|
learun.clientdata.getAsync('custmerData', |
|
|
|
{ |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj', |
|
|
|
key: row.classno, |
|
|
|
keyId: 'classno', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['classname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', |
|
|
|
key: value, |
|
|
|
keyId: 'id', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['name']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', |
|
|
|
key: value, |
|
|
|
keyId: 'id', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['name']); |
|
|
|
} |
|
|
|
}); |
|
|
|
//if (!!row.classno) { |
|
|
|
// learun.clientdata.getAsync('custmerData', |
|
|
|
// { |
|
|
|
// url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj', |
|
|
|
// key: row.classno, |
|
|
|
// keyId: 'classno', |
|
|
|
// callback: function (_data) { |
|
|
|
// callback(_data['classname']); |
|
|
|
// } |
|
|
|
// }); |
|
|
|
//} else { |
|
|
|
// learun.clientdata.getAsync('custmerData', { |
|
|
|
// url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', |
|
|
|
// key: value, |
|
|
|
// keyId: 'id', |
|
|
|
// callback: function (_data) { |
|
|
|
// callback(_data['name']); |
|
|
|
// } |
|
|
|
// }); |
|
|
|
//} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: StrYearMonth, name: "sumnum", width: 100, align: "left" }, |
|
|
@@ -160,7 +168,7 @@ var bootstrap = function ($, learun) { |
|
|
|
} else { |
|
|
|
param.Month = date.getMonth() + 1; |
|
|
|
} |
|
|
|
//param.SqlParameter = " and ((classno is null or len(classno)=0) and (departmentid is not null or len(departmentid)>0)) "; |
|
|
|
param.SqlParameter = " and F_Description='教师' "; |
|
|
|
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); |
|
|
|
} |
|
|
|
}; |
|
|
|