|
|
|
|
@ -312,11 +312,14 @@
|
|
|
|
|
*/
|
|
|
|
|
onCheckAll: function(ev) {
|
|
|
|
|
var self = this;
|
|
|
|
|
this.selectedRows = [];
|
|
|
|
|
|
|
|
|
|
// 다른페이지에서 선택한 값도 유지하기 위해 주석
|
|
|
|
|
//this.selectedRows = [];
|
|
|
|
|
|
|
|
|
|
// 현재 페이지의 모든 행 데이터 추가
|
|
|
|
|
this.grid.instance.getData().forEach(function(row) {
|
|
|
|
|
self.selectedRows.push(row);
|
|
|
|
|
this.grid.instance.getData().forEach(function(rowData) {
|
|
|
|
|
if (!self.selectedRows.some(row => row.exmnrId === rowData.exmnrId)) {
|
|
|
|
|
self.selectedRows.push(rowData);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
@ -324,7 +327,13 @@
|
|
|
|
|
* 전체 체크 해제 이벤트
|
|
|
|
|
*/
|
|
|
|
|
onUncheckAll: function(ev) {
|
|
|
|
|
this.selectedRows = [];
|
|
|
|
|
var self = this;
|
|
|
|
|
var currentData = this.grid.instance.getData();
|
|
|
|
|
this.selectedRows = this.selectedRows.filter(function (selectedRow) {
|
|
|
|
|
return !currentData.some(function (currentRow) {
|
|
|
|
|
return currentRow.exmnrId === selectedRow.exmnrId;
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|