Procházet zdrojové kódy

fix unique fail source

a.binder před 7 roky
rodič
revize
1b64e9bbfc

+ 6 - 6
SE/schema/default_db_xml_cache.public/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.universal.xsl

@@ -84,7 +84,7 @@
                                                     <xsl:with-param name="group_name" select="$group_name"/>
                                                     <xsl:with-param name="position" select="position()"/>
                                                     <xsl:with-param name="resulset" select="$resulset"/>
-                                                    <xsl:with-param name="title" select="$title"/>
+                                                    <xsl:with-param name="title" select="concat($title,$source)"/>
                                                 </xsl:apply-templates>
                                             </xsl:when>
                                             <xsl:when test="$mode = 'BI_audit_ENERGA_RUM_KONTRAHENCI'">
@@ -92,7 +92,7 @@
                                                     <xsl:with-param name="group_name" select="$group_name"/>
                                                     <xsl:with-param name="position" select="position()"/>
                                                     <xsl:with-param name="resulset" select="$resulset"/>
-                                                    <xsl:with-param name="title" select="$title"/>
+                                                    <xsl:with-param name="title" select="concat($title,$source)"/>
                                                 </xsl:apply-templates>
                                             </xsl:when>
                                             <xsl:otherwise>
@@ -101,7 +101,7 @@
                                                     <xsl:with-param name="group_name" select="$group_name"/>
                                                     <xsl:with-param name="position" select="position()"/>
                                                     <xsl:with-param name="resulset" select="$resulset"/>
-                                                    <xsl:with-param name="title" select="$title"/>
+                                                    <xsl:with-param name="title" select="concat($title,$source)"/>
                                                 </xsl:apply-templates>
                                             </xsl:otherwise>
                                         </xsl:choose>
@@ -111,7 +111,7 @@
                                         <xsl:variable name="refpos" select="concat($group_name,'_', position())"/> <!-- $temp}/{$uuid}/{$group_name}/{$refpos}.dita   -->
                                         <xsl:apply-templates mode="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.universal.ignore" select=".">
                                             <xsl:with-param name="position" select="position()"/> <!-- to ignore som rowes -->
-                                            <xsl:with-param name="title" select="$title"/>
+                                            <xsl:with-param name="title" select="concat($title,$source)"/>
                                             <xsl:with-param name="mode" select="$mode"/>
                                             <xsl:with-param name="group_name" select="$group_name"/>
                                             <xsl:with-param name="current-grouping-key" select="current-grouping-key()"/>
@@ -131,7 +131,7 @@
                                             <xsl:with-param name="group_name" select="$group_name"/>
                                             <xsl:with-param name="position" select="position()"/>
                                             <xsl:with-param name="resulset" select="$resulset"/>
-                                            <xsl:with-param name="title" select="$title"/>
+                                            <xsl:with-param name="title" select="concat($title,$source)"/>
                                         </xsl:apply-templates>
                                     </xsl:when>
                                     <xsl:when test="$mode = 'BI_audit_ENERGA_RUM_KONTRAHENCI'">
@@ -139,7 +139,7 @@
                                             <xsl:with-param name="group_name" select="$group_name"/>
                                             <xsl:with-param name="position" select="position()"/>
                                             <xsl:with-param name="resulset" select="$resulset"/>
-                                            <xsl:with-param name="title" select="$title"/>
+                                            <xsl:with-param name="title" select="concat($title,$source)"/>
                                         </xsl:apply-templates>
                                     </xsl:when>
                                     <xsl:otherwise>

+ 9 - 7
SE/schema/default_db_xml_cache.public/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_tree_to_dita.xsl

@@ -724,6 +724,7 @@
                         <xsl:message>#673 navtitle="Powiązania innych niż pracownicy obiektów wejściowych (1e) - grupowanie po źródłach" </xsl:message>
                         <topichead navtitle="Powiązania innych niż pracownicy obiektów wejściowych (1e) - grupowanie po źródłach">
                             <xsl:for-each select="$sources/sources/source">
+                                <xsl:variable name="source" select="."/>
                                 <topichead >
                                     <xsl:attribute name="props">mode__ditamap__root</xsl:attribute>
                                     <xsl:choose>
@@ -740,13 +741,13 @@
                                         <xsl:variable name="refpos" select="concat(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/* [ position() = 1]/@fid,'_', position())"/><!-- XX1 -->
                                         <!--<topichead navtitle="{BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() = 1]/*/concat(imiona,' ',nazwisko,' ',nip)} powiązań ({ count( current-group())}) ">-->
                                         <!--<topicref href="{$group_name}/{$refpos}.dita">-->
