$PBExportHeader$dw_obs_medipar_formato_a4_36_30.srd
$PBExportComments$EParera INC5271
release 9;
datawindow(units=0 timer_interval=0 color=1073741824 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no )
header(height=52 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=0 color="536870912"  height.autosize=yes)
table(column=(type=decimal(0) updatewhereclause=yes name=t_com_cab_cod dbname="t_com_cab.cod" )
 column=(type=char(32767) updatewhereclause=no name=texto dbname="texto" )/*Cfalico INC7511*/
 column=(type=char(32767) updatewhereclause=no name=parametro dbname="parametro" )/*Cfalico INC7511*/
 column=(type=char(1) updatewhereclause=yes name=es_formula dbname="t_sgp_convenios_textos.es_formula" )
 column=(type=char(20) updatewhereclause=yes name=cod_entidad dbname="t_com_cab.cod_entidad" initial="0" )
 column=(type=long updatewhereclause=yes name=cod_convenio dbname="t_com_cab.cod_convenio" )
 column=(type=datetime updatewhereclause=yes name=fec_emision dbname="t_com_cab.fec_emision" )
 retrieve="select 
		t_com_cab.cod,
		cast(tx.texto as varchar(max)) as texto,
		cast(tx.parametro as varchar(max)) as parametro, 
		tx.es_formula,
		t_com_cab.cod_entidad,
		t_com_cab.cod_convenio,
		t_com_cab.fec_emision
from t_sgp_convenios_textos tx
		join t_com_cab on tx.cod_convenio = t_com_cab.cod_convenio
where 
		tx.aplicar_a in ('C', 'A') AND
		t_com_cab.fec_emision >= tx.fec_desde and 
		(t_com_cab.fec_emision < dateadd(day, 1, tx.fec_hasta) or tx.fec_hasta is null) 
		and 
		t_com_cab.cod = :id
union

select
		cast (null as int) ,
		REPLACE(CAST (t_com_cab.observacion as varchar(max)),'/',''),
		'',
		'',
		'',	
		cast (null as int) ,
		cast (null as datetime)
from t_com_cab
where t_com_cab.cod = :id" arguments=(("id", number)) )
text(band=header alignment="3" text="Observaciones:" border="0" color="33554432" x="9" y="0" height="44" width="238" html.valueishtml="0"  name=t_1 visible="1"  font.face="Arial Narrow" font.height="-7" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="2" text="-" border="0" color="33554432" x="0" y="4" height="40" width="18" html.valueishtml="0"  name=texto_t visible="1~tif(es_formula = 'S', f_ver_txt_comprobante (cod_convenio, cod_entidad, fec_emision, parametro), if((not isnull(texto)) and trim(texto)<>'',1,0))"  font.face="MS Sans Serif" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=2 alignment="0" tabsequence=32766 border="0" color="33554432" x="27" y="4" height="52" width="2144" format="[general]" html.valueishtml="0"  name=texto visible="1~tif(es_formula = 'S', f_ver_txt_comprobante (cod_convenio, cod_entidad, fec_emision, parametro),1)"  resizeable=1 height.autosize=yes edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0  font.face="Arial Narrow" font.height="-7" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
