| 
					
				 | 
			
			
				@@ -306,32 +306,63 @@ JpcCrossTabSrv.prototype.createNew = function(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (hasAdHocRow) rowSplitCnt++; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (hasAdHocCol) colSplitCnt++; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 //2.2 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                for (let colIdx = 0; colIdx < colSplitCnt; colIdx++) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    pageStatus[JV.STATUS_CROSS_COL_END] = (colIdx === (colSplitCnt - 1)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    private_resetBandArea(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    counterColRec = orgMaxColRec * colIdx; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    let currentSortedContentSequence = me.sortedContentSequence; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    let currentSortedColSequence = me.sortedColSequence; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    if (hasAdHocCol && colIdx === (colSplitCnt - 1)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        currentSortedColSequence = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        currentSortedContentSequence = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        counterColRec = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (rptTpl[JV.NODE_MAIN_INFO][JV.NODE_PAGE_INFO][JV.PROP_CROSS_DISPLAY_ORDER] === JV.PAGE_ORIENTATION_H_FIRST) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     for (let rowIdx = 0; rowIdx < rowSplitCnt; rowIdx++) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         pageStatus[JV.STATUS_CROSS_ROW_END] = (rowIdx === (rowSplitCnt - 1)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         private_resetBandArea(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        me.pageStatusLst.push(pageStatus.slice(0)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        pageIdx++; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         counterRowRec = orgMaxRowRec * rowIdx; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         let currentSortedRowSequence = me.sortedRowSequence; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        let currentSortedContentSequence = me.sortedContentSequence; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         if (hasAdHocRow && rowIdx === (rowSplitCnt - 1)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             currentSortedRowSequence = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             currentSortedContentSequence = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             counterRowRec = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        private_addTabValue(me.dispValueIdxLst_Row, currentSortedRowSequence, segIdx, counterRowRec, maxRowRec, me.dispSerialIdxLst_Row, me.col_sum_fields_value_total, me.dispSumValueLst_Col); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        private_addTabValue(me.dispValueIdxLst_Col, currentSortedColSequence, segIdx, counterColRec, maxColRec, null, null, null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        private_addContentValue(me.dispValueIdxLst_Content, currentSortedContentSequence, segIdx, counterRowRec, maxRowRec, counterColRec, maxColRec, me.page_seg_map, pageIdx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        for (let colIdx = 0; colIdx < colSplitCnt; colIdx++) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            pageStatus[JV.STATUS_CROSS_COL_END] = (colIdx === (colSplitCnt - 1)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            private_resetBandArea(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            counterColRec = orgMaxColRec * colIdx; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            let currentSortedColSequence = me.sortedColSequence; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            if (hasAdHocCol && colIdx === (colSplitCnt - 1)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                currentSortedColSequence = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                currentSortedContentSequence = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                counterColRec = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            me.pageStatusLst.push(pageStatus.slice(0)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            pageIdx++; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            private_addTabValue(me.dispValueIdxLst_Row, currentSortedRowSequence, segIdx, counterRowRec, maxRowRec, me.dispSerialIdxLst_Row, me.col_sum_fields_value_total, me.dispSumValueLst_Col); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            private_addTabValue(me.dispValueIdxLst_Col, currentSortedColSequence, segIdx, counterColRec, maxColRec, null, null, null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            private_addContentValue(me.dispValueIdxLst_Content, currentSortedContentSequence, segIdx, counterRowRec, maxRowRec, counterColRec, maxColRec, me.page_seg_map, pageIdx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    for (let colIdx = 0; colIdx < colSplitCnt; colIdx++) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        pageStatus[JV.STATUS_CROSS_COL_END] = (colIdx === (colSplitCnt - 1)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        private_resetBandArea(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        counterColRec = orgMaxColRec * colIdx; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        let currentSortedContentSequence = me.sortedContentSequence; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        let currentSortedColSequence = me.sortedColSequence; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        if (hasAdHocCol && colIdx === (colSplitCnt - 1)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            currentSortedColSequence = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            currentSortedContentSequence = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            counterColRec = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        for (let rowIdx = 0; rowIdx < rowSplitCnt; rowIdx++) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            pageStatus[JV.STATUS_CROSS_ROW_END] = (rowIdx === (rowSplitCnt - 1)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            private_resetBandArea(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            me.pageStatusLst.push(pageStatus.slice(0)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            pageIdx++; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            counterRowRec = orgMaxRowRec * rowIdx; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            let currentSortedRowSequence = me.sortedRowSequence; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            if (hasAdHocRow && rowIdx === (rowSplitCnt - 1)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                currentSortedRowSequence = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                currentSortedContentSequence = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                counterRowRec = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            private_addTabValue(me.dispValueIdxLst_Row, currentSortedRowSequence, segIdx, counterRowRec, maxRowRec, me.dispSerialIdxLst_Row, me.col_sum_fields_value_total, me.dispSumValueLst_Col); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            private_addTabValue(me.dispValueIdxLst_Col, currentSortedColSequence, segIdx, counterColRec, maxColRec, null, null, null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            private_addContentValue(me.dispValueIdxLst_Content, currentSortedContentSequence, segIdx, counterRowRec, maxRowRec, counterColRec, maxColRec, me.page_seg_map, pageIdx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 JpcCrossTabHelper.initialPageStatus(pageStatus); 
			 |