2015-06 01 11:25:58 Nuevo(65,1) Caso :33 2015-06 01 11:25:58 cargar datos del sujeto(,,s,89,33) select s.*, m.nombre as nom_muni, c.nom_cat,fec_caso from wf_caso_89 w inner join core_sujetoverificacion s on w.id=33 AND s.id =w.core_sujetoverificacion_id inner join plan_municipio m on s.plan_municipio_id=m.id inner join core_sujetocategoria c on s.core_sujetocategoria_id=c.id 2015-06 01 11:25:58 tabla dat adic select tabla from core_sujetoverificaciontipo where id=1 2015-06 01 11:25:58 tabla :persona SELECT * FROM persona where id=65 CasoSeguimiento :59 EjecutarTarea_195() Ingreso de datos id_comp1235 35 ValidarUsuario(195):1 EjecutarPaso_311: form:35 , caso=33 id_comp 1235 Mostrar form fin 2015-06-01 11:25:58 /******************************************************************************************************/ 2015-06-01 11:25:58TraerCaso(33,89,) CargarCaso :33 2015-06 01 11:25:58 CargarDatos: Caso :33 cargar datos de ejecucion de los ultimos pasos select p.*,b.wf_tarea_id as tarea_id, u.apellido||' '||u.nombre|| ': '||u.cargo as usr_ejec from (select max(id) as id, wf_caso_89_seguimiento_id,wf_paso_id from wf_caso_89_pasos a1 group by wf_caso_89_seguimiento_id,wf_paso_id order by id )a inner join wf_caso_89_pasos p using(id,wf_caso_89_seguimiento_id) inner join ( select max(id) as wf_caso_89_seguimiento_id,wf_caso_89_id,wf_tarea_id from wf_caso_89_seguimiento where wf_caso_89_id =? group by wf_caso_89_id,wf_tarea_id order by wf_caso_89_id,wf_caso_89_seguimiento_id ) b using(wf_caso_89_seguimiento_id) left join usuarios u using(core_usuario_id) Error : cargar datos de ejecucion de las tareas (las ultimas si el proceso tiene ciclos) select a.*, u.apellido||' '||u.nombre|| ': '||u.cargo as usr_asig , ur.apellido||' '||ur.nombre|| ': '||ur.cargo as usr_resol from wf_caso_89_seguimiento a inner join ( select max(b0.id) as id,b0.wf_caso_89_id,b0.wf_tarea_id from wf_caso_89_seguimiento b0 where b0.wf_caso_89_id =? group by b0.wf_caso_89_id,b0.wf_tarea_id order by wf_caso_89_id,id ) b using(id) left join usuarios u using(core_usuario_id) left join usuarios ur on ur.core_usuario_id=core_usuario_id_resol {"0":"59","id":"59","1":"33","wf_caso_89_id":"33","2":"195","wf_tarea_id":"195","3":null,"core_usuario_id":null,"4":"2015-06-01 11:25:58","fec_asig":"2015-06-01 11:25:58","5":null,"core_usuario_id_resol":null,"6":null,"fec_resol":null,"7":"195","wf_tarea_id_sig":"195","8":null,"usr_asig":null,"9":null,"usr_resol":null} 2015-06 01 11:25:58 cargar datos del sujeto(,,s,89,33) select s.*, m.nombre as nom_muni, c.nom_cat,fec_caso from wf_caso_89 w inner join core_sujetoverificacion s on w.id=33 AND s.id =w.core_sujetoverificacion_id inner join plan_municipio m on s.plan_municipio_id=m.id inner join core_sujetocategoria c on s.core_sujetocategoria_id=c.id 2015-06 01 11:25:58 tabla dat adic select tabla from core_sujetoverificaciontipo where id=1 2015-06 01 11:25:58 tabla :persona SELECT * FROM persona where id=65 fin 2015-06-01 11:25:58 /******************************************************************************************************/ 2015-06-01 11:26:07TraerCaso(33,89,) CargarCaso :33 2015-06 01 11:26:07 CargarDatos: Caso :33 cargar datos de ejecucion de los ultimos pasos select p.*,b.wf_tarea_id as tarea_id, u.apellido||' '||u.nombre|| ': '||u.cargo as usr_ejec from (select max(id) as id, wf_caso_89_seguimiento_id,wf_paso_id from wf_caso_89_pasos a1 group by wf_caso_89_seguimiento_id,wf_paso_id order by id )a inner join wf_caso_89_pasos p using(id,wf_caso_89_seguimiento_id) inner join ( select max(id) as wf_caso_89_seguimiento_id,wf_caso_89_id,wf_tarea_id from wf_caso_89_seguimiento where wf_caso_89_id =? group by wf_caso_89_id,wf_tarea_id order by wf_caso_89_id,wf_caso_89_seguimiento_id ) b using(wf_caso_89_seguimiento_id) left join usuarios u using(core_usuario_id) Error : cargar datos de ejecucion de las tareas (las ultimas si el proceso tiene ciclos) select a.*, u.apellido||' '||u.nombre|| ': '||u.cargo as usr_asig , ur.apellido||' '||ur.nombre|| ': '||ur.cargo as usr_resol from wf_caso_89_seguimiento a inner join ( select max(b0.id) as id,b0.wf_caso_89_id,b0.wf_tarea_id from wf_caso_89_seguimiento b0 where b0.wf_caso_89_id =? group by b0.wf_caso_89_id,b0.wf_tarea_id order by wf_caso_89_id,id ) b using(id) left join usuarios u using(core_usuario_id) left join usuarios ur on ur.core_usuario_id=core_usuario_id_resol {"0":"59","id":"59","1":"33","wf_caso_89_id":"33","2":"195","wf_tarea_id":"195","3":null,"core_usuario_id":null,"4":"2015-06-01 11:25:58","fec_asig":"2015-06-01 11:25:58","5":null,"core_usuario_id_resol":null,"6":null,"fec_resol":null,"7":"195","wf_tarea_id_sig":"195","8":null,"usr_asig":null,"9":null,"usr_resol":null} 2015-06 01 11:26:07 cargar datos del sujeto(,,s,89,33) select s.*, m.nombre as nom_muni, c.nom_cat,fec_caso from wf_caso_89 w inner join core_sujetoverificacion s on w.id=33 AND s.id =w.core_sujetoverificacion_id inner join plan_municipio m on s.plan_municipio_id=m.id inner join core_sujetocategoria c on s.core_sujetocategoria_id=c.id 2015-06 01 11:26:07 tabla dat adic select tabla from core_sujetoverificaciontipo where id=1 2015-06 01 11:26:07 tabla :persona SELECT * FROM persona where id=65 2015-06 01 11:26:07 Continuar(s,195,311,) EjecutarTarea_195() Ingreso de datos id_comp1235 35 ValidarUsuario(195):1 EjecutarPaso_311: form:35 , caso=33 id_comp 1235 Paso::Guardar(Caso:33) Datos a guardar: Array ( [wf_proceso_id] => 89 [wf_paso_id] => 311 [wf_tarea_id] => 195 [wf_caso_id] => 33 [id] => 1235 [accion] => nextPaso [reg] => s [rta] => n [cod_formulario2] => 35 [id_periodo] => 2015 [obs_ingreso] => [cod_bloque] => 36 [oid] => [oid_maestro] => [463] => 2015-06-01 [456] => Array ( [0] => 1 ) [457] => sdfgsdfg [458] => sdfgsdfg [459] => sdfg [460] => 345345345 ) OID: 32 rta: 1 dato:32 tabla:sce.t35 CasoPaso:87 CargarDatos_311(32) se carga 89_195_311_35_36_4632015-06-01 se carga 89_195_311_35_36_460345345345 se carga 89_195_311_35_36_459sdfg se carga 89_195_311_35_36_458sdfgsdfg se carga 89_195_311_35_36_457sdfgsdfg se carga 89_195_311_35_36_4561 SiguientePasoDe311: Funcion para ejecutar el siguiente paso EjecutarPaso_313: corr:121 , caso=33 id_comp 1235 Mostrar corr ob_start(); $ciud = mb_strtoupper( "{ WFSV_2 } { WFSV_3 }",'utf-8'); ?> <p> Apreciado(a)<br> <strong><?php echo htmlentities($ciud) ?></strong> <p> <p>El presente mensaje es una notificación para el caso No <strong><?php echo $id_caso; ?></strong> </p> <?php $html=ob_get_clean(); TWFSV_3:Pinchao TWFSV_2:German Su solicitud de visita de inspección de salud ambiental a establecimientos se registro con éxito y se encuentra en tramite.<br><br>NOTA:<br>Si esta en la plataforma presione continuar para formalizar y seguir con el proceso { WFSV_1 } TWFSV_1:desarrollo4@siticol.com Registro exitoso inspección de salud ambiental Retorno : Array ( [ret] => inicioComponente_WF_Correo({"id":"1235","caso_id":"33","proceso_id":89,"tit":"Ingreso de datos","tarea_id":195,"paso_id":313,"desc":"<p>\nApreciado(a)<br>\n<strong>GERMAN PINCHAO<\/strong>\n<p>\n<p>El presente mensaje es una notificación para el caso No <strong>33<\/strong> <\/p>\n<strong>Su solicitud de visita de inspecci\u00f3n de salud ambiental a establecimientos se registro con \u00e9xito y se encuentra en tramite.<br><br>NOTA:<br>Si esta en la plataforma presione continuar para formalizar y seguir con el proceso<\/strong> ","url":"<a href=\"#\" onclick=\" llamadaAJAX({\r\n\t\t\t\t\t\t\t\t\turl:'http:\/\/192.168.10.116\/sisad\/build\/view\/mail\/envio\/envio_l.php',\r\n\t\t\t\t\t\t\t\t\tmostrarMsg:true,\r\n\t\t\t\t\t\t\t\t\tparams:{accion:'envio2',destino:'desarrollo4@siticol.com',asunto:'Registro exitoso inspecci\u00f3n de salud ambiental'},\r\n\t\t\t\t\t\t\t\t\tsuccess:function(result){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(result.success) \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcrearMsg(action.result.message,'Informacion');\r\n\t\t\t\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcrearMsg(action.result.message,'Informacion');\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t});\" >De click aqui para volver a enviar el correo<\/a><\/div>"}); [suc] => 1 ) fin 2015-06-01 11:26:07 /******************************************************************************************************/ 2015-06-01 11:26:13TraerCaso(33,89,) CargarCaso :33 2015-06 01 11:26:13 CargarDatos: Caso :33 cargar datos de ejecucion de los ultimos pasos select p.*,b.wf_tarea_id as tarea_id, u.apellido||' '||u.nombre|| ': '||u.cargo as usr_ejec from (select max(id) as id, wf_caso_89_seguimiento_id,wf_paso_id from wf_caso_89_pasos a1 group by wf_caso_89_seguimiento_id,wf_paso_id order by id )a inner join wf_caso_89_pasos p using(id,wf_caso_89_seguimiento_id) inner join ( select max(id) as wf_caso_89_seguimiento_id,wf_caso_89_id,wf_tarea_id from wf_caso_89_seguimiento where wf_caso_89_id =? group by wf_caso_89_id,wf_tarea_id order by wf_caso_89_id,wf_caso_89_seguimiento_id ) b using(wf_caso_89_seguimiento_id) left join usuarios u using(core_usuario_id) {"0":"87","id":"87","1":"311","wf_paso_id":"311","2":"59","wf_caso_89_seguimiento_id":"59","3":"35","core_usuario_id":"35","4":"2015-06-01 11:26:07","fecha_ejec":"2015-06-01 11:26:07","5":"32","dato":"32","6":"sce.t35","tabla":"sce.t35","7":"195","tarea_id":"195","8":"Pinchao German: ciudadano","usr_ejec":"Pinchao German: ciudadano"} CargarDatos_311(32) se carga 89_195_311_35_36_4632015-06-01 se carga 89_195_311_35_36_460345345345 se carga 89_195_311_35_36_459sdfg se carga 89_195_311_35_36_458sdfgsdfg se carga 89_195_311_35_36_457sdfgsdfg se carga 89_195_311_35_36_4561 cargar datos de ejecucion de las tareas (las ultimas si el proceso tiene ciclos) select a.*, u.apellido||' '||u.nombre|| ': '||u.cargo as usr_asig , ur.apellido||' '||ur.nombre|| ': '||ur.cargo as usr_resol from wf_caso_89_seguimiento a inner join ( select max(b0.id) as id,b0.wf_caso_89_id,b0.wf_tarea_id from wf_caso_89_seguimiento b0 where b0.wf_caso_89_id =? group by b0.wf_caso_89_id,b0.wf_tarea_id order by wf_caso_89_id,id ) b using(id) left join usuarios u using(core_usuario_id) left join usuarios ur on ur.core_usuario_id=core_usuario_id_resol {"0":"59","id":"59","1":"33","wf_caso_89_id":"33","2":"195","wf_tarea_id":"195","3":null,"core_usuario_id":null,"4":"2015-06-01 11:25:58","fec_asig":"2015-06-01 11:25:58","5":null,"core_usuario_id_resol":null,"6":null,"fec_resol":null,"7":"195","wf_tarea_id_sig":"195","8":null,"usr_asig":null,"9":null,"usr_resol":null} 2015-06 01 11:26:13 cargar datos del sujeto(,,s,89,33) select s.*, m.nombre as nom_muni, c.nom_cat,fec_caso from wf_caso_89 w inner join core_sujetoverificacion s on w.id=33 AND s.id =w.core_sujetoverificacion_id inner join plan_municipio m on s.plan_municipio_id=m.id inner join core_sujetocategoria c on s.core_sujetocategoria_id=c.id 2015-06 01 11:26:13 tabla dat adic select tabla from core_sujetoverificaciontipo where id=1 2015-06 01 11:26:13 tabla :persona SELECT * FROM persona where id=65 2015-06 01 11:26:13 Continuar(s,195,313,) EjecutarTarea_195() Ingreso de datos id_comp1235 35 ValidarUsuario(195):1 EjecutarPaso_313: corr:121 , caso=33 id_comp 1235 Paso::Guardar(Caso:33) rta: 1 dato: tabla: CasoPaso:88 CargarDatos_313() SiguientePasoDe313: Funcion para ejecutar el siguiente paso Condicion Tarea : true TerminarTarea(195,196) Ultimo seg :59 Ultimo seg :60 EjecutarTarea_196() inspeccion exitosa id_comp1235 35 ValidarUsuario(196): Retorno : Array ( [htm] => [suc] => 1 [ret] => crearMsg('Usted no puede ejecutar la tarea actual del proceso, Debe esperar a que un usuario con los privilegios adecuados la ejecute.','Información');Ext.getCmp('comp_1235').funcionInicial('n'); ) fin 2015-06-01 11:26:13 /******************************************************************************************************/ 2015-09 24 09:55:17 Nuevo(69823,1) Caso :33 2015-09 24 09:55:18 cargar datos del sujeto(,,s,89,33) select s.*, m.nombre as nom_muni, c.nom_cat,fec_caso from wf_caso_89 w inner join core_sujetoverificacion s on w.id=33 AND s.id =w.core_sujetoverificacion_id inner join plan_municipio m on s.plan_municipio_id=m.id inner join core_sujetocategoria c on s.core_sujetocategoria_id=c.id 2015-09 24 09:55:18 tabla dat adic select tabla from core_sujetoverificaciontipo where id=3 2015-09 24 09:55:18 tabla :core_sujetoverificacion_ambulancia SELECT * FROM core_sujetoverificacion_ambulancia where id=69823 CasoSeguimiento :70 EjecutarTarea_224() 1. Form. Lista de Chequeo id_comp1086 1 ValidarUsuario(224):1 EjecutarPaso_305: form:48 , caso=33 id_comp 1086 Mostrar form fin 2015-09-24 09:55:19 /******************************************************************************************************/ fin 2015-09-24 09:55:19 /******************************************************************************************************/ 2015-09 24 09:55:38 Continuar(s,224,305,) EjecutarTarea_224() 1. Form. Lista de Chequeo id_comp1086 1 ValidarUsuario(224):1 EjecutarPaso_305: form:48 , caso=33 id_comp 1086 Paso::Guardar(Caso:33) Datos a guardar: Array ( [wf_proceso_id] => 89 [wf_paso_id] => 305 [wf_tarea_id] => 224 [wf_caso_id] => 33 [id] => 1086 [accion] => nextPaso [reg] => s [rta] => n [cod_formulario2] => 48 [id_periodo] => 2015 [obs_ingreso] => [cod_bloque] => 112 [oid] => [1743] => 23 [1725] => 1 [obs_1725] => [1726] => 1 [obs_1726] => [1727] => 1 [obs_1727] => [1728] => 1 [obs_1728] => [obs_1729] => [obs_1730] => [obs_1731] => [obs_1732] => [obs_1733] => [obs_1734] => [obs_1735] => [obs_1736] => [obs_1737] => [obs_1738] => [obs_1739] => [obs_1740] => [obs_1741] => [obs_1742] => [1744] => 1 [1745] => [1746] => [1747] => 2015-09-24 [1754] => 1 ) OID: 23 rta: 1 dato:23 tabla:sce.t48 CasoPaso:77 CargarDatos_305(23) se carga 89_224_305_48_112_17541 se carga 89_224_305_48_112_17472015-09-24 se carga 89_224_305_48_112_1746 se carga 89_224_305_48_112_1745 se carga 89_224_305_48_112_17441 se carga 89_224_305_48_112_174323 se carga 89_224_305_48_112_1724_1742_OBS se carga 89_224_305_48_112_1724_1742 se carga 89_224_305_48_112_1724_1741_OBS se carga 89_224_305_48_112_1724_1741 se carga 89_224_305_48_112_1724_1740_OBS se carga 89_224_305_48_112_1724_1740 se carga 89_224_305_48_112_1724_1739_OBS se carga 89_224_305_48_112_1724_1739 se carga 89_224_305_48_112_1724_1738_OBS se carga 89_224_305_48_112_1724_1738 se carga 89_224_305_48_112_1724_1737_OBS se carga 89_224_305_48_112_1724_1737 se carga 89_224_305_48_112_1724_1736_OBS se carga 89_224_305_48_112_1724_1736 se carga 89_224_305_48_112_1724_1735_OBS se carga 89_224_305_48_112_1724_1735 se carga 89_224_305_48_112_1724_1734_OBS se carga 89_224_305_48_112_1724_1734 se carga 89_224_305_48_112_1724_1733_OBS se carga 89_224_305_48_112_1724_1733 se carga 89_224_305_48_112_1724_1732_OBS se carga 89_224_305_48_112_1724_1732 se carga 89_224_305_48_112_1724_1731_OBS se carga 89_224_305_48_112_1724_1731 se carga 89_224_305_48_112_1724_1730_OBS se carga 89_224_305_48_112_1724_1730 se carga 89_224_305_48_112_1724_1729_OBS se carga 89_224_305_48_112_1724_1729 se carga 89_224_305_48_112_1724_1728_OBS se carga 89_224_305_48_112_1724_17281 se carga 89_224_305_48_112_1724_1727_OBS se carga 89_224_305_48_112_1724_17271 se carga 89_224_305_48_112_1724_1726_OBS se carga 89_224_305_48_112_1724_17261 se carga 89_224_305_48_112_1724_1725_OBS se carga 89_224_305_48_112_1724_17251 se carga 89_224_305_48_112_1724 SiguientePasoDe305: Funcion para ejecutar el siguiente paso Condicion Tarea : 1 ==1 TerminarTarea(224,225) Ultimo seg :70 Ultimo seg :71 EjecutarTarea_225() 2. Form. Verificacion ambulancia TAB id_comp1086 1 1 ValidarUsuario(225):1 EjecutarPaso_306: form:46 , caso=33 id_comp 1086 Mostrar form Retorno : Array ( [ret] => Ext.getCmp('comp_1086').removeAll();Ext.getCmp('comp_1086').add(new Ext.form.FormPanel({ title: 'VERIFICACION AMBULANCIAS TAB - B1 - Fecha y Talento Humano' ,padding: 10,id:'frm_formulario_89_33',autoScroll:true ,labelAlign:'top',defaults: { anchor: '97%'} ,items: [new Ext.form.Hidden({name:'cod_formulario2',value:'46'}) ,new Ext.form.Hidden({name :'id_periodo',value:'2015'}) ,new Ext.form.Hidden({name :'obs_ingreso',value:''}) ,new Ext.form.Hidden({name:'cod_bloque',value:'93'}) ,new Ext.form.Hidden({name :'oid',value:''}) ,new Ext.form.DateField({fieldLabel:'* FECHA DE REVISION',name:'1207',allowBlank:false,maskRe:/^[-_0-9]$/,format:FormatoFecha,renderer:Ext.util.Format.dateRenderer(FormatoFecha) }),new Ext.Panel({title:'I TALENTO HUMANO ',id:'mat_1209',autoHeight:true,layout:'table',style:{'margin-top':'20px'},stripRows:true,layoutConfig:{columns:4},listeners:{afterrender:function(){setTimeout(function(){capa = Ext.query('.x-table-layout', 'mat_1209'); capa = Ext.getDom(capa[0]);lis = capa.getElementsByTagName('tr');for(var i = 1;i < lis.length;i++ ){lisJ = lis[i].getElementsByTagName('td');lis[i].className = ' x-grid3-row ';clase = ' x-grid3-cell ';if(i%2 == 0) clase += ' x-grid3-row-alt ';for(var J = 0;J < lisJ.length;J++ ){tab = lisJ[J];tab.className += clase;}}},800);}},items:[ {title:'No',tooltip:'No',width:40,anchor:'100%'} ,{title:'Preguntas',tooltip:'Preguntas',anchor:'100%'} ,{title:'Si',text:'Si' ,width:30 ,anchor:'100%',style:{'overflow':'hidden'}} ,{title:'No',text:'No' ,width:30 ,anchor:'100%',style:{'overflow':'hidden'}} ,{xtype:'label',html:'1 '} ,{xtype:'label',html:'Tecnólogo en Atención Prehospitalaria o técnico profesional en atención prehospitalaria o auxiliar de enfermerÃa, <br /> en cualquier caso, cuentan con certificado de capacitación en Soporte Vital Básico '} ,{ xtype:'radiogroup',hideLabel:true,fieldLabel:'1',columns:[30,30],name:'1212',width:60,colspan:2,allowBlank:true,items:[new Ext.form.Radio({ name:'1212',inputValue:'1'}),new Ext.form.Radio({ name:'1212',inputValue:'2'})]} ,{xtype:'label',html:'2 '} ,{xtype:'label',html:'Conductor con certificado de capacitación en primeros auxilios 40 horas '} ,{ xtype:'radiogroup',hideLabel:true,fieldLabel:'2',columns:[30,30],name:'1213',width:60,colspan:2,allowBlank:true,items:[new Ext.form.Radio({ name:'1213',inputValue:'1'}),new Ext.form.Radio({ name:'1213',inputValue:'2'})]}] }) ] ,prepararGrids:function(){/*buscar editorgrid - grilla id compuesto, id real, mas id formulario esclavo, separado _*/var grillasF=this.findByType('editorgrid');if(grillasF && grillasF!=''){for (i=0; i < grillasF.length; i++){var xstore=grillasF[i].getStore();if(xstore.getCount()>0){var data=new Array();var xxid=grillasF[i].getId().split('_');for (j=0; j < xstore.getCount(); j++){var xreco = xstore.getAt(j); var cont_dat_vac=0,cont_tot_vac=0; for(var elem in xreco.data){cont_tot_vac++;if( xreco.data[elem] ==null || xreco.data[elem]=='' ){cont_dat_vac++;}} if(cont_dat_vac < cont_tot_vac){data[data.length]=xreco.data;data[data.length-1]['form_master_escribir_xxx']=xxid[1];}}var xfinalfin=Ext.encode(data);Ext.getCmp(xxid[0]).setValue(xfinalfin);}}}/*grabar stores en hiddens*/},tbar:[{text:'Anterior',iconCls: 'icon-application_side_contract'},{text:'Siguiente',iconCls: 'icon-application_side_expand', handler: function(){var form=Ext.getCmp('frm_formulario_89_33');if(form.getForm().isValid()){form.prepararGrids();xajax_devolver_FormularioInContenedor(xajax.getFormValues('frm_formulario_89_33'),'94','{"pro":"89","cas":"33"}');}else{Ext.MessageBox.alert('Advertencia',getErrorFields(form.getForm()));}}} ] ,listeners:{ afterrender:function(){ try{ Ext.getCmp('frm_formulario_89_33').getForm().loadRecord(new Ext.data.Record({"cod_formulario":46,"cod_bloque":93})); llamadaAJAX({url:'http://192.168.10.116/sisad/build/view/workflow/casos/casos_datosForm.php',mostrarMsg:false,params:{accion:'verifica',wf_paso_id:'306',cod_formulario:'46',cod_bloque:'93',wf_caso_id:'{"pro":"89","cas":"33"}'}}); }catch(e){alert(e);}} } }) );Ext.getCmp('comp_1086').doLayout(); [suc] => 1 ) fin 2015-09-24 09:55:39 /******************************************************************************************************/ fin 2015-09-24 09:55:40 /******************************************************************************************************/ fin 2015-09-24 09:55:49 /******************************************************************************************************/ fin 2015-09-24 09:55:53 /******************************************************************************************************/ fin 2015-09-24 09:56:04 /******************************************************************************************************/ fin 2015-09-24 09:56:16 /******************************************************************************************************/ fin 2015-09-24 09:56:22 /******************************************************************************************************/ fin 2015-09-24 09:56:26 /******************************************************************************************************/ fin 2015-09-24 09:56:38 /******************************************************************************************************/ 2015-09 24 09:57:25 Continuar(s,225,306,) EjecutarTarea_225() 2. Form. Verificacion ambulancia TAB id_comp1086 1 1 ValidarUsuario(225):1 EjecutarPaso_306: form:46 , caso=33 id_comp 1086 Paso::Guardar(Caso:33) Datos a guardar: Array ( [wf_proceso_id] => 89 [wf_paso_id] => 306 [wf_tarea_id] => 225 [wf_caso_id] => 33 [id] => 1086 [accion] => nextPaso [reg] => s [rta] => n [cod_formulario2] => 46 [id_periodo] => 2015 [obs_ingreso] => [cod_bloque] => 100 [oid] => [1390] => 1 [1391] => 1 [1392] => 2 [1409] => [1410] => [1411] => CARLOS [1412] => SECRETARIO [1413] => DIEGO [1414] => JEFE DE ENFERMERIA ) OID: 20 rta: 1 dato:20 tabla:sce.t46 CasoPaso:78 CargarDatos_306(20) se carga 89_225_306_46_99_1387_13881 se carga 89_225_306_46_99_1387 se carga 89_225_306_46_99_1366_1386 se carga 89_225_306_46_99_1366_1385 se carga 89_225_306_46_99_1366_1384 se carga 89_225_306_46_99_1366_1383 se carga 89_225_306_46_99_1366_1382 se carga 89_225_306_46_99_1366_1381 se carga 89_225_306_46_99_1366_1380 se carga 89_225_306_46_99_1366_1379 se carga 89_225_306_46_99_1366_1378 se carga 89_225_306_46_99_1366_1377 se carga 89_225_306_46_99_1366_1376 se carga 89_225_306_46_99_1366_1375 se carga 89_225_306_46_99_1366_1374 se carga 89_225_306_46_99_1366_1373 se carga 89_225_306_46_99_1366_1372 se carga 89_225_306_46_99_1366_1371 se carga 89_225_306_46_99_1366_1370 se carga 89_225_306_46_99_1366_1369 se carga 89_225_306_46_99_1366_13682 se carga 89_225_306_46_99_1366_13671 se carga 89_225_306_46_99_1366 se carga 89_225_306_46_98_1358_1365 se carga 89_225_306_46_98_1358_1364 se carga 89_225_306_46_98_1358_1363 se carga 89_225_306_46_98_1358_1362 se carga 89_225_306_46_98_1358_1361 se carga 89_225_306_46_98_1358_1360 se carga 89_225_306_46_98_1358_1359 se carga 89_225_306_46_98_1358 se carga 89_225_306_46_98_1335_1357 se carga 89_225_306_46_98_1335_1356 se carga 89_225_306_46_98_1335_1355 se carga 89_225_306_46_98_1335_1354 se carga 89_225_306_46_98_1335_1353 se carga 89_225_306_46_98_1335_1352 se carga 89_225_306_46_98_1335_1351 se carga 89_225_306_46_98_1335_1350 se carga 89_225_306_46_98_1335_1349 se carga 89_225_306_46_98_1335_1348 se carga 89_225_306_46_98_1335_1347 se carga 89_225_306_46_98_1335_1346 se carga 89_225_306_46_98_1335_13451 se carga 89_225_306_46_98_1335_1344 se carga 89_225_306_46_98_1335_1343 se carga 89_225_306_46_98_1335_1342 se carga 89_225_306_46_98_1335_1341 se carga 89_225_306_46_98_1335_1340 se carga 89_225_306_46_98_1335_1339 se carga 89_225_306_46_98_1335_1338 se carga 89_225_306_46_98_1335_1337 se carga 89_225_306_46_98_1335_13361 se carga 89_225_306_46_98_1335 se carga 89_225_306_46_97_1299_1334 se carga 89_225_306_46_97_1299_1333 se carga 89_225_306_46_97_1299_1332 se carga 89_225_306_46_97_1299_1331 se carga 89_225_306_46_97_1299_1330 se carga 89_225_306_46_97_1299_1329 se carga 89_225_306_46_97_1299_1328 se carga 89_225_306_46_97_1299_1327 se carga 89_225_306_46_97_1299_1326 se carga 89_225_306_46_97_1299_1325 se carga 89_225_306_46_97_1299_1324 se carga 89_225_306_46_97_1299_1323 se carga 89_225_306_46_97_1299_1322 se carga 89_225_306_46_97_1299_1321 se carga 89_225_306_46_97_1299_1320 se carga 89_225_306_46_97_1299_1319 se carga 89_225_306_46_97_1299_1318 se carga 89_225_306_46_97_1299_1317 se carga 89_225_306_46_97_1299_1316 se carga 89_225_306_46_97_1299_1315 se carga 89_225_306_46_97_1299_1314 se carga 89_225_306_46_97_1299_1313 se carga 89_225_306_46_97_1299_1312 se carga 89_225_306_46_97_1299_1311 se carga 89_225_306_46_97_1299_1310 se carga 89_225_306_46_97_1299_1309 se carga 89_225_306_46_97_1299_1308 se carga 89_225_306_46_97_1299_1307 se carga 89_225_306_46_97_1299_1306 se carga 89_225_306_46_97_1299_1305 se carga 89_225_306_46_97_1299_1304 se carga 89_225_306_46_97_1299_1303 se carga 89_225_306_46_97_1299_1302 se carga 89_225_306_46_97_1299_13011 se carga 89_225_306_46_97_1299_13001 se carga 89_225_306_46_97_1299 se carga 89_225_306_46_96_1249_1298_OBS se carga 89_225_306_46_96_1249_1298 se carga 89_225_306_46_96_1249_1297_OBS se carga 89_225_306_46_96_1249_1297 se carga 89_225_306_46_96_1249_1296_OBS se carga 89_225_306_46_96_1249_1296 se carga 89_225_306_46_96_1249_1295_OBS se carga 89_225_306_46_96_1249_1295 se carga 89_225_306_46_96_1249_1294_OBS se carga 89_225_306_46_96_1249_1294 se carga 89_225_306_46_96_1249_1293_OBS se carga 89_225_306_46_96_1249_1293 se carga 89_225_306_46_96_1249_1292_OBS se carga 89_225_306_46_96_1249_1292 se carga 89_225_306_46_96_1249_1291_OBS se carga 89_225_306_46_96_1249_1291 se carga 89_225_306_46_96_1249_1290_OBS se carga 89_225_306_46_96_1249_1290 se carga 89_225_306_46_96_1249_1289_OBS se carga 89_225_306_46_96_1249_1289 se carga 89_225_306_46_96_1249_1288_OBS se carga 89_225_306_46_96_1249_1288 se carga 89_225_306_46_96_1249_1287_OBS se carga 89_225_306_46_96_1249_1287 se carga 89_225_306_46_96_1249_1286_OBS se carga 89_225_306_46_96_1249_1286 se carga 89_225_306_46_96_1249_1285_OBS se carga 89_225_306_46_96_1249_1285 se carga 89_225_306_46_96_1249_1284_OBS se carga 89_225_306_46_96_1249_1284 se carga 89_225_306_46_96_1249_12831 se carga 89_225_306_46_96_1249_1282_OBS se carga 89_225_306_46_96_1249_1282 se carga 89_225_306_46_96_1249_1281_OBS se carga 89_225_306_46_96_1249_1281 se carga 89_225_306_46_96_1249_1280_OBS se carga 89_225_306_46_96_1249_1280 se carga 89_225_306_46_96_1249_1279_OBS se carga 89_225_306_46_96_1249_1279 se carga 89_225_306_46_96_1249_1278_OBS se carga 89_225_306_46_96_1249_1278 se carga 89_225_306_46_96_1249_1277_OBS se carga 89_225_306_46_96_1249_1277 se carga 89_225_306_46_96_1249_1276_OBS se carga 89_225_306_46_96_1249_1276 se carga 89_225_306_46_96_1249_1275_OBS se carga 89_225_306_46_96_1249_1275 se carga 89_225_306_46_96_1249_1274_OBS se carga 89_225_306_46_96_1249_1274 se carga 89_225_306_46_96_1249_1273_OBS se carga 89_225_306_46_96_1249_1273 se carga 89_225_306_46_96_1249_1272_OBS se carga 89_225_306_46_96_1249_1272 se carga 89_225_306_46_96_1249_1271_OBS se carga 89_225_306_46_96_1249_1271 se carga 89_225_306_46_96_1249_1270_OBS se carga 89_225_306_46_96_1249_1270 se carga 89_225_306_46_96_1249_1269_OBS se carga 89_225_306_46_96_1249_1269 se carga 89_225_306_46_96_1249_1268_OBS se carga 89_225_306_46_96_1249_1268 se carga 89_225_306_46_96_1249_1267_OBS se carga 89_225_306_46_96_1249_1267 se carga 89_225_306_46_96_1249_1266_OBS se carga 89_225_306_46_96_1249_1266 se carga 89_225_306_46_96_1249_1265_OBS se carga 89_225_306_46_96_1249_1265 se carga 89_225_306_46_96_1249_1264_OBS se carga 89_225_306_46_96_1249_1264 se carga 89_225_306_46_96_1249_1263_OBS se carga 89_225_306_46_96_1249_1263 se carga 89_225_306_46_96_1249_1262_OBS se carga 89_225_306_46_96_1249_1262 se carga 89_225_306_46_96_1249_1261_OBS se carga 89_225_306_46_96_1249_1261 se carga 89_225_306_46_96_1249_1260_OBS se carga 89_225_306_46_96_1249_1260 se carga 89_225_306_46_96_1249_1259_OBS se carga 89_225_306_46_96_1249_1259 se carga 89_225_306_46_96_1249_1258_OBS se carga 89_225_306_46_96_1249_1258 se carga 89_225_306_46_96_1249_1257_OBS se carga 89_225_306_46_96_1249_1257 se carga 89_225_306_46_96_1249_1256_OBS se carga 89_225_306_46_96_1249_1256 se carga 89_225_306_46_96_1249_1255_OBS se carga 89_225_306_46_96_1249_1255 se carga 89_225_306_46_96_1249_1254_OBS se carga 89_225_306_46_96_1249_1254 se carga 89_225_306_46_96_1249_1253_OBS se carga 89_225_306_46_96_1249_1253 se carga 89_225_306_46_96_1249_1252_OBS se carga 89_225_306_46_96_1249_12521 se carga 89_225_306_46_96_1249_1251_OBS se carga 89_225_306_46_96_1249_12511 se carga 89_225_306_46_96_1249_1250_OBS se carga 89_225_306_46_96_1249_12501 se carga 89_225_306_46_96_1249 se carga 89_225_306_46_95_1239_1248_OBS se carga 89_225_306_46_95_1239_1248 se carga 89_225_306_46_95_1239_1247_OBS se carga 89_225_306_46_95_1239_1247 se carga 89_225_306_46_95_1239_1246_OBS se carga 89_225_306_46_95_1239_1246 se carga 89_225_306_46_95_1239_1245_OBS se carga 89_225_306_46_95_1239_1245 se carga 89_225_306_46_95_1239_1244_OBS se carga 89_225_306_46_95_1239_1244 se carga 89_225_306_46_95_1239_1243_OBS se carga 89_225_306_46_95_1239_1243 se carga 89_225_306_46_95_1239_1242_OBS se carga 89_225_306_46_95_1239_1242 se carga 89_225_306_46_95_1239_1241_OBS se carga 89_225_306_46_95_1239_1241 se carga 89_225_306_46_95_1239_1240_OBS se carga 89_225_306_46_95_1239_12401 se carga 89_225_306_46_95_1239 se carga 89_225_306_46_95_12381 se carga 89_225_306_46_95_12371 se carga 89_225_306_46_94_1214_1236 se carga 89_225_306_46_94_1214_1235 se carga 89_225_306_46_94_1214_1234 se carga 89_225_306_46_94_1214_1233 se carga 89_225_306_46_94_1214_1232 se carga 89_225_306_46_94_1214_1231 se carga 89_225_306_46_94_1214_1230 se carga 89_225_306_46_94_1214_1229 se carga 89_225_306_46_94_1214_1228 se carga 89_225_306_46_94_1214_1227 se carga 89_225_306_46_94_1214_1226 se carga 89_225_306_46_94_1214_1225 se carga 89_225_306_46_94_1214_1224 se carga 89_225_306_46_94_1214_1223 se carga 89_225_306_46_94_1214_1222 se carga 89_225_306_46_94_1214_1221 se carga 89_225_306_46_94_1214_1220 se carga 89_225_306_46_94_1214_1219 se carga 89_225_306_46_94_1214_1218 se carga 89_225_306_46_94_1214_1217 se carga 89_225_306_46_94_1214_12161 se carga 89_225_306_46_94_1214_12151 se carga 89_225_306_46_94_1214 se carga 89_225_306_46_93_1209_12131 se carga 89_225_306_46_93_1209_12121 se carga 89_225_306_46_93_1209 se carga 89_225_306_46_93_12072015-09-24 se carga 89_225_306_46_100_1696 se carga 89_225_306_46_100_1414JEFE DE ENFERMERIA se carga 89_225_306_46_100_1413DIEGO se carga 89_225_306_46_100_1412SECRETARIO se carga 89_225_306_46_100_1411CARLOS se carga 89_225_306_46_100_1410 se carga 89_225_306_46_100_1409 se carga 89_225_306_46_100_1403_1408 se carga 89_225_306_46_100_1403_1407 se carga 89_225_306_46_100_1403_1406 se carga 89_225_306_46_100_1403_1405 se carga 89_225_306_46_100_1403_1404 se carga 89_225_306_46_100_1403 se carga 89_225_306_46_100_1389_1402 se carga 89_225_306_46_100_1389_1401 se carga 89_225_306_46_100_1389_1400 se carga 89_225_306_46_100_1389_1399 se carga 89_225_306_46_100_1389_1398 se carga 89_225_306_46_100_1389_1397 se carga 89_225_306_46_100_1389_1396 se carga 89_225_306_46_100_1389_1395 se carga 89_225_306_46_100_1389_1394 se carga 89_225_306_46_100_1389_1393 se carga 89_225_306_46_100_1389_13922 se carga 89_225_306_46_100_1389_13911 se carga 89_225_306_46_100_1389_13901 se carga 89_225_306_46_100_1389 SiguientePasoDe306: Funcion para ejecutar el siguiente paso EjecutarPaso_319: docs:12 , caso=33 id_comp 1086 Mostrar docs Transporte asistencial basico Retorno : Array ( [ret] => inicioComponente_WF_DocSalida({"id":"1086","caso_id":"33","proceso_id":89,"tit":"2. Form. Verificacion ambulancia TAB","tarea_id":225,"paso_id":319,"desc":"<strong>formato-verificacion-tab<\/strong>: Transporte asistencial basico","url":"<a href=\"http:\/\/192.168.10.116\/sisad\/tmp\/20150924095726_1.html\" target=\"_blank\" >De clic aqui para descargar el archivo<\/a><\/div>"}); [suc] => 1 ) fin 2015-09-24 09:57:26 /******************************************************************************************************/ 2015-09 24 09:57:59 Continuar(s,225,319,) EjecutarTarea_225() 2. Form. Verificacion ambulancia TAB id_comp1086 1 1 ValidarUsuario(225):1 EjecutarPaso_319: docs:12 , caso=33 id_comp 1086 Paso::Guardar(Caso:33) rta: 1 dato:479 tabla:core_upload CasoPaso:79 CargarDatos_319(479) SiguientePasoDe319: Funcion para ejecutar el siguiente paso Condicion Tarea : true TerminarTarea(225,227) Ultimo seg :71 Ultimo seg :72 EjecutarTarea_227() 4. Form. Fecha de Vigencia del Aval y generacion de tarjeta Aval id_comp1086 1 1 ValidarUsuario(227):1 EjecutarPaso_308: form:49 , caso=33 id_comp 1086 Mostrar form Retorno : Array ( [ret] => Ext.getCmp('comp_1086').removeAll();Ext.getCmp('comp_1086').add(new Ext.form.FormPanel({ title: 'Vigencia del Aval' ,padding: 10,id:'frm_formulario_89_33',autoScroll:true ,labelAlign:'top',defaults: { anchor: '97%'} ,items: [new Ext.form.Hidden({name:'cod_formulario2',value:'49'}) ,new Ext.form.Hidden({name :'id_periodo',value:'2015'}) ,new Ext.form.Hidden({name :'obs_ingreso',value:''}) ,new Ext.form.Hidden({name:'cod_bloque',value:'113'}) ,new Ext.form.Hidden({name :'oid',value:''}) ,new Ext.form.Hidden({ value:'13', id:'1757'}),new Ext.form.DateField({fieldLabel:'* FECHA DE EXPEDICION DEL AVAL',name:'1758',allowBlank:false,maskRe:/^[-_0-9]$/,format:FormatoFecha,renderer:Ext.util.Format.dateRenderer(FormatoFecha) }),new Ext.form.DateField({fieldLabel:'* FECHA DE VENCIMIENTO DEL AVAL',name:'1759',allowBlank:false,maskRe:/^[-_0-9]$/,format:FormatoFecha,renderer:Ext.util.Format.dateRenderer(FormatoFecha) }),{value:'',xtype:'textfield' , maxLength:50,autoCreate:{ tag:'input',maxlength:'50'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'1748',fieldLabel:'* FUNCIONARIO DEL CRUE QUE INICIA EL TRAMITE' },new Ext.form.DateField({fieldLabel:'* FECHA DE INICIO DEL TRAMITE',name:'1749',allowBlank:false,maskRe:/^[-_0-9]$/,format:FormatoFecha,renderer:Ext.util.Format.dateRenderer(FormatoFecha) }) ] ,prepararGrids:function(){/*buscar editorgrid - grilla id compuesto, id real, mas id formulario esclavo, separado _*/var grillasF=this.findByType('editorgrid');if(grillasF && grillasF!=''){for (i=0; i < grillasF.length; i++){var xstore=grillasF[i].getStore();if(xstore.getCount()>0){var data=new Array();var xxid=grillasF[i].getId().split('_');for (j=0; j < xstore.getCount(); j++){var xreco = xstore.getAt(j); var cont_dat_vac=0,cont_tot_vac=0; for(var elem in xreco.data){cont_tot_vac++;if( xreco.data[elem] ==null || xreco.data[elem]=='' ){cont_dat_vac++;}} if(cont_dat_vac < cont_tot_vac){data[data.length]=xreco.data;data[data.length-1]['form_master_escribir_xxx']=xxid[1];}}var xfinalfin=Ext.encode(data);Ext.getCmp(xxid[0]).setValue(xfinalfin);}}}/*grabar stores en hiddens*/},tbar:[{text:'Guardar',iconCls: 'icon-disk',handler: function(){ var form = Ext.getCmp('frm_formulario_89_33'); var f=form.getForm();if(f.isValid()){var band_f=true;try{band_f =form.Validar();}catch(e){}if(band_f){form.prepararGrids();f.submit({url:'http://192.168.10.116/sisad/build/view/'+'workflow/casos/casos_l.php',params:{wf_proceso_id:'89',wf_paso_id:'308',wf_tarea_id:'227',wf_caso_id:'33',id:'1086',accion:'nextPaso',reg:'s',rta:'n'},success:function(form, action){if(action.result.message) crearMsg(action.result.message,'Informacion');else if(action.result.execute){/*try{*/eval(action.result.execute);/*}catch(e){alert(e+'Se presentó un error , por favor cierre la pestaña del caso y continue el proceso desde la pestaña de resumen' );}*/}},failure: function(form, action) {switch (action.failureType) {case Ext.form.Action.CONNECT_FAILURE:Ext.Msg.alert('Error', 'No hay comunicacion con el servidor');break;case Ext.form.Action.SERVER_INVALID: Ext.Msg.alert('Error', action.result.message); break; }}});}}else{Ext.MessageBox.alert('Advertencia',getErrorFields(f));}} } ] ,listeners:{ afterrender:function(){ try{ Ext.getCmp('frm_formulario_89_33').getForm().loadRecord(new Ext.data.Record({"cod_formulario":49,"cod_bloque":113,"1748":null})); llamadaAJAX({url:'http://192.168.10.116/sisad/build/view/workflow/casos/casos_datosForm.php',mostrarMsg:false,params:{accion:'verifica',wf_paso_id:'308',cod_formulario:'49',cod_bloque:'113',wf_caso_id:'{"pro":"89","cas":"33"}'}}); }catch(e){alert(e);}} } }) );Ext.getCmp('comp_1086').doLayout(); [suc] => 1 ) fin 2015-09-24 09:58:00 /******************************************************************************************************/ fin 2015-09-24 09:58:00 /******************************************************************************************************/ 2015-09 24 09:58:39 Continuar(s,227,308,) EjecutarTarea_227() 4. Form. Fecha de Vigencia del Aval y generacion de tarjeta Aval id_comp1086 1 1 ValidarUsuario(227):1 EjecutarPaso_308: form:49 , caso=33 id_comp 1086 Paso::Guardar(Caso:33) Datos a guardar: Array ( [wf_proceso_id] => 89 [wf_paso_id] => 308 [wf_tarea_id] => 227 [wf_caso_id] => 33 [id] => 1086 [accion] => nextPaso [reg] => s [rta] => n [cod_formulario2] => 49 [id_periodo] => 2015 [obs_ingreso] => [cod_bloque] => 113 [oid] => [1757] => 13 [1758] => 2015-09-24 [1759] => 2015-09-24 [1748] => LUIS [1749] => 2015-09-25 ) OID: 13 rta: 1 dato:13 tabla:sce.t49 CasoPaso:80 CargarDatos_308(13) se carga 89_227_308_49_113_17592015-09-24 se carga 89_227_308_49_113_17582015-09-24 se carga 89_227_308_49_113_175713 se carga 89_227_308_49_113_17492015-09-25 se carga 89_227_308_49_113_1748LUIS SiguientePasoDe308: Funcion para ejecutar el siguiente paso EjecutarPaso_310: docs:3 , caso=33 id_comp 1086 Mostrar docs $fec_exp=explode('-',trim('{ 89_227_308_49_113_1758 }')); $fec_ven=explode('-',trim('{ 89_227_308_49_113_1759 }')); $id_ips= trim('{ WFSV_89 }'); $ips=new ADODB_Active_Record('core_sujetoverificacion_ips'); $ips->load('id=?',array($id_ips)); require_once($root.'/lib/tcpdf/config/lang/eng.php'); require_once($root.'/lib/tcpdf/tcpdf.php'); require_once($root.'/build/view/centro_mando/inventario/funciones.php'); // create new PDF document $pdf = new TCPDF('p', 'mm', 'letter', true, 'UTF-8', false); // set document information $pdf->SetCreator(PDF_CREATOR); $pdf->SetAuthor('SITI Ltda'); //set auto page breaks //set image scale factor $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); //set some language-dependent strings $pdf->setLanguageArray($l); // --------------------------------------------------------- // NOTE: 2D barcode algorithms must be implemented on 2dbarcode.php class file. // add a page $pdf->AddPage(); // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - $izq=8;$der=8;$arr=10; $abj=10; $pdf->SetMargins ( $izq,$arr,$der,true ); $pdf->SetAutoPageBreak(TRUE, $abj); $pdf->setPrintHeader(false); $anchoR=216-$izq-$der; $altoR=279-$arr-$abj; $margenSV=2; $margenSH=5; $pdf->SetFont('helvetica', '', 7, '', false); $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); $s=0;$p=1;$consc=$rangoI; $y=$arr; $x=$izq; $pdf->SetXY($x, $y); $img_file = $root."presentation/images/mision_medica.png"; $pdf->Image($img_file, 141, 11, 35, 53, '', '', '', false, 300, '', false, false, 0); // create some HTML content ob_start(); ?> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="52%" style="border-top:#000000 1px solid;"> <table width="100%" border="0" cellspacing="0" cellpadding="0" style=" border-right:#000000 1px solid;border-left:#000000 1px solid;border-bottom:#000000 1px solid;"> <tr> <td width="15%" rowspan="2" valign="middle"><strong><img src="<?php echo $root_js ?>presentation/images/isdn.png" alt="d" width="53" height="54"></strong></td> <td width="71%" align="center" style="font-size:8pt;"> <strong>CENTRO REGULADOR DE URGENCIAS Y EMERGENCIAS<br> C R U E<br> AVAL VEHICULO AMBULANCIA</strong></td> <td width="14%" rowspan="2" align="right"><img src="<?php echo $root_js ?>presentation/images/crue.png" alt="A" height="45"></td> </tr> <tr> <td><div align="right"><span style="font-size: 12pt;font-weight: bold;color: #FF0000;"> { 89_227_308_49_113_1757 } </span></div></td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" width="100%" style="border-right:#000000 1px solid;" > <tr> <td width="30%"colspan="3" align="center" valign="top" style=" border-left:#000000 1px solid;">FECHA DE EXPEDICION<br /> </td> <td width="30%"colspan="3" align="center" valign="top" style=" border-left:#000000 1px solid;" >FECHA DE VENCIMIENTO<br /> </td> <td width="40%" rowspan="2" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">TIPO DE AMBULANCIA<br> <span style="font-size: 20pt;font-weight: bold;color: #FF0000;">{ WFSV_80 }</span></td> </tr> <tr> <td width="8%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">D<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $fec_exp[2] ?></span></td> <td width="8%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">M<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $fec_exp[1] ?></span></td> <td width="14%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">A<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $fec_exp[0] ?></span></td> <td width="8%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">D<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $fec_ven[2] ?></span></td> <td width="8%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">M<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $fec_ven[1] ?></span></td> <td width="14%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">A<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $fec_ven[0] ?></span></td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" width="100%" style="border-right:#000000 1px solid;" > <tr> <td width="43%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">TOMADOR<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $ips->raz_ips ?></span> </td> <td width="23%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">NIT<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $ips->nit_ips ?></span> </td> <td width="34%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">REPRESENTANTE LEGAL<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php $nomr=explode(' ',$ips->nom_rep); $aper=explode(' ',$ips->ape_rep); echo $nomr[0].' '.$aper[0]; ?></span></td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" width="100%" style="border-right:#000000 1px solid;"> <tr> <td align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">DIRECCION DEL TOMADOR<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $ips->dir_tomador ?></span> </td> <td align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">TELEFAX<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $ips->telefax ?></span> </td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" width="100%" style="border-right:#000000 1px solid;" > <tr> <td width="23%" align="center" valign="top"style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">MARCA<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;">{ WFSV_81 }</span> </td> <td width="23%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">MODELO<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;">{ WFSV_82 }</span> </td> <td width="19%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">PLACAS<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;">{ WFSV_83 }</span> </td> <td width="35%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">NUMERO DE MOTOR<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;">{ WFSV_84 }</span> </td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" width="100%" style="border-right:#000000 1px solid;"> <tr> <td align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">CILINDRAJE<br><span style="font-size: 6pt;font-weight: normal;color: #FF0000;">{ WFSV_85 }</span></td> <td align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">CAPACIDAD<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;">{ WFSV_86 }</span> </td> <td align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">CLASE DE VEHICULO<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;">{ WFSV_79 }</span></td> <td align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">SERVICIO<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;">{ WFSV_87 }</span> </td> </tr> </table > </td> <td align="left" valign="top" width="48%" style="border:#000000 1px solid;border-bottom:#000000 1px solid; text-align:justify;"> <div align="center"><strong>RECOMENDACIONES GENERALES</strong></div><ul> <li>El vehículo ambulancia es exclusivo para el traslado de pacientes y en caso de ser necesario un acompañante.</li> <li>Solo se podrán utilizar las luces y sirenas cuando el vehículo ambulancia esté en tránsito o desplazamiento al sitio de la atención y durante el traslado.</li> <li>El vehículo ambulancia deberá ser aseado después de cada servicio.</li> <li>El vehículo ambulancia es un servicio portátil de urgencias; por tanto, debe estar provista de la dotación, suministros y personal de acuerdo a los parámetros establecidos a fin de estabilizar y mantener en adecuadas condiciones los pacientes que en el sean trasladados.</li> </ul> <div align="center"><br><br> __________________________________<br> <strong>Director (a) IDSN </strong></div><div align="right"><font size="-1"><strong>F-PRSSCA06-02 V </strong></font></div></td> </tr> </table> <p> <? $html=ob_get_clean(); // output the HTML content $pdf->writeHTML($html, true, false,false,false); // reset pointer to the last page $pdf->lastPage(); $nomdoc=md5(time()).'.pdf'; $pdf->Output($root."/tmp/".$nomdoc, 'F'); $url=$root_js.'tmp/'.$nomdoc; TWFSV_89:54662 TWFSV_87:Oficial TWFSV_86:2 TWFSV_85:1870 TWFSV_84:F9QU760C687294 TWFSV_83:ODZ 013 TWFSV_82:2014 TWFSV_81:RENAULT TWFSV_80:TAB TWFSV_79:Terrestre T89_227_308_49_113_1759:2015-09-24 T89_227_308_49_113_1758:2015-09-24 T89_227_308_49_113_1757:13 Retorno : Array ( [ret] => inicioComponente_WF_DocSalida({"id":"1086","caso_id":"33","proceso_id":89,"tit":"4. Form. Fecha de Vigencia del Aval y generacion de tarjeta Aval","tarea_id":227,"paso_id":310,"desc":"<strong>Tarjeta Aval de ambulancia<\/strong>: tarjeta de Aval de una ambulancia","url":"<a href=\"http:\/\/192.168.10.116\/sisad\/tmp\/6469e084bd6f014479cff73868decca6.pdf\" target=\"_blank\" >De clic aqui para descargar el archivo<\/a><\/div>"}); [suc] => 1 ) fin 2015-09-24 09:58:40 /******************************************************************************************************/ 2015-09 24 10:09:18 Continuar(,227,308,s) EjecutarTarea_227() 4. Form. Fecha de Vigencia del Aval y generacion de tarjeta Aval id_comp1088 1 1 ValidarUsuario(227):1 SiguientePasoDe308: Funcion para ejecutar el siguiente paso EjecutarPaso_310: docs:3 , caso=33 id_comp 1088 Mostrar docs $fec_exp=explode('-',trim('{ 89_227_308_49_113_1758 }')); $fec_ven=explode('-',trim('{ 89_227_308_49_113_1759 }')); $id_ips= trim('{ WFSV_89 }'); $ips=new ADODB_Active_Record('core_sujetoverificacion_ips'); $ips->load('id=?',array($id_ips)); require_once($root.'/lib/tcpdf/config/lang/eng.php'); require_once($root.'/lib/tcpdf/tcpdf.php'); require_once($root.'/build/view/centro_mando/inventario/funciones.php'); // create new PDF document $pdf = new TCPDF('p', 'mm', 'letter', true, 'UTF-8', false); // set document information $pdf->SetCreator(PDF_CREATOR); $pdf->SetAuthor('SITI Ltda'); //set auto page breaks //set image scale factor $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); //set some language-dependent strings $pdf->setLanguageArray($l); // --------------------------------------------------------- // NOTE: 2D barcode algorithms must be implemented on 2dbarcode.php class file. // add a page $pdf->AddPage(); // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - $izq=8;$der=8;$arr=10; $abj=10; $pdf->SetMargins ( $izq,$arr,$der,true ); $pdf->SetAutoPageBreak(TRUE, $abj); $pdf->setPrintHeader(false); $anchoR=216-$izq-$der; $altoR=279-$arr-$abj; $margenSV=2; $margenSH=5; $pdf->SetFont('helvetica', '', 7, '', false); $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); $s=0;$p=1;$consc=$rangoI; $y=$arr; $x=$izq; $pdf->SetXY($x, $y); $img_file = $root."presentation/images/mision_medica.png"; $pdf->Image($img_file, 141, 11, 35, 53, '', '', '', false, 300, '', false, false, 0); // create some HTML content ob_start(); ?> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="52%" style="border-top:#000000 1px solid;"> <table width="100%" border="0" cellspacing="0" cellpadding="0" style=" border-right:#000000 1px solid;border-left:#000000 1px solid;border-bottom:#000000 1px solid;"> <tr> <td width="15%" rowspan="2" valign="middle"><strong><img src="<?php echo $root_js ?>presentation/images/isdn.png" alt="d" width="53" height="54"></strong></td> <td width="71%" align="center" style="font-size:8pt;"> <strong>CENTRO REGULADOR DE URGENCIAS Y EMERGENCIAS<br> C R U E<br> AVAL VEHICULO AMBULANCIA</strong></td> <td width="14%" rowspan="2" align="right"><img src="<?php echo $root_js ?>presentation/images/crue.png" alt="A" height="45"></td> </tr> <tr> <td><div align="right"><span style="font-size: 12pt;font-weight: bold;color: #FF0000;"> No. { 89_227_308_49_113_1757 } </span></div></td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" width="100%" style="border-right:#000000 1px solid;" > <tr> <td width="30%"colspan="3" align="center" valign="top" style=" border-left:#000000 1px solid;">FECHA DE EXPEDICION<br /> </td> <td width="30%"colspan="3" align="center" valign="top" style=" border-left:#000000 1px solid;" >FECHA DE VENCIMIENTO<br /> </td> <td width="40%" rowspan="2" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">TIPO DE AMBULANCIA<br> <span style="font-size: 20pt;font-weight: bold;color: #FF0000;">{ WFSV_80 }</span></td> </tr> <tr> <td width="8%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">D<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $fec_exp[2] ?></span></td> <td width="8%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">M<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $fec_exp[1] ?></span></td> <td width="14%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">A<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $fec_exp[0] ?></span></td> <td width="8%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">D<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $fec_ven[2] ?></span></td> <td width="8%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">M<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $fec_ven[1] ?></span></td> <td width="14%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">A<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $fec_ven[0] ?></span></td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" width="100%" style="border-right:#000000 1px solid;" > <tr> <td width="43%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">TOMADOR<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $ips->raz_ips ?></span> </td> <td width="23%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">NIT<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $ips->nit_ips ?></span> </td> <td width="34%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">REPRESENTANTE LEGAL<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php $nomr=explode(' ',$ips->nom_rep); $aper=explode(' ',$ips->ape_rep); echo $nomr[0].' '.$aper[0]; ?></span></td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" width="100%" style="border-right:#000000 1px solid;"> <tr> <td align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">DIRECCION DEL TOMADOR<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $ips->dir_tomador ?></span> </td> <td align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">TELEFAX<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $ips->telefax ?></span> </td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" width="100%" style="border-right:#000000 1px solid;" > <tr> <td width="23%" align="center" valign="top"style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">MARCA<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;">{ WFSV_81 }</span> </td> <td width="23%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">MODELO<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;">{ WFSV_82 }</span> </td> <td width="19%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">PLACAS<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;">{ WFSV_83 }</span> </td> <td width="35%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">NUMERO DE MOTOR<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;">{ WFSV_84 }</span> </td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" width="100%" style="border-right:#000000 1px solid;"> <tr> <td align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">CILINDRAJE<br><span style="font-size: 6pt;font-weight: normal;color: #FF0000;">{ WFSV_85 }</span></td> <td align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">CAPACIDAD<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;">{ WFSV_86 }</span> </td> <td align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">CLASE DE VEHICULO<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;">{ WFSV_79 }</span></td> <td align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">SERVICIO<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;">{ WFSV_87 }</span> </td> </tr> </table > </td> <td align="left" valign="top" width="48%" style="border:#000000 1px solid;border-bottom:#000000 1px solid; text-align:justify;"> <div align="center"><strong>RECOMENDACIONES GENERALES</strong></div><ul> <li>El vehÃculo ambulancia es exclusivo para el traslado de pacientes y un acompañante.</li> <li>Solo se podrán utilizar las luces y sirenas cuando el vehÃculo ambulancia esté en tránsito o desplazamiento de paciente o en dirección al sitio de una emergencia.</li> <li>El vehÃculo ambulancia deberá ser aseado después de cada servicio.</li> <li>El vehÃculo ambulancia es un servicio de urgencias; por tanto, debe estar provisto de la dotación, suministros y personal de acuerdo a los parámetros establecidos a fin de garantizar oportunidad en la atención y traslado de los pacientes.</li> </ul> <div align="center"><br><br> __________________________________<br> <strong>Director (a) IDSN </strong></div> <div align="right"><font size="-1"><strong>F-PRSSCA06-03 V </strong></font></div></td> </tr> </table> <p> <? $html=ob_get_clean(); // output the HTML content $pdf->writeHTML($html, true, false,false,false); // reset pointer to the last page $pdf->lastPage(); $nomdoc=md5(time()).'.pdf'; $pdf->Output($root."/tmp/".$nomdoc, 'F'); $url=$root_js.'tmp/'.$nomdoc; TWFSV_89:54662 TWFSV_87:Oficial TWFSV_86:2 TWFSV_85:1870 TWFSV_84:F9QU760C687294 TWFSV_83:ODZ 013 TWFSV_82:2014 TWFSV_81:RENAULT TWFSV_80:TAB TWFSV_79:Terrestre T89_227_308_49_113_1759:2015-09-24 T89_227_308_49_113_1758:2015-09-24 T89_227_308_49_113_1757:13 Retorno : Array ( [ret] => inicioComponente_WF_DocSalida({"id":"1088","caso_id":"33","proceso_id":89,"tit":"4. Form. Fecha de Vigencia del Aval y generacion de tarjeta Aval","tarea_id":227,"paso_id":310,"desc":"<strong>Tarjeta Aval de ambulancia<\/strong>: tarjeta de Aval de una ambulancia","url":"<a href=\"http:\/\/192.168.10.116\/sisad\/tmp\/2d6921cef146b248d2ec9b78d1c4a3fe.pdf\" target=\"_blank\" >De clic aqui para descargar el archivo<\/a><\/div>"}); [suc] => 1 ) fin 2015-09-24 10:09:19 /******************************************************************************************************/ 2015-09 24 10:11:04 Continuar(,227,308,s) EjecutarTarea_227() 4. Form. Fecha de Vigencia del Aval y generacion de tarjeta Aval id_comp1088 1 1 ValidarUsuario(227):1 SiguientePasoDe308: Funcion para ejecutar el siguiente paso EjecutarPaso_310: docs:3 , caso=33 id_comp 1088 Mostrar docs $fec_exp=explode('-',trim('{ 89_227_308_49_113_1758 }')); $fec_ven=explode('-',trim('{ 89_227_308_49_113_1759 }')); $id_ips= trim('{ WFSV_89 }'); $ips=new ADODB_Active_Record('core_sujetoverificacion_ips'); $ips->load('id=?',array($id_ips)); require_once($root.'/lib/tcpdf/config/lang/eng.php'); require_once($root.'/lib/tcpdf/tcpdf.php'); require_once($root.'/build/view/centro_mando/inventario/funciones.php'); // create new PDF document $pdf = new TCPDF('p', 'mm', 'letter', true, 'UTF-8', false); // set document information $pdf->SetCreator(PDF_CREATOR); $pdf->SetAuthor('SITI Ltda'); //set auto page breaks //set image scale factor $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); //set some language-dependent strings $pdf->setLanguageArray($l); // --------------------------------------------------------- // NOTE: 2D barcode algorithms must be implemented on 2dbarcode.php class file. // add a page $pdf->AddPage(); // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - $izq=8;$der=8;$arr=10; $abj=10; $pdf->SetMargins ( $izq,$arr,$der,true ); $pdf->SetAutoPageBreak(TRUE, $abj); $pdf->setPrintHeader(false); $anchoR=216-$izq-$der; $altoR=279-$arr-$abj; $margenSV=2; $margenSH=5; $pdf->SetFont('helvetica', '', 7, '', false); $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); $s=0;$p=1;$consc=$rangoI; $y=$arr; $x=$izq; $pdf->SetXY($x, $y); $img_file = $root."presentation/images/mision_medica.png"; $pdf->Image($img_file, 141, 11, 35, 53, '', '', '', false, 300, '', false, false, 0); // create some HTML content ob_start(); ?> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="52%" style="border-top:#000000 1px solid;"> <table width="100%" border="0" cellspacing="0" cellpadding="0" style=" border-right:#000000 1px solid;border-left:#000000 1px solid;border-bottom:#000000 1px solid;"> <tr> <td width="15%" rowspan="2" valign="middle"><strong><img src="<?php echo $root_js ?>presentation/images/isdn.png" alt="d" width="53" height="54"></strong></td> <td width="71%" align="center" style="font-size:8pt;"> <strong>CENTRO REGULADOR DE URGENCIAS Y EMERGENCIAS<br> C R U E<br> AVAL VEHICULO AMBULANCIA</strong></td> <td width="14%" rowspan="2" align="right"><img src="<?php echo $root_js ?>presentation/images/crue.png" alt="A" height="45"></td> </tr> <tr> <td><div align="right"><span style="font-size: 12pt;font-weight: bold;color: #FF0000;"> No. { 89_227_308_49_113_1757 } </span></div></td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" width="100%" style="border-right:#000000 1px solid;" > <tr> <td width="30%"colspan="3" align="center" valign="top" style=" border-left:#000000 1px solid;">FECHA DE EXPEDICION<br /> </td> <td width="30%"colspan="3" align="center" valign="top" style=" border-left:#000000 1px solid;" >FECHA DE VENCIMIENTO<br /> </td> <td width="40%" rowspan="2" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">TIPO DE AMBULANCIA<br> <span style="font-size: 20pt;font-weight: bold;color: #FF0000;">{ WFSV_80 }</span></td> </tr> <tr> <td width="8%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">D<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $fec_exp[2] ?></span></td> <td width="8%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">M<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $fec_exp[1] ?></span></td> <td width="14%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">A<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $fec_exp[0] ?></span></td> <td width="8%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">D<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $fec_ven[2] ?></span></td> <td width="8%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">M<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $fec_ven[1] ?></span></td> <td width="14%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">A<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $fec_ven[0] ?></span></td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" width="100%" style="border-right:#000000 1px solid;" > <tr> <td width="43%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">TOMADOR<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $ips->raz_ips ?></span> </td> <td width="23%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">NIT<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $ips->nit_ips ?></span> </td> <td width="34%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">REPRESENTANTE LEGAL<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php $nomr=explode(' ',$ips->nom_rep); $aper=explode(' ',$ips->ape_rep); echo $nomr[0].' '.$aper[0]; ?></span></td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" width="100%" style="border-right:#000000 1px solid;"> <tr> <td align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">DIRECCION DEL TOMADOR<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $ips->dir_tomador ?></span> </td> <td align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">TELEFAX<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;"><?php echo $ips->telefax ?></span> </td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" width="100%" style="border-right:#000000 1px solid;" > <tr> <td width="23%" align="center" valign="top"style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">MARCA<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;">{ WFSV_81 }</span> </td> <td width="23%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">MODELO<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;">{ WFSV_82 }</span> </td> <td width="19%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">PLACAS<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;">{ WFSV_83 }</span> </td> <td width="35%" align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">NUMERO DE MOTOR<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;">{ WFSV_84 }</span> </td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" width="100%" style="border-right:#000000 1px solid;"> <tr> <td align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">CILINDRAJE<br><span style="font-size: 6pt;font-weight: normal;color: #FF0000;">{ WFSV_85 }</span></td> <td align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">CAPACIDAD<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;">{ WFSV_86 }</span> </td> <td align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">CLASE DE VEHICULO<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;">{ WFSV_79 }</span></td> <td align="center" valign="top" style=" border-left:#000000 1px solid;border-bottom:#000000 1px solid;">SERVICIO<br> <span style="font-size: 6pt;font-weight: normal;color: #FF0000;">{ WFSV_87 }</span> </td> </tr> </table > </td> <td align="left" valign="top" width="48%" style="border:#000000 1px solid;border-bottom:#000000 1px solid; text-align:justify;"> <div align="center"><strong>RECOMENDACIONES GENERALES</strong></div><ul> <li>El vehÃculo ambulancia es exclusivo para el traslado de pacientes y un acompañante.</li> <li>Solo se podrán utilizar las luces y sirenas cuando el vehÃculo ambulancia esté en tránsito o desplazamiento de paciente o en dirección al sitio de una emergencia.</li> <li>El vehÃculo ambulancia deberá ser aseado después de cada servicio.</li> <li>El vehÃculo ambulancia es un servicio de urgencias; por tanto, debe estar provisto de la dotación, suministros y personal de acuerdo a los parámetros establecidos a fin de garantizar oportunidad en la atención y traslado de los pacientes.</li> </ul> <div align="center"><br><br> __________________________________<br> <strong>Director (a) IDSN </strong></div> <div align="right"><font size="-1"><strong>F-PRSSCA06-03 V </strong></font></div></td> </tr> </table> <p> <? $html=ob_get_clean(); // output the HTML content $pdf->writeHTML($html, true, false,false,false); // reset pointer to the last page $pdf->lastPage(); $nomdoc=md5(time()).'.pdf'; $pdf->Output($root."/tmp/".$nomdoc, 'F'); $url=$root_js.'tmp/'.$nomdoc; TWFSV_89:54662 TWFSV_87:Oficial TWFSV_86:2 TWFSV_85:1870 TWFSV_84:F9QU760C687294 TWFSV_83:ODZ 013 TWFSV_82:2014 TWFSV_81:RENAULT TWFSV_80:TAB TWFSV_79:Terrestre T89_227_308_49_113_1759:2015-09-24 T89_227_308_49_113_1758:2015-09-24 T89_227_308_49_113_1757:13 Retorno : Array ( [ret] => inicioComponente_WF_DocSalida({"id":"1088","caso_id":"33","proceso_id":89,"tit":"4. Form. Fecha de Vigencia del Aval y generacion de tarjeta Aval","tarea_id":227,"paso_id":310,"desc":"<strong>Tarjeta Aval de ambulancia<\/strong>: tarjeta de Aval de una ambulancia","url":"<a href=\"http:\/\/192.168.10.116\/sisad\/tmp\/bcb7c2e5b884bb471f65b2ef8908191f.pdf\" target=\"_blank\" >De clic aqui para descargar el archivo<\/a><\/div>"}); [suc] => 1 ) fin 2015-09-24 10:11:05 /******************************************************************************************************/