|
@@ -8,7 +8,8 @@
|
|
|
xmlns:default_db="https://biuro.biall-net.pl/wfs/default_db"
|
|
xmlns:default_db="https://biuro.biall-net.pl/wfs/default_db"
|
|
|
xmlns:p5="https://biuro.biall-net.pl/wfs"
|
|
xmlns:p5="https://biuro.biall-net.pl/wfs"
|
|
|
xmlns:get_wfs="http://biuro.biall-net.pl/WPS_Functions/get_wfs/get_wfs.xsd"
|
|
xmlns:get_wfs="http://biuro.biall-net.pl/WPS_Functions/get_wfs/get_wfs.xsd"
|
|
|
- exclude-result-prefixes="xs system_cache__appinfo system_cache__dita ogr Benford default_db get_wfs p5"
|
|
|
|
|
|
|
+ xmlns:p5gnuplot="http://biuro.biall-net.pl/WPS_Functions/graph_gnuplot"
|
|
|
|
|
+ exclude-result-prefixes="xs system_cache__appinfo system_cache__dita ogr Benford default_db get_wfs p5 p5gnuplot"
|
|
|
version="2.0">
|
|
version="2.0">
|
|
|
|
|
|
|
|
|
|
|
|
@@ -154,8 +155,16 @@
|
|
|
</xsl:apply-templates>
|
|
</xsl:apply-templates>
|
|
|
</xsl:for-each>
|
|
</xsl:for-each>
|
|
|
|
|
|
|
|
|
|
+ <xsl:variable name="dita">
|
|
|
|
|
+ <xsl:call-template name="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.stats_all__x3A__preprocess"/>
|
|
|
|
|
+ </xsl:variable>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <xsl:for-each select="$dita//simpletable">
|
|
|
|
|
+ <xsl:message>#163 ..stats_all for @id = <xsl:value-of select="@id"/></xsl:message>
|
|
|
|
|
+ <xsl:apply-templates select="." mode="system_cache__dita:graph__write_dita_preprocess">
|
|
|
|
|
+ <xsl:with-param name="fileindex" select="@id"/>
|
|
|
|
|
+ </xsl:apply-templates>
|
|
|
|
|
+ </xsl:for-each>
|
|
|
|
|
|
|
|
<xsl:comment>#144 bocian-graph-2-html.preprocess </xsl:comment>
|
|
<xsl:comment>#144 bocian-graph-2-html.preprocess </xsl:comment>
|
|
|
<!--<xsl:variable name="dita">
|
|
<!--<xsl:variable name="dita">
|
|
@@ -708,21 +717,7 @@
|
|
|
<xsl:copy-of select="$BI_audit_ENERGA_RUM_KONTRAHENCI_filtered"/>
|
|
<xsl:copy-of select="$BI_audit_ENERGA_RUM_KONTRAHENCI_filtered"/>
|
|
|
</xsl:result-document>
|
|
</xsl:result-document>
|
|
|
|
|
|
|
|
- <topichead navtitle="Graf powiązań">
|
|
|
|
|
- <topicref href="bocian-graph-2-html.BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_statystyka_pracownik.dita">
|
|
|
|
|
- <xsl:result-document href="{$temp}/{$uuid}/bocian-graph-2-html.BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_statystyka_pracownik.dita">
|
|
|
|
|
- <xsl:apply-templates select="." mode="bocian-graph-2-html.BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_statystyka_pracownik.dita"/>
|
|
|
|
|
- </xsl:result-document>
|
|
|
|
|
- </topicref>
|
|
|
|
|
- </topichead>
|
|
|
|
|
-
|
|
|
|
|
- <topichead navtitle="Statystyka ilości powiązań">
|
|
|
|
|
- <topicref href="statystyka_pracownik.dita">
|
|
|
|
|
- <xsl:result-document href="{$temp}/{$uuid}/statystyka_pracownik.dita">
|
|
|
|
|
- <xsl:apply-templates select="." mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_statystyka_pracownik.dita"/>
|
|
|
|
|
- </xsl:result-document>
|
|
|
|
|
- </topicref>
|
|
|
|
|
- </topichead>
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
<xsl:choose><!-- XX1 sure -->
|
|
<xsl:choose><!-- XX1 sure -->
|
|
|
<xsl:when test="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[1]/*[not(local-name()='BI_audit_ENERGA_PRACOWNICY')]">
|
|
<xsl:when test="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[1]/*[not(local-name()='BI_audit_ENERGA_PRACOWNICY')]">
|
|
@@ -1647,7 +1642,25 @@
|
|
|
</xsl:for-each>
|
|
</xsl:for-each>
|
|
|
</topichead>
|
|
</topichead>
|
|
|
|
|
|
|
|
|
|
+ <topichead navtitle="Graf powiązań">
|
|
|
|
|
+ <topicref href="bocian-graph-2-html.BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_statystyka_pracownik.dita">
|
|
|
|
|
+ <xsl:result-document href="{$temp}/{$uuid}/bocian-graph-2-html.BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_statystyka_pracownik.dita">
|
|
|
|
|
+ <xsl:apply-templates select="." mode="bocian-graph-2-html.BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_statystyka_pracownik.dita"/>
|
|
|
|
|
+ </xsl:result-document>
|
|
|
|
|
+ </topicref>
|
|
|
|
|
+ </topichead>
|
|
|
|
|
|
|
|
|
|
+ <topichead navtitle="Statystyka ilości powiązań">
|
|
|
|
|
+ <topicref href="statystyka_pracownik.dita" props="mode__BaERKP_statystyka_pracownik.dita">
|
|
|
|
|
+ <xsl:result-document href="{$temp}/{$uuid}/statystyka_pracownik.dita">
|
|
|
|
|
+ <xsl:apply-templates select="." mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_statystyka_pracownik.dita"/>
|
|
|
|
|
+ </xsl:result-document>
|
|
|
|
|
+ </topicref>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:call-template name="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.stats_all"/>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ </topichead>
|
|
|
|
|
|
|
|
|
|
|
|
|
</map>
|
|
</map>
|
|
@@ -1690,30 +1703,55 @@
|
|
|
<xsl:comment>#972 </xsl:comment>
|
|
<xsl:comment>#972 </xsl:comment>
|
|
|
<body>
|
|
<body>
|
|
|
|
|
|
|
|
- <xsl:for-each-group select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY" group-by="@fud">
|
|
|
|
|
- <p><xsl:value-of select="ID"/> - <xsl:value-of select="nazwisko"/><xsl:text> </xsl:text> <xsl:value-of select="imiona"/><xsl:text> </xsl:text> <xsl:value-of select="nazwa"/><xsl:text> </xsl:text><xsl:if test="source">źródło:<xsl:value-of select="source"/></xsl:if></p>
|
|
|
|
|
|
|
+ <!--<xsl:for-each-group select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*[1]" group-by="@fud">
|
|
|
|
|
+ <p><xsl:value-of select="ID"/> - <xsl:value-of select="nazwisko"/><xsl:text> </xsl:text> <xsl:value-of select="imiona"/><xsl:text> </xsl:text> <xsl:value-of select="nazwa"/><xsl:text> </xsl:text><xsl:text> </xsl:text> <xsl:value-of select="Pelna_nazwa_kontrahenta"/> <xsl:if test="source"> źródło:<xsl:value-of select="source"/></xsl:if></p>
|
|
|
|
|
+ </xsl:for-each-group>-->
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:variable name="avg">
|
|
|
|
|
+ <xsl:for-each-group select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*[1]" group-by="@fid">
|
|
|
|
|
+ <xsl:variable name="pracownik" select="ID"/>
|
|
|
|
|
+ <stentry><xsl:value-of select=" count( current-group() )"/></stentry>
|
|
|
</xsl:for-each-group>
|
|
</xsl:for-each-group>
|
|
|
|
|
+ </xsl:variable>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:variable name="avg.scale_max" select="(round(max($avg//stentry) div 100)) * 100"/>
|
|
|
|
|
|
|
|
<xsl:variable name="simpletable">
|
|
<xsl:variable name="simpletable">
|
|
|
- <simpletable frame="all" id="{$uuid}topic_simpletable_statystyka_pracownik.dita_table">
|
|
|
|
|
|
|
+ <simpletable frame="all" id="{$uuid}topic_simpletable_statystyka_pracownik.dita_table" props="print__no">
|
|
|
<strow>
|
|
<strow>
|
|
|
- <xsl:for-each-group select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY" group-by="@fid">
|
|
|
|
|
- <stentry><xsl:value-of select="ID"/></stentry>
|
|
|
|
|
|
|
+ <stentry><xsl:value-of select="p5gnuplot:system_cache__dita__x3A__fix__x3A__axis__x3A__names('skala 0')"/></stentry>
|
|
|
|
|
+ <xsl:for-each-group select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*[1]" group-by="@fid">
|
|
|
|
|
+ <stentry>
|
|
|
|
|
+ <xsl:choose>
|
|
|
|
|
+ <xsl:when test="last() < 5">
|
|
|
|
|
+ <xsl:value-of select="p5gnuplot:system_cache__dita__x3A__fix__x3A__axis__x3A__names(concat('[',ID,'] ',imiona,' ',nazwisko,' ', nazwa, Pelna_nazwa_kontrahenta ))"/>
|
|
|
|
|
+ </xsl:when>
|
|
|
|
|
+ <xsl:otherwise>
|
|
|
|
|
+ <xsl:value-of select="ID"/>
|
|
|
|
|
+ </xsl:otherwise>
|
|
|
|
|
+ </xsl:choose>
|
|
|
|
|
+
|
|
|
|
|
+ <!--<xsl:value-of select="ID"/>-->
|
|
|
|
|
+ </stentry>
|
|
|
</xsl:for-each-group>
|
|
</xsl:for-each-group>
|
|
|
|
|
+ <stentry><xsl:value-of select="p5gnuplot:system_cache__dita__x3A__fix__x3A__axis__x3A__names(concat('skala ',$avg.scale_max))"/></stentry>
|
|
|
</strow>
|
|
</strow>
|
|
|
<strow>
|
|
<strow>
|
|
|
- <xsl:for-each-group select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY" group-by="@fid">
|
|
|
|
|
|
|
+ <stentry>0</stentry>
|
|
|
|
|
+ <xsl:for-each-group select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*[1]" group-by="@fid">
|
|
|
<xsl:variable name="pracownik" select="ID"/>
|
|
<xsl:variable name="pracownik" select="ID"/>
|
|
|
<stentry><xsl:value-of select=" count( current-group() )"/></stentry>
|
|
<stentry><xsl:value-of select=" count( current-group() )"/></stentry>
|
|
|
</xsl:for-each-group>
|
|
</xsl:for-each-group>
|
|
|
|
|
+ <stentry><xsl:value-of select="$avg.scale_max"/></stentry>
|
|
|
</strow>
|
|
</strow>
|
|
|
</simpletable>
|
|
</simpletable>
|
|
|
</xsl:variable>
|
|
</xsl:variable>
|
|
|
<xsl:choose>
|
|
<xsl:choose>
|
|
|
<xsl:when test="$simpletable//stentry">
|
|
<xsl:when test="$simpletable//stentry">
|
|
|
- <p> Ilości powiązań <note>Uwaga, w przypadku odnalezionych kilku tras do tego samego kontrahenta pokazywana jest jedna trasa (wykres nie zawiera tego ograniczenia)</note>
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <p> Ilości powiązań
|
|
|
|
|
+ <foreign>
|
|
|
<xsl:copy-of select="$simpletable" copy-namespaces="no"/>
|
|
<xsl:copy-of select="$simpletable" copy-namespaces="no"/>
|
|
|
|
|
+ </foreign>
|
|
|
<xsl:apply-templates mode="system_cache__dita:graph__read" select="$simpletable">
|
|
<xsl:apply-templates mode="system_cache__dita:graph__read" select="$simpletable">
|
|
|
<xsl:with-param name="fileindex" select="$simpletable/simpletable/@id"/>
|
|
<xsl:with-param name="fileindex" select="$simpletable/simpletable/@id"/>
|
|
|
<xsl:with-param name="width" select="500"/>
|
|
<xsl:with-param name="width" select="500"/>
|
|
@@ -1733,18 +1771,35 @@
|
|
|
|
|
|
|
|
<xsl:comment>#1016 </xsl:comment>
|
|
<xsl:comment>#1016 </xsl:comment>
|
|
|
|
|
|
|
|
|
|
+ <xsl:variable name="avg">
|
|
|
|
|
+ <stentry><xsl:value-of select=" round(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/count(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object))"/></stentry>
|
|
|
|
|
+ </xsl:variable>
|
|
|
|
|
+
|
|
|
<xsl:variable name="simpletable">
|
|
<xsl:variable name="simpletable">
|
|
|
- <simpletable frame="all" id="{$uuid}topic_simpletable_statystyka_pracownik.dita_table_srednie">
|
|
|
|
|
|
|
+ <simpletable frame="all" id="{$uuid}topic_simpletable_statystyka_pracownik.dita_table_srednie" props="print__no">
|
|
|
<strow>
|
|
<strow>
|
|
|
- <xsl:for-each-group select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY" group-by="@fid">
|
|
|
|
|
- <stentry><xsl:value-of select="ID"/></stentry>
|
|
|
|
|
|
|
+ <stentry><xsl:value-of select="p5gnuplot:system_cache__dita__x3A__fix__x3A__axis__x3A__names('skala 0')"/></stentry>
|
|
|
|
|
+ <xsl:for-each-group select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*[1]" group-by="@fid">
|
|
|
|
|
+ <stentry>
|
|
|
|
|
+ <xsl:choose>
|
|
|
|
|
+ <xsl:when test="last() < 5">
|
|
|
|
|
+ <xsl:value-of select="p5gnuplot:system_cache__dita__x3A__fix__x3A__axis__x3A__names(concat('[',ID,'] ',imiona,' ',nazwisko,' ', nazwa, Pelna_nazwa_kontrahenta ))"/>
|
|
|
|
|
+ </xsl:when>
|
|
|
|
|
+ <xsl:otherwise>
|
|
|
|
|
+ <xsl:value-of select="ID"/>
|
|
|
|
|
+ </xsl:otherwise>
|
|
|
|
|
+ </xsl:choose>
|
|
|
|
|
+ </stentry>
|
|
|
</xsl:for-each-group>
|
|
</xsl:for-each-group>
|
|
|
|
|
+ <stentry><xsl:value-of select="p5gnuplot:system_cache__dita__x3A__fix__x3A__axis__x3A__names(concat('skala ',$avg.scale_max))"/></stentry>
|
|
|
</strow>
|
|
</strow>
|
|
|
<strow>
|
|
<strow>
|
|
|
- <xsl:for-each-group select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY" group-by="@fid">
|
|
|
|
|
|
|
+ <stentry>0</stentry>
|
|
|
|
|
+ <xsl:for-each-group select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*[1]" group-by="@fid">
|
|
|
<xsl:variable name="pracownik" select="@fid"/>
|
|
<xsl:variable name="pracownik" select="@fid"/>
|
|
|
- <stentry><xsl:value-of select=" round(count( $current/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[ BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY/@fid=$pracownik]/*[1]) div count( current-group() ) )"/></stentry>
|
|
|
|
|
|
|
+ <stentry><xsl:value-of select=" round(count( $current/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[ BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[*[1]/@fid=$pracownik][ position() = 1]]/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object) div count( current-group() ) )"/></stentry>
|
|
|
</xsl:for-each-group>
|
|
</xsl:for-each-group>
|
|
|
|
|
+ <stentry><xsl:value-of select="$avg.scale_max"/></stentry>
|
|
|
</strow>
|
|
</strow>
|
|
|
</simpletable>
|
|
</simpletable>
|
|
|
</xsl:variable>
|
|
</xsl:variable>
|
|
@@ -1753,8 +1808,9 @@
|
|
|
<xsl:when test="$simpletable//stentry">
|
|
<xsl:when test="$simpletable//stentry">
|
|
|
<p>Średnie długości powiązań
|
|
<p>Średnie długości powiązań
|
|
|
<!--<xsl:value-of select="count( $current/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[ BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY/ID=$PROCES_INIT_tree.ditamap]/object)"/>-->
|
|
<!--<xsl:value-of select="count( $current/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[ BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY/ID=$PROCES_INIT_tree.ditamap]/object)"/>-->
|
|
|
-
|
|
|
|
|
|
|
+ <foreign>
|
|
|
<xsl:copy-of select="$simpletable" copy-namespaces="no"/>
|
|
<xsl:copy-of select="$simpletable" copy-namespaces="no"/>
|
|
|
|
|
+ </foreign>
|
|
|
<xsl:apply-templates mode="system_cache__dita:graph__read" select="$simpletable">
|
|
<xsl:apply-templates mode="system_cache__dita:graph__read" select="$simpletable">
|
|
|
<xsl:with-param name="fileindex" select="$simpletable/simpletable/@id"/>
|
|
<xsl:with-param name="fileindex" select="$simpletable/simpletable/@id"/>
|
|
|
<xsl:with-param name="width" select="500"/>
|
|
<xsl:with-param name="width" select="500"/>
|
|
@@ -1771,7 +1827,18 @@
|
|
|
<simpletable frame="all" id="{$uuid}topic_simpletable_statystyka_pracownik.dita_table_kwoty">
|
|
<simpletable frame="all" id="{$uuid}topic_simpletable_statystyka_pracownik.dita_table_kwoty">
|
|
|
<strow>
|
|
<strow>
|
|
|
<xsl:for-each-group select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY" group-by="ID">
|
|
<xsl:for-each-group select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY" group-by="ID">
|
|
|
- <stentry><xsl:value-of select="ID"/></stentry>
|
|
|
|
|
|
|
+ <stentry>
|
|
|
|
|
+ <xsl:choose>
|
|
|
|
|
+ <xsl:when test="last() < 5">
|
|
|
|
|
+ <xsl:value-of select="p5gnuplot:system_cache__dita__x3A__fix__x3A__axis__x3A__names(concat(ID,' ',imiona,' ',nazwisko,' ', substring(nazwa,1,10), substring(Pelna_nazwa_kontrahenta,1,10) ))"/>
|
|
|
|
|
+ </xsl:when>
|
|
|
|
|
+ <xsl:otherwise>
|
|
|
|
|
+ <xsl:value-of select="ID"/>
|
|
|
|
|
+ </xsl:otherwise>
|
|
|
|
|
+ </xsl:choose>
|
|
|
|
|
+ <!--<xsl:value-of select="ID"/>-->
|
|
|
|
|
+
|
|
|
|
|
+ </stentry>
|
|
|
</xsl:for-each-group>
|
|
</xsl:for-each-group>
|
|
|
</strow>
|
|
</strow>
|
|
|
<strow>
|
|
<strow>
|