web_ui.xsl 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  4. xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
  5. xmlns:default_db="http://biuro.biall-net.pl/xmlschema_procesy5/default_db"
  6. xmlns:system_cache__web_ui="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/web_ui"
  7. exclude-result-prefixes="xs"
  8. version="2.0">
  9. <!-- @2017-02 bindera: wyglada na przydatny do implementacji do modulow wps -->
  10. <!--funkcje do obslugi akcji edycji/kopiowania/dodawania obiektow poprzez GUI DRAFT -->
  11. <xsl:import href="import_resource_table_xml_from_api.xsl"/>
  12. <xsl:import href="form_occurs_max_sequence.xsl"/>
  13. <xsl:import href="resources_tree_required_occurs_raport.xsl"/>
  14. <xsl:variable name="CRM_LISTA_ZASOBOW">
  15. <xsl:call-template name="import_resource_table_xml_from_api">
  16. <xsl:with-param name="cache" select="'read'"/>
  17. <xsl:with-param name="resource" select="'CRM_LISTA_ZASOBOW'"/>
  18. </xsl:call-template>
  19. </xsl:variable>
  20. <xsl:template name="main">
  21. <!--<xsl:result-document href="../default_db.instance.xml/transformed/default_db__CRM_LISTA_ZASOBOW_OFFERS__allowed_functions.xml">
  22. <default_db__CRM_LISTA_ZASOBOW_OFFERS:allowed_functions>
  23. <!-\-<xsl:apply-templates mode="default_db__ADMIN_USERS:allowed_functions" select="$ADMIN_USERS//item[ID='11' or ID='9' or ADM_ACCOUNT='remiszewskim' or ADM_ACCOUNT='crash' or ID='4889']"/>-\->
  24. </default_db__CRM_LISTA_ZASOBOW_OFFERS:allowed_functions>
  25. </xsl:result-document>-->
  26. </xsl:template>
  27. <!-- DRAFT template do przyjecia zadania do edycji, do dalszego przetwarzania, wyswietlania, potwierdzania -->
  28. <xsl:template match="node()" mode="system_cache__web_ui:modify_record_set">
  29. <!-- propozycja struktury tworzonej przez template -->
  30. <!--<system_cache__appinfo:save_to_api_xml>
  31. <edit_record table-name="DEVICES"
  32. count_xml_node="1"
  33. current_object_xml_name="?default_db:DEVICES?">
  34. <ID read_key_value="d108e1">12345</ID>
  35. <A_STATUS>NORMAL</TYPE>
  36. </edit_record>
  37. -->
  38. </xsl:template>
  39. <!-- DRAFT template usuniecia zadania edycji -->
  40. <xsl:template match="node()" mode="system_cache__web_ui:modify_record_remove_from_set">
  41. <!-- propozycja struktury obslugiwanej przez template - oczekiwany argument do usuniecia z listy np.
  42. read_key_value="d108e1 -->
  43. <!--<system_cache__appinfo:save_to_api_xml>
  44. <edit_record table-name="DEVICES"
  45. count_xml_node="1"
  46. current_object_xml_name="?default_db:DEVICES?">
  47. <ID read_key_value="d108e1">12345</ID>
  48. <A_STATUS>NORMAL</TYPE>
  49. </edit_record>
  50. -->
  51. </xsl:template>
  52. <!-- DRAFT template wykonania zadania edycji -->
  53. <xsl:template match="node()" mode="system_cache__web_ui:modify_record_show_set_to_confirm">
  54. <!-- TODO -->
  55. </xsl:template>
  56. <!-- DRAFT template usuniecia zadania edycji -->
  57. <xsl:template match="node()" mode="system_cache__web_ui:modify_record_commit">
  58. </xsl:template>
  59. </xsl:stylesheet>