{"etl_step":"unload_maske_system_bez","prop_name":"select_stmt","prop_value":"select maskeninfo_id,systeminfo_id from maske_system_bez where maskeninfo_id=$TID order by 1,2"},
{"etl_step":"unload_maske_system_bez","prop_name":"select_stmt","prop_value":"select maskeninfo_id,systeminfo_id from maske_system_bez where maskeninfo_id=$TID order by 1,2"},
{"etl_step":"unload_themenbaum","prop_name":"select_stmt","prop_value":"select name,maskeninfo_id,parent,(select name from themenbaum where tid=T.parent) as parent_name,gueltig_seit,gueltig_bis,erlaeuterung,sort,css_class from themenbaum T where maskeninfo_id=$TID order by 2,1"},
{"etl_step":"unload_themenbaum","prop_name":"select_stmt","prop_value":"select name,maskeninfo_id,parent,(select name from themenbaum where tid=T.parent) as parent_name,gueltig_seit,gueltig_bis,erlaeuterung,sort,css_class from themenbaum T where maskeninfo_id=$TID order by 2,1"},
{"etl_step":"unload_sx_mask_style","prop_name":"select_stmt","prop_value":"select maskeninfo_id,stylesheet_id,ord,(select filename from sx_stylesheets where tid=S.stylesheet_id) as stylesheet_filename from sx_mask_style S where maskeninfo_id=$TID order by 1,2,3"},
{"etl_step":"unload_sx_mask_style","prop_name":"select_stmt","prop_value":"select maskeninfo_id,stylesheet_id,ord,(select filename from sx_stylesheets where tid=S.stylesheet_id) as stylesheet_filename from sx_mask_style S where maskeninfo_id=$TID order by 1,2,3"},
{"etl_step":"unload_sx_stylesheets","prop_name":"select_stmt","prop_value":"select S.tid,S.filename,S.caption,S.description,S.relation,S.useragent,S.contenttype,S.is_generic,S.toolbar_icon_filepath,S.usage_resultset_data,S.stylesheet_type,S.jr_datasource from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=$TID order by 1,2,3"},
{"etl_step":"unload_stylesheet_field","prop_name":"select_stmt","prop_value":"select F.tid,F.stylesheet_id,S.filename as stylesheet_filename,F.tablename,F.fieldname FROM stylesheet_field F, sx_stylesheets S, sx_mask_style M where F.stylesheet_id=S.tid and S.tid=M.stylesheet_id and M.maskeninfo_id=$TID order by 1,2,3,4,5"},
{"etl_step":"delete_maskeninfo","prop_name":"select_stmt","prop_value":"delete from maskeninfo where tid=$TID"},
{"etl_step":"delete_maskeninfo","prop_name":"select_stmt","prop_value":"delete from maskeninfo where tid=$TID"},
{"testcase":"test_sx_select_mask","assertion":1,"sql":"select count(*) from etl_job where uniquename='sx_select_mask'"},
{"testcase":"test_sx_select_mask","assertion":1,"sql":"select count(*) from etl_job where uniquename='sx_select_mask'"},
{"testcase":"test_sx_insert_mask","assertion":1,"sql":"select count(*) from etl_job where uniquename='sx_insert_mask'"},
{"testcase":"test_sx_insert_mask","assertion":1,"sql":"select count(*) from etl_job where uniquename='sx_insert_mask'"},
{"testcase":"test_sx_insert_mask_params","assertion":3,"sql":"select count(*) from etl_job_param P, etl_job J where J.tid=P.etl_job_id and J.uniquename='sx_insert_mask'"},
{"testcase":"test_sx_insert_mask_params","assertion":3,"sql":"select count(*) from etl_job_param P, etl_job J where J.tid=P.etl_job_id and J.uniquename='sx_insert_mask'"},
{"testcase":"test_sx_insert_mask_steps","assertion":10,"sql":"select count(*) from etl_step S, etl_step_relation R, etl_job J where J.tid=R.job_id and S.tid=R.step_id and J.uniquename='sx_insert_mask'"},
{"testcase":"test_sx_insert_mask_steps","assertion":18,"sql":"select count(*) from etl_step S, etl_step_relation R, etl_job J where J.tid=R.job_id and S.tid=R.step_id and J.uniquename='sx_insert_mask'"},
{"testcase":"test_sx_select_mask_steps","assertion":8,"sql":"select count(*) from etl_step S, etl_step_relation R, etl_job J where J.tid=R.job_id and S.tid=R.step_id and J.uniquename='sx_select_mask'"}
{"testcase":"test_sx_select_mask_steps","assertion":10,"sql":"select count(*) from etl_step S, etl_step_relation R, etl_job J where J.tid=R.job_id and S.tid=R.step_id and J.uniquename='sx_select_mask'"}
<#foreach etl_step_property in etl_step_properties>
!echo'<text table="etl_step_property" field="prop_value" where="prop_name='\''${etl_step_property.prop_name}'\'' and etl_step_id=(select S.tid from etl_step S where S.uniquename='\''${etl_step_property.etl_step}'\'')">${etl_step_property.prop_value}</text>'>>"./tmp"$MANDANTID".sql"
</#foreach>
!echo"</xup""date>">>"./tmp"$MANDANTID".sql"
!DOSQL"./tmp"$MANDANTID".sql"
<#else>
--Postgres:
<#foreach etl_step_property in etl_step_properties>
<#foreach etl_step_property in etl_step_properties>
document.getElementById("MaskSubHeader").innerHTML="TID = <input type='text' size='10' id='Maskentid' />"+" <button class=\"button has-tooltip-multiline has-tooltip-right\" data-tooltip=\"Quellcode der Maske mit der Nummer im Feld TID exportieren\" onclick=\"getMaskSrc(document.getElementById('Maskentid').value)\">exportieren...</button>";
var zs="TID = <input type='text' size='10' id='Maskentid' />"+" <button class=\"button has-tooltip-multiline has-tooltip-right\" data-tooltip=\"Quellcode der Maske mit der Nummer im Feld TID exportieren\" onclick=\"getMaskSrc(document.getElementById('Maskentid').value)\">anzeigen...</button>";
zs +="<button class=\"button has-tooltip-multiline has-tooltip-right\" data-tooltip=\"Quellcode der Maske mit der Nummer im Feld TID herunterladen\" onclick=\"downloadMaskSrc(document.getElementById('Maskentid').value)\">herunterladen...</button>";