|
|
@ -240,8 +240,8 @@
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// Dataset 변경 이벤트
|
|
|
|
// Dataset 변경 이벤트
|
|
|
|
|
|
|
|
|
|
|
|
$P.control.onDatasetChange = (obj) => {
|
|
|
|
$P.control.onDatasetChange = (obj, option) => {
|
|
|
|
$P.renderList(obj.${infoPrefix}Total);
|
|
|
|
$P.renderList(obj.${infoPrefix}Total, option);
|
|
|
|
|
|
|
|
|
|
|
|
$("#${infoPrefix}Paging--${pageName}").setPagingInfo({
|
|
|
|
$("#${infoPrefix}Paging--${pageName}").setPagingInfo({
|
|
|
|
list: $P.control.dataset
|
|
|
|
list: $P.control.dataset
|
|
|
@ -280,17 +280,13 @@
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// FIXME: 페이징
|
|
|
|
// FIXME: 페이징
|
|
|
|
$P.detailControl.onDatasetChange = (obj) => {
|
|
|
|
$P.detailControl.onDatasetChange = (obj, option) => {
|
|
|
|
$P.renderDetailList(obj.${infoPrefix}Total);
|
|
|
|
$P.renderDetailList(obj.${infoPrefix}Total, option);
|
|
|
|
//debugger;
|
|
|
|
|
|
|
|
$("#${infoPrefix}DetailPaging--${pageName}").setPagingInfo({
|
|
|
|
$("#${infoPrefix}DetailPaging--${pageName}").setPagingInfo({
|
|
|
|
list: $P.detailControl.dataset
|
|
|
|
list: $P.detailControl.dataset
|
|
|
|
, prefix: "${infoPrefix}DetailPaging--${pageName}"
|
|
|
|
, prefix: "${infoPrefix}DetailPaging--${pageName}"
|
|
|
|
, start: obj.${infoPrefix}Start
|
|
|
|
|
|
|
|
//, totalSize: $P.detailControl.dataset.length
|
|
|
|
|
|
|
|
, totalSize: obj.totalCount
|
|
|
|
, totalSize: obj.totalCount
|
|
|
|
, fetchSize: obj.${infoPrefix}Fetch
|
|
|
|
|
|
|
|
, func: "pageObject['${pageName}'].detailControl.load({index})"
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$P.control.tableRenderComplete = true; // dataTables 에 자료 추가 완료
|
|
|
|
$P.control.tableRenderComplete = true; // dataTables 에 자료 추가 완료
|
|
|
@ -304,7 +300,7 @@
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// DataTables에 click, dbclick 이벤트
|
|
|
|
// DataTables에 click, dbclick 이벤트
|
|
|
|
|
|
|
|
|
|
|
|
$P.renderList = (totalSize) => {
|
|
|
|
$P.renderList = (totalSize, option) => {
|
|
|
|
let ${infoPrefix}List = $P.control.dataset;
|
|
|
|
let ${infoPrefix}List = $P.control.dataset;
|
|
|
|
let empty = ${infoPrefix}List.empty;
|
|
|
|
let empty = ${infoPrefix}List.empty;
|
|
|
|
|
|
|
|
|
|
|
@ -338,7 +334,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.renderDetailList = () => {
|
|
|
|
$P.renderDetailList = (totalSize, option) => {
|
|
|
|
let ${infoPrefix}DetailList = $P.detailControl.dataset;
|
|
|
|
let ${infoPrefix}DetailList = $P.detailControl.dataset;
|
|
|
|
let empty = ${infoPrefix}DetailList.empty;
|
|
|
|
let empty = ${infoPrefix}DetailList.empty;
|
|
|
|
|
|
|
|
|
|
|
|