| 
					
				 | 
			
			
				@@ -520,6 +520,7 @@ JpcFlowTabSrv.prototype.createNew = function() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             rst = me.segments.length; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // const pageStatus = [true, true, false, true, true, true, false, false]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             const pageStatus = [true, true, false, true, true, true, true, true]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            const grpPageInfo = {}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             for (let segIdx = 0; segIdx < me.segments.length; segIdx++) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (segIdx === me.segments.length - 1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     pageStatus[JV.STATUS_REPORT_END] = true; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -527,15 +528,23 @@ JpcFlowTabSrv.prototype.createNew = function() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (segIdx > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     pageStatus[JV.STATUS_REPORT_START] = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                const grpSeqInfo = (me.group_node_info) ? me.group_node_info[segIdx] : null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                const grpRecAmt = (grpSeqInfo) ? (grpSeqInfo.length * me.group_lines_amt) : 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                grpPageInfo[JV.PROP_SEG_GRP_IDX] = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                grpPageInfo[JV.PROP_INSERTED_GRP_REC] = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                grpPageInfo[JV.PROP_PRE_ADD_GRP_REC_INFO] = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                grpPageInfo[JV.PROP_GRP_LINES] = me.group_lines_amt; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 JpcBandHelper.setBandArea(bands, rptTpl, pageStatus, !me.isEx, me.isEx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 maxRowRec = JpcFlowTabHelper.getMaxRowsPerPage(bands, rptTpl, me.isEx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                // console.log('presetup maxRowRec: ' + maxRowRec); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                // console.log('presetup me.segments[segIdx].length: ' + me.segments[segIdx].length); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                me.setupAutoHeightData(bands, segIdx, rptTpl, dataObj, $CURRENT_RPT, defProperties, outputType); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                let adHocAutoHeightAmt = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                for (let loop = 0; loop < me.auto_height_info[segIdx].length; loop++) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    adHocAutoHeightAmt += (me.auto_height_info[segIdx][loop] - 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 me.pageStatusLst.push(pageStatus.slice(0)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 pageIdx++; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                const grpSeqInfo = (me.group_node_info) ? me.group_node_info[segIdx] : null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                const rowAmt = Math.max(maxRowRec, me.segments[segIdx].length); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                private_addPageValue(me.dispValueIdxLst, me.segments[segIdx], grpSeqInfo, 0, rowAmt, me.page_seg_map, segIdx, pageIdx, null, false, me.auto_height_info, 0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                const rowAmt = Math.max(maxRowRec, me.segments[segIdx].length + adHocAutoHeightAmt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                private_addPageValue(me.dispValueIdxLst, me.segments[segIdx], grpSeqInfo, 0, rowAmt, me.page_seg_map, segIdx, pageIdx, grpPageInfo, false, me.auto_height_info, 0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // 目前不支持flowTabEx 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } else { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -809,7 +818,11 @@ JpcFlowTabSrv.prototype.createNew = function() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // 2. then reset the band height 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             const tab = rptTpl[JV.NODE_FLOW_INFO][JV.NODE_FLOW_CONTENT]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             const flowContentBand = bands[tab[JV.PROP_BAND_NAME]]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            const rowAmt = Math.max(maxRowRec, me.segments[segIdx].length); // 如不满一页,则需要填充满一页 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            let adHocAutoHeightAmt = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            for (let loop = 0; loop < me.auto_height_info[segIdx].length; loop++) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                adHocAutoHeightAmt += (me.auto_height_info[segIdx][loop] - 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            const rowAmt = Math.max(maxRowRec, me.segments[segIdx].length + adHocAutoHeightAmt); // 如不满一页,则需要填充满一页 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             const actH = JpcFlowTabHelper.getActualContentAreaHeight(bands, rptTpl, me.segments, rowAmt, page, me.isEx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // console.log('page:' + page); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // console.log('maxRowRec:' + maxRowRec); 
			 |