a.binder 8 роки тому
батько
коміт
f4963c4696

+ 40 - 9
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

@@ -2301,17 +2301,48 @@
                                                             <strow>
                                                                 <stentry><xsl:value-of select="position()"/></stentry>
                                                                 <stentry>
-                                                                    <xsl:apply-templates mode="enter_to_ph_text" select="relation_from">
+                                                                    <!--<xsl:apply-templates mode="enter_to_ph_text" select="relation_from">
                                                                         <xsl:with-param name="element" select="'entry'"/>
-                                                                    </xsl:apply-templates>
+                                                                    </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:variable name="name">
-                                                                        <name><xsl:value-of select="*/replace(name(),'ENERGA','')"/></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: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>
@@ -2327,7 +2358,7 @@
                                                                         </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')">
+                                                                                <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'"/>