소스 검색

limit wielkosci tabel

a.binder 7 년 전
부모
커밋
d27cc54479

+ 44 - 14
SE/schema/default_db_xml_cache.public/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_4UA.xsl

@@ -17,6 +17,7 @@
     version="2.0"><!-- system_cache__appinfo system_cache__dita ogr Benford default_db get_wfs p5 p5gnuplot -->
     
     
+    <xsl:param name="system_cache__dita:ANALIZA_UMOW_4UA_preprocess__x3A__table_max" select="10"/>
    
     
     <xsl:output indent="yes"/>
@@ -480,9 +481,16 @@
                     <xsl:with-param name="path.prefix">../</xsl:with-param>
                 </xsl:apply-templates>
                 </p>
-                <xsl:call-template name="p5gnuplot:simpletable__x3A__from_rows.xsl.dita__x3A__analyze">
-                    <xsl:with-param name="fileindex" select="$simpletable/simpletable/@id"/>
-                </xsl:call-template>
+                <xsl:choose>
+                    <xsl:when test="count($simpletable/simpletable//stentry) &gt;$system_cache__dita:ANALIZA_UMOW_4UA_preprocess__x3A__table_max">
+                            <p props="count_166">wielkość zbioru <xsl:value-of select="count($simpletable/simpletable//stentry)"/> - pominięto wyświetlanie tabeli</p>
+                        </xsl:when>
+                    <xsl:otherwise>
+                        <xsl:call-template name="p5gnuplot:simpletable__x3A__from_rows.xsl.dita__x3A__analyze">
+                            <xsl:with-param name="fileindex" select="$simpletable/simpletable/@id"/>
+                        </xsl:call-template>
+                    </xsl:otherwise>
+                </xsl:choose>
             </xsl:when>
             <xsl:otherwise>
                 <!--<p props="214a">
@@ -673,10 +681,17 @@
                     <xsl:with-param name="simpletable" select="$simpletable"/>
                     <xsl:with-param name="title"> (APU4-DT) umowy obiektu tabela </xsl:with-param>
                 </xsl:call-template>-->
-                <xsl:apply-templates mode="p5gnuplot:simpletable__x3A__from_rows" select="$simpletable">
-                    <xsl:with-param name="title" select="$title"/>
-                    <xsl:with-param name="fileindex" select="$simpletable/simpletable/@id"/>
-                </xsl:apply-templates>
+                <xsl:choose>
+                    <xsl:when test="count($simpletable/simpletable//stentry) &gt;system_cache__dita:ANALIZA_UMOW_4UA_preprocess__x3A__table_max">
+                        <p props="count_166">wielkość zbioru <xsl:value-of select="count($simpletable/simpletable//stentry) &gt;500"/> - pominięto wyświetlanie tabeli</p>
+                    </xsl:when>
+                    <xsl:otherwise>
+                    <xsl:apply-templates mode="p5gnuplot:simpletable__x3A__from_rows" select="$simpletable">
+                        <xsl:with-param name="title" select="$title"/>
+                        <xsl:with-param name="fileindex" select="$simpletable/simpletable/@id"/>
+                    </xsl:apply-templates>
+                    </xsl:otherwise>
+                </xsl:choose>
                 <xsl:comment>#651</xsl:comment>
                 <!--<p> (<xsl:value-of select="$graph.name"/>) umowy obiektu wykres </p>-->
                 <foreign>
@@ -862,10 +877,16 @@
                     </xsl:apply-templates>
                 <!--</p>-->
                 <!-- ANALIZA WYKRESOW -->
-                <xsl:call-template name="p5gnuplot:simpletable__x3A__from_rows.xsl.dita__x3A__analyze">
-                    <xsl:with-param name="fileindex" select="$simpletable/simpletable/@id"/>
-                </xsl:call-template>
-                
+                    <xsl:choose>
+                        <xsl:when test="count($simpletable/simpletable//stentry) &gt; $system_cache__dita:ANALIZA_UMOW_4UA_preprocess__x3A__table_max">
+                            <p props="count_166">wielkość zbioru <xsl:value-of select="count($simpletable/simpletable//stentry)"/> - pominięto wyświetlanie tabeli</p>
+                        </xsl:when>
+                        <xsl:otherwise>
+                    <xsl:call-template name="p5gnuplot:simpletable__x3A__from_rows.xsl.dita__x3A__analyze">
+                        <xsl:with-param name="fileindex" select="$simpletable/simpletable/@id"/>
+                    </xsl:call-template>
+                        </xsl:otherwise>
+                    </xsl:choose>
             </xsl:when>
             <xsl:otherwise>
                 <!--<p props="214a">
@@ -1061,9 +1082,18 @@
                     <xsl:with-param name="path.prefix">../</xsl:with-param>
                 </xsl:apply-templates>
                 <!--</p>-->
-                <xsl:call-template name="p5gnuplot:simpletable__x3A__from_rows.xsl.dita__x3A__analyze">
-                    <xsl:with-param name="fileindex" select="$simpletable/simpletable/@id"/>
-                </xsl:call-template>
+                
+                <xsl:choose>
+                    <xsl:when test="count($simpletable/simpletable//stentry) &gt;$system_cache__dita:ANALIZA_UMOW_4UA_preprocess__x3A__table_max">
+                        <p props="count_166">wielkość zbioru <xsl:value-of select="count($simpletable/simpletable//stentry)"/> - pominięto wyświetlanie tabeli</p>
+                    </xsl:when>
+                    <xsl:otherwise>
+                        <xsl:call-template name="p5gnuplot:simpletable__x3A__from_rows.xsl.dita__x3A__analyze">
+                            <xsl:with-param name="fileindex" select="$simpletable/simpletable/@id"/>
+                        </xsl:call-template>
+                    </xsl:otherwise>
+                </xsl:choose>
+                
                 
             </xsl:when>
             <xsl:otherwise>

+ 1 - 1
SE/schema/default_db_xml_cache.public/default_db/Linear_regression/Linear_regression.xsl

@@ -133,7 +133,7 @@
             <ph> <i>y-int.b</i> :  </ph><b props="Linear_regression.y-int.b"><xsl:value-of select="Linear_regression:XY16/@Linear_regression:XY16.y-int.b"/></b>; <xsl:text>; </xsl:text>
             <ph>przybliżony parametr <i>r</i> :  </ph><b props="Linear_regression.r"> <xsl:value-of select="Linear_regression:XY16/@Linear_regression:XY16.r"/></b>;<xsl:text>; </xsl:text>
             <ph>obliczenia wykonano dla <i>n</i> <b props="Linear_regression.n"><xsl:value-of select="Linear_regression:XY11/@Linear_regression:XY11.n"/></b> elementów;  </ph>
-            <ph>bieżący marker wykrytego profilu <i>P</i> <b><xsl:value-of select="$Linear_regression:calculate_matrix__x3A__to_dita"/></b></ph>
+            <!--<ph>bieżący marker wykrytego profilu <i>P</i> <b><xsl:value-of select="$Linear_regression:calculate_matrix__x3A__to_dita"/></b></ph>-->
         </xsl:element>
     </xsl:template>