-                                        <xsl:message>#831 ROW current-grouping-key=<xsl:value-of select="current-grouping-key()"/>; count(current_group=<xsl:value-of select="count(current-group())"/>);  $group_name = <xsl:value-of select="$group_name"/>;</xsl:message>
+                                        <xsl:message>#831 ROW $source=<xsl:value-of select="$source"/>; current-grouping-key=<xsl:value-of select="current-grouping-key()"/>; count(current_group=<xsl:value-of select="count(current-group())"/>);  $group_name = <xsl:value-of select="$group_name"/>;</xsl:message>
                                         <xsl:apply-templates mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_LISTA" select=".">
                                             <xsl:sort select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() =  last()]/*[ position() = 1]/@fid"/> <!-- XX1 -->                                
-                                            <xsl:with-param name="group_name" select="$group_name"/>
+                                            <xsl:with-param name="group_name" select="concat($group_name,$source)"/>
                                             <xsl:with-param name="position" select="position()"/>
                                             <xsl:with-param name="current-grouping-key" select="current-grouping-key()"/>
-                                            <xsl:with-param name="title" select="'1e_inni_niz_pracownicy'"/>
+                                            <xsl:with-param name="title" select="concat('1e_inni_niz_pracownicy',$source)"/>
                                             <!--<xsl:with-param name="refpos" select="$refpos"/>-->
                                         </xsl:apply-templates>
                                         <!--</topicref>-->
@@ -762,6 +763,7 @@
                     <xsl:when test="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[1]/BI_audit_ENERGA_PRACOWNICY">
                         <topichead navtitle="Powiązania  do Podmiotów  (nie kontrahentow) - lista odnośników (źródła) (1kh) - grupowanie po źródłach">
                             <xsl:for-each select="$sources/sources/source">
+                                <xsl:variable name="source" select="."/>
                                 <topichead >
                                     <xsl:choose>
                                         <xsl:when test="string-length(.) &gt; 0">
@@ -783,7 +785,7 @@
                                             <xsl:with-param name="group_name" select="$group_name"/>
                                             <xsl:with-param name="current-grouping-key" select="current-grouping-key()"/>
                                             <xsl:with-param name="position" select="position()"/>
-                                            <xsl:with-param name="title" select="'pracownicy'"/>
+                                            <xsl:with-param name="title" select="concat('pracownicy',$source)"/>
                                             <!--<xsl:with-param name="refpos" select="$refpos"/>-->
                                         </xsl:apply-templates>
                                         <!--</topicref>-->
@@ -838,7 +840,7 @@
                                             <xsl:apply-templates mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_LISTA" select=".">
                                                 <xsl:with-param name="group_name" select="$group_name"/>
                                                 <xsl:with-param name="position" select="position()"/>
-                                                <xsl:with-param name="title" select="'_1o_'"/>
+                                                <xsl:with-param name="title" select="concat('_1o_',$source)"/>
                                                 <xsl:with-param name="current-grouping-key" select="current-grouping-key()"/>
                                             </xsl:apply-templates>
                                             <xsl:comment>#386 EOF add lista</xsl:comment>
@@ -846,7 +848,7 @@
                                                 <xsl:sort select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_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.pesel"/>
-                                                <xsl:with-param name="title" select="'1o_inne_niz_kontrah'"/>
+                                                <xsl:with-param name="title" select="concat('1o_inne_niz_kontrah',$source)"/>
                                             </xsl:apply-templates>
                                         </topichead>
                                     </xsl:for-each-group>
@@ -3192,7 +3194,7 @@
         <xsl:param name="system_cache__dita:bocian-graph-2-html.read.group" select="'src'"/>
         <xsl:variable name="group_name.ref_prac" select="system_cache__appinfo:truncate_special_and_do_uppercase(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() = 1]/*[ position() = 1] /concat(imiona,'_',nazwisko,'_',nip))"/>
         <xsl:variable name="refpos.ref_prac" select="concat(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/* [ position() = 1]/concat(name(),ID),'_', position())"/>
-        <xsl:message>#3405 awaria <xsl:value-of select="@fid"/> ; for $current-grouping-key=<xsl:value-of select="$current-grouping-key"/>; $position = <xsl:value-of select="$position"/>; $title=<xsl:value-of select="$title"/>; </xsl:message>
+        <xsl:message>#3405 awaria <xsl:value-of select="@fid"/> ; for $current-grouping-key=<xsl:value-of select="$current-grouping-key"/>; $position = <xsl:value-of select="$position"/>; $title=<xsl:value-of select="$title"/>; position()="<xsl:value-of select="position()"/>"; row_obj_fisrt/*/@f="<xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[1]/*[1]/@fid"/>"; row_obj_last/*/@f="<xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[last()]/*[1]/@fid"/>"; </xsl:message>
        
                 <!--<xsl:variable name="group_name_refpos.kon" select="concat(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() = last() ]/*[ position() = 1]/system_cache__appinfo:truncate_special_and_do_uppercase(concat(ID,Pelna_nazwa_kontrahenta)),'KONTR_DO')"/>-->
         <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.DETECT.key(@fid,'KONTR_DO','',position())"/><!-- XX1 sure -->