| 
					
				 | 
			
			
				@@ -28,53 +28,7 @@ const JpcDiscreteHelper = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         let flexibleRefField = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         for (let j = 0; j < discreteArray[i][JV.PROP_DISCRETE_FIELDS].length; j++) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             const df = discreteArray[i][JV.PROP_DISCRETE_FIELDS][j]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            if (JE.isSignature(df[JV.PROP_FIELD_ID], $CURRENT_RPT)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                // 这里输出到signatureRst 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                if (Array.isArray(signatureRst)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    const map_data_field = JE.F(df[JV.PROP_FIELD_ID], $CURRENT_RPT); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    const signatureItem = { signature_name: map_data_field[JV.PROP_NAME], path: null, pic: null }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    signatureItem[JV.PROP_CONTROL] = df[[JV.PROP_CONTROL]]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    signatureItem[JV.PROP_STYLE] = df[[JV.PROP_STYLE]]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    signatureItem[JV.PROP_AREA] = JpcAreaHelper.outputArea(df[JV.PROP_AREA], band, unitFactor, 1, 0, 1, 0, 1, 0, false, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    signatureRst.push(signatureItem); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            } else if (JE.isDynamicParam(df[JV.PROP_PARAM_ID], $CURRENT_RPT)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                // 这里输出到signatureDateRst 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                // console.log('current sign date df :'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                // console.log(df); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                if (Array.isArray(signatureDateRst)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    let pID = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    if (df.hasOwnProperty(JV.PROP_PARAM_ID)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                        pID = df[JV.PROP_PARAM_ID]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                        pID = df[JV.PROP_ID]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    const param = JE.P(pID, $CURRENT_RPT); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    // const signatureDateItem = JpcCommonOutputHelper.createCommonOutputWithoutDecorate(df, param[JV.PROP_DFT_VALUE], true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    const signatureDateItem = JpcCommonOutputHelper.createCommonOutputWithoutDecorate(df, df[JV.PROP_DFT_VALUE], true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    // console.log('Date param :'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    // console.log(param); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    signatureDateItem.signature_name = param[JV.PROP_NAME]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    signatureDateItem[JV.PROP_AREA] = JpcAreaHelper.outputArea(df[JV.PROP_AREA], band, unitFactor, 1, 0, 1, 0, 1, 0, false, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    signatureDateRst.push(signatureDateItem); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            } else if (JE.isSignatureAudit(df[JV.PROP_PARAM_ID], $CURRENT_RPT)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                if (Array.isArray(signatureAuditRst)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    let pID = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    if (df.hasOwnProperty(JV.PROP_PARAM_ID)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                        pID = df[JV.PROP_PARAM_ID]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                        pID = df[JV.PROP_ID]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    const param = JE.P(pID, $CURRENT_RPT); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    const signatureAuditItem = JpcCommonOutputHelper.createCommonOutputWithoutDecorate(df, df[JV.PROP_DFT_VALUE], true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    // console.log('Aidit param :'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    // console.log(param); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    signatureAuditItem.signature_name = param[JV.PROP_NAME]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    signatureAuditItem[JV.PROP_AREA] = JpcAreaHelper.outputArea(df[JV.PROP_AREA], band, unitFactor, 1, 0, 1, 0, 1, 0, false, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    signatureAuditRst.push(signatureAuditItem); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            if (!this.setupSignatureFieldParam(signatureRst, signatureDateRst, signatureAuditRst, $CURRENT_RPT, band, unitFactor, df)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 let value = ''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 let isPic = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 if (df[JV.PROP_FIELD_ID]) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -149,6 +103,56 @@ const JpcDiscreteHelper = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 rst.push(item); // 不管是不是Pic,都得保留一个壳子 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            /* 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            if (JE.isSignature(df[JV.PROP_FIELD_ID], $CURRENT_RPT)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                // 这里输出到signatureRst 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                if (Array.isArray(signatureRst)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    const map_data_field = JE.F(df[JV.PROP_FIELD_ID], $CURRENT_RPT); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    const signatureItem = { signature_name: map_data_field[JV.PROP_NAME], path: null, pic: null }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    signatureItem[JV.PROP_CONTROL] = df[[JV.PROP_CONTROL]]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    signatureItem[JV.PROP_STYLE] = df[[JV.PROP_STYLE]]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    signatureItem[JV.PROP_AREA] = JpcAreaHelper.outputArea(df[JV.PROP_AREA], band, unitFactor, 1, 0, 1, 0, 1, 0, false, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    signatureRst.push(signatureItem); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            } else if (JE.isDynamicParam(df[JV.PROP_PARAM_ID], $CURRENT_RPT)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                // 这里输出到signatureDateRst 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                // console.log('current sign date df :'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                // console.log(df); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                if (Array.isArray(signatureDateRst)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    let pID = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    if (df.hasOwnProperty(JV.PROP_PARAM_ID)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                        pID = df[JV.PROP_PARAM_ID]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                        pID = df[JV.PROP_ID]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    const param = JE.P(pID, $CURRENT_RPT); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    // const signatureDateItem = JpcCommonOutputHelper.createCommonOutputWithoutDecorate(df, param[JV.PROP_DFT_VALUE], true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    const signatureDateItem = JpcCommonOutputHelper.createCommonOutputWithoutDecorate(df, df[JV.PROP_DFT_VALUE], true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    // console.log('Date param :'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    // console.log(param); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    signatureDateItem.signature_name = param[JV.PROP_NAME]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    signatureDateItem[JV.PROP_AREA] = JpcAreaHelper.outputArea(df[JV.PROP_AREA], band, unitFactor, 1, 0, 1, 0, 1, 0, false, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    signatureDateRst.push(signatureDateItem); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            } else if (JE.isSignatureAudit(df[JV.PROP_PARAM_ID], $CURRENT_RPT)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                if (Array.isArray(signatureAuditRst)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    let pID = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    if (df.hasOwnProperty(JV.PROP_PARAM_ID)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                        pID = df[JV.PROP_PARAM_ID]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                        pID = df[JV.PROP_ID]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    const param = JE.P(pID, $CURRENT_RPT); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    const signatureAuditItem = JpcCommonOutputHelper.createCommonOutputWithoutDecorate(df, df[JV.PROP_DFT_VALUE], true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    // console.log('Aidit param :'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    // console.log(param); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    signatureAuditItem.signature_name = param[JV.PROP_NAME]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    signatureAuditItem[JV.PROP_AREA] = JpcAreaHelper.outputArea(df[JV.PROP_AREA], band, unitFactor, 1, 0, 1, 0, 1, 0, false, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    signatureAuditRst.push(signatureAuditItem); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            /*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -156,6 +160,60 @@ const JpcDiscreteHelper = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return rst; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    setupSignatureFieldParam: function(signatureRst, signatureDateRst, signatureAuditRst, $CURRENT_RPT, band, unitFactor, df) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        let rst = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (JE.isSignature(df[JV.PROP_FIELD_ID], $CURRENT_RPT)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // 这里输出到signatureRst 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (Array.isArray(signatureRst)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                const map_data_field = JE.F(df[JV.PROP_FIELD_ID], $CURRENT_RPT); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                const signatureItem = { signature_name: map_data_field[JV.PROP_NAME], path: null, pic: null }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                signatureItem[JV.PROP_CONTROL] = df[[JV.PROP_CONTROL]]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                signatureItem[JV.PROP_STYLE] = df[[JV.PROP_STYLE]]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                signatureItem[JV.PROP_AREA] = JpcAreaHelper.outputArea(df[JV.PROP_AREA], band, unitFactor, 1, 0, 1, 0, 1, 0, false, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                signatureRst.push(signatureItem); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                rst = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } else if (JE.isDynamicParam(df[JV.PROP_PARAM_ID], $CURRENT_RPT)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // 这里输出到signatureDateRst 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // console.log('current sign date df :'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // console.log(df); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (Array.isArray(signatureDateRst)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                let pID = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (df.hasOwnProperty(JV.PROP_PARAM_ID)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    pID = df[JV.PROP_PARAM_ID]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    pID = df[JV.PROP_ID]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                const param = JE.P(pID, $CURRENT_RPT); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                // const signatureDateItem = JpcCommonOutputHelper.createCommonOutputWithoutDecorate(df, param[JV.PROP_DFT_VALUE], true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                const signatureDateItem = JpcCommonOutputHelper.createCommonOutputWithoutDecorate(df, df[JV.PROP_DFT_VALUE], true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                // console.log('Date param :'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                // console.log(param); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                signatureDateItem.signature_name = param[JV.PROP_NAME]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                signatureDateItem[JV.PROP_AREA] = JpcAreaHelper.outputArea(df[JV.PROP_AREA], band, unitFactor, 1, 0, 1, 0, 1, 0, false, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                signatureDateRst.push(signatureDateItem); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                rst = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } else if (JE.isSignatureAudit(df[JV.PROP_PARAM_ID], $CURRENT_RPT)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (Array.isArray(signatureAuditRst)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                let pID = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (df.hasOwnProperty(JV.PROP_PARAM_ID)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    pID = df[JV.PROP_PARAM_ID]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    pID = df[JV.PROP_ID]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                const param = JE.P(pID, $CURRENT_RPT); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                const signatureAuditItem = JpcCommonOutputHelper.createCommonOutputWithoutDecorate(df, df[JV.PROP_DFT_VALUE], true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                // console.log('Aidit param :'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                // console.log(param); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                signatureAuditItem.signature_name = param[JV.PROP_NAME]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                signatureAuditItem[JV.PROP_AREA] = JpcAreaHelper.outputArea(df[JV.PROP_AREA], band, unitFactor, 1, 0, 1, 0, 1, 0, false, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                signatureAuditRst.push(signatureAuditItem); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                rst = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return rst; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     _getSegPageValue: function(orgData, segPageIdx) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         let rst = orgData; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (typeof orgData === 'string') { 
			 |