|
|
@@ -0,0 +1,625 @@
|
|
|
+<?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/"
|
|
|
+ xmlns:Benford="https://pl.wikipedia.org/wiki/Rozkład_Benforda"
|
|
|
+ xmlns:default_db="https://biuro.biall-net.pl/wfs/default_db"
|
|
|
+ xmlns:p5="https://biuro.biall-net.pl/wfs"
|
|
|
+ xmlns:get_wfs="http://biuro.biall-net.pl/WPS_Functions/get_wfs/get_wfs.xsd"
|
|
|
+ xmlns:p5gnuplot="http://biuro.biall-net.pl/WPS_Functions/graph_gnuplot"
|
|
|
+ xmlns:default_db__x3A__BI_audit_ENERGA_RUM_UMOWY="https://biuro.biall-net.pl/wfs/default_db/BI_audit_ENERGA_RUM_UMOWY"
|
|
|
+ xmlns:default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA="https://biuro.biall-net.pl/wfs/default_db/ENERGA_RUM_KONTRAHENCI_POWIAZANIA"
|
|
|
+ xmlns:default_db__x3A__BI_audit_VALIDATE="https://biuro.biall-net.pl/wfs/default_db/BI_audit_VALIDATE"
|
|
|
+ xmlns:default_db__x3A__BI_audit_BENFORD="https://biuro.biall-net.pl/wfs/default_db/BI_audit_BENFORD"
|
|
|
+ exclude-result-prefixes="xs "
|
|
|
+ version="2.0"><!-- system_cache__appinfo system_cache__dita ogr Benford default_db get_wfs p5 p5gnuplot -->
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:output indent="yes"/>
|
|
|
+ <xsl:strip-space elements="*"/>
|
|
|
+
|
|
|
+ <xsl:template mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row" match="text()|comment()">
|
|
|
+ <xsl:message>#3189 fixed text leackage</xsl:message>
|
|
|
+ </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:param name="limit_same_entry_side" select="'source'"/>
|
|
|
+ <xsl:param name="limit" select="10"/>
|
|
|
+ <xsl:param name="title" required="yes"/>
|
|
|
+ <xsl:variable name="position_src" select="position()"/>
|
|
|
+
|
|
|
+ <!--INFO: group-by="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() = 1]/*[ position() = 1]/@fid" -->
|
|
|
+ <xsl:for-each-group select="current-group()" group-by="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ last()]/*[1]/@fid"> <!-- group-by="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() = last()]/*[ position() = 1]/concat(name(),ID,imiona,nazwisko,pesel,nip,regon,krs)" -->
|
|
|
+ <xsl:for-each select="current-group()">
|
|
|
+ <xsl:sort select="count(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object)" order="ascending"/>
|
|
|
+ <xsl:variable name="position" select="position()"/>
|
|
|
+ <xsl:variable name="position_save" select="concat($position_src,'_',position())"/>
|
|
|
+ <!--<xsl:variable name="group_name_root" select="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_ENERGA_PRACOWNICY.root_key(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY/ID)"/>-->
|
|
|
+ <!--<xsl:variable name="group_name" select="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_ENERGA_PRACOWNICY.key(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY/ID,object[ position() = last()]/*[position() = 1]/name(),object[ position() = last()]/*[position() = 1]/ID,@pos)"/>--><!-- XX1 -->
|
|
|
+ <xsl:variable name="group_name" select="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*[1]/@fid,BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[position() = 1]/name(),BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[position() = 1]/@fid,@pos)"/>
|
|
|
+ <xsl:variable name="group_name.id" select=" replace($group_name,'/','_')"/>
|
|
|
+ <!--<xsl:for-each select="current-group()">-->
|
|
|
+ <xsl:message>#3257-X $group_name = <xsl:value-of select="$group_name"/>; last= <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[position() = 1]/@fid"/>; </xsl:message>
|
|
|
+ <!-- TEST IF PREV -->
|
|
|
+ <!--<xsl:variable name="current_pesel" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ last() ]/*[1]/@fid"/>-->
|
|
|
+ <!--<xsl:variable name="test_if_prev_worker">
|
|
|
+ <xsl:for-each select= "BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object/*[not(@fid = $current_pesel)]">
|
|
|
+ <xsl:variable name="current_pesel_2" select="@fid"/>
|
|
|
+ <!-\-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:comment>#1527 test prev was <xsl:value-of select="$test_if_prev_worker"/></xsl:comment>
|
|
|
+ </xsl:when>-->
|
|
|
+ <xsl:when test="1 = 2"></xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <!--<xsl:variable name="refpos" select="concat(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/* [ position() = 1]/concat(name(),ID),'_', 1)"/>--> <!-- position() -->
|
|
|
+
|
|
|
+ <xsl:variable name="group_name_refpos.kon" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() = last() ]/*[ position() = 1]/ system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_ENERGA_RUM_KONTRAHENCI.key(@fid,'','',1)"/> <!-- XX1system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_ENERGA_RUM_KONTRAHENCI.key(ID) -->
|
|
|
+ <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:attribute name="props">mode__POWIAZANIA_row</xsl:attribute>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:when test=" position() = 0 ">
|
|
|
+ <xsl:variable name="current-save-file-id" select="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,'','',$position_save))"/>
|
|
|
+ <!--<xsl:for-each select="current-group()">-->
|
|
|
+
|
|
|
+ <xsl:copy-of select="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.dita_pair.key.attr($current-save-file-id,@fid,BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[ position() = 1]/@fid)" copy-namespaces="no"/>
|
|
|
+
|
|
|
+ <!-- concat($group_name,'.',generate-id(),'.dita'),@fid,BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[ position() = 1]/@fid) -->
|
|
|
+ <!--</xsl:for-each>-->
|
|
|
+ <!--<xsl:copy-of select="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.dita.fid.keydef(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,'','',$position_save)),system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,'','',position()))"/>-->
|
|
|
+ <xsl:copy-of select="system_cache__dita:files.context.title.keydef(.,'map',$title)" copy-namespaces="no"/>
|
|
|
+ <xsl:result-document href="{system_cache__dita:files.key.href.write.topic.title.context(.,$title)}"> <!-- {system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href.write(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,'','',$position_save))} --> <!-- {$temp}/{$uuid}/{$group_name}.{generate-id()}.dita --> <!-- TODO XX2 -->
|
|
|
+ <topic id="{$uuid}topic_simpletable_cheat_pos_{position()}_row_{$group_name}__{ generate-id()}" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
+ xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
|
|
|
+ <!--<xsl:copy-of select="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.dita.fid.key.attr(@fid)"/>-->
|
|
|
+ <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="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*/imiona"/><xsl:text> </xsl:text>
|
|
|
+ <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*/nazwisko"/><xsl:text> </xsl:text>
|
|
|
+ <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*/nip"/><xsl:text> </xsl:text>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*/source/text()">
|
|
|
+ źródło:<xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*/source"/><xsl:text> </xsl:text>
|
|
|
+ </xsl:when>
|
|
|
+ </xsl:choose>
|
|
|
+
|
|
|
+ do :<xsl:value-of select="system_cache__dita:localname.translate(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[ position() = 1]/local-name())"/><xsl:text> </xsl:text> <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[ position() = 1]/concat(Pelna_nazwa_kontrahenta,nazwa,nazwisko,' - ',Miejscowosc,imiona,imie,' ',NIP,' ',regon,' ',Nr_dzialki,firma,' ',Nr_KW,' ',Seller_person,pesel,miejscowosc)"/><xsl:text> </xsl:text>
|
|
|
+ <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[ position() = 1]/Seller_person"/><xsl:text> </xsl:text> poprzez: <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/relation_from"/>
|
|
|
+ (gł.szuk.: <xsl:value-of select="count(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object)"/>) ;
|
|
|
+ </title>
|
|
|
+
|
|
|
+ <body>
|
|
|
+ <draft-comment author="a.binder">#1171</draft-comment>
|
|
|
+ <p>
|
|
|
+ Ścieżka śledzenia do
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/BI_audit_KW_requested_person">
|
|
|
+
|
|
|
+ działki: <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[ position() = 1]/concat(Pelna_nazwa_kontrahenta,' ',Miejscowosc, ' ',NIP,' ',Nr_dzialki,' ',Nr_KW,' ',Seller_Person)"/>
|
|
|
+
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:when test="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/BI_audit_ENERGA_RUM_KONTRAHENCI">
|
|
|
+ <xref href="../{$group_name_refpos.kon}/{$group_name_refpos.kon}_{$refpos.kon}.dita">
|
|
|
+ kontrahenta: <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[ position() = 1]/concat(Pelna_nazwa_kontrahenta,' ',Miejscowosc, ' ',NIP,' ',Nr_dzialki,' ',Nr_KW,' ',Seller_Person)"/>
|
|
|
+ </xref>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:when test="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/BI_audit_KRS">
|
|
|
+ <xsl:variable name="group_name" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/concat('KRSY_',krs)"/>
|
|
|
+ <xref href="../{$group_name}/{$refpos.kon}.dita">
|
|
|
+ KRS: <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[ position() = 1]/concat(nazwa,' ',S_miejscowosc, ' ',nip)"/>
|
|
|
+ </xref>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:when test="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/BI_audit_KRS_company">
|
|
|
+ KRS (firma): <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[ position() = 1]/concat(nazwa,' ',S_miejscowosc, ' ',nip)"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:when test="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/BI_audit_KRS_person">
|
|
|
+ <xref href="../{ system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_KRS_person.key( nazwisko,imiona,pesel,'')}/{system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_KRS_person.key( nazwisko,imiona,pesel,'')}_{$refpos.kon}.dita">
|
|
|
+ KRS (osoba): <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[ position() = 1]/concat(nazwisko,' ',imiona, ' ',pesel)"/>
|
|
|
+ </xref>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:when test="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/BI_audit_CEIDG">
|
|
|
+ CEIDG (osoba): <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[ position() = 1]/concat(nazwisko,' ',imie, ' ',firma,' ',nip,' ',miejscowosc)"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+
|
|
|
+ Kontrahenta: <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[ position() = 1]/concat(Pelna_nazwa_kontrahenta,' ',Miejscowosc, ' ',NIP,' ',Nr_dzialki,' ',Nr_KW,' ',Seller_Person)"/>
|
|
|
+
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+
|
|
|
+ <xsl:apply-templates mode="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.universal.last.table" select="."/>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </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="{$uuid}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="{$uuid}simpletable_rows__child_cheat_9{$group_name}_{ $refpos}_{generate-id()}">
|
|
|
+ <strow>
|
|
|
+ <stentry>Kolumna</stentry>
|
|
|
+ <stentry>Wartosc</stentry>
|
|
|
+ </strow>
|
|
|
+ <xsl:for-each select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_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>
|
|
|
+ <xsl:variable name="current-save-file-id" select="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,'','',$position_save))"/>
|
|
|
+
|
|
|
+ <topicref > <!-- <xsl:copy-of select="system_cache__dita:files.key.title.context.href(current(),'map',$title)"/> --> <!-- {$group_name}.dita XXS -->
|
|
|
+ <xsl:copy-of select="system_cache__dita:files.key.title.context.href(current(),'map',$title)" copy-namespaces="no"/>
|
|
|
+ <xsl:attribute name="props">
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="position()=1">pos_first</xsl:when>
|
|
|
+ <xsl:when test="position()=last()">pos_last</xsl:when>
|
|
|
+ <xsl:otherwise>pos_else</xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ <xsl:text> mode__POWIAZANIA_row_3624 </xsl:text>
|
|
|
+ </xsl:attribute>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="position() > $limit">
|
|
|
+ <xsl:attribute name="processing-role">resource-only</xsl:attribute>
|
|
|
+ </xsl:when>
|
|
|
+ </xsl:choose>
|
|
|
+ <!--<xsl:for-each select="current-group()">-->
|
|
|
+ <!--<xsl:copy-of select="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.dita_pair.key.attr($current-save-file-id,system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[1]/*[1]/@fid,'','','1'),system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[last()]/*[1]/@fid,'','','1'))"/>--> <!-- concat($group_name,'.dita')XXf -->
|
|
|
+ <!--</xsl:for-each>-->
|
|
|
+ <xsl:copy-of select="system_cache__dita:files.context.title.keydef(.,'map',$title)" copy-namespaces="no"/>
|
|
|
+ <xsl:comment>#3369 system_cache__dita:files.href.dita_pair.title.keydef.attr </xsl:comment>
|
|
|
+ <xsl:copy-of select="system_cache__dita:files.dita_pair.context.title.keydef.attr(.,'map',$title,BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*[1]/@fid,BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ last()]/*[1]/@fid)" copy-namespaces="no"/>
|
|
|
+
|
|
|
+ <!-- for middle-ref match for whole row -->
|
|
|
+ <xsl:copy-of select="system_cache__dita:files.href.dita_pair.title.keydef.attr(system_cache__dita:files.key.href.write.topic.title.context(.,$title),ancestor-or-self::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/@fid,ancestor-or-self::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/@fid)" copy-namespaces="no"/>
|
|
|
+
|
|
|
+ <xsl:message>#1762 writing <xsl:value-of select="$group_name"/> ; also href = <xsl:value-of select="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href.write(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,'','',$position_save))"/>; </xsl:message>
|
|
|
+ <xsl:result-document href="{system_cache__dita:files.key.href.write.topic.title.context(.,$title)}"><!-- system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href.write(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,'','',$position_save)) --><!-- system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href.write(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,'','',$position_save)) --> <!-- {$temp}/{$uuid}/{$group_name}.dita -->
|
|
|
+ <topic id="{$uuid}topiaac_simpletable_cheat_OTHER_pos_{position()}_row_{$group_name.id}_{ 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>-->
|
|
|
+
|
|
|
+
|
|
|
+ <menucascade>
|
|
|
+ <uicontrol>Powiązanie</uicontrol>
|
|
|
+ <uicontrol><varname>[ <xsl:value-of select="system_cache__dita:localname.translate(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*[1]/local-name())"/> ] <xsl:text> </xsl:text></varname></uicontrol>
|
|
|
+ <uicontrol><varname>nr</varname></uicontrol>
|
|
|
+ <uicontrol><xsl:value-of select="position()"/> /<xsl:value-of select="count( current-group())"/></uicontrol>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*/source/text()">
|
|
|
+ <uicontrol><varname>źródło</varname></uicontrol>
|
|
|
+ <uicontrol><varname><xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*/source"/></varname></uicontrol>
|
|
|
+
|
|
|
+ </xsl:when>
|
|
|
+ </xsl:choose>
|
|
|
+ <uicontrol><varname>dla</varname></uicontrol>
|
|
|
+ <uicontrol> <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*/imiona"/><xsl:text> </xsl:text>
|
|
|
+ <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*/nazwisko"/><xsl:text> </xsl:text>
|
|
|
+ <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*/nip"/><xsl:text> </xsl:text>
|
|
|
+ <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*/Pelna_nazwa_kontrahenta"/><xsl:text> </xsl:text>
|
|
|
+ <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*/nazwa"/><xsl:text> </xsl:text></uicontrol>
|
|
|
+
|
|
|
+ </menucascade>
|
|
|
+ <menucascade>
|
|
|
+ <uicontrol><varname>do</varname></uicontrol>
|
|
|
+ <uicontrol> <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[ position() = 1]/concat(Pelna_nazwa_kontrahenta,nazwa,nazwisko,' - ',Miejscowosc,imiona,imie,' ',NIP,' ',regon,' ',Nr_dzialki,firma,' ',Nr_KW,' ',Seller_person,pesel,miejscowosc)"/><xsl:text> </xsl:text>
|
|
|
+ <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[ position() = 1]/Seller_person"/><xsl:text> </xsl:text>
|
|
|
+ </uicontrol>
|
|
|
+ </menucascade>
|
|
|
+
|
|
|
+ <menucascade>
|
|
|
+
|
|
|
+ <uicontrol><varname>dlugosc</varname></uicontrol>
|
|
|
+ <uicontrol><xsl:value-of select="count(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object)"/></uicontrol>
|
|
|
+ <uicontrol><varname>przez</varname></uicontrol>
|
|
|
+ <uicontrol><xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/system_cache__dita:localname.translate(relation_from)"/></uicontrol>
|
|
|
+ </menucascade>
|
|
|
+
|
|
|
+ </title>
|
|
|
+
|
|
|
+ <body>
|
|
|
+ <draft-comment author="a.binder">#1376a-1 $group_name=<xsl:value-of select="$group_name"/>; </draft-comment>
|
|
|
+ <!-- ancestor::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/@fid=<xsl:value-of select="ancestor::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/@fid"/>; /n=<xsl:value-of select="ancestor::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/name()"/>; current-group()/ancestor-or-self::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/@fid=<xsl:value-of select="current-group()/ancestor-or-self::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/@fid"/>;;;; ancestor-or-self::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/@fid=<xsl:value-of select="ancestor-or-self::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/@fid"/>; -->
|
|
|
+ <p>
|
|
|
+ <!--<xsl:call-template name="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_LISTA.ends.desc.table">
|
|
|
+ <xsl:with-param name="row_obj_first" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ 1]/*[1]"/>
|
|
|
+ <xsl:with-param name="row_obj_last" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ last()]/*[1]"/>
|
|
|
+ <!-\-<xsl:with-param name="context" select="$context"/>-\->
|
|
|
+ </xsl:call-template>-->
|
|
|
+
|
|
|
+ <xsl:apply-templates mode="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.universal.last.title" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1 ]">
|
|
|
+ <xsl:with-param name="title">Ścieżka śledzenia do </xsl:with-param>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ <!--<xsl:choose>
|
|
|
+ <xsl:when test="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/BI_audit_KW_requested">
|
|
|
+
|
|
|
+ działki: <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[ position() = 1]/concat(Pelna_nazwa_kontrahenta,' ',Miejscowosc, ' ',NIP,' ',Nr_dzialki,' ',Nr_KW,' ',Seller_Person)"/>
|
|
|
+
|
|
|
+ </xsl:when>
|
|
|
+
|
|
|
+ <xsl:when test="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/BI_audit_KRS">
|
|
|
+ <xsl:variable name="krs" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/BI_audit_KRS/krs"/>
|
|
|
+ <xref href="../{BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/BI_audit_KRS/system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,'','',1))}.dita"> <!-\- ../{BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/BI_audit_KRS/system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_KRS.key(@fid,'','',1)}.dita -\-> <!-\- todo keys X11 -\->
|
|
|
+ KRS.: <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[ position() = 1]/concat(nazwa,' ',S_miejscowosc, ' ',nip)"/>
|
|
|
+ </xref>
|
|
|
+
|
|
|
+ </xsl:when>
|
|
|
+
|
|
|
+ <xsl:when test="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/BI_audit_MSIG">
|
|
|
+ <xsl:variable name="krs" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/BI_audit_MSIG/krs"/>
|
|
|
+ <xref href="../{BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/BI_audit_MSIG/system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,'','',1))}.dita"> <!-\- X11 ../MSIG_{$krs}/{$krs}_1.dita -\->
|
|
|
+ MSIG: <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[ position() = 1]/concat(nazwa,' ',S_miejscowosc, ' ',nip)"/>
|
|
|
+ </xref>
|
|
|
+
|
|
|
+ </xsl:when>
|
|
|
+
|
|
|
+ <xsl:when test="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/BI_audit_KRS_company">
|
|
|
+ <xsl:variable name="krs" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/BI_audit_KRS_company/krs"/>
|
|
|
+ <xref href="../{BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/BI_audit_KRS_company/system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,'','',1))}.dita"> <!-\- X11../KRS_{$krs}/{$krs}_1.dita -\->
|
|
|
+ <!-\-KRS: <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[ position() = 1]/concat(nazwa,' ',S_miejscowosc, ' ',nip)"/>-\->
|
|
|
+ </xref>
|
|
|
+ <!-\- KRS (firma): <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[ position() = 1]/concat(nazwa,' ',S_miejscowosc, ' ',nip)"/>-\->
|
|
|
+ </xsl:when>
|
|
|
+
|
|
|
+ <xsl:when test="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/BI_audit_KRS_person">
|
|
|
+ <xref href="../{ BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/BI_audit_MSIG_person/system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key( @fid,'','',$refpos.kon))}.dita"> <!-\- X11 ../{ BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/BI_audit_MSIG_person/system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_KRS_person.key( @fid,'','',)}/{BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/BI_audit_MSIG_person/system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_KRS_person.key( nazwisko,imiona,pesel,'')}_{$refpos.kon}.dita -\->
|
|
|
+ KRS (osoba): <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[ position() = 1]/concat(nazwisko,' ',imiona, ' ',pesel)"/>
|
|
|
+ </xref>
|
|
|
+ </xsl:when>
|
|
|
+
|
|
|
+ <xsl:when test="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/BI_audit_MSIG_person">
|
|
|
+ <xref href="../{ BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/BI_audit_MSIG_person/system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key( @fid,'','',$refpos.kon))}.dita"> <!-\- X11 -\->
|
|
|
+ MSIG (osoba): <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[ position() = 1]/concat(nazwisko,' ',imiona, ' ',pesel)"/>
|
|
|
+ </xref>
|
|
|
+ </xsl:when>
|
|
|
+
|
|
|
+ <xsl:when test="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/BI_audit_CEIDG">
|
|
|
+ CEIDG (osoba): <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[ position() = 1]/concat(nazwisko,' ',imie, ' ',firma,' ',nip,' ',miejscowosc)"/>
|
|
|
+ </xsl:when>
|
|
|
+
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xref href="../{$group_name_refpos.kon}/{$group_name_refpos.kon}_{$refpos.kon}.dita">
|
|
|
+ kontrahenta: <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[ position() = 1]/concat(Pelna_nazwa_kontrahenta,' ',Miejscowosc, ' ',NIP,' ',Nr_dzialki,' ',Nr_KW,' ',Seller_Person)"/>
|
|
|
+ </xref>
|
|
|
+ <draft-comment author="a.binder">#1376a-OTHERWISE <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[1]/system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_MSIG_person.key(@fid,'','',$refpos.kon))"/> ; $group_name = <xsl:value-of select="$group_name"/>;</draft-comment>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>-->
|
|
|
+<!-- <draft-comment author="a.binder">#1411_debug obj:</draft-comment>
|
|
|
+ <xsl:copy-of select="."/>-->
|
|
|
+
|
|
|
+ <draft-comment author="a.binder">#1376a-2 $group_name=<xsl:value-of select="$group_name"/>; curr/@fid = <xsl:value-of select="@fid"/></draft-comment>
|
|
|
+
|
|
|
+ <!--<DEBUG_3618>
|
|
|
+ <xsl:copy-of select="."/>
|
|
|
+ </DEBUG_3618>-->
|
|
|
+
|
|
|
+ <xsl:apply-templates mode="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.universal.last.table" select=".">
|
|
|
+ <xsl:with-param name="title">Ścieżka śledzenia do </xsl:with-param>
|
|
|
+ </xsl:apply-templates>
|
|
|
+
|
|
|
+
|
|
|
+ <!--<simpletable frame="all" relcolwidth="1* 2* 2* 4*" id="{$uuid}simpletable_rows__child_cheat_7{$group_name.id}_path__{generate-id()}">
|
|
|
+ <strow>
|
|
|
+ <stentry>Lp</stentry>
|
|
|
+ <stentry>Sposób wyszukania</stentry>
|
|
|
+ <stentry>Rejestr</stentry>
|
|
|
+ <stentry>Dane z rejestru</stentry>
|
|
|
+ </strow>
|
|
|
+ <xsl:for-each select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_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>-\->
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="relation_from/text()='BI_audit_ENERGA_PRACOWNICY'">Prac./Osoby</xsl:when>
|
|
|
+ <xsl:when test="relation_from/text()='BI_audit_ENERGA_RUM_KONTRAHENCI'">Kontrah.</xsl:when>
|
|
|
+ <xsl:when test="relation_from/text()='BI_audit_KRS_person'">KRS/o</xsl:when>
|
|
|
+ <xsl:when test="relation_from/text()='BI_audit_KRS'">KRS</xsl:when>
|
|
|
+ <xsl:when test="relation_from/text()='BI_audit_KRS_company'">KRS/f</xsl:when>
|
|
|
+ <xsl:when test="relation_from/text()='BI_audit_MSIG'">MSIG</xsl:when>
|
|
|
+ <xsl:when test="relation_from/text()='BI_audit_MSIG_person'">MSIG/o</xsl:when>
|
|
|
+ <xsl:when test="relation_from/text()='BI_audit_MSIG_company'">MSIG/f</xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:variable name="name">
|
|
|
+ <name><xsl:value-of select="replace(replace(relation_from/text(),'ENERGA',''),'BI_audit_','')"/></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:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </stentry>
|
|
|
+ <stentry>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="*/name()='BI_audit_ENERGA_PRACOWNICY'">Prac./Osoby</xsl:when>
|
|
|
+ <xsl:when test="*/name()='BI_audit_ENERGA_RUM_KONTRAHENCI'">Kontrah.</xsl:when>
|
|
|
+ <xsl:when test="*/name()='BI_audit_KRS_person'">KRS/o</xsl:when>
|
|
|
+ <xsl:when test="*/name()='BI_audit_KRS'">KRS</xsl:when>
|
|
|
+ <xsl:when test="*/name()='BI_audit_KRS_company'">KRS/f</xsl:when>
|
|
|
+ <xsl:when test="*/name()='BI_audit_MSIG'">MSIG</xsl:when>
|
|
|
+ <xsl:when test="*/name()='BI_audit_MSIG_person'">MSIG/o</xsl:when>
|
|
|
+ <xsl:when test="*/name()='BI_audit_MSIG_company'">MSIG/f</xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:variable name="name">
|
|
|
+ <name><xsl:value-of select="*/replace(replace(replace(name(),'ENERGA',''),'BI_audit_',''),'relation_from',' relacja od ')"/></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:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+
|
|
|
+ <!-\-<xsl:value-of select="string(*/name())"/>-\->
|
|
|
+ </stentry>
|
|
|
+ <stentry>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="BI_audit_KRS_person">
|
|
|
+ <!-\-<xref href="../{BI_audit_KRS_person/system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_KRS_person.key(nazwisko,imiona,pesel,'')}/{BI_audit_KRS_person/system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_KRS_person.key(nazwisko,imiona,pesel,'')}_1.dita"/>-\-><!-\- XX1 ? -\->
|
|
|
+ <xref href="../{BI_audit_KRS_person/system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,'','',1))}"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:when test="BI_audit_MSIG_person">
|
|
|
+ <!-\-<xref href="../{BI_audit_MSIG_person/system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_MSIG_person.key(nazwisko,imiona,pesel,'')}/{BI_audit_MSIG_person/system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_MSIG_person.key(nazwisko,imiona,pesel,'')}_1.dita"/>-\-><!-\- XX1 ? -\->
|
|
|
+ <xref href="../{BI_audit_MSIG_person/system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,'','',1))}"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:when test="BI_audit_KRS">
|
|
|
+ <xref href="../{system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(BI_audit_KRS/@fid,'','',1))}"> <!-\- ../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:when test="BI_audit_MSIG">
|
|
|
+ <xref href="../{BI_audit_MSIG/system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,'','',1))}"> <!-\- XX1../{BI_audit_MSIG/system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_MSIG.key(krs)}/{BI_audit_MSIG/krs}_1.dita -\->
|
|
|
+ <xsl:value-of select="BI_audit_MSIG/nazwa"/><xsl:text> </xsl:text>
|
|
|
+ <xsl:value-of select="BI_audit_MSIG/S_miejscowosc"/><xsl:text> </xsl:text>
|
|
|
+ </xref>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:for-each select="*/*">
|
|
|
+ <xsl:if test="text() and not(name()='A_STATUS') and not(name()='A_ADM_COMPANY') and not(name()='A_CLASSIFIED') and not(name()='cached') and not(name()='TERYT_SYM') and not(name()='TERYT_SYM_UL') ">
|
|
|
+ <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>
|
|
|
+ <xsl:apply-templates mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.middle_ref.note" select="*/*">
|
|
|
+ <xsl:with-param name="group_name" select="$group_name"/>
|
|
|
+ <xsl:with-param name="group_name_refpos.kon" select="$group_name_refpos.kon"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </stentry>
|
|
|
+ </strow>
|
|
|
+ </xsl:for-each>
|
|
|
+ </simpletable>-->
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="position() = $limit">
|
|
|
+ <xsl:text> </xsl:text> <b> UWAGA pominięto pozostałych <xsl:value-of select="count(current-group()) - position()"/> przykładów.</b>
|
|
|
+ </xsl:when>
|
|
|
+ </xsl:choose>
|
|
|
+ </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="{$uuid}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="{$uuid}simpletable_rows__child_cheat_9{$group_name}_{ $refpos}_{generate-id()}">
|
|
|
+ <strow>
|
|
|
+ <stentry>Kolumna</stentry>
|
|
|
+ <stentry>Wartosc</stentry>
|
|
|
+ </strow>
|
|
|
+ <xsl:for-each select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_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>-->
|
|
|
+ </xsl:for-each-group>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+
|
|
|
+</xsl:stylesheet>
|