|
|
@@ -0,0 +1,1314 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
|
+ 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:ogr="http://ogr.maptools.org/"
|
|
|
+ exclude-result-prefixes="xs"
|
|
|
+ version="2.0">
|
|
|
+
|
|
|
+ <xsl:output indent="yes"/>
|
|
|
+ <xsl:strip-space elements="*"/>
|
|
|
+
|
|
|
+ <!--<xsl:param name="xref_level" select="5"/>-->
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:variable name="KRS_own">
|
|
|
+ <KRS_own>
|
|
|
+ <KRS>0000033455</KRS>
|
|
|
+ <KRS>0000049425</KRS>
|
|
|
+ <KRS>0000207049</KRS>
|
|
|
+ <KRS>0000372150</KRS>
|
|
|
+ <KRS>0000381284</KRS>
|
|
|
+ <KRS>0000391862</KRS>
|
|
|
+ <KRS>0000438248</KRS>
|
|
|
+ <KRS>0000538920</KRS>
|
|
|
+ <KRS>0000538927</KRS>
|
|
|
+ <KRS>0000538929</KRS>
|
|
|
+ <KRS>0000538935</KRS>
|
|
|
+ <KRS>0000538947</KRS>
|
|
|
+ <KRS>0000538948</KRS>
|
|
|
+ <KRS>0000538966</KRS>
|
|
|
+ <KRS>0000539158</KRS>
|
|
|
+ <KRS>0000539818</KRS>
|
|
|
+ <KRS>0000540064</KRS>
|
|
|
+ <KRS>0000033455</KRS><!-- ENERGA-OPER -ATOR SPÓŁKA AKCYJNA -->
|
|
|
+ <KRS>0000007426</KRS>
|
|
|
+ <KRS>0000025667</KRS>
|
|
|
+ </KRS_own>
|
|
|
+ </xsl:variable>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template match="RelatedFeatureRoot" mode="preprocess_root_BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA">
|
|
|
+ <xsl:message>#37 template match="RelatedFeatureRoot" mode="preprocess_root_BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA"</xsl:message>
|
|
|
+ <xsl:apply-templates mode="preprocess_root_BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA"/>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="*|comment()|text()" mode="preprocess_root_BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA"/>
|
|
|
+
|
|
|
+ <xsl:template match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA" mode="preprocess_root_BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA">
|
|
|
+ <xsl:message>#42 template match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA" mode="preprocess_root_BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA"</xsl:message>
|
|
|
+ <!-- Now search for dita_graphs -->
|
|
|
+ <xsl:variable name="dita">
|
|
|
+ <xsl:apply-templates select="." mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_statystyka_pracownik.dita"/>
|
|
|
+ </xsl:variable>
|
|
|
+
|
|
|
+ <xsl:for-each select="$dita//simpletable">
|
|
|
+ <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:template>
|
|
|
+
|
|
|
+ <xsl:template match="RelatedFeatureRoot" mode="postprocess_root_BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA"/>
|
|
|
+
|
|
|
+ <xsl:template match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_old" mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row"/>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA" mode="ditamap_root">
|
|
|
+ <!--<xsl:result-document href="energa_bledy_rum.ditamap">-->
|
|
|
+ <map xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
+ xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:map.xsd">
|
|
|
+ <title>raport z przetwarzania Powiązań
|
|
|
+ oprac. A.Binder Rip/Procesy5
|
|
|
+ </title>
|
|
|
+ <!-- osoby Akceptujacy_merytorycznie___nazwisko_i_imie -->
|
|
|
+ <xsl:variable name="resulset" select="."/> <!-- current() -->
|
|
|
+
|
|
|
+ <!--<xsl:variable name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA" select="."/>-->
|
|
|
+ <xsl:variable name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA">
|
|
|
+ <xsl:for-each-group select="BI_audit_ENERGA_PRACOWNICY" group-by="pesel">
|
|
|
+ <xsl:copy-of select="."/>
|
|
|
+ </xsl:for-each-group>
|
|
|
+ <!--$BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA//BI_audit_ENERGA_PRACOWNICY[pesel/text()=$current_pesel_2][1]-->
|
|
|
+ </xsl:variable>
|
|
|
+
|
|
|
+ <xsl:variable name="sources">
|
|
|
+ <sources>
|
|
|
+ <xsl:for-each-group select="$resulset/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY" group-by="source">
|
|
|
+ <source><xsl:value-of select="source"/></source>
|
|
|
+ </xsl:for-each-group>
|
|
|
+ </sources>
|
|
|
+ </xsl:variable>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:variable name="interested_row">
|
|
|
+ <interested_row>
|
|
|
+ <xsl:for-each select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row">
|
|
|
+ <!--<xsl:variable name="test">
|
|
|
+ <test>
|
|
|
+ <xsl:for-each select="object/*[ position() = 1]">
|
|
|
+ <xsl:variable name="cur" select="."/>
|
|
|
+ <xsl:for-each select="$KRS_search/KRS_search/KRS">
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="$cur/krs = ."><OK/></xsl:when>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:for-each>
|
|
|
+ </xsl:for-each>
|
|
|
+ </test>
|
|
|
+ </xsl:variable>-->
|
|
|
+ <xsl:variable name="test">
|
|
|
+ <test>
|
|
|
+ <xsl:variable name="cur_krs" select="object[ position() = last() ]/BI_audit_ENERGA_RUM_KONTRAHENCI/KRS"/>
|
|
|
+ <xsl:if test="not($KRS_own//KRS/text() = $cur_krs)"><OK/></xsl:if>
|
|
|
+ </test>
|
|
|
+ </xsl:variable>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="$test/test/OK">
|
|
|
+ <xsl:message>#76 OKOK trasa <xsl:value-of select="position()"/></xsl:message>
|
|
|
+ <xsl:copy-of select="."/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:message>#76 unwanted trasa <xsl:value-of select="position()"/></xsl:message>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:for-each>
|
|
|
+ </interested_row>
|
|
|
+ </xsl:variable>
|
|
|
+
|
|
|
+ <xsl:variable name="BI_audit_ENERGA_RUM_KONTRAHENCI_filtered">
|
|
|
+ <BI_audit_ENERGA_RUM_KONTRAHENCI_filtered>
|
|
|
+ <xsl:for-each select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI">
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="$interested_row//BI_audit_ENERGA_RUM_KONTRAHENCI/ID = current()/ID ">
|
|
|
+ <xsl:copy-of select="."/>
|
|
|
+ </xsl:when>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:for-each>
|
|
|
+ </BI_audit_ENERGA_RUM_KONTRAHENCI_filtered>
|
|
|
+ </xsl:variable>
|
|
|
+
|
|
|
+ <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>
|
|
|
+
|
|
|
+ <topichead navtitle="Powiązania od Pracowników do Kontrahentow - lista odnośników (źródła)">
|
|
|
+ <xsl:for-each select="$sources/sources/source">
|
|
|
+ <topichead navtitle="żródło:{.} Powiązania od Pracowników do Kontrahentow">
|
|
|
+ <xsl:for-each-group select="$interested_row/interested_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[ object[position() = 1]/*/source= current() ]" group-by="object[position() = 1]/*[ position() = 1]/concat(name(),ID,imiona,nazwisko,pesel,nip)">
|
|
|
+ <xsl:sort select=" count(.)"/>
|
|
|
+ <xsl:variable name="group_name" select="system_cache__appinfo:truncate_special_and_do_uppercase(object[position() = 1]/*[ position() = 1] /concat(imiona,'_',nazwisko,'_',nip,'_LISTA'))"/>
|
|
|
+ <xsl:variable name="refpos" select="concat(object[ position() = last()]/* [ position() = 1]/concat(name(),ID),'_', position())"/>
|
|
|
+ <!--<topichead navtitle="{object[position() = 1]/*/concat(imiona,' ',nazwisko,' ',nip)} powiązań ({ count( current-group())}) ">-->
|
|
|
+ <!--<topicref href="{$group_name}/{$refpos}.dita">-->
|
|
|
+ <xsl:apply-templates mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_LISTA" select=".">
|
|
|
+ <xsl:sort select="object[position() = last()]/*[ position() = 1]/ID"/>
|
|
|
+ <xsl:with-param name="group_name" select="$group_name"/>
|
|
|
+ <xsl:with-param name="refpos" select="$refpos"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ <!--</topicref>-->
|
|
|
+ <!--</topichead>-->
|
|
|
+ </xsl:for-each-group>
|
|
|
+ </topichead>
|
|
|
+ </xsl:for-each>
|
|
|
+ </topichead>
|
|
|
+
|
|
|
+ <!--<topichead navtitle="Grupa głównych ścieżek wychodzących z przykładami (źródła)">
|
|
|
+ <xsl:for-each select="$sources/sources/source">
|
|
|
+ <xsl:message>#103 Grupa głównych ścieżek wychodzących z przykładami (źródła): <xsl:value-of select="."/></xsl:message>
|
|
|
+ <topichead navtitle="ścieżka dla źródła {.}">
|
|
|
+ <xsl:for-each-group select="$resulset/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[ object[position() = 1]/*/source= current() ]" group-by="(object[position() > 3]/BI_audit_KRS/ID)[ position() = 1] ">
|
|
|
+ <xsl:sort select=" count(.)"/>
|
|
|
+ <xsl:variable name="refpos" select="(object[position() > 3]/BI_audit_KRS)[ position() = 1]/concat(krs,'_', position())"/>
|
|
|
+ <xsl:variable name="group_name" select="(object[position() > 3]/BI_audit_KRS)[ position() = 1]/concat('KRSY_',krs)"/>
|
|
|
+
|
|
|
+ <topicref href="{$group_name}/{$refpos}.dita"/>
|
|
|
+ <!-\-</topicref>-\->
|
|
|
+ <!-\-</topichead>-\->
|
|
|
+ </xsl:for-each-group>
|
|
|
+ </topichead>
|
|
|
+ </xsl:for-each>
|
|
|
+ </topichead>-->
|
|
|
+
|
|
|
+ <topichead navtitle="Powiązania pogrupowane pod kątem pochodzenia źródła danych do kontrahentow ">
|
|
|
+ <xsl:for-each select="$sources/sources/source">
|
|
|
+ <xsl:variable name="source" select="."/>
|
|
|
+ <xsl:message>#112 analyzing source: <xsl:value-of select="$source"/> Powiązania pogrupowane pod kątem pochodzenia źródła danych do kontrahentow </xsl:message>
|
|
|
+ <topichead navtitle="Źródło danych ({.}) - Powiązania">
|
|
|
+ <xsl:for-each-group select="$interested_row/interested_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[not(object[ position() = last()]/BI_audit_KW_requested_person) and object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY/source = $source ] " group-by="object[position() = 1]/*[ position() = 1]/concat(name(),ID,imiona,nazwisko,pesel,nip)">
|
|
|
+ <xsl:sort select=" count(.)"/>
|
|
|
+ <xsl:variable name="group_name" select="system_cache__appinfo:truncate_special_and_do_uppercase(object[position() = 1]/*[ position() = 1] /concat(imiona,'_',nazwisko,'_',nip))"/>
|
|
|
+ <topichead navtitle="{object[position() = 1]/*/concat(imiona,' ',nazwisko,' ',nip)} powiązań ({ count( current-group())}) ">
|
|
|
+ <xsl:apply-templates mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row" select=".">
|
|
|
+ <xsl:sort select="object[position() = last()]/*[ position() = 1]/ID"/>
|
|
|
+ <xsl:with-param name="group_name" select="$group_name"/>
|
|
|
+ <xsl:with-param name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA" select="$BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </topichead>
|
|
|
+ </xsl:for-each-group>
|
|
|
+ </topichead>
|
|
|
+ </xsl:for-each>
|
|
|
+ </topichead>
|
|
|
+
|
|
|
+ <!-- CSV RAPORT -->
|
|
|
+ <xsl:result-document href="{$temp}/{$uuid}/RAPORT.csv" omit-xml-declaration="yes" >
|
|
|
+ <xsl:text>"nr";"nazwisko";"nip";"firma";"nip";"miejscowosc";"info";"głębokość;źródło"</xsl:text>
|
|
|
+ <xsl:for-each-group select="$interested_row/interested_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row" group-by="object[position() = 1]/*[ position() = 1]/concat(name(),ID,imiona,nazwisko,pesel,nip)">
|
|
|
+ <xsl:sort select=" count(.)"/>
|
|
|
+ <xsl:variable name="group_name" select="system_cache__appinfo:truncate_special_and_do_uppercase(object[position() = 1]/*[ position() = 1] /concat(imiona,'_',nazwisko,'_',nip))"/>
|
|
|
+ <xsl:for-each-group select="current-group()" group-by="object[position() = last()]/*[ position() = 1]/concat(name(),ID)">
|
|
|
+ "<xsl:value-of select="position()"/>";"<xsl:value-of select="object[position() = 1]/*[ position() = 1]/concat(imiona,' ',nazwisko)"/>";"<xsl:value-of select="object[position() = 1]/*[ position() = 1]/nip"/><xsl:text>";"</xsl:text><xsl:value-of select="object[ position() = last()]/*[ position() = 1]/Pelna_nazwa_kontrahenta"/>";"<xsl:value-of select="object[ position() = last()]/*[ position() = 1]/NIP"/>";"<xsl:value-of select="object[ position() = last()]/*[ position() = 1]/Miejscowosc"/>";"<xsl:value-of select="object[ position() = last()]/*[ position() = 1]/concat(Nr_dzialki,' ',Nr_KW)"/><xsl:text>";"</xsl:text><xsl:value-of select="count(object)"/>";<xsl:value-of select="object[position() = 1]/*[ position() = 1]/source"/>;</xsl:for-each-group>
|
|
|
+ </xsl:for-each-group>
|
|
|
+ </xsl:result-document>
|
|
|
+
|
|
|
+
|
|
|
+ <topichead navtitle="Powiązania od Pracowników do Działek (podział na źródła)">
|
|
|
+ <xsl:for-each select="$sources/sources/source">
|
|
|
+ <xsl:variable name="source" select="."/>
|
|
|
+ <topichead navtitle="żródło:{$source} Powiązania od Pracowników do Działek">
|
|
|
+ <xsl:for-each-group select="$interested_row/interested_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[object[ position() = last() ]/BI_audit_KW_requested_person and object[position() = 1]/*/source= current()]" group-by="object[position() = 1]/*[ position() = 1]/concat(ID,imiona,nazwisko,pesel,nip)">
|
|
|
+ <xsl:sort select=" count(.)"/>
|
|
|
+ <xsl:variable name="group_name" select="system_cache__appinfo:truncate_special_and_do_uppercase(object[position() = 1]/*[ position() = 1]/concat(imiona,'_',nazwisko,'_',nip))"/>
|
|
|
+ <topichead navtitle="{object[position() = 1]/BI_audit_ENERGA_PRACOWNICY/concat(imiona,' ',nazwisko,' ',nip,' ')} powiązań ({ count( current-group())}) ">
|
|
|
+ <xsl:apply-templates mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row" select=".">
|
|
|
+ <xsl:sort select="object[position() = last()]/*/ID"/>
|
|
|
+ <xsl:with-param name="group_name" select="$group_name"/>
|
|
|
+ <xsl:with-param name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA" select="$BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </topichead>
|
|
|
+ </xsl:for-each-group>
|
|
|
+ </topichead>
|
|
|
+ </xsl:for-each>
|
|
|
+ </topichead>
|
|
|
+
|
|
|
+
|
|
|
+ <!--<topichead navtitle="Powiązania od Pracowników do Działek">
|
|
|
+ <xsl:for-each-group select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[object[ position() = last()]/BI_audit_KW_requested]" group-by="object[position() = 1]/*/concat(name(),ID,imiona,nazwisko,pesel,nip)">
|
|
|
+ <xsl:sort select=" count(.)"/>
|
|
|
+ <xsl:variable name="group_name" select="system_cache__appinfo:truncate_special_and_do_uppercase(object[position() = last() ]/*/concat(ID,' ',Id_BI_audit_KW_requested,' ',nip))"/>
|
|
|
+ <topichead navtitle="{object[position() = 1]/*/concat(imiona,' ',nazwisko,' ',nip)} powiązań ({ count( current-group())}) ">
|
|
|
+ <xsl:apply-templates mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row" select="current-group()">
|
|
|
+ <xsl:sort select="object[position() = last()]/*/ID"/>
|
|
|
+ <xsl:with-param name="group_name" select="$group_name"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </topichead>
|
|
|
+ </xsl:for-each-group>
|
|
|
+ </topichead>-->
|
|
|
+ <!--<topichead navtitle="Powiązania do kontrahentów z którymi zawarto umowy (podział na źródła)(przed uzupełnieniem danych)">
|
|
|
+ <xsl:for-each select="$sources/sources/source">
|
|
|
+ <xsl:variable name="source" select="."/>
|
|
|
+ <topichead navtitle="żródło: {.} - Powiązania do kontrahentów z którymi zawarto umowy">
|
|
|
+ <xsl:for-each-group select="$resulset/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[object[position() = last()]/BI_audit_ENERGA_RUM_KONTRAHENCI and object[position() = 1]/*/source= $source]" 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()))"/>
|
|
|
+
|
|
|
+ <!-\-<topichead navtitle="{object[position() = last()]/*/concat(Pelna_nazwa_kontrahenta,' ',Miejscowosc,' ',NIP)} powiązań ({ count( current-group())}) ">-\->
|
|
|
+ <xsl:variable name="BI_audit_ENERGA_RUM_KONTRAHENCI.ID" select=" object[ position() = last()]/ BI_audit_ENERGA_RUM_KONTRAHENCI/ID"/>
|
|
|
+ <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:apply-templates mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_do" select="current-group()[position() = 1]">
|
|
|
+ <xsl:with-param name="group_name" select="$group_name"/>
|
|
|
+ <xsl:with-param name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA" select="$BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:when>
|
|
|
+ </xsl:choose>
|
|
|
+ <!-\-</topichead>-\->
|
|
|
+ </xsl:for-each-group>
|
|
|
+ </topichead>
|
|
|
+ </xsl:for-each>
|
|
|
+ </topichead>-->
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <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: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="kontrahent_id" select="object[position() = last() ]/* [ position() = 1]/ID"/>
|
|
|
+ <xsl:variable name="current_group" select="current-group()"/>
|
|
|
+ <xsl:variable name="BI_audit_ENERGA_RUM_KONTRAHENCI.ID" select=" object[ position() = last()]/ BI_audit_ENERGA_RUM_KONTRAHENCI/ID"/>
|
|
|
+ <!--<topichead navtitle="{object[position() = last()]/*/concat(Pelna_nazwa_kontrahenta,' ',Miejscowosc,' ',NIP)} powiązań ({ count( current-group())}) ">-->
|
|
|
+
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="$resulset//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:apply-templates mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_do" select="current-group()[ position() = 1]">
|
|
|
+ <xsl:with-param name="group_name" select="$group_name"/>
|
|
|
+ <xsl:with-param name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA" select="$BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA"/>
|
|
|
+ <xsl:with-param name="resulset" select="$resulset"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ <!--</topichead>-->
|
|
|
+ </xsl:for-each-group>
|
|
|
+ </topichead>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <topichead navtitle="Powiązania wykryte po wyrywkowym uzupełnieniu danych (w przypadku dowiązania raportu porównawczego) ">
|
|
|
+
|
|
|
+ <xsl:message>#233 Powiązania wykryte po wyrywkowym uzupełnieniu danych</xsl:message>
|
|
|
+ <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="BI_audit_ENERGA_RUM_KONTRAHENCI.ID" select=" object[ position() = last()]/ BI_audit_ENERGA_RUM_KONTRAHENCI/ID"/>
|
|
|
+ <!--topichead navtitle="{object[position() = last()]/*/concat(Pelna_nazwa_kontrahenta,' ',Miejscowosc,' ',NIP)} powiązań ({ count( current-group())}) {$BI_audit_ENERGA_RUM_KONTRAHENCI.ID}">-->
|
|
|
+
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="$resulset//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">
|
|
|
+ <!--<topichead navtitle="było wcześniej znalezione i pominieto dla {$BI_audit_ENERGA_RUM_KONTRAHENCI.ID}"/>-->
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:apply-templates mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_do" select="current-group()[ position() = 1]">
|
|
|
+ <xsl:with-param name="group_name" select="$group_name"/>
|
|
|
+ <xsl:with-param name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA" select="$BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA"/>
|
|
|
+ <xsl:with-param name="resulset" select="$resulset"/>
|
|
|
+ <xsl:with-param name="BI_audit_ENERGA_RUM_KONTRAHENCI.ID" select="$BI_audit_ENERGA_RUM_KONTRAHENCI.ID"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+
|
|
|
+ <!-- </topichead>-->
|
|
|
+ </xsl:for-each-group>
|
|
|
+
|
|
|
+ </topichead>
|
|
|
+
|
|
|
+ <topichead navtitle="Powiązania do kontrahentów z którymi zawarto umowy (podział na źródła)(podział na spółki własne)">
|
|
|
+ <xsl:for-each select="$sources/sources/source">
|
|
|
+ <xsl:variable name="source" select="."/>
|
|
|
+ <topichead navtitle="żródło: {.} -(podział na spółki własne) Powiązania do kontrahentów z którymi zawarto umowy">
|
|
|
+
|
|
|
+ <xsl:for-each-group select="$resulset/BI_audit_ENERGA_RUM_KONTRAHENCI/BI_audit_ENERGA_RUM_UMOWY" group-by="Spolka_glowna">
|
|
|
+ <xsl:variable name="spolka_glowna" select="Spolka_glowna[1]"/>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:variable name="if_topic">
|
|
|
+ <xsl:message>#268 if topic for <xsl:value-of select="$spolka_glowna"/>;</xsl:message>
|
|
|
+ <xsl:for-each-group select="$interested_row/interested_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[object[position() = last()]/BI_audit_ENERGA_RUM_KONTRAHENCI and object[position() = 1]/*/source= $source]" 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="kontrahent_id" select="object[position() = last() ]/BI_audit_ENERGA_RUM_KONTRAHENCI/ID"/>
|
|
|
+ <xsl:variable name="current_group" select="current-group()"/>
|
|
|
+ <!--<xsl:variable name="zrodlo" select="."/>-->
|
|
|
+ <xsl:message>#346 kontr podzial go <xsl:value-of select="position()"/> / id: <xsl:value-of select="$kontrahent_id"/> / <xsl:value-of select="$spolka_glowna"/></xsl:message>
|
|
|
+ <xsl:variable name="BI_audit_ENERGA_RUM_KONTRAHENCI.ID" select=" object[ position() = last()]/ BI_audit_ENERGA_RUM_KONTRAHENCI/ID"/>
|
|
|
+ <!--<topichead navtitle="{object[position() = last()]/*/concat(Pelna_nazwa_kontrahenta,' ',Miejscowosc,' ',NIP)} powiązań ({ count( current-group())}) ">-->
|
|
|
+
|
|
|
+ <xsl:for-each select="$resulset/BI_audit_ENERGA_RUM_KONTRAHENCI[ID=$kontrahent_id and BI_audit_ENERGA_RUM_UMOWY/Spolka_glowna=$spolka_glowna]">
|
|
|
+ <xsl:if test="$interested_row/interested_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/object[ position() = last()]/BI_audit_ENERGA_RUM_KONTRAHENCI[ID = $kontrahent_id]">
|
|
|
+ <topicref href="{$group_name}_DO/1.dita"/>
|
|
|
+ </xsl:if>
|
|
|
+
|
|
|
+ </xsl:for-each>
|
|
|
+ </xsl:for-each-group>
|
|
|
+ </xsl:variable>
|
|
|
+
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="$if_topic/*">
|
|
|
+ <topichead navtitle="żródło: {$source} spółka gł:{$spolka_glowna} ">
|
|
|
+ <xsl:message>#267 podzial spolka glowna: <xsl:value-of select="$spolka_glowna"/></xsl:message>
|
|
|
+ <xsl:for-each-group select="$interested_row/interested_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[object[position() = last()]/BI_audit_ENERGA_RUM_KONTRAHENCI and object[position() = 1]/*/source= $source]" 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="kontrahent_id" select="object[position() = last() ]/* [ position() = 1]/ID"/>
|
|
|
+ <xsl:variable name="current_group" select="current-group()"/>
|
|
|
+ <!--<xsl:variable name="zrodlo" select="."/>-->
|
|
|
+
|
|
|
+ <xsl:variable name="BI_audit_ENERGA_RUM_KONTRAHENCI.ID" select=" object[ position() = last()]/ BI_audit_ENERGA_RUM_KONTRAHENCI/ID"/>
|
|
|
+ <!--<topichead navtitle="{object[position() = last()]/*/concat(Pelna_nazwa_kontrahenta,' ',Miejscowosc,' ',NIP)} powiązań ({ count( current-group())}) ">-->
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:for-each select="$resulset/BI_audit_ENERGA_RUM_KONTRAHENCI[ID=$kontrahent_id and BI_audit_ENERGA_RUM_UMOWY/Spolka_glowna=$spolka_glowna]">
|
|
|
+ <xsl:message> #270 $kontrahent =<xsl:value-of select="$group_name"/></xsl:message>
|
|
|
+ <xsl:if test="$interested_row/interested_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/object[ position() = last()]/BI_audit_ENERGA_RUM_KONTRAHENCI[ID = $kontrahent_id]">
|
|
|
+ <topicref href="{$group_name}_DO/1.dita"/>
|
|
|
+ </xsl:if>
|
|
|
+ </xsl:for-each>
|
|
|
+
|
|
|
+ <!--</topichead>-->
|
|
|
+ </xsl:for-each-group>
|
|
|
+
|
|
|
+ </topichead>
|
|
|
+ </xsl:when>
|
|
|
+ </xsl:choose>
|
|
|
+
|
|
|
+ </xsl:for-each-group>
|
|
|
+
|
|
|
+ </topichead>
|
|
|
+ </xsl:for-each>
|
|
|
+ </topichead>
|
|
|
+
|
|
|
+ <topichead navtitle="Powiązania do kontrahentów z KRS ogólnie (podział na źródła)">
|
|
|
+
|
|
|
+ <xsl:variable name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_krs_uniq">
|
|
|
+ <BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_krs_uniq>
|
|
|
+ <xsl:for-each select="$sources/sources/source">
|
|
|
+ <xsl:variable name="source" select="."/>
|
|
|
+ <xsl:for-each-group select="$interested_row/interested_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[object[position() = 1]/*/source= current()]/object/BI_audit_KRS" group-by="krs">
|
|
|
+ <xsl:variable name="group_name" select="concat('KRSY_',krs)"/>
|
|
|
+ <xsl:variable name="BI_audit_ENERGA_RUM_KONTRAHENCI.ID" select="krs"/>
|
|
|
+ <krs>
|
|
|
+ <xsl:attribute name="krs" select="krs"/>
|
|
|
+ <xsl:attribute name="source" select="$source"/>
|
|
|
+ </krs>
|
|
|
+ </xsl:for-each-group>
|
|
|
+ </xsl:for-each>
|
|
|
+ </BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_krs_uniq>
|
|
|
+ </xsl:variable>
|
|
|
+
|
|
|
+ <xsl:for-each select="$sources/sources/source">
|
|
|
+ <xsl:variable name="source" select="."/>
|
|
|
+ <xsl:message>#286 Powiązania do kontrahentów z KRS ogólnie (podział na źródła) = <xsl:value-of select="."/></xsl:message>
|
|
|
+ <topichead navtitle="żródło:{.} Powiązania do kontrahentów z KRS ogólnie">
|
|
|
+ <xsl:for-each-group select="$interested_row/interested_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[object[position() = 1]/*/source= current()]/object/BI_audit_KRS" group-by="krs">
|
|
|
+ <xsl:variable name="group_name" select="concat('KRSY_',krs)"/>
|
|
|
+ <!--<topichead navtitle="{object[position() = last()]/*/concat(Pelna_nazwa_kontrahenta,' ',Miejscowosc,' ',NIP)} powiązań ({ count( current-group())}) ">-->
|
|
|
+ <xsl:variable name="BI_audit_ENERGA_RUM_KONTRAHENCI.ID" select="krs"/>
|
|
|
+ <!--<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:choose>
|
|
|
+ <xsl:when test="count($BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_krs_uniq/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_krs_uniq/krs[@krs = current()/krs]) > 1">
|
|
|
+ <xsl:variable name="min" select="$BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_krs_uniq/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_krs_uniq/krs[@krs = current()/krs][1]"/>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="$source = $min/@source">
|
|
|
+ <xsl:apply-templates mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_krs" select="." >
|
|
|
+ <xsl:with-param name="group_name" select="$group_name"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:variable name="refpos" select="concat(krs,'_', position())"/>
|
|
|
+ <topicref href="{$group_name}/{$refpos}.dita"/>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:apply-templates mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_krs" select="." >
|
|
|
+ <xsl:with-param name="group_name" select="$group_name"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+
|
|
|
+ <!--</xsl:when>
|
|
|
+ </xsl:choose>-->
|
|
|
+ <!--</topichead>-->
|
|
|
+ </xsl:for-each-group>
|
|
|
+ </topichead>
|
|
|
+ </xsl:for-each>
|
|
|
+ </topichead>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <!--<topichead navtitle="Do wykonania - błędne numery NIP w kontrahentach wskazujące na spółkę ENERGII!"></topichead>-->
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </map>
|
|
|
+ <!--</xsl:result-document>-->
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA" mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_statystyka_pracownik.dita">
|
|
|
+
|
|
|
+ <topic id="topic_simpletable_statystyka_pracownik.dita" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
+ xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
|
|
|
+ <title>Statystyka powiązań
|
|
|
+
|
|
|
+ </title>
|
|
|
+ <body>
|
|
|
+
|
|
|
+ <xsl:for-each-group select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY" group-by="ID">
|
|
|
+ <p><xsl:value-of select="ID"/> - <xsl:value-of select="nazwisko"/><xsl:text> </xsl:text> <xsl:value-of select="imiona"/><xsl:text> </xsl:text>źródło:<xsl:value-of select="source"/></p>
|
|
|
+ </xsl:for-each-group>
|
|
|
+
|
|
|
+ <xsl:variable name="simpletable">
|
|
|
+ <simpletable frame="all" id="topic_simpletable_statystyka_pracownik.dita_table">
|
|
|
+ <strow>
|
|
|
+ <xsl:for-each-group select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY" group-by="ID">
|
|
|
+ <stentry><xsl:value-of select="ID"/></stentry>
|
|
|
+ </xsl:for-each-group>
|
|
|
+ </strow>
|
|
|
+ <strow>
|
|
|
+ <xsl:for-each-group select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY" group-by="ID">
|
|
|
+ <xsl:variable name="pracownik" select="ID"/>
|
|
|
+ <stentry><xsl:value-of select=" count( current-group() )"/></stentry>
|
|
|
+ </xsl:for-each-group>
|
|
|
+ </strow>
|
|
|
+ </simpletable>
|
|
|
+ </xsl:variable>
|
|
|
+ <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>
|
|
|
+ <xsl:copy-of 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="width" select="700"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </p>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:variable name="current" select="."/>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:variable name="simpletable">
|
|
|
+ <simpletable frame="all" id="topic_simpletable_statystyka_pracownik.dita_table_srednie">
|
|
|
+ <strow>
|
|
|
+ <xsl:for-each-group select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY" group-by="ID">
|
|
|
+ <stentry><xsl:value-of select="ID"/></stentry>
|
|
|
+ </xsl:for-each-group>
|
|
|
+ </strow>
|
|
|
+ <strow>
|
|
|
+ <xsl:for-each-group select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY" group-by="ID">
|
|
|
+ <xsl:variable name="pracownik" select="ID"/>
|
|
|
+ <stentry><xsl:value-of select=" round(count( $current/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[ object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY/ID=$pracownik]/object) div count( current-group() ) )"/></stentry>
|
|
|
+ </xsl:for-each-group>
|
|
|
+ </strow>
|
|
|
+ </simpletable>
|
|
|
+ </xsl:variable>
|
|
|
+ <p>Średnie długości powiązań
|
|
|
+
|
|
|
+ <!--<xsl:value-of select="count( $current/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[ object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY/ID=$PROCES_INIT_tree.ditamap]/object)"/>-->
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:copy-of 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="width" select="700"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </p>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:variable name="simpletable">
|
|
|
+ <simpletable frame="all" id="topic_simpletable_statystyka_pracownik.dita_table_kwoty">
|
|
|
+ <strow>
|
|
|
+ <xsl:for-each-group select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY" group-by="ID">
|
|
|
+ <stentry><xsl:value-of select="ID"/></stentry>
|
|
|
+ </xsl:for-each-group>
|
|
|
+ </strow>
|
|
|
+ <strow>
|
|
|
+ <xsl:for-each-group select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY" group-by="ID">
|
|
|
+ <xsl:variable name="pracownik" select="ID"/>
|
|
|
+ <xsl:variable name="transakcje">
|
|
|
+ <transakcje>
|
|
|
+ <xsl:for-each select="$current/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[ object[position() = 1]/BI_audit_ENERGA_PRACOWNICY/ID=$pracownik]/object[ position() = last() ]/BI_audit_ENERGA_RUM_KONTRAHENCI">
|
|
|
+
|
|
|
+ <xsl:variable name="kontrach" select="ID"/>
|
|
|
+ <!--(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 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>
|
|
|
+ </xsl:for-each>
|
|
|
+ </transakcje>
|
|
|
+ </xsl:variable>
|
|
|
+ <!--<xsl:copy-of select="$transakcje"/>-->
|
|
|
+ <stentry><xsl:value-of select=" format-number(xs:double(sum($transakcje/transakcje/sum[ not(text()='NaN')]) div 1000000),'####')"/></stentry>
|
|
|
+ </xsl:for-each-group>
|
|
|
+ </strow>
|
|
|
+ </simpletable>
|
|
|
+ </xsl:variable>
|
|
|
+ <p>Kwoty transakcji <note>w mln PLN</note>
|
|
|
+ <xsl:copy-of 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="width" select="700"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </p>
|
|
|
+
|
|
|
+ </body>
|
|
|
+ </topic>
|
|
|
+
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="BI_audit_KRS" mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_krs">
|
|
|
+ <xsl:param name="group_name" required="yes"/>
|
|
|
+ <xsl:variable name="refpos" select="concat(krs,'_', position())"/>
|
|
|
+ <xsl:variable name="position" select="position()"/>
|
|
|
+ <topicref href="{$group_name}/{$refpos}.dita">
|
|
|
+ <xsl:message>#545 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="topic_simpletable_{$group_name}_{position()}" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
+ xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
|
|
|
+ <title>Powiązań <!--<xsl:value-of select="position()"/> /--><xsl:value-of select="count( current-group())"/> dla
|
|
|
+ do : <xsl:value-of select="nazwa"/><xsl:text> </xsl:text><xsl:value-of select="S_miejscowosc"/>
|
|
|
+ <xsl:value-of select="A_ulica"/><xsl:text> </xsl:text><xsl:value-of select="A_nrDomu"/>
|
|
|
+ </title>
|
|
|
+ <body>
|
|
|
+
|
|
|
+ <simpletable frame="all" relcolwidth="1* 3* 3*" id="simpletable_rows__child_krs_{$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: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:for-each-group select="current-group()[ position() < 10 ][1] " group-by="../../object[position() = 1]/*[ position() = 1]/concat(name(),ID,imiona,nazwisko,pesel,nip)"> <!-- pracownicy -->
|
|
|
+
|
|
|
+ <xsl:variable name="group_name_refpos" select="../../object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY/system_cache__appinfo:truncate_special_and_do_uppercase(concat(imiona,'_',nazwisko,'_',nip))"/>
|
|
|
+ <xsl:variable name="group_name_refpos.kon" select="concat(../../object[position() = last() ]/*[ position() = 1]/system_cache__appinfo:truncate_special_and_do_uppercase(concat(ID,Pelna_nazwa_kontrahenta)),'1_DO')"/>
|
|
|
+ <xsl:variable name="refpos" select="concat(../../object[ position() = last()]/* [ position() = 1]/concat(name(),ID),'_', 1)"/>
|
|
|
+ <strow>
|
|
|
+ <stentry><xsl:value-of select="$position_1"/> / <!--<xsl:value-of select="$position"/> / --><xsl:value-of select="position()"/> </stentry>
|
|
|
+ <!--<stentry>-->
|
|
|
+ <!--<xsl:choose>
|
|
|
+ <xsl:when test="../../object[ position() = 2]/BI_audit_KRS_person/pesel[ //]"></xsl:when>
|
|
|
+ </xsl:choose>-->
|
|
|
+ <!--</stentry>-->
|
|
|
+ <stentry>
|
|
|
+ <xref href="../{$group_name_refpos}/{$refpos}.dita">
|
|
|
+ <xsl:value-of select="../../object[ position() = 1]/*[ position() = 1 ]/concat(imiona,' ',nazwisko,' (',source,')')"/>
|
|
|
+ </xref>
|
|
|
+ </stentry>
|
|
|
+ <stentry>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="../../object[ position() = last()]/* [ position() = 1 ]/Pelna_nazwa_kontrahenta">
|
|
|
+ <xref href="../{$group_name_refpos.kon}/1.dita">
|
|
|
+ <xsl:value-of select="../../object[ position() = last()]/* [ position() = 1 ] /concat(Pelna_nazwa_kontrahenta,' ',Seller_Person,' ',Nr_KW)"/>
|
|
|
+ </xref>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:value-of select="../../object[ position() = last()]/* [ position() = 1 ] /concat(Pelna_nazwa_kontrahenta,' ',Seller_Person,' ',Nr_KW)"/>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </stentry>
|
|
|
+ </strow>
|
|
|
+
|
|
|
+ </xsl:for-each-group>
|
|
|
+ </xsl:for-each-group>
|
|
|
+
|
|
|
+
|
|
|
+ <!--</xsl:for-each>-->
|
|
|
+ </simpletable>
|
|
|
+ </body>
|
|
|
+ </topic>
|
|
|
+ </xsl:result-document>
|
|
|
+ </topicref>
|
|
|
+
|
|
|
+
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_do" match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row">
|
|
|
+ <xsl:param name="group_name" required="yes"/>
|
|
|
+ <xsl:param name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA" required="yes"/>
|
|
|
+ <xsl:param name="BI_audit_ENERGA_RUM_KONTRAHENCI.ID" required="yes"/>
|
|
|
+ <xsl:param name="resulset" required="yes"/>
|
|
|
+ <xsl:variable name="current" select="."/>
|
|
|
+ <xsl:variable name="current_nip" select="object[ position() = last()]/*/NIP"/>
|
|
|
+ <topicref href="{$group_name}_DO/{position()}.dita">
|
|
|
+ <xsl:result-document href="{$temp}/{$uuid}/{$group_name}_DO/{position()}.dita">
|
|
|
+ <topic id="topic_simpletable_cheat_row_{$group_name}_DO_{position()}_{ generate-id()}" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
+ xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
|
|
|
+ <title>Powiązanie do
|
|
|
+ <xsl:value-of select="object[ position() = last()]/*/Pelna_nazwa_kontrahenta"/><xsl:text> </xsl:text>
|
|
|
+ <xsl:value-of select="object[ position() = last()]/*/Miejscowosc"/><xsl:text> </xsl:text>
|
|
|
+ <xsl:value-of select="object[ position() = last()]/*/NIP"/><xsl:text> </xsl:text>
|
|
|
+ ilość: <xsl:value-of select=" count(current-group())"/>
|
|
|
+ </title>
|
|
|
+
|
|
|
+ <body>
|
|
|
+ <p>
|
|
|
+
|
|
|
+ Występuje w powiązaniach:
|
|
|
+ <simpletable frame="all" relcolwidth="1* 2* 2* 4*" id="simpletable_rows__child_cheat_2{$group_name}_{ position()}_{generate-id()}">
|
|
|
+ <strow>
|
|
|
+ <stentry>Lp</stentry>
|
|
|
+ <stentry>Osoba powiązana</stentry>
|
|
|
+ <stentry>Rejestr</stentry>
|
|
|
+ <stentry>Dane z rejestru</stentry>
|
|
|
+ </strow>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:for-each-group select="current-group()/object[ position() = 1]" group-by="BI_audit_ENERGA_PRACOWNICY/ID">
|
|
|
+ <xsl:variable name="current_pesel" select="BI_audit_ENERGA_PRACOWNICY/pesel"/>
|
|
|
+ <!-- chce sprawdzic czy pesel inny niz current() wystepuje w BI_audit_KRS_person jak tak to olac -->
|
|
|
+ <xsl:variable name="test_if_prev_worker">
|
|
|
+ <xsl:for-each select="../object/BI_audit_KRS_person[not(pesel = $current_pesel)]">
|
|
|
+ <xsl:variable name="current_pesel_2" select="pesel/text()"/>
|
|
|
+ <!--testuje:<xsl:value-of select="$current_pesel_2"/>,-->
|
|
|
+ <xsl:for-each select="$BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA//BI_audit_ENERGA_PRACOWNICY[pesel/text()=$current_pesel_2][1]">
|
|
|
+ <prev pesel="{pesel}">
|
|
|
+ <xsl:value-of select="nazwisko"/>
|
|
|
+ </prev>
|
|
|
+ </xsl:for-each>
|
|
|
+ </xsl:for-each>
|
|
|
+ </xsl:variable>
|
|
|
+ <!--<xsl:choose>
|
|
|
+ <xsl:when test=" count(../object/BI_audit_ENERGA_PRACOWNICY) > 1">-->
|
|
|
+ <!--<strow>
|
|
|
+ <stentry>dodatk jest</stentry>
|
|
|
+ <stentry><xsl:value-of select=" count(../object/BI_audit_ENERGA_PRACOWNICY)"/></stentry>
|
|
|
+ <stentry>following-sibling::node test_if_prev_worker <xsl:for-each-group select="$test_if_prev_worker/prev" group-by="@pesel"><xsl:value-of select="@pesel"/><xsl:value-of select="."/></xsl:for-each-group></stentry>
|
|
|
+ <stentry>$current_pesel = <xsl:value-of select="$current_pesel"/><!-\-following-siblin::node <xsl:value-of select="preceding-sibling::node()/BI_audit_ENERGA_PRACOWNICY"/>-\-></stentry>
|
|
|
+ </strow>-->
|
|
|
+ <!--
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <strow>
|
|
|
+ <stentry>dodatk nie jest</stentry>
|
|
|
+ <stentry><xsl:value-of select=" count(../object/BI_audit_ENERGA_PRACOWNICY)"/></stentry>
|
|
|
+ <stentry>following-sibling::node test_if_prev_worker <xsl:copy-of select="$test_if_prev_worker"/><!-\-<xsl:copy-of select="$current/../following-sibling::node()/name()"></xsl:copy-of>-\-></stentry>
|
|
|
+ <stentry><!-\-<xsl:copy-of select="following-sibling::node()/name()"></xsl:copy-of>-\-></stentry>
|
|
|
+ </strow>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>-->
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="$test_if_prev_worker/prev"/>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <strow>
|
|
|
+ <stentry><xsl:value-of select="position()"/></stentry>
|
|
|
+ <stentry>
|
|
|
+ <xsl:variable name="group_name_refpos" select="$current/object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY/system_cache__appinfo:truncate_special_and_do_uppercase(concat(imiona,'_',nazwisko,'_',nip))"/>
|
|
|
+ <!--<xsl:variable name="group_name_refpos" select="../../object[position() = last() ]/* [ position() = 1]/system_cache__appinfo:truncate_special_and_do_uppercase(concat(ID,Pelna_nazwa_kontrahenta,'_kontr'))"/>-->
|
|
|
+ <xsl:variable name="refpos" select="concat($current/object[ position() = last()]/* [ position() = 1]/concat(name(),ID),'_', 1)"/>
|
|
|
+ <xref href="../{$group_name_refpos}/{$refpos}.dita">
|
|
|
+ <xsl:value-of select="*/concat(imiona,' ', nazwisko, ' ', nip,' (żr:',source,')')"/>
|
|
|
+ </xref>
|
|
|
+ </stentry>
|
|
|
+ <stentry>
|
|
|
+ <xsl:variable name="name">
|
|
|
+ <name><xsl:value-of select="*/name()"/></name>
|
|
|
+ </xsl:variable>
|
|
|
+ <xsl:apply-templates mode="enter_to_ph_text" select="$name/name">
|
|
|
+ <xsl:with-param name="element" select="'entry'"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </stentry>
|
|
|
+ <stentry>
|
|
|
+ <xsl:for-each select="*/*">
|
|
|
+ <xsl:if test="text()">
|
|
|
+ <xsl:variable name="name">
|
|
|
+ <name><xsl:value-of select="name()"/></name>
|
|
|
+ </xsl:variable>
|
|
|
+ <b><xsl:apply-templates mode="enter_to_ph_text" select="$name/name">
|
|
|
+ <xsl:with-param name="element" select="'entry'"/>
|
|
|
+ </xsl:apply-templates></b>
|
|
|
+ <xsl:text> </xsl:text>
|
|
|
+ <xsl:apply-templates mode="enter_to_ph_text" select=".">
|
|
|
+ <xsl:with-param name="element" select="'entry'"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ <xsl:text> </xsl:text>
|
|
|
+ </xsl:if>
|
|
|
+ </xsl:for-each>
|
|
|
+ </stentry>
|
|
|
+ </strow>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+
|
|
|
+ </xsl:for-each-group>
|
|
|
+ </simpletable>
|
|
|
+
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ 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 "/>)-->
|
|
|
+ <simpletable frame="all" relcolwidth="1* 1* 1* 1* 1* 1*" id="simpletable_rows__child_cheat_4{$group_name}_{generate-id()}_{ position()}">
|
|
|
+ <strow>
|
|
|
+ <stentry>Data utw. spr./ Tytul dokumentu</stentry>
|
|
|
+ <stentry>Wprowadzajacy wniosek</stentry>
|
|
|
+ <stentry>Kontrahent</stentry>
|
|
|
+ <stentry>Akceptujacy merytorycznie</stentry>
|
|
|
+ <stentry>Osoba merytoryczna</stentry>
|
|
|
+ <stentry>Przedmiot umowy</stentry>
|
|
|
+ </strow>
|
|
|
+ <strow>
|
|
|
+ <stentry>Spółka główna</stentry>
|
|
|
+ <stentry>Typ umowy</stentry>
|
|
|
+ <stentry>Wartosc zlecenia zamowienia netto w PLN</stentry>
|
|
|
+ <stentry>Wartosc zlecenia zamowienia netto w walucie</stentry>
|
|
|
+ <stentry>Wartosc przedmiotu umowy netto w PLN</stentry>
|
|
|
+ <stentry>Wartosc kosztowa przedmiotu umowy netto w walucie </stentry>
|
|
|
+ </strow>
|
|
|
+ <!-- current()/object[ position() = last() ]/I -->
|
|
|
+ <xsl:for-each select="$resulset/BI_audit_ENERGA_RUM_KONTRAHENCI[ID/text()= current()/object[ position() = last() ]/BI_audit_ENERGA_RUM_KONTRAHENCI/ID/text()]/BI_audit_ENERGA_RUM_UMOWY">
|
|
|
+ <xsl:sort select="Wartosc_przedmiotu_umowy_netto_w_PLN" order="descending"/>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test=" position() < 100">
|
|
|
+ <strow>
|
|
|
+ <stentry><xsl:value-of select="Data_utworzenia_sprawy"/> /
|
|
|
+ <xsl:apply-templates mode="enter_to_ph_text" select="Tytul_dokumentu">
|
|
|
+ <xsl:with-param name="element" select="'entry'"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ <!--<xsl:value-of select="field[@name='Tytul_dokumentu']"/>--></stentry>
|
|
|
+ <stentry>
|
|
|
+ <xsl:value-of select="Wprowadzajacy_wniosek___nazwisko_i_imie"/>
|
|
|
+ </stentry>
|
|
|
+ <stentry>
|
|
|
+ <xsl:apply-templates mode="enter_to_ph_text" select="Pelna_nazwa_kontrahenta">
|
|
|
+ <xsl:with-param name="element" select="'entry'"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </stentry>
|
|
|
+ <stentry>
|
|
|
+ <xsl:value-of select="Akceptujacy_merytorycznie___nazwisko_i_imie"/>
|
|
|
+ </stentry>
|
|
|
+ <stentry>
|
|
|
+ <xsl:value-of select="Osoba_merytoryczna___nazwisko_i_imie"/>
|
|
|
+ </stentry>
|
|
|
+ <stentry>
|
|
|
+ <xsl:apply-templates mode="enter_to_ph_text" select="Przedmiot_umowy">
|
|
|
+ <xsl:with-param name="element" select="'entry'"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ <!--<xsl:value-of select="field[@name='Przedmiot_umowy']"/>--></stentry>
|
|
|
+ </strow>
|
|
|
+ <strow>
|
|
|
+ <stentry>
|
|
|
+ <xsl:value-of select="Spolka_glowna"/>
|
|
|
+ </stentry>
|
|
|
+ <stentry><xsl:value-of select="Typ_umowy__aktualny_"/></stentry>
|
|
|
+ <stentry><xsl:value-of select="Wartosc_zlecenia_zamowienia_netto_w_PLN"/></stentry>
|
|
|
+ <stentry><xsl:value-of select="Wartosc_zlecenia_zamowienia_netto_w_walucie"/></stentry>
|
|
|
+ <stentry><xsl:value-of select="Wartosc_przedmiotu_umowy_netto_w_PLN__aktualna_"/></stentry>
|
|
|
+ <stentry><xsl:value-of select="Wartosc_kosztowa_przedmiotu_umowy_netto_w_walucie"/></stentry>
|
|
|
+ </strow>
|
|
|
+ <strow>
|
|
|
+ <stentry>-</stentry>
|
|
|
+ <stentry>-</stentry>
|
|
|
+ <stentry>-</stentry>
|
|
|
+ <stentry>-</stentry>
|
|
|
+ <stentry>-</stentry>
|
|
|
+ <stentry>-</stentry>
|
|
|
+ </strow>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:when test="position() = 100">
|
|
|
+ <strow>
|
|
|
+ <stentry>Zestawienie zawiera więcej rekordów</stentry>
|
|
|
+ <stentry>Pominięto z uwagi na wielkość raportu</stentry>
|
|
|
+ <stentry/>
|
|
|
+ <stentry/>
|
|
|
+ <stentry/>
|
|
|
+ <stentry/>
|
|
|
+ </strow>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise/>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:for-each>
|
|
|
+ </simpletable>
|
|
|
+ </p>
|
|
|
+ </body>
|
|
|
+ </topic>
|
|
|
+ </xsl:result-document>
|
|
|
+ </topicref>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_LISTA" match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row">
|
|
|
+ <xsl:param name="group_name" required="yes"/>
|
|
|
+ <xsl:param name="refpos" required="yes"/>
|
|
|
+
|
|
|
+ <xsl:variable name="position" select="position()"/>
|
|
|
+ <xsl:variable name="group_name.ref_prac" select="system_cache__appinfo:truncate_special_and_do_uppercase(object[position() = 1]/*[ position() = 1] /concat(imiona,'_',nazwisko,'_',nip))"/>
|
|
|
+ <xsl:variable name="refpos.ref_prac" select="concat(object[ position() = last()]/* [ position() = 1]/concat(name(),ID),'_', position())"/>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:variable name="group_name_refpos.kon" select="concat(object[position() = last() ]/*[ position() = 1]/system_cache__appinfo:truncate_special_and_do_uppercase(concat(ID,Pelna_nazwa_kontrahenta)),'KONTR_DO')"/>
|
|
|
+ <xsl:variable name="refpos.kon" select="1"/>
|
|
|
+ <topicref href="{$group_name}/{$refpos}.dita">
|
|
|
+ <xsl:result-document href="{$temp}/{$uuid}/{$group_name}/{$refpos}.dita">
|
|
|
+ <topic id="topic_simpletable_cheat_row_{$group_name}_{$refpos}_{ generate-id()}" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
+ xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
|
|
|
+ <title>Powiązanń dla <xsl:value-of select="count( current-group())"/> dla
|
|
|
+ <xsl:value-of select="object[ position() = 1]/*/imiona"/><xsl:text> </xsl:text>
|
|
|
+ <xsl:value-of select="object[ position() = 1]/*/nazwisko"/><xsl:text> </xsl:text>
|
|
|
+ <xsl:value-of select="object[ position() = 1]/*/nip"/><xsl:text> </xsl:text>
|
|
|
+ żródło:<xsl:value-of select="object[ position() = 1]/*/source"/><xsl:text> </xsl:text>
|
|
|
+ ;
|
|
|
+ </title>
|
|
|
+
|
|
|
+ <body>
|
|
|
+ <p>
|
|
|
+ <xref href="../{$group_name.ref_prac}/{$refpos.ref_prac}.dita">
|
|
|
+ <xsl:value-of select="object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY/concat(imiona,' ', nazwisko, ' ', nip)"/>
|
|
|
+ </xref>
|
|
|
+ </p>
|
|
|
+ </body>
|
|
|
+ </topic>
|
|
|
+ </xsl:result-document>
|
|
|
+ </topicref>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row" match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row">
|
|
|
+ <xsl:param name="group_name" required="yes"/>
|
|
|
+ <xsl:param name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA" required="yes"/>
|
|
|
+ <xsl:variable name="position" select="position()"/>
|
|
|
+
|
|
|
+ <xsl:for-each-group select=" current-group()" group-by="object[position() = last()]/*[ position() = 1]/concat(name(),ID,imiona,nazwisko,pesel,nip)">
|
|
|
+ <xsl:sort select="count(object)" order="ascending"/>
|
|
|
+ <!--<xsl:for-each select="current-group()">-->
|
|
|
+
|
|
|
+
|
|
|
+ <!-- TEST IF PREV -->
|
|
|
+ <xsl:variable name="current_pesel" select="object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY/pesel"/>
|
|
|
+ <xsl:variable name="test_if_prev_worker">
|
|
|
+ <xsl:for-each select="object/BI_audit_KRS_person[not(pesel = $current_pesel)]">
|
|
|
+ <xsl:variable name="current_pesel_2" select="pesel/text()"/>
|
|
|
+ <!--testuje:<xsl:value-of select="$current_pesel_2"/>,-->
|
|
|
+ <xsl:for-each select="$BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA//BI_audit_ENERGA_PRACOWNICY[pesel/text()=$current_pesel_2][1]">
|
|
|
+ <prev pesel="{pesel}">
|
|
|
+ <xsl:value-of select="nazwisko"/>
|
|
|
+ </prev>
|
|
|
+ </xsl:for-each>
|
|
|
+ </xsl:for-each>
|
|
|
+ </xsl:variable>
|
|
|
+ <!-- TEST IF PREV -->
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="$test_if_prev_worker/prev"/>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:variable name="refpos" select="concat(object[ position() = last()]/* [ position() = 1]/concat(name(),ID),'_', 1)"/> <!-- position() -->
|
|
|
+
|
|
|
+ <xsl:variable name="group_name_refpos.kon" select="concat(object[position() = last() ]/*[ position() = 1]/system_cache__appinfo:truncate_special_and_do_uppercase(concat(ID,Pelna_nazwa_kontrahenta)),'1_DO')"/>
|
|
|
+ <xsl:variable name="refpos.kon" select="1"/>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test=" position() = 0 ">
|
|
|
+ <topichead navtitle=" Pominięto więcej przykładów z uwagi na ilość"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:when test=" position() = 0 ">
|
|
|
+ <xsl:result-document href="{$temp}/{$uuid}/{$group_name}/{$refpos}.dita">
|
|
|
+ <topic id="topic_simpletable_cheat_row_{$group_name}_{$refpos}_{ generate-id()}" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
+ xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
|
|
|
+ <title>
|
|
|
+ <xsl:if test="$test_if_prev_worker/prev">
|
|
|
+ !! nadmiarowe wzajemne !!
|
|
|
+ <xsl:for-each-group select="$test_if_prev_worker/prev" group-by="@pesel"><xsl:text> </xsl:text> <xsl:value-of select="."/></xsl:for-each-group>
|
|
|
+ </xsl:if>
|
|
|
+ Powiązanie <xsl:value-of select="position()"/> /<xsl:value-of select="count( current-group())"/> dla
|
|
|
+ <xsl:value-of select="object[ position() = 1]/*/imiona"/><xsl:text> </xsl:text>
|
|
|
+ <xsl:value-of select="object[ position() = 1]/*/nazwisko"/><xsl:text> </xsl:text>
|
|
|
+ <xsl:value-of select="object[ position() = 1]/*/nip"/><xsl:text> </xsl:text>
|
|
|
+ źródło:<xsl:value-of select="object[ position() = 1]/*/source"/>
|
|
|
+ - do : <xsl:value-of select="object[ position() = last()]/*[ position() = 1]/concat(Pelna_nazwa_kontrahenta,' - ',Miejscowosc, ' ',NIP,' ',Nr_dzialki,' ',Nr_KW,' ',Seller_person)"/><xsl:text> </xsl:text>
|
|
|
+ <xsl:value-of select="object[ position() = last()]/*[ position() = 1]/Seller_person"/><xsl:text> </xsl:text> poprzez: <xsl:value-of select="object[ position() = last()]/relation_from"/>
|
|
|
+ (gł.szuk.: <xsl:value-of select="count(object)"/>) ;
|
|
|
+ </title>
|
|
|
+
|
|
|
+ <body>
|
|
|
+ <p>
|
|
|
+ Ścieżka śledzenia do
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="object[ position() = last()]/BI_audit_KW_requested_person">
|
|
|
+
|
|
|
+ działki: <xsl:value-of select="object[ position() = last()]/*[ position() = 1]/concat(Pelna_nazwa_kontrahenta,' ',Miejscowosc, ' ',NIP,' ',Nr_dzialki,' ',Nr_KW,' ',Seller_Person)"/>
|
|
|
+
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:when test="object[ position() = last()]/BI_audit_ENERGA_RUM_KONTRAHENCI">
|
|
|
+
|
|
|
+ <xref href="../{$group_name_refpos.kon}/{$refpos.kon}.dita">
|
|
|
+ kontrahenta: <xsl:value-of select="object[ position() = last()]/*[ position() = 1]/concat(Pelna_nazwa_kontrahenta,' ',Miejscowosc, ' ',NIP,' ',Nr_dzialki,' ',Nr_KW,' ',Seller_Person)"/>
|
|
|
+ </xref>
|
|
|
+
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+
|
|
|
+ Kontrahenta: <xsl:value-of select="object[ position() = last()]/*[ position() = 1]/concat(Pelna_nazwa_kontrahenta,' ',Miejscowosc, ' ',NIP,' ',Nr_dzialki,' ',Nr_KW,' ',Seller_Person)"/>
|
|
|
+
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+
|
|
|
+
|
|
|
+ <simpletable frame="all" relcolwidth="1* 2* 2* 4*" id="simpletable_rows__child_cheat_7{$group_name}_path_{ $refpos}_{generate-id()}">
|
|
|
+ <strow>
|
|
|
+ <stentry>Lp</stentry>
|
|
|
+ <stentry>Sposób wyszukania</stentry>
|
|
|
+ <stentry>Rejestr</stentry>
|
|
|
+ <stentry>Dane z rejestru</stentry>
|
|
|
+ </strow>
|
|
|
+ <xsl:for-each select="object">
|
|
|
+ <strow>
|
|
|
+ <stentry><xsl:value-of select="position()"/></stentry>
|
|
|
+ <stentry>
|
|
|
+ <xsl:apply-templates mode="enter_to_ph_text" select="relation_from">
|
|
|
+ <xsl:with-param name="element" select="'entry'"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </stentry>
|
|
|
+ <stentry>
|
|
|
+ <xsl:variable name="name">
|
|
|
+ <name><xsl:value-of select="*/name()"/></name>
|
|
|
+ </xsl:variable>
|
|
|
+ <xsl:apply-templates mode="enter_to_ph_text" select="$name/name">
|
|
|
+ <xsl:with-param name="element" select="'entry'"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ <!--<xsl:value-of select="string(*/name())"/>-->
|
|
|
+ </stentry>
|
|
|
+ <stentry>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="BI_audit_KRS">
|
|
|
+ <xref href="../KRSY_{BI_audit_KRS/krs}/{BI_audit_KRS/krs}_1.dita">
|
|
|
+ <xsl:value-of select="BI_audit_KRS/nazwa"/><xsl:text> </xsl:text>
|
|
|
+ <xsl:value-of select="BI_audit_KRS/S_miejscowosc"/><xsl:text> </xsl:text>
|
|
|
+ </xref>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:for-each select="*/*">
|
|
|
+ <xsl:if test="text() and not(name()='A_STATUS')">
|
|
|
+ <b><xsl:value-of select="name()"/></b><xsl:text> </xsl:text>
|
|
|
+ <xsl:apply-templates mode="enter_to_ph_text" select="text()">
|
|
|
+ <xsl:with-param name="element" select="'entry'"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ <xsl:text> </xsl:text>
|
|
|
+ </xsl:if>
|
|
|
+ </xsl:for-each>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+
|
|
|
+ </stentry>
|
|
|
+ </strow>
|
|
|
+ </xsl:for-each>
|
|
|
+ </simpletable>
|
|
|
+
|
|
|
+ </p>
|
|
|
+ <!--TODO to separate raport xlink <xsl:choose>
|
|
|
+ <xsl:when test="deal">
|
|
|
+ <p>
|
|
|
+ Podpisane umowy?
|
|
|
+ <simpletable frame="all" relcolwidth="1* 1* 1* 1* 1* 1*" id="simpletable_rows__child_cheat_5{$group_name}_{ $refpos}_{generate-id()}">
|
|
|
+ <strow>
|
|
|
+ <stentry>Data utw. spr./ Tytul dokumentu</stentry>
|
|
|
+ <stentry>Wprowadzajacy wniosek</stentry>
|
|
|
+ <stentry>Kontrahent</stentry>
|
|
|
+ <stentry>Akceptujacy merytorycznie</stentry>
|
|
|
+ <stentry>Osoba merytoryczna</stentry>
|
|
|
+ <stentry>Przedmiot umowy</stentry>
|
|
|
+ </strow>
|
|
|
+ <strow>
|
|
|
+ <stentry>(dane dla poprz.rek.)</stentry>
|
|
|
+ <stentry>Typ umowy</stentry>
|
|
|
+ <stentry>Wartosc zlecenia zamowienia netto w PLN</stentry>
|
|
|
+ <stentry>Wartosc zlecenia zamowienia netto w walucie</stentry>
|
|
|
+ <stentry>Wartosc przedmiotu umowy netto w PLN</stentry>
|
|
|
+ <stentry>Wartosc kosztowa przedmiotu umowy netto w walucie </stentry>
|
|
|
+ </strow>
|
|
|
+ <xsl:for-each select="deal">
|
|
|
+ <xsl:sort select="Wartosc_przedmiotu_umowy_netto_w_PLN" order="descending"/>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test=" position() < 100">
|
|
|
+ <strow>
|
|
|
+ <stentry><xsl:value-of select="Data_utworzenia_sprawy"/> /
|
|
|
+ <xsl:apply-templates mode="enter_to_ph_text" select="Tytul_dokumentu">
|
|
|
+ <xsl:with-param name="element" select="'entry'"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ <!-\-<xsl:value-of select="field[@name='Tytul_dokumentu']"/>-\-></stentry>
|
|
|
+ <stentry>
|
|
|
+ <xsl:value-of select="Wprowadzajacy_wniosek___nazwisko_i_imie"/>
|
|
|
+ </stentry>
|
|
|
+ <stentry>
|
|
|
+ <xsl:apply-templates mode="enter_to_ph_text" select="Pelna_nazwa_kontrahenta">
|
|
|
+ <xsl:with-param name="element" select="'entry'"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </stentry>
|
|
|
+ <stentry>
|
|
|
+ <xsl:value-of select="Akceptujacy_merytorycznie___nazwisko_i_imie"/>
|
|
|
+ </stentry>
|
|
|
+ <stentry>
|
|
|
+ <xsl:value-of select="Osoba_merytoryczna___nazwisko_i_imie"/>
|
|
|
+ </stentry>
|
|
|
+ <stentry>
|
|
|
+ <xsl:apply-templates mode="enter_to_ph_text" select="Przedmiot_umowy">
|
|
|
+ <xsl:with-param name="element" select="'entry'"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ <!-\-<xsl:value-of select="field[@name='Przedmiot_umowy']"/>-\-></stentry>
|
|
|
+ </strow>
|
|
|
+ <strow>
|
|
|
+ <stentry>(dane dla poprz.rek.)</stentry>
|
|
|
+ <stentry><xsl:value-of select="Typ_umowy__aktualny_"/></stentry>
|
|
|
+ <stentry><xsl:value-of select="Wartosc_zlecenia_zamowienia_netto_w_PLN"/></stentry>
|
|
|
+ <stentry><xsl:value-of select="Wartosc_zlecenia_zamowienia_netto_w_walucie"/></stentry>
|
|
|
+ <stentry><xsl:value-of select="Wartosc_przedmiotu_umowy_netto_w_PLN__aktualna_"/></stentry>
|
|
|
+ <stentry><xsl:value-of select="Wartosc_kosztowa_przedmiotu_umowy_netto_w_walucie"/></stentry>
|
|
|
+ </strow>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:when test="position() = 100">
|
|
|
+ <strow>
|
|
|
+ <stentry>Zestawienie zawiera więcej rekordów</stentry>
|
|
|
+ <stentry>Pominięto z uwagi na wielkość raportu</stentry>
|
|
|
+ <stentry/>
|
|
|
+ <stentry/>
|
|
|
+ <stentry/>
|
|
|
+ <stentry/>
|
|
|
+ </strow>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise/>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:for-each>
|
|
|
+ </simpletable>
|
|
|
+ </p>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <p> Dane transakcji
|
|
|
+ <simpletable frame="all" relcolwidth="1* 4*" id="simpletable_rows__child_cheat_9{$group_name}_{ $refpos}_{generate-id()}">
|
|
|
+ <strow>
|
|
|
+ <stentry>Kolumna</stentry>
|
|
|
+ <stentry>Wartosc</stentry>
|
|
|
+ </strow>
|
|
|
+ <xsl:for-each select="object[ position() = last()]/*">
|
|
|
+ <strow>
|
|
|
+ <stentry><xsl:value-of select="name()"/></stentry>
|
|
|
+ <stentry><xsl:value-of select="."/></stentry>
|
|
|
+ </strow>
|
|
|
+ </xsl:for-each>
|
|
|
+ </simpletable>
|
|
|
+
|
|
|
+ </p>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>-->
|
|
|
+
|
|
|
+ </body>
|
|
|
+ </topic>
|
|
|
+ </xsl:result-document>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <topicref href="{$group_name}/{$refpos}.dita">
|
|
|
+ <xsl:result-document href="{$temp}/{$uuid}/{$group_name}/{$refpos}.dita">
|
|
|
+ <topic id="topic_simpletable_cheat_row_{$group_name}_{$refpos}_{ generate-id()}" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
+ xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
|
|
|
+ <title>
|
|
|
+ <xsl:if test="$test_if_prev_worker/prev">
|
|
|
+ !! nadmiarowe wzajemne !!
|
|
|
+ <xsl:for-each-group select="$test_if_prev_worker/prev" group-by="@pesel"><xsl:text> </xsl:text> <xsl:value-of select="."/></xsl:for-each-group>
|
|
|
+ </xsl:if>
|
|
|
+ Powiązanie <xsl:value-of select="position()"/> /<xsl:value-of select="count( current-group())"/> dla
|
|
|
+ <xsl:value-of select="object[ position() = 1]/*/imiona"/><xsl:text> </xsl:text>
|
|
|
+ <xsl:value-of select="object[ position() = 1]/*/nazwisko"/><xsl:text> </xsl:text>
|
|
|
+ <xsl:value-of select="object[ position() = 1]/*/nip"/><xsl:text> </xsl:text>
|
|
|
+ źródło:<xsl:value-of select="object[ position() = 1]/*/source"/><xsl:text> </xsl:text>
|
|
|
+ - do : <xsl:value-of select="object[ position() = last()]/*[ position() = 1]/concat(Pelna_nazwa_kontrahenta,' ',Miejscowosc, ' ',NIP,' ',Nr_dzialki,' ',Nr_KW,' ',Seller_person)"/><xsl:text> </xsl:text>
|
|
|
+ <xsl:value-of select="object[ position() = last()]/*[ position() = 1]/Seller_person"/><xsl:text> </xsl:text> poprzez: <xsl:value-of select="object[ position() = last()]/relation_from"/>
|
|
|
+ (gł.szuk.: <xsl:value-of select="count(object)"/>) ;
|
|
|
+ </title>
|
|
|
+
|
|
|
+ <body>
|
|
|
+ <p>
|
|
|
+ Ścieżka śledzenia do
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="object[ position() = last()]/BI_audit_KW_requested">
|
|
|
+
|
|
|
+ działki: <xsl:value-of select="object[ position() = last()]/*[ position() = 1]/concat(Pelna_nazwa_kontrahenta,' ',Miejscowosc, ' ',NIP,' ',Nr_dzialki,' ',Nr_KW,' ',Seller_Person)"/>
|
|
|
+
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xref href="../{$group_name_refpos.kon}/{$refpos.kon}.dita">
|
|
|
+ kontrahenta: <xsl:value-of select="object[ position() = last()]/*[ position() = 1]/concat(Pelna_nazwa_kontrahenta,' ',Miejscowosc, ' ',NIP,' ',Nr_dzialki,' ',Nr_KW,' ',Seller_Person)"/>
|
|
|
+ </xref>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+
|
|
|
+
|
|
|
+ <simpletable frame="all" relcolwidth="1* 2* 2* 4*" id="simpletable_rows__child_cheat_7{$group_name}_path_{ $refpos}_{generate-id()}">
|
|
|
+ <strow>
|
|
|
+ <stentry>Lp</stentry>
|
|
|
+ <stentry>Sposób wyszukania</stentry>
|
|
|
+ <stentry>Rejestr</stentry>
|
|
|
+ <stentry>Dane z rejestru</stentry>
|
|
|
+ </strow>
|
|
|
+ <xsl:for-each select="object">
|
|
|
+ <strow>
|
|
|
+ <stentry><xsl:value-of select="position()"/></stentry>
|
|
|
+ <stentry>
|
|
|
+ <xsl:apply-templates mode="enter_to_ph_text" select="relation_from">
|
|
|
+ <xsl:with-param name="element" select="'entry'"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </stentry>
|
|
|
+ <stentry>
|
|
|
+ <xsl:variable name="name">
|
|
|
+ <name><xsl:value-of select="*/name()"/></name>
|
|
|
+ </xsl:variable>
|
|
|
+ <xsl:apply-templates mode="enter_to_ph_text" select="$name/name">
|
|
|
+ <xsl:with-param name="element" select="'entry'"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ <!--<xsl:value-of select="string(*/name())"/>-->
|
|
|
+ </stentry>
|
|
|
+ <stentry>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="BI_audit_KRS">
|
|
|
+ <xref href="../KRSY_{BI_audit_KRS/krs}/{BI_audit_KRS/krs}_1.dita">
|
|
|
+ <xsl:value-of select="BI_audit_KRS/nazwa"/><xsl:text> </xsl:text>
|
|
|
+ <xsl:value-of select="BI_audit_KRS/S_miejscowosc"/><xsl:text> </xsl:text>
|
|
|
+ </xref>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:for-each select="*/*">
|
|
|
+ <xsl:if test="text() and not(name()='A_STATUS')">
|
|
|
+ <b><xsl:value-of select="name()"/></b><xsl:text> </xsl:text>
|
|
|
+ <xsl:apply-templates mode="enter_to_ph_text" select="text()">
|
|
|
+ <xsl:with-param name="element" select="'entry'"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ <xsl:text> </xsl:text>
|
|
|
+ </xsl:if>
|
|
|
+ </xsl:for-each>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+
|
|
|
+ </stentry>
|
|
|
+ </strow>
|
|
|
+ </xsl:for-each>
|
|
|
+ </simpletable>
|
|
|
+
|
|
|
+ </p>
|
|
|
+ <!--TODO to separate raport xlink <xsl:choose>
|
|
|
+ <xsl:when test="deal">
|
|
|
+ <p>
|
|
|
+ Podpisane umowy?
|
|
|
+ <simpletable frame="all" relcolwidth="1* 1* 1* 1* 1* 1*" id="simpletable_rows__child_cheat_5{$group_name}_{ $refpos}_{generate-id()}">
|
|
|
+ <strow>
|
|
|
+ <stentry>Data utw. spr./ Tytul dokumentu</stentry>
|
|
|
+ <stentry>Wprowadzajacy wniosek</stentry>
|
|
|
+ <stentry>Kontrahent</stentry>
|
|
|
+ <stentry>Akceptujacy merytorycznie</stentry>
|
|
|
+ <stentry>Osoba merytoryczna</stentry>
|
|
|
+ <stentry>Przedmiot umowy</stentry>
|
|
|
+ </strow>
|
|
|
+ <strow>
|
|
|
+ <stentry>(dane dla poprz.rek.)</stentry>
|
|
|
+ <stentry>Typ umowy</stentry>
|
|
|
+ <stentry>Wartosc zlecenia zamowienia netto w PLN</stentry>
|
|
|
+ <stentry>Wartosc zlecenia zamowienia netto w walucie</stentry>
|
|
|
+ <stentry>Wartosc przedmiotu umowy netto w PLN</stentry>
|
|
|
+ <stentry>Wartosc kosztowa przedmiotu umowy netto w walucie </stentry>
|
|
|
+ </strow>
|
|
|
+ <xsl:for-each select="deal">
|
|
|
+ <xsl:sort select="Wartosc_przedmiotu_umowy_netto_w_PLN" order="descending"/>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test=" position() < 100">
|
|
|
+ <strow>
|
|
|
+ <stentry><xsl:value-of select="Data_utworzenia_sprawy"/> /
|
|
|
+ <xsl:apply-templates mode="enter_to_ph_text" select="Tytul_dokumentu">
|
|
|
+ <xsl:with-param name="element" select="'entry'"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ <!-\-<xsl:value-of select="field[@name='Tytul_dokumentu']"/>-\-></stentry>
|
|
|
+ <stentry>
|
|
|
+ <xsl:value-of select="Wprowadzajacy_wniosek___nazwisko_i_imie"/>
|
|
|
+ </stentry>
|
|
|
+ <stentry>
|
|
|
+ <xsl:apply-templates mode="enter_to_ph_text" select="Pelna_nazwa_kontrahenta">
|
|
|
+ <xsl:with-param name="element" select="'entry'"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </stentry>
|
|
|
+ <stentry>
|
|
|
+ <xsl:value-of select="Akceptujacy_merytorycznie___nazwisko_i_imie"/>
|
|
|
+ </stentry>
|
|
|
+ <stentry>
|
|
|
+ <xsl:value-of select="Osoba_merytoryczna___nazwisko_i_imie"/>
|
|
|
+ </stentry>
|
|
|
+ <stentry>
|
|
|
+ <xsl:apply-templates mode="enter_to_ph_text" select="Przedmiot_umowy">
|
|
|
+ <xsl:with-param name="element" select="'entry'"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ <!-\-<xsl:value-of select="field[@name='Przedmiot_umowy']"/>-\-></stentry>
|
|
|
+ </strow>
|
|
|
+ <strow>
|
|
|
+ <stentry>(dane dla poprz.rek.)</stentry>
|
|
|
+ <stentry><xsl:value-of select="Typ_umowy__aktualny_"/></stentry>
|
|
|
+ <stentry><xsl:value-of select="Wartosc_zlecenia_zamowienia_netto_w_PLN"/></stentry>
|
|
|
+ <stentry><xsl:value-of select="Wartosc_zlecenia_zamowienia_netto_w_walucie"/></stentry>
|
|
|
+ <stentry><xsl:value-of select="Wartosc_przedmiotu_umowy_netto_w_PLN__aktualna_"/></stentry>
|
|
|
+ <stentry><xsl:value-of select="Wartosc_kosztowa_przedmiotu_umowy_netto_w_walucie"/></stentry>
|
|
|
+ </strow>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:when test="position() = 100">
|
|
|
+ <strow>
|
|
|
+ <stentry>Zestawienie zawiera więcej rekordów</stentry>
|
|
|
+ <stentry>Pominięto z uwagi na wielkość raportu</stentry>
|
|
|
+ <stentry/>
|
|
|
+ <stentry/>
|
|
|
+ <stentry/>
|
|
|
+ <stentry/>
|
|
|
+ </strow>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise/>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:for-each>
|
|
|
+ </simpletable>
|
|
|
+ </p>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <p> Dane transakcji
|
|
|
+ <simpletable frame="all" relcolwidth="1* 4*" id="simpletable_rows__child_cheat_9{$group_name}_{ $refpos}_{generate-id()}">
|
|
|
+ <strow>
|
|
|
+ <stentry>Kolumna</stentry>
|
|
|
+ <stentry>Wartosc</stentry>
|
|
|
+ </strow>
|
|
|
+ <xsl:for-each select="object[ position() = last()]/*">
|
|
|
+ <strow>
|
|
|
+ <stentry><xsl:value-of select="name()"/></stentry>
|
|
|
+ <stentry><xsl:value-of select="."/></stentry>
|
|
|
+ </strow>
|
|
|
+ </xsl:for-each>
|
|
|
+ </simpletable>
|
|
|
+
|
|
|
+ </p>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>-->
|
|
|
+
|
|
|
+ </body>
|
|
|
+ </topic>
|
|
|
+ </xsl:result-document>
|
|
|
+ </topicref>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+
|
|
|
+ <!--</xsl:for-each>-->
|
|
|
+ </xsl:for-each-group>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+</xsl:stylesheet>
|