|
@@ -4,6 +4,8 @@
|
|
|
xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
|
|
xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
|
|
|
xmlns:system_cache__dita="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/dita.xsd"
|
|
xmlns:system_cache__dita="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/dita.xsd"
|
|
|
xmlns:ogr="http://ogr.maptools.org/"
|
|
xmlns:ogr="http://ogr.maptools.org/"
|
|
|
|
|
+ xmlns:Benford="https://pl.wikipedia.org/wiki/Rozkład_Benforda"
|
|
|
|
|
+ xmlns:default_db="https://biuro.biall-net.pl/wfs/default_db"
|
|
|
exclude-result-prefixes="xs"
|
|
exclude-result-prefixes="xs"
|
|
|
version="2.0">
|
|
version="2.0">
|
|
|
|
|
|
|
@@ -63,7 +65,11 @@
|
|
|
<xsl:value-of select="concat($group_name,'/',$ID,'_',$end_name,'_',$end_ID,'_',$pos)"/>
|
|
<xsl:value-of select="concat($group_name,'/',$ID,'_',$end_name,'_',$end_ID,'_',$pos)"/>
|
|
|
</xsl:function>
|
|
</xsl:function>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <xsl:function name="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_operational_raport_note.key">
|
|
|
|
|
+ <xsl:param name="ID"/>
|
|
|
|
|
+ <xsl:variable name="group_name" select="'note'"/>
|
|
|
|
|
+ <xsl:value-of select="concat($group_name,'_',$ID)"/>
|
|
|
|
|
+ </xsl:function>
|
|
|
|
|
|
|
|
<xsl:function name="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_ENERGA_RUM_KONTRAHENCI.key">
|
|
<xsl:function name="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_ENERGA_RUM_KONTRAHENCI.key">
|
|
|
<xsl:param name="ID"/>
|
|
<xsl:param name="ID"/>
|
|
@@ -291,8 +297,7 @@
|
|
|
</topichead>-->
|
|
</topichead>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-<!-- ! Wyłączone tymczasowo 2017-10-19 <topichead navtitle="Powiązania do kontrahentów z którymi zawarto umowy (podział na źródła)(z wariantu porównawczego)">
|
|
|
|
|
|
|
+ <!-- ! Wyłączone tymczasowo 2017-10-19 <topichead navtitle="Powiązania do kontrahentów z którymi zawarto umowy (podział na źródła)(z wariantu porównawczego)">
|
|
|
<xsl:for-each select="$sources/sources/source">
|
|
<xsl:for-each select="$sources/sources/source">
|
|
|
<xsl:variable name="source" select="."/>
|
|
<xsl:variable name="source" select="."/>
|
|
|
<topichead navtitle="żródło: {.} - Powiązania do kontrahentów z którymi zawarto umowy">
|
|
<topichead navtitle="żródło: {.} - Powiązania do kontrahentów z którymi zawarto umowy">
|
|
@@ -313,10 +318,11 @@
|
|
|
</xsl:for-each-group>
|
|
</xsl:for-each-group>
|
|
|
</topichead>
|
|
</topichead>
|
|
|
</xsl:for-each>
|
|
</xsl:for-each>
|
|
|
- </topichead>-->
|
|
|
|
|
-
|
|
|
|
|
|
|
+ </topichead>-->
|
|
|
|
|
|
|
|
-<!--@107-11-14 to be fixed? <topichead navtitle="Powiązania do kontrahentów z którymi zawarto umowy">
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <!--@107-11-14 to be fixed? <topichead navtitle="Powiązania do kontrahentów z którymi zawarto umowy">
|
|
|
|
|
|
|
|
<xsl:for-each-group select="$interested_row/interested_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[object[position() = last()]/BI_audit_ENERGA_RUM_KONTRAHENCI ]" group-by="object[position() = last()]/BI_audit_ENERGA_RUM_KONTRAHENCI/concat(ID,Pelna_nazwa_kontrahenta)">
|
|
<xsl:for-each-group select="$interested_row/interested_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[object[position() = last()]/BI_audit_ENERGA_RUM_KONTRAHENCI ]" group-by="object[position() = last()]/BI_audit_ENERGA_RUM_KONTRAHENCI/concat(ID,Pelna_nazwa_kontrahenta)">
|
|
|
<xsl:variable name="group_name" select="object[position() = last() ]/* [ position() = 1]/system_cache__appinfo:truncate_special_and_do_uppercase(concat(ID,Pelna_nazwa_kontrahenta,position()))"/>
|
|
<xsl:variable name="group_name" select="object[position() = last() ]/* [ position() = 1]/system_cache__appinfo:truncate_special_and_do_uppercase(concat(ID,Pelna_nazwa_kontrahenta,position()))"/>
|
|
@@ -446,6 +452,7 @@
|
|
|
<!--<xsl:copy-of select="../../."/>-->
|
|
<!--<xsl:copy-of select="../../."/>-->
|
|
|
<xsl:apply-templates mode="BI_audit_ENERGA_RUM_KONTRAHENCI" select="." >
|
|
<xsl:apply-templates mode="BI_audit_ENERGA_RUM_KONTRAHENCI" select="." >
|
|
|
<xsl:with-param name="group_name" select="$group_name"/>
|
|
<xsl:with-param name="group_name" select="$group_name"/>
|
|
|
|
|
+ <xsl:with-param name="resulset" select="$resulset"/>
|
|
|
</xsl:apply-templates>
|
|
</xsl:apply-templates>
|
|
|
</xsl:when>
|
|
</xsl:when>
|
|
|
<xsl:otherwise>
|
|
<xsl:otherwise>
|
|
@@ -458,6 +465,7 @@
|
|
|
<xsl:message>#455 otherwise</xsl:message>
|
|
<xsl:message>#455 otherwise</xsl:message>
|
|
|
<xsl:apply-templates mode="BI_audit_ENERGA_RUM_KONTRAHENCI" select="." >
|
|
<xsl:apply-templates mode="BI_audit_ENERGA_RUM_KONTRAHENCI" select="." >
|
|
|
<xsl:with-param name="group_name" select="$group_name"/>
|
|
<xsl:with-param name="group_name" select="$group_name"/>
|
|
|
|
|
+ <xsl:with-param name="resulset" select="$resulset"/>
|
|
|
</xsl:apply-templates>
|
|
</xsl:apply-templates>
|
|
|
</xsl:otherwise>
|
|
</xsl:otherwise>
|
|
|
</xsl:choose>
|
|
</xsl:choose>
|
|
@@ -470,16 +478,14 @@
|
|
|
</topichead>
|
|
</topichead>
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-<xsl:choose>
|
|
|
|
|
- <xsl:when test="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_old">
|
|
|
|
|
|
|
+ <xsl:choose>
|
|
|
|
|
+ <xsl:when test="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_old">
|
|
|
<topichead navtitle="Powiązania dla wariantu porównawczego raportów (dostępne, nie użyte)"/>
|
|
<topichead navtitle="Powiązania dla wariantu porównawczego raportów (dostępne, nie użyte)"/>
|
|
|
</xsl:when>
|
|
</xsl:when>
|
|
|
- <xsl:otherwise><topichead navtitle="Powiązania dla wariantu porównawczego raportów (niedostępne w danych do raportu)"/></xsl:otherwise>
|
|
|
|
|
- </xsl:choose>
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-<!--<topichead navtitle="Powiązania do wybranych podmiotów/kontrahentów (dla wariantu porównawczego)">
|
|
|
|
|
|
|
+ <xsl:otherwise><topichead navtitle="Powiązania dla wariantu porównawczego raportów (niedostępne w danych do raportu)"/></xsl:otherwise>
|
|
|
|
|
+ </xsl:choose>
|
|
|
|
|
+
|
|
|
|
|
+ <!--<topichead navtitle="Powiązania do wybranych podmiotów/kontrahentów (dla wariantu porównawczego)">
|
|
|
<xsl:for-each select="$sources/sources/source">
|
|
<xsl:for-each select="$sources/sources/source">
|
|
|
<xsl:variable name="source" select="."/>
|
|
<xsl:variable name="source" select="."/>
|
|
|
<topichead navtitle="żródło: {.} -(podział na spółki własne) Powiązania wybranych podmiotów/kontrahentów">
|
|
<topichead navtitle="żródło: {.} -(podział na spółki własne) Powiązania wybranych podmiotów/kontrahentów">
|
|
@@ -540,7 +546,7 @@
|
|
|
|
|
|
|
|
</topichead>
|
|
</topichead>
|
|
|
</xsl:for-each>
|
|
</xsl:for-each>
|
|
|
- </topichead>-->
|
|
|
|
|
|
|
+ </topichead>-->
|
|
|
|
|
|
|
|
<topichead navtitle="Powiązania do kontrahentów z KRS ogólnie (podział na źródła)">
|
|
<topichead navtitle="Powiązania do kontrahentów z KRS ogólnie (podział na źródła)">
|
|
|
|
|
|
|
@@ -684,6 +690,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <topichead navtitle="Wykryte powiązania do śledzonych obiektów w ramach Operacyjnej Bazy Danych (podział na źródła)">
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:variable name="BI_audit_operational_raport_note_fixed">
|
|
|
|
|
+ <BI_audit_operational_raport_note_fixed>
|
|
|
|
|
+ <xsl:for-each select="$sources/sources/source">
|
|
|
|
|
+ <xsl:variable name="source" select="."/>
|
|
|
|
|
+ <xsl:for-each select="$interested_row/interested_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[object[position() = 1]/*/source=current()]/object//BI_audit_operational_raport_note" >
|
|
|
|
|
+ <element>
|
|
|
|
|
+ <xsl:attribute name="key" select="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_operational_raport_note.key(ID)"/>
|
|
|
|
|
+ <xsl:attribute name="source" select="$source"/>
|
|
|
|
|
+ </element>
|
|
|
|
|
+ </xsl:for-each>
|
|
|
|
|
+ </xsl:for-each>
|
|
|
|
|
+ </BI_audit_operational_raport_note_fixed>
|
|
|
|
|
+ </xsl:variable>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:variable name="BI_audit_operational_raport_note_uniq">
|
|
|
|
|
+ <BI_audit_operational_raport_note_uniq>
|
|
|
|
|
+ <xsl:for-each select="$sources/sources/source">
|
|
|
|
|
+ <xsl:variable name="source" select="."/>
|
|
|
|
|
+ <xsl:for-each-group select="$BI_audit_operational_raport_note_fixed//element[@source=$source]" group-by="@key">
|
|
|
|
|
+ <element>
|
|
|
|
|
+ <xsl:attribute name="key" select="@key"/>
|
|
|
|
|
+ <xsl:attribute name="source" select="$source"/>
|
|
|
|
|
+ </element>
|
|
|
|
|
+ </xsl:for-each-group>
|
|
|
|
|
+ </xsl:for-each>
|
|
|
|
|
+ </BI_audit_operational_raport_note_uniq>
|
|
|
|
|
+ </xsl:variable>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:for-each select="$sources/sources/source">
|
|
|
|
|
+ <xsl:variable name="source" select="."/>
|
|
|
|
|
+ <xsl:message>#719 Powiązania do BI_audit_operational_raport_note (podział na źródła) = <xsl:value-of select="."/></xsl:message>
|
|
|
|
|
+ <topichead navtitle="żródło:{.} Powiązania do śledzonych obiektów">
|
|
|
|
|
+ <xsl:for-each select="$BI_audit_operational_raport_note_uniq//element[@source=$source]">
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:for-each-group select="$interested_row/interested_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[object[position() = 1]/*/source= $source]/object//BI_audit_operational_raport_note[ system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_operational_raport_note.key(ID) = current()/@key ]" group-by=" system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_KRS_person.key(nazwisko,imiona,pesel,'')">
|
|
|
|
|
+ <xsl:variable name="group_name" select="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_operational_raport_note.key(ID)"/>
|
|
|
|
|
+ <!--<topichead navtitle="{object[position() = last()]/*/concat(Pelna_nazwa_kontrahenta,' ',Miejscowosc,' ',NIP)} powiązań ({ count( current-group())}) ">-->
|
|
|
|
|
+
|
|
|
|
|
+ <!--<xsl:choose>
|
|
|
|
|
+ <xsl:when test="//BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_old/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/object[ position() = last()]/BI_audit_ENERGA_RUM_KONTRAHENCI/ID=$BI_audit_ENERGA_RUM_KONTRAHENCI.ID">-->
|
|
|
|
|
+ <xsl:message>#733 counting ile notes dla $group_name=<xsl:value-of select="$group_name"/> <xsl:value-of select="count($BI_audit_operational_raport_note_fixed//element[@key = $group_name])"/></xsl:message>
|
|
|
|
|
+ <xsl:choose> <!-- testowanie czy jest w roznych zrodlach ten sam pesel -->
|
|
|
|
|
+ <xsl:when test="count($BI_audit_operational_raport_note_fixed//element[@key = $group_name]) > 1">
|
|
|
|
|
+ <!-- pierwszy vs obecny _row powiazania z danym PESEL-->
|
|
|
|
|
+ <xsl:variable name="min" select="$interested_row/interested_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[ object//BI_audit_operational_raport_note[ system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_operational_raport_note.key(ID) = $group_name ]][1]/@pos"/>
|
|
|
|
|
+ <xsl:variable name="curr" select="../../.././@pos"/>
|
|
|
|
|
+ <xsl:message>#740 pozycja $min = <xsl:value-of select="$min"/> ; curr = <xsl:value-of select="$curr"/> $group_name = <xsl:value-of select="$group_name"/> ; position()=<xsl:value-of select="position()"/> </xsl:message>
|
|
|
|
|
+ <xsl:choose>
|
|
|
|
|
+ <xsl:when test="$curr = $min and position() = 1">
|
|
|
|
|
+ <xsl:message>#742 - generating first occurence of <xsl:value-of select="$group_name"/></xsl:message>
|
|
|
|
|
+ <xsl:comment>#744 pos <xsl:value-of select="$curr"/></xsl:comment>
|
|
|
|
|
+ <!--<xsl:copy-of select="../../."/>-->
|
|
|
|
|
+ <xsl:apply-templates mode="BI_audit_operational_raport_note" select="." >
|
|
|
|
|
+ <xsl:with-param name="group_name" select="$group_name"/>
|
|
|
|
|
+ </xsl:apply-templates>
|
|
|
|
|
+ </xsl:when>
|
|
|
|
|
+ <xsl:otherwise>
|
|
|
|
|
+ <xsl:variable name="refpos" select="concat($group_name,'_', position())"/>
|
|
|
|
|
+ <topicref href="{$group_name}/{$refpos}.dita"/>
|
|
|
|
|
+ </xsl:otherwise>
|
|
|
|
|
+ </xsl:choose>
|
|
|
|
|
+ </xsl:when>
|
|
|
|
|
+ <xsl:otherwise>
|
|
|
|
|
+ <xsl:message>#522 otherwise</xsl:message>
|
|
|
|
|
+ <xsl:apply-templates mode="BI_audit_operational_raport_note" select="." >
|
|
|
|
|
+ <xsl:with-param name="group_name" select="$group_name"/>
|
|
|
|
|
+ </xsl:apply-templates>
|
|
|
|
|
+ </xsl:otherwise>
|
|
|
|
|
+ </xsl:choose>
|
|
|
|
|
+ </xsl:for-each-group>
|
|
|
|
|
+ </xsl:for-each>
|
|
|
|
|
+ </topichead>
|
|
|
|
|
+ </xsl:for-each>
|
|
|
|
|
+ </topichead>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
</map>
|
|
</map>
|
|
|
<!--</xsl:result-document>-->
|
|
<!--</xsl:result-document>-->
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
@@ -721,7 +809,7 @@
|
|
|
<xsl:copy-of select="$simpletable"/>
|
|
<xsl:copy-of select="$simpletable"/>
|
|
|
<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="700"/>
|
|
|
|
|
|
|
+ <xsl:with-param name="width" select="500"/>
|
|
|
</xsl:apply-templates>
|
|
</xsl:apply-templates>
|
|
|
</p>
|
|
</p>
|
|
|
|
|
|
|
@@ -752,7 +840,7 @@
|
|
|
<xsl:copy-of select="$simpletable"/>
|
|
<xsl:copy-of select="$simpletable"/>
|
|
|
<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="700"/>
|
|
|
|
|
|
|
+ <xsl:with-param name="width" select="500"/>
|
|
|
</xsl:apply-templates>
|
|
</xsl:apply-templates>
|
|
|
</p>
|
|
</p>
|
|
|
|
|
|
|
@@ -775,11 +863,13 @@
|
|
|
<!--(xs:double(sum(current-group()/field[@name='Wartosc_zlecenia_zamowienia_netto_w_PLN__aktualna_'][ string(replace(text(),',','.')) != 'NaN']/number(replace(text(),',','.')) ) )-->
|
|
<!--(xs:double(sum(current-group()/field[@name='Wartosc_zlecenia_zamowienia_netto_w_PLN__aktualna_'][ string(replace(text(),',','.')) != 'NaN']/number(replace(text(),',','.')) ) )-->
|
|
|
<!--(xs:double(sum(current-group()/field[@name='Wartosc_zlecenia_zamowienia_netto_w_PLN__aktualna_'][ string(replace(text(),',','.')) != 'NaN']/number(replace(text(),',','.')) ) )-->
|
|
<!--(xs:double(sum(current-group()/field[@name='Wartosc_zlecenia_zamowienia_netto_w_PLN__aktualna_'][ string(replace(text(),',','.')) != 'NaN']/number(replace(text(),',','.')) ) )-->
|
|
|
<!-- sum( $current/BI_audit_ENERGA_RUM_KONTRAHENCI[ID=$kontrach]/BI_audit_ENERGA_RUM_UMOWY/Wartosc_przedmiotu_umowy_netto_w_PLN__aktualna_) -->
|
|
<!-- sum( $current/BI_audit_ENERGA_RUM_KONTRAHENCI[ID=$kontrach]/BI_audit_ENERGA_RUM_UMOWY/Wartosc_przedmiotu_umowy_netto_w_PLN__aktualna_) -->
|
|
|
- <sum kontrach="{$kontrach}"><xsl:value-of select="xs:double(sum( $current/BI_audit_ENERGA_RUM_KONTRAHENCI[ID=$kontrach]/BI_audit_ENERGA_RUM_UMOWY/number(replace(Wartosc_przedmiotu_umowy_netto_w_PLN__aktualna_,',','.'))))"/></sum>
|
|
|
|
|
|
|
+ <sum kontrach="{$kontrach}"><xsl:value-of select="xs:double(sum( $current/BI_audit_ENERGA_RUM_KONTRAHENCI[ID=$kontrach]/BI_audit_ENERGA_RUM_UMOWY/number(replace(Wartosc,',','.'))))"/></sum>
|
|
|
</xsl:for-each>
|
|
</xsl:for-each>
|
|
|
</transakcje>
|
|
</transakcje>
|
|
|
</xsl:variable>
|
|
</xsl:variable>
|
|
|
- <!--<xsl:copy-of select="$transakcje"/>-->
|
|
|
|
|
|
|
+ <!--<debug.transakcje>
|
|
|
|
|
+ <xsl:copy-of select="$transakcje"/>
|
|
|
|
|
+ </debug.transakcje>-->
|
|
|
<stentry><xsl:value-of select=" format-number(xs:double(sum($transakcje/transakcje/sum[ not(text()='NaN')]) div 1000000),'####')"/></stentry>
|
|
<stentry><xsl:value-of select=" format-number(xs:double(sum($transakcje/transakcje/sum[ not(text()='NaN')]) div 1000000),'####')"/></stentry>
|
|
|
</xsl:for-each-group>
|
|
</xsl:for-each-group>
|
|
|
</strow>
|
|
</strow>
|
|
@@ -789,7 +879,7 @@
|
|
|
<xsl:copy-of select="$simpletable"/>
|
|
<xsl:copy-of select="$simpletable"/>
|
|
|
<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="700"/>
|
|
|
|
|
|
|
+ <xsl:with-param name="width" select="500"/>
|
|
|
</xsl:apply-templates>
|
|
</xsl:apply-templates>
|
|
|
</p>
|
|
</p>
|
|
|
|
|
|
|
@@ -801,11 +891,271 @@
|
|
|
|
|
|
|
|
<xsl:template match="BI_audit_ENERGA_RUM_KONTRAHENCI" mode="BI_audit_ENERGA_RUM_KONTRAHENCI">
|
|
<xsl:template match="BI_audit_ENERGA_RUM_KONTRAHENCI" mode="BI_audit_ENERGA_RUM_KONTRAHENCI">
|
|
|
<xsl:param name="group_name" required="yes"/>
|
|
<xsl:param name="group_name" required="yes"/>
|
|
|
|
|
+ <xsl:param name="resulset" required="yes"/>
|
|
|
<xsl:variable name="refpos" select="concat($group_name,'_', position())"/>
|
|
<xsl:variable name="refpos" select="concat($group_name,'_', position())"/>
|
|
|
<xsl:variable name="position" select="position()"/>
|
|
<xsl:variable name="position" select="position()"/>
|
|
|
<topicref href="{$group_name}/{$refpos}.dita">
|
|
<topicref href="{$group_name}/{$refpos}.dita">
|
|
|
<xsl:message>#781 debug : result doc: <xsl:value-of select="$group_name"/>/<xsl:value-of select="$refpos"/></xsl:message>
|
|
<xsl:message>#781 debug : result doc: <xsl:value-of select="$group_name"/>/<xsl:value-of select="$refpos"/></xsl:message>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:variable name="BI_audit_ENERGA_RUM_UMOWY_fix" select="$resulset/BI_audit_ENERGA_RUM_KONTRAHENCI[ID/text()= current()/ID ]"/>
|
|
|
|
|
+
|
|
|
|
|
+ <!--<xsl:variable name="BI_audit_ENERGA_RUM_UMOWY_fix">
|
|
|
|
|
+ <xsl:for-each select="$resulset/BI_audit_ENERGA_RUM_KONTRAHENCI[ID/text()= current()/ID ]">
|
|
|
|
|
+ <xsl:element name="{name()}">
|
|
|
|
|
+ <Data_zawarcia.rok><xsl:value-of select=""/></Data_zawarcia.rok>
|
|
|
|
|
+ <xsl:copy-of select="."/>
|
|
|
|
|
+ </xsl:element>
|
|
|
|
|
+ </xsl:for-each>
|
|
|
|
|
+ </xsl:variable>-->
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:variable name="polarize_spolka_nazwa" select="Pelna_nazwa_kontrahenta"/>
|
|
|
|
|
+ <xsl:variable name="polarize_spolka" select="ID"/>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:variable name="Spolka_glowna">
|
|
|
|
|
+ <Spolka_glowna>
|
|
|
|
|
+ <xsl:for-each-group select="$BI_audit_ENERGA_RUM_UMOWY_fix/BI_audit_ENERGA_RUM_UMOWY" group-by="Spolka_glowna">
|
|
|
|
|
+ <xsl:sort select="Spolka_glowna"/>
|
|
|
|
|
+ <xsl:copy-of select="Spolka_glowna"/>
|
|
|
|
|
+ </xsl:for-each-group>
|
|
|
|
|
+ </Spolka_glowna>
|
|
|
|
|
+ </xsl:variable>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:variable name="Osoba_merytoryczna___nazwisko_i_imie">
|
|
|
|
|
+ <Osoba_merytoryczna___nazwisko_i_imie>
|
|
|
|
|
+ <xsl:for-each-group select="$BI_audit_ENERGA_RUM_UMOWY_fix/BI_audit_ENERGA_RUM_UMOWY" group-by="Osoba_merytoryczna___nazwisko_i_imie">
|
|
|
|
|
+ <xsl:sort select="Osoba_merytoryczna___nazwisko_i_imie"/>
|
|
|
|
|
+ <xsl:copy-of select="Osoba_merytoryczna___nazwisko_i_imie"/>
|
|
|
|
|
+ </xsl:for-each-group>
|
|
|
|
|
+ </Osoba_merytoryczna___nazwisko_i_imie>
|
|
|
|
|
+ </xsl:variable>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:variable name="rok">
|
|
|
|
|
+ <rok>
|
|
|
|
|
+ <xsl:for-each-group select="$BI_audit_ENERGA_RUM_UMOWY_fix/BI_audit_ENERGA_RUM_UMOWY" group-by="tokenize(Data_zawarcia,'\.')[3]">
|
|
|
|
|
+ <xsl:sort select="tokenize(Data_zawarcia,'\.')[3]"/>
|
|
|
|
|
+ <xsl:element name="Data_zawarcia.rok">
|
|
|
|
|
+ <xsl:attribute name="ID" select="ID"/>
|
|
|
|
|
+ <xsl:value-of select="tokenize(Data_zawarcia,'\.')[3]"/>
|
|
|
|
|
+ </xsl:element>
|
|
|
|
|
+ </xsl:for-each-group>
|
|
|
|
|
+ </rok>
|
|
|
|
|
+ </xsl:variable>
|
|
|
|
|
+
|
|
|
|
|
+ <!--<debugs.993>
|
|
|
|
|
+ <xsl:copy-of select="$Spolka_glowna"/>
|
|
|
|
|
+ <xsl:copy-of select="$Osoba_merytoryczna___nazwisko_i_imie"/>
|
|
|
|
|
+ <xsl:copy-of select="$rok"/>
|
|
|
|
|
+ </debugs.993>-->
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <!--Analiza podpisywanych umow w RUM kwotowo wszystkie spółki - w mln (7)-->
|
|
|
|
|
+
|
|
|
|
|
+ <!-- <xsl:variable name="simpletable">
|
|
|
|
|
+ <simpletable frame="all" id="simplebtasdd_fwf_{generate-id()}" system_cache__dita:width_cols="10" system_cache__dita:bypass_rows_with_zero="true" system_cache__dita:bypass_rows_empty="true">
|
|
|
|
|
+
|
|
|
|
|
+ <sthead>
|
|
|
|
|
+ <stentry>Spółka gł.</stentry>
|
|
|
|
|
+ <xsl:for-each select="$rok//Data_zawarcia.rok">
|
|
|
|
|
+ <stentry><xsl:value-of select="."/></stentry>
|
|
|
|
|
+ </xsl:for-each>
|
|
|
|
|
+ <stentry>suma.</stentry>
|
|
|
|
|
+ </sthead>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:for-each select="$Spolka_glowna/Spolka_glowna/Spolka_glowna">
|
|
|
|
|
+ <xsl:variable name="Spolka" select="."/>
|
|
|
|
|
+ <strow>
|
|
|
|
|
+ <stentry><xsl:value-of select="."/> </stentry>
|
|
|
|
|
+ <xsl:for-each select="$rok//Data_zawarcia.rok">
|
|
|
|
|
+ <xsl:variable name="rok_cur" select="."/>
|
|
|
|
|
+ <xsl:message>#109 spółka <xsl:value-of select="$Spolka"/> / Rok <xsl:value-of select="$rok_cur"/></xsl:message>
|
|
|
|
|
+ <stentry><xsl:value-of select="ceiling(sum($BI_audit_ENERGA_RUM_UMOWY_fix//default_db:BI_audit_ENERGA_RUM_UMOWY[ Spolka_glowna = $Spolka and tokenize(Data_zawarcia,'\.')[3] = $rok_cur ]/Wartosc) div 1000000) "/>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:variable name="Benford:table">
|
|
|
|
|
+ <Benford:table>
|
|
|
|
|
+ <xsl:attribute name="Benford:year" select="$rok_cur"/>
|
|
|
|
|
+ <xsl:attribute name="Benford:subject" select="$Spolka"/>
|
|
|
|
|
+ <xsl:for-each select="$BI_audit_ENERGA_RUM_UMOWY_fix//BI_audit_ENERGA_RUM_UMOWY[ Spolka_glowna = $Spolka and tokenize(Data_zawarcia,'\.')[3] = $rok_cur ]">
|
|
|
|
|
+ <Benford:value><xsl:value-of select="substring( Wartosc,1,1)"/></Benford:value>
|
|
|
|
|
+ </xsl:for-each>
|
|
|
|
|
+ </Benford:table>
|
|
|
|
|
+ </xsl:variable>
|
|
|
|
|
+ <xsl:if test="$Benford:table//Benford:value">
|
|
|
|
|
+ <!-\-<xsl:copy-of select="$Benford:table"/>-\->
|
|
|
|
|
+ <xsl:variable name="Benford:table_analys">
|
|
|
|
|
+ <xsl:apply-templates mode="Benford:table_analys" select="$Benford:table"/>
|
|
|
|
|
+ </xsl:variable>
|
|
|
|
|
+ <xsl:copy-of select="$Benford:table_analys"/>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:apply-templates mode="system_cache__dita:topic" select="$Benford:table_analys">
|
|
|
|
|
+ <xsl:with-param name="Benford:subject.xml" select="$BI_audit_ENERGA_RUM_UMOWY_fix//BI_audit_ENERGA_RUM_UMOWY[ Spolka_glowna = $Spolka and tokenize(Data_zawarcia,'\.')[3] = $rok_cur ]"/>
|
|
|
|
|
+ <xsl:with-param name="Benford:subject" select="$Spolka"/>
|
|
|
|
|
+ <xsl:with-param name="Benford:year" select="tokenize(Data_zawarcia,'\.')[3]"/>
|
|
|
|
|
+ <xsl:with-param name="Benford:subject.value" select="'Wartosc'"/>
|
|
|
|
|
+ <xsl:with-param name="Benford:subject.description" select="'Numer_rejestrowy Przedmiot_umowy Kontrahenci'"/>
|
|
|
|
|
+ <!-\-<xsl:with-param name="id" select="concat('simpleetableaaa_benford',position(),'_',generate-id())"/>-\->
|
|
|
|
|
+ </xsl:apply-templates>
|
|
|
|
|
+ </xsl:if>
|
|
|
|
|
+
|
|
|
|
|
+ </stentry> <!-\- '###,###.00' -\->
|
|
|
|
|
+ </xsl:for-each>
|
|
|
|
|
+ <stentry><xsl:value-of select="ceiling(sum($BI_audit_ENERGA_RUM_UMOWY_fix//BI_audit_ENERGA_RUM_UMOWY[ Spolka_glowna = $Spolka ]/Wartosc) div 1000000) "/>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:variable name="Benford:table">
|
|
|
|
|
+ <Benford:table>
|
|
|
|
|
+ <xsl:attribute name="Benford:year" select="'suma'"/>
|
|
|
|
|
+ <xsl:attribute name="Benford:subject" select="$Spolka"/>
|
|
|
|
|
+ <xsl:for-each select="$BI_audit_ENERGA_RUM_UMOWY_fix//BI_audit_ENERGA_RUM_UMOWY[ Spolka_glowna = $Spolka ]">
|
|
|
|
|
+ <Benford:value><xsl:value-of select="substring( Wartosc,1,1)"/></Benford:value>
|
|
|
|
|
+ </xsl:for-each>
|
|
|
|
|
+ </Benford:table>
|
|
|
|
|
+ </xsl:variable>
|
|
|
|
|
+ <xsl:if test="$Benford:table//Benford:value">
|
|
|
|
|
+ <!-\-<xsl:copy-of select="$Benford:table"/>-\->
|
|
|
|
|
+ <xsl:variable name="Benford:table_analys">
|
|
|
|
|
+ <xsl:apply-templates mode="Benford:table_analys" select="$Benford:table"/>
|
|
|
|
|
+ </xsl:variable>
|
|
|
|
|
+ <xsl:copy-of select="$Benford:table_analys"/>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:apply-templates mode="system_cache__dita:topic" select="$Benford:table_analys">
|
|
|
|
|
+ <xsl:with-param name="Benford:subject.xml" select="$BI_audit_ENERGA_RUM_UMOWY_fix//BI_audit_ENERGA_RUM_UMOWY[ Spolka_glowna = $Spolka ]"/>
|
|
|
|
|
+ <xsl:with-param name="Benford:subject" select="$Spolka"/>
|
|
|
|
|
+ <xsl:with-param name="Benford:year" select="'Data_zawarcia.rok'"/>
|
|
|
|
|
+ <xsl:with-param name="Benford:subject.value" select="'Wartosc'"/>
|
|
|
|
|
+ <xsl:with-param name="Benford:subject.description" select="'Numer_rejestrowy Przedmiot_umowy Kontrahenci'"/>
|
|
|
|
|
+ <!-\-<xsl:with-param name="id" select="concat('simpleetablebbb_benford',position(),'_',generate-id())"/>-\->
|
|
|
|
|
+ </xsl:apply-templates>
|
|
|
|
|
+ </xsl:if>
|
|
|
|
|
+
|
|
|
|
|
+ </stentry>
|
|
|
|
|
+ </strow>
|
|
|
|
|
+ </xsl:for-each>
|
|
|
|
|
+ </simpletable>
|
|
|
|
|
+ </xsl:variable>
|
|
|
|
|
+ <xsl:apply-templates mode="Benford:ditamap_root.embedded_map.topic.body" select="$simpletable">
|
|
|
|
|
+ <xsl:with-param name="topic.id" select=""/>
|
|
|
|
|
+ </xsl:apply-templates>-->
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <!--<debug.1187>
|
|
|
|
|
+ <xsl:copy-of select="$topic"/>
|
|
|
|
|
+ </debug.1187>-->
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <!--<related-links>
|
|
|
|
|
+ <xsl:apply-templates mode="ditamap_root.embedded_map" select="$topic">
|
|
|
|
|
+ <xsl:with-param name="path_rel" select="'../'"/>
|
|
|
|
|
+ <xsl:with-param name="xref" select="'link'"/>
|
|
|
|
|
+ </xsl:apply-templates>
|
|
|
|
|
+ </related-links>-->
|
|
|
|
|
+ <!--<xsl:apply-templates mode="Benford:ditamap_root.embedded_map.body.topic.cleanup" select="$topic"/>-->
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:variable name="topic">
|
|
|
|
|
+ <topic id="topic_ghxf_rum_aos_{ generate-id()}" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
|
+ xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
|
|
|
|
|
+ <xsl:variable name="polarize_osoba_string" select="'Hirsz' "/>
|
|
|
|
|
+ <title>Analiza podpisywanych umow w RUM [] - Osoby merytoryczne (1). </title>
|
|
|
|
|
+ <xsl:message>#1106 Analiza podpisywanych umow w RUM - Osoby merytoryczne. </xsl:message>
|
|
|
|
|
+ <body>
|
|
|
|
|
+ <simpletable frame="all" id="simpgletablesss_inaaz_fwf_{generate-id()}" system_cache__dita:width_cols="auto" > <!-- system_cache__dita:width_cols="10" system_cache__dita:bypass_rows_with_zero="true" system_cache__dita:bypass_rows_empty="true" -->
|
|
|
|
|
+
|
|
|
|
|
+ <sthead>
|
|
|
|
|
+ <stentry>Osoba</stentry>
|
|
|
|
|
+ <xsl:for-each select="$rok//Data_zawarcia.rok">
|
|
|
|
|
+ <stentry><xsl:value-of select="."/></stentry>
|
|
|
|
|
+ </xsl:for-each>
|
|
|
|
|
+ <stentry>Suma</stentry>
|
|
|
|
|
+ </sthead>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:for-each select="$Osoba_merytoryczna___nazwisko_i_imie/Osoba_merytoryczna___nazwisko_i_imie/Osoba_merytoryczna___nazwisko_i_imie ">
|
|
|
|
|
+ <xsl:variable name="Osoba" select="."/>
|
|
|
|
|
+ <strow>
|
|
|
|
|
+ <stentry><xsl:value-of select="."/></stentry>
|
|
|
|
|
+ <xsl:for-each select="$rok//Data_zawarcia.rok">
|
|
|
|
|
+ <xsl:variable name="rok_cur" select="."/>
|
|
|
|
|
+ <xsl:message>#194 Osoba <xsl:value-of select="$Osoba"/> / Rok <xsl:value-of select="$rok_cur"/></xsl:message>
|
|
|
|
|
+ <stentry>
|
|
|
|
|
+ <xsl:value-of select="system_cache__dita:big_values_format(sum($BI_audit_ENERGA_RUM_UMOWY_fix//BI_audit_ENERGA_RUM_UMOWY[ lower-case(Osoba_merytoryczna___nazwisko_i_imie) = lower-case($Osoba) and tokenize(Data_zawarcia,'\.')[3] = $rok_cur ]/number(Wartosc))) "/>
|
|
|
|
|
+ <xsl:variable name="Benford:table">
|
|
|
|
|
+ <Benford:table>
|
|
|
|
|
+ <xsl:attribute name="Benford:year" select="."/>
|
|
|
|
|
+ <xsl:attribute name="Benford:subject" select="$Osoba"/>
|
|
|
|
|
+ <xsl:for-each select="$BI_audit_ENERGA_RUM_UMOWY_fix//BI_audit_ENERGA_RUM_UMOWY[ lower-case(Osoba_merytoryczna___nazwisko_i_imie) = lower-case($Osoba) and tokenize(Data_zawarcia,'\.')[3] = $rok_cur and not(Wartosc = '0' )]">
|
|
|
|
|
+ <Benford:value><xsl:value-of select="substring( Wartosc,1,1)"/></Benford:value>
|
|
|
|
|
+ </xsl:for-each>
|
|
|
|
|
+ </Benford:table>
|
|
|
|
|
+ </xsl:variable>
|
|
|
|
|
+ <xsl:if test="$Benford:table//Benford:value">
|
|
|
|
|
+ <!--<xsl:copy-of select="$Benford:table"/>-->
|
|
|
|
|
+ <xsl:variable name="Benford:table_analys">
|
|
|
|
|
+ <xsl:apply-templates mode="Benford:table_analys" select="$Benford:table"/>
|
|
|
|
|
+ </xsl:variable>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:comment>#1138 lower $Benford:table_analys</xsl:comment>
|
|
|
|
|
+ <xsl:copy-of select="$Benford:table_analys"/>
|
|
|
|
|
+ <xsl:comment>#1138B upper EOF $Benford:table_analys</xsl:comment>
|
|
|
|
|
+ <xsl:apply-templates mode="system_cache__dita:topic" select="$Benford:table_analys">
|
|
|
|
|
+ <xsl:with-param name="Benford:subject.xml" select="$BI_audit_ENERGA_RUM_UMOWY_fix//BI_audit_ENERGA_RUM_UMOWY[ lower-case(Osoba_merytoryczna___nazwisko_i_imie) = lower-case($Osoba) and tokenize(Data_zawarcia,'\.')[3] = $rok_cur ]"/>
|
|
|
|
|
+ <xsl:with-param name="Benford:subject" select="'Osoba_merytoryczna___nazwisko_i_imie'"/>
|
|
|
|
|
+ <xsl:with-param name="Benford:year" select="'Data_zawarcia'"/>
|
|
|
|
|
+ <xsl:with-param name="Benford:subject.value" select="'Wartosc'"/>
|
|
|
|
|
+ <xsl:with-param name="Benford:subject.description" select="'Data_zawarcia Numer_rejestrowy Przedmiot_umowy Strony_umowy Kontrahenci'"/>
|
|
|
|
|
+ <xsl:with-param name="Benford:force_raport" select="true()"/>
|
|
|
|
|
+ <!--<xsl:with-param name="id" select="concat('simpleetableadddaa_benford',position(),'_',generate-id())"/>-->
|
|
|
|
|
+ </xsl:apply-templates>
|
|
|
|
|
+ </xsl:if>
|
|
|
|
|
+ </stentry>
|
|
|
|
|
+ <!-- '###,###.00' -->
|
|
|
|
|
+ </xsl:for-each>
|
|
|
|
|
+ <stentry>
|
|
|
|
|
+ <xsl:value-of select="system_cache__dita:big_values_format(sum($BI_audit_ENERGA_RUM_UMOWY_fix//BI_audit_ENERGA_RUM_UMOWY[ lower-case(Osoba_merytoryczna___nazwisko_i_imie) = lower-case($Osoba) ]/number(Wartosc) ))"/>
|
|
|
|
|
+ <xsl:variable name="Benford:table">
|
|
|
|
|
+ <Benford:table>
|
|
|
|
|
+ <xsl:attribute name="Benford:year" select="'SUMA'"/>
|
|
|
|
|
+ <xsl:attribute name="Benford:subject" select="$Osoba"/>
|
|
|
|
|
+ <xsl:for-each select="$BI_audit_ENERGA_RUM_UMOWY_fix//BI_audit_ENERGA_RUM_UMOWY[ lower-case(Osoba_merytoryczna___nazwisko_i_imie) = lower-case($Osoba) and not(Wartosc = '0' )]">
|
|
|
|
|
+ <Benford:value><xsl:value-of select="substring( Wartosc,1,1)"/></Benford:value>
|
|
|
|
|
+ </xsl:for-each>
|
|
|
|
|
+ </Benford:table>
|
|
|
|
|
+ </xsl:variable>
|
|
|
|
|
+ <xsl:if test="$Benford:table//Benford:value">
|
|
|
|
|
+ <!--<xsl:copy-of select="$Benford:table"/>-->
|
|
|
|
|
+ <xsl:variable name="Benford:table_analys">
|
|
|
|
|
+ <xsl:apply-templates mode="Benford:table_analys" select="$Benford:table"/>
|
|
|
|
|
+ </xsl:variable>
|
|
|
|
|
+ <xsl:copy-of select="$Benford:table_analys"/>
|
|
|
|
|
+ <xsl:apply-templates mode="system_cache__dita:topic" select="$Benford:table_analys">
|
|
|
|
|
+ <xsl:with-param name="Benford:subject.xml" select="$BI_audit_ENERGA_RUM_UMOWY_fix//BI_audit_ENERGA_RUM_UMOWY[ lower-case(Osoba_merytoryczna___nazwisko_i_imie) = lower-case($Osoba) ]"/>
|
|
|
|
|
+ <xsl:with-param name="Benford:subject" select="'Osoba_merytoryczna___nazwisko_i_imie'"/>
|
|
|
|
|
+ <xsl:with-param name="Benford:year" select="'Data_zawarcia'"/>
|
|
|
|
|
+ <xsl:with-param name="Benford:subject.value" select="'Wartosc'"/>
|
|
|
|
|
+ <xsl:with-param name="Benford:subject.description" select="'Data_zawarcia Numer_rejestrowy Przedmiot_umowy Strony_umowy Kontrahenci'"/>
|
|
|
|
|
+ <!--<xsl:with-param name="id" select="concat('simpleetableahhaa_benford',position(),'_',generate-id())"/>-->
|
|
|
|
|
+ </xsl:apply-templates>
|
|
|
|
|
+ </xsl:if>
|
|
|
|
|
+ </stentry>
|
|
|
|
|
+ </strow>
|
|
|
|
|
+ <!--<debug.1182.rum_umowy>
|
|
|
|
|
+ <xsl:copy-of select="$BI_audit_ENERGA_RUM_UMOWY_fix//BI_audit_ENERGA_RUM_UMOWY[ lower-case(Osoba_merytoryczna___nazwisko_i_imie) = lower-case($Osoba) ]"/>
|
|
|
|
|
+ </debug.1182.rum_umowy>-->
|
|
|
|
|
+ </xsl:for-each>
|
|
|
|
|
+ </simpletable>
|
|
|
|
|
+ </body>
|
|
|
|
|
+ </topic>
|
|
|
|
|
+ </xsl:variable>
|
|
|
|
|
+
|
|
|
<xsl:result-document href="{$temp}/{$uuid}/{$group_name}/{$refpos}.dita">
|
|
<xsl:result-document href="{$temp}/{$uuid}/{$group_name}/{$refpos}.dita">
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <!-- Analiza spójności liczbowej dla ID kontr <xsl:value-of select="current()/ID"/>
|
|
|
|
|
+-->
|
|
|
|
|
+
|
|
|
<topic id="{$uuid}topic_simpletable_person_{$group_name}_{position()}" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
<topic id="{$uuid}topic_simpletable_person_{$group_name}_{position()}" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
|
|
xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
|
|
|
<xsl:variable name="count">
|
|
<xsl:variable name="count">
|
|
@@ -854,13 +1204,24 @@
|
|
|
</xsl:apply-templates>
|
|
</xsl:apply-templates>
|
|
|
</xsl:for-each-group>
|
|
</xsl:for-each-group>
|
|
|
</xsl:for-each-group>
|
|
</xsl:for-each-group>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
<!--</xsl:for-each>-->
|
|
<!--</xsl:for-each>-->
|
|
|
</simpletable>
|
|
</simpletable>
|
|
|
</body>
|
|
</body>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:apply-templates mode="ditamap_root.embedded_map" select="$topic">
|
|
|
|
|
+ <xsl:with-param name="path_rel" select="'../'"/>
|
|
|
|
|
+ <xsl:with-param name="xref" select="'topic'"/>
|
|
|
|
|
+ </xsl:apply-templates>
|
|
|
</topic>
|
|
</topic>
|
|
|
</xsl:result-document>
|
|
</xsl:result-document>
|
|
|
|
|
+
|
|
|
|
|
+ <!--<debug.1221>
|
|
|
|
|
+ <xsl:copy-of select="$topic"/>
|
|
|
|
|
+ </debug.1221>-->
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:apply-templates mode="ditamap_root.embedded_map.topic_child_to_ditamap" select="$topic">
|
|
|
|
|
+ <xsl:with-param name="path_rel" select="''"/>
|
|
|
|
|
+ </xsl:apply-templates>
|
|
|
</topicref>
|
|
</topicref>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -929,6 +1290,88 @@
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ <xsl:template match="BI_audit_operational_raport_note" mode="BI_audit_operational_raport_note">
|
|
|
|
|
+ <xsl:param name="group_name" required="yes"/>
|
|
|
|
|
+ <xsl:variable name="refpos" select="concat($group_name,'_', position())"/>
|
|
|
|
|
+ <xsl:variable name="position" select="position()"/>
|
|
|
|
|
+ <topicref href="{$group_name}/{$refpos}.dita">
|
|
|
|
|
+ <xsl:message>#1021 debug : result doc: <xsl:value-of select="$group_name"/>/<xsl:value-of select="$refpos"/></xsl:message>
|
|
|
|
|
+ <xsl:result-document href="{$temp}/{$uuid}/{$group_name}/{$refpos}.dita">
|
|
|
|
|
+ <topic id="{$uuid}topic_simpletable_person_{$group_name}_{position()}" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
|
+ xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
|
|
|
|
|
+ <xsl:variable name="count">
|
|
|
|
|
+ <count><!-- concat(object/*/ID -->
|
|
|
|
|
+ <xsl:for-each-group select="current-group()/../../../." group-by="object/*/BI_audit_operational_raport_note/ID">
|
|
|
|
|
+ <row/>
|
|
|
|
|
+ </xsl:for-each-group>
|
|
|
|
|
+ </count>
|
|
|
|
|
+ </xsl:variable>
|
|
|
|
|
+
|
|
|
|
|
+ <title>Do śledzonego obiektu występuje <!--<xsl:value-of select="position()"/> /--><xsl:value-of select="count( $count//row)"/> powiązań.
|
|
|
|
|
+ adnotacje : <xsl:value-of select="note"/><xsl:text> </xsl:text>, utworzona przez <xsl:value-of select="A_RECORD_CREATE_AUTHOR"/><xsl:text> </xsl:text>
|
|
|
|
|
+ w dniu <xsl:value-of select="A_RECORD_CREATE_DATE"/><xsl:text> </xsl:text>
|
|
|
|
|
+ </title>
|
|
|
|
|
+ <!--<curr><xsl:copy-of select="current-group()"></xsl:copy-of></curr>-->
|
|
|
|
|
+ <!--<curr_parrent><xsl:copy-of select="current-group()/../../."></xsl:copy-of></curr_parrent>-->
|
|
|
|
|
+ <!--<parent><xsl:copy-of select="../../."/></parent>-->
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <body>
|
|
|
|
|
+ <draft-comment author="a.binder">#1042 - odziedziczone Tu jest blad dla szukania ogolnego - zaklada ze sa kontrahenci - trzeba zrobic funckje TODO
|
|
|
|
|
+
|
|
|
|
|
+ </draft-comment>
|
|
|
|
|
+ <p>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:apply-templates mode="enter_to_ph_text" select="long_note/text()">
|
|
|
|
|
+ <xsl:with-param name="element" select="'entry'"/>
|
|
|
|
|
+ </xsl:apply-templates>
|
|
|
|
|
+ </p>
|
|
|
|
|
+ <simpletable frame="all" relcolwidth="1* 3* 3*" id="{$uuid}simpletable_rows__child_person_{$group_name}_{$refpos}">
|
|
|
|
|
+ <strow>
|
|
|
|
|
+ <stentry>Lp</stentry>
|
|
|
|
|
+ <!--<stentry>Uwagi!</stentry>-->
|
|
|
|
|
+ <stentry>Osoba od</stentry>
|
|
|
|
|
+ <stentry>Firma do</stentry>
|
|
|
|
|
+ </strow>
|
|
|
|
|
+ <!-- <xsl:for-each select="current-group()[ position() < 10 ] ">-->
|
|
|
|
|
+ <xsl:variable name="current_group_person" select="current-group()/../../../."/>
|
|
|
|
|
+ <xsl:variable name="position_1" select="position()"/>
|
|
|
|
|
+ <xsl:variable name="firma_do_id" select="../object[position() = last()]/*[ position() = 1]/ID"/>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:for-each-group select="current-group()/../../../.[ position() < 10 ] " group-by="object[position() = last()]/*[ position() = 1]/concat(name(),ID,imiona,nazwisko,pesel,nip)"><!-- firmy do -->
|
|
|
|
|
+ <xsl:variable name="position_1" select="position()"/>
|
|
|
|
|
+ <xsl:variable name="firma_do_id" select="object[position() = last()]/*[ position() = 1]/ID"/>
|
|
|
|
|
+ <xsl:comment>#1064 firma do <xsl:value-of select="object[position() = last()]/*[ position() = 1]/concat(name(),ID,imiona,nazwisko,pesel,nip)"/></xsl:comment>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:for-each-group select="$current_group_person[ object[position() = last()]/*[position()=1]/ID = $firma_do_id and position() < 10 ] " group-by="object[position() = 1]/*[ position() = 1]/concat(name(),ID,imiona,nazwisko,pesel,nip)"> <!-- pracownicy -->
|
|
|
|
|
+ <xsl:apply-templates mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.middle_ref" select=".">
|
|
|
|
|
+ <xsl:with-param name="position_1" select="$position_1"/>
|
|
|
|
|
+ <xsl:with-param name="position" select="position()"/>
|
|
|
|
|
+ </xsl:apply-templates>
|
|
|
|
|
+ </xsl:for-each-group>
|
|
|
|
|
+ </xsl:for-each-group>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <!--</xsl:for-each>-->
|
|
|
|
|
+ </simpletable>
|
|
|
|
|
+ </body>
|
|
|
|
|
+ </topic>
|
|
|
|
|
+ </xsl:result-document>
|
|
|
|
|
+ </topicref>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ </xsl:template>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:template match="*|text()|comment()" mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.middle_ref.note"/>
|
|
|
|
|
+ <xsl:template match="BI_audit_operational_raport_note" mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.middle_ref.note">
|
|
|
|
|
+ <xref href="../{system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_operational_raport_note.key(ID)}/{system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_operational_raport_note.key(ID)}_1.dita">
|
|
|
|
|
+ <!--<xsl:value-of select="note"/>-->
|
|
|
|
|
+ </xref>
|
|
|
|
|
+ </xsl:template>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<xsl:template match="*" mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.middle_ref">
|
|
<xsl:template match="*" mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.middle_ref">
|
|
|
<xsl:param name="position_1" required="yes"/>
|
|
<xsl:param name="position_1" required="yes"/>
|
|
|
<xsl:param name="position" required="yes"/>
|
|
<xsl:param name="position" required="yes"/>
|
|
@@ -949,6 +1392,10 @@
|
|
|
<xref href="../{ system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_ENERGA_PRACOWNICY.key(object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY/ID ,object[ position() = last()]/*[ position() = 1]/name(),object[ position() = last()]/*[ position() = 1]/ID,@pos)}.dita">
|
|
<xref href="../{ system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_ENERGA_PRACOWNICY.key(object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY/ID ,object[ position() = last()]/*[ position() = 1]/name(),object[ position() = last()]/*[ position() = 1]/ID,@pos)}.dita">
|
|
|
<xsl:value-of select="object[ position() = 1]/*[ position() = 1 ]/concat(imiona,' ',nazwisko,' (',source,')')"/>
|
|
<xsl:value-of select="object[ position() = 1]/*[ position() = 1 ]/concat(imiona,' ',nazwisko,' (',source,')')"/>
|
|
|
</xref>
|
|
</xref>
|
|
|
|
|
+ <xsl:apply-templates mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.middle_ref.note" select="object[position() = 1]/*[ position() = 1]/*"/>
|
|
|
|
|
+ <!--<test>
|
|
|
|
|
+ <xsl:copy-of select="object[position() = 1]/*[ position() = 1]"></xsl:copy-of>
|
|
|
|
|
+ </test>-->
|
|
|
</stentry>
|
|
</stentry>
|
|
|
<stentry>
|
|
<stentry>
|
|
|
<xsl:choose>
|
|
<xsl:choose>
|
|
@@ -1393,6 +1840,9 @@
|
|
|
</simpletable>
|
|
</simpletable>
|
|
|
|
|
|
|
|
</p>
|
|
</p>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<p>
|
|
<p>
|
|
|
Podpisane umowy:<!--(<xsl:value-of select="../BI_audit_ENERGA_RUM_KONTRAHENCI[ID/text()='2816']/BI_audit_ENERGA_RUM_UMOWY/Tytul_dokumentu"/>)-->
|
|
Podpisane umowy:<!--(<xsl:value-of select="../BI_audit_ENERGA_RUM_KONTRAHENCI[ID/text()='2816']/BI_audit_ENERGA_RUM_UMOWY/Tytul_dokumentu"/>)-->
|
|
|
<!-- (<xsl:value-of select="current()/object[ position() = last() ]/BI_audit_ENERGA_RUM_KONTRAHENCI/ID "/>)-->
|
|
<!-- (<xsl:value-of select="current()/object[ position() = last() ]/BI_audit_ENERGA_RUM_KONTRAHENCI/ID "/>)-->
|
|
@@ -1477,6 +1927,11 @@
|
|
|
</xsl:choose>
|
|
</xsl:choose>
|
|
|
</xsl:for-each>
|
|
</xsl:for-each>
|
|
|
</simpletable>
|
|
</simpletable>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
</p>
|
|
</p>
|
|
|
</body>
|
|
</body>
|
|
|
</topic>
|
|
</topic>
|
|
@@ -1834,6 +2289,7 @@
|
|
|
<xsl:copy-of select="."/>-->
|
|
<xsl:copy-of select="."/>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
<simpletable frame="all" relcolwidth="1* 2* 2* 4*" id="{$uuid}simpletable_rows__child_cheat_7{$group_name.id}_path__{generate-id()}">
|
|
<simpletable frame="all" relcolwidth="1* 2* 2* 4*" id="{$uuid}simpletable_rows__child_cheat_7{$group_name.id}_path__{generate-id()}">
|
|
|
<strow>
|
|
<strow>
|
|
|
<stentry>Lp</stentry>
|
|
<stentry>Lp</stentry>
|
|
@@ -1881,7 +2337,7 @@
|
|
|
</xsl:for-each>
|
|
</xsl:for-each>
|
|
|
</xsl:otherwise>
|
|
</xsl:otherwise>
|
|
|
</xsl:choose>
|
|
</xsl:choose>
|
|
|
-
|
|
|
|
|
|
|
+ <xsl:apply-templates mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.middle_ref.note" select="*/*"/>
|
|
|
</stentry>
|
|
</stentry>
|
|
|
</strow>
|
|
</strow>
|
|
|
</xsl:for-each>
|
|
</xsl:for-each>
|